@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,23 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/components/ds-table-row/ds-table-row.module.scss
|
|
3
|
+
var ds_table_row_module_default = {
|
|
4
|
+
"tableRow": "_tableRow_as8sd_1",
|
|
5
|
+
"virtualizedRow": "_virtualizedRow_as8sd_1",
|
|
6
|
+
"tableCell": "_tableCell_as8sd_1",
|
|
7
|
+
"cellCheckbox": "_cellCheckbox_as8sd_1",
|
|
8
|
+
"clickableRow": "_clickableRow_as8sd_1",
|
|
9
|
+
"rowNoBorder": "_rowNoBorder_as8sd_1",
|
|
10
|
+
"expanded": "_expanded_as8sd_1",
|
|
11
|
+
"expandedRow": "_expandedRow_as8sd_1",
|
|
12
|
+
"sizeSmall": "_sizeSmall_as8sd_1",
|
|
13
|
+
"sizeMedium": "_sizeMedium_as8sd_1",
|
|
14
|
+
"sizeLarge": "_sizeLarge_as8sd_1",
|
|
15
|
+
"cellButton": "_cellButton_as8sd_1",
|
|
16
|
+
"cellReorder": "_cellReorder_as8sd_1",
|
|
17
|
+
"isDragging": "_isDragging_as8sd_1",
|
|
18
|
+
"rowDragHandle": "_rowDragHandle_as8sd_1",
|
|
19
|
+
"expandToggleButton": "_expandToggleButton_as8sd_1"
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.default = ds_table_row_module_default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/components/ds-table/components/ds-table-row/ds-table-row.module.scss
|
|
2
|
+
var ds_table_row_module_default = {
|
|
3
|
+
"tableRow": "_tableRow_as8sd_1",
|
|
4
|
+
"virtualizedRow": "_virtualizedRow_as8sd_1",
|
|
5
|
+
"tableCell": "_tableCell_as8sd_1",
|
|
6
|
+
"cellCheckbox": "_cellCheckbox_as8sd_1",
|
|
7
|
+
"clickableRow": "_clickableRow_as8sd_1",
|
|
8
|
+
"rowNoBorder": "_rowNoBorder_as8sd_1",
|
|
9
|
+
"expanded": "_expanded_as8sd_1",
|
|
10
|
+
"expandedRow": "_expandedRow_as8sd_1",
|
|
11
|
+
"sizeSmall": "_sizeSmall_as8sd_1",
|
|
12
|
+
"sizeMedium": "_sizeMedium_as8sd_1",
|
|
13
|
+
"sizeLarge": "_sizeLarge_as8sd_1",
|
|
14
|
+
"cellButton": "_cellButton_as8sd_1",
|
|
15
|
+
"cellReorder": "_cellReorder_as8sd_1",
|
|
16
|
+
"isDragging": "_isDragging_as8sd_1",
|
|
17
|
+
"rowDragHandle": "_rowDragHandle_as8sd_1",
|
|
18
|
+
"expandToggleButton": "_expandToggleButton_as8sd_1"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ds_table_row_module_default as default };
|
|
23
|
+
//# sourceMappingURL=ds-table-row.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-row.module.js","names":[],"sources":["../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/components/ds-table-row/ds-table-row.module.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/styles/_variables.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_typography.scss"],"sourcesContent":["@use '../../../../styles/typography';\n@use '../../styles/variables' as vars;\n\n@mixin expanded-row-border($side) {\n\t$border: 1px solid var(--color-border-action-primary);\n\n\t// Prevent double border with adjacent expanded rows.\n\t&:not(.expandedRow + &) > td {\n\t\tborder-#{$side}: $border;\n\t}\n\n\t& > td:first-child {\n\t\tborder-inline-start: $border;\n\t}\n\n\t& > td:last-child {\n\t\tborder-inline-end: $border;\n\t}\n}\n\n.tableRow {\n\t&:not(.virtualizedRow) {\n\t\t&:not(:last-child) {\n\t\t\t.tableCell {\n\t\t\t\tborder-bottom: vars.$border-width solid var(--color-border-secondary);\n\t\t\t}\n\t\t}\n\n\t\t.cellCheckbox.tableCell {\n\t\t\tpadding: 0;\n\t\t\twidth: vars.$select-column-width;\n\t\t}\n\t}\n\n\t&.virtualizedRow {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: subgrid;\n\t\tgrid-column: 1 / -1;\n\t\tgrid-row: 1;\n\t\talign-items: center;\n\n\t\t&:not(:last-child) {\n\t\t\tborder-bottom: vars.$border-width solid var(--color-border-secondary);\n\t\t}\n\n\t\t.tableCell {\n\t\t\t&.cellCheckbox {\n\t\t\t\ttext-align: center;\n\t\t\t\tpadding: 0;\n\t\t\t\twidth: vars.$select-column-width;\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\tbackground-color: var(--color-background-secondary);\n\t}\n\n\t&[data-state='selected'] {\n\t\tbackground-color: var(--color-background-selected-weak);\n\t}\n\n\t&[data-state='active'] {\n\t\tbackground-color: var(--color-background-selected-weak);\n\t}\n\n\t&.clickableRow {\n\t\tcursor: pointer;\n\t}\n\n\t&.rowNoBorder {\n\t\tborder-bottom: none;\n\t}\n\n\t&.expanded {\n\t\t@include expanded-row-border('top');\n\t}\n\n\t&.sizeSmall {\n\t\theight: var(--ds-table-row-small);\n\t}\n\n\t&.sizeMedium {\n\t\theight: var(--ds-table-row-medium);\n\t}\n\n\t&.sizeLarge {\n\t\theight: var(--ds-table-row-large);\n\t}\n}\n\n.expandedRow {\n\tbackground-color: var(--color-background-secondary);\n\n\t& > td {\n\t\tpadding: var(--spacing-standard);\n\t}\n\n\t@include expanded-row-border('bottom');\n}\n\n.cellButton {\n\twidth: vars.$expand-column-width;\n}\n\n.cellReorder {\n\twidth: vars.$reorder-column-width;\n\ttext-align: center;\n\n\t&.isDragging {\n\t\tbackground: var(--color-background-action);\n\n\t\t.rowDragHandle {\n\t\t\tcolor: var(--color-secondary-white);\n\t\t}\n\t}\n}\n\n.tableCell {\n\t@include typography.body-sm-reg;\n\tvertical-align: middle;\n\tcolor: var(--color-font-main);\n\tpadding: 0 var(--spacing-standard);\n}\n\n.expandToggleButton {\n\tbackground: none;\n\tborder: none;\n\tpadding: 0;\n\tmargin: 0;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 1;\n\ttransition-property: opacity, background-color;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_table_row = require('./ds-table-row.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_table_row_default from "./ds-table-row.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-table/context/ds-table-context.tsx
|
|
5
|
+
const DsTableContext = (0, react.createContext)(null);
|
|
6
|
+
const useDsTableContext = () => {
|
|
7
|
+
const context = (0, react.useContext)(DsTableContext);
|
|
8
|
+
if (!context) throw new Error("useDsTableContext must be used within DsTable");
|
|
9
|
+
return context;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.DsTableContext = DsTableContext;
|
|
14
|
+
exports.useDsTableContext = useDsTableContext;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-table/context/ds-table-context.tsx
|
|
4
|
+
const DsTableContext = createContext(null);
|
|
5
|
+
const useDsTableContext = () => {
|
|
6
|
+
const context = useContext(DsTableContext);
|
|
7
|
+
if (!context) throw new Error("useDsTableContext must be used within DsTable");
|
|
8
|
+
return context;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DsTableContext, useDsTableContext };
|
|
13
|
+
//# sourceMappingURL=ds-table-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-context.js","names":[],"sources":["../../../../src/components/ds-table/context/ds-table-context.tsx"],"sourcesContent":["import { createContext, useContext } from 'react';\nimport type { DsDataTableProps, DsTableRowSize } from '../ds-table.types';\n\nexport interface DsTableContextType<TData, TValue> extends Partial<DsDataTableProps<TData, TValue>> {\n\t/**\n\t * The expanded rows\n\t */\n\texpandedRows: Record<string, boolean>;\n\t/**\n\t * Toggle the expanded state of a row\n\t * @param rowId - The id of the row to toggle\n\t */\n\ttoggleRowExpanded: (rowId: string) => void;\n\t/**\n\t * Whether the table is virtualized\n\t * @default false\n\t */\n\tvirtualized?: boolean;\n\t/**\n\t * Row size variant\n\t * @default 'medium'\n\t */\n\trowSize: DsTableRowSize;\n\t/**\n\t * ID of the currently active row\n\t */\n\tactiveRowId?: string | null;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const DsTableContext = createContext<DsTableContextType<any, any> | null>(null);\n\nexport const useDsTableContext = <TData, TValue>(): DsTableContextType<TData, TValue> => {\n\tconst context = useContext(DsTableContext);\n\tif (!context) {\n\t\tthrow new Error('useDsTableContext must be used within DsTable');\n\t}\n\treturn context as DsTableContextType<TData, TValue>;\n};\n"],"mappings":";;;AA8BA,MAAa,iBAAiB,cAAmD,KAAK;AAEtF,MAAa,0BAA4E;CACxF,MAAM,UAAU,WAAW,eAAe;AAC1C,KAAI,CAAC,QACJ,OAAM,IAAI,MAAM,gDAAgD;AAEjE,QAAO"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_core_table = require('./components/core-table/core-table.cjs');
|
|
3
|
+
require('./components/core-table/index.cjs');
|
|
4
|
+
const require_ds_table_bulk_actions = require('./components/ds-table-bulk-actions/ds-table-bulk-actions.cjs');
|
|
5
|
+
require('./components/ds-table-bulk-actions/index.cjs');
|
|
6
|
+
const require_ds_table_context = require('./context/ds-table-context.cjs');
|
|
7
|
+
const require_ds_table_header = require('./components/ds-table-header/ds-table-header.cjs');
|
|
8
|
+
require('./components/ds-table-header/index.cjs');
|
|
9
|
+
const require_ds_table_module = require('./ds-table.module.cjs');
|
|
10
|
+
const require_ds_table_row = require('./components/ds-table-row/ds-table-row.cjs');
|
|
11
|
+
require('./components/ds-table-row/index.cjs');
|
|
12
|
+
const require_use_drag_and_drop = require('./hooks/use-drag-and-drop.cjs');
|
|
13
|
+
const require_create_columns_grid_template = require('./utils/create-columns-grid-template.cjs');
|
|
14
|
+
let classnames = require("classnames");
|
|
15
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
16
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
|
+
let react = require("react");
|
|
18
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
19
|
+
let __tanstack_react_table = require("@tanstack/react-table");
|
|
20
|
+
let __tanstack_react_virtual = require("@tanstack/react-virtual");
|
|
21
|
+
|
|
22
|
+
//#region src/components/ds-table/ds-table.tsx
|
|
23
|
+
const ROW_SIZE_HEIGHT_MAP = {
|
|
24
|
+
small: 36,
|
|
25
|
+
medium: 48,
|
|
26
|
+
large: 64
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Design system Table component
|
|
30
|
+
*/
|
|
31
|
+
const DsTable = ({ ref, columns, data: tableData, virtualized = false, virtualizedOptions, className, onRowClick, emptyState, stickyHeader = true, bordered = true, fullWidth = true, highlightOnHover = true, rowSize = "medium", expandable = false, renderExpandedRow, selectable = false, showSelectAllCheckbox = true, onSelectionChange, onSortingChange, onScroll, actions = [], onRowDoubleClick, primaryRowActions = [], secondaryRowActions, reorderable = false, onOrderChange, columnFilters: externalColumnFilters, onColumnFiltersChange, columnVisibility: externalColumnVisibility, onColumnVisibilityChange, activeRowId }) => {
|
|
32
|
+
const [data, setData] = react.useState(tableData);
|
|
33
|
+
const [sorting, setSorting] = react.useState([]);
|
|
34
|
+
const [internalColumnFilters, setInternalColumnFilters] = react.useState([]);
|
|
35
|
+
const [internalColumnVisibility, setInternalColumnVisibility] = react.useState({});
|
|
36
|
+
const [rowSelection, setRowSelection] = react.useState({});
|
|
37
|
+
const [expandedRows, setExpandedRows] = react.useState({});
|
|
38
|
+
const { DragWrapper, SortableWrapper } = require_use_drag_and_drop.useDragAndDrop({
|
|
39
|
+
isDragEnabled: reorderable && !virtualized,
|
|
40
|
+
onOrderChange: (newData) => {
|
|
41
|
+
setData(newData);
|
|
42
|
+
onOrderChange?.(newData);
|
|
43
|
+
},
|
|
44
|
+
items: data
|
|
45
|
+
});
|
|
46
|
+
const tableContainerRef = react.useRef(null);
|
|
47
|
+
const columnFilters = externalColumnFilters ?? internalColumnFilters;
|
|
48
|
+
const handleColumnFiltersChange = (updaterOrValue) => {
|
|
49
|
+
const newFilters = typeof updaterOrValue === "function" ? updaterOrValue(columnFilters) : updaterOrValue;
|
|
50
|
+
if (onColumnFiltersChange) onColumnFiltersChange(newFilters);
|
|
51
|
+
else setInternalColumnFilters(newFilters);
|
|
52
|
+
};
|
|
53
|
+
const columnVisibility = externalColumnVisibility ?? internalColumnVisibility;
|
|
54
|
+
const handleColumnVisibilityChange = (updaterOrValue) => {
|
|
55
|
+
const newVisibility = typeof updaterOrValue === "function" ? updaterOrValue(columnVisibility) : updaterOrValue;
|
|
56
|
+
if (onColumnVisibilityChange) onColumnVisibilityChange(newVisibility);
|
|
57
|
+
else setInternalColumnVisibility(newVisibility);
|
|
58
|
+
};
|
|
59
|
+
const handleSortingChange = (updaterOrValue) => {
|
|
60
|
+
const newSorting = typeof updaterOrValue === "function" ? updaterOrValue(sorting) : updaterOrValue;
|
|
61
|
+
setSorting(newSorting);
|
|
62
|
+
onSortingChange?.(newSorting);
|
|
63
|
+
};
|
|
64
|
+
const handleRowSelectionChange = (updaterOrValue) => {
|
|
65
|
+
const newRowSelection = typeof updaterOrValue === "function" ? updaterOrValue(rowSelection) : updaterOrValue;
|
|
66
|
+
setRowSelection(newRowSelection);
|
|
67
|
+
onSelectionChange?.(newRowSelection);
|
|
68
|
+
};
|
|
69
|
+
const table = (0, __tanstack_react_table.useReactTable)({
|
|
70
|
+
data: reorderable ? data : tableData,
|
|
71
|
+
columns,
|
|
72
|
+
getCoreRowModel: (0, __tanstack_react_table.getCoreRowModel)(),
|
|
73
|
+
onSortingChange: handleSortingChange,
|
|
74
|
+
getSortedRowModel: (0, __tanstack_react_table.getSortedRowModel)(),
|
|
75
|
+
onColumnFiltersChange: handleColumnFiltersChange,
|
|
76
|
+
getFilteredRowModel: (0, __tanstack_react_table.getFilteredRowModel)(),
|
|
77
|
+
onColumnVisibilityChange: handleColumnVisibilityChange,
|
|
78
|
+
onRowSelectionChange: handleRowSelectionChange,
|
|
79
|
+
getRowId: (row) => row.id,
|
|
80
|
+
state: {
|
|
81
|
+
sorting,
|
|
82
|
+
columnFilters,
|
|
83
|
+
columnVisibility,
|
|
84
|
+
rowSelection
|
|
85
|
+
},
|
|
86
|
+
enableRowSelection: typeof selectable === "function" ? (row) => selectable(row.original) : selectable
|
|
87
|
+
});
|
|
88
|
+
(0, react.useImperativeHandle)(ref, () => ({
|
|
89
|
+
selectRow: (rowId) => {
|
|
90
|
+
table.getRow(rowId).toggleSelected(true);
|
|
91
|
+
},
|
|
92
|
+
deselectRow: (rowId) => {
|
|
93
|
+
table.getRow(rowId).toggleSelected(false);
|
|
94
|
+
},
|
|
95
|
+
selectAllRows: () => {
|
|
96
|
+
table.toggleAllRowsSelected(true);
|
|
97
|
+
},
|
|
98
|
+
deselectAllRows: () => {
|
|
99
|
+
table.toggleAllRowsSelected(false);
|
|
100
|
+
},
|
|
101
|
+
selectRows: (rowIds) => {
|
|
102
|
+
const selection = {};
|
|
103
|
+
rowIds.forEach((id) => selection[id] = true);
|
|
104
|
+
table.setRowSelection(selection);
|
|
105
|
+
},
|
|
106
|
+
getSelectedRows: () => {
|
|
107
|
+
return table.getFilteredSelectedRowModel().rows.map((r) => r.original);
|
|
108
|
+
}
|
|
109
|
+
}), [table]);
|
|
110
|
+
const { rows, rowsById } = table.getRowModel();
|
|
111
|
+
const rowVirtualizer = (0, __tanstack_react_virtual.useVirtualizer)({
|
|
112
|
+
count: rows.length,
|
|
113
|
+
getScrollElement: () => tableContainerRef.current,
|
|
114
|
+
estimateSize: () => virtualizedOptions?.estimateSize || ROW_SIZE_HEIGHT_MAP[rowSize],
|
|
115
|
+
overscan: virtualizedOptions?.overscan || 5,
|
|
116
|
+
onChange: (instance, sync) => {
|
|
117
|
+
if (sync && onScroll) {
|
|
118
|
+
const scrollOffset = instance.scrollOffset || 0;
|
|
119
|
+
const totalContentHeight = instance.getTotalSize();
|
|
120
|
+
const viewportHeight = instance.scrollElement?.clientHeight;
|
|
121
|
+
if (viewportHeight) onScroll({
|
|
122
|
+
scrollOffset,
|
|
123
|
+
totalContentHeight,
|
|
124
|
+
viewportHeight
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const toggleRowExpanded = (rowId) => {
|
|
130
|
+
setExpandedRows((prev) => ({
|
|
131
|
+
...prev,
|
|
132
|
+
[rowId]: !prev[rowId]
|
|
133
|
+
}));
|
|
134
|
+
};
|
|
135
|
+
const renderEmptyState = () => virtualized ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
136
|
+
className: require_ds_table_module.default.emptyStateVirtualized,
|
|
137
|
+
children: emptyState || "No results."
|
|
138
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableRow, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableCell, {
|
|
139
|
+
colSpan: columns.length + (expandable ? 1 : 0) + (selectable ? 1 : 0),
|
|
140
|
+
className: require_ds_table_module.default.emptyState,
|
|
141
|
+
children: emptyState || "No results."
|
|
142
|
+
}) });
|
|
143
|
+
const selectedRows = Object.entries(rowSelection).filter(([, selected]) => selected).map(([key]) => rowsById[key]?.original).filter(Boolean);
|
|
144
|
+
const contextValue = {
|
|
145
|
+
stickyHeader,
|
|
146
|
+
bordered,
|
|
147
|
+
fullWidth,
|
|
148
|
+
highlightOnHover,
|
|
149
|
+
rowSize,
|
|
150
|
+
expandable,
|
|
151
|
+
selectable,
|
|
152
|
+
reorderable,
|
|
153
|
+
showSelectAllCheckbox,
|
|
154
|
+
onRowClick,
|
|
155
|
+
onRowDoubleClick,
|
|
156
|
+
primaryRowActions,
|
|
157
|
+
secondaryRowActions,
|
|
158
|
+
renderExpandedRow,
|
|
159
|
+
virtualized,
|
|
160
|
+
expandedRows,
|
|
161
|
+
toggleRowExpanded,
|
|
162
|
+
activeRowId
|
|
163
|
+
};
|
|
164
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_table_context.DsTableContext.Provider, {
|
|
165
|
+
value: contextValue,
|
|
166
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
167
|
+
ref: tableContainerRef,
|
|
168
|
+
className: (0, classnames.default)(require_ds_table_module.default.container, !virtualized && require_ds_table_module.default.dataTableContainer, virtualized && require_ds_table_module.default.virtualizedContainer, className),
|
|
169
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DragWrapper, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_core_table.Table, {
|
|
170
|
+
style: virtualized ? { "--ds-table-columns-template": require_create_columns_grid_template.createColumnsGridTemplate({
|
|
171
|
+
columns,
|
|
172
|
+
selectable: !!selectable
|
|
173
|
+
}) } : void 0,
|
|
174
|
+
className: (0, classnames.default)(fullWidth && require_ds_table_module.default.fullWidth, !bordered && require_ds_table_module.default.tableNoBorder, virtualized && require_ds_table_module.default.virtualized),
|
|
175
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_table_header.default, { table }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableBody, {
|
|
176
|
+
style: { height: virtualized ? `${String(rowVirtualizer.getTotalSize())}px` : void 0 },
|
|
177
|
+
className: (0, classnames.default)(virtualized && require_ds_table_module.default.virtualizedBody),
|
|
178
|
+
children: virtualized ? rowVirtualizer.getVirtualItems().length ? rowVirtualizer.getVirtualItems().map((virtualRow) => {
|
|
179
|
+
const row = rows[virtualRow.index];
|
|
180
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_table_row.default, {
|
|
181
|
+
row,
|
|
182
|
+
virtualRow
|
|
183
|
+
}, row.id);
|
|
184
|
+
}) : renderEmptyState() : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortableWrapper, { children: rows.length ? rows.map((row) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_table_row.default, { row }, row.id)) : renderEmptyState() })
|
|
185
|
+
})]
|
|
186
|
+
}) })
|
|
187
|
+
}), selectable && actions.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_table_bulk_actions.default, {
|
|
188
|
+
numSelectedRows: selectedRows.length,
|
|
189
|
+
actions: actions.map((action) => ({
|
|
190
|
+
...action,
|
|
191
|
+
onClick: () => action.onClick(selectedRows)
|
|
192
|
+
})),
|
|
193
|
+
onClearSelection: table.resetRowSelection
|
|
194
|
+
})]
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
var ds_table_default = DsTable;
|
|
198
|
+
|
|
199
|
+
//#endregion
|
|
200
|
+
exports.default = ds_table_default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DsDataTableProps } from "./ds-table.types.cjs";
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-table/ds-table.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Design system Table component
|
|
7
|
+
*/
|
|
8
|
+
declare const DsTable: <TData extends {
|
|
9
|
+
id: string;
|
|
10
|
+
}, TValue>({
|
|
11
|
+
ref,
|
|
12
|
+
columns,
|
|
13
|
+
data: tableData,
|
|
14
|
+
virtualized,
|
|
15
|
+
virtualizedOptions,
|
|
16
|
+
className,
|
|
17
|
+
onRowClick,
|
|
18
|
+
emptyState,
|
|
19
|
+
stickyHeader,
|
|
20
|
+
bordered,
|
|
21
|
+
fullWidth,
|
|
22
|
+
highlightOnHover,
|
|
23
|
+
rowSize,
|
|
24
|
+
expandable,
|
|
25
|
+
renderExpandedRow,
|
|
26
|
+
selectable,
|
|
27
|
+
showSelectAllCheckbox,
|
|
28
|
+
onSelectionChange,
|
|
29
|
+
onSortingChange,
|
|
30
|
+
onScroll,
|
|
31
|
+
actions,
|
|
32
|
+
onRowDoubleClick,
|
|
33
|
+
primaryRowActions,
|
|
34
|
+
secondaryRowActions,
|
|
35
|
+
reorderable,
|
|
36
|
+
onOrderChange,
|
|
37
|
+
columnFilters: externalColumnFilters,
|
|
38
|
+
onColumnFiltersChange,
|
|
39
|
+
columnVisibility: externalColumnVisibility,
|
|
40
|
+
onColumnVisibilityChange,
|
|
41
|
+
activeRowId
|
|
42
|
+
}: DsDataTableProps<TData, TValue>) => react_jsx_runtime12.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { DsTable };
|
|
45
|
+
//# sourceMappingURL=ds-table.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table.d.cts","names":[],"sources":["../../../src/components/ds-table/ds-table.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAkByE,cAgBnE,OAmRL,EAAA,CAAA,cAAA;EAnRsD,EAAA,EAAA,MAAA;CAAA,EAAA,MAAA,CAAA,CAAA;EAAA,GAAA;EAAA,OAAA;EAAA,IAAA,EAAA,SAAA;EAAA,WAAA;EAAA,kBAAA;EAAA,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,YAAA;EAAA,QAAA;EAAA,SAAA;EAAA,gBAAA;EAAA,OAAA;EAAA,UAAA;EAAA,iBAAA;EAAA,UAAA;EAAA,qBAAA;EAAA,iBAAA;EAAA,eAAA;EAAA,QAAA;EAAA,OAAA;EAAA,gBAAA;EAAA,iBAAA;EAAA,mBAAA;EAAA,WAAA;EAAA,aAAA;EAAA,aAAA,EAAA,qBAAA;EAAA,qBAAA;EAAA,gBAAA,EAAA,wBAAA;EAAA,wBAAA;EAAA;AAAA,CAAA,EAgCpD,gBAhCoD,CAgCnC,KAhCmC,EAgC5B,MAhC4B,CAAA,EAAA,GAgCrB,mBAAA,CAAA,GAAA,CAAA,OAhCqB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DsDataTableProps } from "./ds-table.types.js";
|
|
2
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-table/ds-table.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Design system Table component
|
|
7
|
+
*/
|
|
8
|
+
declare const DsTable: <TData extends {
|
|
9
|
+
id: string;
|
|
10
|
+
}, TValue>({
|
|
11
|
+
ref,
|
|
12
|
+
columns,
|
|
13
|
+
data: tableData,
|
|
14
|
+
virtualized,
|
|
15
|
+
virtualizedOptions,
|
|
16
|
+
className,
|
|
17
|
+
onRowClick,
|
|
18
|
+
emptyState,
|
|
19
|
+
stickyHeader,
|
|
20
|
+
bordered,
|
|
21
|
+
fullWidth,
|
|
22
|
+
highlightOnHover,
|
|
23
|
+
rowSize,
|
|
24
|
+
expandable,
|
|
25
|
+
renderExpandedRow,
|
|
26
|
+
selectable,
|
|
27
|
+
showSelectAllCheckbox,
|
|
28
|
+
onSelectionChange,
|
|
29
|
+
onSortingChange,
|
|
30
|
+
onScroll,
|
|
31
|
+
actions,
|
|
32
|
+
onRowDoubleClick,
|
|
33
|
+
primaryRowActions,
|
|
34
|
+
secondaryRowActions,
|
|
35
|
+
reorderable,
|
|
36
|
+
onOrderChange,
|
|
37
|
+
columnFilters: externalColumnFilters,
|
|
38
|
+
onColumnFiltersChange,
|
|
39
|
+
columnVisibility: externalColumnVisibility,
|
|
40
|
+
onColumnVisibilityChange,
|
|
41
|
+
activeRowId
|
|
42
|
+
}: DsDataTableProps<TData, TValue>) => react_jsx_runtime44.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { DsTable };
|
|
45
|
+
//# sourceMappingURL=ds-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table.d.ts","names":[],"sources":["../../../src/components/ds-table/ds-table.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAkByE,cAgBnE,OAmRL,EAAA,CAAA,cAAA;EAnRsD,EAAA,EAAA,MAAA;CAAA,EAAA,MAAA,CAAA,CAAA;EAAA,GAAA;EAAA,OAAA;EAAA,IAAA,EAAA,SAAA;EAAA,WAAA;EAAA,kBAAA;EAAA,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,YAAA;EAAA,QAAA;EAAA,SAAA;EAAA,gBAAA;EAAA,OAAA;EAAA,UAAA;EAAA,iBAAA;EAAA,UAAA;EAAA,qBAAA;EAAA,iBAAA;EAAA,eAAA;EAAA,QAAA;EAAA,OAAA;EAAA,gBAAA;EAAA,iBAAA;EAAA,mBAAA;EAAA,WAAA;EAAA,aAAA;EAAA,aAAA,EAAA,qBAAA;EAAA,qBAAA;EAAA,gBAAA,EAAA,wBAAA;EAAA,wBAAA;EAAA;AAAA,CAAA,EAgCpD,gBAhCoD,CAgCnC,KAhCmC,EAgC5B,MAhC4B,CAAA,EAAA,GAgCrB,mBAAA,CAAA,GAAA,CAAA,OAhCqB"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Table as Table$1, TableBody, TableCell, TableRow } from "./components/core-table/core-table.js";
|
|
2
|
+
import "./components/core-table/index.js";
|
|
3
|
+
import ds_table_bulk_actions_default from "./components/ds-table-bulk-actions/ds-table-bulk-actions.js";
|
|
4
|
+
import "./components/ds-table-bulk-actions/index.js";
|
|
5
|
+
import { DsTableContext } from "./context/ds-table-context.js";
|
|
6
|
+
import ds_table_header_default from "./components/ds-table-header/ds-table-header.js";
|
|
7
|
+
import "./components/ds-table-header/index.js";
|
|
8
|
+
import ds_table_module_default from "./ds-table.module.js";
|
|
9
|
+
import ds_table_row_default from "./components/ds-table-row/ds-table-row.js";
|
|
10
|
+
import "./components/ds-table-row/index.js";
|
|
11
|
+
import { useDragAndDrop } from "./hooks/use-drag-and-drop.js";
|
|
12
|
+
import { createColumnsGridTemplate } from "./utils/create-columns-grid-template.js";
|
|
13
|
+
import classNames from "classnames";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import * as React$1 from "react";
|
|
16
|
+
import { useImperativeHandle } from "react";
|
|
17
|
+
import { getCoreRowModel, getFilteredRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
18
|
+
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
19
|
+
|
|
20
|
+
//#region src/components/ds-table/ds-table.tsx
|
|
21
|
+
const ROW_SIZE_HEIGHT_MAP = {
|
|
22
|
+
small: 36,
|
|
23
|
+
medium: 48,
|
|
24
|
+
large: 64
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Design system Table component
|
|
28
|
+
*/
|
|
29
|
+
const DsTable = ({ ref, columns, data: tableData, virtualized = false, virtualizedOptions, className, onRowClick, emptyState, stickyHeader = true, bordered = true, fullWidth = true, highlightOnHover = true, rowSize = "medium", expandable = false, renderExpandedRow, selectable = false, showSelectAllCheckbox = true, onSelectionChange, onSortingChange, onScroll, actions = [], onRowDoubleClick, primaryRowActions = [], secondaryRowActions, reorderable = false, onOrderChange, columnFilters: externalColumnFilters, onColumnFiltersChange, columnVisibility: externalColumnVisibility, onColumnVisibilityChange, activeRowId }) => {
|
|
30
|
+
const [data, setData] = React$1.useState(tableData);
|
|
31
|
+
const [sorting, setSorting] = React$1.useState([]);
|
|
32
|
+
const [internalColumnFilters, setInternalColumnFilters] = React$1.useState([]);
|
|
33
|
+
const [internalColumnVisibility, setInternalColumnVisibility] = React$1.useState({});
|
|
34
|
+
const [rowSelection, setRowSelection] = React$1.useState({});
|
|
35
|
+
const [expandedRows, setExpandedRows] = React$1.useState({});
|
|
36
|
+
const { DragWrapper, SortableWrapper } = useDragAndDrop({
|
|
37
|
+
isDragEnabled: reorderable && !virtualized,
|
|
38
|
+
onOrderChange: (newData) => {
|
|
39
|
+
setData(newData);
|
|
40
|
+
onOrderChange?.(newData);
|
|
41
|
+
},
|
|
42
|
+
items: data
|
|
43
|
+
});
|
|
44
|
+
const tableContainerRef = React$1.useRef(null);
|
|
45
|
+
const columnFilters = externalColumnFilters ?? internalColumnFilters;
|
|
46
|
+
const handleColumnFiltersChange = (updaterOrValue) => {
|
|
47
|
+
const newFilters = typeof updaterOrValue === "function" ? updaterOrValue(columnFilters) : updaterOrValue;
|
|
48
|
+
if (onColumnFiltersChange) onColumnFiltersChange(newFilters);
|
|
49
|
+
else setInternalColumnFilters(newFilters);
|
|
50
|
+
};
|
|
51
|
+
const columnVisibility = externalColumnVisibility ?? internalColumnVisibility;
|
|
52
|
+
const handleColumnVisibilityChange = (updaterOrValue) => {
|
|
53
|
+
const newVisibility = typeof updaterOrValue === "function" ? updaterOrValue(columnVisibility) : updaterOrValue;
|
|
54
|
+
if (onColumnVisibilityChange) onColumnVisibilityChange(newVisibility);
|
|
55
|
+
else setInternalColumnVisibility(newVisibility);
|
|
56
|
+
};
|
|
57
|
+
const handleSortingChange = (updaterOrValue) => {
|
|
58
|
+
const newSorting = typeof updaterOrValue === "function" ? updaterOrValue(sorting) : updaterOrValue;
|
|
59
|
+
setSorting(newSorting);
|
|
60
|
+
onSortingChange?.(newSorting);
|
|
61
|
+
};
|
|
62
|
+
const handleRowSelectionChange = (updaterOrValue) => {
|
|
63
|
+
const newRowSelection = typeof updaterOrValue === "function" ? updaterOrValue(rowSelection) : updaterOrValue;
|
|
64
|
+
setRowSelection(newRowSelection);
|
|
65
|
+
onSelectionChange?.(newRowSelection);
|
|
66
|
+
};
|
|
67
|
+
const table = useReactTable({
|
|
68
|
+
data: reorderable ? data : tableData,
|
|
69
|
+
columns,
|
|
70
|
+
getCoreRowModel: getCoreRowModel(),
|
|
71
|
+
onSortingChange: handleSortingChange,
|
|
72
|
+
getSortedRowModel: getSortedRowModel(),
|
|
73
|
+
onColumnFiltersChange: handleColumnFiltersChange,
|
|
74
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
75
|
+
onColumnVisibilityChange: handleColumnVisibilityChange,
|
|
76
|
+
onRowSelectionChange: handleRowSelectionChange,
|
|
77
|
+
getRowId: (row) => row.id,
|
|
78
|
+
state: {
|
|
79
|
+
sorting,
|
|
80
|
+
columnFilters,
|
|
81
|
+
columnVisibility,
|
|
82
|
+
rowSelection
|
|
83
|
+
},
|
|
84
|
+
enableRowSelection: typeof selectable === "function" ? (row) => selectable(row.original) : selectable
|
|
85
|
+
});
|
|
86
|
+
useImperativeHandle(ref, () => ({
|
|
87
|
+
selectRow: (rowId) => {
|
|
88
|
+
table.getRow(rowId).toggleSelected(true);
|
|
89
|
+
},
|
|
90
|
+
deselectRow: (rowId) => {
|
|
91
|
+
table.getRow(rowId).toggleSelected(false);
|
|
92
|
+
},
|
|
93
|
+
selectAllRows: () => {
|
|
94
|
+
table.toggleAllRowsSelected(true);
|
|
95
|
+
},
|
|
96
|
+
deselectAllRows: () => {
|
|
97
|
+
table.toggleAllRowsSelected(false);
|
|
98
|
+
},
|
|
99
|
+
selectRows: (rowIds) => {
|
|
100
|
+
const selection = {};
|
|
101
|
+
rowIds.forEach((id) => selection[id] = true);
|
|
102
|
+
table.setRowSelection(selection);
|
|
103
|
+
},
|
|
104
|
+
getSelectedRows: () => {
|
|
105
|
+
return table.getFilteredSelectedRowModel().rows.map((r) => r.original);
|
|
106
|
+
}
|
|
107
|
+
}), [table]);
|
|
108
|
+
const { rows, rowsById } = table.getRowModel();
|
|
109
|
+
const rowVirtualizer = useVirtualizer({
|
|
110
|
+
count: rows.length,
|
|
111
|
+
getScrollElement: () => tableContainerRef.current,
|
|
112
|
+
estimateSize: () => virtualizedOptions?.estimateSize || ROW_SIZE_HEIGHT_MAP[rowSize],
|
|
113
|
+
overscan: virtualizedOptions?.overscan || 5,
|
|
114
|
+
onChange: (instance, sync) => {
|
|
115
|
+
if (sync && onScroll) {
|
|
116
|
+
const scrollOffset = instance.scrollOffset || 0;
|
|
117
|
+
const totalContentHeight = instance.getTotalSize();
|
|
118
|
+
const viewportHeight = instance.scrollElement?.clientHeight;
|
|
119
|
+
if (viewportHeight) onScroll({
|
|
120
|
+
scrollOffset,
|
|
121
|
+
totalContentHeight,
|
|
122
|
+
viewportHeight
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
const toggleRowExpanded = (rowId) => {
|
|
128
|
+
setExpandedRows((prev) => ({
|
|
129
|
+
...prev,
|
|
130
|
+
[rowId]: !prev[rowId]
|
|
131
|
+
}));
|
|
132
|
+
};
|
|
133
|
+
const renderEmptyState = () => virtualized ? /* @__PURE__ */ jsx("div", {
|
|
134
|
+
className: ds_table_module_default.emptyStateVirtualized,
|
|
135
|
+
children: emptyState || "No results."
|
|
136
|
+
}) : /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, {
|
|
137
|
+
colSpan: columns.length + (expandable ? 1 : 0) + (selectable ? 1 : 0),
|
|
138
|
+
className: ds_table_module_default.emptyState,
|
|
139
|
+
children: emptyState || "No results."
|
|
140
|
+
}) });
|
|
141
|
+
const selectedRows = Object.entries(rowSelection).filter(([, selected]) => selected).map(([key]) => rowsById[key]?.original).filter(Boolean);
|
|
142
|
+
const contextValue = {
|
|
143
|
+
stickyHeader,
|
|
144
|
+
bordered,
|
|
145
|
+
fullWidth,
|
|
146
|
+
highlightOnHover,
|
|
147
|
+
rowSize,
|
|
148
|
+
expandable,
|
|
149
|
+
selectable,
|
|
150
|
+
reorderable,
|
|
151
|
+
showSelectAllCheckbox,
|
|
152
|
+
onRowClick,
|
|
153
|
+
onRowDoubleClick,
|
|
154
|
+
primaryRowActions,
|
|
155
|
+
secondaryRowActions,
|
|
156
|
+
renderExpandedRow,
|
|
157
|
+
virtualized,
|
|
158
|
+
expandedRows,
|
|
159
|
+
toggleRowExpanded,
|
|
160
|
+
activeRowId
|
|
161
|
+
};
|
|
162
|
+
return /* @__PURE__ */ jsxs(DsTableContext.Provider, {
|
|
163
|
+
value: contextValue,
|
|
164
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
165
|
+
ref: tableContainerRef,
|
|
166
|
+
className: classNames(ds_table_module_default.container, !virtualized && ds_table_module_default.dataTableContainer, virtualized && ds_table_module_default.virtualizedContainer, className),
|
|
167
|
+
children: /* @__PURE__ */ jsx(DragWrapper, { children: /* @__PURE__ */ jsxs(Table$1, {
|
|
168
|
+
style: virtualized ? { "--ds-table-columns-template": createColumnsGridTemplate({
|
|
169
|
+
columns,
|
|
170
|
+
selectable: !!selectable
|
|
171
|
+
}) } : void 0,
|
|
172
|
+
className: classNames(fullWidth && ds_table_module_default.fullWidth, !bordered && ds_table_module_default.tableNoBorder, virtualized && ds_table_module_default.virtualized),
|
|
173
|
+
children: [/* @__PURE__ */ jsx(ds_table_header_default, { table }), /* @__PURE__ */ jsx(TableBody, {
|
|
174
|
+
style: { height: virtualized ? `${String(rowVirtualizer.getTotalSize())}px` : void 0 },
|
|
175
|
+
className: classNames(virtualized && ds_table_module_default.virtualizedBody),
|
|
176
|
+
children: virtualized ? rowVirtualizer.getVirtualItems().length ? rowVirtualizer.getVirtualItems().map((virtualRow) => {
|
|
177
|
+
const row = rows[virtualRow.index];
|
|
178
|
+
return /* @__PURE__ */ jsx(ds_table_row_default, {
|
|
179
|
+
row,
|
|
180
|
+
virtualRow
|
|
181
|
+
}, row.id);
|
|
182
|
+
}) : renderEmptyState() : /* @__PURE__ */ jsx(SortableWrapper, { children: rows.length ? rows.map((row) => /* @__PURE__ */ jsx(ds_table_row_default, { row }, row.id)) : renderEmptyState() })
|
|
183
|
+
})]
|
|
184
|
+
}) })
|
|
185
|
+
}), selectable && actions.length > 0 && /* @__PURE__ */ jsx(ds_table_bulk_actions_default, {
|
|
186
|
+
numSelectedRows: selectedRows.length,
|
|
187
|
+
actions: actions.map((action) => ({
|
|
188
|
+
...action,
|
|
189
|
+
onClick: () => action.onClick(selectedRows)
|
|
190
|
+
})),
|
|
191
|
+
onClearSelection: table.resetRowSelection
|
|
192
|
+
})]
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
var ds_table_default = DsTable;
|
|
196
|
+
|
|
197
|
+
//#endregion
|
|
198
|
+
export { ds_table_default as default };
|
|
199
|
+
//# sourceMappingURL=ds-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table.js","names":["ROW_SIZE_HEIGHT_MAP: Record<DsTableRowSize, number>","React","selection: Record<string, boolean>","styles","contextValue: DsTableContextType<TData, TValue>","classnames","Table","DsTableHeader","DsTableRow","DsTableBulkActions"],"sources":["../../../src/components/ds-table/ds-table.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useImperativeHandle } from 'react';\nimport {\n\ttype RowSelectionState,\n\ttype ColumnFiltersState,\n\tgetCoreRowModel,\n\tgetFilteredRowModel,\n\tgetSortedRowModel,\n\ttype SortingState,\n\tuseReactTable,\n\ttype VisibilityState,\n} from '@tanstack/react-table';\nimport { useVirtualizer, type VirtualItem } from '@tanstack/react-virtual';\nimport classnames from 'classnames';\nimport { Table, TableBody, TableCell, TableRow } from './components/core-table';\nimport { DsTableBulkActions } from './components/ds-table-bulk-actions';\nimport { DsTableHeader } from './components/ds-table-header';\nimport styles from './ds-table.module.scss';\nimport type { DsDataTableProps, DsTableRowSize } from './ds-table.types';\nimport { DsTableRow } from './components/ds-table-row';\nimport { useDragAndDrop } from './hooks/use-drag-and-drop';\nimport { type DsTableContextType, DsTableContext } from './context/ds-table-context';\nimport { createColumnsGridTemplate } from './utils/create-columns-grid-template';\n\n// Row size to pixel height mapping (matches CSS variables)\nconst ROW_SIZE_HEIGHT_MAP: Record<DsTableRowSize, number> = {\n\tsmall: 36,\n\tmedium: 48,\n\tlarge: 64,\n};\n\n/**\n * Design system Table component\n */\nconst DsTable = <TData extends { id: string }, TValue>({\n\tref,\n\tcolumns,\n\tdata: tableData,\n\tvirtualized = false,\n\tvirtualizedOptions,\n\tclassName,\n\tonRowClick,\n\temptyState,\n\tstickyHeader = true,\n\tbordered = true,\n\tfullWidth = true,\n\thighlightOnHover = true,\n\trowSize = 'medium',\n\texpandable = false,\n\trenderExpandedRow,\n\tselectable = false,\n\tshowSelectAllCheckbox = true,\n\tonSelectionChange,\n\tonSortingChange,\n\tonScroll,\n\tactions = [],\n\tonRowDoubleClick,\n\tprimaryRowActions = [],\n\tsecondaryRowActions,\n\treorderable = false,\n\tonOrderChange,\n\tcolumnFilters: externalColumnFilters,\n\tonColumnFiltersChange,\n\tcolumnVisibility: externalColumnVisibility,\n\tonColumnVisibilityChange,\n\tactiveRowId,\n}: DsDataTableProps<TData, TValue>) => {\n\tconst [data, setData] = React.useState(tableData);\n\tconst [sorting, setSorting] = React.useState<SortingState>([]);\n\tconst [internalColumnFilters, setInternalColumnFilters] = React.useState<ColumnFiltersState>([]);\n\tconst [internalColumnVisibility, setInternalColumnVisibility] = React.useState<VisibilityState>({});\n\tconst [rowSelection, setRowSelection] = React.useState<RowSelectionState>({});\n\tconst [expandedRows, setExpandedRows] = React.useState<Record<string, boolean>>({});\n\n\tconst { DragWrapper, SortableWrapper } = useDragAndDrop<TData>({\n\t\tisDragEnabled: reorderable && !virtualized,\n\t\tonOrderChange: (newData) => {\n\t\t\tsetData(newData);\n\t\t\tonOrderChange?.(newData);\n\t\t},\n\t\titems: data,\n\t});\n\n\tconst tableContainerRef = React.useRef<HTMLDivElement>(null);\n\n\tconst columnFilters = externalColumnFilters ?? internalColumnFilters;\n\tconst handleColumnFiltersChange = (\n\t\tupdaterOrValue: ColumnFiltersState | ((old: ColumnFiltersState) => ColumnFiltersState),\n\t) => {\n\t\tconst newFilters = typeof updaterOrValue === 'function' ? updaterOrValue(columnFilters) : updaterOrValue;\n\t\tif (onColumnFiltersChange) {\n\t\t\tonColumnFiltersChange(newFilters);\n\t\t} else {\n\t\t\tsetInternalColumnFilters(newFilters);\n\t\t}\n\t};\n\n\tconst columnVisibility = externalColumnVisibility ?? internalColumnVisibility;\n\tconst handleColumnVisibilityChange = (\n\t\tupdaterOrValue: VisibilityState | ((old: VisibilityState) => VisibilityState),\n\t) => {\n\t\tconst newVisibility =\n\t\t\ttypeof updaterOrValue === 'function' ? updaterOrValue(columnVisibility) : updaterOrValue;\n\n\t\tif (onColumnVisibilityChange) {\n\t\t\tonColumnVisibilityChange(newVisibility);\n\t\t} else {\n\t\t\tsetInternalColumnVisibility(newVisibility);\n\t\t}\n\t};\n\n\tconst handleSortingChange = (updaterOrValue: SortingState | ((old: SortingState) => SortingState)) => {\n\t\tconst newSorting = typeof updaterOrValue === 'function' ? updaterOrValue(sorting) : updaterOrValue;\n\t\tsetSorting(newSorting);\n\t\tonSortingChange?.(newSorting);\n\t};\n\n\tconst handleRowSelectionChange = (\n\t\tupdaterOrValue: RowSelectionState | ((old: RowSelectionState) => RowSelectionState),\n\t) => {\n\t\tconst newRowSelection =\n\t\t\ttypeof updaterOrValue === 'function' ? updaterOrValue(rowSelection) : updaterOrValue;\n\t\tsetRowSelection(newRowSelection);\n\t\tonSelectionChange?.(newRowSelection);\n\t};\n\n\tconst table = useReactTable({\n\t\tdata: reorderable ? data : tableData,\n\t\tcolumns,\n\t\tgetCoreRowModel: getCoreRowModel(),\n\t\tonSortingChange: handleSortingChange,\n\t\tgetSortedRowModel: getSortedRowModel(),\n\t\tonColumnFiltersChange: handleColumnFiltersChange,\n\t\tgetFilteredRowModel: getFilteredRowModel(),\n\t\tonColumnVisibilityChange: handleColumnVisibilityChange,\n\t\tonRowSelectionChange: handleRowSelectionChange,\n\t\tgetRowId: (row) => row.id,\n\t\tstate: {\n\t\t\tsorting,\n\t\t\tcolumnFilters,\n\t\t\tcolumnVisibility,\n\t\t\trowSelection,\n\t\t},\n\t\tenableRowSelection: typeof selectable === 'function' ? (row) => selectable(row.original) : selectable,\n\t});\n\n\tuseImperativeHandle(\n\t\tref,\n\t\t() => ({\n\t\t\tselectRow: (rowId: string) => {\n\t\t\t\ttable.getRow(rowId).toggleSelected(true);\n\t\t\t},\n\t\t\tdeselectRow: (rowId: string) => {\n\t\t\t\ttable.getRow(rowId).toggleSelected(false);\n\t\t\t},\n\t\t\tselectAllRows: () => {\n\t\t\t\ttable.toggleAllRowsSelected(true);\n\t\t\t},\n\t\t\tdeselectAllRows: () => {\n\t\t\t\ttable.toggleAllRowsSelected(false);\n\t\t\t},\n\t\t\tselectRows: (rowIds: string[]) => {\n\t\t\t\tconst selection: Record<string, boolean> = {};\n\t\t\t\trowIds.forEach((id) => (selection[id] = true));\n\t\t\t\ttable.setRowSelection(selection);\n\t\t\t},\n\t\t\tgetSelectedRows: () => {\n\t\t\t\treturn table.getFilteredSelectedRowModel().rows.map((r) => r.original);\n\t\t\t},\n\t\t}),\n\t\t[table],\n\t);\n\n\tconst { rows, rowsById } = table.getRowModel();\n\n\tconst rowVirtualizer = useVirtualizer({\n\t\tcount: rows.length,\n\t\tgetScrollElement: () => tableContainerRef.current,\n\t\t// estimate row height for accurate scrollbar dragging\n\t\testimateSize: () => virtualizedOptions?.estimateSize || ROW_SIZE_HEIGHT_MAP[rowSize],\n\t\toverscan: virtualizedOptions?.overscan || 5,\n\t\tonChange: (instance, sync) => {\n\t\t\tif (sync && onScroll) {\n\t\t\t\tconst scrollOffset = instance.scrollOffset || 0;\n\t\t\t\tconst totalContentHeight = instance.getTotalSize();\n\t\t\t\tconst viewportHeight = instance.scrollElement?.clientHeight;\n\n\t\t\t\tif (viewportHeight) {\n\t\t\t\t\tonScroll({ scrollOffset, totalContentHeight, viewportHeight });\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t});\n\n\tconst toggleRowExpanded = (rowId: string) => {\n\t\tsetExpandedRows((prev) => ({\n\t\t\t...prev,\n\t\t\t[rowId]: !prev[rowId],\n\t\t}));\n\t};\n\n\tconst renderEmptyState = () =>\n\t\tvirtualized ? (\n\t\t\t<div className={styles.emptyStateVirtualized}>{emptyState || 'No results.'}</div>\n\t\t) : (\n\t\t\t<TableRow>\n\t\t\t\t<TableCell\n\t\t\t\t\tcolSpan={columns.length + (expandable ? 1 : 0) + (selectable ? 1 : 0)}\n\t\t\t\t\tclassName={styles.emptyState}\n\t\t\t\t>\n\t\t\t\t\t{emptyState || 'No results.'}\n\t\t\t\t</TableCell>\n\t\t\t</TableRow>\n\t\t);\n\n\tconst selectedRows = Object.entries(rowSelection)\n\t\t.filter(([, selected]) => selected)\n\t\t// This is not necessarily a redundant condition. It depends on `noUncheckedIndexedAccess`.\n\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t.map(([key]) => rowsById[key]?.original)\n\t\t.filter(Boolean);\n\n\tconst contextValue: DsTableContextType<TData, TValue> = {\n\t\tstickyHeader,\n\t\tbordered,\n\t\tfullWidth,\n\t\thighlightOnHover,\n\t\trowSize,\n\t\texpandable,\n\t\tselectable,\n\t\treorderable,\n\t\tshowSelectAllCheckbox,\n\t\tonRowClick,\n\t\tonRowDoubleClick,\n\t\tprimaryRowActions,\n\t\tsecondaryRowActions,\n\t\trenderExpandedRow,\n\t\tvirtualized,\n\t\texpandedRows,\n\t\ttoggleRowExpanded,\n\t\tactiveRowId,\n\t};\n\n\treturn (\n\t\t<DsTableContext.Provider value={contextValue}>\n\t\t\t<div\n\t\t\t\tref={tableContainerRef}\n\t\t\t\tclassName={classnames(\n\t\t\t\t\tstyles.container,\n\t\t\t\t\t!virtualized && styles.dataTableContainer,\n\t\t\t\t\tvirtualized && styles.virtualizedContainer,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<DragWrapper>\n\t\t\t\t\t<Table\n\t\t\t\t\t\tstyle={\n\t\t\t\t\t\t\tvirtualized\n\t\t\t\t\t\t\t\t? ({\n\t\t\t\t\t\t\t\t\t\t'--ds-table-columns-template': createColumnsGridTemplate({\n\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\tselectable: !!selectable,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t} as React.CSSProperties)\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclassName={classnames(\n\t\t\t\t\t\t\tfullWidth && styles.fullWidth,\n\t\t\t\t\t\t\t!bordered && styles.tableNoBorder,\n\t\t\t\t\t\t\tvirtualized && styles.virtualized,\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<DsTableHeader table={table} />\n\t\t\t\t\t\t<TableBody\n\t\t\t\t\t\t\tstyle={{ height: virtualized ? `${String(rowVirtualizer.getTotalSize())}px` : undefined }}\n\t\t\t\t\t\t\tclassName={classnames(virtualized && styles.virtualizedBody)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{virtualized ? (\n\t\t\t\t\t\t\t\trowVirtualizer.getVirtualItems().length ? (\n\t\t\t\t\t\t\t\t\trowVirtualizer.getVirtualItems().map((virtualRow: VirtualItem) => {\n\t\t\t\t\t\t\t\t\t\tconst row = rows[virtualRow.index];\n\t\t\t\t\t\t\t\t\t\treturn <DsTableRow key={row.id} row={row} virtualRow={virtualRow} />;\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\trenderEmptyState()\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<SortableWrapper>\n\t\t\t\t\t\t\t\t\t{rows.length\n\t\t\t\t\t\t\t\t\t\t? rows.map((row) => <DsTableRow key={row.id} row={row} />)\n\t\t\t\t\t\t\t\t\t\t: renderEmptyState()}\n\t\t\t\t\t\t\t\t</SortableWrapper>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</TableBody>\n\t\t\t\t\t</Table>\n\t\t\t\t</DragWrapper>\n\t\t\t</div>\n\t\t\t{selectable && actions.length > 0 && (\n\t\t\t\t<DsTableBulkActions\n\t\t\t\t\tnumSelectedRows={selectedRows.length}\n\t\t\t\t\tactions={actions.map((action) => ({\n\t\t\t\t\t\t...action,\n\t\t\t\t\t\tonClick: () => action.onClick(selectedRows),\n\t\t\t\t\t}))}\n\t\t\t\t\tonClearSelection={table.resetRowSelection}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</DsTableContext.Provider>\n\t);\n};\n\nexport default DsTable;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA,MAAMA,sBAAsD;CAC3D,OAAO;CACP,QAAQ;CACR,OAAO;CACP;;;;AAKD,MAAM,WAAiD,EACtD,KACA,SACA,MAAM,WACN,cAAc,OACd,oBACA,WACA,YACA,YACA,eAAe,MACf,WAAW,MACX,YAAY,MACZ,mBAAmB,MACnB,UAAU,UACV,aAAa,OACb,mBACA,aAAa,OACb,wBAAwB,MACxB,mBACA,iBACA,UACA,UAAU,EAAE,EACZ,kBACA,oBAAoB,EAAE,EACtB,qBACA,cAAc,OACd,eACA,eAAe,uBACf,uBACA,kBAAkB,0BAClB,0BACA,kBACsC;CACtC,MAAM,CAAC,MAAM,WAAWC,QAAM,SAAS,UAAU;CACjD,MAAM,CAAC,SAAS,cAAcA,QAAM,SAAuB,EAAE,CAAC;CAC9D,MAAM,CAAC,uBAAuB,4BAA4BA,QAAM,SAA6B,EAAE,CAAC;CAChG,MAAM,CAAC,0BAA0B,+BAA+BA,QAAM,SAA0B,EAAE,CAAC;CACnG,MAAM,CAAC,cAAc,mBAAmBA,QAAM,SAA4B,EAAE,CAAC;CAC7E,MAAM,CAAC,cAAc,mBAAmBA,QAAM,SAAkC,EAAE,CAAC;CAEnF,MAAM,EAAE,aAAa,oBAAoB,eAAsB;EAC9D,eAAe,eAAe,CAAC;EAC/B,gBAAgB,YAAY;AAC3B,WAAQ,QAAQ;AAChB,mBAAgB,QAAQ;;EAEzB,OAAO;EACP,CAAC;CAEF,MAAM,oBAAoBA,QAAM,OAAuB,KAAK;CAE5D,MAAM,gBAAgB,yBAAyB;CAC/C,MAAM,6BACL,mBACI;EACJ,MAAM,aAAa,OAAO,mBAAmB,aAAa,eAAe,cAAc,GAAG;AAC1F,MAAI,sBACH,uBAAsB,WAAW;MAEjC,0BAAyB,WAAW;;CAItC,MAAM,mBAAmB,4BAA4B;CACrD,MAAM,gCACL,mBACI;EACJ,MAAM,gBACL,OAAO,mBAAmB,aAAa,eAAe,iBAAiB,GAAG;AAE3E,MAAI,yBACH,0BAAyB,cAAc;MAEvC,6BAA4B,cAAc;;CAI5C,MAAM,uBAAuB,mBAAyE;EACrG,MAAM,aAAa,OAAO,mBAAmB,aAAa,eAAe,QAAQ,GAAG;AACpF,aAAW,WAAW;AACtB,oBAAkB,WAAW;;CAG9B,MAAM,4BACL,mBACI;EACJ,MAAM,kBACL,OAAO,mBAAmB,aAAa,eAAe,aAAa,GAAG;AACvE,kBAAgB,gBAAgB;AAChC,sBAAoB,gBAAgB;;CAGrC,MAAM,QAAQ,cAAc;EAC3B,MAAM,cAAc,OAAO;EAC3B;EACA,iBAAiB,iBAAiB;EAClC,iBAAiB;EACjB,mBAAmB,mBAAmB;EACtC,uBAAuB;EACvB,qBAAqB,qBAAqB;EAC1C,0BAA0B;EAC1B,sBAAsB;EACtB,WAAW,QAAQ,IAAI;EACvB,OAAO;GACN;GACA;GACA;GACA;GACA;EACD,oBAAoB,OAAO,eAAe,cAAc,QAAQ,WAAW,IAAI,SAAS,GAAG;EAC3F,CAAC;AAEF,qBACC,YACO;EACN,YAAY,UAAkB;AAC7B,SAAM,OAAO,MAAM,CAAC,eAAe,KAAK;;EAEzC,cAAc,UAAkB;AAC/B,SAAM,OAAO,MAAM,CAAC,eAAe,MAAM;;EAE1C,qBAAqB;AACpB,SAAM,sBAAsB,KAAK;;EAElC,uBAAuB;AACtB,SAAM,sBAAsB,MAAM;;EAEnC,aAAa,WAAqB;GACjC,MAAMC,YAAqC,EAAE;AAC7C,UAAO,SAAS,OAAQ,UAAU,MAAM,KAAM;AAC9C,SAAM,gBAAgB,UAAU;;EAEjC,uBAAuB;AACtB,UAAO,MAAM,6BAA6B,CAAC,KAAK,KAAK,MAAM,EAAE,SAAS;;EAEvE,GACD,CAAC,MAAM,CACP;CAED,MAAM,EAAE,MAAM,aAAa,MAAM,aAAa;CAE9C,MAAM,iBAAiB,eAAe;EACrC,OAAO,KAAK;EACZ,wBAAwB,kBAAkB;EAE1C,oBAAoB,oBAAoB,gBAAgB,oBAAoB;EAC5E,UAAU,oBAAoB,YAAY;EAC1C,WAAW,UAAU,SAAS;AAC7B,OAAI,QAAQ,UAAU;IACrB,MAAM,eAAe,SAAS,gBAAgB;IAC9C,MAAM,qBAAqB,SAAS,cAAc;IAClD,MAAM,iBAAiB,SAAS,eAAe;AAE/C,QAAI,eACH,UAAS;KAAE;KAAc;KAAoB;KAAgB,CAAC;;;EAIjE,CAAC;CAEF,MAAM,qBAAqB,UAAkB;AAC5C,mBAAiB,UAAU;GAC1B,GAAG;IACF,QAAQ,CAAC,KAAK;GACf,EAAE;;CAGJ,MAAM,yBACL,cACC,oBAAC;EAAI,WAAWC,wBAAO;YAAwB,cAAc;GAAoB,GAEjF,oBAAC,sBACA,oBAAC;EACA,SAAS,QAAQ,UAAU,aAAa,IAAI,MAAM,aAAa,IAAI;EACnE,WAAWA,wBAAO;YAEjB,cAAc;GACJ,GACF;CAGb,MAAM,eAAe,OAAO,QAAQ,aAAa,CAC/C,QAAQ,GAAG,cAAc,SAAS,CAGlC,KAAK,CAAC,SAAS,SAAS,MAAM,SAAS,CACvC,OAAO,QAAQ;CAEjB,MAAMC,eAAkD;EACvD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAED,QACC,qBAAC,eAAe;EAAS,OAAO;aAC/B,oBAAC;GACA,KAAK;GACL,WAAWC,WACVF,wBAAO,WACP,CAAC,eAAeA,wBAAO,oBACvB,eAAeA,wBAAO,sBACtB,UACA;aAED,oBAAC,yBACA,qBAACG;IACA,OACC,cACI,EACD,+BAA+B,0BAA0B;KACxD;KACA,YAAY,CAAC,CAAC;KACd,CAAC,EACF,GACA;IAEJ,WAAWD,WACV,aAAaF,wBAAO,WACpB,CAAC,YAAYA,wBAAO,eACpB,eAAeA,wBAAO,YACtB;eAED,oBAACI,2BAAqB,QAAS,EAC/B,oBAAC;KACA,OAAO,EAAE,QAAQ,cAAc,GAAG,OAAO,eAAe,cAAc,CAAC,CAAC,MAAM,QAAW;KACzF,WAAWF,WAAW,eAAeF,wBAAO,gBAAgB;eAE3D,cACA,eAAe,iBAAiB,CAAC,SAChC,eAAe,iBAAiB,CAAC,KAAK,eAA4B;MACjE,MAAM,MAAM,KAAK,WAAW;AAC5B,aAAO,oBAACK;OAA6B;OAAiB;SAA9B,IAAI,GAAwC;OACnE,GAEF,kBAAkB,GAGnB,oBAAC,6BACC,KAAK,SACH,KAAK,KAAK,QAAQ,oBAACA,wBAA6B,OAAb,IAAI,GAAgB,CAAC,GACxD,kBAAkB,GACJ;MAER;KACL,GACK;IACT,EACL,cAAc,QAAQ,SAAS,KAC/B,oBAACC;GACA,iBAAiB,aAAa;GAC9B,SAAS,QAAQ,KAAK,YAAY;IACjC,GAAG;IACH,eAAe,OAAO,QAAQ,aAAa;IAC3C,EAAE;GACH,kBAAkB,MAAM;IACvB;GAEsB;;AAI5B,uBAAe"}
|