diff --git a/packages/ui/package.json b/packages/ui/package.json index e296c810a..25a574838 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -12,7 +12,9 @@ "main": "dist//DzangolabReactUI.umd.js", "module": "dist//DzangolabReactUI.es.js", "types": "./dist/src/index.d.ts", - "files": ["dist"], + "files": [ + "dist" + ], "scripts": { "build": "vite build && tsc --emitDeclarationOnly", "lint": "eslint .", @@ -58,7 +60,6 @@ "eslint-plugin-unicorn": "56.0.1", "jsdom": "25.0.1", "prettier": "3.3.3", - "primereact": "9.6.1", "react": "18.3.1", "react-dom": "18.3.1", "react-router-dom": "6.28.0", @@ -67,7 +68,6 @@ "vitest": "2.1.8" }, "peerDependencies": { - "primereact": ">=9.6", "react": ">=18.2", "react-dom": ">=18.2", "react-router-dom": ">=6.9" diff --git a/packages/ui/src/assets/css/fileCard.css b/packages/ui/src/assets/css/fileCard.css index 8287103b3..14e45ab56 100644 --- a/packages/ui/src/assets/css/fileCard.css +++ b/packages/ui/src/assets/css/fileCard.css @@ -1,9 +1,3 @@ -.file-card, -.file-card > .p-card-body, -.file-card > .p-card-body > .p-card-content { - padding: 0rem !important; -} - .file-card { box-shadow: -1px -1px 29px -14px rgba(0, 0, 0, 0.28); max-width: 100%; @@ -22,7 +16,6 @@ align-items: center; display: flex; justify-content: center; - align-items: center; min-height: 6rem; min-width: 6rem; } diff --git a/packages/ui/src/assets/css/index.css b/packages/ui/src/assets/css/index.css index 039a242d5..8f600617e 100644 --- a/packages/ui/src/assets/css/index.css +++ b/packages/ui/src/assets/css/index.css @@ -14,7 +14,6 @@ @import "./loadingPage.css"; @import "./ssoBaseButton.css"; @import "./googleButton.css"; -@import "./primereact-override/index.css"; @import "./pagination.css"; @import "./fileCard.css"; @import "./filelist.css"; diff --git a/packages/ui/src/assets/css/primereact-override/datatable.css b/packages/ui/src/assets/css/primereact-override/datatable.css deleted file mode 100644 index c75243767..000000000 --- a/packages/ui/src/assets/css/primereact-override/datatable.css +++ /dev/null @@ -1,37 +0,0 @@ -.p-datatable { - --_cell-padding-h: var(--datatable-cell-padding-h, 0.75rem); - --_cell-padding-v: var(--datatable-cell-padding-v, 0.75rem); - --_row-stripped-bg: var(--datatable-row-stripped-bg, #fafafa); - --_column-sort-highlight-bg: var(--datatable-column-sort-highlight-bg); - --_column-sort-highlight-color: var(--datatable-column-sort-highlight-color); - --_actions-justify: var(--datatable-actions-justify, flex-end); - --_actions-flex-gap: var(--datatable-actions-flex-gap, 0.5rem); -} - -.p-datatable-table > thead > tr:first-child { - /* can be removed once we delete the other table from packages/ui */ - display: table-row !important; -} - -.p-datatable .p-datatable-thead > tr > th, -.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd { - background: var(--_row-stripped-bg); -} - -.p-datatable .p-sortable-column.p-highlight, -.p-datatable .p-sortable-column.p-highlight:not(.p-sortable-disabled):hover { - background: var(--_column-sort-highlight-bg); - color: var(--_column-sort-highlight-color); -} - -.p-datatable .p-datatable-header, -.p-datatable .p-datatable-thead > tr > th, -.p-datatable .p-datatable-tbody > tr > td { - padding: var(--_cell-padding-v) var(--_cell-padding-h); -} - -.p-datatable .table-actions { - display: flex; - justify-content: var(--_actions-justify); - gap: var(--_actions-flex-gap); -} diff --git a/packages/ui/src/assets/css/primereact-override/index.css b/packages/ui/src/assets/css/primereact-override/index.css deleted file mode 100644 index 04df41bbc..000000000 --- a/packages/ui/src/assets/css/primereact-override/index.css +++ /dev/null @@ -1,3 +0,0 @@ -@import "./datatable.css"; -@import "./menu.css"; -@import "./tag.css"; diff --git a/packages/ui/src/assets/css/primereact-override/menu.css b/packages/ui/src/assets/css/primereact-override/menu.css deleted file mode 100644 index 36e558d9d..000000000 --- a/packages/ui/src/assets/css/primereact-override/menu.css +++ /dev/null @@ -1,8 +0,0 @@ -.p-menu { - --_menu-item-danger-color: var(--menu-item-danger-color, red); -} - -.p-menu .p-menuitem.danger .p-menuitem-link span, -.p-menu .p-menuitem.danger .p-menuitem-link:not(.p-disabled):hover span { - color: var(--_menu-item-danger-color); -} diff --git a/packages/ui/src/assets/css/primereact-override/tag.css b/packages/ui/src/assets/css/primereact-override/tag.css deleted file mode 100644 index 5e6dbe22d..000000000 --- a/packages/ui/src/assets/css/primereact-override/tag.css +++ /dev/null @@ -1,27 +0,0 @@ -:root { - --tag-color: var(--dz-primary-color); - --tag-info-color: var(--dz-alternate-color); - --tag-success-color: var(--dz-success-color); - --tag-danger-color: var(--dz-danger-color); - --tag-warning-color: var(--dz-warning-color); -} - -.p-tag { - background-color: var(--tag-color) !important; -} - -.p-tag-info { - background-color: var(--tag-info-color) !important; - } - -.p-tag-success { - background-color: var(--tag-success-color) !important; -} - -.p-tag-danger { - background-color: var(--tag-danger-color) !important; -} - -.p-tag-warning { - background-color: var(--tag-warning-color) !important; -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dc6aa60d5..405d1348d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -645,9 +645,6 @@ importers: prettier: specifier: 3.3.3 version: 3.3.3 - primereact: - specifier: 9.6.1 - version: 9.6.1(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: 18.3.1 version: 18.3.1