@drivenets/design-system 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +182 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js +181 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.cjs +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.cjs +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts +49 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts +50 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -0
- package/dist/components/ds-alert-banner/index.cjs +2 -0
- package/dist/components/ds-alert-banner/index.d.ts +2 -0
- package/dist/components/ds-alert-banner/index.js +2 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +135 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +134 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.cjs +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts +36 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts +37 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/index.cjs +1 -0
- package/dist/components/ds-breadcrumb/index.d.ts +2 -0
- package/dist/components/ds-breadcrumb/index.js +1 -0
- package/dist/components/ds-button/ds-button.cjs +32 -0
- package/dist/components/ds-button/ds-button.d.cts +8 -0
- package/dist/components/ds-button/ds-button.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.d.ts +8 -0
- package/dist/components/ds-button/ds-button.d.ts.map +1 -0
- package/dist/components/ds-button/ds-button.js +32 -0
- package/dist/components/ds-button/ds-button.js.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.cts +12 -0
- package/dist/components/ds-button/ds-button.types.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.ts +12 -0
- package/dist/components/ds-button/ds-button.types.d.ts.map +1 -0
- package/dist/components/ds-button/index.cjs +1 -0
- package/dist/components/ds-button/index.d.ts +2 -0
- package/dist/components/ds-button/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +95 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +94 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.cjs +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +102 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +101 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.cjs +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.js +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.cjs +123 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.js +121 -0
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.cjs +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts.map +1 -0
- package/dist/components/ds-checkbox/index.cjs +1 -0
- package/dist/components/ds-checkbox/index.d.ts +2 -0
- package/dist/components/ds-checkbox/index.js +1 -0
- package/dist/components/ds-chip/ds-chip.cjs +130 -0
- package/dist/components/ds-chip/ds-chip.d.cts +12 -0
- package/dist/components/ds-chip/ds-chip.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.d.ts +12 -0
- package/dist/components/ds-chip/ds-chip.d.ts.map +1 -0
- package/dist/components/ds-chip/ds-chip.js +129 -0
- package/dist/components/ds-chip/ds-chip.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.module.cjs +12 -0
- package/dist/components/ds-chip/ds-chip.module.js +12 -0
- package/dist/components/ds-chip/ds-chip.module.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts +49 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts +50 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts.map +1 -0
- package/dist/components/ds-chip/index.cjs +1 -0
- package/dist/components/ds-chip/index.d.ts +2 -0
- package/dist/components/ds-chip/index.js +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.cjs +108 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.js +106 -0
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.cjs +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts.map +1 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.cjs +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -0
- package/dist/components/ds-chip-group/index.cjs +1 -0
- package/dist/components/ds-chip-group/index.d.ts +2 -0
- package/dist/components/ds-chip-group/index.js +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.cjs +235 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.js +234 -0
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.cjs +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts.map +1 -0
- package/dist/components/ds-confirmation/index.cjs +1 -0
- package/dist/components/ds-confirmation/index.d.ts +2 -0
- package/dist/components/ds-confirmation/index.js +1 -0
- package/dist/components/ds-dialog/ds-dialog.cjs +60 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.js +58 -0
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.module.cjs +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts.map +1 -0
- package/dist/components/ds-dialog/index.cjs +1 -0
- package/dist/components/ds-dialog/index.d.ts +2 -0
- package/dist/components/ds-dialog/index.js +1 -0
- package/dist/components/ds-drawer/ds-drawer.cjs +297 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.js +296 -0
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.module.cjs +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts.map +1 -0
- package/dist/components/ds-drawer/index.cjs +1 -0
- package/dist/components/ds-drawer/index.d.ts +2 -0
- package/dist/components/ds-drawer/index.js +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +629 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +626 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.cjs +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/index.cjs +1 -0
- package/dist/components/ds-dropdown-menu/index.d.ts +2 -0
- package/dist/components/ds-dropdown-menu/index.js +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +173 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +172 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.cjs +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts +21 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts +23 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/index.cjs +1 -0
- package/dist/components/ds-expandable-text-input/index.d.ts +2 -0
- package/dist/components/ds-expandable-text-input/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +217 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +216 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.cjs +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.d.ts +2 -0
- package/dist/components/ds-file-upload/components/file-upload/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +297 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +296 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.cjs +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.js +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.cjs +117 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.js +117 -0
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts +36 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts +37 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.cjs +30 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js +28 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -0
- package/dist/components/ds-file-upload/hooks/index.cjs +1 -0
- package/dist/components/ds-file-upload/hooks/index.d.ts +1 -0
- package/dist/components/ds-file-upload/hooks/index.js +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts +59 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts +60 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/index.cjs +6 -0
- package/dist/components/ds-file-upload/index.d.ts +9 -0
- package/dist/components/ds-file-upload/index.js +6 -0
- package/dist/components/ds-file-upload/types/accept-types.cjs +117 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.js +117 -0
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -0
- package/dist/components/ds-file-upload/utils/accept-utils.cjs +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -0
- package/dist/components/ds-file-upload/utils/constants.cjs +24 -0
- package/dist/components/ds-file-upload/utils/constants.js +22 -0
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -0
- package/dist/components/ds-file-upload/utils/file-factory.cjs +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -0
- package/dist/components/ds-file-upload/utils/format-file-size.cjs +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.cjs +21 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js +22 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -0
- package/dist/components/ds-file-upload/utils/get-error-message.cjs +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.cjs +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.cjs +179 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts +33 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts +38 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.js +178 -0
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.module.cjs +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.cjs +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts +59 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts +60 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.js +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -0
- package/dist/components/ds-form-control/index.cjs +2 -0
- package/dist/components/ds-form-control/index.d.ts +2 -0
- package/dist/components/ds-form-control/index.js +2 -0
- package/dist/components/ds-grid/ds-grid.cjs +36 -0
- package/dist/components/ds-grid/ds-grid.d.cts +16 -0
- package/dist/components/ds-grid/ds-grid.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.d.ts +16 -0
- package/dist/components/ds-grid/ds-grid.d.ts.map +1 -0
- package/dist/components/ds-grid/ds-grid.js +34 -0
- package/dist/components/ds-grid/ds-grid.js.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts.map +1 -0
- package/dist/components/ds-grid/index.cjs +1 -0
- package/dist/components/ds-grid/index.d.ts +2 -0
- package/dist/components/ds-grid/index.js +1 -0
- package/dist/components/ds-icon/ds-icon.cjs +100 -0
- package/dist/components/ds-icon/ds-icon.d.cts +12 -0
- package/dist/components/ds-icon/ds-icon.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.d.ts +12 -0
- package/dist/components/ds-icon/ds-icon.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.js +99 -0
- package/dist/components/ds-icon/ds-icon.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.module.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.module.js +14 -0
- package/dist/components/ds-icon/ds-icon.module.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.js +13 -0
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -0
- package/dist/components/ds-icon/index.cjs +2 -0
- package/dist/components/ds-icon/index.d.ts +2 -0
- package/dist/components/ds-icon/index.js +2 -0
- package/dist/components/ds-icon/material-icons.d.cts +6186 -0
- package/dist/components/ds-icon/material-icons.d.cts.map +1 -0
- package/dist/components/ds-icon/material-icons.d.ts +6186 -0
- package/dist/components/ds-icon/material-icons.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.cjs +252 -0
- package/dist/components/ds-modal/ds-modal.d.cts +79 -0
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.d.ts +79 -0
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.js +251 -0
- package/dist/components/ds-modal/ds-modal.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.module.cjs +31 -0
- package/dist/components/ds-modal/ds-modal.module.js +31 -0
- package/dist/components/ds-modal/ds-modal.module.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts.map +1 -0
- package/dist/components/ds-modal/index.cjs +1 -0
- package/dist/components/ds-modal/index.d.ts +2 -0
- package/dist/components/ds-modal/index.js +1 -0
- package/dist/components/ds-number-input/ds-number-input.cjs +158 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.js +157 -0
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.module.cjs +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts.map +1 -0
- package/dist/components/ds-number-input/index.cjs +1 -0
- package/dist/components/ds-number-input/index.d.ts +2 -0
- package/dist/components/ds-number-input/index.js +1 -0
- package/dist/components/ds-panel/ds-panel.cjs +130 -0
- package/dist/components/ds-panel/ds-panel.d.cts +17 -0
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.d.ts +17 -0
- package/dist/components/ds-panel/ds-panel.d.ts.map +1 -0
- package/dist/components/ds-panel/ds-panel.js +128 -0
- package/dist/components/ds-panel/ds-panel.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.module.cjs +13 -0
- package/dist/components/ds-panel/ds-panel.module.js +13 -0
- package/dist/components/ds-panel/ds-panel.module.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts.map +1 -0
- package/dist/components/ds-panel/index.cjs +1 -0
- package/dist/components/ds-panel/index.d.ts +2 -0
- package/dist/components/ds-panel/index.js +1 -0
- package/dist/components/ds-password-input/ds-password-input.cjs +125 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.js +124 -0
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.module.cjs +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts.map +1 -0
- package/dist/components/ds-password-input/index.cjs +1 -0
- package/dist/components/ds-password-input/index.d.ts +2 -0
- package/dist/components/ds-password-input/index.js +1 -0
- package/dist/components/ds-popover/ds-popover.cjs +64 -0
- package/dist/components/ds-popover/ds-popover.d.cts +8 -0
- package/dist/components/ds-popover/ds-popover.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.d.ts +8 -0
- package/dist/components/ds-popover/ds-popover.d.ts.map +1 -0
- package/dist/components/ds-popover/ds-popover.js +62 -0
- package/dist/components/ds-popover/ds-popover.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.module.cjs +9 -0
- package/dist/components/ds-popover/ds-popover.module.js +9 -0
- package/dist/components/ds-popover/ds-popover.module.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts.map +1 -0
- package/dist/components/ds-popover/index.cjs +1 -0
- package/dist/components/ds-popover/index.d.ts +2 -0
- package/dist/components/ds-popover/index.js +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.cjs +255 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.js +252 -0
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.cjs +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.cjs +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.js +1 -0
- package/dist/components/ds-radio-group/index.cjs +2 -0
- package/dist/components/ds-radio-group/index.d.ts +2 -0
- package/dist/components/ds-radio-group/index.js +2 -0
- package/dist/components/ds-select/ds-select.cjs +276 -0
- package/dist/components/ds-select/ds-select.d.cts +21 -0
- package/dist/components/ds-select/ds-select.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.d.ts +21 -0
- package/dist/components/ds-select/ds-select.d.ts.map +1 -0
- package/dist/components/ds-select/ds-select.js +275 -0
- package/dist/components/ds-select/ds-select.js.map +1 -0
- package/dist/components/ds-select/ds-select.module.cjs +24 -0
- package/dist/components/ds-select/ds-select.module.js +24 -0
- package/dist/components/ds-select/ds-select.module.js.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.cts +74 -0
- package/dist/components/ds-select/ds-select.types.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.ts +75 -0
- package/dist/components/ds-select/ds-select.types.d.ts.map +1 -0
- package/dist/components/ds-select/index.cjs +1 -0
- package/dist/components/ds-select/index.d.ts +2 -0
- package/dist/components/ds-select/index.js +1 -0
- package/dist/components/ds-select/select-items-chips.cjs +97 -0
- package/dist/components/ds-select/select-items-chips.js +97 -0
- package/dist/components/ds-select/select-items-chips.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +252 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +251 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.cjs +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.cjs +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -0
- package/dist/components/ds-smart-tabs/index.cjs +2 -0
- package/dist/components/ds-smart-tabs/index.d.ts +2 -0
- package/dist/components/ds-smart-tabs/index.js +2 -0
- package/dist/components/ds-spinner/ds-spinner.cjs +122 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.js +121 -0
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.module.cjs +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.cjs +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.js +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -0
- package/dist/components/ds-spinner/index.cjs +2 -0
- package/dist/components/ds-spinner/index.d.ts +2 -0
- package/dist/components/ds-spinner/index.js +2 -0
- package/dist/components/ds-status-badge/ds-status-badge.cjs +79 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.js +78 -0
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.cjs +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts +47 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts +48 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts.map +1 -0
- package/dist/components/ds-status-badge/index.cjs +1 -0
- package/dist/components/ds-status-badge/index.d.ts +2 -0
- package/dist/components/ds-status-badge/index.js +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.cjs +74 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.js +73 -0
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-description.cjs +23 -0
- package/dist/components/ds-stepper/components/ds-step-description.js +23 -0
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-label.cjs +23 -0
- package/dist/components/ds-stepper/components/ds-step-label.js +23 -0
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +33 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js +33 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.cjs +126 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.js +125 -0
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.cjs +78 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.js +77 -0
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.module.cjs +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts.map +1 -0
- package/dist/components/ds-stepper/hooks/use-stepper.cjs +14 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js +13 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -0
- package/dist/components/ds-stepper/hooks/use-steps.cjs +40 -0
- package/dist/components/ds-stepper/hooks/use-steps.js +39 -0
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -0
- package/dist/components/ds-stepper/index.cjs +4 -0
- package/dist/components/ds-stepper/index.d.ts +5 -0
- package/dist/components/ds-stepper/index.js +4 -0
- package/dist/components/ds-system-status/ds-system-status.cjs +67 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.js +66 -0
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.module.cjs +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.cjs +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.js +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -0
- package/dist/components/ds-system-status/index.cjs +2 -0
- package/dist/components/ds-system-status/index.d.ts +2 -0
- package/dist/components/ds-system-status/index.js +2 -0
- package/dist/components/ds-table/components/core-table/core-table.cjs +312 -0
- package/dist/components/ds-table/components/core-table/core-table.js +306 -0
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -0
- package/dist/components/ds-table/components/core-table/core-table.module.cjs +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js.map +1 -0
- package/dist/components/ds-table/components/core-table/index.cjs +1 -0
- package/dist/components/ds-table/components/core-table/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +161 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +160 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +175 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +174 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.cjs +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts +41 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts +42 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +104 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +103 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +312 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +310 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.cjs +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.js +1 -0
- package/dist/components/ds-table/context/ds-table-context.cjs +14 -0
- package/dist/components/ds-table/context/ds-table-context.js +13 -0
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -0
- package/dist/components/ds-table/ds-table.cjs +200 -0
- package/dist/components/ds-table/ds-table.d.cts +45 -0
- package/dist/components/ds-table/ds-table.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.d.ts +45 -0
- package/dist/components/ds-table/ds-table.d.ts.map +1 -0
- package/dist/components/ds-table/ds-table.js +199 -0
- package/dist/components/ds-table/ds-table.js.map +1 -0
- package/dist/components/ds-table/ds-table.module.cjs +25 -0
- package/dist/components/ds-table/ds-table.module.js +25 -0
- package/dist/components/ds-table/ds-table.module.js.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.cts +332 -0
- package/dist/components/ds-table/ds-table.types.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.ts +333 -0
- package/dist/components/ds-table/ds-table.types.d.ts.map +1 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +142 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +141 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -0
- package/dist/components/ds-table/index.cjs +1 -0
- package/dist/components/ds-table/index.d.ts +4 -0
- package/dist/components/ds-table/index.js +1 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.cjs +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js.map +1 -0
- package/dist/components/ds-table/utils/column-styling.cjs +23 -0
- package/dist/components/ds-table/utils/column-styling.js +23 -0
- package/dist/components/ds-table/utils/column-styling.js.map +1 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.cjs +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -0
- package/dist/components/ds-table/utils/merge-refs.cjs +13 -0
- package/dist/components/ds-table/utils/merge-refs.js +13 -0
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.cjs +142 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.js +141 -0
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.module.cjs +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.cjs +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.js +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -0
- package/dist/components/ds-text-input/index.cjs +2 -0
- package/dist/components/ds-text-input/index.d.ts +2 -0
- package/dist/components/ds-text-input/index.js +2 -0
- package/dist/components/ds-textarea/ds-textarea.cjs +78 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.js +77 -0
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.module.cjs +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts.map +1 -0
- package/dist/components/ds-textarea/index.cjs +1 -0
- package/dist/components/ds-textarea/index.d.ts +2 -0
- package/dist/components/ds-textarea/index.js +1 -0
- package/dist/components/ds-toast/ds-toast-context.cjs +85 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.js +84 -0
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.cjs +129 -0
- package/dist/components/ds-toast/ds-toast.js +129 -0
- package/dist/components/ds-toast/ds-toast.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.module.cjs +11 -0
- package/dist/components/ds-toast/ds-toast.module.js +11 -0
- package/dist/components/ds-toast/ds-toast.module.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts.map +1 -0
- package/dist/components/ds-toast/index.cjs +1 -0
- package/dist/components/ds-toast/index.d.ts +2 -0
- package/dist/components/ds-toast/index.js +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.cjs +74 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.js +72 -0
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.cjs +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts.map +1 -0
- package/dist/components/ds-tooltip/index.cjs +1 -0
- package/dist/components/ds-tooltip/index.d.ts +2 -0
- package/dist/components/ds-tooltip/index.js +1 -0
- package/dist/components/ds-typography/ds-typography.cjs +65 -0
- package/dist/components/ds-typography/ds-typography.config.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.js +30 -0
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.cts +10 -0
- package/dist/components/ds-typography/ds-typography.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.ts +10 -0
- package/dist/components/ds-typography/ds-typography.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.js +64 -0
- package/dist/components/ds-typography/ds-typography.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.module.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.module.js +30 -0
- package/dist/components/ds-typography/ds-typography.module.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts.map +1 -0
- package/dist/components/ds-typography/index.cjs +1 -0
- package/dist/components/ds-typography/index.d.ts +2 -0
- package/dist/components/ds-typography/index.js +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +137 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +136 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.cjs +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/index.cjs +1 -0
- package/dist/components/ds-vertical-tabs/index.d.ts +2 -0
- package/dist/components/ds-vertical-tabs/index.js +1 -0
- package/dist/index.cjs +136 -5394
- package/dist/index.d.cts +78 -9157
- package/dist/index.d.ts +112 -9157
- package/dist/index.js +83 -5335
- package/dist/index.min.css +1 -0
- package/package.json +10 -3
- package/src/components/ds-drawer/ds-drawer.module.scss +2 -2
- package/src/styles/_grid-variables.scss +13 -0
- package/src/styles/_grid.scss +17 -29
- package/dist/index.css +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import ds_icon_default from "../../../ds-icon/ds-icon.js";
|
|
2
|
+
import "../../../ds-icon/index.js";
|
|
3
|
+
import { DsDropdownMenu } from "../../../ds-dropdown-menu/ds-dropdown-menu.js";
|
|
4
|
+
import "../../../ds-dropdown-menu/index.js";
|
|
5
|
+
import ds_table_cell_module_default from "./ds-table-cell.module.js";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import classNames from "classnames";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { flexRender } from "@tanstack/react-table";
|
|
10
|
+
|
|
11
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.tsx
|
|
12
|
+
const DsDefaultTableCell = (t0) => {
|
|
13
|
+
const $ = c(4);
|
|
14
|
+
const { cell } = t0;
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] !== cell) {
|
|
17
|
+
t1 = flexRender(cell.column.columnDef.cell, cell.getContext());
|
|
18
|
+
$[0] = cell;
|
|
19
|
+
$[1] = t1;
|
|
20
|
+
} else t1 = $[1];
|
|
21
|
+
let t2;
|
|
22
|
+
if ($[2] !== t1) {
|
|
23
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: ds_table_cell_module_default.tableCellEllipsis,
|
|
25
|
+
children: t1
|
|
26
|
+
});
|
|
27
|
+
$[2] = t1;
|
|
28
|
+
$[3] = t2;
|
|
29
|
+
} else t2 = $[3];
|
|
30
|
+
return t2;
|
|
31
|
+
};
|
|
32
|
+
const DsTableCell = (t0) => {
|
|
33
|
+
const $ = c(28);
|
|
34
|
+
const { row, cell, primaryRowActions: t1, secondaryRowActions: t2 } = t0;
|
|
35
|
+
let t3;
|
|
36
|
+
if ($[0] !== t1) {
|
|
37
|
+
t3 = t1 === void 0 ? [] : t1;
|
|
38
|
+
$[0] = t1;
|
|
39
|
+
$[1] = t3;
|
|
40
|
+
} else t3 = $[1];
|
|
41
|
+
const primaryRowActions = t3;
|
|
42
|
+
let t4;
|
|
43
|
+
if ($[2] !== t2) {
|
|
44
|
+
t4 = t2 === void 0 ? [] : t2;
|
|
45
|
+
$[2] = t2;
|
|
46
|
+
$[3] = t4;
|
|
47
|
+
} else t4 = $[3];
|
|
48
|
+
const secondaryRowActions = t4;
|
|
49
|
+
if (primaryRowActions.length || secondaryRowActions.length) {
|
|
50
|
+
let t5$1;
|
|
51
|
+
if ($[4] !== row || $[5] !== secondaryRowActions) {
|
|
52
|
+
let t6$1;
|
|
53
|
+
if ($[7] !== row) {
|
|
54
|
+
t6$1 = (action) => !action.disabled?.(row.original);
|
|
55
|
+
$[7] = row;
|
|
56
|
+
$[8] = t6$1;
|
|
57
|
+
} else t6$1 = $[8];
|
|
58
|
+
t5$1 = secondaryRowActions.some(t6$1);
|
|
59
|
+
$[4] = row;
|
|
60
|
+
$[5] = secondaryRowActions;
|
|
61
|
+
$[6] = t5$1;
|
|
62
|
+
} else t5$1 = $[6];
|
|
63
|
+
const hasSecondaryRowActions = t5$1;
|
|
64
|
+
let t6;
|
|
65
|
+
if ($[9] !== cell) {
|
|
66
|
+
t6 = /* @__PURE__ */ jsx(DsDefaultTableCell, { cell });
|
|
67
|
+
$[9] = cell;
|
|
68
|
+
$[10] = t6;
|
|
69
|
+
} else t6 = $[10];
|
|
70
|
+
let t7;
|
|
71
|
+
if ($[11] !== primaryRowActions || $[12] !== row) {
|
|
72
|
+
let t8$1;
|
|
73
|
+
if ($[14] !== row) {
|
|
74
|
+
t8$1 = (action_0, i) => {
|
|
75
|
+
const isDisabled = action_0.disabled?.(row.original);
|
|
76
|
+
const label = typeof action_0.label === "function" ? action_0.label(row.original) : action_0.label;
|
|
77
|
+
return /* @__PURE__ */ jsx("button", {
|
|
78
|
+
type: "button",
|
|
79
|
+
className: classNames(ds_table_cell_module_default.rowActionIcon, { [ds_table_cell_module_default.disabled]: isDisabled }),
|
|
80
|
+
title: action_0.tooltip || label,
|
|
81
|
+
onClick: (e) => {
|
|
82
|
+
e.stopPropagation();
|
|
83
|
+
if (isDisabled) return;
|
|
84
|
+
action_0.onClick(row.original);
|
|
85
|
+
},
|
|
86
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
87
|
+
"aria-label": label,
|
|
88
|
+
"aria-disabled": isDisabled,
|
|
89
|
+
children: /* @__PURE__ */ jsx(ds_icon_default, {
|
|
90
|
+
icon: action_0.icon,
|
|
91
|
+
size: "tiny"
|
|
92
|
+
})
|
|
93
|
+
}, i);
|
|
94
|
+
};
|
|
95
|
+
$[14] = row;
|
|
96
|
+
$[15] = t8$1;
|
|
97
|
+
} else t8$1 = $[15];
|
|
98
|
+
t7 = primaryRowActions.map(t8$1);
|
|
99
|
+
$[11] = primaryRowActions;
|
|
100
|
+
$[12] = row;
|
|
101
|
+
$[13] = t7;
|
|
102
|
+
} else t7 = $[13];
|
|
103
|
+
let t8;
|
|
104
|
+
if ($[16] !== hasSecondaryRowActions || $[17] !== row || $[18] !== secondaryRowActions) {
|
|
105
|
+
t8 = hasSecondaryRowActions && /* @__PURE__ */ jsxs(DsDropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DsDropdownMenu.Trigger, {
|
|
106
|
+
className: classNames(ds_table_cell_module_default.rowActionIcon, ds_table_cell_module_default.secondaryActionsTrigger),
|
|
107
|
+
"aria-label": "More actions",
|
|
108
|
+
asChild: true,
|
|
109
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
title: "More actions",
|
|
112
|
+
"aria-label": "More actions",
|
|
113
|
+
onClick: _temp,
|
|
114
|
+
children: /* @__PURE__ */ jsx(ds_icon_default, {
|
|
115
|
+
icon: "more_vert",
|
|
116
|
+
size: "tiny"
|
|
117
|
+
})
|
|
118
|
+
})
|
|
119
|
+
}), /* @__PURE__ */ jsx(DsDropdownMenu.Content, { children: secondaryRowActions.map((action_1, i_0) => {
|
|
120
|
+
const label_0 = typeof action_1.label === "function" ? action_1.label(row.original) : action_1.label;
|
|
121
|
+
const isDisabled_0 = action_1.disabled?.(row.original);
|
|
122
|
+
return /* @__PURE__ */ jsxs(DsDropdownMenu.Item, {
|
|
123
|
+
value: label_0,
|
|
124
|
+
disabled: isDisabled_0,
|
|
125
|
+
onClick: _temp2,
|
|
126
|
+
onSelect: () => action_1.onClick(row.original),
|
|
127
|
+
children: [action_1.icon && /* @__PURE__ */ jsx(ds_icon_default, { icon: action_1.icon }), /* @__PURE__ */ jsx("span", { children: label_0 })]
|
|
128
|
+
}, i_0);
|
|
129
|
+
}) })] });
|
|
130
|
+
$[16] = hasSecondaryRowActions;
|
|
131
|
+
$[17] = row;
|
|
132
|
+
$[18] = secondaryRowActions;
|
|
133
|
+
$[19] = t8;
|
|
134
|
+
} else t8 = $[19];
|
|
135
|
+
let t9;
|
|
136
|
+
if ($[20] !== t7 || $[21] !== t8) {
|
|
137
|
+
t9 = /* @__PURE__ */ jsxs("div", {
|
|
138
|
+
className: ds_table_cell_module_default.cellActions,
|
|
139
|
+
children: [t7, t8]
|
|
140
|
+
});
|
|
141
|
+
$[20] = t7;
|
|
142
|
+
$[21] = t8;
|
|
143
|
+
$[22] = t9;
|
|
144
|
+
} else t9 = $[22];
|
|
145
|
+
let t10;
|
|
146
|
+
if ($[23] !== t6 || $[24] !== t9) {
|
|
147
|
+
t10 = /* @__PURE__ */ jsxs("div", {
|
|
148
|
+
className: ds_table_cell_module_default.lastCell,
|
|
149
|
+
children: [t6, t9]
|
|
150
|
+
});
|
|
151
|
+
$[23] = t6;
|
|
152
|
+
$[24] = t9;
|
|
153
|
+
$[25] = t10;
|
|
154
|
+
} else t10 = $[25];
|
|
155
|
+
return t10;
|
|
156
|
+
}
|
|
157
|
+
let t5;
|
|
158
|
+
if ($[26] !== cell) {
|
|
159
|
+
t5 = /* @__PURE__ */ jsx(DsDefaultTableCell, { cell });
|
|
160
|
+
$[26] = cell;
|
|
161
|
+
$[27] = t5;
|
|
162
|
+
} else t5 = $[27];
|
|
163
|
+
return t5;
|
|
164
|
+
};
|
|
165
|
+
function _temp(e_0) {
|
|
166
|
+
return e_0.stopPropagation();
|
|
167
|
+
}
|
|
168
|
+
function _temp2(e_1) {
|
|
169
|
+
return e_1.stopPropagation();
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
//#endregion
|
|
173
|
+
export { DsTableCell };
|
|
174
|
+
//# sourceMappingURL=ds-table-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-cell.js","names":["Cell","flexRender","classnames","DsIcon","DsDropdownMenu","styles","DsTableCellProps","DsDefaultTableCell","t0","$","_c","cell","t1","column","columnDef","getContext","t2","tableCellEllipsis","DsTableCell","row","primaryRowActions","secondaryRowActions","t3","undefined","t4","length","t5","t6","action","disabled","original","some","hasSecondaryRowActions","t7","t8","action_0","i","isDisabled","label","rowActionIcon","tooltip","e","stopPropagation","onClick","icon","map","secondaryActionsTrigger","_temp","action_1","i_0","label_0","isDisabled_0","_temp2","t9","cellActions","t10","lastCell","e_0","e_1"],"sources":["../../../../../src/components/ds-table/components/ds-table-cell/ds-table-cell.tsx"],"sourcesContent":["import { type Cell, flexRender } from '@tanstack/react-table';\nimport classnames from 'classnames';\nimport { DsIcon } from '../../../ds-icon';\nimport { DsDropdownMenu } from '../../../ds-dropdown-menu';\nimport styles from './ds-table-cell.module.scss';\nimport type { DsTableCellProps } from './ds-table-cell.types';\n\nconst DsDefaultTableCell = <TData, TValue>({ cell }: { cell: Cell<TData, TValue> }) => {\n\treturn (\n\t\t<div className={styles.tableCellEllipsis}>\n\t\t\t{flexRender(cell.column.columnDef.cell, cell.getContext())}\n\t\t</div>\n\t);\n};\n\nexport const DsTableCell = <TData, TValue>({\n\trow,\n\tcell,\n\tprimaryRowActions = [],\n\tsecondaryRowActions = [],\n}: DsTableCellProps<TData, TValue>) => {\n\tif (primaryRowActions.length || secondaryRowActions.length) {\n\t\tconst hasSecondaryRowActions = secondaryRowActions.some((action) => !action.disabled?.(row.original));\n\t\treturn (\n\t\t\t<div className={styles.lastCell}>\n\t\t\t\t<DsDefaultTableCell cell={cell} />\n\t\t\t\t<div className={styles.cellActions}>\n\t\t\t\t\t{primaryRowActions.map((action, i) => {\n\t\t\t\t\t\tconst isDisabled = action.disabled?.(row.original);\n\t\t\t\t\t\tconst label = typeof action.label === 'function' ? action.label(row.original) : action.label;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\tclassName={classnames(styles.rowActionIcon, { [styles.disabled]: isDisabled })}\n\t\t\t\t\t\t\t\ttitle={action.tooltip || label}\n\t\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\t\te.stopPropagation();\n\n\t\t\t\t\t\t\t\t\tif (isDisabled) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\taction.onClick(row.original);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\ttabIndex={isDisabled ? -1 : 0}\n\t\t\t\t\t\t\t\taria-label={label}\n\t\t\t\t\t\t\t\taria-disabled={isDisabled}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<DsIcon icon={action.icon} size=\"tiny\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t\t{hasSecondaryRowActions && (\n\t\t\t\t\t\t<DsDropdownMenu.Root>\n\t\t\t\t\t\t\t<DsDropdownMenu.Trigger\n\t\t\t\t\t\t\t\tclassName={classnames(styles.rowActionIcon, styles.secondaryActionsTrigger)}\n\t\t\t\t\t\t\t\taria-label=\"More actions\"\n\t\t\t\t\t\t\t\tasChild\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\ttitle=\"More actions\"\n\t\t\t\t\t\t\t\t\taria-label=\"More actions\"\n\t\t\t\t\t\t\t\t\tonClick={(e) => e.stopPropagation()}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<DsIcon icon=\"more_vert\" size=\"tiny\" />\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</DsDropdownMenu.Trigger>\n\t\t\t\t\t\t\t<DsDropdownMenu.Content>\n\t\t\t\t\t\t\t\t{secondaryRowActions.map((action, i) => {\n\t\t\t\t\t\t\t\t\tconst label =\n\t\t\t\t\t\t\t\t\t\ttypeof action.label === 'function' ? action.label(row.original) : action.label;\n\t\t\t\t\t\t\t\t\tconst isDisabled = action.disabled?.(row.original);\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<DsDropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\t\t\t\t\t\tvalue={label}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\t\t\t\t\t\t\tonClick={(e) => e.stopPropagation()}\n\t\t\t\t\t\t\t\t\t\t\tonSelect={() => action.onClick(row.original)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{action.icon && <DsIcon icon={action.icon} />}\n\t\t\t\t\t\t\t\t\t\t\t<span>{label}</span>\n\t\t\t\t\t\t\t\t\t\t</DsDropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</DsDropdownMenu.Content>\n\t\t\t\t\t\t</DsDropdownMenu.Root>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\treturn <DsDefaultTableCell cell={cell} />;\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.module.scss
|
|
3
|
+
var ds_table_cell_module_default = {
|
|
4
|
+
"tableCellEllipsis": "_tableCellEllipsis_37042_1",
|
|
5
|
+
"lastCell": "_lastCell_37042_1",
|
|
6
|
+
"cellActions": "_cellActions_37042_1",
|
|
7
|
+
"rowActionIcon": "_rowActionIcon_37042_1",
|
|
8
|
+
"disabled": "_disabled_37042_1",
|
|
9
|
+
"secondaryActionsTrigger": "_secondaryActionsTrigger_37042_1"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.default = ds_table_cell_module_default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.module.scss
|
|
2
|
+
var ds_table_cell_module_default = {
|
|
3
|
+
"tableCellEllipsis": "_tableCellEllipsis_37042_1",
|
|
4
|
+
"lastCell": "_lastCell_37042_1",
|
|
5
|
+
"cellActions": "_cellActions_37042_1",
|
|
6
|
+
"rowActionIcon": "_rowActionIcon_37042_1",
|
|
7
|
+
"disabled": "_disabled_37042_1",
|
|
8
|
+
"secondaryActionsTrigger": "_secondaryActionsTrigger_37042_1"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ds_table_cell_module_default as default };
|
|
13
|
+
//# sourceMappingURL=ds-table-cell.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-cell.module.js","names":[],"sources":["../../../../../src/components/ds-table/components/ds-table-cell/ds-table-cell.module.scss"],"sourcesContent":["@use '../../../../styles/typography';\n\n.tableCellEllipsis {\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 2;\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tword-break: break-word;\n}\n\n.lastCell {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\theight: 100%;\n\tflex: 1;\n\n\t.cellActions {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 8px;\n\t}\n}\n\n.rowActionIcon {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 36px;\n\theight: 36px;\n\tborder-radius: 50%;\n\tbackground: none;\n\tcursor: pointer;\n\ttransition: background 0.15s;\n\tcolor: var(--color-icon-secondary);\n\n\t&.disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t\tpointer-events: none;\n\t}\n\n\t&:hover,\n\t&:focus-within {\n\t\tbackground: var(--color-background-action-hover-weak);\n\t\tcolor: var(--color-font-action);\n\t}\n}\n\n.secondaryActionsTrigger {\n\tmargin-inline-start: var(--spacing-sm);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IconType } from "../../../ds-icon/ds-icon.types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Represents an action that can be performed on a single row
|
|
7
|
+
*/
|
|
8
|
+
interface RowAction<TData> {
|
|
9
|
+
/**
|
|
10
|
+
* Icon to be displayed for the action
|
|
11
|
+
*/
|
|
12
|
+
icon: IconType;
|
|
13
|
+
/**
|
|
14
|
+
* Label text for the action
|
|
15
|
+
*/
|
|
16
|
+
label: string | ((row: TData) => string);
|
|
17
|
+
/**
|
|
18
|
+
* Optional tooltip text to show on hover
|
|
19
|
+
*/
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional function to determine if the action should be disabled for a specific row
|
|
23
|
+
*/
|
|
24
|
+
disabled?: (row: TData) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Function to be called when the action is clicked, receives the row data as parameter
|
|
27
|
+
*/
|
|
28
|
+
onClick: (row: TData) => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Represents a secondary action that can be performed on a single row
|
|
32
|
+
*/
|
|
33
|
+
type SecondaryRowAction<TData> = Omit<RowAction<TData>, 'icon'> & {
|
|
34
|
+
/**
|
|
35
|
+
* Optional icon to be displayed for the action
|
|
36
|
+
*/
|
|
37
|
+
icon?: IconType;
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { RowAction, SecondaryRowAction };
|
|
41
|
+
//# sourceMappingURL=ds-table-cell.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-cell.types.d.cts","names":[],"sources":["../../../../../src/components/ds-table/components/ds-table-cell/ds-table-cell.types.ts"],"sourcesContent":[],"mappings":";;;;;AAMA;;AASwB,UATP,SASO,CAAA,KAAA,CAAA,CAAA;EAUN;;;EAWN,IAAA,EA1BL,QA0BK;EAA2C;;;EAI/C,KAAA,EAAA,MAAA,GAAA,CAAA,CAAA,GAAA,EAzBgB,KAyBhB,EAAA,GAAA,MAAA,CAAA;EAAQ;;;;;;;mBAfE;;;;iBAKF;;;;;KAMJ,4BAA4B,KAAK,UAAU;;;;SAI/C"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IconType } from "../../../ds-icon/ds-icon.types.js";
|
|
2
|
+
import "../../../ds-icon/index.js";
|
|
3
|
+
import "@tanstack/react-table";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Represents an action that can be performed on a single row
|
|
8
|
+
*/
|
|
9
|
+
interface RowAction<TData> {
|
|
10
|
+
/**
|
|
11
|
+
* Icon to be displayed for the action
|
|
12
|
+
*/
|
|
13
|
+
icon: IconType;
|
|
14
|
+
/**
|
|
15
|
+
* Label text for the action
|
|
16
|
+
*/
|
|
17
|
+
label: string | ((row: TData) => string);
|
|
18
|
+
/**
|
|
19
|
+
* Optional tooltip text to show on hover
|
|
20
|
+
*/
|
|
21
|
+
tooltip?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional function to determine if the action should be disabled for a specific row
|
|
24
|
+
*/
|
|
25
|
+
disabled?: (row: TData) => boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Function to be called when the action is clicked, receives the row data as parameter
|
|
28
|
+
*/
|
|
29
|
+
onClick: (row: TData) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Represents a secondary action that can be performed on a single row
|
|
33
|
+
*/
|
|
34
|
+
type SecondaryRowAction<TData> = Omit<RowAction<TData>, 'icon'> & {
|
|
35
|
+
/**
|
|
36
|
+
* Optional icon to be displayed for the action
|
|
37
|
+
*/
|
|
38
|
+
icon?: IconType;
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { RowAction, SecondaryRowAction };
|
|
42
|
+
//# sourceMappingURL=ds-table-cell.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-cell.types.d.ts","names":[],"sources":["../../../../../src/components/ds-table/components/ds-table-cell/ds-table-cell.types.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAMiB,UAAA,SAAS,CAAA,KAAA,CAAA,CAAA;EAInB;;;EAoBS,IAAA,EApBT,QAoBS;EAAK;AAMrB;;EAA6C,KAAA,EAAA,MAAA,GAAA,CAAA,CAAA,GAAA,EArBrB,KAqBqB,EAAA,GAAA,MAAA,CAAA;EAAL;;;;;;;mBAXtB;;;;iBAKF;;;;;KAMJ,4BAA4B,KAAK,UAAU;;;;SAI/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_table_cell = require('./ds-table-cell.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DsTableCell } from "./ds-table-cell.js";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ds_icon = require('../../../ds-icon/ds-icon.cjs');
|
|
3
|
+
require('../../../ds-icon/index.cjs');
|
|
4
|
+
const require_ds_checkbox = require('../../../ds-checkbox/ds-checkbox.cjs');
|
|
5
|
+
require('../../../ds-checkbox/index.cjs');
|
|
6
|
+
const require_core_table = require('../core-table/core-table.cjs');
|
|
7
|
+
require('../core-table/index.cjs');
|
|
8
|
+
const require_ds_table_header_module = require('./ds-table-header.module.cjs');
|
|
9
|
+
const require_ds_table_shared_module = require('../../styles/shared/ds-table-shared.module.cjs');
|
|
10
|
+
const require_ds_table_context = require('../../context/ds-table-context.cjs');
|
|
11
|
+
const require_column_styling = require('../../utils/column-styling.cjs');
|
|
12
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
13
|
+
let classnames = require("classnames");
|
|
14
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
15
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
+
let __tanstack_react_table = require("@tanstack/react-table");
|
|
17
|
+
|
|
18
|
+
//#region src/components/ds-table/components/ds-table-header/ds-table-header.tsx
|
|
19
|
+
const DsTableHeader = (t0) => {
|
|
20
|
+
const $ = (0, react_compiler_runtime.c)(14);
|
|
21
|
+
const { table } = t0;
|
|
22
|
+
const { stickyHeader, bordered, expandable, selectable, reorderable, showSelectAllCheckbox, virtualized } = require_ds_table_context.useDsTableContext();
|
|
23
|
+
const t1 = stickyHeader && require_ds_table_header_module.default.stickyHeader;
|
|
24
|
+
const t2 = virtualized && require_ds_table_header_module.default.virtualizedHeader;
|
|
25
|
+
let t3;
|
|
26
|
+
if ($[0] !== t1 || $[1] !== t2) {
|
|
27
|
+
t3 = (0, classnames.default)(t1, t2);
|
|
28
|
+
$[0] = t1;
|
|
29
|
+
$[1] = t2;
|
|
30
|
+
$[2] = t3;
|
|
31
|
+
} else t3 = $[2];
|
|
32
|
+
let t4;
|
|
33
|
+
if ($[3] !== bordered || $[4] !== expandable || $[5] !== reorderable || $[6] !== selectable || $[7] !== showSelectAllCheckbox || $[8] !== table || $[9] !== virtualized) {
|
|
34
|
+
t4 = table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_core_table.TableRow, {
|
|
35
|
+
className: (0, classnames.default)(require_ds_table_header_module.default.headerRow, !bordered && require_ds_table_header_module.default.headerRowNoBorder, virtualized && require_ds_table_header_module.default.headerRowVirtualized),
|
|
36
|
+
children: [
|
|
37
|
+
selectable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableHead, {
|
|
38
|
+
className: (0, classnames.default)(require_ds_table_header_module.default.headerCell, require_ds_table_header_module.default.selectColumn),
|
|
39
|
+
children: showSelectAllCheckbox && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_checkbox.default, {
|
|
40
|
+
className: require_ds_table_shared_module.default.checkboxContainer,
|
|
41
|
+
checked: table.getIsAllRowsSelected() ? true : table.getIsSomeRowsSelected() ? "indeterminate" : false,
|
|
42
|
+
onClick: (e) => {
|
|
43
|
+
e.stopPropagation();
|
|
44
|
+
table.getToggleAllRowsSelectedHandler()(e);
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
}),
|
|
48
|
+
expandable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableHead, { className: (0, classnames.default)(require_ds_table_header_module.default.headerCell, require_ds_table_header_module.default.expandColumn) }),
|
|
49
|
+
reorderable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableHead, {
|
|
50
|
+
className: (0, classnames.default)(require_ds_table_header_module.default.headerCell, require_ds_table_header_module.default.reorderColumn),
|
|
51
|
+
children: "Order"
|
|
52
|
+
}),
|
|
53
|
+
headerGroup.headers.map((header, idx) => {
|
|
54
|
+
const isLastColumn = idx === headerGroup.headers.length - 1;
|
|
55
|
+
const headerStyle = require_column_styling.getColumnStyle(header.column.getSize(), virtualized, isLastColumn);
|
|
56
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableHead, {
|
|
57
|
+
className: (0, classnames.default)(require_ds_table_header_module.default.headerCell, header.column.getCanSort() && require_ds_table_header_module.default.sortableHeader),
|
|
58
|
+
onClick: header.column.getToggleSortingHandler(),
|
|
59
|
+
style: headerStyle,
|
|
60
|
+
children: header.isPlaceholder ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
61
|
+
className: require_ds_table_header_module.default.headerSortContainer,
|
|
62
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: (0, __tanstack_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }), header.column.getCanSort() && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
63
|
+
className: require_ds_table_header_module.default.pageButtonIconContainer,
|
|
64
|
+
children: {
|
|
65
|
+
asc: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
66
|
+
icon: "arrow_drop_up",
|
|
67
|
+
className: (0, classnames.default)(require_ds_table_header_module.default.pageButtonIcon, require_ds_table_shared_module.default.pageButtonIcon)
|
|
68
|
+
}),
|
|
69
|
+
desc: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
70
|
+
icon: "arrow_drop_down",
|
|
71
|
+
className: (0, classnames.default)(require_ds_table_header_module.default.pageButtonIcon, require_ds_table_shared_module.default.pageButtonIcon)
|
|
72
|
+
})
|
|
73
|
+
}[header.column.getIsSorted()] ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)(require_ds_table_header_module.default.pageButtonIcon, require_ds_table_shared_module.default.pageButtonIcon) })
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
}, header.id);
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
}, headerGroup.id));
|
|
80
|
+
$[3] = bordered;
|
|
81
|
+
$[4] = expandable;
|
|
82
|
+
$[5] = reorderable;
|
|
83
|
+
$[6] = selectable;
|
|
84
|
+
$[7] = showSelectAllCheckbox;
|
|
85
|
+
$[8] = table;
|
|
86
|
+
$[9] = virtualized;
|
|
87
|
+
$[10] = t4;
|
|
88
|
+
} else t4 = $[10];
|
|
89
|
+
let t5;
|
|
90
|
+
if ($[11] !== t3 || $[12] !== t4) {
|
|
91
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableHeader, {
|
|
92
|
+
className: t3,
|
|
93
|
+
children: t4
|
|
94
|
+
});
|
|
95
|
+
$[11] = t3;
|
|
96
|
+
$[12] = t4;
|
|
97
|
+
$[13] = t5;
|
|
98
|
+
} else t5 = $[13];
|
|
99
|
+
return t5;
|
|
100
|
+
};
|
|
101
|
+
var ds_table_header_default = DsTableHeader;
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
exports.default = ds_table_header_default;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import ds_icon_default from "../../../ds-icon/ds-icon.js";
|
|
2
|
+
import "../../../ds-icon/index.js";
|
|
3
|
+
import ds_checkbox_default from "../../../ds-checkbox/ds-checkbox.js";
|
|
4
|
+
import "../../../ds-checkbox/index.js";
|
|
5
|
+
import { TableHead, TableHeader, TableRow } from "../core-table/core-table.js";
|
|
6
|
+
import "../core-table/index.js";
|
|
7
|
+
import ds_table_header_module_default from "./ds-table-header.module.js";
|
|
8
|
+
import ds_table_shared_module_default from "../../styles/shared/ds-table-shared.module.js";
|
|
9
|
+
import { useDsTableContext } from "../../context/ds-table-context.js";
|
|
10
|
+
import { getColumnStyle } from "../../utils/column-styling.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
|
+
import classNames from "classnames";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { flexRender } from "@tanstack/react-table";
|
|
15
|
+
|
|
16
|
+
//#region src/components/ds-table/components/ds-table-header/ds-table-header.tsx
|
|
17
|
+
const DsTableHeader = (t0) => {
|
|
18
|
+
const $ = c(14);
|
|
19
|
+
const { table } = t0;
|
|
20
|
+
const { stickyHeader, bordered, expandable, selectable, reorderable, showSelectAllCheckbox, virtualized } = useDsTableContext();
|
|
21
|
+
const t1 = stickyHeader && ds_table_header_module_default.stickyHeader;
|
|
22
|
+
const t2 = virtualized && ds_table_header_module_default.virtualizedHeader;
|
|
23
|
+
let t3;
|
|
24
|
+
if ($[0] !== t1 || $[1] !== t2) {
|
|
25
|
+
t3 = classNames(t1, t2);
|
|
26
|
+
$[0] = t1;
|
|
27
|
+
$[1] = t2;
|
|
28
|
+
$[2] = t3;
|
|
29
|
+
} else t3 = $[2];
|
|
30
|
+
let t4;
|
|
31
|
+
if ($[3] !== bordered || $[4] !== expandable || $[5] !== reorderable || $[6] !== selectable || $[7] !== showSelectAllCheckbox || $[8] !== table || $[9] !== virtualized) {
|
|
32
|
+
t4 = table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsxs(TableRow, {
|
|
33
|
+
className: classNames(ds_table_header_module_default.headerRow, !bordered && ds_table_header_module_default.headerRowNoBorder, virtualized && ds_table_header_module_default.headerRowVirtualized),
|
|
34
|
+
children: [
|
|
35
|
+
selectable && /* @__PURE__ */ jsx(TableHead, {
|
|
36
|
+
className: classNames(ds_table_header_module_default.headerCell, ds_table_header_module_default.selectColumn),
|
|
37
|
+
children: showSelectAllCheckbox && /* @__PURE__ */ jsx(ds_checkbox_default, {
|
|
38
|
+
className: ds_table_shared_module_default.checkboxContainer,
|
|
39
|
+
checked: table.getIsAllRowsSelected() ? true : table.getIsSomeRowsSelected() ? "indeterminate" : false,
|
|
40
|
+
onClick: (e) => {
|
|
41
|
+
e.stopPropagation();
|
|
42
|
+
table.getToggleAllRowsSelectedHandler()(e);
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
expandable && /* @__PURE__ */ jsx(TableHead, { className: classNames(ds_table_header_module_default.headerCell, ds_table_header_module_default.expandColumn) }),
|
|
47
|
+
reorderable && /* @__PURE__ */ jsx(TableHead, {
|
|
48
|
+
className: classNames(ds_table_header_module_default.headerCell, ds_table_header_module_default.reorderColumn),
|
|
49
|
+
children: "Order"
|
|
50
|
+
}),
|
|
51
|
+
headerGroup.headers.map((header, idx) => {
|
|
52
|
+
const isLastColumn = idx === headerGroup.headers.length - 1;
|
|
53
|
+
const headerStyle = getColumnStyle(header.column.getSize(), virtualized, isLastColumn);
|
|
54
|
+
return /* @__PURE__ */ jsx(TableHead, {
|
|
55
|
+
className: classNames(ds_table_header_module_default.headerCell, header.column.getCanSort() && ds_table_header_module_default.sortableHeader),
|
|
56
|
+
onClick: header.column.getToggleSortingHandler(),
|
|
57
|
+
style: headerStyle,
|
|
58
|
+
children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs("div", {
|
|
59
|
+
className: ds_table_header_module_default.headerSortContainer,
|
|
60
|
+
children: [/* @__PURE__ */ jsx("div", { children: flexRender(header.column.columnDef.header, header.getContext()) }), header.column.getCanSort() && /* @__PURE__ */ jsx("div", {
|
|
61
|
+
className: ds_table_header_module_default.pageButtonIconContainer,
|
|
62
|
+
children: {
|
|
63
|
+
asc: /* @__PURE__ */ jsx(ds_icon_default, {
|
|
64
|
+
icon: "arrow_drop_up",
|
|
65
|
+
className: classNames(ds_table_header_module_default.pageButtonIcon, ds_table_shared_module_default.pageButtonIcon)
|
|
66
|
+
}),
|
|
67
|
+
desc: /* @__PURE__ */ jsx(ds_icon_default, {
|
|
68
|
+
icon: "arrow_drop_down",
|
|
69
|
+
className: classNames(ds_table_header_module_default.pageButtonIcon, ds_table_shared_module_default.pageButtonIcon)
|
|
70
|
+
})
|
|
71
|
+
}[header.column.getIsSorted()] ?? /* @__PURE__ */ jsx("div", { className: classNames(ds_table_header_module_default.pageButtonIcon, ds_table_shared_module_default.pageButtonIcon) })
|
|
72
|
+
})]
|
|
73
|
+
})
|
|
74
|
+
}, header.id);
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
}, headerGroup.id));
|
|
78
|
+
$[3] = bordered;
|
|
79
|
+
$[4] = expandable;
|
|
80
|
+
$[5] = reorderable;
|
|
81
|
+
$[6] = selectable;
|
|
82
|
+
$[7] = showSelectAllCheckbox;
|
|
83
|
+
$[8] = table;
|
|
84
|
+
$[9] = virtualized;
|
|
85
|
+
$[10] = t4;
|
|
86
|
+
} else t4 = $[10];
|
|
87
|
+
let t5;
|
|
88
|
+
if ($[11] !== t3 || $[12] !== t4) {
|
|
89
|
+
t5 = /* @__PURE__ */ jsx(TableHeader, {
|
|
90
|
+
className: t3,
|
|
91
|
+
children: t4
|
|
92
|
+
});
|
|
93
|
+
$[11] = t3;
|
|
94
|
+
$[12] = t4;
|
|
95
|
+
$[13] = t5;
|
|
96
|
+
} else t5 = $[13];
|
|
97
|
+
return t5;
|
|
98
|
+
};
|
|
99
|
+
var ds_table_header_default = DsTableHeader;
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
export { ds_table_header_default as default };
|
|
103
|
+
//# sourceMappingURL=ds-table-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-header.js","names":["flexRender","classnames","DsCheckbox","DsIcon","TableHead","TableHeader","TableRow","styles","stylesShared","DsTableHeaderProps","useDsTableContext","getColumnStyle","DsTableHeader","t0","$","_c","table","stickyHeader","bordered","expandable","selectable","reorderable","showSelectAllCheckbox","virtualized","t1","t2","virtualizedHeader","t3","t4","getHeaderGroups","map","headerGroup","id","headerRow","headerRowNoBorder","headerRowVirtualized","headerCell","selectColumn","checkboxContainer","getIsAllRowsSelected","getIsSomeRowsSelected","e","stopPropagation","toggleHandler","getToggleAllRowsSelectedHandler","expandColumn","reorderColumn","headers","header","idx","isLastColumn","length","headerStyle","column","getSize","getCanSort","sortableHeader","getToggleSortingHandler","isPlaceholder","headerSortContainer","columnDef","getContext","pageButtonIconContainer","asc","pageButtonIcon","desc","getIsSorted","t5"],"sources":["../../../../../src/components/ds-table/components/ds-table-header/ds-table-header.tsx"],"sourcesContent":["import { flexRender } from '@tanstack/react-table';\nimport classnames from 'classnames';\nimport { DsCheckbox } from '../../../ds-checkbox';\nimport { DsIcon } from '../../../ds-icon';\nimport { TableHead, TableHeader, TableRow } from '../core-table';\nimport styles from './ds-table-header.module.scss';\nimport stylesShared from '../../styles/shared/ds-table-shared.module.scss';\nimport type { DsTableHeaderProps } from './ds-table-header.types';\nimport { useDsTableContext } from '../../context/ds-table-context';\nimport { getColumnStyle } from '../../utils/column-styling';\n\nconst DsTableHeader = <TData,>({ table }: DsTableHeaderProps<TData>) => {\n\tconst { stickyHeader, bordered, expandable, selectable, reorderable, showSelectAllCheckbox, virtualized } =\n\t\tuseDsTableContext<TData, unknown>();\n\n\treturn (\n\t\t<TableHeader\n\t\t\tclassName={classnames(stickyHeader && styles.stickyHeader, virtualized && styles.virtualizedHeader)}\n\t\t>\n\t\t\t{table.getHeaderGroups().map((headerGroup) => (\n\t\t\t\t<TableRow\n\t\t\t\t\tkey={headerGroup.id}\n\t\t\t\t\tclassName={classnames(\n\t\t\t\t\t\tstyles.headerRow,\n\t\t\t\t\t\t!bordered && styles.headerRowNoBorder,\n\t\t\t\t\t\tvirtualized && styles.headerRowVirtualized,\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{selectable && (\n\t\t\t\t\t\t<TableHead className={classnames(styles.headerCell, styles.selectColumn)}>\n\t\t\t\t\t\t\t{showSelectAllCheckbox && (\n\t\t\t\t\t\t\t\t<DsCheckbox\n\t\t\t\t\t\t\t\t\tclassName={stylesShared.checkboxContainer}\n\t\t\t\t\t\t\t\t\tchecked={\n\t\t\t\t\t\t\t\t\t\ttable.getIsAllRowsSelected()\n\t\t\t\t\t\t\t\t\t\t\t? true\n\t\t\t\t\t\t\t\t\t\t\t: table.getIsSomeRowsSelected()\n\t\t\t\t\t\t\t\t\t\t\t\t? 'indeterminate'\n\t\t\t\t\t\t\t\t\t\t\t\t: false\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\t\t\t\tconst toggleHandler = table.getToggleAllRowsSelectedHandler();\n\t\t\t\t\t\t\t\t\t\ttoggleHandler(e);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</TableHead>\n\t\t\t\t\t)}\n\t\t\t\t\t{expandable && <TableHead className={classnames(styles.headerCell, styles.expandColumn)} />}\n\t\t\t\t\t{reorderable && (\n\t\t\t\t\t\t<TableHead className={classnames(styles.headerCell, styles.reorderColumn)}>Order</TableHead>\n\t\t\t\t\t)}\n\t\t\t\t\t{headerGroup.headers.map((header, idx) => {\n\t\t\t\t\t\tconst isLastColumn = idx === headerGroup.headers.length - 1;\n\t\t\t\t\t\tconst headerStyle = getColumnStyle(header.column.getSize(), virtualized, isLastColumn);\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<TableHead\n\t\t\t\t\t\t\t\tkey={header.id}\n\t\t\t\t\t\t\t\tclassName={classnames(styles.headerCell, header.column.getCanSort() && styles.sortableHeader)}\n\t\t\t\t\t\t\t\tonClick={header.column.getToggleSortingHandler()}\n\t\t\t\t\t\t\t\tstyle={headerStyle}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{header.isPlaceholder ? null : (\n\t\t\t\t\t\t\t\t\t<div className={styles.headerSortContainer}>\n\t\t\t\t\t\t\t\t\t\t<div>{flexRender(header.column.columnDef.header, header.getContext())}</div>\n\t\t\t\t\t\t\t\t\t\t{header.column.getCanSort() && (\n\t\t\t\t\t\t\t\t\t\t\t<div className={styles.pageButtonIconContainer}>\n\t\t\t\t\t\t\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t\t\t\t\t\t\tasc: (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<DsIcon\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon=\"arrow_drop_up\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={classnames(styles.pageButtonIcon, stylesShared.pageButtonIcon)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\tdesc: (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<DsIcon\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon=\"arrow_drop_down\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={classnames(styles.pageButtonIcon, stylesShared.pageButtonIcon)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t}[header.column.getIsSorted() as string] ?? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className={classnames(styles.pageButtonIcon, stylesShared.pageButtonIcon)} />\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</TableHead>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</TableRow>\n\t\t\t))}\n\t\t</TableHeader>\n\t);\n};\n\nexport default DsTableHeader;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/components/ds-table-header/ds-table-header.module.scss
|
|
3
|
+
var ds_table_header_module_default = {
|
|
4
|
+
"stickyHeader": "_stickyHeader_jlsaf_1",
|
|
5
|
+
"virtualizedHeader": "_virtualizedHeader_jlsaf_1",
|
|
6
|
+
"headerRow": "_headerRow_jlsaf_1",
|
|
7
|
+
"headerCell": "_headerCell_jlsaf_1",
|
|
8
|
+
"selectColumn": "_selectColumn_jlsaf_1",
|
|
9
|
+
"headerRowNoBorder": "_headerRowNoBorder_jlsaf_1",
|
|
10
|
+
"headerRowVirtualized": "_headerRowVirtualized_jlsaf_1",
|
|
11
|
+
"expandColumn": "_expandColumn_jlsaf_1",
|
|
12
|
+
"reorderColumn": "_reorderColumn_jlsaf_1",
|
|
13
|
+
"sortableHeader": "_sortableHeader_jlsaf_1",
|
|
14
|
+
"pageButtonIconContainer": "_pageButtonIconContainer_jlsaf_1",
|
|
15
|
+
"pageButtonIcon": "_pageButtonIcon_jlsaf_1",
|
|
16
|
+
"headerSortContainer": "_headerSortContainer_jlsaf_1"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.default = ds_table_header_module_default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/components/ds-table/components/ds-table-header/ds-table-header.module.scss
|
|
2
|
+
var ds_table_header_module_default = {
|
|
3
|
+
"stickyHeader": "_stickyHeader_jlsaf_1",
|
|
4
|
+
"virtualizedHeader": "_virtualizedHeader_jlsaf_1",
|
|
5
|
+
"headerRow": "_headerRow_jlsaf_1",
|
|
6
|
+
"headerCell": "_headerCell_jlsaf_1",
|
|
7
|
+
"selectColumn": "_selectColumn_jlsaf_1",
|
|
8
|
+
"headerRowNoBorder": "_headerRowNoBorder_jlsaf_1",
|
|
9
|
+
"headerRowVirtualized": "_headerRowVirtualized_jlsaf_1",
|
|
10
|
+
"expandColumn": "_expandColumn_jlsaf_1",
|
|
11
|
+
"reorderColumn": "_reorderColumn_jlsaf_1",
|
|
12
|
+
"sortableHeader": "_sortableHeader_jlsaf_1",
|
|
13
|
+
"pageButtonIconContainer": "_pageButtonIconContainer_jlsaf_1",
|
|
14
|
+
"pageButtonIcon": "_pageButtonIcon_jlsaf_1",
|
|
15
|
+
"headerSortContainer": "_headerSortContainer_jlsaf_1"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ds_table_header_module_default as default };
|
|
20
|
+
//# sourceMappingURL=ds-table-header.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-header.module.js","names":[],"sources":["../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/components/ds-table-header/ds-table-header.module.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/styles/_variables.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_typography.scss"],"sourcesContent":["@use '../../../../styles/typography';\n@use '../../styles/variables' as vars;\n\n.stickyHeader {\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 10;\n\tbackground-color: var(--color-background);\n}\n\n.virtualizedHeader {\n\tdisplay: grid;\n\tgrid-template-columns: subgrid;\n\tgrid-column: 1 / -1;\n}\n\n.headerRow {\n\t.headerCell {\n\t\tborder-bottom: 1px solid var(--neutral-6);\n\n\t\t&.selectColumn {\n\t\t\twidth: vars.$select-column-width;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t&.headerRowNoBorder {\n\t\t.headerCell {\n\t\t\tborder-bottom: none;\n\t\t}\n\t}\n}\n\n.headerRowVirtualized {\n\tdisplay: grid;\n\tgrid-template-columns: subgrid;\n\tgrid-column: 1 / -1;\n\talign-items: center;\n}\n\n.expandColumn {\n\twidth: vars.$expand-column-width;\n}\n\n.reorderColumn {\n\twidth: vars.$reorder-column-width;\n}\n\n.headerCell {\n\t@include typography.body-sm-md;\n\tcolor: var(--color-font-main);\n\ttext-align: left;\n\tpadding: 0 var(--spacing-standard);\n\theight: var(--ds-table-header-height);\n\n\t&.sortableHeader {\n\t\tcursor: pointer;\n\t\tuser-select: none;\n\t}\n\n\t.pageButtonIconContainer {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 24px;\n\t\theight: 24px;\n\n\t\t&.pageButtonIcon {\n\t\t\tcolor: var(--neutral-4);\n\t\t\ttransition: transform 0.2s ease-in-out;\n\t\t}\n\t}\n}\n\n.headerSortContainer {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: vars.$header-sort-gap;\n\theight: 100%;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_table_header = require('./ds-table-header.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_table_header_default from "./ds-table-header.js";
|