@drivenets/design-system 0.0.2 → 0.0.3
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 +7 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +77 -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 +76 -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 +92 -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 +91 -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 +16 -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 +16 -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 +26 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +25 -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 +34 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +33 -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 +52 -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 +50 -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 +60 -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 +59 -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 +81 -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 +80 -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 +97 -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 +96 -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 +283 -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 +280 -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 +83 -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 +82 -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 +96 -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 +95 -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 +156 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +155 -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 +37 -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 +37 -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 +94 -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 +93 -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 +29 -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 +28 -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 +85 -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 +84 -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 +71 -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 +70 -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 +38 -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 +36 -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 +58 -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 +57 -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 +26 -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 +24 -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 +99 -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 +96 -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 +167 -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 +166 -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 +46 -0
- package/dist/components/ds-select/select-items-chips.js +46 -0
- package/dist/components/ds-select/select-items-chips.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +90 -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 +89 -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 +52 -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 +51 -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 +36 -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 +35 -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 +28 -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 +27 -0
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-description.cjs +14 -0
- package/dist/components/ds-stepper/components/ds-step-description.js +14 -0
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-label.cjs +14 -0
- package/dist/components/ds-stepper/components/ds-step-label.js +14 -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 +16 -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 +16 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.cjs +45 -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 +44 -0
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.cjs +31 -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 +30 -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 +20 -0
- package/dist/components/ds-stepper/hooks/use-steps.js +19 -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 +37 -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 +36 -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 +79 -0
- package/dist/components/ds-table/components/core-table/core-table.js +73 -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 +77 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +76 -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 +78 -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 +77 -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 +73 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +72 -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 +140 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +138 -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 +54 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +53 -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 +57 -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 +56 -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 +34 -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 +33 -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 +40 -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 +39 -0
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.cjs +65 -0
- package/dist/components/ds-toast/ds-toast.js +65 -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 +36 -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 +34 -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 +21 -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 +20 -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 +76 -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 +75 -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 +4 -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,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"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
let __dnd_kit_sortable = require("@dnd-kit/sortable");
|
|
6
|
+
let __dnd_kit_core = require("@dnd-kit/core");
|
|
7
|
+
let __dnd_kit_modifiers = require("@dnd-kit/modifiers");
|
|
8
|
+
|
|
9
|
+
//#region src/components/ds-table/hooks/use-drag-and-drop.tsx
|
|
10
|
+
const DragWrapper = ({ children, onDragEnd, sensors }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__dnd_kit_core.DndContext, {
|
|
11
|
+
collisionDetection: __dnd_kit_core.closestCenter,
|
|
12
|
+
modifiers: [__dnd_kit_modifiers.restrictToVerticalAxis],
|
|
13
|
+
onDragEnd,
|
|
14
|
+
sensors,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
const SortableWrapper = ({ children, items }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__dnd_kit_sortable.SortableContext, {
|
|
18
|
+
items,
|
|
19
|
+
strategy: __dnd_kit_sortable.verticalListSortingStrategy,
|
|
20
|
+
children
|
|
21
|
+
});
|
|
22
|
+
function useDragAndDrop({ isDragEnabled, onOrderChange, items }) {
|
|
23
|
+
const dataIds = react.default.useMemo(() => items.map((row) => row.id), [items]);
|
|
24
|
+
const sensors = (0, __dnd_kit_core.useSensors)((0, __dnd_kit_core.useSensor)(__dnd_kit_core.MouseSensor, {}), (0, __dnd_kit_core.useSensor)(__dnd_kit_core.TouchSensor, {}), (0, __dnd_kit_core.useSensor)(__dnd_kit_core.KeyboardSensor, {}));
|
|
25
|
+
const handleDragEnd = react.default.useCallback((event) => {
|
|
26
|
+
const { active, over } = event;
|
|
27
|
+
if (active.id !== over?.id) {
|
|
28
|
+
const oldIndex = items.findIndex((row) => row.id === active.id);
|
|
29
|
+
const newIndex = items.findIndex((row) => row.id === over?.id);
|
|
30
|
+
if (oldIndex !== -1 && newIndex !== -1) {
|
|
31
|
+
const newData = (0, __dnd_kit_sortable.arrayMove)(items, oldIndex, newIndex);
|
|
32
|
+
onOrderChange?.(newData);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, [items, onOrderChange]);
|
|
36
|
+
return {
|
|
37
|
+
DragWrapper: react.default.useMemo(() => isDragEnabled ? ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DragWrapper, {
|
|
38
|
+
onDragEnd: handleDragEnd,
|
|
39
|
+
sensors,
|
|
40
|
+
children
|
|
41
|
+
}) : react.default.Fragment, [
|
|
42
|
+
isDragEnabled,
|
|
43
|
+
handleDragEnd,
|
|
44
|
+
sensors
|
|
45
|
+
]),
|
|
46
|
+
SortableWrapper: react.default.useMemo(() => isDragEnabled ? ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortableWrapper, {
|
|
47
|
+
items: dataIds,
|
|
48
|
+
children
|
|
49
|
+
}) : react.default.Fragment, [isDragEnabled, dataIds])
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
exports.useDragAndDrop = useDragAndDrop;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SortableContext, arrayMove, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
4
|
+
import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
5
|
+
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ds-table/hooks/use-drag-and-drop.tsx
|
|
8
|
+
const DragWrapper = ({ children, onDragEnd, sensors }) => /* @__PURE__ */ jsx(DndContext, {
|
|
9
|
+
collisionDetection: closestCenter,
|
|
10
|
+
modifiers: [restrictToVerticalAxis],
|
|
11
|
+
onDragEnd,
|
|
12
|
+
sensors,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
const SortableWrapper = ({ children, items }) => /* @__PURE__ */ jsx(SortableContext, {
|
|
16
|
+
items,
|
|
17
|
+
strategy: verticalListSortingStrategy,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
function useDragAndDrop({ isDragEnabled, onOrderChange, items }) {
|
|
21
|
+
const dataIds = React.useMemo(() => items.map((row) => row.id), [items]);
|
|
22
|
+
const sensors = useSensors(useSensor(MouseSensor, {}), useSensor(TouchSensor, {}), useSensor(KeyboardSensor, {}));
|
|
23
|
+
const handleDragEnd = React.useCallback((event) => {
|
|
24
|
+
const { active, over } = event;
|
|
25
|
+
if (active.id !== over?.id) {
|
|
26
|
+
const oldIndex = items.findIndex((row) => row.id === active.id);
|
|
27
|
+
const newIndex = items.findIndex((row) => row.id === over?.id);
|
|
28
|
+
if (oldIndex !== -1 && newIndex !== -1) {
|
|
29
|
+
const newData = arrayMove(items, oldIndex, newIndex);
|
|
30
|
+
onOrderChange?.(newData);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, [items, onOrderChange]);
|
|
34
|
+
return {
|
|
35
|
+
DragWrapper: React.useMemo(() => isDragEnabled ? ({ children }) => /* @__PURE__ */ jsx(DragWrapper, {
|
|
36
|
+
onDragEnd: handleDragEnd,
|
|
37
|
+
sensors,
|
|
38
|
+
children
|
|
39
|
+
}) : React.Fragment, [
|
|
40
|
+
isDragEnabled,
|
|
41
|
+
handleDragEnd,
|
|
42
|
+
sensors
|
|
43
|
+
]),
|
|
44
|
+
SortableWrapper: React.useMemo(() => isDragEnabled ? ({ children }) => /* @__PURE__ */ jsx(SortableWrapper, {
|
|
45
|
+
items: dataIds,
|
|
46
|
+
children
|
|
47
|
+
}) : React.Fragment, [isDragEnabled, dataIds])
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
export { useDragAndDrop };
|
|
53
|
+
//# sourceMappingURL=use-drag-and-drop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-drag-and-drop.js","names":[],"sources":["../../../../src/components/ds-table/hooks/use-drag-and-drop.tsx"],"sourcesContent":["import React from 'react';\nimport {\n\ttype DragEndEvent,\n\ttype UniqueIdentifier,\n\tclosestCenter,\n\tDndContext,\n\tKeyboardSensor,\n\tMouseSensor,\n\tTouchSensor,\n\tuseSensor,\n\tuseSensors,\n} from '@dnd-kit/core';\nimport { arrayMove, SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';\nimport { restrictToVerticalAxis } from '@dnd-kit/modifiers';\n\nexport interface UseDragAndDropResult {\n\tDragWrapper: React.ComponentType<React.PropsWithChildren>;\n\tSortableWrapper: React.ComponentType<React.PropsWithChildren>;\n}\n\nexport interface UseDragAndDropOptions<T> {\n\tisDragEnabled: boolean;\n\tonOrderChange?: (newData: T[]) => void;\n\titems: T[];\n}\n\ntype DragWrapperProps = React.PropsWithChildren<{\n\tonDragEnd: (event: DragEndEvent) => void;\n\tsensors: ReturnType<typeof useSensors>;\n}>;\n\nconst DragWrapper = ({ children, onDragEnd, sensors }: DragWrapperProps) => (\n\t<DndContext\n\t\tcollisionDetection={closestCenter}\n\t\tmodifiers={[restrictToVerticalAxis]}\n\t\tonDragEnd={onDragEnd}\n\t\tsensors={sensors}\n\t>\n\t\t{children}\n\t</DndContext>\n);\n\ntype SortableWrapperProps = React.PropsWithChildren<{\n\titems: UniqueIdentifier[];\n}>;\n\nconst SortableWrapper = ({ children, items }: SortableWrapperProps) => (\n\t<SortableContext items={items} strategy={verticalListSortingStrategy}>\n\t\t{children}\n\t</SortableContext>\n);\n\nexport function useDragAndDrop<T extends { id: string }>({\n\tisDragEnabled,\n\tonOrderChange,\n\titems,\n}: UseDragAndDropOptions<T>): UseDragAndDropResult {\n\tconst dataIds = React.useMemo(() => items.map((row) => row.id), [items]);\n\n\tconst sensors = useSensors(\n\t\tuseSensor(MouseSensor, {}),\n\t\tuseSensor(TouchSensor, {}),\n\t\tuseSensor(KeyboardSensor, {}),\n\t);\n\n\tconst handleDragEnd = React.useCallback(\n\t\t(event: DragEndEvent) => {\n\t\t\tconst { active, over } = event;\n\t\t\tif (active.id !== over?.id) {\n\t\t\t\tconst oldIndex = items.findIndex((row) => row.id === active.id);\n\t\t\t\tconst newIndex = items.findIndex((row) => row.id === over?.id);\n\t\t\t\tif (oldIndex !== -1 && newIndex !== -1) {\n\t\t\t\t\tconst newData = arrayMove(items, oldIndex, newIndex);\n\t\t\t\t\tonOrderChange?.(newData);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[items, onOrderChange],\n\t);\n\n\tconst DragWrapperComponent = React.useMemo(\n\t\t() =>\n\t\t\tisDragEnabled\n\t\t\t\t? ({ children }: React.PropsWithChildren) => (\n\t\t\t\t\t\t<DragWrapper onDragEnd={handleDragEnd} sensors={sensors}>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</DragWrapper>\n\t\t\t\t\t)\n\t\t\t\t: React.Fragment,\n\t\t[isDragEnabled, handleDragEnd, sensors],\n\t);\n\n\tconst SortableWrapperComponent = React.useMemo(\n\t\t() =>\n\t\t\tisDragEnabled\n\t\t\t\t? ({ children }: React.PropsWithChildren) => (\n\t\t\t\t\t\t<SortableWrapper items={dataIds}>{children}</SortableWrapper>\n\t\t\t\t\t)\n\t\t\t\t: React.Fragment,\n\t\t[isDragEnabled, dataIds],\n\t);\n\n\treturn {\n\t\tDragWrapper: DragWrapperComponent,\n\t\tSortableWrapper: SortableWrapperComponent,\n\t};\n}\n"],"mappings":";;;;;;;AA+BA,MAAM,eAAe,EAAE,UAAU,WAAW,cAC3C,oBAAC;CACA,oBAAoB;CACpB,WAAW,CAAC,uBAAuB;CACxB;CACF;CAER;EACW;AAOd,MAAM,mBAAmB,EAAE,UAAU,YACpC,oBAAC;CAAuB;CAAO,UAAU;CACvC;EACgB;AAGnB,SAAgB,eAAyC,EACxD,eACA,eACA,SACkD;CAClD,MAAM,UAAU,MAAM,cAAc,MAAM,KAAK,QAAQ,IAAI,GAAG,EAAE,CAAC,MAAM,CAAC;CAExE,MAAM,UAAU,WACf,UAAU,aAAa,EAAE,CAAC,EAC1B,UAAU,aAAa,EAAE,CAAC,EAC1B,UAAU,gBAAgB,EAAE,CAAC,CAC7B;CAED,MAAM,gBAAgB,MAAM,aAC1B,UAAwB;EACxB,MAAM,EAAE,QAAQ,SAAS;AACzB,MAAI,OAAO,OAAO,MAAM,IAAI;GAC3B,MAAM,WAAW,MAAM,WAAW,QAAQ,IAAI,OAAO,OAAO,GAAG;GAC/D,MAAM,WAAW,MAAM,WAAW,QAAQ,IAAI,OAAO,MAAM,GAAG;AAC9D,OAAI,aAAa,MAAM,aAAa,IAAI;IACvC,MAAM,UAAU,UAAU,OAAO,UAAU,SAAS;AACpD,oBAAgB,QAAQ;;;IAI3B,CAAC,OAAO,cAAc,CACtB;AAwBD,QAAO;EACN,aAvB4B,MAAM,cAEjC,iBACI,EAAE,eACH,oBAAC;GAAY,WAAW;GAAwB;GAC9C;IACY,GAEd,MAAM,UACV;GAAC;GAAe;GAAe;GAAQ,CACvC;EAcA,iBAZgC,MAAM,cAErC,iBACI,EAAE,eACH,oBAAC;GAAgB,OAAO;GAAU;IAA2B,GAE7D,MAAM,UACV,CAAC,eAAe,QAAQ,CACxB;EAKA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_table = require('./ds-table.cjs');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RowAction, SecondaryRowAction } from "./components/ds-table-cell/ds-table-cell.types.js";
|
|
2
|
+
import "./components/ds-table-cell/index.js";
|
|
3
|
+
import { Action, DsDataTableProps, DsTableApi, DsTableRowSize, ScrollParams } from "./ds-table.types.js";
|
|
4
|
+
import { DsTable } from "./ds-table.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_table_default from "./ds-table.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/styles/shared/ds-table-shared.module.scss
|
|
3
|
+
var ds_table_shared_module_default = {
|
|
4
|
+
"rotate": "_rotate_1vhho_1",
|
|
5
|
+
"pageButtonIcon": "_pageButtonIcon_1vhho_1",
|
|
6
|
+
"rotate-45": "_rotate-45_1vhho_1",
|
|
7
|
+
"rotate-90": "_rotate-90_1vhho_1",
|
|
8
|
+
"rotate-135": "_rotate-135_1vhho_1",
|
|
9
|
+
"rotate-180": "_rotate-180_1vhho_1",
|
|
10
|
+
"rotate-225": "_rotate-225_1vhho_1",
|
|
11
|
+
"rotate-270": "_rotate-270_1vhho_1",
|
|
12
|
+
"rotate-315": "_rotate-315_1vhho_1",
|
|
13
|
+
"checkboxContainer": "_checkboxContainer_1vhho_1"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.default = ds_table_shared_module_default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/ds-table/styles/shared/ds-table-shared.module.scss
|
|
2
|
+
var ds_table_shared_module_default = {
|
|
3
|
+
"rotate": "_rotate_1vhho_1",
|
|
4
|
+
"pageButtonIcon": "_pageButtonIcon_1vhho_1",
|
|
5
|
+
"rotate-45": "_rotate-45_1vhho_1",
|
|
6
|
+
"rotate-90": "_rotate-90_1vhho_1",
|
|
7
|
+
"rotate-135": "_rotate-135_1vhho_1",
|
|
8
|
+
"rotate-180": "_rotate-180_1vhho_1",
|
|
9
|
+
"rotate-225": "_rotate-225_1vhho_1",
|
|
10
|
+
"rotate-270": "_rotate-270_1vhho_1",
|
|
11
|
+
"rotate-315": "_rotate-315_1vhho_1",
|
|
12
|
+
"checkboxContainer": "_checkboxContainer_1vhho_1"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ds_table_shared_module_default as default };
|
|
17
|
+
//# sourceMappingURL=ds-table-shared.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-shared.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/styles/shared/ds-table-shared.module.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/styles/_variables.scss"],"sourcesContent":["@use '../../../../styles/utilities' as utils;\n@use '../variables' as vars;\n\n.checkboxContainer {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: fit-content;\n\tmargin: auto;\n\theight: 100%;\n}\n\n.pageButtonIcon {\n\tcolor: vars.$expand-toggle-icon-color;\n\t@extend .rotate;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __tanstack_react_table = require("@tanstack/react-table");
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-table/utils/column-styling.ts
|
|
5
|
+
/**
|
|
6
|
+
* Generates the appropriate style object for a table column/cell based on its size and virtualization state
|
|
7
|
+
*
|
|
8
|
+
* @param columnSize - The size of the column
|
|
9
|
+
* @param virtualized - Whether the table is virtualized
|
|
10
|
+
* @param isLastColumn - Whether this is the last column in the row
|
|
11
|
+
* @returns Style object or undefined if no custom styling is needed
|
|
12
|
+
*/
|
|
13
|
+
const getColumnStyle = (columnSize, virtualized, isLastColumn = false) => {
|
|
14
|
+
if (!(columnSize !== __tanstack_react_table.defaultColumnSizing.size)) return;
|
|
15
|
+
if (virtualized) return {
|
|
16
|
+
flexBasis: `${String(columnSize)}px`,
|
|
17
|
+
flexGrow: isLastColumn ? 1 : 0
|
|
18
|
+
};
|
|
19
|
+
return { width: columnSize };
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.getColumnStyle = getColumnStyle;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defaultColumnSizing } from "@tanstack/react-table";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-table/utils/column-styling.ts
|
|
4
|
+
/**
|
|
5
|
+
* Generates the appropriate style object for a table column/cell based on its size and virtualization state
|
|
6
|
+
*
|
|
7
|
+
* @param columnSize - The size of the column
|
|
8
|
+
* @param virtualized - Whether the table is virtualized
|
|
9
|
+
* @param isLastColumn - Whether this is the last column in the row
|
|
10
|
+
* @returns Style object or undefined if no custom styling is needed
|
|
11
|
+
*/
|
|
12
|
+
const getColumnStyle = (columnSize, virtualized, isLastColumn = false) => {
|
|
13
|
+
if (!(columnSize !== defaultColumnSizing.size)) return;
|
|
14
|
+
if (virtualized) return {
|
|
15
|
+
flexBasis: `${String(columnSize)}px`,
|
|
16
|
+
flexGrow: isLastColumn ? 1 : 0
|
|
17
|
+
};
|
|
18
|
+
return { width: columnSize };
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { getColumnStyle };
|
|
23
|
+
//# sourceMappingURL=column-styling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-styling.js","names":[],"sources":["../../../../src/components/ds-table/utils/column-styling.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport { defaultColumnSizing } from '@tanstack/react-table';\n\n/**\n * Generates the appropriate style object for a table column/cell based on its size and virtualization state\n *\n * @param columnSize - The size of the column\n * @param virtualized - Whether the table is virtualized\n * @param isLastColumn - Whether this is the last column in the row\n * @returns Style object or undefined if no custom styling is needed\n */\nexport const getColumnStyle = (\n\tcolumnSize: number,\n\tvirtualized?: boolean,\n\tisLastColumn: boolean = false,\n): CSSProperties | undefined => {\n\tconst hasCustomSize = columnSize !== defaultColumnSizing.size;\n\tif (!hasCustomSize) {\n\t\treturn undefined;\n\t}\n\n\tif (virtualized) {\n\t\treturn {\n\t\t\tflexBasis: `${String(columnSize)}px`,\n\t\t\tflexGrow: isLastColumn ? 1 : 0,\n\t\t};\n\t}\n\n\treturn { width: columnSize };\n};\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,kBACZ,YACA,aACA,eAAwB,UACO;AAE/B,KAAI,EADkB,eAAe,oBAAoB,MAExD;AAGD,KAAI,YACH,QAAO;EACN,WAAW,GAAG,OAAO,WAAW,CAAC;EACjC,UAAU,eAAe,IAAI;EAC7B;AAGF,QAAO,EAAE,OAAO,YAAY"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/utils/create-columns-grid-template.ts
|
|
3
|
+
function createColumnsGridTemplate({ columns, selectable }) {
|
|
4
|
+
return columns.reduce((acc, col) => {
|
|
5
|
+
acc.push(col.size ? `${String(col.size)}px` : "auto");
|
|
6
|
+
return acc;
|
|
7
|
+
}, selectable ? ["max-content"] : []).join(" ");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.createColumnsGridTemplate = createColumnsGridTemplate;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/ds-table/utils/create-columns-grid-template.ts
|
|
2
|
+
function createColumnsGridTemplate({ columns, selectable }) {
|
|
3
|
+
return columns.reduce((acc, col) => {
|
|
4
|
+
acc.push(col.size ? `${String(col.size)}px` : "auto");
|
|
5
|
+
return acc;
|
|
6
|
+
}, selectable ? ["max-content"] : []).join(" ");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createColumnsGridTemplate };
|
|
11
|
+
//# sourceMappingURL=create-columns-grid-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-columns-grid-template.js","names":[],"sources":["../../../../src/components/ds-table/utils/create-columns-grid-template.ts"],"sourcesContent":["import type { ColumnDef } from '@tanstack/react-table';\n\ntype Args = {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tcolumns: ColumnDef<any, any>[];\n\tselectable?: boolean;\n};\n\n// In virtualized tables, the rows should all be positioned at the top with a `translateY` offset.\n// We're using a Grid for this rather than `position: absolute` to ensure that each cell aligns with\n// other cells in the same column (mimicking the native table behavior).\nexport function createColumnsGridTemplate({ columns, selectable }: Args): string {\n\treturn columns\n\t\t.reduce<string[]>(\n\t\t\t(acc, col) => {\n\t\t\t\tacc.push(col.size ? `${String(col.size)}px` : 'auto');\n\n\t\t\t\treturn acc;\n\t\t\t},\n\t\t\tselectable ? ['max-content'] : [],\n\t\t)\n\t\t.join(' ');\n}\n"],"mappings":";AAWA,SAAgB,0BAA0B,EAAE,SAAS,cAA4B;AAChF,QAAO,QACL,QACC,KAAK,QAAQ;AACb,MAAI,KAAK,IAAI,OAAO,GAAG,OAAO,IAAI,KAAK,CAAC,MAAM,OAAO;AAErD,SAAO;IAER,aAAa,CAAC,cAAc,GAAG,EAAE,CACjC,CACA,KAAK,IAAI"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/utils/merge-refs.ts
|
|
3
|
+
const mergeRefs = (...refs) => {
|
|
4
|
+
return (value) => {
|
|
5
|
+
refs.filter((r) => !!r).forEach((ref) => {
|
|
6
|
+
if (typeof ref === "function") ref(value);
|
|
7
|
+
else ref.current = value;
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.mergeRefs = mergeRefs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/components/ds-table/utils/merge-refs.ts
|
|
2
|
+
const mergeRefs = (...refs) => {
|
|
3
|
+
return (value) => {
|
|
4
|
+
refs.filter((r) => !!r).forEach((ref) => {
|
|
5
|
+
if (typeof ref === "function") ref(value);
|
|
6
|
+
else ref.current = value;
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { mergeRefs };
|
|
13
|
+
//# sourceMappingURL=merge-refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-refs.js","names":[],"sources":["../../../../src/components/ds-table/utils/merge-refs.ts"],"sourcesContent":["import type { Ref, RefCallback } from 'react';\n\nexport const mergeRefs = <T>(...refs: Array<Ref<T> | undefined>): RefCallback<T> => {\n\treturn (value) => {\n\t\trefs\n\t\t\t.filter((r) => !!r)\n\t\t\t.forEach((ref) => {\n\t\t\t\tif (typeof ref === 'function') {\n\t\t\t\t\tref(value);\n\t\t\t\t} else {\n\t\t\t\t\tref.current = value;\n\t\t\t\t}\n\t\t\t});\n\t};\n};\n"],"mappings":";AAEA,MAAa,aAAgB,GAAG,SAAoD;AACnF,SAAQ,UAAU;AACjB,OACE,QAAQ,MAAM,CAAC,CAAC,EAAE,CAClB,SAAS,QAAQ;AACjB,OAAI,OAAO,QAAQ,WAClB,KAAI,MAAM;OAEV,KAAI,UAAU;IAEd"}
|