@sellmate/design-system 1.29.0 → 1.32.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/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-iiJZMzVM.js → index-Cg7X15Hq.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-calendar_2.cjs.entry.js +8 -9
- package/dist/cjs/sd-callout.cjs.entry.js +2 -2
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/sd-chip-input.cjs.entry.js +22 -17
- package/dist/cjs/sd-chip.cjs.entry.js +7 -7
- package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{component.datepicker-zFTQQKMH.js → sd-date-picker.config-CgyNxY03.js} +66 -1
- package/dist/cjs/sd-date-picker_8.cjs.entry.js +141 -51
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +162 -12
- package/dist/cjs/sd-divider.cjs.entry.js +3 -3
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-field_3.cjs.entry.js +51 -52
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +14 -10
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-key-value-table.cjs.entry.js +2 -2
- package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination.cjs.entry.js +4 -4
- package/dist/cjs/sd-popover.cjs.entry.js +134 -44
- package/dist/cjs/sd-popup.cjs.entry.js +4 -4
- package/dist/cjs/sd-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio.cjs.entry.js +4 -2
- package/dist/cjs/sd-scroll-area.cjs.entry.js +44 -0
- package/dist/cjs/sd-select-list-item_4.cjs.entry.js +12 -12
- package/dist/cjs/sd-stepper.cjs.entry.js +190 -0
- package/dist/cjs/sd-switch.cjs.entry.js +13 -3
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
- package/dist/cjs/sd-time-picker-selector.cjs.entry.js +179 -0
- package/dist/cjs/sd-time-picker-trigger.cjs.entry.js +75 -0
- package/dist/cjs/sd-time-picker.cjs.entry.js +173 -0
- package/dist/cjs/sd-time-picker.config-C7REB08L.js +156 -0
- package/dist/cjs/sd-time-range-picker-selector.cjs.entry.js +219 -0
- package/dist/cjs/sd-time-range-picker.cjs.entry.js +204 -0
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-B4KkVpu2.js → system-BGCBFBcM.js} +3 -1
- package/dist/cjs/{tooltipArrow-DOOcBlLp.js → tooltipArrow-CZff77W-.js} +1 -1
- package/dist/cjs/useDatePicker-j06ymWZ_.js +103 -0
- package/dist/collection/collection-manifest.json +10 -3
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.js +2 -2
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +8 -8
- package/dist/collection/components/sd-chip/sd-chip.js +8 -8
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +3 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +43 -17
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +23 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.css +75 -0
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +152 -6
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.config.js +27 -0
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +59 -3
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-field/sd-field.css +4 -0
- package/dist/collection/components/sd-field/sd-field.js +58 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +17 -10
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +46 -16
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +27 -3
- package/dist/collection/components/sd-input/sd-input.js +4 -4
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +58 -7
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.config.js +41 -0
- package/dist/collection/components/sd-popover/sd-popover.js +189 -191
- package/dist/collection/components/sd-popup/sd-popup.css +40 -0
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +25 -4
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -6
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +7 -7
- package/dist/collection/components/sd-scroll-area/sd-scroll-area.config.js +8 -0
- package/dist/collection/components/sd-scroll-area/sd-scroll-area.css +61 -0
- package/dist/collection/components/sd-scroll-area/sd-scroll-area.js +151 -0
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.css +33 -9
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-stepper/sd-stepper.config.js +35 -0
- package/dist/collection/components/sd-stepper/sd-stepper.css +50 -0
- package/dist/collection/components/sd-stepper/sd-stepper.js +186 -0
- package/dist/collection/components/sd-switch/sd-switch.js +54 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +7 -8
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.css +87 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.js +266 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.css +38 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.js +216 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.config.js +78 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.css +12 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.js +761 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.css +102 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.js +338 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.config.js +23 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.css +12 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.js +809 -0
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +36 -189
- package/dist/components/index.js +1 -1
- package/dist/components/p--BJuy06e.js +1 -0
- package/dist/components/p-22hyxPno.js +1 -0
- package/dist/components/p-7lGaExLM.js +1 -0
- package/dist/components/{p-oYbVr-z0.js → p-B6BgOB_-.js} +1 -1
- package/dist/components/{p-R-Sdglj0.js → p-BBAwMOGx.js} +1 -1
- package/dist/components/{p-CbS69IvC.js → p-BDULNyBw.js} +1 -1
- package/dist/components/p-BI1iKxNN.js +1 -0
- package/dist/components/{p-Bpv90tfa.js → p-BPzs63D8.js} +1 -1
- package/dist/components/{p-DMoFncVl.js → p-BU1DclrU.js} +1 -1
- package/dist/components/{p-OO7xxhkC.js → p-BhLF3gGb.js} +1 -1
- package/dist/components/p-Bk6mL1Ml.js +1 -0
- package/dist/components/p-BkyM9ded.js +1 -0
- package/dist/components/{p-CFTyEfB9.js → p-BoJ_gLp7.js} +1 -1
- package/dist/components/{p-Di1q4f5E.js → p-BpTKv3vN.js} +1 -1
- package/dist/components/p-C0IFrSzM.js +1 -0
- package/dist/components/p-C1KeTx0Z.js +1 -0
- package/dist/components/p-C8x8VEb8.js +1 -0
- package/dist/components/p-CBx8KWmu.js +1 -0
- package/dist/components/p-CNNjhHTA.js +1 -0
- package/dist/components/{p-CErFctrV.js → p-CRDS2TOy.js} +1 -1
- package/dist/components/p-CdeywvU6.js +1 -0
- package/dist/components/{p-BOxGhKKP.js → p-CghFB91T.js} +1 -1
- package/dist/components/p-CikPzSw-.js +1 -0
- package/dist/components/{p-9Ap2W-Mi.js → p-D0IDp-M3.js} +1 -1
- package/dist/components/p-D2oNz1s-.js +1 -0
- package/dist/components/p-DApl37Qw.js +1 -0
- package/dist/components/{p-BIEPMPWA.js → p-DGAzuK5C.js} +1 -1
- package/dist/components/p-DMm_GeZC.js +1 -0
- package/dist/components/{p-C_in6AVN.js → p-DONA7SlO.js} +1 -1
- package/dist/components/{p-C7mC7a1z.js → p-DVdDYnTl.js} +1 -1
- package/dist/components/{p-Dg1UrMqI.js → p-DdYWQ4Z5.js} +1 -1
- package/dist/components/p-DtadjLky.js +1 -0
- package/dist/components/p-DvlLDBO7.js +1 -0
- package/dist/components/p-ETWwVYq6.js +1 -0
- package/dist/components/{p-idG6CMO0.js → p-ISXxxDfX.js} +1 -1
- package/dist/components/p-UFNg7rhE.js +1 -0
- package/dist/{design-system/p-B91K50wC.js → components/p-bXzpfkfN.js} +1 -1
- package/dist/components/{p-BHjezpAC.js → p-irA7XFIS.js} +1 -1
- package/dist/components/{p-Bth2l1cy.js → p-rayWyWtG.js} +1 -1
- package/dist/components/{p-CSr33M9s.js → p-sLMSwbXi.js} +1 -1
- package/dist/components/p-vj3gimgB.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip-input.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-scroll-area.d.ts +11 -0
- package/dist/components/sd-scroll-area.js +1 -0
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-stepper.d.ts +11 -0
- package/dist/components/sd-stepper.js +1 -0
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-time-picker-selector.d.ts +11 -0
- package/dist/components/sd-time-picker-selector.js +1 -0
- package/dist/components/sd-time-picker-trigger.d.ts +11 -0
- package/dist/components/sd-time-picker-trigger.js +1 -0
- package/dist/components/sd-time-picker.d.ts +11 -0
- package/dist/components/sd-time-picker.js +1 -0
- package/dist/components/sd-time-range-picker-selector.d.ts +11 -0
- package/dist/components/sd-time-range-picker-selector.js +1 -0
- package/dist/components/sd-time-range-picker.d.ts +11 -0
- package/dist/components/sd-time-range-picker.js +1 -0
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-840006b1.entry.js → p-0cdd05eb.entry.js} +1 -1
- package/dist/design-system/p-1c4ba7ae.entry.js +1 -0
- package/dist/design-system/{p-c7d2c195.entry.js → p-2a36028d.entry.js} +1 -1
- package/dist/design-system/{p-be54fd3a.entry.js → p-2e76157e.entry.js} +1 -1
- package/dist/design-system/p-336cb0c1.entry.js +1 -0
- package/dist/design-system/{p-26a27312.entry.js → p-34e8dda6.entry.js} +1 -1
- package/dist/design-system/p-370b820e.entry.js +1 -0
- package/dist/design-system/{p-c5cffcc6.entry.js → p-39db3098.entry.js} +1 -1
- package/dist/design-system/p-3a2be559.entry.js +1 -0
- package/dist/design-system/p-405cb160.entry.js +1 -0
- package/dist/design-system/{p-246aafb9.entry.js → p-456479cc.entry.js} +1 -1
- package/dist/design-system/{p-86329ae3.entry.js → p-4d845113.entry.js} +1 -1
- package/dist/design-system/p-5761352f.entry.js +1 -0
- package/dist/design-system/{p-3cd2751a.entry.js → p-5b725381.entry.js} +1 -1
- package/dist/design-system/p-5d7820f7.entry.js +1 -0
- package/dist/design-system/p-5dd631fe.entry.js +1 -0
- package/dist/design-system/p-66e3fba3.entry.js +1 -0
- package/dist/design-system/{p-c1066f40.entry.js → p-6a5540d8.entry.js} +1 -1
- package/dist/design-system/{p-55c0be7d.entry.js → p-703bb49a.entry.js} +1 -1
- package/dist/design-system/{p-0c1d1a15.entry.js → p-71e7031e.entry.js} +1 -1
- package/dist/design-system/p-7837f8f8.entry.js +1 -0
- package/dist/design-system/{p-5a257ed9.entry.js → p-814ae5f1.entry.js} +1 -1
- package/dist/design-system/p-8804e3f3.entry.js +1 -0
- package/dist/design-system/p-8ea038d7.entry.js +1 -0
- package/dist/design-system/{p-b585f94b.entry.js → p-937a30af.entry.js} +1 -1
- package/dist/design-system/{p-1ed1bfa1.entry.js → p-94d4c093.entry.js} +1 -1
- package/dist/design-system/p-97a059b0.entry.js +1 -0
- package/dist/design-system/{p-53fe2741.entry.js → p-9afada52.entry.js} +1 -1
- package/dist/design-system/{p-d2ce01ac.entry.js → p-9df0dd32.entry.js} +1 -1
- package/dist/design-system/{p-BPKiBSGr.js → p-BnUjeY2n.js} +1 -1
- package/dist/design-system/p-CHijmX_D.js +1 -0
- package/dist/design-system/p-CdvQqvIe.js +2 -0
- package/dist/design-system/p-DMm_GeZC.js +1 -0
- package/dist/design-system/p-Dz23PPdF.js +1 -0
- package/dist/design-system/{p-3595cafb.entry.js → p-a05f4888.entry.js} +1 -1
- package/dist/design-system/p-a81e4ae0.entry.js +1 -0
- package/dist/design-system/p-aaa551fa.entry.js +1 -0
- package/dist/design-system/p-adc218f5.entry.js +1 -0
- package/dist/design-system/{p-8ed1d470.entry.js → p-b7e913e7.entry.js} +1 -1
- package/dist/design-system/p-b90eaebd.entry.js +1 -0
- package/dist/design-system/{p-d9f33192.entry.js → p-c5263a22.entry.js} +1 -1
- package/dist/design-system/{p-ec4ad48c.entry.js → p-c5eea64c.entry.js} +1 -1
- package/dist/design-system/{p-02f0b906.entry.js → p-c906d22d.entry.js} +1 -1
- package/dist/design-system/{p-d204cac5.entry.js → p-defe65db.entry.js} +1 -1
- package/dist/design-system/{p-4c85f6f6.entry.js → p-e16725f7.entry.js} +1 -1
- package/dist/design-system/p-e4096b72.entry.js +1 -0
- package/dist/design-system/{p-8de3b502.entry.js → p-e72706ea.entry.js} +1 -1
- package/dist/design-system/p-fb01f963.entry.js +1 -0
- package/dist/design-system/{p-adf2f398.entry.js → p-fc9577d9.entry.js} +1 -1
- package/dist/design-system/{p-Bth2l1cy.js → p-rayWyWtG.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-Dz490Ukt.js → index-CdvQqvIe.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +2 -2
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -2
- package/dist/esm/sd-button_2.entry.js +3 -3
- package/dist/esm/sd-calendar_2.entry.js +8 -9
- package/dist/esm/sd-callout.entry.js +2 -2
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +5 -5
- package/dist/esm/sd-chip-input.entry.js +22 -17
- package/dist/esm/sd-chip.entry.js +7 -7
- package/dist/esm/sd-circle-progress.entry.js +3 -3
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{component.datepicker-BOxGhKKP.js → sd-date-picker.config-CdXJcOGr.js} +65 -2
- package/dist/esm/sd-date-picker_8.entry.js +141 -51
- package/dist/esm/sd-date-range-picker-calendar.entry.js +158 -8
- package/dist/esm/sd-divider.entry.js +3 -3
- package/dist/esm/sd-dropdown-button.entry.js +2 -2
- package/dist/esm/sd-field_3.entry.js +51 -52
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +14 -10
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-key-value-table.entry.js +2 -2
- package/dist/esm/sd-linear-progress.entry.js +3 -3
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination.entry.js +4 -4
- package/dist/esm/sd-popover.entry.js +134 -44
- package/dist/esm/sd-popup.entry.js +4 -4
- package/dist/esm/sd-radio-button.entry.js +3 -3
- package/dist/esm/sd-radio.entry.js +4 -2
- package/dist/esm/sd-scroll-area.entry.js +42 -0
- package/dist/esm/sd-select-list-item_4.entry.js +12 -12
- package/dist/esm/sd-stepper.entry.js +188 -0
- package/dist/esm/sd-switch.entry.js +13 -3
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +4 -4
- package/dist/esm/sd-time-picker-selector.entry.js +177 -0
- package/dist/esm/sd-time-picker-trigger.entry.js +73 -0
- package/dist/esm/sd-time-picker.config-DUq29Nhs.js +148 -0
- package/dist/esm/sd-time-picker.entry.js +171 -0
- package/dist/esm/sd-time-range-picker-selector.entry.js +217 -0
- package/dist/esm/sd-time-range-picker.entry.js +202 -0
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-Bth2l1cy.js → system-rayWyWtG.js} +3 -1
- package/dist/esm/{tooltipArrow-CEHVt90h.js → tooltipArrow-BsQ__AbZ.js} +1 -1
- package/dist/esm/{useDatePicker-BG0lUGJG.js → useDatePicker-DQ5Kyy_D.js} +1 -1
- package/dist/types/components/sd-checkbox/sd-checkbox.d.ts +2 -2
- package/dist/types/components/sd-chip/sd-chip.d.ts +3 -3
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +4 -2
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +2 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.d.ts +20 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.config.d.ts +25 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +9 -0
- package/dist/types/components/sd-field/sd-field.d.ts +7 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +28 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +3 -1
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +5 -0
- package/dist/types/components/sd-input/sd-input.d.ts +1 -1
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +8 -0
- package/dist/types/components/sd-popover/sd-popover.config.d.ts +22 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +29 -36
- package/dist/types/components/sd-radio/sd-radio.d.ts +3 -1
- package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +2 -2
- package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +2 -2
- package/dist/types/components/sd-scroll-area/sd-scroll-area.config.d.ts +5 -0
- package/dist/types/components/sd-scroll-area/sd-scroll-area.d.ts +14 -0
- package/dist/types/components/sd-stepper/sd-stepper.config.d.ts +43 -0
- package/dist/types/components/sd-stepper/sd-stepper.d.ts +18 -0
- package/dist/types/components/sd-switch/sd-switch.d.ts +8 -1
- package/dist/types/components/sd-tag/sd-tag.d.ts +2 -2
- package/dist/types/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.d.ts +35 -0
- package/dist/types/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.d.ts +21 -0
- package/dist/types/components/sd-time-picker/sd-time-picker.config.d.ts +71 -0
- package/dist/types/components/sd-time-picker/sd-time-picker.d.ts +84 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.d.ts +40 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker.config.d.ts +9 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker.d.ts +88 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +7 -22
- package/dist/types/components.d.ts +2630 -1611
- package/hydrate/index.js +2163 -436
- package/hydrate/index.mjs +2163 -436
- package/package.json +1 -1
- package/dist/cjs/sd-date-picker.config-Chrd8c4v.js +0 -41
- package/dist/cjs/useDatePicker-CgpIfwLA.js +0 -103
- package/dist/components/p-BFVfSW9t.js +0 -1
- package/dist/components/p-BKu0I6Io.js +0 -1
- package/dist/components/p-B_Zwr4Et.js +0 -1
- package/dist/components/p-CBoDoYDO.js +0 -1
- package/dist/components/p-CYMMLsGt.js +0 -1
- package/dist/components/p-C_SG4M4z.js +0 -1
- package/dist/components/p-CgSXYw_0.js +0 -1
- package/dist/components/p-CmRF12Fy.js +0 -1
- package/dist/components/p-CnRfET5y.js +0 -1
- package/dist/components/p-Cvsrc0be.js +0 -1
- package/dist/components/p-DJ8z7_EG.js +0 -1
- package/dist/components/p-DJmxpVkK.js +0 -1
- package/dist/components/p-DN7MAx-q.js +0 -1
- package/dist/components/p-DS6NVBvu.js +0 -1
- package/dist/components/p-D_56BjcD.js +0 -1
- package/dist/components/p-Uh9emYrV.js +0 -1
- package/dist/components/p-f0aBxUBG.js +0 -1
- package/dist/design-system/p-0e014b76.entry.js +0 -1
- package/dist/design-system/p-1b5fcf7b.entry.js +0 -1
- package/dist/design-system/p-2a4d2ee0.entry.js +0 -1
- package/dist/design-system/p-2d6a7d7b.entry.js +0 -1
- package/dist/design-system/p-4b474538.entry.js +0 -1
- package/dist/design-system/p-BOxGhKKP.js +0 -1
- package/dist/design-system/p-BhcvMs8c.js +0 -1
- package/dist/design-system/p-Dz490Ukt.js +0 -2
- package/dist/design-system/p-a631cd78.entry.js +0 -1
- package/dist/design-system/p-cb6ab65c.entry.js +0 -1
- package/dist/design-system/p-d51f4170.entry.js +0 -1
- package/dist/design-system/p-e7740a5f.entry.js +0 -1
- package/dist/design-system/p-e85bf462.entry.js +0 -1
- package/dist/design-system/p-ea008087.entry.js +0 -1
- package/dist/design-system/p-f962e5d2.entry.js +0 -1
- package/dist/esm/sd-date-picker.config-krRuSUsA.js +0 -38
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-CdvQqvIe.js';
|
|
2
|
+
|
|
3
|
+
const stepper$1 = {
|
|
4
|
+
sm: {
|
|
5
|
+
sequence: {
|
|
6
|
+
size: "20"
|
|
7
|
+
},
|
|
8
|
+
typography: {
|
|
9
|
+
active: {
|
|
10
|
+
fontWeight: "700"},
|
|
11
|
+
"default": {
|
|
12
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
13
|
+
fontWeight: "500",
|
|
14
|
+
fontSize: "12",
|
|
15
|
+
lineHeight: "20"}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
dash: {
|
|
19
|
+
width: "20",
|
|
20
|
+
color: "#888888"
|
|
21
|
+
},
|
|
22
|
+
lg: {
|
|
23
|
+
sequence: {
|
|
24
|
+
size: "24"
|
|
25
|
+
},
|
|
26
|
+
typography: {
|
|
27
|
+
active: {
|
|
28
|
+
fontWeight: "700"},
|
|
29
|
+
"default": {
|
|
30
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
31
|
+
fontWeight: "500",
|
|
32
|
+
fontSize: "14",
|
|
33
|
+
lineHeight: "24"}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
container: {
|
|
37
|
+
gap: "12"
|
|
38
|
+
},
|
|
39
|
+
item: {
|
|
40
|
+
gap: "8"
|
|
41
|
+
},
|
|
42
|
+
sequence: {
|
|
43
|
+
radius: "9999",
|
|
44
|
+
border: {
|
|
45
|
+
active: "#93C4FF",
|
|
46
|
+
"default": "#E1E1E1",
|
|
47
|
+
completed: "#CCCCCC",
|
|
48
|
+
witdh: "1"
|
|
49
|
+
},
|
|
50
|
+
icon: "12",
|
|
51
|
+
bg: {
|
|
52
|
+
active: "#D9EAFF",
|
|
53
|
+
"default": "#FFFFFF",
|
|
54
|
+
completed: "#E1E1E1"
|
|
55
|
+
},
|
|
56
|
+
text: {
|
|
57
|
+
active: "#0075FF",
|
|
58
|
+
"default": "#AAAAAA"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
text: {
|
|
62
|
+
active: "#0075FF",
|
|
63
|
+
"default": "#888888"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var stepperTokens = {
|
|
67
|
+
stepper: stepper$1
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const stepper = stepperTokens.stepper;
|
|
71
|
+
const STEPPER_SIZES = {
|
|
72
|
+
sm: {
|
|
73
|
+
sequenceSize: stepper.sm.sequence.size,
|
|
74
|
+
fontFamily: stepper.sm.typography.default.fontFamily,
|
|
75
|
+
fontSize: stepper.sm.typography.default.fontSize,
|
|
76
|
+
lineHeight: stepper.sm.typography.default.lineHeight,
|
|
77
|
+
fontWeightActive: stepper.sm.typography.active.fontWeight,
|
|
78
|
+
fontWeightDefault: stepper.sm.typography.default.fontWeight,
|
|
79
|
+
},
|
|
80
|
+
lg: {
|
|
81
|
+
sequenceSize: stepper.lg.sequence.size,
|
|
82
|
+
fontFamily: stepper.lg.typography.default.fontFamily,
|
|
83
|
+
fontSize: stepper.lg.typography.default.fontSize,
|
|
84
|
+
lineHeight: stepper.lg.typography.default.lineHeight,
|
|
85
|
+
fontWeightActive: stepper.lg.typography.active.fontWeight,
|
|
86
|
+
fontWeightDefault: stepper.lg.typography.default.fontWeight,
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
const STEPPER_LAYOUT = {
|
|
90
|
+
containerGap: stepper.container.gap,
|
|
91
|
+
itemGap: stepper.item.gap,
|
|
92
|
+
dashWidth: stepper.dash.width,
|
|
93
|
+
radius: stepper.sequence.radius,
|
|
94
|
+
borderWidth: stepper.sequence.border.witdh,
|
|
95
|
+
iconSize: stepper.sequence.icon,
|
|
96
|
+
};
|
|
97
|
+
const STEPPER_COLORS = {
|
|
98
|
+
dash: stepper.dash.color,
|
|
99
|
+
sequenceBorder: stepper.sequence.border,
|
|
100
|
+
sequenceBg: stepper.sequence.bg,
|
|
101
|
+
sequenceText: stepper.sequence.text,
|
|
102
|
+
text: stepper.text,
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const sdStepperCss = () => `sd-stepper{display:inline-flex}sd-stepper .sd-stepper{display:inline-flex;align-items:center;gap:var(--sd-stepper-container-gap);font-family:var(--sd-stepper-font-family);font-size:var(--sd-stepper-font-size);line-height:var(--sd-stepper-line-height)}sd-stepper .sd-stepper__item{display:inline-flex;align-items:center;gap:var(--sd-stepper-item-gap);color:var(--sd-stepper-text-default);font-weight:var(--sd-stepper-font-weight-default);white-space:nowrap}sd-stepper .sd-stepper__item--active{color:var(--sd-stepper-text-active);font-weight:var(--sd-stepper-font-weight-active)}sd-stepper .sd-stepper__sequence{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--sd-stepper-sequence-size);height:var(--sd-stepper-sequence-size);flex:0 0 var(--sd-stepper-sequence-size);border-radius:var(--sd-stepper-sequence-radius);border:var(--sd-stepper-sequence-border-width) solid var(--sd-stepper-sequence-border);background:var(--sd-stepper-sequence-bg);color:var(--sd-stepper-sequence-text);font-size:12px;line-height:20px;font-weight:700}sd-stepper .sd-stepper__label{color:inherit}sd-stepper .sd-stepper__dash{display:inline-flex;align-items:center;width:var(--sd-stepper-dash-width);height:1px;flex:0 0 var(--sd-stepper-dash-width);color:var(--sd-stepper-dash-color)}`;
|
|
106
|
+
|
|
107
|
+
const SdStepper = class {
|
|
108
|
+
constructor(hostRef) {
|
|
109
|
+
registerInstance(this, hostRef);
|
|
110
|
+
}
|
|
111
|
+
/** 단계 목록 */
|
|
112
|
+
items = [];
|
|
113
|
+
/** 현재 활성 단계 value */
|
|
114
|
+
value = '';
|
|
115
|
+
/** 크기 */
|
|
116
|
+
size = 'sm';
|
|
117
|
+
/** 접근성 레이블 */
|
|
118
|
+
ariaLabel = '진행 단계';
|
|
119
|
+
valueChanged(newValue) {
|
|
120
|
+
this.value = newValue;
|
|
121
|
+
}
|
|
122
|
+
getItemValue(item, index) {
|
|
123
|
+
return item.value ?? String(index + 1);
|
|
124
|
+
}
|
|
125
|
+
getActiveIndex() {
|
|
126
|
+
const found = this.items.findIndex((item, index) => this.getItemValue(item, index) === this.value);
|
|
127
|
+
return found >= 0 ? found : 0;
|
|
128
|
+
}
|
|
129
|
+
getState(index) {
|
|
130
|
+
const activeIndex = this.getActiveIndex();
|
|
131
|
+
if (index < activeIndex)
|
|
132
|
+
return 'completed';
|
|
133
|
+
if (index === activeIndex)
|
|
134
|
+
return 'active';
|
|
135
|
+
return 'default';
|
|
136
|
+
}
|
|
137
|
+
buildCssVars() {
|
|
138
|
+
const size = STEPPER_SIZES[this.size];
|
|
139
|
+
return {
|
|
140
|
+
'--sd-stepper-sequence-size': `${size.sequenceSize}px`,
|
|
141
|
+
'--sd-stepper-font-family': size.fontFamily,
|
|
142
|
+
'--sd-stepper-font-size': `${size.fontSize}px`,
|
|
143
|
+
'--sd-stepper-line-height': `${size.lineHeight}px`,
|
|
144
|
+
'--sd-stepper-font-weight-active': size.fontWeightActive,
|
|
145
|
+
'--sd-stepper-font-weight-default': size.fontWeightDefault,
|
|
146
|
+
'--sd-stepper-container-gap': `${STEPPER_LAYOUT.containerGap}px`,
|
|
147
|
+
'--sd-stepper-item-gap': `${STEPPER_LAYOUT.itemGap}px`,
|
|
148
|
+
'--sd-stepper-dash-width': `${STEPPER_LAYOUT.dashWidth}px`,
|
|
149
|
+
'--sd-stepper-dash-color': STEPPER_COLORS.dash,
|
|
150
|
+
'--sd-stepper-sequence-radius': `${STEPPER_LAYOUT.radius}px`,
|
|
151
|
+
'--sd-stepper-sequence-border-width': `${STEPPER_LAYOUT.borderWidth}px`,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
getStateVars(state) {
|
|
155
|
+
return {
|
|
156
|
+
'--sd-stepper-sequence-border': STEPPER_COLORS.sequenceBorder[state],
|
|
157
|
+
'--sd-stepper-sequence-bg': STEPPER_COLORS.sequenceBg[state],
|
|
158
|
+
'--sd-stepper-sequence-text': state === 'completed'
|
|
159
|
+
? STEPPER_COLORS.text.default
|
|
160
|
+
: STEPPER_COLORS.sequenceText[state],
|
|
161
|
+
'--sd-stepper-text-active': STEPPER_COLORS.text.active,
|
|
162
|
+
'--sd-stepper-text-default': STEPPER_COLORS.text.default,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
render() {
|
|
166
|
+
return (h("div", { key: '0255899ce447c38d44a618acc72692d2c746ebc3', class: "sd-stepper", role: "list", "aria-label": this.ariaLabel, style: this.buildCssVars() }, this.items.map((item, index) => {
|
|
167
|
+
const state = this.getState(index);
|
|
168
|
+
const className = [
|
|
169
|
+
'sd-stepper__item',
|
|
170
|
+
`sd-stepper__item--${state}`,
|
|
171
|
+
]
|
|
172
|
+
.filter(Boolean)
|
|
173
|
+
.join(' ');
|
|
174
|
+
return [
|
|
175
|
+
h("span", { class: className, role: "listitem", "aria-current": state === 'active' ? 'step' : undefined, style: this.getStateVars(state) }, h("span", { class: "sd-stepper__sequence", "aria-hidden": "true" }, state === 'completed' ? (h("sd-icon", { name: "check", size: STEPPER_LAYOUT.iconSize, color: "currentColor" })) : (index + 1)), h("span", { class: "sd-stepper__label" }, item.label)),
|
|
176
|
+
index < this.items.length - 1 && (h("span", { class: "sd-stepper__dash", "aria-hidden": "true" }, h("svg", { width: STEPPER_LAYOUT.dashWidth, height: "1", viewBox: `0 0 ${STEPPER_LAYOUT.dashWidth} 1`, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "1.6", height: "1", fill: "#888888" }), h("rect", { x: "5", width: "3.3", height: "1", fill: "#888888" }), h("rect", { x: "11.7", width: "3.3", height: "1", fill: "#888888" }), h("rect", { x: "18.4", width: "1.6", height: "1", fill: "#888888" })))),
|
|
177
|
+
];
|
|
178
|
+
})));
|
|
179
|
+
}
|
|
180
|
+
static get watchers() { return {
|
|
181
|
+
"value": [{
|
|
182
|
+
"valueChanged": 0
|
|
183
|
+
}]
|
|
184
|
+
}; }
|
|
185
|
+
};
|
|
186
|
+
SdStepper.style = sdStepperCss();
|
|
187
|
+
|
|
188
|
+
export { SdStepper as sd_stepper };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
var switchTokens = {
|
|
4
4
|
"switch": {
|
|
@@ -65,7 +65,14 @@ const SdSwitch = class {
|
|
|
65
65
|
}
|
|
66
66
|
/** 현재 on/off 상태 */
|
|
67
67
|
value = false;
|
|
68
|
-
/**
|
|
68
|
+
/** 스위치 좌측 라벨 */
|
|
69
|
+
leftLabel;
|
|
70
|
+
/** 스위치 우측 라벨 */
|
|
71
|
+
rightLabel;
|
|
72
|
+
/**
|
|
73
|
+
* 표시할 라벨 텍스트
|
|
74
|
+
* @deprecated `rightLabel` 사용. 우측 라벨(하위호환)
|
|
75
|
+
*/
|
|
69
76
|
label = '';
|
|
70
77
|
/** 비활성 상태 여부 */
|
|
71
78
|
disabled = false;
|
|
@@ -107,7 +114,10 @@ const SdSwitch = class {
|
|
|
107
114
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
108
115
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
109
116
|
};
|
|
110
|
-
|
|
117
|
+
// label(deprecated)은 rightLabel 로 흡수 (하위호환)
|
|
118
|
+
const right = this.rightLabel ?? this.label;
|
|
119
|
+
const accessibleName = [this.leftLabel, right].filter(Boolean).join(' ') || 'switch';
|
|
120
|
+
return (h("label", { key: '3ff528a7fe1a39cae2475d31af98036dd5f0c7d8', "aria-label": accessibleName, class: this.switchClasses, style: cssVars }, h("input", { key: '02e54ab9b626be19ff1efd330069e3f9477367c6', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), this.leftLabel && h("span", { key: '2eed006c7de45f1cda9d009fa4228c8cb1f56755', class: "sd-switch__label" }, this.leftLabel), h("div", { key: '031c7c3121c54a45b7de0187c31e2e298a0f9701', class: "sd-switch__track" }, h("div", { key: '15a3225b7dd4deab98feb4f6581d89f9cf480edd', class: "sd-switch__knob" })), right && h("span", { key: '04b2185de5b5d2c05f24b3818c6dbc1300680d13', class: "sd-switch__label" }, right)));
|
|
111
121
|
}
|
|
112
122
|
};
|
|
113
123
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
const tab = {
|
|
4
4
|
main: {
|
|
@@ -205,7 +205,7 @@ const SdTabs = class {
|
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return (h("div", { key: '
|
|
208
|
+
return (h("div", { key: 'c88c2d10181fd02076ac9c0ecdb6d3e95bd727c3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
209
209
|
const badgeName = this.getBadgeName(tab);
|
|
210
210
|
return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
211
211
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
const textLink = {
|
|
4
4
|
sm: {
|
|
@@ -171,7 +171,7 @@ const SdTextLink = class {
|
|
|
171
171
|
};
|
|
172
172
|
const tooltipText = (this.tooltipText ?? '').trim();
|
|
173
173
|
const hasTooltip = tooltipText.length > 0;
|
|
174
|
-
return (h("span", { key: '
|
|
174
|
+
return (h("span", { key: '363829c6d53fc3df03dee7ddd290ca078c255039', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
175
175
|
'sd-text-link': true,
|
|
176
176
|
'sd-text-link--disabled': this.disabled,
|
|
177
177
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -179,13 +179,13 @@ const SdTextLink = class {
|
|
|
179
179
|
e.preventDefault();
|
|
180
180
|
this.handleClick();
|
|
181
181
|
}
|
|
182
|
-
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (h("sd-portal", { key: '
|
|
182
|
+
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (h("sd-portal", { key: '4dcb8ca39f7b9627b5f77885c0823848d0aa5a5f', parentRef: this.hostEl, open: true, offset: [this.hostEl.offsetWidth / 2, 4], placement: "top" }, h("div", { key: '7bbcabbd9d9bb3594d8c4817dbbb922018bbbd19', class: "sd-text-link__tooltip-inner", "aria-hidden": "true" }, h("sd-tag", { key: '313c23dc9caf81d885ebf288c475ebe01bd24515', name: "square_xs_grey", label: tooltipText })))), this.icon && (h("sd-icon", { key: '2668c579bc22547b542ca2045f9af0fad25a5ee7', name: this.icon, size: sizeConfig.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: '28246109bab90175498e841ecb02ac4a53a992b8', class: labelClassName }, this.label), this.rightArrow && this.rightArrow !== 'none' && (h("span", { key: 'c157788957cbba17a1411ebb329897fc6524171d', class: "sd-text-link__arrow", style: {
|
|
183
183
|
width: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
184
184
|
height: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
185
185
|
display: 'inline-flex',
|
|
186
186
|
alignItems: 'center',
|
|
187
187
|
justifyContent: 'center',
|
|
188
|
-
} }, h("sd-icon", { key: '
|
|
188
|
+
} }, h("sd-icon", { key: 'b74ca3398a1dd74ac5a9f7a16c872d313882fd4d', name: this.rightArrow === 'chevron' ? 'chevronRight' : 'caretRight', size: TEXT_LINK_ARROW.arrowIconSize, color: arrowColor })))));
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
191
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
|
|
2
|
+
import { p as parseTimeValue, c as clampTimePart, f as formatTimeValue, d as TIMEPICKER_SELECTOR } from './sd-time-picker.config-DUq29Nhs.js';
|
|
3
|
+
import './component.field-DjKOoQuF.js';
|
|
4
|
+
|
|
5
|
+
const sdTimePickerSelectorCss = () => `sd-time-picker-selector{display:block}sd-time-picker-selector .sd-time-picker-selector{display:flex;flex-direction:column;align-items:stretch;justify-content:center;overflow:hidden;background:var(--selector-bg);border-radius:var(--selector-radius);box-shadow:4px 8px 16px -4px rgba(34, 34, 34, 0.1), 0 0 24px -6px rgba(34, 34, 34, 0.12)}sd-time-picker-selector .sd-time-picker-selector__meridiem{display:flex;align-items:center;justify-content:center;padding:var(--selector-section-padding-y) var(--selector-section-padding-x);background:var(--selector-bg)}sd-time-picker-selector .sd-time-picker-selector__meridiem-group{display:flex;isolation:isolate}sd-time-picker-selector .sd-time-picker-selector__meridiem-button{width:61px;height:28px;border:1px solid #ccc;background:#fff;color:#555;font-size:12px;line-height:20px;font-weight:500;cursor:pointer}sd-time-picker-selector .sd-time-picker-selector__meridiem-button--first{border-radius:4px 0 0 4px;margin-right:-1px}sd-time-picker-selector .sd-time-picker-selector__meridiem-button--end{border-radius:0 4px 4px 0}sd-time-picker-selector .sd-time-picker-selector__meridiem-button--selected{z-index:1;border-color:#0075ff;color:#0075ff}sd-time-picker-selector .sd-time-picker-selector__divider{height:1px;width:100%;background:#e1e1e1}sd-time-picker-selector .sd-time-picker-selector__time{display:flex;align-items:center;justify-content:center;gap:var(--selector-time-gap);padding:var(--selector-section-padding-y) var(--selector-section-padding-x);background:var(--selector-bg)}sd-time-picker-selector .sd-time-picker-selector__column{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--selector-time-column-gap)}sd-time-picker-selector .sd-time-picker-selector__input{width:var(--selector-input-width);height:28px;box-sizing:border-box;border:1px solid #aaa;border-radius:4px;background:#fff;color:#222;font-size:12px;line-height:20px;text-align:center;outline:none}sd-time-picker-selector .sd-time-picker-selector__colon{width:var(--selector-colon-size);color:#555;font-size:16px;line-height:16px;text-align:center}`;
|
|
6
|
+
|
|
7
|
+
const SdTimePickerSelector = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
11
|
+
}
|
|
12
|
+
/** 선택된 시간 (HH:mm) */
|
|
13
|
+
value = null;
|
|
14
|
+
/** 오전/오후 선택 표시 여부 */
|
|
15
|
+
useMeridiem = true;
|
|
16
|
+
/** 분 증감 단위 */
|
|
17
|
+
minuteStep = 1;
|
|
18
|
+
/** 시간 변경 시 발생합니다. */
|
|
19
|
+
update;
|
|
20
|
+
valueChanged() {
|
|
21
|
+
this.syncFromValue();
|
|
22
|
+
}
|
|
23
|
+
editingPart = null;
|
|
24
|
+
inputDraft = {};
|
|
25
|
+
hour = 0;
|
|
26
|
+
minute = 0;
|
|
27
|
+
componentWillLoad() {
|
|
28
|
+
this.syncFromValue();
|
|
29
|
+
}
|
|
30
|
+
syncFromValue() {
|
|
31
|
+
const parsed = parseTimeValue(this.value);
|
|
32
|
+
this.hour = parsed.hour;
|
|
33
|
+
this.minute = parsed.minute;
|
|
34
|
+
}
|
|
35
|
+
get meridiem() {
|
|
36
|
+
return this.hour >= 12 ? 'PM' : 'AM';
|
|
37
|
+
}
|
|
38
|
+
get displayHour() {
|
|
39
|
+
if (!this.useMeridiem)
|
|
40
|
+
return this.hour;
|
|
41
|
+
const hour = this.hour % 12;
|
|
42
|
+
return hour === 0 ? 12 : hour;
|
|
43
|
+
}
|
|
44
|
+
emitNext(hour, minute) {
|
|
45
|
+
this.hour = clampTimePart(hour, 0, 23);
|
|
46
|
+
this.minute = clampTimePart(minute, 0, 59);
|
|
47
|
+
this.update.emit(formatTimeValue(this.hour, this.minute));
|
|
48
|
+
}
|
|
49
|
+
sanitizeInput(value) {
|
|
50
|
+
return value.replace(/\D/g, '').slice(0, 2);
|
|
51
|
+
}
|
|
52
|
+
setDraft(part, value) {
|
|
53
|
+
this.inputDraft = { ...this.inputDraft, [part]: value };
|
|
54
|
+
}
|
|
55
|
+
beginEdit(part, value) {
|
|
56
|
+
this.editingPart = part;
|
|
57
|
+
this.setDraft(part, String(value).padStart(2, '0'));
|
|
58
|
+
}
|
|
59
|
+
commitHourDraft(draft) {
|
|
60
|
+
const raw = clampTimePart(Number(draft), this.useMeridiem ? 1 : 0, this.useMeridiem ? 12 : 23);
|
|
61
|
+
const nextHour = this.useMeridiem
|
|
62
|
+
? this.meridiem === 'PM'
|
|
63
|
+
? raw === 12
|
|
64
|
+
? 12
|
|
65
|
+
: raw + 12
|
|
66
|
+
: raw === 12
|
|
67
|
+
? 0
|
|
68
|
+
: raw
|
|
69
|
+
: raw;
|
|
70
|
+
this.emitNext(nextHour, this.minute);
|
|
71
|
+
return raw;
|
|
72
|
+
}
|
|
73
|
+
commitMinuteDraft(draft) {
|
|
74
|
+
const minute = clampTimePart(Number(draft), 0, 59);
|
|
75
|
+
this.emitNext(this.hour, minute);
|
|
76
|
+
return minute;
|
|
77
|
+
}
|
|
78
|
+
endEdit(part) {
|
|
79
|
+
const draft = this.inputDraft[part];
|
|
80
|
+
if (part === 'hour' && draft != null && draft !== '') {
|
|
81
|
+
this.commitHourDraft(draft);
|
|
82
|
+
}
|
|
83
|
+
if (part === 'minute' && draft != null && draft !== '') {
|
|
84
|
+
this.commitMinuteDraft(draft);
|
|
85
|
+
}
|
|
86
|
+
this.editingPart = null;
|
|
87
|
+
this.inputDraft = {};
|
|
88
|
+
}
|
|
89
|
+
setMeridiem(meridiem) {
|
|
90
|
+
if (meridiem === this.meridiem)
|
|
91
|
+
return;
|
|
92
|
+
if (meridiem === 'AM') {
|
|
93
|
+
this.emitNext(this.hour - 12, this.minute);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
this.emitNext(this.hour + 12, this.minute);
|
|
97
|
+
}
|
|
98
|
+
changeHour(delta) {
|
|
99
|
+
this.emitNext((this.hour + delta + 24) % 24, this.minute);
|
|
100
|
+
}
|
|
101
|
+
changeMinute(delta) {
|
|
102
|
+
const next = this.minute + delta;
|
|
103
|
+
if (next > 59) {
|
|
104
|
+
this.emitNext((this.hour + 1) % 24, next - 60);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (next < 0) {
|
|
108
|
+
this.emitNext((this.hour + 23) % 24, next + 60);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this.emitNext(this.hour, next);
|
|
112
|
+
}
|
|
113
|
+
handleHourInput = (event) => {
|
|
114
|
+
const target = event.target;
|
|
115
|
+
const draft = this.sanitizeInput(target.value);
|
|
116
|
+
target.value = draft;
|
|
117
|
+
this.setDraft('hour', draft);
|
|
118
|
+
if (draft === '')
|
|
119
|
+
return;
|
|
120
|
+
if (draft.length < 2)
|
|
121
|
+
return;
|
|
122
|
+
const raw = this.commitHourDraft(draft);
|
|
123
|
+
const displayDraft = Number(draft) === raw ? draft : String(raw);
|
|
124
|
+
target.value = displayDraft;
|
|
125
|
+
this.setDraft('hour', displayDraft);
|
|
126
|
+
};
|
|
127
|
+
handleMinuteInput = (event) => {
|
|
128
|
+
const target = event.target;
|
|
129
|
+
const draft = this.sanitizeInput(target.value);
|
|
130
|
+
target.value = draft;
|
|
131
|
+
this.setDraft('minute', draft);
|
|
132
|
+
if (draft === '')
|
|
133
|
+
return;
|
|
134
|
+
if (draft.length < 2)
|
|
135
|
+
return;
|
|
136
|
+
const nextMinute = this.commitMinuteDraft(draft);
|
|
137
|
+
const displayDraft = Number(draft) === nextMinute ? draft : String(nextMinute);
|
|
138
|
+
target.value = displayDraft;
|
|
139
|
+
this.setDraft('minute', displayDraft);
|
|
140
|
+
this.emitNext(this.hour, nextMinute);
|
|
141
|
+
};
|
|
142
|
+
renderMeridiemButton(label, meridiem, position) {
|
|
143
|
+
const selected = this.meridiem === meridiem;
|
|
144
|
+
return (h("button", { type: "button", class: {
|
|
145
|
+
'sd-time-picker-selector__meridiem-button': true,
|
|
146
|
+
'sd-time-picker-selector__meridiem-button--selected': selected,
|
|
147
|
+
[`sd-time-picker-selector__meridiem-button--${position}`]: true,
|
|
148
|
+
}, onClick: () => this.setMeridiem(meridiem) }, label));
|
|
149
|
+
}
|
|
150
|
+
renderColumn(type) {
|
|
151
|
+
const isHour = type === 'hour';
|
|
152
|
+
const value = isHour ? this.displayHour : this.minute;
|
|
153
|
+
const displayValue = this.editingPart === type ? (this.inputDraft[type] ?? '') : String(value).padStart(2, '0');
|
|
154
|
+
return (h("div", { class: `sd-time-picker-selector__column sd-time-picker-selector__column--${type}` }, h("sd-ghost-button", { icon: "chevronUp", size: "xs", ariaLabel: `${isHour ? '시' : '분'} 증가`, onSdClick: () => (isHour ? this.changeHour(1) : this.changeMinute(this.minuteStep)) }), h("input", { class: "sd-time-picker-selector__input", type: "text", inputmode: "numeric", value: displayValue, placeholder: "-", onFocus: () => this.beginEdit(type, value), onBlur: () => this.endEdit(type), onInput: isHour ? this.handleHourInput : this.handleMinuteInput, "aria-label": isHour ? '시' : '분' }), h("sd-ghost-button", { icon: "chevronDown", size: "xs", ariaLabel: `${isHour ? '시' : '분'} 감소`, onSdClick: () => (isHour ? this.changeHour(-1) : this.changeMinute(-this.minuteStep)) })));
|
|
155
|
+
}
|
|
156
|
+
render() {
|
|
157
|
+
const cssVars = {
|
|
158
|
+
'--selector-bg': TIMEPICKER_SELECTOR.bg,
|
|
159
|
+
'--selector-radius': `${TIMEPICKER_SELECTOR.radius}px`,
|
|
160
|
+
'--selector-section-padding-x': `${TIMEPICKER_SELECTOR.section.paddingX}px`,
|
|
161
|
+
'--selector-section-padding-y': `${TIMEPICKER_SELECTOR.section.paddingY}px`,
|
|
162
|
+
'--selector-time-gap': `${TIMEPICKER_SELECTOR.time.gap}px`,
|
|
163
|
+
'--selector-time-column-gap': `${TIMEPICKER_SELECTOR.time.column.gap}px`,
|
|
164
|
+
'--selector-input-width': `${TIMEPICKER_SELECTOR.inputWidth}px`,
|
|
165
|
+
'--selector-colon-size': `${TIMEPICKER_SELECTOR.colonSize}px`,
|
|
166
|
+
};
|
|
167
|
+
return (h("div", { key: '9bf6683c63cf784bba552872b00b53a19e7bd77d', class: "sd-time-picker-selector", style: cssVars }, this.useMeridiem && (h("div", { key: '096e30217c77ab8faf305965528f97026eefee85', class: "sd-time-picker-selector__meridiem" }, h("div", { key: '4931f8e17bfb1cb356e1d713dfdf1635ced0429a', class: "sd-time-picker-selector__meridiem-group" }, this.renderMeridiemButton('오전', 'AM', 'first'), this.renderMeridiemButton('오후', 'PM', 'end')))), this.useMeridiem && h("div", { key: 'a69fcd7379092069faaa556e7dc6649c46072314', class: "sd-time-picker-selector__divider" }), h("div", { key: '620e20c888b254533c34d626eac5012456b76052', class: "sd-time-picker-selector__time" }, this.renderColumn('hour'), h("span", { key: '483fc0afbbaf8faae65012bcead48a04bce6b446', class: "sd-time-picker-selector__colon" }, ":"), this.renderColumn('minute'))));
|
|
168
|
+
}
|
|
169
|
+
static get watchers() { return {
|
|
170
|
+
"value": [{
|
|
171
|
+
"valueChanged": 0
|
|
172
|
+
}]
|
|
173
|
+
}; }
|
|
174
|
+
};
|
|
175
|
+
SdTimePickerSelector.style = sdTimePickerSelectorCss();
|
|
176
|
+
|
|
177
|
+
export { SdTimePickerSelector as sd_time_picker_selector };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
|
|
2
|
+
import { b as TIMEPICKER_SIZE_MAP, T as TIMEPICKER_COLORS } from './sd-time-picker.config-DUq29Nhs.js';
|
|
3
|
+
import './component.field-DjKOoQuF.js';
|
|
4
|
+
|
|
5
|
+
const sdTimePickerTriggerCss = () => `sd-time-picker-trigger{display:block;width:100%;height:100%}sd-time-picker-trigger .sd-time-picker-trigger{display:flex;align-items:center;gap:var(--trigger-gap);width:100%;height:100%;padding:0 var(--trigger-padding-x);cursor:pointer;user-select:none;overflow:hidden;border-radius:var(--trigger-radius)}sd-time-picker-trigger .sd-time-picker-trigger--disabled{cursor:not-allowed}sd-time-picker-trigger .sd-time-picker-trigger__icon,sd-time-picker-trigger .sd-time-picker-trigger__clear{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}sd-time-picker-trigger .sd-time-picker-trigger__text{flex:1;min-width:var(--trigger-text-min-width, 80px);font-size:var(--trigger-font-size);line-height:var(--trigger-line-height);font-weight:var(--trigger-font-weight);color:var(--trigger-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}`;
|
|
6
|
+
|
|
7
|
+
const SdTimePickerTrigger = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.triggerClick = createEvent(this, "sdTriggerClick", 7);
|
|
11
|
+
this.clear = createEvent(this, "sdClear", 7);
|
|
12
|
+
}
|
|
13
|
+
/** 표시할 시간 텍스트 */
|
|
14
|
+
displayText = '';
|
|
15
|
+
/** 입력 힌트 텍스트 */
|
|
16
|
+
placeholder = '00:00';
|
|
17
|
+
/** 비활성 상태 여부 */
|
|
18
|
+
disabled = false;
|
|
19
|
+
/** 지우기 버튼 표시 여부 */
|
|
20
|
+
clearable = false;
|
|
21
|
+
/** 트리거 크기 */
|
|
22
|
+
size = 'sm';
|
|
23
|
+
/** 트리거 클릭 시 발생합니다. */
|
|
24
|
+
triggerClick;
|
|
25
|
+
/** 지우기 버튼 클릭 시 발생합니다. */
|
|
26
|
+
clear;
|
|
27
|
+
handleClick = () => {
|
|
28
|
+
if (this.disabled)
|
|
29
|
+
return;
|
|
30
|
+
this.triggerClick.emit();
|
|
31
|
+
};
|
|
32
|
+
handleClear = (event) => {
|
|
33
|
+
event.stopPropagation();
|
|
34
|
+
if (this.disabled)
|
|
35
|
+
return;
|
|
36
|
+
this.clear.emit();
|
|
37
|
+
};
|
|
38
|
+
render() {
|
|
39
|
+
const sizeTokens = TIMEPICKER_SIZE_MAP[this.size] ?? TIMEPICKER_SIZE_MAP.sm;
|
|
40
|
+
const hasValue = this.displayText !== '';
|
|
41
|
+
const textMinWidth = this.size === 'md' ? 96 : 80;
|
|
42
|
+
const cssVars = {
|
|
43
|
+
'--trigger-padding-x': `${sizeTokens.paddingX}px`,
|
|
44
|
+
'--trigger-gap': `${sizeTokens.gap}px`,
|
|
45
|
+
'--trigger-icon-size': `${sizeTokens.iconSize}px`,
|
|
46
|
+
'--trigger-font-size': `${sizeTokens.fontSize}px`,
|
|
47
|
+
'--trigger-line-height': `${sizeTokens.lineHeight}px`,
|
|
48
|
+
'--trigger-font-weight': sizeTokens.fontWeight,
|
|
49
|
+
'--trigger-radius': `${sizeTokens.radius}px`,
|
|
50
|
+
'--trigger-text-min-width': `${textMinWidth}px`,
|
|
51
|
+
'--trigger-text-color': this.disabled
|
|
52
|
+
? TIMEPICKER_COLORS.text.disabled
|
|
53
|
+
: hasValue
|
|
54
|
+
? TIMEPICKER_COLORS.text.default
|
|
55
|
+
: TIMEPICKER_COLORS.text.hint,
|
|
56
|
+
'--trigger-icon-color': this.disabled
|
|
57
|
+
? TIMEPICKER_COLORS.icon.disabled
|
|
58
|
+
: TIMEPICKER_COLORS.icon.default,
|
|
59
|
+
};
|
|
60
|
+
return (h("div", { key: '4cd9086e21a7e7fedb6601c163dcf9c5c8f374d1', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
61
|
+
'sd-time-picker-trigger': true,
|
|
62
|
+
'sd-time-picker-trigger--disabled': this.disabled,
|
|
63
|
+
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
64
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
this.handleClick();
|
|
67
|
+
}
|
|
68
|
+
} }, h("sd-icon", { key: 'c38c13b3dc8c072430bb5b40765b96582696e04c', name: "clockOutline", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-time-picker-trigger__icon" }), h("span", { key: '245e636a0645d97c825a44607516d8821cc533f9', class: "sd-time-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder), this.clearable && hasValue && !this.disabled && (h("sd-ghost-button", { key: 'fa740470bf8b798fcf0863ba9e7822e496e8e841', class: "sd-time-picker-trigger__clear", icon: "close", size: "xs", ariaLabel: "\uC2DC\uAC04 \uC9C0\uC6B0\uAE30", onSdClick: this.handleClear }))));
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
SdTimePickerTrigger.style = sdTimePickerTriggerCss();
|
|
72
|
+
|
|
73
|
+
export { SdTimePickerTrigger as sd_time_picker_trigger };
|