@drivenets/design-system 0.0.5 → 0.2.0
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 +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts +5 -5
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts.map +1 -1
- package/dist/components/ds-avatar/ds-avatar.cjs +98 -0
- package/dist/components/ds-avatar/ds-avatar.d.cts +12 -0
- package/dist/components/ds-avatar/ds-avatar.d.cts.map +1 -0
- package/dist/components/ds-avatar/ds-avatar.d.ts +12 -0
- package/dist/components/ds-avatar/ds-avatar.d.ts.map +1 -0
- package/dist/components/ds-avatar/ds-avatar.js +97 -0
- package/dist/components/ds-avatar/ds-avatar.js.map +1 -0
- package/dist/components/ds-avatar/ds-avatar.module.cjs +17 -0
- package/dist/components/ds-avatar/ds-avatar.module.js +17 -0
- package/dist/components/ds-avatar/ds-avatar.module.js.map +1 -0
- package/dist/components/ds-avatar/ds-avatar.types.d.cts +44 -0
- package/dist/components/ds-avatar/ds-avatar.types.d.cts.map +1 -0
- package/dist/components/ds-avatar/ds-avatar.types.d.ts +44 -0
- package/dist/components/ds-avatar/ds-avatar.types.d.ts.map +1 -0
- package/dist/components/ds-avatar/index.cjs +1 -0
- package/dist/components/ds-avatar/index.d.ts +2 -0
- package/dist/components/ds-avatar/index.js +1 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.cjs +93 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.d.cts +12 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.d.cts.map +1 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.d.ts +12 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.d.ts.map +1 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.js +92 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.js.map +1 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.module.cjs +19 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.module.js +19 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.module.js.map +1 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.types.d.cts +31 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.types.d.cts.map +1 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.types.d.ts +32 -0
- package/dist/components/ds-avatar-group/ds-avatar-group.types.d.ts.map +1 -0
- package/dist/components/ds-avatar-group/index.cjs +1 -0
- package/dist/components/ds-avatar-group/index.d.ts +2 -0
- package/dist/components/ds-avatar-group/index.js +1 -0
- package/dist/components/ds-button/ds-button.d.cts +2 -2
- package/dist/components/ds-button/ds-button.d.ts +2 -2
- package/dist/components/ds-button/ds-button.d.ts.map +1 -1
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.cjs +18 -18
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js +18 -18
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js.map +1 -1
- package/dist/components/ds-chip/ds-chip.cjs +2 -1
- package/dist/components/ds-chip/ds-chip.d.cts +2 -1
- package/dist/components/ds-chip/ds-chip.d.cts.map +1 -1
- package/dist/components/ds-chip/ds-chip.d.ts +2 -1
- package/dist/components/ds-chip/ds-chip.d.ts.map +1 -1
- package/dist/components/ds-chip/ds-chip.js +2 -1
- package/dist/components/ds-chip/ds-chip.js.map +1 -1
- package/dist/components/ds-chip/ds-chip.types.d.cts +13 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts.map +1 -1
- package/dist/components/ds-chip/ds-chip.types.d.ts +13 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts.map +1 -1
- package/dist/components/ds-chip-group/ds-chip-group.cjs +2 -2
- package/dist/components/ds-chip-group/ds-chip-group.d.cts +2 -2
- package/dist/components/ds-chip-group/ds-chip-group.d.ts +2 -2
- package/dist/components/ds-chip-group/ds-chip-group.js +2 -2
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -1
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts +9 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts.map +1 -1
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts +9 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +8 -8
- package/dist/components/ds-date-input/ds-date-input.cjs +352 -0
- package/dist/components/ds-date-input/ds-date-input.d.cts +31 -0
- package/dist/components/ds-date-input/ds-date-input.d.cts.map +1 -0
- package/dist/components/ds-date-input/ds-date-input.d.ts +31 -0
- package/dist/components/ds-date-input/ds-date-input.d.ts.map +1 -0
- package/dist/components/ds-date-input/ds-date-input.js +351 -0
- package/dist/components/ds-date-input/ds-date-input.js.map +1 -0
- package/dist/components/ds-date-input/ds-date-input.module.cjs +29 -0
- package/dist/components/ds-date-input/ds-date-input.module.js +29 -0
- package/dist/components/ds-date-input/ds-date-input.module.js.map +1 -0
- package/dist/components/ds-date-input/ds-date-input.types.d.cts +92 -0
- package/dist/components/ds-date-input/ds-date-input.types.d.cts.map +1 -0
- package/dist/components/ds-date-input/ds-date-input.types.d.ts +92 -0
- package/dist/components/ds-date-input/ds-date-input.types.d.ts.map +1 -0
- package/dist/components/ds-date-input/ds-date-input.utils.cjs +169 -0
- package/dist/components/ds-date-input/ds-date-input.utils.js +164 -0
- package/dist/components/ds-date-input/ds-date-input.utils.js.map +1 -0
- package/dist/components/ds-date-input/index.cjs +1 -0
- package/dist/components/ds-date-input/index.d.ts +2 -0
- package/dist/components/ds-date-input/index.js +1 -0
- package/dist/components/ds-divider/ds-divider.cjs +47 -0
- package/dist/components/ds-divider/ds-divider.d.cts +8 -0
- package/dist/components/ds-divider/ds-divider.d.cts.map +1 -0
- package/dist/components/ds-divider/ds-divider.d.ts +8 -0
- package/dist/components/ds-divider/ds-divider.d.ts.map +1 -0
- package/dist/components/ds-divider/ds-divider.js +46 -0
- package/dist/components/ds-divider/ds-divider.js.map +1 -0
- package/dist/components/ds-divider/ds-divider.module.cjs +10 -0
- package/dist/components/ds-divider/ds-divider.module.js +10 -0
- package/dist/components/ds-divider/ds-divider.module.js.map +1 -0
- package/dist/components/ds-divider/ds-divider.types.d.cts +25 -0
- package/dist/components/ds-divider/ds-divider.types.d.cts.map +1 -0
- package/dist/components/ds-divider/ds-divider.types.d.ts +25 -0
- package/dist/components/ds-divider/ds-divider.types.d.ts.map +1 -0
- package/dist/components/ds-divider/index.cjs +1 -0
- package/dist/components/ds-divider/index.d.ts +2 -0
- package/dist/components/ds-divider/index.js +1 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
- package/dist/components/ds-drawer/ds-drawer.js +2 -2
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +80 -24
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +83 -27
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.cjs +20 -18
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js +20 -18
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts +5 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts +5 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts.map +1 -1
- package/dist/components/ds-dropdown-menu/index.d.ts +1 -1
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +2 -2
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +2 -2
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +2 -2
- package/dist/components/ds-form-control/ds-form-control.cjs +3 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts +9 -7
- package/dist/components/ds-form-control/ds-form-control.d.cts.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.d.ts +10 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.js +3 -0
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -1
- package/dist/components/ds-modal/ds-modal.d.cts +8 -8
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -1
- package/dist/components/ds-modal/ds-modal.d.ts +8 -8
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -1
- package/dist/components/ds-panel/ds-panel.d.cts +2 -2
- package/dist/components/ds-panel/ds-panel.d.ts +2 -2
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts +1 -1
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts.map +1 -1
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts +1 -1
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts.map +1 -1
- package/dist/components/ds-select/ds-select.d.cts +2 -2
- package/dist/components/ds-select/ds-select.d.ts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step.d.ts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.cts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.ts +2 -2
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts.map +1 -1
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts +1 -1
- package/dist/components/ds-table/ds-table.d.cts +2 -2
- package/dist/components/ds-table/ds-table.d.ts +2 -2
- package/dist/components/ds-table/filters/adapters/create-checkbox-filter-adapter.cjs +55 -0
- package/dist/components/ds-table/filters/adapters/create-checkbox-filter-adapter.d.cts +49 -0
- package/dist/components/ds-table/filters/adapters/create-checkbox-filter-adapter.d.cts.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-checkbox-filter-adapter.d.ts +50 -0
- package/dist/components/ds-table/filters/adapters/create-checkbox-filter-adapter.d.ts.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-checkbox-filter-adapter.js +55 -0
- package/dist/components/ds-table/filters/adapters/create-checkbox-filter-adapter.js.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.cjs +87 -0
- package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.d.cts +44 -0
- package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.d.cts.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.d.ts +44 -0
- package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.d.ts.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.js +87 -0
- package/dist/components/ds-table/filters/adapters/create-dual-range-filter-adapter.js.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-filter-adapter.cjs +83 -0
- package/dist/components/ds-table/filters/adapters/create-filter-adapter.d.cts +111 -0
- package/dist/components/ds-table/filters/adapters/create-filter-adapter.d.cts.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-filter-adapter.d.ts +111 -0
- package/dist/components/ds-table/filters/adapters/create-filter-adapter.d.ts.map +1 -0
- package/dist/components/ds-table/filters/adapters/create-filter-adapter.js +83 -0
- package/dist/components/ds-table/filters/adapters/create-filter-adapter.js.map +1 -0
- package/dist/components/ds-table/filters/adapters/index.cjs +3 -0
- package/dist/components/ds-table/filters/adapters/index.d.ts +3 -0
- package/dist/components/ds-table/filters/adapters/index.js +3 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/checkbox-filter.cjs +22 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/checkbox-filter.d.cts +17 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/checkbox-filter.d.cts.map +1 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/checkbox-filter.d.ts +18 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/checkbox-filter.d.ts.map +1 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/checkbox-filter.js +22 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/checkbox-filter.js.map +1 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/index.cjs +1 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/index.d.ts +1 -0
- package/dist/components/ds-table/filters/components/checkbox-filter/index.js +1 -0
- package/dist/components/ds-table/filters/components/range-filter/index.cjs +1 -0
- package/dist/components/ds-table/filters/components/range-filter/index.d.ts +1 -0
- package/dist/components/ds-table/filters/components/range-filter/index.js +1 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.cjs +177 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.d.cts +14 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.d.cts.map +1 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.d.ts +16 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.d.ts.map +1 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.js +177 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.js.map +1 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.module.cjs +11 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.module.js +11 -0
- package/dist/components/ds-table/filters/components/range-filter/range-filter.module.js.map +1 -0
- package/dist/components/ds-table/filters/hooks/index.cjs +1 -0
- package/dist/components/ds-table/filters/hooks/index.d.ts +1 -0
- package/dist/components/ds-table/filters/hooks/index.js +1 -0
- package/dist/components/ds-table/filters/hooks/use-table-filters.cjs +211 -0
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.cts +65 -0
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.cts.map +1 -0
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.ts +66 -0
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.ts.map +1 -0
- package/dist/components/ds-table/filters/hooks/use-table-filters.js +211 -0
- package/dist/components/ds-table/filters/hooks/use-table-filters.js.map +1 -0
- package/dist/components/ds-table/filters/index.cjs +6 -0
- package/dist/components/ds-table/filters/index.d.ts +11 -0
- package/dist/components/ds-table/filters/index.js +6 -0
- package/dist/components/ds-table/filters/types/filter-adapter.types.d.cts +101 -0
- package/dist/components/ds-table/filters/types/filter-adapter.types.d.cts.map +1 -0
- package/dist/components/ds-table/filters/types/filter-adapter.types.d.ts +102 -0
- package/dist/components/ds-table/filters/types/filter-adapter.types.d.ts.map +1 -0
- package/dist/components/ds-table/index.cjs +5 -0
- package/dist/components/ds-table/index.d.ts +8 -0
- package/dist/components/ds-table/index.js +5 -0
- package/dist/components/ds-tag/ds-tag.cjs +254 -0
- package/dist/components/ds-tag/ds-tag.d.cts +25 -0
- package/dist/components/ds-tag/ds-tag.d.cts.map +1 -0
- package/dist/components/ds-tag/ds-tag.d.ts +25 -0
- package/dist/components/ds-tag/ds-tag.d.ts.map +1 -0
- package/dist/components/ds-tag/ds-tag.js +253 -0
- package/dist/components/ds-tag/ds-tag.js.map +1 -0
- package/dist/components/ds-tag/ds-tag.module.cjs +17 -0
- package/dist/components/ds-tag/ds-tag.module.js +17 -0
- package/dist/components/ds-tag/ds-tag.module.js.map +1 -0
- package/dist/components/ds-tag/ds-tag.types.d.cts +68 -0
- package/dist/components/ds-tag/ds-tag.types.d.cts.map +1 -0
- package/dist/components/ds-tag/ds-tag.types.d.ts +68 -0
- package/dist/components/ds-tag/ds-tag.types.d.ts.map +1 -0
- package/dist/components/ds-tag/index.cjs +1 -0
- package/dist/components/ds-tag/index.d.ts +2 -0
- package/dist/components/ds-tag/index.js +1 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.cjs +325 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.d.cts +24 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.d.cts.map +1 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.d.ts +24 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.d.ts.map +1 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.js +324 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.js.map +1 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.module.cjs +17 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.module.js +17 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.module.js.map +1 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.types.d.cts +71 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.types.d.cts.map +1 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.types.d.ts +72 -0
- package/dist/components/ds-tag-filter/ds-tag-filter.types.d.ts.map +1 -0
- package/dist/components/ds-tag-filter/hooks/use-tag-overflow-calculation.cjs +137 -0
- package/dist/components/ds-tag-filter/hooks/use-tag-overflow-calculation.js +137 -0
- package/dist/components/ds-tag-filter/hooks/use-tag-overflow-calculation.js.map +1 -0
- package/dist/components/ds-tag-filter/index.cjs +1 -0
- package/dist/components/ds-tag-filter/index.d.ts +2 -0
- package/dist/components/ds-tag-filter/index.js +1 -0
- package/dist/components/ds-tag-filter/utils.cjs +54 -0
- package/dist/components/ds-tag-filter/utils.js +52 -0
- package/dist/components/ds-tag-filter/utils.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.js +2 -2
- package/dist/components/ds-toggle/ds-toggle.cjs +192 -0
- package/dist/components/ds-toggle/ds-toggle.d.cts +24 -0
- package/dist/components/ds-toggle/ds-toggle.d.cts.map +1 -0
- package/dist/components/ds-toggle/ds-toggle.d.ts +24 -0
- package/dist/components/ds-toggle/ds-toggle.d.ts.map +1 -0
- package/dist/components/ds-toggle/ds-toggle.js +191 -0
- package/dist/components/ds-toggle/ds-toggle.js.map +1 -0
- package/dist/components/ds-toggle/ds-toggle.module.cjs +13 -0
- package/dist/components/ds-toggle/ds-toggle.module.js +13 -0
- package/dist/components/ds-toggle/ds-toggle.module.js.map +1 -0
- package/dist/components/ds-toggle/ds-toggle.types.d.cts +67 -0
- package/dist/components/ds-toggle/ds-toggle.types.d.cts.map +1 -0
- package/dist/components/ds-toggle/ds-toggle.types.d.ts +67 -0
- package/dist/components/ds-toggle/ds-toggle.types.d.ts.map +1 -0
- package/dist/components/ds-toggle/index.cjs +1 -0
- package/dist/components/ds-toggle/index.d.ts +2 -0
- package/dist/components/ds-toggle/index.js +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +5 -5
- package/dist/index.cjs +31 -2
- package/dist/index.d.cts +23 -2
- package/dist/index.d.ts +30 -2
- package/dist/index.js +21 -3
- package/dist/index.min.css +1 -1
- package/package.json +7 -2
- package/src/components/ds-avatar/_mixins.scss +45 -0
- package/src/components/ds-avatar/ds-avatar.module.scss +52 -0
- package/src/components/ds-avatar/ds-avatar.tsx +42 -0
- package/src/components/ds-avatar/ds-avatar.types.ts +41 -0
- package/src/components/ds-avatar/index.ts +2 -0
- package/src/components/ds-avatar-group/ds-avatar-group.module.scss +70 -0
- package/src/components/ds-avatar-group/ds-avatar-group.tsx +51 -0
- package/src/components/ds-avatar-group/ds-avatar-group.types.ts +27 -0
- package/src/components/ds-avatar-group/index.ts +2 -0
- package/src/components/ds-button/versions/ds-button-new/ds-button-new.module.scss +0 -1
- package/src/components/ds-chip/ds-chip.tsx +2 -1
- package/src/components/ds-chip/ds-chip.types.tsx +13 -0
- package/src/components/ds-chip/index.tsx +8 -0
- package/src/components/ds-chip-group/ds-chip-group.tsx +2 -2
- package/src/components/ds-chip-group/ds-chip-group.types.ts +8 -0
- package/src/components/ds-chip-group/index.ts +1 -0
- package/src/components/ds-date-input/ds-date-input.module.scss +246 -0
- package/src/components/ds-date-input/ds-date-input.tsx +309 -0
- package/src/components/ds-date-input/ds-date-input.types.tsx +104 -0
- package/src/components/ds-date-input/ds-date-input.utils.ts +242 -0
- package/src/components/ds-date-input/index.ts +2 -0
- package/src/components/ds-divider/ds-divider.module.scss +21 -0
- package/src/components/ds-divider/ds-divider.tsx +22 -0
- package/src/components/ds-divider/ds-divider.types.ts +21 -0
- package/src/components/ds-divider/index.ts +2 -0
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.module.scss +11 -3
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.tsx +17 -1
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.types.tsx +5 -0
- package/src/components/ds-form-control/ds-form-control.tsx +2 -0
- package/src/components/ds-radio-group/ds-radio-group.types.tsx +1 -1
- package/src/components/ds-table/filters/hooks/index.ts +1 -0
- package/src/components/ds-table/index.ts +2 -0
- package/src/components/ds-tag/ds-tag.module.scss +112 -0
- package/src/components/ds-tag/ds-tag.tsx +124 -0
- package/src/components/ds-tag/ds-tag.types.tsx +67 -0
- package/src/components/ds-tag/index.tsx +2 -0
- package/src/components/ds-tag-filter/ds-tag-filter.module.scss +72 -0
- package/src/components/ds-tag-filter/ds-tag-filter.tsx +178 -0
- package/src/components/ds-tag-filter/ds-tag-filter.types.ts +68 -0
- package/src/components/ds-tag-filter/hooks/use-tag-overflow-calculation.ts +135 -0
- package/src/components/ds-tag-filter/index.ts +2 -0
- package/src/components/ds-tag-filter/utils.test.ts +401 -0
- package/src/components/ds-tag-filter/utils.ts +65 -0
- package/src/components/ds-toggle/ds-toggle.module.scss +154 -0
- package/src/components/ds-toggle/ds-toggle.tsx +78 -0
- package/src/components/ds-toggle/ds-toggle.types.tsx +76 -0
- package/src/components/ds-toggle/index.tsx +2 -0
- package/src/index.ts +7 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-chip-group.js","names":["React","useRef","useState","RadixDialog","Root","VisuallyHidden","classNames","styles","DsChipGroupProps","useChipRowCalculation","DsTypography","DsChip","DsCheckbox","DsButton","DsIcon","DsChipGroup","FC","items","label","onClearAll","onItemDelete","onItemSelect","className","style","dialogOpen","setDialogOpen","showAllChipsRef","HTMLDivElement","chipsWrapperRef","visibleCount","totalFilters","length","hiddenCount","showExpandButton","handleOpenDialog","dialogStyle","CSSProperties","current","rect","getBoundingClientRect","position","top","bottom","left","container","chipsWrapper","map","item","index","id","selected","hidden","String","expandChip","dialog","dialogContent","filter","itemCheckbox"],"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 *
|
|
1
|
+
{"version":3,"file":"ds-chip-group.js","names":["React","useRef","useState","RadixDialog","Root","VisuallyHidden","classNames","styles","DsChipGroupProps","useChipRowCalculation","DsTypography","DsChip","DsCheckbox","DsButton","DsIcon","DsChipGroup","FC","items","label","onClearAll","onItemDelete","onItemSelect","className","style","dialogOpen","setDialogOpen","showAllChipsRef","HTMLDivElement","chipsWrapperRef","visibleCount","totalFilters","length","hiddenCount","showExpandButton","handleOpenDialog","dialogStyle","CSSProperties","current","rect","getBoundingClientRect","position","top","bottom","left","container","chipsWrapper","map","item","index","id","selected","hidden","String","expandChip","dialog","dialogContent","filter","itemCheckbox"],"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 * @deprecated This component is deprecated. Use `DsTagFilter` instead.\n * @see {@link ../ds-tag-filter} for the replacement component.\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,MAAMe,eAA2C,EAChDE,OACAC,QAAQ,gBACRC,YACAC,cACAC,cACAC,WACAC,YACK;CACL,MAAM,CAACC,YAAYC,iBAAiBvB,SAAS,MAAM;CACnD,MAAMwB,kBAAkBzB,OAAuB,KAAK;CACpD,MAAM2B,kBAAkB3B,OAAuB,KAAK;CACpD,MAAM4B,eAAepB,sBAAsB;EAC1CmB;EACAE,cAAcb,MAAMc;EACpB,CAAC;AAEF,KAAId,MAAMc,WAAW,EACpB,QAAO;CAGR,MAAMC,cAAcf,MAAMc,SAASF;CACnC,MAAMI,mBAAmBD,cAAc;CAEvC,MAAME,yBAAyB;AAC9BT,gBAAc,KAAK;;CAGpB,IAAIU,cAAmC,EAAE;AACzC,KAAIF,oBAAoBP,gBAAgBW,SAAS;EAChD,MAAMC,OAAOZ,gBAAgBW,QAAQE,uBAAuB;AAC5DJ,gBAAc;GACbK,UAAU;GACVC,KAAKH,KAAKI,SAAS;GACnBC,MAAML,KAAKK;GACX;;AAGF,QACC,qBAAC;EAAI,WAAWrC,WAAWC,6BAAOqC,WAAWtB,UAAU;EAASC;;GAC9DL,SACA,oBAAC;IAAa,SAAQ;IAAc,WAAWX,6BAAOW;cACpDA;KAEF;GAED,qBAAC;IAAI,KAAKU;IAAiB,WAAWrB,6BAAOsC;eAC3C5B,MAAM6B,KAAKC,MAAMC,UACjB,oBAAC;KAEA,OAAOD,KAAK7B;KACZ,UAAU6B,KAAKG;KACf,eAAe7B,eAAe0B,KAAK;KACnC,gBAAgB3B,eAAe2B,KAAK;KACpC,WAAWzC,WAAW,GACpBC,6BAAO4C,SAASH,SAASnB,cAC1B,CAAC;OAPGkB,KAAKE,GASX,CAAC,EACDhB,oBACA,oBAAC;KACA,KAAKP;KACL,OAAO,IAAI0B,OAAOpB,YAAY,CAAA,GAAIA,gBAAgB,IAAI,SAAS,QAAO;KACtE,SAASE;KACT,WAAW3B,6BAAO8C;MAEnB;KACG;GAEJlC,cACA,qBAAC;IAAS,QAAO;IAAO,YAAW;IAAW,SAAQ;IAAQ,MAAK;IAAQ,SAASA;eACnF,oBAAC,mBAAO,MAAK,UAAO;KAGrB;GAED,qBAAC,YAAY;IAAK,MAAMK;IAAY,cAAcC;eACjD,oBAAC,kBACA,oBAAC,YAAY,UAAK,GACH,EAChB,oBAAC,YAAY,oBACZ,oBAAC,YAAY;KAAQ,OAAOU;KAAa,WAAW5B,6BAAO+C;eAC1D,oBAAC;MAAI,WAAW/C,6BAAOgD;gBACrBtC,MACCuC,QAAQT,QAAMC,YAAUA,WAASnB,aAAa,CAC9CiB,KAAKC,WACL,oBAAC;OAAkB,WAAWxC,6BAAOkD;iBACpC,oBAAC;QACA,IAAI,QAAQV,OAAKE;QACjB,SAASF,OAAKG;QACd,uBAAuB7B,eAAe0B,OAAK;QAC3C,OAAOA,OAAK7B;SAAM;SALV6B,OAAKE,GAQf,CAAC;OACC;MACe,GACF;KACH;;GACb;;AAIR,4BAAelC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ds-chip-group/ds-chip-group.types.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated This interface is deprecated. Use `DsTagFilter` types instead.
|
|
7
|
+
* @see {@link ../ds-tag-filter} for the replacement types.
|
|
8
|
+
*/
|
|
4
9
|
interface ChipItem {
|
|
5
10
|
/**
|
|
6
11
|
* Unique identifier for the chip
|
|
@@ -19,6 +24,10 @@ interface ChipItem {
|
|
|
19
24
|
*/
|
|
20
25
|
selected?: boolean;
|
|
21
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated This interface is deprecated. Use `DsTagFilterProps` from `ds-tag-filter` instead.
|
|
29
|
+
* @see {@link ../ds-tag-filter/ds-tag-filter.types} for the replacement interface.
|
|
30
|
+
*/
|
|
22
31
|
interface DsChipGroupProps {
|
|
23
32
|
/**
|
|
24
33
|
* Array of chip items to display
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"ds-chip-group.types.d.cts","names":[],"sources":["../../../src/components/ds-chip-group/ds-chip-group.types.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;AAuBA;AAIQ,UA3BS,QAAA,CA2BT;EAae;;;EAYD,EAAA,EAAA,MAAA;;;;;;;;aAxCV;;;;;;;;;;UAWK,gBAAA;;;;SAIT;;;;;;;;;;;;;wBAae;;;;wBAIA;;;;;;;;UAQd"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ds-chip-group/ds-chip-group.types.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated This interface is deprecated. Use `DsTagFilter` types instead.
|
|
7
|
+
* @see {@link ../ds-tag-filter} for the replacement types.
|
|
8
|
+
*/
|
|
4
9
|
interface ChipItem {
|
|
5
10
|
/**
|
|
6
11
|
* Unique identifier for the chip
|
|
@@ -19,6 +24,10 @@ interface ChipItem {
|
|
|
19
24
|
*/
|
|
20
25
|
selected?: boolean;
|
|
21
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated This interface is deprecated. Use `DsTagFilterProps` from `ds-tag-filter` instead.
|
|
29
|
+
* @see {@link ../ds-tag-filter/ds-tag-filter.types} for the replacement interface.
|
|
30
|
+
*/
|
|
22
31
|
interface DsChipGroupProps {
|
|
23
32
|
/**
|
|
24
33
|
* Array of chip items to display
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"ds-chip-group.types.d.ts","names":[],"sources":["../../../src/components/ds-chip-group/ds-chip-group.types.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;AAuBA;AAIQ,UA3BS,QAAA,CA2BT;EAae;;;EAYD,EAAA,EAAA,MAAA;;;;;;;;aAxCV;;;;;;;;;;UAWK,gBAAA;;;;SAIT;;;;;;;;;;;;;wBAae;;;;wBAIA;;;;;;;;UAQd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DsConfirmationProps } from "./ds-confirmation.types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ds-confirmation/ds-confirmation.d.ts
|
|
@@ -13,7 +13,7 @@ declare const DsConfirmation: {
|
|
|
13
13
|
style,
|
|
14
14
|
className,
|
|
15
15
|
children
|
|
16
|
-
}: DsConfirmationProps):
|
|
16
|
+
}: DsConfirmationProps): react_jsx_runtime5.JSX.Element;
|
|
17
17
|
Header: ({
|
|
18
18
|
style,
|
|
19
19
|
className,
|
|
@@ -22,7 +22,7 @@ declare const DsConfirmation: {
|
|
|
22
22
|
style?: CSSProperties;
|
|
23
23
|
className?: string;
|
|
24
24
|
children: ReactNode;
|
|
25
|
-
}) =>
|
|
25
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
26
26
|
Title: ({
|
|
27
27
|
style,
|
|
28
28
|
className,
|
|
@@ -31,14 +31,14 @@ declare const DsConfirmation: {
|
|
|
31
31
|
style?: CSSProperties;
|
|
32
32
|
className?: string;
|
|
33
33
|
children: ReactNode;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
35
35
|
CloseTrigger: ({
|
|
36
36
|
style,
|
|
37
37
|
className
|
|
38
38
|
}: {
|
|
39
39
|
style?: CSSProperties;
|
|
40
40
|
className?: string;
|
|
41
|
-
}) =>
|
|
41
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
42
42
|
Body: ({
|
|
43
43
|
style,
|
|
44
44
|
className,
|
|
@@ -47,7 +47,7 @@ declare const DsConfirmation: {
|
|
|
47
47
|
style?: CSSProperties;
|
|
48
48
|
className?: string;
|
|
49
49
|
children: ReactNode;
|
|
50
|
-
}) =>
|
|
50
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
51
51
|
Footer: ({
|
|
52
52
|
style,
|
|
53
53
|
className,
|
|
@@ -56,7 +56,7 @@ declare const DsConfirmation: {
|
|
|
56
56
|
style?: CSSProperties;
|
|
57
57
|
className?: string;
|
|
58
58
|
children: ReactNode;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
60
60
|
Actions: ({
|
|
61
61
|
style,
|
|
62
62
|
className,
|
|
@@ -65,7 +65,7 @@ declare const DsConfirmation: {
|
|
|
65
65
|
style?: CSSProperties;
|
|
66
66
|
className?: string;
|
|
67
67
|
children: ReactNode;
|
|
68
|
-
}) =>
|
|
68
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
69
69
|
};
|
|
70
70
|
//#endregion
|
|
71
71
|
export { DsConfirmation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-confirmation.d.cts","names":[],"sources":["../../../src/components/ds-confirmation/ds-confirmation.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAYa,cAAA,cAyBZ,EAAA;;;;;;;KAzBkF,sBAAmB,
|
|
1
|
+
{"version":3,"file":"ds-confirmation.d.cts","names":[],"sources":["../../../src/components/ds-confirmation/ds-confirmation.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAYa,cAAA,cAyBZ,EAAA;;;;;;;KAzBkF,sBAAmB,kBAAA,CAAA,GAAA,CAAA;;;;;EAAnB;YAgC1E;;cAEE;EAlCwE,CAAA,EAAA,GAmClF,kBAAA,CAAA,GAAA,CAAA,OAnCkF;EAAmB,KAAA,EAAA,CAAA;IAAA,KAAA;IAAA,SAAA;IAAA;EAgC7F,CAhC6F,EAAA;YA8C7F;;cAEE;EAhBF,CAAA,EAAA,GAiBR,kBAAA,CAAA,GAAA,CAAA,OAjBQ;EAEE,YAAA,EAAA,CAAA;IAAA,KAAA;IAAA;GAAA,EAAA;IACV,KAAA,CAAA,EAoBqD,aApBrD;;QAoBwF,kBAAA,CAAA,GAAA,CAAA;;;;;;IAThF,KAAA,CAAA,EAoBA,aApBA;IAEE,SAAA,CAAA,EAAA,MAAA;IACV,QAAA,EAmBU,SAnBV;QAoBA,kBAAA,CAAA,GAAA,CAAA;;;;;;IAdqD,KAAA,CAAA,EAyB7C,aAzB6C;IAAmC,SAAA,CAAA,EAAA,MAAA;cA2B9E;QACV,kBAAA,CAAA,GAAA,CAAA;;;;;;IAjBQ,KAAA,CAAA,EA4BA,aA5BA;IAEE,SAAA,CAAA,EAAA,MAAA;IACV,QAAA,EA2BU,SA3BV;QA4BA,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DsConfirmationProps } from "./ds-confirmation.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ds-confirmation/ds-confirmation.d.ts
|
|
@@ -13,7 +13,7 @@ declare const DsConfirmation: {
|
|
|
13
13
|
style,
|
|
14
14
|
className,
|
|
15
15
|
children
|
|
16
|
-
}: DsConfirmationProps):
|
|
16
|
+
}: DsConfirmationProps): react_jsx_runtime41.JSX.Element;
|
|
17
17
|
Header: ({
|
|
18
18
|
style,
|
|
19
19
|
className,
|
|
@@ -22,7 +22,7 @@ declare const DsConfirmation: {
|
|
|
22
22
|
style?: CSSProperties;
|
|
23
23
|
className?: string;
|
|
24
24
|
children: ReactNode;
|
|
25
|
-
}) =>
|
|
25
|
+
}) => react_jsx_runtime41.JSX.Element;
|
|
26
26
|
Title: ({
|
|
27
27
|
style,
|
|
28
28
|
className,
|
|
@@ -31,14 +31,14 @@ declare const DsConfirmation: {
|
|
|
31
31
|
style?: CSSProperties;
|
|
32
32
|
className?: string;
|
|
33
33
|
children: ReactNode;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => react_jsx_runtime41.JSX.Element;
|
|
35
35
|
CloseTrigger: ({
|
|
36
36
|
style,
|
|
37
37
|
className
|
|
38
38
|
}: {
|
|
39
39
|
style?: CSSProperties;
|
|
40
40
|
className?: string;
|
|
41
|
-
}) =>
|
|
41
|
+
}) => react_jsx_runtime41.JSX.Element;
|
|
42
42
|
Body: ({
|
|
43
43
|
style,
|
|
44
44
|
className,
|
|
@@ -47,7 +47,7 @@ declare const DsConfirmation: {
|
|
|
47
47
|
style?: CSSProperties;
|
|
48
48
|
className?: string;
|
|
49
49
|
children: ReactNode;
|
|
50
|
-
}) =>
|
|
50
|
+
}) => react_jsx_runtime41.JSX.Element;
|
|
51
51
|
Footer: ({
|
|
52
52
|
style,
|
|
53
53
|
className,
|
|
@@ -56,7 +56,7 @@ declare const DsConfirmation: {
|
|
|
56
56
|
style?: CSSProperties;
|
|
57
57
|
className?: string;
|
|
58
58
|
children: ReactNode;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => react_jsx_runtime41.JSX.Element;
|
|
60
60
|
Actions: ({
|
|
61
61
|
style,
|
|
62
62
|
className,
|
|
@@ -65,7 +65,7 @@ declare const DsConfirmation: {
|
|
|
65
65
|
style?: CSSProperties;
|
|
66
66
|
className?: string;
|
|
67
67
|
children: ReactNode;
|
|
68
|
-
}) =>
|
|
68
|
+
}) => react_jsx_runtime41.JSX.Element;
|
|
69
69
|
};
|
|
70
70
|
//#endregion
|
|
71
71
|
export { DsConfirmation };
|
|
@@ -0,0 +1,352 @@
|
|
|
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_date_input_utils = require('./ds-date-input.utils.cjs');
|
|
7
|
+
const require_ds_date_input_module = require('./ds-date-input.module.cjs');
|
|
8
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
9
|
+
let classnames = require("classnames");
|
|
10
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
11
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
+
let react = require("react");
|
|
13
|
+
let __ark_ui_react_portal = require("@ark-ui/react/portal");
|
|
14
|
+
let __ark_ui_react_date_picker = require("@ark-ui/react/date-picker");
|
|
15
|
+
|
|
16
|
+
//#region src/components/ds-date-input/ds-date-input.tsx
|
|
17
|
+
/**
|
|
18
|
+
* Design system date input component with integrated calendar picker.
|
|
19
|
+
*
|
|
20
|
+
* Supports both single date and date range selection with a single text input field.
|
|
21
|
+
* Features built-in validation, manual text entry, and calendar selection.
|
|
22
|
+
*/
|
|
23
|
+
const DsDateInput = ({ range = false, placeholder, style, className, disablePortal = false, onValueChange, onOpenChange, value: _value, defaultValue: _defaultValue, min: _min, max: _max, disabled, readOnly, id, ...datePickerProps }) => {
|
|
24
|
+
const min = _min ? require_ds_date_input_utils.isoStringToDateValue(_min) : void 0;
|
|
25
|
+
const max = _max ? require_ds_date_input_utils.isoStringToDateValue(_max) : void 0;
|
|
26
|
+
const value = _value ? require_ds_date_input_utils.stringToDateValue(_value) : [];
|
|
27
|
+
const defaultValue = _defaultValue ? require_ds_date_input_utils.stringToDateValue(_defaultValue) : [];
|
|
28
|
+
const [isFocused, setIsFocused] = (0, react.useState)(false);
|
|
29
|
+
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
30
|
+
const prevValue = (0, react.useRef)(null);
|
|
31
|
+
const inputRef = (0, react.useRef)(null);
|
|
32
|
+
if (!isFocused && prevValue.current !== JSON.stringify(value)) {
|
|
33
|
+
prevValue.current = JSON.stringify(value);
|
|
34
|
+
if (inputRef.current) inputRef.current.value = require_ds_date_input_utils.formatDateInputValue(value, range);
|
|
35
|
+
}
|
|
36
|
+
const clear = () => {
|
|
37
|
+
if (inputRef.current) inputRef.current.value = "";
|
|
38
|
+
onValueChange?.(void 0);
|
|
39
|
+
};
|
|
40
|
+
const handleInputChange = (e) => {
|
|
41
|
+
const text = e.target.value;
|
|
42
|
+
if (require_ds_date_input_utils.validateDateString({
|
|
43
|
+
text,
|
|
44
|
+
range,
|
|
45
|
+
min,
|
|
46
|
+
max
|
|
47
|
+
}).isValid) {
|
|
48
|
+
const parsedValue = require_ds_date_input_utils.parseInputText(text, range);
|
|
49
|
+
onValueChange?.(require_ds_date_input_utils.dateValuesToStrings(parsedValue, range));
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const handleBlur = () => {
|
|
53
|
+
setIsFocused(false);
|
|
54
|
+
const text_0 = inputRef.current?.value || "";
|
|
55
|
+
if (!require_ds_date_input_utils.validateDateString({
|
|
56
|
+
text: text_0,
|
|
57
|
+
range,
|
|
58
|
+
min,
|
|
59
|
+
max
|
|
60
|
+
}).isValid) {
|
|
61
|
+
clear();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const parsedValue_0 = require_ds_date_input_utils.parseInputText(text_0, range);
|
|
65
|
+
onValueChange?.(require_ds_date_input_utils.dateValuesToStrings(parsedValue_0, range));
|
|
66
|
+
};
|
|
67
|
+
const showClearButton = !disabled && !readOnly && !!(value.length > 0 ? value : defaultValue).length;
|
|
68
|
+
const Wrapper = disablePortal ? react.Fragment : __ark_ui_react_portal.Portal;
|
|
69
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_date_picker.DatePicker.Root, {
|
|
70
|
+
value,
|
|
71
|
+
defaultValue,
|
|
72
|
+
onValueChange: (details) => {
|
|
73
|
+
onValueChange?.(require_ds_date_input_utils.dateValuesToStrings(details.value, range));
|
|
74
|
+
},
|
|
75
|
+
selectionMode: range ? "range" : "single",
|
|
76
|
+
positioning: {
|
|
77
|
+
placement: "bottom-start",
|
|
78
|
+
gutter: 4
|
|
79
|
+
},
|
|
80
|
+
closeOnSelect: !range,
|
|
81
|
+
min,
|
|
82
|
+
max,
|
|
83
|
+
disabled,
|
|
84
|
+
readOnly,
|
|
85
|
+
open: isOpen,
|
|
86
|
+
onOpenChange: (details_0) => {
|
|
87
|
+
if (!isFocused) {
|
|
88
|
+
setIsOpen(details_0.open);
|
|
89
|
+
onOpenChange?.(details_0.open);
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
...datePickerProps,
|
|
93
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_date_picker.DatePicker.Control, {
|
|
94
|
+
style,
|
|
95
|
+
className: (0, classnames.default)(require_ds_date_input_module.default.dateInputControl, disabled && require_ds_date_input_module.default.disabled, readOnly && require_ds_date_input_module.default.readOnly, className),
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.Trigger, {
|
|
98
|
+
asChild: true,
|
|
99
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
100
|
+
type: "button",
|
|
101
|
+
className: require_ds_date_input_module.default.dateInputButton,
|
|
102
|
+
disabled,
|
|
103
|
+
"aria-label": "Open calendar",
|
|
104
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
105
|
+
icon: "calendar_month",
|
|
106
|
+
size: "small"
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
111
|
+
ref: inputRef,
|
|
112
|
+
id,
|
|
113
|
+
type: "text",
|
|
114
|
+
className: require_ds_date_input_module.default.input,
|
|
115
|
+
placeholder: placeholder ?? (range ? "MM/DD/YYYY - MM/DD/YYYY" : "MM/DD/YYYY"),
|
|
116
|
+
defaultValue: require_ds_date_input_utils.formatDateInputValue(value.length > 0 ? value : defaultValue, range),
|
|
117
|
+
onChange: handleInputChange,
|
|
118
|
+
onBlur: handleBlur,
|
|
119
|
+
onFocus: () => setIsFocused(true),
|
|
120
|
+
disabled,
|
|
121
|
+
readOnly
|
|
122
|
+
}),
|
|
123
|
+
showClearButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
124
|
+
type: "button",
|
|
125
|
+
className: require_ds_date_input_module.default.dateInputButton,
|
|
126
|
+
onClick: clear,
|
|
127
|
+
"aria-label": range ? "Clear date range" : "Clear date",
|
|
128
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
129
|
+
icon: "close",
|
|
130
|
+
size: "small"
|
|
131
|
+
})
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Wrapper, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.Positioner, {
|
|
135
|
+
className: require_ds_date_input_module.default.positioner,
|
|
136
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_date_picker.DatePicker.Content, {
|
|
137
|
+
className: require_ds_date_input_module.default.content,
|
|
138
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarViewControl, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
139
|
+
className: require_ds_date_input_module.default.calendarView,
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DayView, {}),
|
|
142
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MonthView, {}),
|
|
143
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(YearView, {})
|
|
144
|
+
]
|
|
145
|
+
})]
|
|
146
|
+
})
|
|
147
|
+
}) })]
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Calendar view control with navigation buttons
|
|
152
|
+
*/
|
|
153
|
+
const CalendarViewControl = () => {
|
|
154
|
+
const $ = (0, react_compiler_runtime.c)(3);
|
|
155
|
+
let t0;
|
|
156
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
157
|
+
t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.PrevTrigger, {
|
|
158
|
+
className: require_ds_date_input_module.default.prevTrigger,
|
|
159
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
160
|
+
icon: "chevron_left",
|
|
161
|
+
size: "small"
|
|
162
|
+
})
|
|
163
|
+
});
|
|
164
|
+
$[0] = t0;
|
|
165
|
+
} else t0 = $[0];
|
|
166
|
+
let t1;
|
|
167
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
168
|
+
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.ViewTrigger, {
|
|
169
|
+
className: require_ds_date_input_module.default.viewTrigger,
|
|
170
|
+
asChild: true,
|
|
171
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
172
|
+
type: "button",
|
|
173
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
174
|
+
variant: "body-md-md",
|
|
175
|
+
asChild: true,
|
|
176
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.RangeText, {})
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
$[1] = t1;
|
|
181
|
+
} else t1 = $[1];
|
|
182
|
+
let t2;
|
|
183
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
184
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_date_picker.DatePicker.ViewControl, {
|
|
185
|
+
className: require_ds_date_input_module.default.viewControl,
|
|
186
|
+
children: [
|
|
187
|
+
t0,
|
|
188
|
+
t1,
|
|
189
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.NextTrigger, {
|
|
190
|
+
className: require_ds_date_input_module.default.nextTrigger,
|
|
191
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
192
|
+
icon: "chevron_right",
|
|
193
|
+
size: "small"
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
});
|
|
198
|
+
$[2] = t2;
|
|
199
|
+
} else t2 = $[2];
|
|
200
|
+
return t2;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Day view - displays calendar grid with days of the month
|
|
204
|
+
*/
|
|
205
|
+
const DayView = () => {
|
|
206
|
+
const $ = (0, react_compiler_runtime.c)(1);
|
|
207
|
+
let t0;
|
|
208
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
209
|
+
t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.View, {
|
|
210
|
+
view: "day",
|
|
211
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.Context, { children: _temp4 })
|
|
212
|
+
});
|
|
213
|
+
$[0] = t0;
|
|
214
|
+
} else t0 = $[0];
|
|
215
|
+
return t0;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Month view - displays grid with months of the year
|
|
219
|
+
*/
|
|
220
|
+
const MonthView = () => {
|
|
221
|
+
const $ = (0, react_compiler_runtime.c)(1);
|
|
222
|
+
let t0;
|
|
223
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
224
|
+
t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.View, {
|
|
225
|
+
view: "month",
|
|
226
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.Context, { children: _temp7 })
|
|
227
|
+
});
|
|
228
|
+
$[0] = t0;
|
|
229
|
+
} else t0 = $[0];
|
|
230
|
+
return t0;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Year view - displays grid with years in a decade
|
|
234
|
+
*/
|
|
235
|
+
const YearView = () => {
|
|
236
|
+
const $ = (0, react_compiler_runtime.c)(1);
|
|
237
|
+
let t0;
|
|
238
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
239
|
+
t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.View, {
|
|
240
|
+
view: "year",
|
|
241
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.Context, { children: _temp0 })
|
|
242
|
+
});
|
|
243
|
+
$[0] = t0;
|
|
244
|
+
} else t0 = $[0];
|
|
245
|
+
return t0;
|
|
246
|
+
};
|
|
247
|
+
var ds_date_input_default = DsDateInput;
|
|
248
|
+
function _temp(weekDay, id) {
|
|
249
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableHeader, {
|
|
250
|
+
className: require_ds_date_input_module.default.tableHeader,
|
|
251
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
252
|
+
variant: "body-md-md",
|
|
253
|
+
children: weekDay.short
|
|
254
|
+
})
|
|
255
|
+
}, id);
|
|
256
|
+
}
|
|
257
|
+
function _temp2(day, dayId) {
|
|
258
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableCell, {
|
|
259
|
+
value: day,
|
|
260
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableCellTrigger, {
|
|
261
|
+
className: require_ds_date_input_module.default.tableCellTrigger,
|
|
262
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
263
|
+
className: require_ds_date_input_module.default.tableCellTriggerValue,
|
|
264
|
+
variant: "body-md-md",
|
|
265
|
+
children: day.day
|
|
266
|
+
})
|
|
267
|
+
})
|
|
268
|
+
}, dayId);
|
|
269
|
+
}
|
|
270
|
+
function _temp3(week, weekId) {
|
|
271
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableRow, {
|
|
272
|
+
className: require_ds_date_input_module.default.tableRow,
|
|
273
|
+
children: week.map(_temp2)
|
|
274
|
+
}, weekId);
|
|
275
|
+
}
|
|
276
|
+
function _temp4(datePicker) {
|
|
277
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_date_picker.DatePicker.Table, {
|
|
278
|
+
className: require_ds_date_input_module.default.table,
|
|
279
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableHead, {
|
|
280
|
+
className: require_ds_date_input_module.default.tableHead,
|
|
281
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableRow, {
|
|
282
|
+
className: require_ds_date_input_module.default.tableRow,
|
|
283
|
+
children: datePicker.weekDays.map(_temp)
|
|
284
|
+
})
|
|
285
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableBody, {
|
|
286
|
+
className: require_ds_date_input_module.default.tableBody,
|
|
287
|
+
children: datePicker.weeks.map(_temp3)
|
|
288
|
+
})]
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
function _temp5(month, monthId) {
|
|
292
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableCell, {
|
|
293
|
+
value: month.value,
|
|
294
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableCellTrigger, {
|
|
295
|
+
className: require_ds_date_input_module.default.tableCellTrigger,
|
|
296
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
297
|
+
className: require_ds_date_input_module.default.tableCellTriggerValue,
|
|
298
|
+
variant: "body-md-md",
|
|
299
|
+
children: month.label
|
|
300
|
+
})
|
|
301
|
+
})
|
|
302
|
+
}, monthId);
|
|
303
|
+
}
|
|
304
|
+
function _temp6(months, rowId) {
|
|
305
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableRow, {
|
|
306
|
+
className: require_ds_date_input_module.default.tableRow,
|
|
307
|
+
children: months.map(_temp5)
|
|
308
|
+
}, rowId);
|
|
309
|
+
}
|
|
310
|
+
function _temp7(datePicker) {
|
|
311
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.Table, {
|
|
312
|
+
className: require_ds_date_input_module.default.table,
|
|
313
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableBody, {
|
|
314
|
+
className: require_ds_date_input_module.default.tableBody,
|
|
315
|
+
children: datePicker.getMonthsGrid({
|
|
316
|
+
columns: 4,
|
|
317
|
+
format: "short"
|
|
318
|
+
}).map(_temp6)
|
|
319
|
+
})
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function _temp8(year, yearId) {
|
|
323
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableCell, {
|
|
324
|
+
value: year.value,
|
|
325
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableCellTrigger, {
|
|
326
|
+
className: require_ds_date_input_module.default.tableCellTrigger,
|
|
327
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
328
|
+
className: require_ds_date_input_module.default.tableCellTriggerValue,
|
|
329
|
+
variant: "body-md-md",
|
|
330
|
+
children: year.label
|
|
331
|
+
})
|
|
332
|
+
})
|
|
333
|
+
}, yearId);
|
|
334
|
+
}
|
|
335
|
+
function _temp9(years, rowId) {
|
|
336
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableRow, {
|
|
337
|
+
className: require_ds_date_input_module.default.tableRow,
|
|
338
|
+
children: years.map(_temp8)
|
|
339
|
+
}, rowId);
|
|
340
|
+
}
|
|
341
|
+
function _temp0(datePicker) {
|
|
342
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.Table, {
|
|
343
|
+
className: require_ds_date_input_module.default.table,
|
|
344
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_date_picker.DatePicker.TableBody, {
|
|
345
|
+
className: require_ds_date_input_module.default.tableBody,
|
|
346
|
+
children: datePicker.getYearsGrid({ columns: 4 }).map(_temp9)
|
|
347
|
+
})
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
//#endregion
|
|
352
|
+
exports.default = ds_date_input_default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DsDateInputProps } from "./ds-date-input.types.cjs";
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-date-input/ds-date-input.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Design system date input component with integrated calendar picker.
|
|
8
|
+
*
|
|
9
|
+
* Supports both single date and date range selection with a single text input field.
|
|
10
|
+
* Features built-in validation, manual text entry, and calendar selection.
|
|
11
|
+
*/
|
|
12
|
+
declare const DsDateInput: ({
|
|
13
|
+
range,
|
|
14
|
+
placeholder,
|
|
15
|
+
style,
|
|
16
|
+
className,
|
|
17
|
+
disablePortal,
|
|
18
|
+
onValueChange,
|
|
19
|
+
onOpenChange,
|
|
20
|
+
value: _value,
|
|
21
|
+
defaultValue: _defaultValue,
|
|
22
|
+
min: _min,
|
|
23
|
+
max: _max,
|
|
24
|
+
disabled,
|
|
25
|
+
readOnly,
|
|
26
|
+
id,
|
|
27
|
+
...datePickerProps
|
|
28
|
+
}: DsDateInputProps) => react_jsx_runtime4.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { DsDateInput };
|
|
31
|
+
//# sourceMappingURL=ds-date-input.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-date-input.d.cts","names":[],"sources":["../../../src/components/ds-date-input/ds-date-input.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAI8D;;;cAmBxD,WAAe,EAAA,CAAA;EAAA,KAAA;EAAA,WAAA;EAAA,KAAA;EAAA,SAAA;EAAA,aAAA;EAAA,aAAA;EAAA,YAAA;EAAA,KAAA,EAAA,MAAA;EAAA,YAAA,EAAA,aAAA;EAAA,GAAA,EAAA,IAAA;EAAA,GAAA,EAAA,IAAA;EAAA,QAAA;EAAA,QAAA;EAAA,EAAA;EAAA,GAAA;AAAA,CAAA,EAgBlB,gBAhBkB,EAAA,GAgBF,kBAAA,CAAA,GAAA,CAAA,OAhBE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DsDateInputProps } from "./ds-date-input.types.js";
|
|
2
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-date-input/ds-date-input.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Design system date input component with integrated calendar picker.
|
|
8
|
+
*
|
|
9
|
+
* Supports both single date and date range selection with a single text input field.
|
|
10
|
+
* Features built-in validation, manual text entry, and calendar selection.
|
|
11
|
+
*/
|
|
12
|
+
declare const DsDateInput: ({
|
|
13
|
+
range,
|
|
14
|
+
placeholder,
|
|
15
|
+
style,
|
|
16
|
+
className,
|
|
17
|
+
disablePortal,
|
|
18
|
+
onValueChange,
|
|
19
|
+
onOpenChange,
|
|
20
|
+
value: _value,
|
|
21
|
+
defaultValue: _defaultValue,
|
|
22
|
+
min: _min,
|
|
23
|
+
max: _max,
|
|
24
|
+
disabled,
|
|
25
|
+
readOnly,
|
|
26
|
+
id,
|
|
27
|
+
...datePickerProps
|
|
28
|
+
}: DsDateInputProps) => react_jsx_runtime48.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { DsDateInput };
|
|
31
|
+
//# sourceMappingURL=ds-date-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-date-input.d.ts","names":[],"sources":["../../../src/components/ds-date-input/ds-date-input.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAI8D;;;cAmBxD,WAAe,EAAA,CAAA;EAAA,KAAA;EAAA,WAAA;EAAA,KAAA;EAAA,SAAA;EAAA,aAAA;EAAA,aAAA;EAAA,YAAA;EAAA,KAAA,EAAA,MAAA;EAAA,YAAA,EAAA,aAAA;EAAA,GAAA,EAAA,IAAA;EAAA,GAAA,EAAA,IAAA;EAAA,QAAA;EAAA,QAAA;EAAA,EAAA;EAAA,GAAA;AAAA,CAAA,EAgBlB,gBAhBkB,EAAA,GAgBF,mBAAA,CAAA,GAAA,CAAA,OAhBE"}
|