@drivenets/design-system 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +182 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js +181 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.cjs +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.cjs +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts +49 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts +50 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -0
- package/dist/components/ds-alert-banner/index.cjs +2 -0
- package/dist/components/ds-alert-banner/index.d.ts +2 -0
- package/dist/components/ds-alert-banner/index.js +2 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +135 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +134 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.cjs +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts +36 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts +37 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/index.cjs +1 -0
- package/dist/components/ds-breadcrumb/index.d.ts +2 -0
- package/dist/components/ds-breadcrumb/index.js +1 -0
- package/dist/components/ds-button/ds-button.cjs +32 -0
- package/dist/components/ds-button/ds-button.d.cts +8 -0
- package/dist/components/ds-button/ds-button.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.d.ts +8 -0
- package/dist/components/ds-button/ds-button.d.ts.map +1 -0
- package/dist/components/ds-button/ds-button.js +32 -0
- package/dist/components/ds-button/ds-button.js.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.cts +12 -0
- package/dist/components/ds-button/ds-button.types.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.ts +12 -0
- package/dist/components/ds-button/ds-button.types.d.ts.map +1 -0
- package/dist/components/ds-button/index.cjs +1 -0
- package/dist/components/ds-button/index.d.ts +2 -0
- package/dist/components/ds-button/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +95 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +94 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.cjs +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +102 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +101 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.cjs +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.js +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.cjs +123 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.js +121 -0
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.cjs +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts.map +1 -0
- package/dist/components/ds-checkbox/index.cjs +1 -0
- package/dist/components/ds-checkbox/index.d.ts +2 -0
- package/dist/components/ds-checkbox/index.js +1 -0
- package/dist/components/ds-chip/ds-chip.cjs +130 -0
- package/dist/components/ds-chip/ds-chip.d.cts +12 -0
- package/dist/components/ds-chip/ds-chip.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.d.ts +12 -0
- package/dist/components/ds-chip/ds-chip.d.ts.map +1 -0
- package/dist/components/ds-chip/ds-chip.js +129 -0
- package/dist/components/ds-chip/ds-chip.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.module.cjs +12 -0
- package/dist/components/ds-chip/ds-chip.module.js +12 -0
- package/dist/components/ds-chip/ds-chip.module.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts +49 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts +50 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts.map +1 -0
- package/dist/components/ds-chip/index.cjs +1 -0
- package/dist/components/ds-chip/index.d.ts +2 -0
- package/dist/components/ds-chip/index.js +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.cjs +108 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.js +106 -0
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.cjs +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts.map +1 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.cjs +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -0
- package/dist/components/ds-chip-group/index.cjs +1 -0
- package/dist/components/ds-chip-group/index.d.ts +2 -0
- package/dist/components/ds-chip-group/index.js +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.cjs +235 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.js +234 -0
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.cjs +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts.map +1 -0
- package/dist/components/ds-confirmation/index.cjs +1 -0
- package/dist/components/ds-confirmation/index.d.ts +2 -0
- package/dist/components/ds-confirmation/index.js +1 -0
- package/dist/components/ds-dialog/ds-dialog.cjs +60 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.js +58 -0
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.module.cjs +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts.map +1 -0
- package/dist/components/ds-dialog/index.cjs +1 -0
- package/dist/components/ds-dialog/index.d.ts +2 -0
- package/dist/components/ds-dialog/index.js +1 -0
- package/dist/components/ds-drawer/ds-drawer.cjs +297 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.js +296 -0
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.module.cjs +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts.map +1 -0
- package/dist/components/ds-drawer/index.cjs +1 -0
- package/dist/components/ds-drawer/index.d.ts +2 -0
- package/dist/components/ds-drawer/index.js +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +629 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +626 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.cjs +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/index.cjs +1 -0
- package/dist/components/ds-dropdown-menu/index.d.ts +2 -0
- package/dist/components/ds-dropdown-menu/index.js +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +173 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +172 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.cjs +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts +21 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts +23 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/index.cjs +1 -0
- package/dist/components/ds-expandable-text-input/index.d.ts +2 -0
- package/dist/components/ds-expandable-text-input/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +217 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +216 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.cjs +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.d.ts +2 -0
- package/dist/components/ds-file-upload/components/file-upload/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +297 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +296 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.cjs +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.js +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.cjs +117 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.js +117 -0
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts +36 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts +37 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.cjs +30 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js +28 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -0
- package/dist/components/ds-file-upload/hooks/index.cjs +1 -0
- package/dist/components/ds-file-upload/hooks/index.d.ts +1 -0
- package/dist/components/ds-file-upload/hooks/index.js +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts +59 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts +60 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/index.cjs +6 -0
- package/dist/components/ds-file-upload/index.d.ts +9 -0
- package/dist/components/ds-file-upload/index.js +6 -0
- package/dist/components/ds-file-upload/types/accept-types.cjs +117 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.js +117 -0
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -0
- package/dist/components/ds-file-upload/utils/accept-utils.cjs +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -0
- package/dist/components/ds-file-upload/utils/constants.cjs +24 -0
- package/dist/components/ds-file-upload/utils/constants.js +22 -0
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -0
- package/dist/components/ds-file-upload/utils/file-factory.cjs +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -0
- package/dist/components/ds-file-upload/utils/format-file-size.cjs +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.cjs +21 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js +22 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -0
- package/dist/components/ds-file-upload/utils/get-error-message.cjs +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.cjs +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.cjs +179 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts +33 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts +38 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.js +178 -0
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.module.cjs +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.cjs +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts +59 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts +60 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.js +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -0
- package/dist/components/ds-form-control/index.cjs +2 -0
- package/dist/components/ds-form-control/index.d.ts +2 -0
- package/dist/components/ds-form-control/index.js +2 -0
- package/dist/components/ds-grid/ds-grid.cjs +36 -0
- package/dist/components/ds-grid/ds-grid.d.cts +16 -0
- package/dist/components/ds-grid/ds-grid.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.d.ts +16 -0
- package/dist/components/ds-grid/ds-grid.d.ts.map +1 -0
- package/dist/components/ds-grid/ds-grid.js +34 -0
- package/dist/components/ds-grid/ds-grid.js.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts.map +1 -0
- package/dist/components/ds-grid/index.cjs +1 -0
- package/dist/components/ds-grid/index.d.ts +2 -0
- package/dist/components/ds-grid/index.js +1 -0
- package/dist/components/ds-icon/ds-icon.cjs +100 -0
- package/dist/components/ds-icon/ds-icon.d.cts +12 -0
- package/dist/components/ds-icon/ds-icon.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.d.ts +12 -0
- package/dist/components/ds-icon/ds-icon.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.js +99 -0
- package/dist/components/ds-icon/ds-icon.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.module.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.module.js +14 -0
- package/dist/components/ds-icon/ds-icon.module.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.js +13 -0
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -0
- package/dist/components/ds-icon/index.cjs +2 -0
- package/dist/components/ds-icon/index.d.ts +2 -0
- package/dist/components/ds-icon/index.js +2 -0
- package/dist/components/ds-icon/material-icons.d.cts +6186 -0
- package/dist/components/ds-icon/material-icons.d.cts.map +1 -0
- package/dist/components/ds-icon/material-icons.d.ts +6186 -0
- package/dist/components/ds-icon/material-icons.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.cjs +252 -0
- package/dist/components/ds-modal/ds-modal.d.cts +79 -0
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.d.ts +79 -0
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.js +251 -0
- package/dist/components/ds-modal/ds-modal.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.module.cjs +31 -0
- package/dist/components/ds-modal/ds-modal.module.js +31 -0
- package/dist/components/ds-modal/ds-modal.module.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts.map +1 -0
- package/dist/components/ds-modal/index.cjs +1 -0
- package/dist/components/ds-modal/index.d.ts +2 -0
- package/dist/components/ds-modal/index.js +1 -0
- package/dist/components/ds-number-input/ds-number-input.cjs +158 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.js +157 -0
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.module.cjs +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts.map +1 -0
- package/dist/components/ds-number-input/index.cjs +1 -0
- package/dist/components/ds-number-input/index.d.ts +2 -0
- package/dist/components/ds-number-input/index.js +1 -0
- package/dist/components/ds-panel/ds-panel.cjs +130 -0
- package/dist/components/ds-panel/ds-panel.d.cts +17 -0
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.d.ts +17 -0
- package/dist/components/ds-panel/ds-panel.d.ts.map +1 -0
- package/dist/components/ds-panel/ds-panel.js +128 -0
- package/dist/components/ds-panel/ds-panel.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.module.cjs +13 -0
- package/dist/components/ds-panel/ds-panel.module.js +13 -0
- package/dist/components/ds-panel/ds-panel.module.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts.map +1 -0
- package/dist/components/ds-panel/index.cjs +1 -0
- package/dist/components/ds-panel/index.d.ts +2 -0
- package/dist/components/ds-panel/index.js +1 -0
- package/dist/components/ds-password-input/ds-password-input.cjs +125 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.js +124 -0
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.module.cjs +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts.map +1 -0
- package/dist/components/ds-password-input/index.cjs +1 -0
- package/dist/components/ds-password-input/index.d.ts +2 -0
- package/dist/components/ds-password-input/index.js +1 -0
- package/dist/components/ds-popover/ds-popover.cjs +64 -0
- package/dist/components/ds-popover/ds-popover.d.cts +8 -0
- package/dist/components/ds-popover/ds-popover.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.d.ts +8 -0
- package/dist/components/ds-popover/ds-popover.d.ts.map +1 -0
- package/dist/components/ds-popover/ds-popover.js +62 -0
- package/dist/components/ds-popover/ds-popover.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.module.cjs +9 -0
- package/dist/components/ds-popover/ds-popover.module.js +9 -0
- package/dist/components/ds-popover/ds-popover.module.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts.map +1 -0
- package/dist/components/ds-popover/index.cjs +1 -0
- package/dist/components/ds-popover/index.d.ts +2 -0
- package/dist/components/ds-popover/index.js +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.cjs +255 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.js +252 -0
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.cjs +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.cjs +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.js +1 -0
- package/dist/components/ds-radio-group/index.cjs +2 -0
- package/dist/components/ds-radio-group/index.d.ts +2 -0
- package/dist/components/ds-radio-group/index.js +2 -0
- package/dist/components/ds-select/ds-select.cjs +276 -0
- package/dist/components/ds-select/ds-select.d.cts +21 -0
- package/dist/components/ds-select/ds-select.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.d.ts +21 -0
- package/dist/components/ds-select/ds-select.d.ts.map +1 -0
- package/dist/components/ds-select/ds-select.js +275 -0
- package/dist/components/ds-select/ds-select.js.map +1 -0
- package/dist/components/ds-select/ds-select.module.cjs +24 -0
- package/dist/components/ds-select/ds-select.module.js +24 -0
- package/dist/components/ds-select/ds-select.module.js.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.cts +74 -0
- package/dist/components/ds-select/ds-select.types.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.ts +75 -0
- package/dist/components/ds-select/ds-select.types.d.ts.map +1 -0
- package/dist/components/ds-select/index.cjs +1 -0
- package/dist/components/ds-select/index.d.ts +2 -0
- package/dist/components/ds-select/index.js +1 -0
- package/dist/components/ds-select/select-items-chips.cjs +97 -0
- package/dist/components/ds-select/select-items-chips.js +97 -0
- package/dist/components/ds-select/select-items-chips.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +252 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +251 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.cjs +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.cjs +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -0
- package/dist/components/ds-smart-tabs/index.cjs +2 -0
- package/dist/components/ds-smart-tabs/index.d.ts +2 -0
- package/dist/components/ds-smart-tabs/index.js +2 -0
- package/dist/components/ds-spinner/ds-spinner.cjs +122 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.js +121 -0
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.module.cjs +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.cjs +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.js +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -0
- package/dist/components/ds-spinner/index.cjs +2 -0
- package/dist/components/ds-spinner/index.d.ts +2 -0
- package/dist/components/ds-spinner/index.js +2 -0
- package/dist/components/ds-status-badge/ds-status-badge.cjs +79 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.js +78 -0
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.cjs +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts +47 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts +48 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts.map +1 -0
- package/dist/components/ds-status-badge/index.cjs +1 -0
- package/dist/components/ds-status-badge/index.d.ts +2 -0
- package/dist/components/ds-status-badge/index.js +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.cjs +74 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.js +73 -0
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-description.cjs +23 -0
- package/dist/components/ds-stepper/components/ds-step-description.js +23 -0
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-label.cjs +23 -0
- package/dist/components/ds-stepper/components/ds-step-label.js +23 -0
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +33 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js +33 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.cjs +126 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.js +125 -0
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.cjs +78 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.js +77 -0
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.module.cjs +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts.map +1 -0
- package/dist/components/ds-stepper/hooks/use-stepper.cjs +14 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js +13 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -0
- package/dist/components/ds-stepper/hooks/use-steps.cjs +40 -0
- package/dist/components/ds-stepper/hooks/use-steps.js +39 -0
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -0
- package/dist/components/ds-stepper/index.cjs +4 -0
- package/dist/components/ds-stepper/index.d.ts +5 -0
- package/dist/components/ds-stepper/index.js +4 -0
- package/dist/components/ds-system-status/ds-system-status.cjs +67 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.js +66 -0
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.module.cjs +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.cjs +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.js +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -0
- package/dist/components/ds-system-status/index.cjs +2 -0
- package/dist/components/ds-system-status/index.d.ts +2 -0
- package/dist/components/ds-system-status/index.js +2 -0
- package/dist/components/ds-table/components/core-table/core-table.cjs +312 -0
- package/dist/components/ds-table/components/core-table/core-table.js +306 -0
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -0
- package/dist/components/ds-table/components/core-table/core-table.module.cjs +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js.map +1 -0
- package/dist/components/ds-table/components/core-table/index.cjs +1 -0
- package/dist/components/ds-table/components/core-table/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +161 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +160 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +175 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +174 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.cjs +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts +41 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts +42 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +104 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +103 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +312 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +310 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.cjs +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.js +1 -0
- package/dist/components/ds-table/context/ds-table-context.cjs +14 -0
- package/dist/components/ds-table/context/ds-table-context.js +13 -0
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -0
- package/dist/components/ds-table/ds-table.cjs +200 -0
- package/dist/components/ds-table/ds-table.d.cts +45 -0
- package/dist/components/ds-table/ds-table.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.d.ts +45 -0
- package/dist/components/ds-table/ds-table.d.ts.map +1 -0
- package/dist/components/ds-table/ds-table.js +199 -0
- package/dist/components/ds-table/ds-table.js.map +1 -0
- package/dist/components/ds-table/ds-table.module.cjs +25 -0
- package/dist/components/ds-table/ds-table.module.js +25 -0
- package/dist/components/ds-table/ds-table.module.js.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.cts +332 -0
- package/dist/components/ds-table/ds-table.types.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.ts +333 -0
- package/dist/components/ds-table/ds-table.types.d.ts.map +1 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +142 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +141 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -0
- package/dist/components/ds-table/index.cjs +1 -0
- package/dist/components/ds-table/index.d.ts +4 -0
- package/dist/components/ds-table/index.js +1 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.cjs +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js.map +1 -0
- package/dist/components/ds-table/utils/column-styling.cjs +23 -0
- package/dist/components/ds-table/utils/column-styling.js +23 -0
- package/dist/components/ds-table/utils/column-styling.js.map +1 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.cjs +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -0
- package/dist/components/ds-table/utils/merge-refs.cjs +13 -0
- package/dist/components/ds-table/utils/merge-refs.js +13 -0
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.cjs +142 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.js +141 -0
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.module.cjs +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.cjs +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.js +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -0
- package/dist/components/ds-text-input/index.cjs +2 -0
- package/dist/components/ds-text-input/index.d.ts +2 -0
- package/dist/components/ds-text-input/index.js +2 -0
- package/dist/components/ds-textarea/ds-textarea.cjs +78 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.js +77 -0
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.module.cjs +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts.map +1 -0
- package/dist/components/ds-textarea/index.cjs +1 -0
- package/dist/components/ds-textarea/index.d.ts +2 -0
- package/dist/components/ds-textarea/index.js +1 -0
- package/dist/components/ds-toast/ds-toast-context.cjs +85 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.js +84 -0
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.cjs +129 -0
- package/dist/components/ds-toast/ds-toast.js +129 -0
- package/dist/components/ds-toast/ds-toast.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.module.cjs +11 -0
- package/dist/components/ds-toast/ds-toast.module.js +11 -0
- package/dist/components/ds-toast/ds-toast.module.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts.map +1 -0
- package/dist/components/ds-toast/index.cjs +1 -0
- package/dist/components/ds-toast/index.d.ts +2 -0
- package/dist/components/ds-toast/index.js +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.cjs +74 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.js +72 -0
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.cjs +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts.map +1 -0
- package/dist/components/ds-tooltip/index.cjs +1 -0
- package/dist/components/ds-tooltip/index.d.ts +2 -0
- package/dist/components/ds-tooltip/index.js +1 -0
- package/dist/components/ds-typography/ds-typography.cjs +65 -0
- package/dist/components/ds-typography/ds-typography.config.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.js +30 -0
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.cts +10 -0
- package/dist/components/ds-typography/ds-typography.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.ts +10 -0
- package/dist/components/ds-typography/ds-typography.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.js +64 -0
- package/dist/components/ds-typography/ds-typography.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.module.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.module.js +30 -0
- package/dist/components/ds-typography/ds-typography.module.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts.map +1 -0
- package/dist/components/ds-typography/index.cjs +1 -0
- package/dist/components/ds-typography/index.d.ts +2 -0
- package/dist/components/ds-typography/index.js +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +137 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +136 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.cjs +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/index.cjs +1 -0
- package/dist/components/ds-vertical-tabs/index.d.ts +2 -0
- package/dist/components/ds-vertical-tabs/index.js +1 -0
- package/dist/index.cjs +136 -5394
- package/dist/index.d.cts +78 -9157
- package/dist/index.d.ts +112 -9157
- package/dist/index.js +83 -5335
- package/dist/index.min.css +1 -0
- package/package.json +10 -3
- package/src/components/ds-drawer/ds-drawer.module.scss +2 -2
- package/src/styles/_grid-variables.scss +13 -0
- package/src/styles/_grid.scss +17 -29
- package/dist/index.css +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let __dnd_kit_sortable = require("@dnd-kit/sortable");
|
|
7
|
+
let __dnd_kit_core = require("@dnd-kit/core");
|
|
8
|
+
let __dnd_kit_modifiers = require("@dnd-kit/modifiers");
|
|
9
|
+
|
|
10
|
+
//#region src/components/ds-table/hooks/use-drag-and-drop.tsx
|
|
11
|
+
const DragWrapper = (t0) => {
|
|
12
|
+
const $ = (0, react_compiler_runtime.c)(5);
|
|
13
|
+
const { children, onDragEnd, sensors } = t0;
|
|
14
|
+
let t1;
|
|
15
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
16
|
+
t1 = [__dnd_kit_modifiers.restrictToVerticalAxis];
|
|
17
|
+
$[0] = t1;
|
|
18
|
+
} else t1 = $[0];
|
|
19
|
+
let t2;
|
|
20
|
+
if ($[1] !== children || $[2] !== onDragEnd || $[3] !== sensors) {
|
|
21
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__dnd_kit_core.DndContext, {
|
|
22
|
+
collisionDetection: __dnd_kit_core.closestCenter,
|
|
23
|
+
modifiers: t1,
|
|
24
|
+
onDragEnd,
|
|
25
|
+
sensors,
|
|
26
|
+
children
|
|
27
|
+
});
|
|
28
|
+
$[1] = children;
|
|
29
|
+
$[2] = onDragEnd;
|
|
30
|
+
$[3] = sensors;
|
|
31
|
+
$[4] = t2;
|
|
32
|
+
} else t2 = $[4];
|
|
33
|
+
return t2;
|
|
34
|
+
};
|
|
35
|
+
const SortableWrapper = (t0) => {
|
|
36
|
+
const $ = (0, react_compiler_runtime.c)(3);
|
|
37
|
+
const { children, items } = t0;
|
|
38
|
+
let t1;
|
|
39
|
+
if ($[0] !== children || $[1] !== items) {
|
|
40
|
+
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__dnd_kit_sortable.SortableContext, {
|
|
41
|
+
items,
|
|
42
|
+
strategy: __dnd_kit_sortable.verticalListSortingStrategy,
|
|
43
|
+
children
|
|
44
|
+
});
|
|
45
|
+
$[0] = children;
|
|
46
|
+
$[1] = items;
|
|
47
|
+
$[2] = t1;
|
|
48
|
+
} else t1 = $[2];
|
|
49
|
+
return t1;
|
|
50
|
+
};
|
|
51
|
+
function useDragAndDrop(t0) {
|
|
52
|
+
const $ = (0, react_compiler_runtime.c)(18);
|
|
53
|
+
const { isDragEnabled, onOrderChange, items } = t0;
|
|
54
|
+
let t1;
|
|
55
|
+
if ($[0] !== items) {
|
|
56
|
+
t1 = items.map(_temp);
|
|
57
|
+
$[0] = items;
|
|
58
|
+
$[1] = t1;
|
|
59
|
+
} else t1 = $[1];
|
|
60
|
+
const dataIds = t1;
|
|
61
|
+
let t2;
|
|
62
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
63
|
+
t2 = {};
|
|
64
|
+
$[2] = t2;
|
|
65
|
+
} else t2 = $[2];
|
|
66
|
+
let t3;
|
|
67
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
68
|
+
t3 = {};
|
|
69
|
+
$[3] = t3;
|
|
70
|
+
} else t3 = $[3];
|
|
71
|
+
let t4;
|
|
72
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
|
+
t4 = {};
|
|
74
|
+
$[4] = t4;
|
|
75
|
+
} else t4 = $[4];
|
|
76
|
+
const sensors = (0, __dnd_kit_core.useSensors)((0, __dnd_kit_core.useSensor)(__dnd_kit_core.MouseSensor, t2), (0, __dnd_kit_core.useSensor)(__dnd_kit_core.TouchSensor, t3), (0, __dnd_kit_core.useSensor)(__dnd_kit_core.KeyboardSensor, t4));
|
|
77
|
+
let t5;
|
|
78
|
+
if ($[5] !== items || $[6] !== onOrderChange) {
|
|
79
|
+
t5 = (event) => {
|
|
80
|
+
const { active, over } = event;
|
|
81
|
+
if (active.id !== over?.id) {
|
|
82
|
+
const oldIndex = items.findIndex((row_0) => row_0.id === active.id);
|
|
83
|
+
const newIndex = items.findIndex((row_1) => row_1.id === over?.id);
|
|
84
|
+
if (oldIndex !== -1 && newIndex !== -1) {
|
|
85
|
+
const newData = (0, __dnd_kit_sortable.arrayMove)(items, oldIndex, newIndex);
|
|
86
|
+
onOrderChange?.(newData);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
$[5] = items;
|
|
91
|
+
$[6] = onOrderChange;
|
|
92
|
+
$[7] = t5;
|
|
93
|
+
} else t5 = $[7];
|
|
94
|
+
const handleDragEnd = t5;
|
|
95
|
+
let t6;
|
|
96
|
+
if ($[8] !== handleDragEnd || $[9] !== isDragEnabled || $[10] !== sensors) {
|
|
97
|
+
t6 = isDragEnabled ? (t7$1) => {
|
|
98
|
+
const { children } = t7$1;
|
|
99
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DragWrapper, {
|
|
100
|
+
onDragEnd: handleDragEnd,
|
|
101
|
+
sensors,
|
|
102
|
+
children
|
|
103
|
+
});
|
|
104
|
+
} : react.default.Fragment;
|
|
105
|
+
$[8] = handleDragEnd;
|
|
106
|
+
$[9] = isDragEnabled;
|
|
107
|
+
$[10] = sensors;
|
|
108
|
+
$[11] = t6;
|
|
109
|
+
} else t6 = $[11];
|
|
110
|
+
const DragWrapperComponent = t6;
|
|
111
|
+
let t7;
|
|
112
|
+
if ($[12] !== dataIds || $[13] !== isDragEnabled) {
|
|
113
|
+
t7 = isDragEnabled ? (t8$1) => {
|
|
114
|
+
const { children: children_0 } = t8$1;
|
|
115
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortableWrapper, {
|
|
116
|
+
items: dataIds,
|
|
117
|
+
children: children_0
|
|
118
|
+
});
|
|
119
|
+
} : react.default.Fragment;
|
|
120
|
+
$[12] = dataIds;
|
|
121
|
+
$[13] = isDragEnabled;
|
|
122
|
+
$[14] = t7;
|
|
123
|
+
} else t7 = $[14];
|
|
124
|
+
const SortableWrapperComponent = t7;
|
|
125
|
+
let t8;
|
|
126
|
+
if ($[15] !== DragWrapperComponent || $[16] !== SortableWrapperComponent) {
|
|
127
|
+
t8 = {
|
|
128
|
+
DragWrapper: DragWrapperComponent,
|
|
129
|
+
SortableWrapper: SortableWrapperComponent
|
|
130
|
+
};
|
|
131
|
+
$[15] = DragWrapperComponent;
|
|
132
|
+
$[16] = SortableWrapperComponent;
|
|
133
|
+
$[17] = t8;
|
|
134
|
+
} else t8 = $[17];
|
|
135
|
+
return t8;
|
|
136
|
+
}
|
|
137
|
+
function _temp(row) {
|
|
138
|
+
return row.id;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
//#endregion
|
|
142
|
+
exports.useDragAndDrop = useDragAndDrop;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { SortableContext, arrayMove, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
5
|
+
import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
6
|
+
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ds-table/hooks/use-drag-and-drop.tsx
|
|
9
|
+
const DragWrapper = (t0) => {
|
|
10
|
+
const $ = c(5);
|
|
11
|
+
const { children, onDragEnd, sensors } = t0;
|
|
12
|
+
let t1;
|
|
13
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
14
|
+
t1 = [restrictToVerticalAxis];
|
|
15
|
+
$[0] = t1;
|
|
16
|
+
} else t1 = $[0];
|
|
17
|
+
let t2;
|
|
18
|
+
if ($[1] !== children || $[2] !== onDragEnd || $[3] !== sensors) {
|
|
19
|
+
t2 = /* @__PURE__ */ jsx(DndContext, {
|
|
20
|
+
collisionDetection: closestCenter,
|
|
21
|
+
modifiers: t1,
|
|
22
|
+
onDragEnd,
|
|
23
|
+
sensors,
|
|
24
|
+
children
|
|
25
|
+
});
|
|
26
|
+
$[1] = children;
|
|
27
|
+
$[2] = onDragEnd;
|
|
28
|
+
$[3] = sensors;
|
|
29
|
+
$[4] = t2;
|
|
30
|
+
} else t2 = $[4];
|
|
31
|
+
return t2;
|
|
32
|
+
};
|
|
33
|
+
const SortableWrapper = (t0) => {
|
|
34
|
+
const $ = c(3);
|
|
35
|
+
const { children, items } = t0;
|
|
36
|
+
let t1;
|
|
37
|
+
if ($[0] !== children || $[1] !== items) {
|
|
38
|
+
t1 = /* @__PURE__ */ jsx(SortableContext, {
|
|
39
|
+
items,
|
|
40
|
+
strategy: verticalListSortingStrategy,
|
|
41
|
+
children
|
|
42
|
+
});
|
|
43
|
+
$[0] = children;
|
|
44
|
+
$[1] = items;
|
|
45
|
+
$[2] = t1;
|
|
46
|
+
} else t1 = $[2];
|
|
47
|
+
return t1;
|
|
48
|
+
};
|
|
49
|
+
function useDragAndDrop(t0) {
|
|
50
|
+
const $ = c(18);
|
|
51
|
+
const { isDragEnabled, onOrderChange, items } = t0;
|
|
52
|
+
let t1;
|
|
53
|
+
if ($[0] !== items) {
|
|
54
|
+
t1 = items.map(_temp);
|
|
55
|
+
$[0] = items;
|
|
56
|
+
$[1] = t1;
|
|
57
|
+
} else t1 = $[1];
|
|
58
|
+
const dataIds = t1;
|
|
59
|
+
let t2;
|
|
60
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
61
|
+
t2 = {};
|
|
62
|
+
$[2] = t2;
|
|
63
|
+
} else t2 = $[2];
|
|
64
|
+
let t3;
|
|
65
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
t3 = {};
|
|
67
|
+
$[3] = t3;
|
|
68
|
+
} else t3 = $[3];
|
|
69
|
+
let t4;
|
|
70
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
71
|
+
t4 = {};
|
|
72
|
+
$[4] = t4;
|
|
73
|
+
} else t4 = $[4];
|
|
74
|
+
const sensors = useSensors(useSensor(MouseSensor, t2), useSensor(TouchSensor, t3), useSensor(KeyboardSensor, t4));
|
|
75
|
+
let t5;
|
|
76
|
+
if ($[5] !== items || $[6] !== onOrderChange) {
|
|
77
|
+
t5 = (event) => {
|
|
78
|
+
const { active, over } = event;
|
|
79
|
+
if (active.id !== over?.id) {
|
|
80
|
+
const oldIndex = items.findIndex((row_0) => row_0.id === active.id);
|
|
81
|
+
const newIndex = items.findIndex((row_1) => row_1.id === over?.id);
|
|
82
|
+
if (oldIndex !== -1 && newIndex !== -1) {
|
|
83
|
+
const newData = arrayMove(items, oldIndex, newIndex);
|
|
84
|
+
onOrderChange?.(newData);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
$[5] = items;
|
|
89
|
+
$[6] = onOrderChange;
|
|
90
|
+
$[7] = t5;
|
|
91
|
+
} else t5 = $[7];
|
|
92
|
+
const handleDragEnd = t5;
|
|
93
|
+
let t6;
|
|
94
|
+
if ($[8] !== handleDragEnd || $[9] !== isDragEnabled || $[10] !== sensors) {
|
|
95
|
+
t6 = isDragEnabled ? (t7$1) => {
|
|
96
|
+
const { children } = t7$1;
|
|
97
|
+
return /* @__PURE__ */ jsx(DragWrapper, {
|
|
98
|
+
onDragEnd: handleDragEnd,
|
|
99
|
+
sensors,
|
|
100
|
+
children
|
|
101
|
+
});
|
|
102
|
+
} : React.Fragment;
|
|
103
|
+
$[8] = handleDragEnd;
|
|
104
|
+
$[9] = isDragEnabled;
|
|
105
|
+
$[10] = sensors;
|
|
106
|
+
$[11] = t6;
|
|
107
|
+
} else t6 = $[11];
|
|
108
|
+
const DragWrapperComponent = t6;
|
|
109
|
+
let t7;
|
|
110
|
+
if ($[12] !== dataIds || $[13] !== isDragEnabled) {
|
|
111
|
+
t7 = isDragEnabled ? (t8$1) => {
|
|
112
|
+
const { children: children_0 } = t8$1;
|
|
113
|
+
return /* @__PURE__ */ jsx(SortableWrapper, {
|
|
114
|
+
items: dataIds,
|
|
115
|
+
children: children_0
|
|
116
|
+
});
|
|
117
|
+
} : React.Fragment;
|
|
118
|
+
$[12] = dataIds;
|
|
119
|
+
$[13] = isDragEnabled;
|
|
120
|
+
$[14] = t7;
|
|
121
|
+
} else t7 = $[14];
|
|
122
|
+
const SortableWrapperComponent = t7;
|
|
123
|
+
let t8;
|
|
124
|
+
if ($[15] !== DragWrapperComponent || $[16] !== SortableWrapperComponent) {
|
|
125
|
+
t8 = {
|
|
126
|
+
DragWrapper: DragWrapperComponent,
|
|
127
|
+
SortableWrapper: SortableWrapperComponent
|
|
128
|
+
};
|
|
129
|
+
$[15] = DragWrapperComponent;
|
|
130
|
+
$[16] = SortableWrapperComponent;
|
|
131
|
+
$[17] = t8;
|
|
132
|
+
} else t8 = $[17];
|
|
133
|
+
return t8;
|
|
134
|
+
}
|
|
135
|
+
function _temp(row) {
|
|
136
|
+
return row.id;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
//#endregion
|
|
140
|
+
export { useDragAndDrop };
|
|
141
|
+
//# sourceMappingURL=use-drag-and-drop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-drag-and-drop.js","names":["React","DragEndEvent","UniqueIdentifier","closestCenter","DndContext","KeyboardSensor","MouseSensor","TouchSensor","useSensor","useSensors","arrayMove","SortableContext","verticalListSortingStrategy","restrictToVerticalAxis","UseDragAndDropResult","DragWrapper","ComponentType","PropsWithChildren","SortableWrapper","UseDragAndDropOptions","isDragEnabled","onOrderChange","newData","T","items","DragWrapperProps","onDragEnd","event","sensors","ReturnType","t0","$","_c","children","t1","Symbol","for","t2","SortableWrapperProps","useDragAndDrop","map","_temp","dataIds","t3","t4","t5","active","over","id","oldIndex","findIndex","row_0","row","newIndex","row_1","handleDragEnd","t6","t7","Fragment","DragWrapperComponent","t8","children_0","SortableWrapperComponent"],"sources":["../../../../src/components/ds-table/hooks/use-drag-and-drop.tsx"],"sourcesContent":["import React from 'react';\nimport {\n\ttype DragEndEvent,\n\ttype UniqueIdentifier,\n\tclosestCenter,\n\tDndContext,\n\tKeyboardSensor,\n\tMouseSensor,\n\tTouchSensor,\n\tuseSensor,\n\tuseSensors,\n} from '@dnd-kit/core';\nimport { arrayMove, SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';\nimport { restrictToVerticalAxis } from '@dnd-kit/modifiers';\n\nexport interface UseDragAndDropResult {\n\tDragWrapper: React.ComponentType<React.PropsWithChildren>;\n\tSortableWrapper: React.ComponentType<React.PropsWithChildren>;\n}\n\nexport interface UseDragAndDropOptions<T> {\n\tisDragEnabled: boolean;\n\tonOrderChange?: (newData: T[]) => void;\n\titems: T[];\n}\n\ntype DragWrapperProps = React.PropsWithChildren<{\n\tonDragEnd: (event: DragEndEvent) => void;\n\tsensors: ReturnType<typeof useSensors>;\n}>;\n\nconst DragWrapper = ({ children, onDragEnd, sensors }: DragWrapperProps) => (\n\t<DndContext\n\t\tcollisionDetection={closestCenter}\n\t\tmodifiers={[restrictToVerticalAxis]}\n\t\tonDragEnd={onDragEnd}\n\t\tsensors={sensors}\n\t>\n\t\t{children}\n\t</DndContext>\n);\n\ntype SortableWrapperProps = React.PropsWithChildren<{\n\titems: UniqueIdentifier[];\n}>;\n\nconst SortableWrapper = ({ children, items }: SortableWrapperProps) => (\n\t<SortableContext items={items} strategy={verticalListSortingStrategy}>\n\t\t{children}\n\t</SortableContext>\n);\n\nexport function useDragAndDrop<T extends { id: string }>({\n\tisDragEnabled,\n\tonOrderChange,\n\titems,\n}: UseDragAndDropOptions<T>): UseDragAndDropResult {\n\tconst dataIds = React.useMemo(() => items.map((row) => row.id), [items]);\n\n\tconst sensors = useSensors(\n\t\tuseSensor(MouseSensor, {}),\n\t\tuseSensor(TouchSensor, {}),\n\t\tuseSensor(KeyboardSensor, {}),\n\t);\n\n\tconst handleDragEnd = React.useCallback(\n\t\t(event: DragEndEvent) => {\n\t\t\tconst { active, over } = event;\n\t\t\tif (active.id !== over?.id) {\n\t\t\t\tconst oldIndex = items.findIndex((row) => row.id === active.id);\n\t\t\t\tconst newIndex = items.findIndex((row) => row.id === over?.id);\n\t\t\t\tif (oldIndex !== -1 && newIndex !== -1) {\n\t\t\t\t\tconst newData = arrayMove(items, oldIndex, newIndex);\n\t\t\t\t\tonOrderChange?.(newData);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[items, onOrderChange],\n\t);\n\n\tconst DragWrapperComponent = React.useMemo(\n\t\t() =>\n\t\t\tisDragEnabled\n\t\t\t\t? ({ children }: React.PropsWithChildren) => (\n\t\t\t\t\t\t<DragWrapper onDragEnd={handleDragEnd} sensors={sensors}>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</DragWrapper>\n\t\t\t\t\t)\n\t\t\t\t: React.Fragment,\n\t\t[isDragEnabled, handleDragEnd, sensors],\n\t);\n\n\tconst SortableWrapperComponent = React.useMemo(\n\t\t() =>\n\t\t\tisDragEnabled\n\t\t\t\t? ({ children }: React.PropsWithChildren) => (\n\t\t\t\t\t\t<SortableWrapper items={dataIds}>{children}</SortableWrapper>\n\t\t\t\t\t)\n\t\t\t\t: React.Fragment,\n\t\t[isDragEnabled, dataIds],\n\t);\n\n\treturn {\n\t\tDragWrapper: DragWrapperComponent,\n\t\tSortableWrapper: SortableWrapperComponent,\n\t};\n}\n"],"mappings":";;;;;;;;AA+BA,MAAMe,eAAce,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAC,UAAAP,WAAAE,YAAAE;CAAkD,IAAAI;AAAA,KAAAH,EAAA,OAAAI,OAAAC,IAAA,4BAAA,EAAA;AAG1DF,OAAA,CAACrB,uBAAuB;AAAAkB,IAAA,KAAAG;OAAAA,MAAAH,EAAA;CAAA,IAAAM;AAAA,KAAAN,EAAA,OAAAE,YAAAF,EAAA,OAAAL,aAAAK,EAAA,OAAAH,SAAA;AAFpCS,OAAA,oBAAC;GACoBlC,oBAAAA;GACT,WAAA+B;GACAR;GACFE;GAERK;IACW;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAL;AAAAK,IAAA,KAAAH;AAAAG,IAAA,KAAAM;OAAAA,MAAAN,EAAA;AAAA,QAPbM;;AAcD,MAAMnB,mBAAkBY,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAC,UAAAT,UAAAM;CAAyC,IAAAI;AAAA,KAAAH,EAAA,OAAAE,YAAAF,EAAA,OAAAP,OAAA;AACjEU,OAAA,oBAAC;GAAuBV;GAAiBZ,UAAAA;GACvCqB;IACgB;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAP;AAAAO,IAAA,KAAAG;OAAAA,MAAAH,EAAA;AAAA,QAFlBG;;AAKD,SAAOK,eAAAT,IAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAkD,MAAA,EAAAZ,eAAAC,eAAAG,UAAAM;CAI9B,IAAAI;AAAA,KAAAH,EAAA,OAAAP,OAAA;AACUU,OAAAV,MAAKgB,IAAKC,MAAgB;AAAAV,IAAA,KAAAP;AAAAO,IAAA,KAAAG;OAAAA,MAAAH,EAAA;CAA9D,MAAAW,UAAoCR;CAAqC,IAAAG;AAAA,KAAAN,EAAA,OAAAI,OAAAC,IAAA,4BAAA,EAAA;AAGjDC,OAAA,EAAE;AAAAN,IAAA,KAAAM;OAAAA,MAAAN,EAAA;CAAA,IAAAY;AAAA,KAAAZ,EAAA,OAAAI,OAAAC,IAAA,4BAAA,EAAA;AACFO,OAAA,EAAE;AAAAZ,IAAA,KAAAY;OAAAA,MAAAZ,EAAA;CAAA,IAAAa;AAAA,KAAAb,EAAA,OAAAI,OAAAC,IAAA,4BAAA,EAAA;AACCQ,OAAA,EAAE;AAAAb,IAAA,KAAAa;OAAAA,MAAAb,EAAA;CAH7B,MAAAH,UAAgBnB,WACfD,UAAUF,aAAa+B,GAAG,EAC1B7B,UAAUD,aAAaoC,GAAG,EAC1BnC,UAAUH,gBAAgBuC,GAC3B,CAAC;CAAC,IAAAC;AAAA,KAAAd,EAAA,OAAAP,SAAAO,EAAA,OAAAV,eAAA;AAGDwB,QAAAlB,UAAA;GACC,MAAA,EAAAmB,QAAAC,SAAyBpB;AACzB,OAAImB,OAAME,OAAQD,MAAIC,IAAI;IACzB,MAAAC,WAAiBzB,MAAK0B,WAAWC,UAASC,MAAGJ,OAAQF,OAAME,GAAI;IAC/D,MAAAK,WAAiB7B,MAAK0B,WAAWI,UAASF,MAAGJ,OAAQD,MAAIC,GAAK;AAC9D,QAAIC,aAAa,MAAMI,aAAa,IAAE;KACrC,MAAA/B,UAAgBZ,UAAUc,OAAOyB,UAAUI,SAAS;AACpDhC,qBAAgBC,QAAQ;;;;AAG1BS,IAAA,KAAAP;AAAAO,IAAA,KAAAV;AAAAU,IAAA,KAAAc;OAAAA,MAAAd,EAAA;CAXF,MAAAwB,gBAAsBV;CAapB,IAAAW;AAAA,KAAAzB,EAAA,OAAAwB,iBAAAxB,EAAA,OAAAX,iBAAAW,EAAA,QAAAH,SAAA;AAIA4B,OAAApC,iBAAAqC,SAAA;GACI,MAAA,EAAAxB,aAAAwB;AAAqC,UACtC,oBAAC;IAAuBF,WAAAA;IAAwB3B;IAC9CK;KACY;MAEdjC,MAAK0D;AAAS3B,IAAA,KAAAwB;AAAAxB,IAAA,KAAAX;AAAAW,IAAA,MAAAH;AAAAG,IAAA,MAAAyB;OAAAA,MAAAzB,EAAA;CARnB,MAAA4B,uBAEEH;CAQA,IAAAC;AAAA,KAAA1B,EAAA,QAAAW,WAAAX,EAAA,QAAAX,eAAA;AAIAqC,OAAArC,iBAAAwC,SAAA;GACI,MAAA,EAAA3B,UAAA4B,eAAAD;AAAqC,UACtC,oBAAC;IAAuBlB,OAAAA;cAAUT;KAA2B;MAE7DjC,MAAK0D;AAAS3B,IAAA,MAAAW;AAAAX,IAAA,MAAAX;AAAAW,IAAA,MAAA0B;OAAAA,MAAA1B,EAAA;CANnB,MAAA+B,2BAEEL;CAMA,IAAAG;AAAA,KAAA7B,EAAA,QAAA4B,wBAAA5B,EAAA,QAAA+B,0BAAA;AAEKF,OAAA;GAAA7C,aACO4C;GAAoBzC,iBAChB4C;GACjB;AAAA/B,IAAA,MAAA4B;AAAA5B,IAAA,MAAA+B;AAAA/B,IAAA,MAAA6B;OAAAA,MAAA7B,EAAA;AAAA,QAHM6B;;AAlDD,SAAAnB,MAAAW,KAAA;AAAA,QAKiDA,IAAGJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_table = require('./ds-table.cjs');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RowAction, SecondaryRowAction } from "./components/ds-table-cell/ds-table-cell.types.js";
|
|
2
|
+
import "./components/ds-table-cell/index.js";
|
|
3
|
+
import { Action, DsDataTableProps, DsTableApi, DsTableRowSize, ScrollParams } from "./ds-table.types.js";
|
|
4
|
+
import { DsTable } from "./ds-table.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_table_default from "./ds-table.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/styles/shared/ds-table-shared.module.scss
|
|
3
|
+
var ds_table_shared_module_default = {
|
|
4
|
+
"rotate": "_rotate_1vhho_1",
|
|
5
|
+
"pageButtonIcon": "_pageButtonIcon_1vhho_1",
|
|
6
|
+
"rotate-45": "_rotate-45_1vhho_1",
|
|
7
|
+
"rotate-90": "_rotate-90_1vhho_1",
|
|
8
|
+
"rotate-135": "_rotate-135_1vhho_1",
|
|
9
|
+
"rotate-180": "_rotate-180_1vhho_1",
|
|
10
|
+
"rotate-225": "_rotate-225_1vhho_1",
|
|
11
|
+
"rotate-270": "_rotate-270_1vhho_1",
|
|
12
|
+
"rotate-315": "_rotate-315_1vhho_1",
|
|
13
|
+
"checkboxContainer": "_checkboxContainer_1vhho_1"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.default = ds_table_shared_module_default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/ds-table/styles/shared/ds-table-shared.module.scss
|
|
2
|
+
var ds_table_shared_module_default = {
|
|
3
|
+
"rotate": "_rotate_1vhho_1",
|
|
4
|
+
"pageButtonIcon": "_pageButtonIcon_1vhho_1",
|
|
5
|
+
"rotate-45": "_rotate-45_1vhho_1",
|
|
6
|
+
"rotate-90": "_rotate-90_1vhho_1",
|
|
7
|
+
"rotate-135": "_rotate-135_1vhho_1",
|
|
8
|
+
"rotate-180": "_rotate-180_1vhho_1",
|
|
9
|
+
"rotate-225": "_rotate-225_1vhho_1",
|
|
10
|
+
"rotate-270": "_rotate-270_1vhho_1",
|
|
11
|
+
"rotate-315": "_rotate-315_1vhho_1",
|
|
12
|
+
"checkboxContainer": "_checkboxContainer_1vhho_1"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ds_table_shared_module_default as default };
|
|
17
|
+
//# sourceMappingURL=ds-table-shared.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-shared.module.js","names":[],"sources":["../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_utilities.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/styles/shared/ds-table-shared.module.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-table/styles/_variables.scss"],"sourcesContent":["@use '../../../../styles/utilities' as utils;\n@use '../variables' as vars;\n\n.checkboxContainer {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: fit-content;\n\tmargin: auto;\n\theight: 100%;\n}\n\n.pageButtonIcon {\n\tcolor: vars.$expand-toggle-icon-color;\n\t@extend .rotate;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __tanstack_react_table = require("@tanstack/react-table");
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-table/utils/column-styling.ts
|
|
5
|
+
/**
|
|
6
|
+
* Generates the appropriate style object for a table column/cell based on its size and virtualization state
|
|
7
|
+
*
|
|
8
|
+
* @param columnSize - The size of the column
|
|
9
|
+
* @param virtualized - Whether the table is virtualized
|
|
10
|
+
* @param isLastColumn - Whether this is the last column in the row
|
|
11
|
+
* @returns Style object or undefined if no custom styling is needed
|
|
12
|
+
*/
|
|
13
|
+
const getColumnStyle = (columnSize, virtualized, isLastColumn = false) => {
|
|
14
|
+
if (!(columnSize !== __tanstack_react_table.defaultColumnSizing.size)) return;
|
|
15
|
+
if (virtualized) return {
|
|
16
|
+
flexBasis: `${String(columnSize)}px`,
|
|
17
|
+
flexGrow: isLastColumn ? 1 : 0
|
|
18
|
+
};
|
|
19
|
+
return { width: columnSize };
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.getColumnStyle = getColumnStyle;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defaultColumnSizing } from "@tanstack/react-table";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-table/utils/column-styling.ts
|
|
4
|
+
/**
|
|
5
|
+
* Generates the appropriate style object for a table column/cell based on its size and virtualization state
|
|
6
|
+
*
|
|
7
|
+
* @param columnSize - The size of the column
|
|
8
|
+
* @param virtualized - Whether the table is virtualized
|
|
9
|
+
* @param isLastColumn - Whether this is the last column in the row
|
|
10
|
+
* @returns Style object or undefined if no custom styling is needed
|
|
11
|
+
*/
|
|
12
|
+
const getColumnStyle = (columnSize, virtualized, isLastColumn = false) => {
|
|
13
|
+
if (!(columnSize !== defaultColumnSizing.size)) return;
|
|
14
|
+
if (virtualized) return {
|
|
15
|
+
flexBasis: `${String(columnSize)}px`,
|
|
16
|
+
flexGrow: isLastColumn ? 1 : 0
|
|
17
|
+
};
|
|
18
|
+
return { width: columnSize };
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { getColumnStyle };
|
|
23
|
+
//# sourceMappingURL=column-styling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-styling.js","names":["CSSProperties","defaultColumnSizing","getColumnStyle","columnSize","virtualized","isLastColumn","hasCustomSize","size","undefined","flexBasis","String","flexGrow","width"],"sources":["../../../../src/components/ds-table/utils/column-styling.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport { defaultColumnSizing } from '@tanstack/react-table';\n\n/**\n * Generates the appropriate style object for a table column/cell based on its size and virtualization state\n *\n * @param columnSize - The size of the column\n * @param virtualized - Whether the table is virtualized\n * @param isLastColumn - Whether this is the last column in the row\n * @returns Style object or undefined if no custom styling is needed\n */\nexport const getColumnStyle = (\n\tcolumnSize: number,\n\tvirtualized?: boolean,\n\tisLastColumn: boolean = false,\n): CSSProperties | undefined => {\n\tconst hasCustomSize = columnSize !== defaultColumnSizing.size;\n\tif (!hasCustomSize) {\n\t\treturn undefined;\n\t}\n\n\tif (virtualized) {\n\t\treturn {\n\t\t\tflexBasis: `${String(columnSize)}px`,\n\t\t\tflexGrow: isLastColumn ? 1 : 0,\n\t\t};\n\t}\n\n\treturn { width: columnSize };\n};\n"],"mappings":";;;;;;;;;;;AAWA,MAAaE,kBACZC,YACAC,aACAC,eAAwB,UACO;AAE/B,KAAI,EADkBF,eAAeF,oBAAoBM,MAExD;AAGD,KAAIH,YACH,QAAO;EACNK,WAAW,GAAGC,OAAOP,WAAW,CAAA;EAChCQ,UAAUN,eAAe,IAAI;EAC7B;AAGF,QAAO,EAAEO,OAAOT,YAAY"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/utils/create-columns-grid-template.ts
|
|
3
|
+
function createColumnsGridTemplate({ columns, selectable }) {
|
|
4
|
+
return columns.reduce((acc, col) => {
|
|
5
|
+
acc.push(col.size ? `${String(col.size)}px` : "auto");
|
|
6
|
+
return acc;
|
|
7
|
+
}, selectable ? ["max-content"] : []).join(" ");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.createColumnsGridTemplate = createColumnsGridTemplate;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/ds-table/utils/create-columns-grid-template.ts
|
|
2
|
+
function createColumnsGridTemplate({ columns, selectable }) {
|
|
3
|
+
return columns.reduce((acc, col) => {
|
|
4
|
+
acc.push(col.size ? `${String(col.size)}px` : "auto");
|
|
5
|
+
return acc;
|
|
6
|
+
}, selectable ? ["max-content"] : []).join(" ");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createColumnsGridTemplate };
|
|
11
|
+
//# sourceMappingURL=create-columns-grid-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-columns-grid-template.js","names":["ColumnDef","Args","columns","selectable","createColumnsGridTemplate","reduce","acc","col","push","size","String","join"],"sources":["../../../../src/components/ds-table/utils/create-columns-grid-template.ts"],"sourcesContent":["import type { ColumnDef } from '@tanstack/react-table';\n\ntype Args = {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tcolumns: ColumnDef<any, any>[];\n\tselectable?: boolean;\n};\n\n// In virtualized tables, the rows should all be positioned at the top with a `translateY` offset.\n// We're using a Grid for this rather than `position: absolute` to ensure that each cell aligns with\n// other cells in the same column (mimicking the native table behavior).\nexport function createColumnsGridTemplate({ columns, selectable }: Args): string {\n\treturn columns\n\t\t.reduce<string[]>(\n\t\t\t(acc, col) => {\n\t\t\t\tacc.push(col.size ? `${String(col.size)}px` : 'auto');\n\n\t\t\t\treturn acc;\n\t\t\t},\n\t\t\tselectable ? ['max-content'] : [],\n\t\t)\n\t\t.join(' ');\n}\n"],"mappings":";AAWA,SAAgBI,0BAA0B,EAAEF,SAASC,cAA4B;AAChF,QAAOD,QACLG,QACCC,KAAKC,QAAQ;AACbD,MAAIE,KAAKD,IAAIE,OAAO,GAAGC,OAAOH,IAAIE,KAAK,CAAA,MAAO,OAAO;AAErD,SAAOH;IAERH,aAAa,CAAC,cAAc,GAAG,EAChC,CAAC,CACAQ,KAAK,IAAI"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/utils/merge-refs.ts
|
|
3
|
+
const mergeRefs = (...refs) => {
|
|
4
|
+
return (value) => {
|
|
5
|
+
refs.filter((r) => !!r).forEach((ref) => {
|
|
6
|
+
if (typeof ref === "function") ref(value);
|
|
7
|
+
else ref.current = value;
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.mergeRefs = mergeRefs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/components/ds-table/utils/merge-refs.ts
|
|
2
|
+
const mergeRefs = (...refs) => {
|
|
3
|
+
return (value) => {
|
|
4
|
+
refs.filter((r) => !!r).forEach((ref) => {
|
|
5
|
+
if (typeof ref === "function") ref(value);
|
|
6
|
+
else ref.current = value;
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { mergeRefs };
|
|
13
|
+
//# sourceMappingURL=merge-refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-refs.js","names":["Ref","RefCallback","mergeRefs","refs","Array","T","value","filter","r","forEach","ref","current"],"sources":["../../../../src/components/ds-table/utils/merge-refs.ts"],"sourcesContent":["import type { Ref, RefCallback } from 'react';\n\nexport const mergeRefs = <T>(...refs: Array<Ref<T> | undefined>): RefCallback<T> => {\n\treturn (value) => {\n\t\trefs\n\t\t\t.filter((r) => !!r)\n\t\t\t.forEach((ref) => {\n\t\t\t\tif (typeof ref === 'function') {\n\t\t\t\t\tref(value);\n\t\t\t\t} else {\n\t\t\t\t\tref.current = value;\n\t\t\t\t}\n\t\t\t});\n\t};\n};\n"],"mappings":";AAEA,MAAaE,aAAgB,GAAGC,SAAoD;AACnF,SAAQG,UAAU;AACjBH,OACEI,QAAQC,MAAM,CAAC,CAACA,EAAE,CAClBC,SAASC,QAAQ;AACjB,OAAI,OAAOA,QAAQ,WAClBA,KAAIJ,MAAM;OAEVI,KAAIC,UAAUL;IAEd"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ds_text_input_module = require('./ds-text-input.module.cjs');
|
|
3
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
4
|
+
let classnames = require("classnames");
|
|
5
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
let react = require("react");
|
|
8
|
+
|
|
9
|
+
//#region src/components/ds-text-input/ds-text-input.tsx
|
|
10
|
+
const DsTextInput = (t0) => {
|
|
11
|
+
const $ = (0, react_compiler_runtime.c)(40);
|
|
12
|
+
const { id, ref, name, size: t1, type: t2, onBlur, onKeyDown, onChange, onValueChange, className, style: t3, value, defaultValue, min, max, minLength, maxLength, placeholder, disabled: t4, tabIndex, slots } = t0;
|
|
13
|
+
const size = t1 === void 0 ? "default" : t1;
|
|
14
|
+
const type = t2 === void 0 ? "text" : t2;
|
|
15
|
+
let t5;
|
|
16
|
+
if ($[0] !== t3) {
|
|
17
|
+
t5 = t3 === void 0 ? {} : t3;
|
|
18
|
+
$[0] = t3;
|
|
19
|
+
$[1] = t5;
|
|
20
|
+
} else t5 = $[1];
|
|
21
|
+
const style = t5;
|
|
22
|
+
const disabled = t4 === void 0 ? false : t4;
|
|
23
|
+
const InputWrapper = slots?.inputWrapper ?? react.Fragment;
|
|
24
|
+
const t6 = size === "small";
|
|
25
|
+
const t7 = size === "default";
|
|
26
|
+
let t8;
|
|
27
|
+
if ($[2] !== className || $[3] !== t6 || $[4] !== t7) {
|
|
28
|
+
t8 = (0, classnames.default)(require_ds_text_input_module.default.textInputContainer, {
|
|
29
|
+
[require_ds_text_input_module.default.small]: t6,
|
|
30
|
+
[require_ds_text_input_module.default.default]: t7
|
|
31
|
+
}, className);
|
|
32
|
+
$[2] = className;
|
|
33
|
+
$[3] = t6;
|
|
34
|
+
$[4] = t7;
|
|
35
|
+
$[5] = t8;
|
|
36
|
+
} else t8 = $[5];
|
|
37
|
+
const containerClass = t8;
|
|
38
|
+
let t9;
|
|
39
|
+
if ($[6] !== onChange || $[7] !== onValueChange) {
|
|
40
|
+
t9 = (event) => {
|
|
41
|
+
const newValue = event.target.value;
|
|
42
|
+
onChange?.(event);
|
|
43
|
+
onValueChange?.(newValue);
|
|
44
|
+
};
|
|
45
|
+
$[6] = onChange;
|
|
46
|
+
$[7] = onValueChange;
|
|
47
|
+
$[8] = t9;
|
|
48
|
+
} else t9 = $[8];
|
|
49
|
+
const handleChange = t9;
|
|
50
|
+
let t10;
|
|
51
|
+
if ($[9] !== slots) {
|
|
52
|
+
t10 = slots?.startAdornment && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
53
|
+
className: require_ds_text_input_module.default.adornment,
|
|
54
|
+
children: slots.startAdornment
|
|
55
|
+
});
|
|
56
|
+
$[9] = slots;
|
|
57
|
+
$[10] = t10;
|
|
58
|
+
} else t10 = $[10];
|
|
59
|
+
let t11;
|
|
60
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
61
|
+
t11 = (0, classnames.default)(require_ds_text_input_module.default.input);
|
|
62
|
+
$[11] = t11;
|
|
63
|
+
} else t11 = $[11];
|
|
64
|
+
let t12;
|
|
65
|
+
if ($[12] !== defaultValue || $[13] !== disabled || $[14] !== handleChange || $[15] !== id || $[16] !== max || $[17] !== maxLength || $[18] !== min || $[19] !== minLength || $[20] !== name || $[21] !== onBlur || $[22] !== onKeyDown || $[23] !== placeholder || $[24] !== ref || $[25] !== tabIndex || $[26] !== type || $[27] !== value) {
|
|
66
|
+
t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
67
|
+
id,
|
|
68
|
+
ref,
|
|
69
|
+
name,
|
|
70
|
+
className: t11,
|
|
71
|
+
type,
|
|
72
|
+
value,
|
|
73
|
+
defaultValue,
|
|
74
|
+
min,
|
|
75
|
+
max,
|
|
76
|
+
minLength,
|
|
77
|
+
maxLength,
|
|
78
|
+
placeholder,
|
|
79
|
+
disabled,
|
|
80
|
+
onBlur,
|
|
81
|
+
onKeyDown,
|
|
82
|
+
onChange: handleChange,
|
|
83
|
+
tabIndex
|
|
84
|
+
});
|
|
85
|
+
$[12] = defaultValue;
|
|
86
|
+
$[13] = disabled;
|
|
87
|
+
$[14] = handleChange;
|
|
88
|
+
$[15] = id;
|
|
89
|
+
$[16] = max;
|
|
90
|
+
$[17] = maxLength;
|
|
91
|
+
$[18] = min;
|
|
92
|
+
$[19] = minLength;
|
|
93
|
+
$[20] = name;
|
|
94
|
+
$[21] = onBlur;
|
|
95
|
+
$[22] = onKeyDown;
|
|
96
|
+
$[23] = placeholder;
|
|
97
|
+
$[24] = ref;
|
|
98
|
+
$[25] = tabIndex;
|
|
99
|
+
$[26] = type;
|
|
100
|
+
$[27] = value;
|
|
101
|
+
$[28] = t12;
|
|
102
|
+
} else t12 = $[28];
|
|
103
|
+
let t13;
|
|
104
|
+
if ($[29] !== InputWrapper || $[30] !== t12) {
|
|
105
|
+
t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InputWrapper, { children: t12 });
|
|
106
|
+
$[29] = InputWrapper;
|
|
107
|
+
$[30] = t12;
|
|
108
|
+
$[31] = t13;
|
|
109
|
+
} else t13 = $[31];
|
|
110
|
+
let t14;
|
|
111
|
+
if ($[32] !== slots) {
|
|
112
|
+
t14 = slots?.endAdornment && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
113
|
+
className: require_ds_text_input_module.default.adornment,
|
|
114
|
+
children: slots.endAdornment
|
|
115
|
+
});
|
|
116
|
+
$[32] = slots;
|
|
117
|
+
$[33] = t14;
|
|
118
|
+
} else t14 = $[33];
|
|
119
|
+
let t15;
|
|
120
|
+
if ($[34] !== containerClass || $[35] !== style || $[36] !== t10 || $[37] !== t13 || $[38] !== t14) {
|
|
121
|
+
t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
122
|
+
className: containerClass,
|
|
123
|
+
style,
|
|
124
|
+
children: [
|
|
125
|
+
t10,
|
|
126
|
+
t13,
|
|
127
|
+
t14
|
|
128
|
+
]
|
|
129
|
+
});
|
|
130
|
+
$[34] = containerClass;
|
|
131
|
+
$[35] = style;
|
|
132
|
+
$[36] = t10;
|
|
133
|
+
$[37] = t13;
|
|
134
|
+
$[38] = t14;
|
|
135
|
+
$[39] = t15;
|
|
136
|
+
} else t15 = $[39];
|
|
137
|
+
return t15;
|
|
138
|
+
};
|
|
139
|
+
var ds_text_input_default = DsTextInput;
|
|
140
|
+
|
|
141
|
+
//#endregion
|
|
142
|
+
exports.default = ds_text_input_default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DsTextInputProps } from "./ds-text-input.types.cjs";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-text-input/ds-text-input.d.ts
|
|
5
|
+
declare const DsTextInput: FC<DsTextInputProps>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { DsTextInput };
|
|
8
|
+
//# sourceMappingURL=ds-text-input.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-text-input.d.cts","names":[],"sources":["../../../src/components/ds-text-input/ds-text-input.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,aAAa,GAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DsTextInputProps } from "./ds-text-input.types.js";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-text-input/ds-text-input.d.ts
|
|
5
|
+
declare const DsTextInput: FC<DsTextInputProps>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { DsTextInput };
|
|
8
|
+
//# sourceMappingURL=ds-text-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-text-input.d.ts","names":[],"sources":["../../../src/components/ds-text-input/ds-text-input.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,aAAa,GAAG"}
|