@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,59 @@
|
|
|
1
|
+
import ds_icon_default from "../ds-icon/ds-icon.js";
|
|
2
|
+
import "../ds-icon/index.js";
|
|
3
|
+
import ds_typography_default from "../ds-typography/ds-typography.js";
|
|
4
|
+
import "../ds-typography/index.js";
|
|
5
|
+
import ds_chip_module_default from "./ds-chip.module.js";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/ds-chip/ds-chip.tsx
|
|
10
|
+
/**
|
|
11
|
+
* Design system Chip component
|
|
12
|
+
*/
|
|
13
|
+
const DsChip = ({ ref, label, className, style = {}, onClick, onDelete, size = "medium", deleteIcon, selected = false }) => {
|
|
14
|
+
const chipClass = classNames(ds_chip_module_default.chip, {
|
|
15
|
+
[ds_chip_module_default.clickable]: onClick !== void 0,
|
|
16
|
+
[ds_chip_module_default.small]: size === "small"
|
|
17
|
+
}, className);
|
|
18
|
+
const handleDeleteClick = (event) => {
|
|
19
|
+
event.stopPropagation();
|
|
20
|
+
onDelete?.(event);
|
|
21
|
+
};
|
|
22
|
+
const handleKeyDown = (event) => {
|
|
23
|
+
if (onDelete && (event.key === "Backspace" || event.key === "Delete")) {
|
|
24
|
+
event.preventDefault();
|
|
25
|
+
onDelete(event);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
29
|
+
ref,
|
|
30
|
+
className: chipClass,
|
|
31
|
+
style,
|
|
32
|
+
onClick,
|
|
33
|
+
onKeyDown: handleKeyDown,
|
|
34
|
+
role: onClick || onDelete ? "button" : void 0,
|
|
35
|
+
tabIndex: onClick || onDelete ? 0 : void 0,
|
|
36
|
+
"aria-label": label,
|
|
37
|
+
"aria-pressed": onClick && selected ? "true" : void 0,
|
|
38
|
+
children: [/* @__PURE__ */ jsx(ds_typography_default, {
|
|
39
|
+
variant: size === "small" ? "body-xs-reg" : "body-sm-reg",
|
|
40
|
+
className: ds_chip_module_default.label,
|
|
41
|
+
children: label
|
|
42
|
+
}), onDelete && /* @__PURE__ */ jsx("button", {
|
|
43
|
+
type: "button",
|
|
44
|
+
className: ds_chip_module_default.deleteButton,
|
|
45
|
+
onClick: handleDeleteClick,
|
|
46
|
+
"aria-label": "Delete chip",
|
|
47
|
+
tabIndex: -1,
|
|
48
|
+
children: /* @__PURE__ */ jsx(ds_icon_default, {
|
|
49
|
+
icon: deleteIcon || "cancel",
|
|
50
|
+
size: "tiny"
|
|
51
|
+
})
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var ds_chip_default = DsChip;
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ds_chip_default as default };
|
|
59
|
+
//# sourceMappingURL=ds-chip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip.js","names":["DsChip: React.FC<DsChipProps>","styles","DsTypography","DsIcon"],"sources":["../../../src/components/ds-chip/ds-chip.tsx"],"sourcesContent":["import type React from 'react';\nimport classNames from 'classnames';\nimport styles from './ds-chip.module.scss';\nimport type { DsChipProps } from './ds-chip.types';\nimport { DsIcon } from '../ds-icon';\nimport { DsTypography } from '../ds-typography';\n\n/**\n * Design system Chip component\n */\nconst DsChip: React.FC<DsChipProps> = ({\n\tref,\n\tlabel,\n\tclassName,\n\tstyle = {},\n\tonClick,\n\tonDelete,\n\tsize = 'medium',\n\tdeleteIcon,\n\tselected = false,\n}) => {\n\tconst chipClass = classNames(\n\t\tstyles.chip,\n\t\t{\n\t\t\t[styles.clickable]: onClick !== undefined,\n\t\t\t[styles.small]: size === 'small',\n\t\t},\n\t\tclassName,\n\t);\n\n\tconst handleDeleteClick = (event: React.MouseEvent<HTMLElement>) => {\n\t\tevent.stopPropagation();\n\t\tonDelete?.(event);\n\t};\n\n\tconst handleKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {\n\t\tif (onDelete && (event.key === 'Backspace' || event.key === 'Delete')) {\n\t\t\tevent.preventDefault();\n\t\t\tonDelete(event);\n\t\t}\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tref={ref as React.Ref<HTMLDivElement>}\n\t\t\tclassName={chipClass}\n\t\t\tstyle={style}\n\t\t\tonClick={onClick}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\trole={onClick || onDelete ? 'button' : undefined}\n\t\t\ttabIndex={onClick || onDelete ? 0 : undefined}\n\t\t\taria-label={label}\n\t\t\taria-pressed={onClick && selected ? 'true' : undefined}\n\t\t>\n\t\t\t<DsTypography variant={size === 'small' ? 'body-xs-reg' : 'body-sm-reg'} className={styles.label}>\n\t\t\t\t{label}\n\t\t\t</DsTypography>\n\t\t\t{onDelete && (\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclassName={styles.deleteButton}\n\t\t\t\t\tonClick={handleDeleteClick}\n\t\t\t\t\taria-label=\"Delete chip\"\n\t\t\t\t\ttabIndex={-1}\n\t\t\t\t>\n\t\t\t\t\t<DsIcon icon={deleteIcon || 'cancel'} size=\"tiny\" />\n\t\t\t\t</button>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default DsChip;\n"],"mappings":";;;;;;;;;;;;AAUA,MAAMA,UAAiC,EACtC,KACA,OACA,WACA,QAAQ,EAAE,EACV,SACA,UACA,OAAO,UACP,YACA,WAAW,YACN;CACL,MAAM,YAAY,WACjBC,uBAAO,MACP;GACEA,uBAAO,YAAY,YAAY;GAC/BA,uBAAO,QAAQ,SAAS;EACzB,EACD,UACA;CAED,MAAM,qBAAqB,UAAyC;AACnE,QAAM,iBAAiB;AACvB,aAAW,MAAM;;CAGlB,MAAM,iBAAiB,UAA4C;AAClE,MAAI,aAAa,MAAM,QAAQ,eAAe,MAAM,QAAQ,WAAW;AACtE,SAAM,gBAAgB;AACtB,YAAS,MAAM;;;AAIjB,QACC,qBAAC;EACK;EACL,WAAW;EACJ;EACE;EACT,WAAW;EACX,MAAM,WAAW,WAAW,WAAW;EACvC,UAAU,WAAW,WAAW,IAAI;EACpC,cAAY;EACZ,gBAAc,WAAW,WAAW,SAAS;aAE7C,oBAACC;GAAa,SAAS,SAAS,UAAU,gBAAgB;GAAe,WAAWD,uBAAO;aACzF;IACa,EACd,YACA,oBAAC;GACA,MAAK;GACL,WAAWA,uBAAO;GAClB,SAAS;GACT,cAAW;GACX,UAAU;aAEV,oBAACE;IAAO,MAAM,cAAc;IAAU,MAAK;KAAS;IAC5C;GAEL;;AAIR,sBAAe"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-chip/ds-chip.module.scss
|
|
3
|
+
var ds_chip_module_default = {
|
|
4
|
+
"chip": "_chip_1mzbj_1",
|
|
5
|
+
"clickable": "_clickable_1mzbj_1",
|
|
6
|
+
"small": "_small_1mzbj_1",
|
|
7
|
+
"label": "_label_1mzbj_1",
|
|
8
|
+
"deleteButton": "_deleteButton_1mzbj_1"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.default = ds_chip_module_default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/ds-chip/ds-chip.module.scss
|
|
2
|
+
var ds_chip_module_default = {
|
|
3
|
+
"chip": "_chip_1mzbj_1",
|
|
4
|
+
"clickable": "_clickable_1mzbj_1",
|
|
5
|
+
"small": "_small_1mzbj_1",
|
|
6
|
+
"label": "_label_1mzbj_1",
|
|
7
|
+
"deleteButton": "_deleteButton_1mzbj_1"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ds_chip_module_default as default };
|
|
12
|
+
//# sourceMappingURL=ds-chip.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip.module.js","names":[],"sources":["../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-chip/ds-chip.module.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_typography.scss"],"sourcesContent":["@use '../../styles/typography';\n\n.chip {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: var(--spacing-3xs);\n\tpadding: 1px var(--spacing-3xs) 1px var(--spacing-xs);\n\tbackground: var(--color-background);\n\tborder: 1px solid var(--color-border-contrast);\n\tborder-radius: 100vmax;\n\tcolor: var(--color-font-main);\n\tcursor: default;\n\toverflow: hidden;\n\ttransition:\n\t\tbackground-color 0.2s,\n\t\tborder-color 0.2s,\n\t\tcolor 0.2s;\n\n\t&.clickable {\n\t\tcursor: pointer;\n\n\t\t&:hover {\n\t\t\tbackground: var(--color-background-action-hover-weak);\n\t\t\tborder-color: var(--color-border-action-secondary-hover);\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid var(--color-background-selected);\n\t\t\toutline-offset: 2px;\n\t\t}\n\t}\n\n\t&.small {\n\t\tpadding: 0 var(--spacing-4xs) 0 var(--spacing-3xs);\n\t\tgap: var(--spacing-4xs);\n\t}\n\n\t&[aria-pressed='true'] {\n\t\tbackground: var(--color-background-selected-weak);\n\t\tborder-color: var(--color-border-action-primary);\n\t\tcolor: var(--color-font-action);\n\t}\n}\n\n.label {\n\t@include typography.ellipsis;\n\tpadding: var(--spacing-4xs) var(--spacing-3xs);\n\tflex: 1;\n}\n\n.deleteButton {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tborder: none;\n\tbackground: transparent;\n\tcolor: var(--color-icon-information-main);\n\tcursor: pointer;\n\ttransition:\n\t\tbackground-color 0.2s,\n\t\tcolor 0.2s;\n\tflex-shrink: 0;\n\n\t&:hover {\n\t\tcolor: var(--color-icon-secondary);\n\t}\n\n\t.chip.small & {\n\t\tpadding: 1px var(--spacing-4xs);\n\t}\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IconType } from "../ds-icon/ds-icon.types.cjs";
|
|
2
|
+
import { CSSProperties, KeyboardEvent, MouseEvent, Ref } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-chip/ds-chip.types.d.ts
|
|
5
|
+
declare const chipSizes: readonly ["medium", "small"];
|
|
6
|
+
type ChipSize = (typeof chipSizes)[number];
|
|
7
|
+
interface DsChipProps {
|
|
8
|
+
/**
|
|
9
|
+
* Ref to the chip element
|
|
10
|
+
*/
|
|
11
|
+
ref?: Ref<HTMLElement>;
|
|
12
|
+
/**
|
|
13
|
+
* The label text to display in the chip
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* Additional CSS class names
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Additional styles to apply to the component
|
|
22
|
+
*/
|
|
23
|
+
style?: CSSProperties;
|
|
24
|
+
/**
|
|
25
|
+
* Optional click handler
|
|
26
|
+
*/
|
|
27
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Callback function when delete icon is clicked
|
|
30
|
+
*/
|
|
31
|
+
onDelete?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Size of the chip
|
|
34
|
+
* @default 'medium'
|
|
35
|
+
*/
|
|
36
|
+
size?: ChipSize;
|
|
37
|
+
/**
|
|
38
|
+
* Custom delete icon element
|
|
39
|
+
*/
|
|
40
|
+
deleteIcon?: IconType;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the chip is in a selected/pressed state
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
selected?: boolean;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { ChipSize, DsChipProps };
|
|
49
|
+
//# sourceMappingURL=ds-chip.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip.types.d.cts","names":[],"sources":["../../../src/components/ds-chip/ds-chip.types.tsx"],"sourcesContent":[],"mappings":";;;;cAGa;KACD,QAAA,WAAmB;AADlB,UAGI,WAAA,CAHoC;EACzC;AAEZ;;EAIO,GAAA,CAAA,EAAA,GAAA,CAAI,WAAJ,CAAA;EAYE;;;EAQsB,KAAA,EAAA,MAAA;EAAX;;;EAKZ,SAAA,CAAA,EAAA,MAAA;EAIM;;;UAjBL;;;;oBAIU,WAAW;;;;qBAIV,WAAW,eAAe,cAAc;;;;;SAKpD;;;;eAIM"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IconType } from "../ds-icon/ds-icon.types.js";
|
|
2
|
+
import "../ds-icon/index.js";
|
|
3
|
+
import { CSSProperties, KeyboardEvent, MouseEvent, Ref } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ds-chip/ds-chip.types.d.ts
|
|
6
|
+
declare const chipSizes: readonly ["medium", "small"];
|
|
7
|
+
type ChipSize = (typeof chipSizes)[number];
|
|
8
|
+
interface DsChipProps {
|
|
9
|
+
/**
|
|
10
|
+
* Ref to the chip element
|
|
11
|
+
*/
|
|
12
|
+
ref?: Ref<HTMLElement>;
|
|
13
|
+
/**
|
|
14
|
+
* The label text to display in the chip
|
|
15
|
+
*/
|
|
16
|
+
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* Additional CSS class names
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Additional styles to apply to the component
|
|
23
|
+
*/
|
|
24
|
+
style?: CSSProperties;
|
|
25
|
+
/**
|
|
26
|
+
* Optional click handler
|
|
27
|
+
*/
|
|
28
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Callback function when delete icon is clicked
|
|
31
|
+
*/
|
|
32
|
+
onDelete?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Size of the chip
|
|
35
|
+
* @default 'medium'
|
|
36
|
+
*/
|
|
37
|
+
size?: ChipSize;
|
|
38
|
+
/**
|
|
39
|
+
* Custom delete icon element
|
|
40
|
+
*/
|
|
41
|
+
deleteIcon?: IconType;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the chip is in a selected/pressed state
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
selected?: boolean;
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { ChipSize, DsChipProps };
|
|
50
|
+
//# sourceMappingURL=ds-chip.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip.types.d.ts","names":[],"sources":["../../../src/components/ds-chip/ds-chip.types.tsx"],"sourcesContent":[],"mappings":";;;;;cAGa;KACD,QAAA,WAAmB;UAEd,WAAA;EAHJ;AACb;AAEA;EAIW,GAAA,CAAA,EAAJ,GAAI,CAAA,WAAA,CAAA;EAAJ;;;EAgBY,KAAA,EAAA,MAAA;EAIY;;;EAAe,SAAA,CAAA,EAAA,MAAA;EAKtC;;;UAbC;;;;oBAIU,WAAW;;;;qBAIV,WAAW,eAAe,cAAc;;;;;SAKpD;;;;eAIM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_chip = require('./ds-chip.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_chip_default from "./ds-chip.js";
|
|
@@ -0,0 +1,108 @@
|
|
|
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_typography = require('../ds-typography/ds-typography.cjs');
|
|
5
|
+
require('../ds-typography/index.cjs');
|
|
6
|
+
const require_ds_button = require('../ds-button/ds-button.cjs');
|
|
7
|
+
require('../ds-button/index.cjs');
|
|
8
|
+
const require_ds_checkbox = require('../ds-checkbox/ds-checkbox.cjs');
|
|
9
|
+
require('../ds-checkbox/index.cjs');
|
|
10
|
+
const require_ds_chip = require('../ds-chip/ds-chip.cjs');
|
|
11
|
+
const require_ds_chip_group_module = require('./ds-chip-group.module.cjs');
|
|
12
|
+
const require_use_chip_row_calculation = require('./hooks/use-chip-row-calculation.cjs');
|
|
13
|
+
let classnames = require("classnames");
|
|
14
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
15
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
+
let react = require("react");
|
|
17
|
+
let __radix_ui_react_dialog = require("@radix-ui/react-dialog");
|
|
18
|
+
__radix_ui_react_dialog = require_rolldown_runtime.__toESM(__radix_ui_react_dialog);
|
|
19
|
+
let __radix_ui_react_visually_hidden = require("@radix-ui/react-visually-hidden");
|
|
20
|
+
|
|
21
|
+
//#region src/components/ds-chip-group/ds-chip-group.tsx
|
|
22
|
+
/**
|
|
23
|
+
* Design system chip group component displays a collection of chips with overflow handling
|
|
24
|
+
* Used for displaying filters, selected items, tags, etc.
|
|
25
|
+
*/
|
|
26
|
+
const DsChipGroup = ({ items, label = "Filtered by:", onClearAll, onItemDelete, onItemSelect, className, style }) => {
|
|
27
|
+
const [dialogOpen, setDialogOpen] = (0, react.useState)(false);
|
|
28
|
+
const showAllChipsRef = (0, react.useRef)(null);
|
|
29
|
+
const chipsWrapperRef = (0, react.useRef)(null);
|
|
30
|
+
const visibleCount = require_use_chip_row_calculation.useChipRowCalculation({
|
|
31
|
+
chipsWrapperRef,
|
|
32
|
+
totalFilters: items.length
|
|
33
|
+
});
|
|
34
|
+
if (items.length === 0) return null;
|
|
35
|
+
const hiddenCount = items.length - visibleCount;
|
|
36
|
+
const showExpandButton = hiddenCount > 0;
|
|
37
|
+
const handleOpenDialog = () => {
|
|
38
|
+
setDialogOpen(true);
|
|
39
|
+
};
|
|
40
|
+
let dialogStyle = {};
|
|
41
|
+
if (showExpandButton && showAllChipsRef.current) {
|
|
42
|
+
const rect = showAllChipsRef.current.getBoundingClientRect();
|
|
43
|
+
dialogStyle = {
|
|
44
|
+
position: "fixed",
|
|
45
|
+
top: rect.bottom + 4,
|
|
46
|
+
left: rect.left
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
50
|
+
className: (0, classnames.default)(require_ds_chip_group_module.default.container, className),
|
|
51
|
+
style,
|
|
52
|
+
children: [
|
|
53
|
+
label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
54
|
+
variant: "body-sm-reg",
|
|
55
|
+
className: require_ds_chip_group_module.default.label,
|
|
56
|
+
children: label
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
59
|
+
ref: chipsWrapperRef,
|
|
60
|
+
className: require_ds_chip_group_module.default.chipsWrapper,
|
|
61
|
+
children: [items.map((item, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_chip.default, {
|
|
62
|
+
label: item.label,
|
|
63
|
+
selected: item.selected,
|
|
64
|
+
onClick: () => onItemSelect?.(item),
|
|
65
|
+
onDelete: () => onItemDelete?.(item),
|
|
66
|
+
className: (0, classnames.default)({ [require_ds_chip_group_module.default.hidden]: index >= visibleCount })
|
|
67
|
+
}, item.id)), showExpandButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_chip.default, {
|
|
68
|
+
ref: showAllChipsRef,
|
|
69
|
+
label: `+${String(hiddenCount)} ${hiddenCount === 1 ? "item" : "items"} show all`,
|
|
70
|
+
onClick: handleOpenDialog,
|
|
71
|
+
className: require_ds_chip_group_module.default.expandChip
|
|
72
|
+
})]
|
|
73
|
+
}),
|
|
74
|
+
onClearAll && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_button.default, {
|
|
75
|
+
design: "v1.2",
|
|
76
|
+
buttonType: "tertiary",
|
|
77
|
+
variant: "ghost",
|
|
78
|
+
size: "small",
|
|
79
|
+
onClick: onClearAll,
|
|
80
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: "close" }), "Clear all"]
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__radix_ui_react_dialog.Root, {
|
|
83
|
+
open: dialogOpen,
|
|
84
|
+
onOpenChange: setDialogOpen,
|
|
85
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_visually_hidden.Root, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Title, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Portal, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_dialog.Content, {
|
|
86
|
+
style: dialogStyle,
|
|
87
|
+
className: require_ds_chip_group_module.default.dialog,
|
|
88
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
89
|
+
className: require_ds_chip_group_module.default.dialogContent,
|
|
90
|
+
children: items.filter((item, index) => index >= visibleCount).map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
91
|
+
className: require_ds_chip_group_module.default.itemCheckbox,
|
|
92
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_checkbox.default, {
|
|
93
|
+
id: `chip-${item.id}`,
|
|
94
|
+
checked: item.selected,
|
|
95
|
+
onCheckedChange: () => onItemSelect?.(item),
|
|
96
|
+
label: item.label
|
|
97
|
+
})
|
|
98
|
+
}, item.id))
|
|
99
|
+
})
|
|
100
|
+
}) })]
|
|
101
|
+
})
|
|
102
|
+
]
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
var ds_chip_group_default = DsChipGroup;
|
|
106
|
+
|
|
107
|
+
//#endregion
|
|
108
|
+
exports.default = ds_chip_group_default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DsChipGroupProps } from "./ds-chip-group.types.cjs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-chip-group/ds-chip-group.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Design system chip group component displays a collection of chips with overflow handling
|
|
8
|
+
* Used for displaying filters, selected items, tags, etc.
|
|
9
|
+
*/
|
|
10
|
+
declare const DsChipGroup: React.FC<DsChipGroupProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DsChipGroup };
|
|
13
|
+
//# sourceMappingURL=ds-chip-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip-group.d.cts","names":[],"sources":["../../../src/components/ds-chip-group/ds-chip-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAM8D;;cAYxD,aAAa,KAAA,CAAM,GAAG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DsChipGroupProps } from "./ds-chip-group.types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-chip-group/ds-chip-group.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Design system chip group component displays a collection of chips with overflow handling
|
|
8
|
+
* Used for displaying filters, selected items, tags, etc.
|
|
9
|
+
*/
|
|
10
|
+
declare const DsChipGroup: React.FC<DsChipGroupProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DsChipGroup };
|
|
13
|
+
//# sourceMappingURL=ds-chip-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip-group.d.ts","names":[],"sources":["../../../src/components/ds-chip-group/ds-chip-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAM8D;;cAYxD,aAAa,KAAA,CAAM,GAAG"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import ds_icon_default from "../ds-icon/ds-icon.js";
|
|
2
|
+
import "../ds-icon/index.js";
|
|
3
|
+
import ds_typography_default from "../ds-typography/ds-typography.js";
|
|
4
|
+
import "../ds-typography/index.js";
|
|
5
|
+
import ds_button_default from "../ds-button/ds-button.js";
|
|
6
|
+
import "../ds-button/index.js";
|
|
7
|
+
import ds_checkbox_default from "../ds-checkbox/ds-checkbox.js";
|
|
8
|
+
import "../ds-checkbox/index.js";
|
|
9
|
+
import ds_chip_default from "../ds-chip/ds-chip.js";
|
|
10
|
+
import ds_chip_group_module_default from "./ds-chip-group.module.js";
|
|
11
|
+
import { useChipRowCalculation } from "./hooks/use-chip-row-calculation.js";
|
|
12
|
+
import classNames from "classnames";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { useRef, useState } from "react";
|
|
15
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
16
|
+
import { Root } from "@radix-ui/react-visually-hidden";
|
|
17
|
+
|
|
18
|
+
//#region src/components/ds-chip-group/ds-chip-group.tsx
|
|
19
|
+
/**
|
|
20
|
+
* Design system chip group component displays a collection of chips with overflow handling
|
|
21
|
+
* Used for displaying filters, selected items, tags, etc.
|
|
22
|
+
*/
|
|
23
|
+
const DsChipGroup = ({ items, label = "Filtered by:", onClearAll, onItemDelete, onItemSelect, className, style }) => {
|
|
24
|
+
const [dialogOpen, setDialogOpen] = useState(false);
|
|
25
|
+
const showAllChipsRef = useRef(null);
|
|
26
|
+
const chipsWrapperRef = useRef(null);
|
|
27
|
+
const visibleCount = useChipRowCalculation({
|
|
28
|
+
chipsWrapperRef,
|
|
29
|
+
totalFilters: items.length
|
|
30
|
+
});
|
|
31
|
+
if (items.length === 0) return null;
|
|
32
|
+
const hiddenCount = items.length - visibleCount;
|
|
33
|
+
const showExpandButton = hiddenCount > 0;
|
|
34
|
+
const handleOpenDialog = () => {
|
|
35
|
+
setDialogOpen(true);
|
|
36
|
+
};
|
|
37
|
+
let dialogStyle = {};
|
|
38
|
+
if (showExpandButton && showAllChipsRef.current) {
|
|
39
|
+
const rect = showAllChipsRef.current.getBoundingClientRect();
|
|
40
|
+
dialogStyle = {
|
|
41
|
+
position: "fixed",
|
|
42
|
+
top: rect.bottom + 4,
|
|
43
|
+
left: rect.left
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
47
|
+
className: classNames(ds_chip_group_module_default.container, className),
|
|
48
|
+
style,
|
|
49
|
+
children: [
|
|
50
|
+
label && /* @__PURE__ */ jsx(ds_typography_default, {
|
|
51
|
+
variant: "body-sm-reg",
|
|
52
|
+
className: ds_chip_group_module_default.label,
|
|
53
|
+
children: label
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsxs("div", {
|
|
56
|
+
ref: chipsWrapperRef,
|
|
57
|
+
className: ds_chip_group_module_default.chipsWrapper,
|
|
58
|
+
children: [items.map((item, index) => /* @__PURE__ */ jsx(ds_chip_default, {
|
|
59
|
+
label: item.label,
|
|
60
|
+
selected: item.selected,
|
|
61
|
+
onClick: () => onItemSelect?.(item),
|
|
62
|
+
onDelete: () => onItemDelete?.(item),
|
|
63
|
+
className: classNames({ [ds_chip_group_module_default.hidden]: index >= visibleCount })
|
|
64
|
+
}, item.id)), showExpandButton && /* @__PURE__ */ jsx(ds_chip_default, {
|
|
65
|
+
ref: showAllChipsRef,
|
|
66
|
+
label: `+${String(hiddenCount)} ${hiddenCount === 1 ? "item" : "items"} show all`,
|
|
67
|
+
onClick: handleOpenDialog,
|
|
68
|
+
className: ds_chip_group_module_default.expandChip
|
|
69
|
+
})]
|
|
70
|
+
}),
|
|
71
|
+
onClearAll && /* @__PURE__ */ jsxs(ds_button_default, {
|
|
72
|
+
design: "v1.2",
|
|
73
|
+
buttonType: "tertiary",
|
|
74
|
+
variant: "ghost",
|
|
75
|
+
size: "small",
|
|
76
|
+
onClick: onClearAll,
|
|
77
|
+
children: [/* @__PURE__ */ jsx(ds_icon_default, { icon: "close" }), "Clear all"]
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ jsxs(RadixDialog.Root, {
|
|
80
|
+
open: dialogOpen,
|
|
81
|
+
onOpenChange: setDialogOpen,
|
|
82
|
+
children: [/* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(RadixDialog.Title, {}) }), /* @__PURE__ */ jsx(RadixDialog.Portal, { children: /* @__PURE__ */ jsx(RadixDialog.Content, {
|
|
83
|
+
style: dialogStyle,
|
|
84
|
+
className: ds_chip_group_module_default.dialog,
|
|
85
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
86
|
+
className: ds_chip_group_module_default.dialogContent,
|
|
87
|
+
children: items.filter((item, index) => index >= visibleCount).map((item) => /* @__PURE__ */ jsx("div", {
|
|
88
|
+
className: ds_chip_group_module_default.itemCheckbox,
|
|
89
|
+
children: /* @__PURE__ */ jsx(ds_checkbox_default, {
|
|
90
|
+
id: `chip-${item.id}`,
|
|
91
|
+
checked: item.selected,
|
|
92
|
+
onCheckedChange: () => onItemSelect?.(item),
|
|
93
|
+
label: item.label
|
|
94
|
+
})
|
|
95
|
+
}, item.id))
|
|
96
|
+
})
|
|
97
|
+
}) })]
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
var ds_chip_group_default = DsChipGroup;
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
export { ds_chip_group_default as default };
|
|
106
|
+
//# sourceMappingURL=ds-chip-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip-group.js","names":["DsChipGroup: React.FC<DsChipGroupProps>","dialogStyle: React.CSSProperties","styles","DsTypography","DsChip","DsButton","DsIcon","VisuallyHidden","DsCheckbox"],"sources":["../../../src/components/ds-chip-group/ds-chip-group.tsx"],"sourcesContent":["import type React from 'react';\nimport { useRef, useState } from 'react';\nimport * as RadixDialog from '@radix-ui/react-dialog';\nimport { Root as VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport classNames from 'classnames';\nimport styles from './ds-chip-group.module.scss';\nimport type { DsChipGroupProps } from './ds-chip-group.types';\nimport { useChipRowCalculation } from './hooks/use-chip-row-calculation';\nimport { DsTypography } from '../ds-typography';\nimport DsChip from '../ds-chip/ds-chip';\nimport { DsCheckbox } from '../ds-checkbox';\nimport { DsButton } from '../ds-button';\nimport { DsIcon } from '../ds-icon';\n\n/**\n * Design system chip group component displays a collection of chips with overflow handling\n * Used for displaying filters, selected items, tags, etc.\n */\nconst DsChipGroup: React.FC<DsChipGroupProps> = ({\n\titems,\n\tlabel = 'Filtered by:',\n\tonClearAll,\n\tonItemDelete,\n\tonItemSelect,\n\tclassName,\n\tstyle,\n}) => {\n\tconst [dialogOpen, setDialogOpen] = useState(false);\n\tconst showAllChipsRef = useRef<HTMLDivElement>(null);\n\tconst chipsWrapperRef = useRef<HTMLDivElement>(null);\n\tconst visibleCount = useChipRowCalculation({\n\t\tchipsWrapperRef,\n\t\ttotalFilters: items.length,\n\t});\n\n\tif (items.length === 0) {\n\t\treturn null;\n\t}\n\n\tconst hiddenCount = items.length - visibleCount;\n\tconst showExpandButton = hiddenCount > 0;\n\n\tconst handleOpenDialog = () => {\n\t\tsetDialogOpen(true);\n\t};\n\n\tlet dialogStyle: React.CSSProperties = {};\n\tif (showExpandButton && showAllChipsRef.current) {\n\t\tconst rect = showAllChipsRef.current.getBoundingClientRect();\n\t\tdialogStyle = {\n\t\t\tposition: 'fixed',\n\t\t\ttop: rect.bottom + 4,\n\t\t\tleft: rect.left,\n\t\t};\n\t}\n\n\treturn (\n\t\t<div className={classNames(styles.container, className)} style={style}>\n\t\t\t{label && (\n\t\t\t\t<DsTypography variant=\"body-sm-reg\" className={styles.label}>\n\t\t\t\t\t{label}\n\t\t\t\t</DsTypography>\n\t\t\t)}\n\n\t\t\t<div ref={chipsWrapperRef} className={styles.chipsWrapper}>\n\t\t\t\t{items.map((item, index) => (\n\t\t\t\t\t<DsChip\n\t\t\t\t\t\tkey={item.id}\n\t\t\t\t\t\tlabel={item.label}\n\t\t\t\t\t\tselected={item.selected}\n\t\t\t\t\t\tonClick={() => onItemSelect?.(item)}\n\t\t\t\t\t\tonDelete={() => onItemDelete?.(item)}\n\t\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t\t[styles.hidden]: index >= visibleCount,\n\t\t\t\t\t\t})}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t\t{showExpandButton && (\n\t\t\t\t\t<DsChip\n\t\t\t\t\t\tref={showAllChipsRef}\n\t\t\t\t\t\tlabel={`+${String(hiddenCount)} ${hiddenCount === 1 ? 'item' : 'items'} show all`}\n\t\t\t\t\t\tonClick={handleOpenDialog}\n\t\t\t\t\t\tclassName={styles.expandChip}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\n\t\t\t{onClearAll && (\n\t\t\t\t<DsButton design=\"v1.2\" buttonType=\"tertiary\" variant=\"ghost\" size=\"small\" onClick={onClearAll}>\n\t\t\t\t\t<DsIcon icon=\"close\" />\n\t\t\t\t\tClear all\n\t\t\t\t</DsButton>\n\t\t\t)}\n\n\t\t\t<RadixDialog.Root open={dialogOpen} onOpenChange={setDialogOpen}>\n\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t<RadixDialog.Title />\n\t\t\t\t</VisuallyHidden>\n\t\t\t\t<RadixDialog.Portal>\n\t\t\t\t\t<RadixDialog.Content style={dialogStyle} className={styles.dialog}>\n\t\t\t\t\t\t<div className={styles.dialogContent}>\n\t\t\t\t\t\t\t{items\n\t\t\t\t\t\t\t\t.filter((item, index) => index >= visibleCount)\n\t\t\t\t\t\t\t\t.map((item) => (\n\t\t\t\t\t\t\t\t\t<div key={item.id} className={styles.itemCheckbox}>\n\t\t\t\t\t\t\t\t\t\t<DsCheckbox\n\t\t\t\t\t\t\t\t\t\t\tid={`chip-${item.id}`}\n\t\t\t\t\t\t\t\t\t\t\tchecked={item.selected}\n\t\t\t\t\t\t\t\t\t\t\tonCheckedChange={() => onItemSelect?.(item)}\n\t\t\t\t\t\t\t\t\t\t\tlabel={item.label}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</RadixDialog.Content>\n\t\t\t\t</RadixDialog.Portal>\n\t\t\t</RadixDialog.Root>\n\t\t</div>\n\t);\n};\n\nexport default DsChipGroup;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,eAA2C,EAChD,OACA,QAAQ,gBACR,YACA,cACA,cACA,WACA,YACK;CACL,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CACnD,MAAM,kBAAkB,OAAuB,KAAK;CACpD,MAAM,kBAAkB,OAAuB,KAAK;CACpD,MAAM,eAAe,sBAAsB;EAC1C;EACA,cAAc,MAAM;EACpB,CAAC;AAEF,KAAI,MAAM,WAAW,EACpB,QAAO;CAGR,MAAM,cAAc,MAAM,SAAS;CACnC,MAAM,mBAAmB,cAAc;CAEvC,MAAM,yBAAyB;AAC9B,gBAAc,KAAK;;CAGpB,IAAIC,cAAmC,EAAE;AACzC,KAAI,oBAAoB,gBAAgB,SAAS;EAChD,MAAM,OAAO,gBAAgB,QAAQ,uBAAuB;AAC5D,gBAAc;GACb,UAAU;GACV,KAAK,KAAK,SAAS;GACnB,MAAM,KAAK;GACX;;AAGF,QACC,qBAAC;EAAI,WAAW,WAAWC,6BAAO,WAAW,UAAU;EAAS;;GAC9D,SACA,oBAACC;IAAa,SAAQ;IAAc,WAAWD,6BAAO;cACpD;KACa;GAGhB,qBAAC;IAAI,KAAK;IAAiB,WAAWA,6BAAO;eAC3C,MAAM,KAAK,MAAM,UACjB,oBAACE;KAEA,OAAO,KAAK;KACZ,UAAU,KAAK;KACf,eAAe,eAAe,KAAK;KACnC,gBAAgB,eAAe,KAAK;KACpC,WAAW,WAAW,GACpBF,6BAAO,SAAS,SAAS,cAC1B,CAAC;OAPG,KAAK,GAQT,CACD,EACD,oBACA,oBAACE;KACA,KAAK;KACL,OAAO,IAAI,OAAO,YAAY,CAAC,GAAG,gBAAgB,IAAI,SAAS,QAAQ;KACvE,SAAS;KACT,WAAWF,6BAAO;MACjB;KAEE;GAEL,cACA,qBAACG;IAAS,QAAO;IAAO,YAAW;IAAW,SAAQ;IAAQ,MAAK;IAAQ,SAAS;eACnF,oBAACC,mBAAO,MAAK,UAAU;KAEb;GAGZ,qBAAC,YAAY;IAAK,MAAM;IAAY,cAAc;eACjD,oBAACC,kBACA,oBAAC,YAAY,UAAQ,GACL,EACjB,oBAAC,YAAY,oBACZ,oBAAC,YAAY;KAAQ,OAAO;KAAa,WAAWL,6BAAO;eAC1D,oBAAC;MAAI,WAAWA,6BAAO;gBACrB,MACC,QAAQ,MAAM,UAAU,SAAS,aAAa,CAC9C,KAAK,SACL,oBAAC;OAAkB,WAAWA,6BAAO;iBACpC,oBAACM;QACA,IAAI,QAAQ,KAAK;QACjB,SAAS,KAAK;QACd,uBAAuB,eAAe,KAAK;QAC3C,OAAO,KAAK;SACX;SANO,KAAK,GAOT,CACL;OACE;MACe,GACF;KACH;;GACd;;AAIR,4BAAe"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-chip-group/ds-chip-group.module.scss
|
|
3
|
+
var ds_chip_group_module_default = {
|
|
4
|
+
"container": "_container_19chu_1",
|
|
5
|
+
"chipsWrapper": "_chipsWrapper_19chu_1",
|
|
6
|
+
"hidden": "_hidden_19chu_1",
|
|
7
|
+
"label": "_label_19chu_1",
|
|
8
|
+
"expandChip": "_expandChip_19chu_1",
|
|
9
|
+
"dialog": "_dialog_19chu_1",
|
|
10
|
+
"dialogContent": "_dialogContent_19chu_1",
|
|
11
|
+
"itemCheckbox": "_itemCheckbox_19chu_1"
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.default = ds_chip_group_module_default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/components/ds-chip-group/ds-chip-group.module.scss
|
|
2
|
+
var ds_chip_group_module_default = {
|
|
3
|
+
"container": "_container_19chu_1",
|
|
4
|
+
"chipsWrapper": "_chipsWrapper_19chu_1",
|
|
5
|
+
"hidden": "_hidden_19chu_1",
|
|
6
|
+
"label": "_label_19chu_1",
|
|
7
|
+
"expandChip": "_expandChip_19chu_1",
|
|
8
|
+
"dialog": "_dialog_19chu_1",
|
|
9
|
+
"dialogContent": "_dialogContent_19chu_1",
|
|
10
|
+
"itemCheckbox": "_itemCheckbox_19chu_1"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ds_chip_group_module_default as default };
|
|
15
|
+
//# sourceMappingURL=ds-chip-group.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip-group.module.js","names":[],"sources":["../../../src/components/ds-chip-group/ds-chip-group.module.scss"],"sourcesContent":[".container {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: var(--spacing-standard);\n\tpadding: var(--spacing-xs) var(--spacing-standard);\n\tbackground: var(--color-background-selected-weak);\n\tborder: 1px solid var(--color-outline-weak);\n\tborder-radius: var(--spacing-3xs);\n}\n\n.chipsWrapper {\n\tdisplay: flex;\n\tflex: 1;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tgap: var(--spacing-xs);\n\tmax-height: var(--spacing-3xl);\n\toverflow: hidden;\n\n\t.hidden {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\tpointer-events: none;\n\t}\n}\n\n.label {\n\tcolor: var(--color-font-secondary);\n\twhite-space: nowrap;\n}\n\n.expandChip {\n\tcursor: pointer;\n}\n\n.dialog {\n\tposition: fixed;\n\tbackground: var(--color-background);\n\tborder: 1px solid var(--color-border-secondary);\n\tborder-radius: var(--spacing-3xs);\n\tbox-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15);\n\tpadding: var(--spacing-xs);\n\tmax-height: 80vh;\n\toverflow-y: auto;\n\tz-index: 1001;\n\tmin-width: 300px;\n\tmax-width: 500px;\n}\n\n.dialogContent {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 10px;\n}\n\n.itemCheckbox {\n\tdisplay: flex;\n\talign-items: center;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-chip-group/ds-chip-group.types.d.ts
|
|
4
|
+
interface ChipItem {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier for the chip
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The label text to display in the chip
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Additional metadata to store with the chip
|
|
15
|
+
*/
|
|
16
|
+
metadata?: Record<string, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the chip is selected/checked
|
|
19
|
+
*/
|
|
20
|
+
selected?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface DsChipGroupProps {
|
|
23
|
+
/**
|
|
24
|
+
* Array of chip items to display
|
|
25
|
+
*/
|
|
26
|
+
items: ChipItem[];
|
|
27
|
+
/**
|
|
28
|
+
* Label text to display before the chips (e.g., "Filtered by:")
|
|
29
|
+
* @default "Filtered by:"
|
|
30
|
+
*/
|
|
31
|
+
label?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Callback when "Clear all" is clicked
|
|
34
|
+
*/
|
|
35
|
+
onClearAll?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Callback when a chip is deleted/unchecked
|
|
38
|
+
*/
|
|
39
|
+
onItemDelete?: (item: ChipItem) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Callback when a chip is selected
|
|
42
|
+
*/
|
|
43
|
+
onItemSelect?: (item: ChipItem) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Additional CSS class names
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Additional styles to apply to the component
|
|
50
|
+
*/
|
|
51
|
+
style?: CSSProperties;
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ChipItem, DsChipGroupProps };
|
|
55
|
+
//# sourceMappingURL=ds-chip-group.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip-group.types.d.cts","names":[],"sources":["../../../src/components/ds-chip-group/ds-chip-group.types.ts"],"sourcesContent":[],"mappings":";;;UAEiB,QAAA;;AAAjB;AAmBA;EAIQ,EAAA,EAAA,MAAA;EAae;;;EAYD,KAAA,EAAA,MAAA;;;;aApCV;;;;;;UAOK,gBAAA;;;;SAIT;;;;;;;;;;;;;wBAae;;;;wBAIA;;;;;;;;UAQd"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-chip-group/ds-chip-group.types.d.ts
|
|
4
|
+
interface ChipItem {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier for the chip
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The label text to display in the chip
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Additional metadata to store with the chip
|
|
15
|
+
*/
|
|
16
|
+
metadata?: Record<string, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the chip is selected/checked
|
|
19
|
+
*/
|
|
20
|
+
selected?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface DsChipGroupProps {
|
|
23
|
+
/**
|
|
24
|
+
* Array of chip items to display
|
|
25
|
+
*/
|
|
26
|
+
items: ChipItem[];
|
|
27
|
+
/**
|
|
28
|
+
* Label text to display before the chips (e.g., "Filtered by:")
|
|
29
|
+
* @default "Filtered by:"
|
|
30
|
+
*/
|
|
31
|
+
label?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Callback when "Clear all" is clicked
|
|
34
|
+
*/
|
|
35
|
+
onClearAll?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Callback when a chip is deleted/unchecked
|
|
38
|
+
*/
|
|
39
|
+
onItemDelete?: (item: ChipItem) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Callback when a chip is selected
|
|
42
|
+
*/
|
|
43
|
+
onItemSelect?: (item: ChipItem) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Additional CSS class names
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Additional styles to apply to the component
|
|
50
|
+
*/
|
|
51
|
+
style?: CSSProperties;
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ChipItem, DsChipGroupProps };
|
|
55
|
+
//# sourceMappingURL=ds-chip-group.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-chip-group.types.d.ts","names":[],"sources":["../../../src/components/ds-chip-group/ds-chip-group.types.ts"],"sourcesContent":[],"mappings":";;;UAEiB,QAAA;;AAAjB;AAmBA;EAIQ,EAAA,EAAA,MAAA;EAae;;;EAYD,KAAA,EAAA,MAAA;;;;aApCV;;;;;;UAOK,gBAAA;;;;SAIT;;;;;;;;;;;;;wBAae;;;;wBAIA;;;;;;;;UAQd"}
|