@drivenets/design-system 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +77 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js +76 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.cjs +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.cjs +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts +49 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts +50 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -0
- package/dist/components/ds-alert-banner/index.cjs +2 -0
- package/dist/components/ds-alert-banner/index.d.ts +2 -0
- package/dist/components/ds-alert-banner/index.js +2 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +92 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +91 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.cjs +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts +36 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts +37 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/index.cjs +1 -0
- package/dist/components/ds-breadcrumb/index.d.ts +2 -0
- package/dist/components/ds-breadcrumb/index.js +1 -0
- package/dist/components/ds-button/ds-button.cjs +16 -0
- package/dist/components/ds-button/ds-button.d.cts +8 -0
- package/dist/components/ds-button/ds-button.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.d.ts +8 -0
- package/dist/components/ds-button/ds-button.d.ts.map +1 -0
- package/dist/components/ds-button/ds-button.js +16 -0
- package/dist/components/ds-button/ds-button.js.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.cts +12 -0
- package/dist/components/ds-button/ds-button.types.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.ts +12 -0
- package/dist/components/ds-button/ds-button.types.d.ts.map +1 -0
- package/dist/components/ds-button/index.cjs +1 -0
- package/dist/components/ds-button/index.d.ts +2 -0
- package/dist/components/ds-button/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +26 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +25 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.cjs +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +34 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +33 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.cjs +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.js +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.cjs +52 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.js +50 -0
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.cjs +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts.map +1 -0
- package/dist/components/ds-checkbox/index.cjs +1 -0
- package/dist/components/ds-checkbox/index.d.ts +2 -0
- package/dist/components/ds-checkbox/index.js +1 -0
- package/dist/components/ds-chip/ds-chip.cjs +60 -0
- package/dist/components/ds-chip/ds-chip.d.cts +12 -0
- package/dist/components/ds-chip/ds-chip.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.d.ts +12 -0
- package/dist/components/ds-chip/ds-chip.d.ts.map +1 -0
- package/dist/components/ds-chip/ds-chip.js +59 -0
- package/dist/components/ds-chip/ds-chip.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.module.cjs +12 -0
- package/dist/components/ds-chip/ds-chip.module.js +12 -0
- package/dist/components/ds-chip/ds-chip.module.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts +49 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts +50 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts.map +1 -0
- package/dist/components/ds-chip/index.cjs +1 -0
- package/dist/components/ds-chip/index.d.ts +2 -0
- package/dist/components/ds-chip/index.js +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.cjs +108 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.js +106 -0
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.cjs +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts.map +1 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.cjs +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -0
- package/dist/components/ds-chip-group/index.cjs +1 -0
- package/dist/components/ds-chip-group/index.d.ts +2 -0
- package/dist/components/ds-chip-group/index.js +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.cjs +81 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.js +80 -0
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.cjs +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts.map +1 -0
- package/dist/components/ds-confirmation/index.cjs +1 -0
- package/dist/components/ds-confirmation/index.d.ts +2 -0
- package/dist/components/ds-confirmation/index.js +1 -0
- package/dist/components/ds-dialog/ds-dialog.cjs +60 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.js +58 -0
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.module.cjs +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts.map +1 -0
- package/dist/components/ds-dialog/index.cjs +1 -0
- package/dist/components/ds-dialog/index.d.ts +2 -0
- package/dist/components/ds-dialog/index.js +1 -0
- package/dist/components/ds-drawer/ds-drawer.cjs +97 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.js +96 -0
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.module.cjs +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts.map +1 -0
- package/dist/components/ds-drawer/index.cjs +1 -0
- package/dist/components/ds-drawer/index.d.ts +2 -0
- package/dist/components/ds-drawer/index.js +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +283 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +280 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.cjs +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/index.cjs +1 -0
- package/dist/components/ds-dropdown-menu/index.d.ts +2 -0
- package/dist/components/ds-dropdown-menu/index.js +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +83 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +82 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.cjs +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts +21 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts +23 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/index.cjs +1 -0
- package/dist/components/ds-expandable-text-input/index.d.ts +2 -0
- package/dist/components/ds-expandable-text-input/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +96 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +95 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.cjs +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.d.ts +2 -0
- package/dist/components/ds-file-upload/components/file-upload/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +156 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +155 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.cjs +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.js +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.cjs +37 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.js +37 -0
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts +36 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts +37 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.cjs +30 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js +28 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -0
- package/dist/components/ds-file-upload/hooks/index.cjs +1 -0
- package/dist/components/ds-file-upload/hooks/index.d.ts +1 -0
- package/dist/components/ds-file-upload/hooks/index.js +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts +59 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts +60 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/index.cjs +6 -0
- package/dist/components/ds-file-upload/index.d.ts +9 -0
- package/dist/components/ds-file-upload/index.js +6 -0
- package/dist/components/ds-file-upload/types/accept-types.cjs +117 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.js +117 -0
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -0
- package/dist/components/ds-file-upload/utils/accept-utils.cjs +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -0
- package/dist/components/ds-file-upload/utils/constants.cjs +24 -0
- package/dist/components/ds-file-upload/utils/constants.js +22 -0
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -0
- package/dist/components/ds-file-upload/utils/file-factory.cjs +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -0
- package/dist/components/ds-file-upload/utils/format-file-size.cjs +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.cjs +21 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js +22 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -0
- package/dist/components/ds-file-upload/utils/get-error-message.cjs +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.cjs +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.cjs +94 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts +33 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts +38 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.js +93 -0
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.module.cjs +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.cjs +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts +59 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts +60 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.js +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -0
- package/dist/components/ds-form-control/index.cjs +2 -0
- package/dist/components/ds-form-control/index.d.ts +2 -0
- package/dist/components/ds-form-control/index.js +2 -0
- package/dist/components/ds-grid/ds-grid.cjs +36 -0
- package/dist/components/ds-grid/ds-grid.d.cts +16 -0
- package/dist/components/ds-grid/ds-grid.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.d.ts +16 -0
- package/dist/components/ds-grid/ds-grid.d.ts.map +1 -0
- package/dist/components/ds-grid/ds-grid.js +34 -0
- package/dist/components/ds-grid/ds-grid.js.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts.map +1 -0
- package/dist/components/ds-grid/index.cjs +1 -0
- package/dist/components/ds-grid/index.d.ts +2 -0
- package/dist/components/ds-grid/index.js +1 -0
- package/dist/components/ds-icon/ds-icon.cjs +29 -0
- package/dist/components/ds-icon/ds-icon.d.cts +12 -0
- package/dist/components/ds-icon/ds-icon.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.d.ts +12 -0
- package/dist/components/ds-icon/ds-icon.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.js +28 -0
- package/dist/components/ds-icon/ds-icon.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.module.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.module.js +14 -0
- package/dist/components/ds-icon/ds-icon.module.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.js +13 -0
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -0
- package/dist/components/ds-icon/index.cjs +2 -0
- package/dist/components/ds-icon/index.d.ts +2 -0
- package/dist/components/ds-icon/index.js +2 -0
- package/dist/components/ds-icon/material-icons.d.cts +6186 -0
- package/dist/components/ds-icon/material-icons.d.cts.map +1 -0
- package/dist/components/ds-icon/material-icons.d.ts +6186 -0
- package/dist/components/ds-icon/material-icons.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.cjs +85 -0
- package/dist/components/ds-modal/ds-modal.d.cts +79 -0
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.d.ts +79 -0
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.js +84 -0
- package/dist/components/ds-modal/ds-modal.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.module.cjs +31 -0
- package/dist/components/ds-modal/ds-modal.module.js +31 -0
- package/dist/components/ds-modal/ds-modal.module.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts.map +1 -0
- package/dist/components/ds-modal/index.cjs +1 -0
- package/dist/components/ds-modal/index.d.ts +2 -0
- package/dist/components/ds-modal/index.js +1 -0
- package/dist/components/ds-number-input/ds-number-input.cjs +71 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.js +70 -0
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.module.cjs +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts.map +1 -0
- package/dist/components/ds-number-input/index.cjs +1 -0
- package/dist/components/ds-number-input/index.d.ts +2 -0
- package/dist/components/ds-number-input/index.js +1 -0
- package/dist/components/ds-panel/ds-panel.cjs +38 -0
- package/dist/components/ds-panel/ds-panel.d.cts +17 -0
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.d.ts +17 -0
- package/dist/components/ds-panel/ds-panel.d.ts.map +1 -0
- package/dist/components/ds-panel/ds-panel.js +36 -0
- package/dist/components/ds-panel/ds-panel.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.module.cjs +13 -0
- package/dist/components/ds-panel/ds-panel.module.js +13 -0
- package/dist/components/ds-panel/ds-panel.module.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts.map +1 -0
- package/dist/components/ds-panel/index.cjs +1 -0
- package/dist/components/ds-panel/index.d.ts +2 -0
- package/dist/components/ds-panel/index.js +1 -0
- package/dist/components/ds-password-input/ds-password-input.cjs +58 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.js +57 -0
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.module.cjs +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts.map +1 -0
- package/dist/components/ds-password-input/index.cjs +1 -0
- package/dist/components/ds-password-input/index.d.ts +2 -0
- package/dist/components/ds-password-input/index.js +1 -0
- package/dist/components/ds-popover/ds-popover.cjs +26 -0
- package/dist/components/ds-popover/ds-popover.d.cts +8 -0
- package/dist/components/ds-popover/ds-popover.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.d.ts +8 -0
- package/dist/components/ds-popover/ds-popover.d.ts.map +1 -0
- package/dist/components/ds-popover/ds-popover.js +24 -0
- package/dist/components/ds-popover/ds-popover.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.module.cjs +9 -0
- package/dist/components/ds-popover/ds-popover.module.js +9 -0
- package/dist/components/ds-popover/ds-popover.module.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts.map +1 -0
- package/dist/components/ds-popover/index.cjs +1 -0
- package/dist/components/ds-popover/index.d.ts +2 -0
- package/dist/components/ds-popover/index.js +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.cjs +99 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.js +96 -0
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.cjs +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.cjs +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.js +1 -0
- package/dist/components/ds-radio-group/index.cjs +2 -0
- package/dist/components/ds-radio-group/index.d.ts +2 -0
- package/dist/components/ds-radio-group/index.js +2 -0
- package/dist/components/ds-select/ds-select.cjs +167 -0
- package/dist/components/ds-select/ds-select.d.cts +21 -0
- package/dist/components/ds-select/ds-select.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.d.ts +21 -0
- package/dist/components/ds-select/ds-select.d.ts.map +1 -0
- package/dist/components/ds-select/ds-select.js +166 -0
- package/dist/components/ds-select/ds-select.js.map +1 -0
- package/dist/components/ds-select/ds-select.module.cjs +24 -0
- package/dist/components/ds-select/ds-select.module.js +24 -0
- package/dist/components/ds-select/ds-select.module.js.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.cts +74 -0
- package/dist/components/ds-select/ds-select.types.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.ts +75 -0
- package/dist/components/ds-select/ds-select.types.d.ts.map +1 -0
- package/dist/components/ds-select/index.cjs +1 -0
- package/dist/components/ds-select/index.d.ts +2 -0
- package/dist/components/ds-select/index.js +1 -0
- package/dist/components/ds-select/select-items-chips.cjs +46 -0
- package/dist/components/ds-select/select-items-chips.js +46 -0
- package/dist/components/ds-select/select-items-chips.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +90 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +89 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.cjs +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.cjs +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -0
- package/dist/components/ds-smart-tabs/index.cjs +2 -0
- package/dist/components/ds-smart-tabs/index.d.ts +2 -0
- package/dist/components/ds-smart-tabs/index.js +2 -0
- package/dist/components/ds-spinner/ds-spinner.cjs +52 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.js +51 -0
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.module.cjs +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.cjs +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.js +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -0
- package/dist/components/ds-spinner/index.cjs +2 -0
- package/dist/components/ds-spinner/index.d.ts +2 -0
- package/dist/components/ds-spinner/index.js +2 -0
- package/dist/components/ds-status-badge/ds-status-badge.cjs +36 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.js +35 -0
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.cjs +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts +47 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts +48 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts.map +1 -0
- package/dist/components/ds-status-badge/index.cjs +1 -0
- package/dist/components/ds-status-badge/index.d.ts +2 -0
- package/dist/components/ds-status-badge/index.js +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.cjs +28 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.js +27 -0
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-description.cjs +14 -0
- package/dist/components/ds-stepper/components/ds-step-description.js +14 -0
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-label.cjs +14 -0
- package/dist/components/ds-stepper/components/ds-step-label.js +14 -0
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +16 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js +16 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.cjs +45 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.js +44 -0
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.cjs +31 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.js +30 -0
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.module.cjs +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts.map +1 -0
- package/dist/components/ds-stepper/hooks/use-stepper.cjs +14 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js +13 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -0
- package/dist/components/ds-stepper/hooks/use-steps.cjs +20 -0
- package/dist/components/ds-stepper/hooks/use-steps.js +19 -0
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -0
- package/dist/components/ds-stepper/index.cjs +4 -0
- package/dist/components/ds-stepper/index.d.ts +5 -0
- package/dist/components/ds-stepper/index.js +4 -0
- package/dist/components/ds-system-status/ds-system-status.cjs +37 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.js +36 -0
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.module.cjs +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.cjs +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.js +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -0
- package/dist/components/ds-system-status/index.cjs +2 -0
- package/dist/components/ds-system-status/index.d.ts +2 -0
- package/dist/components/ds-system-status/index.js +2 -0
- package/dist/components/ds-table/components/core-table/core-table.cjs +79 -0
- package/dist/components/ds-table/components/core-table/core-table.js +73 -0
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -0
- package/dist/components/ds-table/components/core-table/core-table.module.cjs +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js.map +1 -0
- package/dist/components/ds-table/components/core-table/index.cjs +1 -0
- package/dist/components/ds-table/components/core-table/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +77 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +76 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +78 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +77 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.cjs +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts +41 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts +42 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +73 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +72 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +140 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +138 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.cjs +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.js +1 -0
- package/dist/components/ds-table/context/ds-table-context.cjs +14 -0
- package/dist/components/ds-table/context/ds-table-context.js +13 -0
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -0
- package/dist/components/ds-table/ds-table.cjs +200 -0
- package/dist/components/ds-table/ds-table.d.cts +45 -0
- package/dist/components/ds-table/ds-table.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.d.ts +45 -0
- package/dist/components/ds-table/ds-table.d.ts.map +1 -0
- package/dist/components/ds-table/ds-table.js +199 -0
- package/dist/components/ds-table/ds-table.js.map +1 -0
- package/dist/components/ds-table/ds-table.module.cjs +25 -0
- package/dist/components/ds-table/ds-table.module.js +25 -0
- package/dist/components/ds-table/ds-table.module.js.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.cts +332 -0
- package/dist/components/ds-table/ds-table.types.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.ts +333 -0
- package/dist/components/ds-table/ds-table.types.d.ts.map +1 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +54 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +53 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -0
- package/dist/components/ds-table/index.cjs +1 -0
- package/dist/components/ds-table/index.d.ts +4 -0
- package/dist/components/ds-table/index.js +1 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.cjs +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js.map +1 -0
- package/dist/components/ds-table/utils/column-styling.cjs +23 -0
- package/dist/components/ds-table/utils/column-styling.js +23 -0
- package/dist/components/ds-table/utils/column-styling.js.map +1 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.cjs +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -0
- package/dist/components/ds-table/utils/merge-refs.cjs +13 -0
- package/dist/components/ds-table/utils/merge-refs.js +13 -0
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.cjs +57 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.js +56 -0
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.module.cjs +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.cjs +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.js +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -0
- package/dist/components/ds-text-input/index.cjs +2 -0
- package/dist/components/ds-text-input/index.d.ts +2 -0
- package/dist/components/ds-text-input/index.js +2 -0
- package/dist/components/ds-textarea/ds-textarea.cjs +34 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.js +33 -0
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.module.cjs +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts.map +1 -0
- package/dist/components/ds-textarea/index.cjs +1 -0
- package/dist/components/ds-textarea/index.d.ts +2 -0
- package/dist/components/ds-textarea/index.js +1 -0
- package/dist/components/ds-toast/ds-toast-context.cjs +40 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.js +39 -0
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.cjs +65 -0
- package/dist/components/ds-toast/ds-toast.js +65 -0
- package/dist/components/ds-toast/ds-toast.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.module.cjs +11 -0
- package/dist/components/ds-toast/ds-toast.module.js +11 -0
- package/dist/components/ds-toast/ds-toast.module.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts.map +1 -0
- package/dist/components/ds-toast/index.cjs +1 -0
- package/dist/components/ds-toast/index.d.ts +2 -0
- package/dist/components/ds-toast/index.js +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.cjs +36 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.js +34 -0
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.cjs +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts.map +1 -0
- package/dist/components/ds-tooltip/index.cjs +1 -0
- package/dist/components/ds-tooltip/index.d.ts +2 -0
- package/dist/components/ds-tooltip/index.js +1 -0
- package/dist/components/ds-typography/ds-typography.cjs +21 -0
- package/dist/components/ds-typography/ds-typography.config.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.js +30 -0
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.cts +10 -0
- package/dist/components/ds-typography/ds-typography.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.ts +10 -0
- package/dist/components/ds-typography/ds-typography.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.js +20 -0
- package/dist/components/ds-typography/ds-typography.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.module.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.module.js +30 -0
- package/dist/components/ds-typography/ds-typography.module.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts.map +1 -0
- package/dist/components/ds-typography/index.cjs +1 -0
- package/dist/components/ds-typography/index.d.ts +2 -0
- package/dist/components/ds-typography/index.js +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +76 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +75 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.cjs +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/index.cjs +1 -0
- package/dist/components/ds-vertical-tabs/index.d.ts +2 -0
- package/dist/components/ds-vertical-tabs/index.js +1 -0
- package/dist/index.cjs +136 -5394
- package/dist/index.d.cts +78 -9157
- package/dist/index.d.ts +112 -9157
- package/dist/index.js +83 -5335
- package/dist/index.min.css +1 -0
- package/package.json +4 -3
- package/src/components/ds-drawer/ds-drawer.module.scss +2 -2
- package/src/styles/_grid-variables.scss +13 -0
- package/src/styles/_grid.scss +17 -29
- package/dist/index.css +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_core_table_module = require('./core-table.module.cjs');
|
|
3
|
+
let classnames = require("classnames");
|
|
4
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
|
|
7
|
+
//#region src/components/ds-table/components/core-table/core-table.tsx
|
|
8
|
+
function Table({ className, ref, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
|
|
10
|
+
ref,
|
|
11
|
+
className: (0, classnames.default)(require_core_table_module.default.table, className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
Table.displayName = "Table";
|
|
16
|
+
function TableHeader({ className, ref, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
|
|
18
|
+
ref,
|
|
19
|
+
className: (0, classnames.default)(require_core_table_module.default.tableHeader, className),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
TableHeader.displayName = "TableHeader";
|
|
24
|
+
function TableBody({ className, ref, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
|
|
26
|
+
ref,
|
|
27
|
+
className: (0, classnames.default)(require_core_table_module.default.tableBody, className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
TableBody.displayName = "TableBody";
|
|
32
|
+
function TableFooter({ className, ref, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tfoot", {
|
|
34
|
+
ref,
|
|
35
|
+
className: (0, classnames.default)(require_core_table_module.default.tableFooter, className),
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
TableFooter.displayName = "TableFooter";
|
|
40
|
+
function TableRow({ className, ref, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
|
|
42
|
+
ref,
|
|
43
|
+
className: (0, classnames.default)(require_core_table_module.default.tableRow, className),
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
TableRow.displayName = "TableRow";
|
|
48
|
+
function TableHead({ className, ref, ...props }) {
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
50
|
+
ref,
|
|
51
|
+
className: (0, classnames.default)(require_core_table_module.default.tableHead, className),
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
TableHead.displayName = "TableHead";
|
|
56
|
+
function TableCell({ className, ref, ...props }) {
|
|
57
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
|
|
58
|
+
ref,
|
|
59
|
+
className: (0, classnames.default)(require_core_table_module.default.tableCell, className),
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
TableCell.displayName = "TableCell";
|
|
64
|
+
function TableCaption({ className, ref, ...props }) {
|
|
65
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
|
|
66
|
+
ref,
|
|
67
|
+
className: (0, classnames.default)(require_core_table_module.default.tableCaption, className),
|
|
68
|
+
...props
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
TableCaption.displayName = "TableCaption";
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
exports.Table = Table;
|
|
75
|
+
exports.TableBody = TableBody;
|
|
76
|
+
exports.TableCell = TableCell;
|
|
77
|
+
exports.TableHead = TableHead;
|
|
78
|
+
exports.TableHeader = TableHeader;
|
|
79
|
+
exports.TableRow = TableRow;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import core_table_module_default from "./core-table.module.js";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ds-table/components/core-table/core-table.tsx
|
|
6
|
+
function Table({ className, ref, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx("table", {
|
|
8
|
+
ref,
|
|
9
|
+
className: classNames(core_table_module_default.table, className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
Table.displayName = "Table";
|
|
14
|
+
function TableHeader({ className, ref, ...props }) {
|
|
15
|
+
return /* @__PURE__ */ jsx("thead", {
|
|
16
|
+
ref,
|
|
17
|
+
className: classNames(core_table_module_default.tableHeader, className),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
TableHeader.displayName = "TableHeader";
|
|
22
|
+
function TableBody({ className, ref, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx("tbody", {
|
|
24
|
+
ref,
|
|
25
|
+
className: classNames(core_table_module_default.tableBody, className),
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
TableBody.displayName = "TableBody";
|
|
30
|
+
function TableFooter({ className, ref, ...props }) {
|
|
31
|
+
return /* @__PURE__ */ jsx("tfoot", {
|
|
32
|
+
ref,
|
|
33
|
+
className: classNames(core_table_module_default.tableFooter, className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
TableFooter.displayName = "TableFooter";
|
|
38
|
+
function TableRow({ className, ref, ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
40
|
+
ref,
|
|
41
|
+
className: classNames(core_table_module_default.tableRow, className),
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
TableRow.displayName = "TableRow";
|
|
46
|
+
function TableHead({ className, ref, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx("th", {
|
|
48
|
+
ref,
|
|
49
|
+
className: classNames(core_table_module_default.tableHead, className),
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
TableHead.displayName = "TableHead";
|
|
54
|
+
function TableCell({ className, ref, ...props }) {
|
|
55
|
+
return /* @__PURE__ */ jsx("td", {
|
|
56
|
+
ref,
|
|
57
|
+
className: classNames(core_table_module_default.tableCell, className),
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
TableCell.displayName = "TableCell";
|
|
62
|
+
function TableCaption({ className, ref, ...props }) {
|
|
63
|
+
return /* @__PURE__ */ jsx("caption", {
|
|
64
|
+
ref,
|
|
65
|
+
className: classNames(core_table_module_default.tableCaption, className),
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
TableCaption.displayName = "TableCaption";
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow };
|
|
73
|
+
//# sourceMappingURL=core-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-table.js","names":["classnames","styles"],"sources":["../../../../../src/components/ds-table/components/core-table/core-table.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref, TdHTMLAttributes, ThHTMLAttributes } from 'react';\nimport classnames from 'classnames';\nimport styles from './core-table.module.scss';\n\ntype TableProps = HTMLAttributes<HTMLTableElement> & { ref?: Ref<HTMLTableElement> };\n\nfunction Table({ className, ref, ...props }: TableProps) {\n\treturn <table ref={ref} className={classnames(styles.table, className)} {...props} />;\n}\n\nTable.displayName = 'Table';\n\ntype TableHeaderProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableHeader({ className, ref, ...props }: TableHeaderProps) {\n\treturn <thead ref={ref} className={classnames(styles.tableHeader, className)} {...props} />;\n}\n\nTableHeader.displayName = 'TableHeader';\n\ntype TableBodyProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableBody({ className, ref, ...props }: TableBodyProps) {\n\treturn <tbody ref={ref} className={classnames(styles.tableBody, className)} {...props} />;\n}\n\nTableBody.displayName = 'TableBody';\n\ntype TableFooterProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableFooter({ className, ref, ...props }: TableFooterProps) {\n\treturn <tfoot ref={ref} className={classnames(styles.tableFooter, className)} {...props} />;\n}\n\nTableFooter.displayName = 'TableFooter';\n\ntype TableRowProps = HTMLAttributes<HTMLTableRowElement> & {\n\tref?: Ref<HTMLTableRowElement>;\n};\n\nfunction TableRow({ className, ref, ...props }: TableRowProps) {\n\treturn <tr ref={ref} className={classnames(styles.tableRow, className)} {...props} />;\n}\n\nTableRow.displayName = 'TableRow';\n\ntype TableHeadProps = ThHTMLAttributes<HTMLTableCellElement> & {\n\tref?: Ref<HTMLTableCellElement>;\n};\n\nfunction TableHead({ className, ref, ...props }: TableHeadProps) {\n\treturn <th ref={ref} className={classnames(styles.tableHead, className)} {...props} />;\n}\n\nTableHead.displayName = 'TableHead';\n\ntype TableCellProps = TdHTMLAttributes<HTMLTableCellElement> & {\n\tref?: Ref<HTMLTableCellElement>;\n};\n\nfunction TableCell({ className, ref, ...props }: TableCellProps) {\n\treturn <td ref={ref} className={classnames(styles.tableCell, className)} {...props} />;\n}\n\nTableCell.displayName = 'TableCell';\n\ntype TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement> & {\n\tref?: Ref<HTMLTableCaptionElement>;\n};\n\nfunction TableCaption({ className, ref, ...props }: TableCaptionProps) {\n\treturn <caption ref={ref} className={classnames(styles.tableCaption, className)} {...props} />;\n}\n\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow };\n"],"mappings":";;;;;AAMA,SAAS,MAAM,EAAE,WAAW,KAAK,GAAG,SAAqB;AACxD,QAAO,oBAAC;EAAW;EAAK,WAAWA,WAAWC,0BAAO,OAAO,UAAU;EAAE,GAAI;GAAS;;AAGtF,MAAM,cAAc;AAMpB,SAAS,YAAY,EAAE,WAAW,KAAK,GAAG,SAA2B;AACpE,QAAO,oBAAC;EAAW;EAAK,WAAWD,WAAWC,0BAAO,aAAa,UAAU;EAAE,GAAI;GAAS;;AAG5F,YAAY,cAAc;AAM1B,SAAS,UAAU,EAAE,WAAW,KAAK,GAAG,SAAyB;AAChE,QAAO,oBAAC;EAAW;EAAK,WAAWD,WAAWC,0BAAO,WAAW,UAAU;EAAE,GAAI;GAAS;;AAG1F,UAAU,cAAc;AAMxB,SAAS,YAAY,EAAE,WAAW,KAAK,GAAG,SAA2B;AACpE,QAAO,oBAAC;EAAW;EAAK,WAAWD,WAAWC,0BAAO,aAAa,UAAU;EAAE,GAAI;GAAS;;AAG5F,YAAY,cAAc;AAM1B,SAAS,SAAS,EAAE,WAAW,KAAK,GAAG,SAAwB;AAC9D,QAAO,oBAAC;EAAQ;EAAK,WAAWD,WAAWC,0BAAO,UAAU,UAAU;EAAE,GAAI;GAAS;;AAGtF,SAAS,cAAc;AAMvB,SAAS,UAAU,EAAE,WAAW,KAAK,GAAG,SAAyB;AAChE,QAAO,oBAAC;EAAQ;EAAK,WAAWD,WAAWC,0BAAO,WAAW,UAAU;EAAE,GAAI;GAAS;;AAGvF,UAAU,cAAc;AAMxB,SAAS,UAAU,EAAE,WAAW,KAAK,GAAG,SAAyB;AAChE,QAAO,oBAAC;EAAQ;EAAK,WAAWD,WAAWC,0BAAO,WAAW,UAAU;EAAE,GAAI;GAAS;;AAGvF,UAAU,cAAc;AAMxB,SAAS,aAAa,EAAE,WAAW,KAAK,GAAG,SAA4B;AACtE,QAAO,oBAAC;EAAa;EAAK,WAAWD,WAAWC,0BAAO,cAAc,UAAU;EAAE,GAAI;GAAS;;AAG/F,aAAa,cAAc"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/components/core-table/core-table.module.scss
|
|
3
|
+
var core_table_module_default = {
|
|
4
|
+
"table": "_table_9wtya_1",
|
|
5
|
+
"tableFooter": "_tableFooter_9wtya_1",
|
|
6
|
+
"tableHead": "_tableHead_9wtya_1",
|
|
7
|
+
"tableCell": "_tableCell_9wtya_1",
|
|
8
|
+
"tableCaption": "_tableCaption_9wtya_1"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.default = core_table_module_default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/ds-table/components/core-table/core-table.module.scss
|
|
2
|
+
var core_table_module_default = {
|
|
3
|
+
"table": "_table_9wtya_1",
|
|
4
|
+
"tableFooter": "_tableFooter_9wtya_1",
|
|
5
|
+
"tableHead": "_tableHead_9wtya_1",
|
|
6
|
+
"tableCell": "_tableCell_9wtya_1",
|
|
7
|
+
"tableCaption": "_tableCaption_9wtya_1"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { core_table_module_default as default };
|
|
12
|
+
//# sourceMappingURL=core-table.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-table.module.js","names":[],"sources":["../../../../../src/components/ds-table/components/core-table/core-table.module.scss"],"sourcesContent":[".table {\n\twidth: 100%;\n\tcaption-side: bottom;\n\tfont-size: 0.875rem;\n\tline-height: 1.25rem;\n\tborder-collapse: separate;\n\tborder-spacing: 0;\n}\n\n.tableFooter {\n\tbackground-color: rgba(241, 245, 249, 0.5);\n\tfont-weight: 500;\n}\n\n.tableHead {\n\t&:has([role='checkbox']) {\n\t\tpadding-right: 0;\n\t}\n}\n\n.tableCell {\n\t&:has([role='checkbox']) {\n\t\tpadding-right: 0;\n\t}\n}\n\n.tableCaption {\n\tmargin-top: 1rem;\n\tfont-size: 0.875rem;\n\tline-height: 1.25rem;\n\tcolor: rgb(100, 116, 139);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_core_table = require('./core-table.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./core-table.js";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ds_icon = require('../../../ds-icon/ds-icon.cjs');
|
|
3
|
+
require('../../../ds-icon/index.cjs');
|
|
4
|
+
const require_ds_button = require('../../../ds-button/ds-button.cjs');
|
|
5
|
+
require('../../../ds-button/index.cjs');
|
|
6
|
+
const require_ds_table_bulk_actions_module = require('./ds-table-bulk-actions.module.cjs');
|
|
7
|
+
let classnames = require("classnames");
|
|
8
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let react = require("react");
|
|
11
|
+
|
|
12
|
+
//#region src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.tsx
|
|
13
|
+
const DsTableBulkActions = ({ numSelectedRows, actions, onClearSelection }) => {
|
|
14
|
+
const [isRendered, setIsRendered] = (0, react.useState)(false);
|
|
15
|
+
const [animationClass, setAnimationClass] = (0, react.useState)("");
|
|
16
|
+
(0, react.useEffect)(() => {
|
|
17
|
+
if (numSelectedRows > 0) {
|
|
18
|
+
setIsRendered(true);
|
|
19
|
+
setAnimationClass(require_ds_table_bulk_actions_module.default.entering);
|
|
20
|
+
} else if (isRendered) {
|
|
21
|
+
setAnimationClass(require_ds_table_bulk_actions_module.default.exiting);
|
|
22
|
+
const timer = setTimeout(() => {
|
|
23
|
+
setIsRendered(false);
|
|
24
|
+
setAnimationClass("");
|
|
25
|
+
}, 300);
|
|
26
|
+
return () => clearTimeout(timer);
|
|
27
|
+
}
|
|
28
|
+
}, [numSelectedRows, isRendered]);
|
|
29
|
+
if (!isRendered) return null;
|
|
30
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
31
|
+
className: (0, classnames.default)(require_ds_table_bulk_actions_module.default.bulkActionsContainer, animationClass),
|
|
32
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
33
|
+
className: require_ds_table_bulk_actions_module.default.selectedCountContainer,
|
|
34
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
35
|
+
className: (0, classnames.default)(require_ds_table_bulk_actions_module.default.selectedCountBadge, require_ds_table_bulk_actions_module.default.bold),
|
|
36
|
+
children: numSelectedRows
|
|
37
|
+
})
|
|
38
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
39
|
+
className: require_ds_table_bulk_actions_module.default.bulkActionsContent,
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
42
|
+
className: require_ds_table_bulk_actions_module.default.bulkActionsInfo,
|
|
43
|
+
children: "items selected"
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
46
|
+
className: require_ds_table_bulk_actions_module.default.bulkActionsActions,
|
|
47
|
+
children: actions.map((action, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_button.default, {
|
|
48
|
+
variant: "borderless",
|
|
49
|
+
size: "small",
|
|
50
|
+
className: require_ds_table_bulk_actions_module.default.actionButton,
|
|
51
|
+
contentClassName: require_ds_table_bulk_actions_module.default.actionButtonContent,
|
|
52
|
+
onClick: action.onClick,
|
|
53
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: action.icon }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
54
|
+
className: (require_ds_table_bulk_actions_module.default["p-s"], require_ds_table_bulk_actions_module.default.medium),
|
|
55
|
+
children: action.label
|
|
56
|
+
})]
|
|
57
|
+
}, index))
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_button.default, {
|
|
60
|
+
variant: "borderless",
|
|
61
|
+
size: "small",
|
|
62
|
+
color: "neutral-2",
|
|
63
|
+
contentClassName: require_ds_table_bulk_actions_module.default.escapeButtonContent,
|
|
64
|
+
onClick: onClearSelection,
|
|
65
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: "close" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
66
|
+
className: (require_ds_table_bulk_actions_module.default["p-s"], require_ds_table_bulk_actions_module.default.medium),
|
|
67
|
+
children: "Esc"
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
var ds_table_bulk_actions_default = DsTableBulkActions;
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
exports.default = ds_table_bulk_actions_default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import ds_icon_default from "../../../ds-icon/ds-icon.js";
|
|
2
|
+
import "../../../ds-icon/index.js";
|
|
3
|
+
import ds_button_default from "../../../ds-button/ds-button.js";
|
|
4
|
+
import "../../../ds-button/index.js";
|
|
5
|
+
import ds_table_bulk_actions_module_default from "./ds-table-bulk-actions.module.js";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { useEffect, useState } from "react";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.tsx
|
|
11
|
+
const DsTableBulkActions = ({ numSelectedRows, actions, onClearSelection }) => {
|
|
12
|
+
const [isRendered, setIsRendered] = useState(false);
|
|
13
|
+
const [animationClass, setAnimationClass] = useState("");
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (numSelectedRows > 0) {
|
|
16
|
+
setIsRendered(true);
|
|
17
|
+
setAnimationClass(ds_table_bulk_actions_module_default.entering);
|
|
18
|
+
} else if (isRendered) {
|
|
19
|
+
setAnimationClass(ds_table_bulk_actions_module_default.exiting);
|
|
20
|
+
const timer = setTimeout(() => {
|
|
21
|
+
setIsRendered(false);
|
|
22
|
+
setAnimationClass("");
|
|
23
|
+
}, 300);
|
|
24
|
+
return () => clearTimeout(timer);
|
|
25
|
+
}
|
|
26
|
+
}, [numSelectedRows, isRendered]);
|
|
27
|
+
if (!isRendered) return null;
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: classNames(ds_table_bulk_actions_module_default.bulkActionsContainer, animationClass),
|
|
30
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: ds_table_bulk_actions_module_default.selectedCountContainer,
|
|
32
|
+
children: /* @__PURE__ */ jsx("h3", {
|
|
33
|
+
className: classNames(ds_table_bulk_actions_module_default.selectedCountBadge, ds_table_bulk_actions_module_default.bold),
|
|
34
|
+
children: numSelectedRows
|
|
35
|
+
})
|
|
36
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
37
|
+
className: ds_table_bulk_actions_module_default.bulkActionsContent,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx("span", {
|
|
40
|
+
className: ds_table_bulk_actions_module_default.bulkActionsInfo,
|
|
41
|
+
children: "items selected"
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ jsx("div", {
|
|
44
|
+
className: ds_table_bulk_actions_module_default.bulkActionsActions,
|
|
45
|
+
children: actions.map((action, index) => /* @__PURE__ */ jsxs(ds_button_default, {
|
|
46
|
+
variant: "borderless",
|
|
47
|
+
size: "small",
|
|
48
|
+
className: ds_table_bulk_actions_module_default.actionButton,
|
|
49
|
+
contentClassName: ds_table_bulk_actions_module_default.actionButtonContent,
|
|
50
|
+
onClick: action.onClick,
|
|
51
|
+
children: [/* @__PURE__ */ jsx(ds_icon_default, { icon: action.icon }), /* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: (ds_table_bulk_actions_module_default["p-s"], ds_table_bulk_actions_module_default.medium),
|
|
53
|
+
children: action.label
|
|
54
|
+
})]
|
|
55
|
+
}, index))
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ jsxs(ds_button_default, {
|
|
58
|
+
variant: "borderless",
|
|
59
|
+
size: "small",
|
|
60
|
+
color: "neutral-2",
|
|
61
|
+
contentClassName: ds_table_bulk_actions_module_default.escapeButtonContent,
|
|
62
|
+
onClick: onClearSelection,
|
|
63
|
+
children: [/* @__PURE__ */ jsx(ds_icon_default, { icon: "close" }), /* @__PURE__ */ jsx("span", {
|
|
64
|
+
className: (ds_table_bulk_actions_module_default["p-s"], ds_table_bulk_actions_module_default.medium),
|
|
65
|
+
children: "Esc"
|
|
66
|
+
})]
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
var ds_table_bulk_actions_default = DsTableBulkActions;
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { ds_table_bulk_actions_default as default };
|
|
76
|
+
//# sourceMappingURL=ds-table-bulk-actions.js.map
|
package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-bulk-actions.js","names":["DsTableBulkActions: React.FC<BulkActionsProps>","styles","classnames","DsButton","DsIcon"],"sources":["../../../../../src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.tsx"],"sourcesContent":["import type React from 'react';\nimport { useEffect, useState } from 'react';\nimport classnames from 'classnames';\nimport { DsButton } from '../../../ds-button';\nimport { DsIcon } from '../../../ds-icon';\nimport styles from './ds-table-bulk-actions.module.scss';\nimport type { BulkActionsProps } from './ds-table-bulk-actions.types';\n\nconst DsTableBulkActions: React.FC<BulkActionsProps> = ({ numSelectedRows, actions, onClearSelection }) => {\n\tconst [isRendered, setIsRendered] = useState(false);\n\tconst [animationClass, setAnimationClass] = useState('');\n\n\tuseEffect(() => {\n\t\tif (numSelectedRows > 0) {\n\t\t\tsetIsRendered(true);\n\t\t\tsetAnimationClass(styles.entering);\n\t\t} else if (isRendered) {\n\t\t\tsetAnimationClass(styles.exiting);\n\t\t\tconst timer = setTimeout(() => {\n\t\t\t\tsetIsRendered(false);\n\t\t\t\tsetAnimationClass('');\n\t\t\t}, 300);\n\t\t\treturn () => clearTimeout(timer);\n\t\t}\n\t}, [numSelectedRows, isRendered]);\n\n\tif (!isRendered) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className={classnames(styles.bulkActionsContainer, animationClass)}>\n\t\t\t<div className={styles.selectedCountContainer}>\n\t\t\t\t<h3 className={classnames(styles.selectedCountBadge, styles.bold)}>{numSelectedRows}</h3>\n\t\t\t</div>\n\t\t\t<div className={styles.bulkActionsContent}>\n\t\t\t\t<span className={styles.bulkActionsInfo}>items selected</span>\n\n\t\t\t\t<div className={styles.bulkActionsActions}>\n\t\t\t\t\t{actions.map((action, index) => (\n\t\t\t\t\t\t<DsButton\n\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\tvariant=\"borderless\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tclassName={styles.actionButton}\n\t\t\t\t\t\t\tcontentClassName={styles.actionButtonContent}\n\t\t\t\t\t\t\tonClick={action.onClick}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<DsIcon icon={action.icon} />\n\t\t\t\t\t\t\t<span className={(styles['p-s'], styles.medium)}>{action.label}</span>\n\t\t\t\t\t\t</DsButton>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\n\t\t\t\t<DsButton\n\t\t\t\t\tvariant=\"borderless\"\n\t\t\t\t\tsize=\"small\"\n\t\t\t\t\tcolor=\"neutral-2\"\n\t\t\t\t\tcontentClassName={styles.escapeButtonContent}\n\t\t\t\t\tonClick={onClearSelection}\n\t\t\t\t>\n\t\t\t\t\t<DsIcon icon=\"close\" />\n\t\t\t\t\t<span className={(styles['p-s'], styles.medium)}>Esc</span>\n\t\t\t\t</DsButton>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DsTableBulkActions;\n"],"mappings":";;;;;;;;;;AAQA,MAAMA,sBAAkD,EAAE,iBAAiB,SAAS,uBAAuB;CAC1G,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CACnD,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,GAAG;AAExD,iBAAgB;AACf,MAAI,kBAAkB,GAAG;AACxB,iBAAc,KAAK;AACnB,qBAAkBC,qCAAO,SAAS;aACxB,YAAY;AACtB,qBAAkBA,qCAAO,QAAQ;GACjC,MAAM,QAAQ,iBAAiB;AAC9B,kBAAc,MAAM;AACpB,sBAAkB,GAAG;MACnB,IAAI;AACP,gBAAa,aAAa,MAAM;;IAE/B,CAAC,iBAAiB,WAAW,CAAC;AAEjC,KAAI,CAAC,WACJ,QAAO;AAGR,QACC,qBAAC;EAAI,WAAWC,WAAWD,qCAAO,sBAAsB,eAAe;aACtE,oBAAC;GAAI,WAAWA,qCAAO;aACtB,oBAAC;IAAG,WAAWC,WAAWD,qCAAO,oBAAoBA,qCAAO,KAAK;cAAG;KAAqB;IACpF,EACN,qBAAC;GAAI,WAAWA,qCAAO;;IACtB,oBAAC;KAAK,WAAWA,qCAAO;eAAiB;MAAqB;IAE9D,oBAAC;KAAI,WAAWA,qCAAO;eACrB,QAAQ,KAAK,QAAQ,UACrB,qBAACE;MAEA,SAAQ;MACR,MAAK;MACL,WAAWF,qCAAO;MAClB,kBAAkBA,qCAAO;MACzB,SAAS,OAAO;iBAEhB,oBAACG,mBAAO,MAAM,OAAO,OAAQ,EAC7B,oBAAC;OAAK,YAAYH,qCAAO,QAAQA,qCAAO;iBAAU,OAAO;QAAa;QARjE,MASK,CACV;MACG;IAEN,qBAACE;KACA,SAAQ;KACR,MAAK;KACL,OAAM;KACN,kBAAkBF,qCAAO;KACzB,SAAS;gBAET,oBAACG,mBAAO,MAAK,UAAU,EACvB,oBAAC;MAAK,YAAYH,qCAAO,QAAQA,qCAAO;gBAAS;OAAU;MACjD;;IACN;GACD;;AAIR,oCAAe"}
|
package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.scss
|
|
3
|
+
var ds_table_bulk_actions_module_default = {
|
|
4
|
+
"bulkActionsContainer": "_bulkActionsContainer_15vel_1",
|
|
5
|
+
"entering": "_entering_15vel_1",
|
|
6
|
+
"slideUpFadeIn": "_slideUpFadeIn_15vel_1",
|
|
7
|
+
"exiting": "_exiting_15vel_1",
|
|
8
|
+
"slideDownFadeOut": "_slideDownFadeOut_15vel_1",
|
|
9
|
+
"bulkActionsContent": "_bulkActionsContent_15vel_1",
|
|
10
|
+
"selectedCountContainer": "_selectedCountContainer_15vel_1",
|
|
11
|
+
"selectedCountBadge": "_selectedCountBadge_15vel_1",
|
|
12
|
+
"bulkActionsInfo": "_bulkActionsInfo_15vel_1",
|
|
13
|
+
"bulkActionsActions": "_bulkActionsActions_15vel_1",
|
|
14
|
+
"actionButton": "_actionButton_15vel_1",
|
|
15
|
+
"actionButtonContent": "_actionButtonContent_15vel_1",
|
|
16
|
+
"escapeButtonContent": "_escapeButtonContent_15vel_1"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.default = ds_table_bulk_actions_module_default;
|
package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.scss
|
|
2
|
+
var ds_table_bulk_actions_module_default = {
|
|
3
|
+
"bulkActionsContainer": "_bulkActionsContainer_15vel_1",
|
|
4
|
+
"entering": "_entering_15vel_1",
|
|
5
|
+
"slideUpFadeIn": "_slideUpFadeIn_15vel_1",
|
|
6
|
+
"exiting": "_exiting_15vel_1",
|
|
7
|
+
"slideDownFadeOut": "_slideDownFadeOut_15vel_1",
|
|
8
|
+
"bulkActionsContent": "_bulkActionsContent_15vel_1",
|
|
9
|
+
"selectedCountContainer": "_selectedCountContainer_15vel_1",
|
|
10
|
+
"selectedCountBadge": "_selectedCountBadge_15vel_1",
|
|
11
|
+
"bulkActionsInfo": "_bulkActionsInfo_15vel_1",
|
|
12
|
+
"bulkActionsActions": "_bulkActionsActions_15vel_1",
|
|
13
|
+
"actionButton": "_actionButton_15vel_1",
|
|
14
|
+
"actionButtonContent": "_actionButtonContent_15vel_1",
|
|
15
|
+
"escapeButtonContent": "_escapeButtonContent_15vel_1"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ds_table_bulk_actions_module_default as default };
|
|
20
|
+
//# sourceMappingURL=ds-table-bulk-actions.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-bulk-actions.module.js","names":[],"sources":["../../../../../src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.scss"],"sourcesContent":["@use '../../../../styles/typography';\n\n.bulkActionsContainer {\n\tposition: fixed;\n\tbottom: 20px;\n\tleft: 50%;\n\ttransform: translateX(-50%);\n\tbackground-color: var(--white);\n\tborder-radius: 8px;\n\tbox-shadow: 0 4px 12px #0445cc66;\n\tz-index: 1000;\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: 8px;\n\toverflow: hidden;\n\tanimation-duration: 0.3s;\n\tanimation-timing-function: ease-out;\n\tanimation-fill-mode: forwards;\n\n\t&.entering {\n\t\tanimation-name: slideUpFadeIn;\n\t}\n\n\t&.exiting {\n\t\tanimation-name: slideDownFadeOut;\n\t}\n}\n\n.bulkActionsContent {\n\tdisplay: flex;\n\talign-items: center;\n\tpadding-right: 6px;\n\tpadding-left: 6px;\n}\n\n.selectedCountContainer {\n\tbackground-color: var(--action-cta1);\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 6px 22px;\n}\n\n.selectedCountBadge {\n\tcolor: var(--white);\n\tmargin: 0;\n}\n\n.bulkActionsInfo {\n\tcolor: var(--neutral-2);\n\ttext-wrap: nowrap;\n\tpadding-left: 8px;\n\tpadding-right: 56px;\n}\n\n.bulkActionsActions {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\n\t> .actionButton {\n\t\tborder-right: 1px solid var(--neutral-6);\n\t\twidth: 68px;\n\t\theight: 48px;\n\t\tborder-radius: 0;\n\n\t\t> .actionButtonContent {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tgap: 4px;\n\t\t}\n\t}\n\n\t> .actionButton:first-child {\n\t\tborder-left: 1px solid var(--neutral-6);\n\t}\n}\n\n.escapeButtonContent {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tcolor: var(--neutral-2);\n\tgap: 2px !important;\n\twidth: 36px;\n\tpadding-left: 4px;\n\n\t&:hover {\n\t\tcolor: var(--neutral-4);\n\t}\n}\n\n@keyframes slideUpFadeIn {\n\t0% {\n\t\topacity: 0;\n\t\ttransform: translate(-50%, 100%);\n\t}\n\t100% {\n\t\topacity: 1;\n\t\ttransform: translate(-50%, 0);\n\t}\n}\n\n@keyframes slideDownFadeOut {\n\t0% {\n\t\topacity: 1;\n\t\ttransform: translate(-50%, 0);\n\t}\n\t100% {\n\t\topacity: 0;\n\t\ttransform: translate(-50%, 100%);\n\t}\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_table_bulk_actions = require('./ds-table-bulk-actions.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_table_bulk_actions_default from "./ds-table-bulk-actions.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ds_icon = require('../../../ds-icon/ds-icon.cjs');
|
|
3
|
+
require('../../../ds-icon/index.cjs');
|
|
4
|
+
const require_ds_dropdown_menu = require('../../../ds-dropdown-menu/ds-dropdown-menu.cjs');
|
|
5
|
+
require('../../../ds-dropdown-menu/index.cjs');
|
|
6
|
+
const require_ds_table_cell_module = require('./ds-table-cell.module.cjs');
|
|
7
|
+
let classnames = require("classnames");
|
|
8
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let __tanstack_react_table = require("@tanstack/react-table");
|
|
11
|
+
|
|
12
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.tsx
|
|
13
|
+
const DsDefaultTableCell = ({ cell }) => {
|
|
14
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15
|
+
className: require_ds_table_cell_module.default.tableCellEllipsis,
|
|
16
|
+
children: (0, __tanstack_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const DsTableCell = ({ row, cell, primaryRowActions = [], secondaryRowActions = [] }) => {
|
|
20
|
+
if (primaryRowActions.length || secondaryRowActions.length) {
|
|
21
|
+
const hasSecondaryRowActions = secondaryRowActions.some((action) => !action.disabled?.(row.original));
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
|
+
className: require_ds_table_cell_module.default.lastCell,
|
|
24
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsDefaultTableCell, { cell }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
25
|
+
className: require_ds_table_cell_module.default.cellActions,
|
|
26
|
+
children: [primaryRowActions.map((action, i) => {
|
|
27
|
+
const isDisabled = action.disabled?.(row.original);
|
|
28
|
+
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
29
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
30
|
+
type: "button",
|
|
31
|
+
className: (0, classnames.default)(require_ds_table_cell_module.default.rowActionIcon, { [require_ds_table_cell_module.default.disabled]: isDisabled }),
|
|
32
|
+
title: action.tooltip || label,
|
|
33
|
+
onClick: (e) => {
|
|
34
|
+
e.stopPropagation();
|
|
35
|
+
if (isDisabled) return;
|
|
36
|
+
action.onClick(row.original);
|
|
37
|
+
},
|
|
38
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
39
|
+
"aria-label": label,
|
|
40
|
+
"aria-disabled": isDisabled,
|
|
41
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
42
|
+
icon: action.icon,
|
|
43
|
+
size: "tiny"
|
|
44
|
+
})
|
|
45
|
+
}, i);
|
|
46
|
+
}), hasSecondaryRowActions && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_dropdown_menu.DsDropdownMenu.Root, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_dropdown_menu.DsDropdownMenu.Trigger, {
|
|
47
|
+
className: (0, classnames.default)(require_ds_table_cell_module.default.rowActionIcon, require_ds_table_cell_module.default.secondaryActionsTrigger),
|
|
48
|
+
"aria-label": "More actions",
|
|
49
|
+
asChild: true,
|
|
50
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
51
|
+
type: "button",
|
|
52
|
+
title: "More actions",
|
|
53
|
+
"aria-label": "More actions",
|
|
54
|
+
onClick: (e) => e.stopPropagation(),
|
|
55
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
56
|
+
icon: "more_vert",
|
|
57
|
+
size: "tiny"
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_dropdown_menu.DsDropdownMenu.Content, { children: secondaryRowActions.map((action, i) => {
|
|
61
|
+
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
62
|
+
const isDisabled = action.disabled?.(row.original);
|
|
63
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_dropdown_menu.DsDropdownMenu.Item, {
|
|
64
|
+
value: label,
|
|
65
|
+
disabled: isDisabled,
|
|
66
|
+
onClick: (e) => e.stopPropagation(),
|
|
67
|
+
onSelect: () => action.onClick(row.original),
|
|
68
|
+
children: [action.icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: action.icon }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
|
|
69
|
+
}, i);
|
|
70
|
+
}) })] })]
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsDefaultTableCell, { cell });
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
exports.DsTableCell = DsTableCell;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import ds_icon_default from "../../../ds-icon/ds-icon.js";
|
|
2
|
+
import "../../../ds-icon/index.js";
|
|
3
|
+
import { DsDropdownMenu } from "../../../ds-dropdown-menu/ds-dropdown-menu.js";
|
|
4
|
+
import "../../../ds-dropdown-menu/index.js";
|
|
5
|
+
import ds_table_cell_module_default from "./ds-table-cell.module.js";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { flexRender } from "@tanstack/react-table";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.tsx
|
|
11
|
+
const DsDefaultTableCell = ({ cell }) => {
|
|
12
|
+
return /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: ds_table_cell_module_default.tableCellEllipsis,
|
|
14
|
+
children: flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
const DsTableCell = ({ row, cell, primaryRowActions = [], secondaryRowActions = [] }) => {
|
|
18
|
+
if (primaryRowActions.length || secondaryRowActions.length) {
|
|
19
|
+
const hasSecondaryRowActions = secondaryRowActions.some((action) => !action.disabled?.(row.original));
|
|
20
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
21
|
+
className: ds_table_cell_module_default.lastCell,
|
|
22
|
+
children: [/* @__PURE__ */ jsx(DsDefaultTableCell, { cell }), /* @__PURE__ */ jsxs("div", {
|
|
23
|
+
className: ds_table_cell_module_default.cellActions,
|
|
24
|
+
children: [primaryRowActions.map((action, i) => {
|
|
25
|
+
const isDisabled = action.disabled?.(row.original);
|
|
26
|
+
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
27
|
+
return /* @__PURE__ */ jsx("button", {
|
|
28
|
+
type: "button",
|
|
29
|
+
className: classNames(ds_table_cell_module_default.rowActionIcon, { [ds_table_cell_module_default.disabled]: isDisabled }),
|
|
30
|
+
title: action.tooltip || label,
|
|
31
|
+
onClick: (e) => {
|
|
32
|
+
e.stopPropagation();
|
|
33
|
+
if (isDisabled) return;
|
|
34
|
+
action.onClick(row.original);
|
|
35
|
+
},
|
|
36
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
37
|
+
"aria-label": label,
|
|
38
|
+
"aria-disabled": isDisabled,
|
|
39
|
+
children: /* @__PURE__ */ jsx(ds_icon_default, {
|
|
40
|
+
icon: action.icon,
|
|
41
|
+
size: "tiny"
|
|
42
|
+
})
|
|
43
|
+
}, i);
|
|
44
|
+
}), hasSecondaryRowActions && /* @__PURE__ */ jsxs(DsDropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DsDropdownMenu.Trigger, {
|
|
45
|
+
className: classNames(ds_table_cell_module_default.rowActionIcon, ds_table_cell_module_default.secondaryActionsTrigger),
|
|
46
|
+
"aria-label": "More actions",
|
|
47
|
+
asChild: true,
|
|
48
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
title: "More actions",
|
|
51
|
+
"aria-label": "More actions",
|
|
52
|
+
onClick: (e) => e.stopPropagation(),
|
|
53
|
+
children: /* @__PURE__ */ jsx(ds_icon_default, {
|
|
54
|
+
icon: "more_vert",
|
|
55
|
+
size: "tiny"
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
}), /* @__PURE__ */ jsx(DsDropdownMenu.Content, { children: secondaryRowActions.map((action, i) => {
|
|
59
|
+
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
60
|
+
const isDisabled = action.disabled?.(row.original);
|
|
61
|
+
return /* @__PURE__ */ jsxs(DsDropdownMenu.Item, {
|
|
62
|
+
value: label,
|
|
63
|
+
disabled: isDisabled,
|
|
64
|
+
onClick: (e) => e.stopPropagation(),
|
|
65
|
+
onSelect: () => action.onClick(row.original),
|
|
66
|
+
children: [action.icon && /* @__PURE__ */ jsx(ds_icon_default, { icon: action.icon }), /* @__PURE__ */ jsx("span", { children: label })]
|
|
67
|
+
}, i);
|
|
68
|
+
}) })] })]
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return /* @__PURE__ */ jsx(DsDefaultTableCell, { cell });
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { DsTableCell };
|
|
77
|
+
//# sourceMappingURL=ds-table-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-cell.js","names":["styles","classnames","DsIcon"],"sources":["../../../../../src/components/ds-table/components/ds-table-cell/ds-table-cell.tsx"],"sourcesContent":["import { type Cell, flexRender } from '@tanstack/react-table';\nimport classnames from 'classnames';\nimport { DsIcon } from '../../../ds-icon';\nimport { DsDropdownMenu } from '../../../ds-dropdown-menu';\nimport styles from './ds-table-cell.module.scss';\nimport type { DsTableCellProps } from './ds-table-cell.types';\n\nconst DsDefaultTableCell = <TData, TValue>({ cell }: { cell: Cell<TData, TValue> }) => {\n\treturn (\n\t\t<div className={styles.tableCellEllipsis}>\n\t\t\t{flexRender(cell.column.columnDef.cell, cell.getContext())}\n\t\t</div>\n\t);\n};\n\nexport const DsTableCell = <TData, TValue>({\n\trow,\n\tcell,\n\tprimaryRowActions = [],\n\tsecondaryRowActions = [],\n}: DsTableCellProps<TData, TValue>) => {\n\tif (primaryRowActions.length || secondaryRowActions.length) {\n\t\tconst hasSecondaryRowActions = secondaryRowActions.some((action) => !action.disabled?.(row.original));\n\t\treturn (\n\t\t\t<div className={styles.lastCell}>\n\t\t\t\t<DsDefaultTableCell cell={cell} />\n\t\t\t\t<div className={styles.cellActions}>\n\t\t\t\t\t{primaryRowActions.map((action, i) => {\n\t\t\t\t\t\tconst isDisabled = action.disabled?.(row.original);\n\t\t\t\t\t\tconst label = typeof action.label === 'function' ? action.label(row.original) : action.label;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\tclassName={classnames(styles.rowActionIcon, { [styles.disabled]: isDisabled })}\n\t\t\t\t\t\t\t\ttitle={action.tooltip || label}\n\t\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\t\te.stopPropagation();\n\n\t\t\t\t\t\t\t\t\tif (isDisabled) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\taction.onClick(row.original);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\ttabIndex={isDisabled ? -1 : 0}\n\t\t\t\t\t\t\t\taria-label={label}\n\t\t\t\t\t\t\t\taria-disabled={isDisabled}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<DsIcon icon={action.icon} size=\"tiny\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t\t{hasSecondaryRowActions && (\n\t\t\t\t\t\t<DsDropdownMenu.Root>\n\t\t\t\t\t\t\t<DsDropdownMenu.Trigger\n\t\t\t\t\t\t\t\tclassName={classnames(styles.rowActionIcon, styles.secondaryActionsTrigger)}\n\t\t\t\t\t\t\t\taria-label=\"More actions\"\n\t\t\t\t\t\t\t\tasChild\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\ttitle=\"More actions\"\n\t\t\t\t\t\t\t\t\taria-label=\"More actions\"\n\t\t\t\t\t\t\t\t\tonClick={(e) => e.stopPropagation()}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<DsIcon icon=\"more_vert\" size=\"tiny\" />\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</DsDropdownMenu.Trigger>\n\t\t\t\t\t\t\t<DsDropdownMenu.Content>\n\t\t\t\t\t\t\t\t{secondaryRowActions.map((action, i) => {\n\t\t\t\t\t\t\t\t\tconst label =\n\t\t\t\t\t\t\t\t\t\ttypeof action.label === 'function' ? action.label(row.original) : action.label;\n\t\t\t\t\t\t\t\t\tconst isDisabled = action.disabled?.(row.original);\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<DsDropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\tkey={i}\n\t\t\t\t\t\t\t\t\t\t\tvalue={label}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\t\t\t\t\t\t\tonClick={(e) => e.stopPropagation()}\n\t\t\t\t\t\t\t\t\t\t\tonSelect={() => action.onClick(row.original)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{action.icon && <DsIcon icon={action.icon} />}\n\t\t\t\t\t\t\t\t\t\t\t<span>{label}</span>\n\t\t\t\t\t\t\t\t\t\t</DsDropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</DsDropdownMenu.Content>\n\t\t\t\t\t\t</DsDropdownMenu.Root>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\treturn <DsDefaultTableCell cell={cell} />;\n};\n"],"mappings":";;;;;;;;;;AAOA,MAAM,sBAAqC,EAAE,WAA0C;AACtF,QACC,oBAAC;EAAI,WAAWA,6BAAO;YACrB,WAAW,KAAK,OAAO,UAAU,MAAM,KAAK,YAAY,CAAC;GACrD;;AAIR,MAAa,eAA8B,EAC1C,KACA,MACA,oBAAoB,EAAE,EACtB,sBAAsB,EAAE,OACc;AACtC,KAAI,kBAAkB,UAAU,oBAAoB,QAAQ;EAC3D,MAAM,yBAAyB,oBAAoB,MAAM,WAAW,CAAC,OAAO,WAAW,IAAI,SAAS,CAAC;AACrG,SACC,qBAAC;GAAI,WAAWA,6BAAO;cACtB,oBAAC,sBAAyB,OAAQ,EAClC,qBAAC;IAAI,WAAWA,6BAAO;eACrB,kBAAkB,KAAK,QAAQ,MAAM;KACrC,MAAM,aAAa,OAAO,WAAW,IAAI,SAAS;KAClD,MAAM,QAAQ,OAAO,OAAO,UAAU,aAAa,OAAO,MAAM,IAAI,SAAS,GAAG,OAAO;AACvF,YACC,oBAAC;MAEA,MAAK;MACL,WAAWC,WAAWD,6BAAO,eAAe,GAAGA,6BAAO,WAAW,YAAY,CAAC;MAC9E,OAAO,OAAO,WAAW;MACzB,UAAU,MAAM;AACf,SAAE,iBAAiB;AAEnB,WAAI,WACH;AAED,cAAO,QAAQ,IAAI,SAAS;;MAE7B,UAAU,aAAa,KAAK;MAC5B,cAAY;MACZ,iBAAe;gBAEf,oBAACE;OAAO,MAAM,OAAO;OAAM,MAAK;QAAS;QAhBpC,EAiBG;MAET,EACD,0BACA,qBAAC,eAAe,mBACf,oBAAC,eAAe;KACf,WAAWD,WAAWD,6BAAO,eAAeA,6BAAO,wBAAwB;KAC3E,cAAW;KACX;eAEA,oBAAC;MACA,MAAK;MACL,OAAM;MACN,cAAW;MACX,UAAU,MAAM,EAAE,iBAAiB;gBAEnC,oBAACE;OAAO,MAAK;OAAY,MAAK;QAAS;OAC/B;MACe,EACzB,oBAAC,eAAe,qBACd,oBAAoB,KAAK,QAAQ,MAAM;KACvC,MAAM,QACL,OAAO,OAAO,UAAU,aAAa,OAAO,MAAM,IAAI,SAAS,GAAG,OAAO;KAC1E,MAAM,aAAa,OAAO,WAAW,IAAI,SAAS;AAClD,YACC,qBAAC,eAAe;MAEf,OAAO;MACP,UAAU;MACV,UAAU,MAAM,EAAE,iBAAiB;MACnC,gBAAgB,OAAO,QAAQ,IAAI,SAAS;iBAE3C,OAAO,QAAQ,oBAACA,mBAAO,MAAM,OAAO,OAAQ,EAC7C,oBAAC,oBAAM,QAAa;QAPf,EAQgB;MAEtB,GACsB,IACJ;KAElB;IACD;;AAGR,QAAO,oBAAC,sBAAyB,OAAQ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.module.scss
|
|
3
|
+
var ds_table_cell_module_default = {
|
|
4
|
+
"tableCellEllipsis": "_tableCellEllipsis_37042_1",
|
|
5
|
+
"lastCell": "_lastCell_37042_1",
|
|
6
|
+
"cellActions": "_cellActions_37042_1",
|
|
7
|
+
"rowActionIcon": "_rowActionIcon_37042_1",
|
|
8
|
+
"disabled": "_disabled_37042_1",
|
|
9
|
+
"secondaryActionsTrigger": "_secondaryActionsTrigger_37042_1"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.default = ds_table_cell_module_default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.module.scss
|
|
2
|
+
var ds_table_cell_module_default = {
|
|
3
|
+
"tableCellEllipsis": "_tableCellEllipsis_37042_1",
|
|
4
|
+
"lastCell": "_lastCell_37042_1",
|
|
5
|
+
"cellActions": "_cellActions_37042_1",
|
|
6
|
+
"rowActionIcon": "_rowActionIcon_37042_1",
|
|
7
|
+
"disabled": "_disabled_37042_1",
|
|
8
|
+
"secondaryActionsTrigger": "_secondaryActionsTrigger_37042_1"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ds_table_cell_module_default as default };
|
|
13
|
+
//# sourceMappingURL=ds-table-cell.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-table-cell.module.js","names":[],"sources":["../../../../../src/components/ds-table/components/ds-table-cell/ds-table-cell.module.scss"],"sourcesContent":["@use '../../../../styles/typography';\n\n.tableCellEllipsis {\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 2;\n\t-webkit-box-orient: vertical;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tword-break: break-word;\n}\n\n.lastCell {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\theight: 100%;\n\tflex: 1;\n\n\t.cellActions {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 8px;\n\t}\n}\n\n.rowActionIcon {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 36px;\n\theight: 36px;\n\tborder-radius: 50%;\n\tbackground: none;\n\tcursor: pointer;\n\ttransition: background 0.15s;\n\tcolor: var(--color-icon-secondary);\n\n\t&.disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t\tpointer-events: none;\n\t}\n\n\t&:hover,\n\t&:focus-within {\n\t\tbackground: var(--color-background-action-hover-weak);\n\t\tcolor: var(--color-font-action);\n\t}\n}\n\n.secondaryActionsTrigger {\n\tmargin-inline-start: var(--spacing-sm);\n}\n"],"mappings":""}
|