@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,25 @@
|
|
|
1
|
+
//#region src/components/ds-table/ds-table.module.scss
|
|
2
|
+
var ds_table_module_default = {
|
|
3
|
+
"rotate": "_rotate_hyd6q_1",
|
|
4
|
+
"rotate-45": "_rotate-45_hyd6q_1",
|
|
5
|
+
"rotate-90": "_rotate-90_hyd6q_1",
|
|
6
|
+
"rotate-135": "_rotate-135_hyd6q_1",
|
|
7
|
+
"rotate-180": "_rotate-180_hyd6q_1",
|
|
8
|
+
"rotate-225": "_rotate-225_hyd6q_1",
|
|
9
|
+
"rotate-270": "_rotate-270_hyd6q_1",
|
|
10
|
+
"rotate-315": "_rotate-315_hyd6q_1",
|
|
11
|
+
"container": "_container_hyd6q_1",
|
|
12
|
+
"virtualizedContainer": "_virtualizedContainer_hyd6q_1",
|
|
13
|
+
"dataTableContainer": "_dataTableContainer_hyd6q_1",
|
|
14
|
+
"table": "_table_hyd6q_1",
|
|
15
|
+
"tableNoBorder": "_tableNoBorder_hyd6q_1",
|
|
16
|
+
"fullWidth": "_fullWidth_hyd6q_1",
|
|
17
|
+
"emptyState": "_emptyState_hyd6q_1",
|
|
18
|
+
"emptyStateVirtualized": "_emptyStateVirtualized_hyd6q_1",
|
|
19
|
+
"virtualized": "_virtualized_hyd6q_1",
|
|
20
|
+
"virtualizedBody": "_virtualizedBody_hyd6q_1"
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ds_table_module_default as default };
|
|
25
|
+
//# sourceMappingURL=ds-table.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table.module.js","names":[],"sources":["../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_utilities.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/ds-table.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","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_variables.scss"],"sourcesContent":["@use '../../styles/typography';\n@use '../../styles/utilities' as utils;\n@use './styles/variables' as vars;\n\n.container {\n\tborder-radius: vars.$border-radius;\n\tborder-width: vars.$border-width;\n\tborder-style: solid;\n\tborder-color: var(--neutral-6);\n\tbackground: var(--color-background);\n}\n\n.virtualizedContainer {\n\tposition: relative;\n\theight: vars.$virtualized-height;\n\toverflow: auto;\n}\n\n.dataTableContainer {\n\tmax-height: 100%;\n\toverflow: auto;\n}\n\n.table {\n\twidth: 100%;\n\tcaption-side: bottom;\n\t@include typography.p-base;\n\n\t&.tableNoBorder {\n\t\tborder-collapse: separate;\n\t\tborder-spacing: 0;\n\t\tborder: none;\n\t}\n}\n\n.fullWidth {\n\twidth: 100%;\n}\n\n.emptyState {\n\theight: vars.$empty-state-height;\n\ttext-align: center;\n}\n\n.emptyStateVirtualized {\n\tposition: absolute;\n\tinset: 0;\n\ttop: var(--ds-table-header-height);\n}\n\n.virtualized {\n\tdisplay: grid;\n\tgrid-template-columns: var(--ds-table-columns-template);\n}\n\n.virtualizedBody {\n\tdisplay: grid;\n\tgrid-template-columns: subgrid;\n\tgrid-column: 1 / -1;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { IconType } from "../ds-icon/ds-icon.types.cjs";
|
|
2
|
+
import { RowAction, SecondaryRowAction } from "./components/ds-table-cell/ds-table-cell.types.cjs";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ColumnDef, ColumnFiltersState, SortingState, Table, VisibilityState } from "@tanstack/react-table";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ds-table/ds-table.types.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Row size variants based on Figma design specifications
|
|
10
|
+
*/
|
|
11
|
+
type DsTableRowSize = 'small' | 'medium' | 'large';
|
|
12
|
+
/**
|
|
13
|
+
* Parameters passed to the onScroll callback in virtualized tables.
|
|
14
|
+
*/
|
|
15
|
+
interface ScrollParams {
|
|
16
|
+
/** The current vertical scroll position from the top of the scrollable content (in pixels) */
|
|
17
|
+
scrollOffset: number;
|
|
18
|
+
/** The total height of all content in the virtualized table (in pixels) */
|
|
19
|
+
totalContentHeight: number;
|
|
20
|
+
/** The visible height of the table container (in pixels) */
|
|
21
|
+
viewportHeight: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* API for programmatically controlling a DsTable component.
|
|
25
|
+
* This interface provides methods to interact with the table's selection, sorting, filtering, and pagination features.
|
|
26
|
+
*
|
|
27
|
+
* @template TData - The type of data items in the table
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const tableRef = useRef<DsTableApi<Person>>(null);
|
|
32
|
+
*
|
|
33
|
+
* // Select a specific row
|
|
34
|
+
* tableRef.current?.selectRow('row-1');
|
|
35
|
+
*
|
|
36
|
+
* // Select multiple rows
|
|
37
|
+
* tableRef.current?.selectRows(['row-1', 'row-2', 'row-3']);
|
|
38
|
+
*
|
|
39
|
+
* // Get all selected rows
|
|
40
|
+
* const selected = tableRef.current?.getSelectedRows();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
interface DsTableApi<TData> {
|
|
44
|
+
/**
|
|
45
|
+
* Selects a single row by its ID.
|
|
46
|
+
*
|
|
47
|
+
* @param rowId - The unique identifier of the row to select
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* tableRef.current?.selectRow('user-123');
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
selectRow: (rowId: string) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Deselects a single row by its ID.
|
|
57
|
+
*
|
|
58
|
+
* @param rowId - The unique identifier of the row to deselect
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* tableRef.current?.deselectRow('user-123');
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
deselectRow: (rowId: string) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Selects all visible rows in the table.
|
|
68
|
+
* This includes rows that are currently filtered or paginated.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```tsx
|
|
72
|
+
* tableRef.current?.selectAllRows();
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
selectAllRows: () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Deselects all rows in the table.
|
|
78
|
+
* Clears the current selection state.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```tsx
|
|
82
|
+
* tableRef.current?.deselectAllRows();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
deselectAllRows: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Selects multiple rows by their IDs.
|
|
88
|
+
*
|
|
89
|
+
* @param rowIds - Array of unique identifiers for the rows to select
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```tsx
|
|
93
|
+
* tableRef.current?.selectRows(['user-1', 'user-2', 'user-3']);
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
selectRows: (rowIds: string[]) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Returns an array of all currently selected row data.
|
|
99
|
+
*
|
|
100
|
+
* @returns Array of selected row data objects
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```tsx
|
|
104
|
+
* const selectedUsers = tableRef.current?.getSelectedRows();
|
|
105
|
+
* console.log('Selected users:', selectedUsers);
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
getSelectedRows: () => TData[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Represents a bulk action that can be performed on multiple selected rows
|
|
112
|
+
*/
|
|
113
|
+
interface Action<TData> {
|
|
114
|
+
/**
|
|
115
|
+
* Icon to be displayed for the action
|
|
116
|
+
*/
|
|
117
|
+
icon: IconType;
|
|
118
|
+
/**
|
|
119
|
+
* Label text for the action
|
|
120
|
+
*/
|
|
121
|
+
label: string;
|
|
122
|
+
/**
|
|
123
|
+
* Function to be called when the action is clicked, receives the selected rows as parameter
|
|
124
|
+
*/
|
|
125
|
+
onClick: (rows: TData[]) => void;
|
|
126
|
+
}
|
|
127
|
+
interface DsDataTableProps<TData, TValue> {
|
|
128
|
+
/**
|
|
129
|
+
* Ref to the table API
|
|
130
|
+
*/
|
|
131
|
+
ref?: React.RefObject<DsTableApi<TData> | null>;
|
|
132
|
+
/**
|
|
133
|
+
* Columns of the table
|
|
134
|
+
*/
|
|
135
|
+
columns: ColumnDef<TData, TValue>[];
|
|
136
|
+
/**
|
|
137
|
+
* Data of the table
|
|
138
|
+
*/
|
|
139
|
+
data: TData[];
|
|
140
|
+
/**
|
|
141
|
+
* Whether the table is virtualized
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
virtualized?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Options for the virtualized table
|
|
147
|
+
*/
|
|
148
|
+
virtualizedOptions?: {
|
|
149
|
+
/**
|
|
150
|
+
* Estimate size of the table
|
|
151
|
+
*/
|
|
152
|
+
estimateSize?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Overscan of the table
|
|
155
|
+
*/
|
|
156
|
+
overscan?: number;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Class name of the table
|
|
160
|
+
*/
|
|
161
|
+
className?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Function to handle row click
|
|
164
|
+
*/
|
|
165
|
+
onRowClick?: (row: TData) => void;
|
|
166
|
+
/**
|
|
167
|
+
* Function to handle row double click
|
|
168
|
+
*/
|
|
169
|
+
onRowDoubleClick?: (row: TData) => void;
|
|
170
|
+
/**
|
|
171
|
+
* ID of the currently active row (useful for showing drawer/panel associations)
|
|
172
|
+
* When set, the row with this ID will be visually highlighted with a persistent active state
|
|
173
|
+
* @example
|
|
174
|
+
* ```tsx
|
|
175
|
+
* const [activeRowId, setActiveRowId] = useState<string | null>(null);
|
|
176
|
+
* const [isDrawerOpen, setIsDrawerOpen] = useState(false);
|
|
177
|
+
*
|
|
178
|
+
* <DsTable
|
|
179
|
+
* activeRowId={isDrawerOpen ? activeRowId : null}
|
|
180
|
+
* onRowClick={(row) => {
|
|
181
|
+
* setActiveRowId(row.id);
|
|
182
|
+
* setIsDrawerOpen(true);
|
|
183
|
+
* }}
|
|
184
|
+
* />
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
activeRowId?: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* Empty state of the table
|
|
190
|
+
*/
|
|
191
|
+
emptyState?: React.ReactNode;
|
|
192
|
+
/**
|
|
193
|
+
* Whether the table has sticky header
|
|
194
|
+
*/
|
|
195
|
+
stickyHeader?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Whether the table has zebra stripes
|
|
198
|
+
*/
|
|
199
|
+
zebra?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Whether the table has bordered cells
|
|
202
|
+
*/
|
|
203
|
+
bordered?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Whether the table is full width
|
|
206
|
+
*/
|
|
207
|
+
fullWidth?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Whether the table has highlight on hover
|
|
210
|
+
*/
|
|
211
|
+
highlightOnHover?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Row size variant (small: 36px, medium: 48px, large: 64px)
|
|
214
|
+
* @default 'medium'
|
|
215
|
+
*/
|
|
216
|
+
rowSize?: DsTableRowSize;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the table is expandable or if an individual row should be expandable
|
|
219
|
+
*/
|
|
220
|
+
expandable?: boolean | ((row: TData) => boolean);
|
|
221
|
+
/**
|
|
222
|
+
* Function to render the expanded row
|
|
223
|
+
*/
|
|
224
|
+
renderExpandedRow?: (row: TData) => React.ReactNode;
|
|
225
|
+
/**
|
|
226
|
+
* Function to handle table creation
|
|
227
|
+
*/
|
|
228
|
+
onTableCreated?: (table: Table<TData>) => void;
|
|
229
|
+
/**
|
|
230
|
+
* Whether the table rows are selectable. Can be a boolean or a function that receives row data and returns whether it can be selected.
|
|
231
|
+
* @default false
|
|
232
|
+
* @example
|
|
233
|
+
* ```tsx
|
|
234
|
+
* // Enable selection for all rows
|
|
235
|
+
* selectable={true}
|
|
236
|
+
*
|
|
237
|
+
* // Disable selection for rows where status is 'archived'
|
|
238
|
+
* selectable={(rowData) => rowData.status !== 'archived'}
|
|
239
|
+
*
|
|
240
|
+
* // Limit selection to max 3 rows (note: use state to track current selection)
|
|
241
|
+
* selectable={(rowData) => {
|
|
242
|
+
* // This will be called for each row during render
|
|
243
|
+
* const selectedIds = Object.keys(rowSelection).filter(id => rowSelection[id]);
|
|
244
|
+
* return selectedIds.includes(rowData.id) || selectedIds.length < 3;
|
|
245
|
+
* }}
|
|
246
|
+
* ```
|
|
247
|
+
*/
|
|
248
|
+
selectable?: boolean | ((rowData: TData) => boolean);
|
|
249
|
+
/**
|
|
250
|
+
* Whether to show the select/deselect all checkbox in the header
|
|
251
|
+
* @default true
|
|
252
|
+
*/
|
|
253
|
+
showSelectAllCheckbox?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Function to handle selection change
|
|
256
|
+
*/
|
|
257
|
+
onSelectionChange?: (selectedRows: Record<string, boolean>) => void;
|
|
258
|
+
/**
|
|
259
|
+
* Function to handle sorting change
|
|
260
|
+
*/
|
|
261
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
262
|
+
/**
|
|
263
|
+
* Function to handle scroll events in virtualized tables.
|
|
264
|
+
* Called when the user scrolls within the table container.
|
|
265
|
+
*
|
|
266
|
+
* @param params - Scroll parameters containing scroll position and dimensions
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* ```tsx
|
|
270
|
+
* const handleScroll = ({ scrollOffset, totalContentHeight, viewportHeight }) => {
|
|
271
|
+
* const distanceFromBottom = totalContentHeight - scrollOffset - viewportHeight;
|
|
272
|
+
* if (distanceFromBottom < 500) {
|
|
273
|
+
* // Fetch more data when within 500px of bottom
|
|
274
|
+
* fetchNextPage();
|
|
275
|
+
* }
|
|
276
|
+
* };
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
onScroll?: (params: ScrollParams) => void;
|
|
280
|
+
/**
|
|
281
|
+
* Actions to be shown in the bulk actions
|
|
282
|
+
*/
|
|
283
|
+
actions?: Action<TData>[];
|
|
284
|
+
/**
|
|
285
|
+
* Primary actions to be shown on each row (on hover)
|
|
286
|
+
*/
|
|
287
|
+
primaryRowActions?: RowAction<TData>[];
|
|
288
|
+
/**
|
|
289
|
+
* Secondary actions to be shown in a dropdown on each row (on hover)
|
|
290
|
+
*/
|
|
291
|
+
secondaryRowActions?: SecondaryRowAction<TData>[];
|
|
292
|
+
/**
|
|
293
|
+
* Whether the table rows are reorderable via drag & drop
|
|
294
|
+
* @note This feature does not work when virtualization is enabled
|
|
295
|
+
*/
|
|
296
|
+
reorderable?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Callback when the order of rows changes via drag & drop
|
|
299
|
+
*/
|
|
300
|
+
onOrderChange?: (newData: TData[]) => void;
|
|
301
|
+
/**
|
|
302
|
+
* External column filters state
|
|
303
|
+
*/
|
|
304
|
+
columnFilters?: ColumnFiltersState;
|
|
305
|
+
/**
|
|
306
|
+
* Callback when column filters change
|
|
307
|
+
*/
|
|
308
|
+
onColumnFiltersChange?: (filters: ColumnFiltersState) => void;
|
|
309
|
+
/**
|
|
310
|
+
* External column visibility state
|
|
311
|
+
* @example
|
|
312
|
+
* ```tsx
|
|
313
|
+
* const [columnVisibility, setColumnVisibility] = useState<VisibilityState>({
|
|
314
|
+
* age: false, // hide age column
|
|
315
|
+
* status: true, // show status column
|
|
316
|
+
* });
|
|
317
|
+
*
|
|
318
|
+
* <DsTable
|
|
319
|
+
* columnVisibility={columnVisibility}
|
|
320
|
+
* onColumnVisibilityChange={setColumnVisibility}
|
|
321
|
+
* />
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
columnVisibility?: VisibilityState;
|
|
325
|
+
/**
|
|
326
|
+
* Callback when column visibility changes
|
|
327
|
+
*/
|
|
328
|
+
onColumnVisibilityChange?: (visibility: VisibilityState) => void;
|
|
329
|
+
}
|
|
330
|
+
//#endregion
|
|
331
|
+
export { Action, DsDataTableProps, DsTableApi, DsTableRowSize, ScrollParams };
|
|
332
|
+
//# sourceMappingURL=ds-table.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table.types.d.cts","names":[],"sources":["../../../src/components/ds-table/ds-table.types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAcA;AAKiB,KALL,cAAA,GAKiB,OAAA,GAAA,QAAA,GAAA,OAAA;AA6B7B;AA4EA;AAiBA;AAIkC,UA9HjB,YAAA,CA8HiB;EAAX;EAAhB,YAAM,EAAA,MAAA;EAKO;EAAO,kBAAA,EAAA,MAAA;EAAjB;EAKH,cAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;AAsM4B,UAjTlB,UAiTkB,CAAA,KAAA,CAAA,CAAA;EAiBf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA5PI;;;;;UAMP;;;;QAIV;;;;;;;;kBAUU;;UAGA;;;;QAIV,KAAA,CAAM,UAAU,WAAW;;;;WAKxB,UAAU,OAAO;;;;QAKpB;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+Ba;;;;2BAKM;;;;;;;;;;;;;;;;;;;;;;eAwBZ,KAAA,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;YA+BT;;;;gCAKoB;;;;4BAKJ,UAAU,KAAA,CAAM;;;;2BAKjB,MAAM;;;;;;;;;;;;;;;;;;;;oCAqBG;;;;;;;;;qCAWC;;;;8BAKP;;;;;;;;;;;;;;;;;;sBAmBR;;;;YAKV,OAAO;;;;sBAKG,UAAU;;;;wBAKR,mBAAmB;;;;;;;;;4BAWf;;;;kBAKV;;;;oCAKkB;;;;;;;;;;;;;;;;qBAiBf;;;;0CAKqB"}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { IconType } from "../ds-icon/ds-icon.types.js";
|
|
2
|
+
import "../ds-icon/index.js";
|
|
3
|
+
import { RowAction, SecondaryRowAction } from "./components/ds-table-cell/ds-table-cell.types.js";
|
|
4
|
+
import "./components/ds-table-cell/index.js";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { ColumnDef, ColumnFiltersState, SortingState, Table, VisibilityState } from "@tanstack/react-table";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ds-table/ds-table.types.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Row size variants based on Figma design specifications
|
|
11
|
+
*/
|
|
12
|
+
type DsTableRowSize = 'small' | 'medium' | 'large';
|
|
13
|
+
/**
|
|
14
|
+
* Parameters passed to the onScroll callback in virtualized tables.
|
|
15
|
+
*/
|
|
16
|
+
interface ScrollParams {
|
|
17
|
+
/** The current vertical scroll position from the top of the scrollable content (in pixels) */
|
|
18
|
+
scrollOffset: number;
|
|
19
|
+
/** The total height of all content in the virtualized table (in pixels) */
|
|
20
|
+
totalContentHeight: number;
|
|
21
|
+
/** The visible height of the table container (in pixels) */
|
|
22
|
+
viewportHeight: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* API for programmatically controlling a DsTable component.
|
|
26
|
+
* This interface provides methods to interact with the table's selection, sorting, filtering, and pagination features.
|
|
27
|
+
*
|
|
28
|
+
* @template TData - The type of data items in the table
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* const tableRef = useRef<DsTableApi<Person>>(null);
|
|
33
|
+
*
|
|
34
|
+
* // Select a specific row
|
|
35
|
+
* tableRef.current?.selectRow('row-1');
|
|
36
|
+
*
|
|
37
|
+
* // Select multiple rows
|
|
38
|
+
* tableRef.current?.selectRows(['row-1', 'row-2', 'row-3']);
|
|
39
|
+
*
|
|
40
|
+
* // Get all selected rows
|
|
41
|
+
* const selected = tableRef.current?.getSelectedRows();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
interface DsTableApi<TData> {
|
|
45
|
+
/**
|
|
46
|
+
* Selects a single row by its ID.
|
|
47
|
+
*
|
|
48
|
+
* @param rowId - The unique identifier of the row to select
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* tableRef.current?.selectRow('user-123');
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
selectRow: (rowId: string) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Deselects a single row by its ID.
|
|
58
|
+
*
|
|
59
|
+
* @param rowId - The unique identifier of the row to deselect
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* tableRef.current?.deselectRow('user-123');
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
deselectRow: (rowId: string) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Selects all visible rows in the table.
|
|
69
|
+
* This includes rows that are currently filtered or paginated.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```tsx
|
|
73
|
+
* tableRef.current?.selectAllRows();
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
selectAllRows: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Deselects all rows in the table.
|
|
79
|
+
* Clears the current selection state.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```tsx
|
|
83
|
+
* tableRef.current?.deselectAllRows();
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
deselectAllRows: () => void;
|
|
87
|
+
/**
|
|
88
|
+
* Selects multiple rows by their IDs.
|
|
89
|
+
*
|
|
90
|
+
* @param rowIds - Array of unique identifiers for the rows to select
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```tsx
|
|
94
|
+
* tableRef.current?.selectRows(['user-1', 'user-2', 'user-3']);
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
selectRows: (rowIds: string[]) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Returns an array of all currently selected row data.
|
|
100
|
+
*
|
|
101
|
+
* @returns Array of selected row data objects
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```tsx
|
|
105
|
+
* const selectedUsers = tableRef.current?.getSelectedRows();
|
|
106
|
+
* console.log('Selected users:', selectedUsers);
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
getSelectedRows: () => TData[];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Represents a bulk action that can be performed on multiple selected rows
|
|
113
|
+
*/
|
|
114
|
+
interface Action<TData> {
|
|
115
|
+
/**
|
|
116
|
+
* Icon to be displayed for the action
|
|
117
|
+
*/
|
|
118
|
+
icon: IconType;
|
|
119
|
+
/**
|
|
120
|
+
* Label text for the action
|
|
121
|
+
*/
|
|
122
|
+
label: string;
|
|
123
|
+
/**
|
|
124
|
+
* Function to be called when the action is clicked, receives the selected rows as parameter
|
|
125
|
+
*/
|
|
126
|
+
onClick: (rows: TData[]) => void;
|
|
127
|
+
}
|
|
128
|
+
interface DsDataTableProps<TData, TValue> {
|
|
129
|
+
/**
|
|
130
|
+
* Ref to the table API
|
|
131
|
+
*/
|
|
132
|
+
ref?: React.RefObject<DsTableApi<TData> | null>;
|
|
133
|
+
/**
|
|
134
|
+
* Columns of the table
|
|
135
|
+
*/
|
|
136
|
+
columns: ColumnDef<TData, TValue>[];
|
|
137
|
+
/**
|
|
138
|
+
* Data of the table
|
|
139
|
+
*/
|
|
140
|
+
data: TData[];
|
|
141
|
+
/**
|
|
142
|
+
* Whether the table is virtualized
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
virtualized?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Options for the virtualized table
|
|
148
|
+
*/
|
|
149
|
+
virtualizedOptions?: {
|
|
150
|
+
/**
|
|
151
|
+
* Estimate size of the table
|
|
152
|
+
*/
|
|
153
|
+
estimateSize?: number;
|
|
154
|
+
/**
|
|
155
|
+
* Overscan of the table
|
|
156
|
+
*/
|
|
157
|
+
overscan?: number;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Class name of the table
|
|
161
|
+
*/
|
|
162
|
+
className?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Function to handle row click
|
|
165
|
+
*/
|
|
166
|
+
onRowClick?: (row: TData) => void;
|
|
167
|
+
/**
|
|
168
|
+
* Function to handle row double click
|
|
169
|
+
*/
|
|
170
|
+
onRowDoubleClick?: (row: TData) => void;
|
|
171
|
+
/**
|
|
172
|
+
* ID of the currently active row (useful for showing drawer/panel associations)
|
|
173
|
+
* When set, the row with this ID will be visually highlighted with a persistent active state
|
|
174
|
+
* @example
|
|
175
|
+
* ```tsx
|
|
176
|
+
* const [activeRowId, setActiveRowId] = useState<string | null>(null);
|
|
177
|
+
* const [isDrawerOpen, setIsDrawerOpen] = useState(false);
|
|
178
|
+
*
|
|
179
|
+
* <DsTable
|
|
180
|
+
* activeRowId={isDrawerOpen ? activeRowId : null}
|
|
181
|
+
* onRowClick={(row) => {
|
|
182
|
+
* setActiveRowId(row.id);
|
|
183
|
+
* setIsDrawerOpen(true);
|
|
184
|
+
* }}
|
|
185
|
+
* />
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
activeRowId?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Empty state of the table
|
|
191
|
+
*/
|
|
192
|
+
emptyState?: React.ReactNode;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the table has sticky header
|
|
195
|
+
*/
|
|
196
|
+
stickyHeader?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Whether the table has zebra stripes
|
|
199
|
+
*/
|
|
200
|
+
zebra?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Whether the table has bordered cells
|
|
203
|
+
*/
|
|
204
|
+
bordered?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Whether the table is full width
|
|
207
|
+
*/
|
|
208
|
+
fullWidth?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the table has highlight on hover
|
|
211
|
+
*/
|
|
212
|
+
highlightOnHover?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Row size variant (small: 36px, medium: 48px, large: 64px)
|
|
215
|
+
* @default 'medium'
|
|
216
|
+
*/
|
|
217
|
+
rowSize?: DsTableRowSize;
|
|
218
|
+
/**
|
|
219
|
+
* Whether the table is expandable or if an individual row should be expandable
|
|
220
|
+
*/
|
|
221
|
+
expandable?: boolean | ((row: TData) => boolean);
|
|
222
|
+
/**
|
|
223
|
+
* Function to render the expanded row
|
|
224
|
+
*/
|
|
225
|
+
renderExpandedRow?: (row: TData) => React.ReactNode;
|
|
226
|
+
/**
|
|
227
|
+
* Function to handle table creation
|
|
228
|
+
*/
|
|
229
|
+
onTableCreated?: (table: Table<TData>) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Whether the table rows are selectable. Can be a boolean or a function that receives row data and returns whether it can be selected.
|
|
232
|
+
* @default false
|
|
233
|
+
* @example
|
|
234
|
+
* ```tsx
|
|
235
|
+
* // Enable selection for all rows
|
|
236
|
+
* selectable={true}
|
|
237
|
+
*
|
|
238
|
+
* // Disable selection for rows where status is 'archived'
|
|
239
|
+
* selectable={(rowData) => rowData.status !== 'archived'}
|
|
240
|
+
*
|
|
241
|
+
* // Limit selection to max 3 rows (note: use state to track current selection)
|
|
242
|
+
* selectable={(rowData) => {
|
|
243
|
+
* // This will be called for each row during render
|
|
244
|
+
* const selectedIds = Object.keys(rowSelection).filter(id => rowSelection[id]);
|
|
245
|
+
* return selectedIds.includes(rowData.id) || selectedIds.length < 3;
|
|
246
|
+
* }}
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
selectable?: boolean | ((rowData: TData) => boolean);
|
|
250
|
+
/**
|
|
251
|
+
* Whether to show the select/deselect all checkbox in the header
|
|
252
|
+
* @default true
|
|
253
|
+
*/
|
|
254
|
+
showSelectAllCheckbox?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Function to handle selection change
|
|
257
|
+
*/
|
|
258
|
+
onSelectionChange?: (selectedRows: Record<string, boolean>) => void;
|
|
259
|
+
/**
|
|
260
|
+
* Function to handle sorting change
|
|
261
|
+
*/
|
|
262
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
263
|
+
/**
|
|
264
|
+
* Function to handle scroll events in virtualized tables.
|
|
265
|
+
* Called when the user scrolls within the table container.
|
|
266
|
+
*
|
|
267
|
+
* @param params - Scroll parameters containing scroll position and dimensions
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```tsx
|
|
271
|
+
* const handleScroll = ({ scrollOffset, totalContentHeight, viewportHeight }) => {
|
|
272
|
+
* const distanceFromBottom = totalContentHeight - scrollOffset - viewportHeight;
|
|
273
|
+
* if (distanceFromBottom < 500) {
|
|
274
|
+
* // Fetch more data when within 500px of bottom
|
|
275
|
+
* fetchNextPage();
|
|
276
|
+
* }
|
|
277
|
+
* };
|
|
278
|
+
* ```
|
|
279
|
+
*/
|
|
280
|
+
onScroll?: (params: ScrollParams) => void;
|
|
281
|
+
/**
|
|
282
|
+
* Actions to be shown in the bulk actions
|
|
283
|
+
*/
|
|
284
|
+
actions?: Action<TData>[];
|
|
285
|
+
/**
|
|
286
|
+
* Primary actions to be shown on each row (on hover)
|
|
287
|
+
*/
|
|
288
|
+
primaryRowActions?: RowAction<TData>[];
|
|
289
|
+
/**
|
|
290
|
+
* Secondary actions to be shown in a dropdown on each row (on hover)
|
|
291
|
+
*/
|
|
292
|
+
secondaryRowActions?: SecondaryRowAction<TData>[];
|
|
293
|
+
/**
|
|
294
|
+
* Whether the table rows are reorderable via drag & drop
|
|
295
|
+
* @note This feature does not work when virtualization is enabled
|
|
296
|
+
*/
|
|
297
|
+
reorderable?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Callback when the order of rows changes via drag & drop
|
|
300
|
+
*/
|
|
301
|
+
onOrderChange?: (newData: TData[]) => void;
|
|
302
|
+
/**
|
|
303
|
+
* External column filters state
|
|
304
|
+
*/
|
|
305
|
+
columnFilters?: ColumnFiltersState;
|
|
306
|
+
/**
|
|
307
|
+
* Callback when column filters change
|
|
308
|
+
*/
|
|
309
|
+
onColumnFiltersChange?: (filters: ColumnFiltersState) => void;
|
|
310
|
+
/**
|
|
311
|
+
* External column visibility state
|
|
312
|
+
* @example
|
|
313
|
+
* ```tsx
|
|
314
|
+
* const [columnVisibility, setColumnVisibility] = useState<VisibilityState>({
|
|
315
|
+
* age: false, // hide age column
|
|
316
|
+
* status: true, // show status column
|
|
317
|
+
* });
|
|
318
|
+
*
|
|
319
|
+
* <DsTable
|
|
320
|
+
* columnVisibility={columnVisibility}
|
|
321
|
+
* onColumnVisibilityChange={setColumnVisibility}
|
|
322
|
+
* />
|
|
323
|
+
* ```
|
|
324
|
+
*/
|
|
325
|
+
columnVisibility?: VisibilityState;
|
|
326
|
+
/**
|
|
327
|
+
* Callback when column visibility changes
|
|
328
|
+
*/
|
|
329
|
+
onColumnVisibilityChange?: (visibility: VisibilityState) => void;
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
332
|
+
export { Action, DsDataTableProps, DsTableApi, DsTableRowSize, ScrollParams };
|
|
333
|
+
//# sourceMappingURL=ds-table.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table.types.d.ts","names":[],"sources":["../../../src/components/ds-table/ds-table.types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;KAcY,cAAA;AAAZ;AAKA;AA6BA;AA4EiB,UAzGA,YAAA,CAyGM;EAiBN;EAIiB,YAAA,EAAA,MAAA;EAAX;EAAhB,kBAAM,EAAA,MAAA;EAKO;EAAO,cAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;AAiMA,UAvSV,UAuSU,CAAA,KAAA,CAAA,CAAA;EAKV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAtOO;;;;;UAMP;;;;QAIV;;;;;;;;kBAUU;;UAGA;;;;QAIV,KAAA,CAAM,UAAU,WAAW;;;;WAKxB,UAAU,OAAO;;;;QAKpB;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+Ba;;;;2BAKM;;;;;;;;;;;;;;;;;;;;;;eAwBZ,KAAA,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;YA+BT;;;;gCAKoB;;;;4BAKJ,UAAU,KAAA,CAAM;;;;2BAKjB,MAAM;;;;;;;;;;;;;;;;;;;;oCAqBG;;;;;;;;;qCAWC;;;;8BAKP;;;;;;;;;;;;;;;;;;sBAmBR;;;;YAKV,OAAO;;;;sBAKG,UAAU;;;;wBAKR,mBAAmB;;;;;;;;;4BAWf;;;;kBAKV;;;;oCAKkB;;;;;;;;;;;;;;;;qBAiBf;;;;0CAKqB"}
|