@sellmate/design-system 1.31.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-Jr8OU0y9.js → index-Cg7X15Hq.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker_8.cjs.entry.js +6 -6
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +2 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-field_3.cjs.entry.js +4 -4
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination.cjs.entry.js +1 -1
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
- package/dist/cjs/sd-time-picker-selector.cjs.entry.js +2 -2
- package/dist/cjs/sd-time-picker-trigger.cjs.entry.js +3 -3
- package/dist/cjs/sd-time-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-time-range-picker-selector.cjs.entry.js +2 -2
- package/dist/cjs/sd-time-range-picker.cjs.entry.js +3 -3
- 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-BlrFItn5.js → tooltipArrow-CZff77W-.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/sd-popup/sd-popup.css +40 -0
- 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 +1 -1
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.js +2 -2
- package/dist/collection/components/sd-time-picker/sd-time-picker.js +2 -2
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.js +1 -1
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.js +2 -2
- 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 +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-1DsQj3tv.js → p--BJuy06e.js} +1 -1
- package/dist/components/{p-qZxAQy4p.js → p-22hyxPno.js} +1 -1
- package/dist/components/{p-Ckr9iuVb.js → p-7lGaExLM.js} +1 -1
- package/dist/components/{p-CKV2W-zU.js → p-B6BgOB_-.js} +1 -1
- package/dist/components/{p-DSWD8udu.js → p-BBAwMOGx.js} +1 -1
- package/dist/components/{p-C9IKm4j5.js → p-BDULNyBw.js} +1 -1
- package/dist/components/{p-CzJ9g73f.js → p-BI1iKxNN.js} +1 -1
- package/dist/components/{p-FGII920I.js → p-BU1DclrU.js} +1 -1
- package/dist/components/{p-DE8Ws9As.js → p-BhLF3gGb.js} +1 -1
- package/dist/components/p-Bk6mL1Ml.js +1 -0
- package/dist/components/{p-Bxv2AFOb.js → p-BkyM9ded.js} +1 -1
- package/dist/components/{p-DnlLqzGM.js → p-BoJ_gLp7.js} +1 -1
- package/dist/components/{p-DWnuCSqC.js → p-BpTKv3vN.js} +1 -1
- package/dist/components/{p-OnBLxJAP.js → p-C0IFrSzM.js} +1 -1
- package/dist/components/{p-D9qp3o5Y.js → p-C1KeTx0Z.js} +1 -1
- package/dist/components/{p-C6wuKkUq.js → p-C8x8VEb8.js} +1 -1
- package/dist/components/{p-ClbD4Gsr.js → p-CBx8KWmu.js} +1 -1
- package/dist/components/{p-CTCt17CE.js → p-CNNjhHTA.js} +1 -1
- package/dist/components/{p-Dc9g3-5z.js → p-CRDS2TOy.js} +1 -1
- package/dist/components/{p-Hjv7LqkN.js → p-CdeywvU6.js} +1 -1
- package/dist/components/{p-mcbwNjNT.js → p-CikPzSw-.js} +1 -1
- package/dist/components/{p-DasiqnrU.js → p-D0IDp-M3.js} +1 -1
- package/dist/components/{p-C6o10dl7.js → p-D2oNz1s-.js} +1 -1
- package/dist/components/{p-2g4jlJ3i.js → p-DApl37Qw.js} +1 -1
- package/dist/components/{p-In6mljvA.js → p-DGAzuK5C.js} +1 -1
- package/dist/components/{p-6U1qyU5A.js → p-DONA7SlO.js} +1 -1
- package/dist/components/{p-CwzkplrI.js → p-DVdDYnTl.js} +1 -1
- package/dist/components/{p-BvJ14GuJ.js → p-DdYWQ4Z5.js} +1 -1
- package/dist/components/{p-SYnTIeiO.js → p-DtadjLky.js} +1 -1
- package/dist/components/{p-D8yhjm54.js → p-DvlLDBO7.js} +1 -1
- package/dist/components/{p-CmCOLnc0.js → p-ETWwVYq6.js} +1 -1
- package/dist/components/{p-DOfLrOEu.js → p-ISXxxDfX.js} +1 -1
- package/dist/components/{p-B887QQl2.js → p-UFNg7rhE.js} +1 -1
- package/dist/components/{p-CH9dgzTr.js → p-irA7XFIS.js} +1 -1
- package/dist/components/{p-Bth2l1cy.js → p-rayWyWtG.js} +1 -1
- package/dist/components/{p-B-EV9bey.js → p-sLMSwbXi.js} +1 -1
- package/dist/components/{p-DsZwiWiU.js → p-vj3gimgB.js} +1 -1
- 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.js +1 -1
- package/dist/components/sd-time-picker-trigger.js +1 -1
- package/dist/components/sd-time-picker.js +1 -1
- package/dist/components/sd-time-range-picker-selector.js +1 -1
- package/dist/components/sd-time-range-picker.js +1 -1
- 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-21672bb8.entry.js → p-0cdd05eb.entry.js} +1 -1
- package/dist/design-system/p-1c4ba7ae.entry.js +1 -0
- package/dist/design-system/{p-219288ef.entry.js → p-2a36028d.entry.js} +1 -1
- package/dist/design-system/{p-3859316f.entry.js → p-2e76157e.entry.js} +1 -1
- package/dist/design-system/{p-b97a6cf3.entry.js → p-336cb0c1.entry.js} +1 -1
- package/dist/design-system/{p-570b9e91.entry.js → p-34e8dda6.entry.js} +1 -1
- package/dist/design-system/{p-62ff77e4.entry.js → p-370b820e.entry.js} +1 -1
- package/dist/design-system/{p-22ac9e05.entry.js → p-39db3098.entry.js} +1 -1
- package/dist/design-system/{p-843d1a8a.entry.js → p-3a2be559.entry.js} +1 -1
- package/dist/design-system/{p-e387ec65.entry.js → p-405cb160.entry.js} +1 -1
- package/dist/design-system/{p-52b1be6f.entry.js → p-456479cc.entry.js} +1 -1
- package/dist/design-system/{p-b5229957.entry.js → p-4d845113.entry.js} +1 -1
- package/dist/design-system/{p-a6c292d1.entry.js → p-5761352f.entry.js} +1 -1
- package/dist/design-system/{p-c1e625e5.entry.js → p-5b725381.entry.js} +1 -1
- package/dist/design-system/p-5d7820f7.entry.js +1 -0
- package/dist/design-system/{p-56e7c87b.entry.js → p-5dd631fe.entry.js} +1 -1
- package/dist/design-system/p-66e3fba3.entry.js +1 -0
- package/dist/design-system/{p-1858636f.entry.js → p-6a5540d8.entry.js} +1 -1
- package/dist/design-system/{p-4ae0a64a.entry.js → p-703bb49a.entry.js} +1 -1
- package/dist/design-system/{p-6c4fa9d7.entry.js → p-71e7031e.entry.js} +1 -1
- package/dist/design-system/{p-cdb2433a.entry.js → p-7837f8f8.entry.js} +1 -1
- package/dist/design-system/{p-4a117dd6.entry.js → p-814ae5f1.entry.js} +1 -1
- package/dist/design-system/{p-9c131122.entry.js → p-8804e3f3.entry.js} +1 -1
- package/dist/design-system/{p-e0e4a451.entry.js → p-8ea038d7.entry.js} +1 -1
- package/dist/design-system/{p-129b6330.entry.js → p-937a30af.entry.js} +1 -1
- package/dist/design-system/{p-c7f03dea.entry.js → p-94d4c093.entry.js} +1 -1
- package/dist/design-system/{p-16b9eac4.entry.js → p-97a059b0.entry.js} +1 -1
- package/dist/design-system/{p-46da4e95.entry.js → p-9afada52.entry.js} +1 -1
- package/dist/design-system/{p-8af8e302.entry.js → p-9df0dd32.entry.js} +1 -1
- package/dist/design-system/{p-Cn8LZw1e.js → p-CHijmX_D.js} +1 -1
- package/dist/design-system/{p-C599jhDs.js → p-CdvQqvIe.js} +1 -1
- package/dist/design-system/{p-b2dc1202.entry.js → p-a05f4888.entry.js} +1 -1
- package/dist/design-system/{p-a9cc4697.entry.js → p-a81e4ae0.entry.js} +1 -1
- package/dist/design-system/{p-2534d3d4.entry.js → p-aaa551fa.entry.js} +1 -1
- package/dist/design-system/p-adc218f5.entry.js +1 -0
- package/dist/design-system/{p-809a0a71.entry.js → p-b7e913e7.entry.js} +1 -1
- package/dist/design-system/{p-a0c55a19.entry.js → p-b90eaebd.entry.js} +1 -1
- package/dist/design-system/{p-d5325895.entry.js → p-c5263a22.entry.js} +1 -1
- package/dist/design-system/{p-82cb62a9.entry.js → p-c5eea64c.entry.js} +1 -1
- package/dist/design-system/{p-8836d9ff.entry.js → p-c906d22d.entry.js} +1 -1
- package/dist/design-system/{p-655324cd.entry.js → p-defe65db.entry.js} +1 -1
- package/dist/design-system/{p-efe3601d.entry.js → p-e16725f7.entry.js} +1 -1
- package/dist/design-system/{p-5a113197.entry.js → p-e4096b72.entry.js} +1 -1
- package/dist/design-system/{p-46eb3421.entry.js → p-e72706ea.entry.js} +1 -1
- package/dist/design-system/{p-66cff123.entry.js → p-fb01f963.entry.js} +1 -1
- package/dist/design-system/{p-15f43b9b.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-C599jhDs.js → index-CdvQqvIe.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +1 -1
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +2 -2
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +1 -1
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker_8.entry.js +6 -6
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +2 -2
- package/dist/esm/sd-dropdown-button.entry.js +2 -2
- package/dist/esm/sd-field_3.entry.js +4 -4
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/sd-loading-container.entry.js +1 -1
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination.entry.js +1 -1
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +1 -1
- package/dist/esm/sd-time-picker-selector.entry.js +2 -2
- package/dist/esm/sd-time-picker-trigger.entry.js +3 -3
- package/dist/esm/sd-time-picker.entry.js +3 -3
- package/dist/esm/sd-time-range-picker-selector.entry.js +2 -2
- package/dist/esm/sd-time-range-picker.entry.js +3 -3
- 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-DbLihSLI.js → tooltipArrow-BsQ__AbZ.js} +1 -1
- 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.d.ts +132 -0
- package/hydrate/index.js +289 -35
- package/hydrate/index.mjs +289 -35
- package/package.json +1 -1
- package/dist/components/p-DYjaQs6e.js +0 -1
- package/dist/design-system/p-4782331f.entry.js +0 -1
- package/dist/design-system/p-b75cc0dd.entry.js +0 -1
|
@@ -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
|
import { l as listItemTokens } from './component.listItem-4S0_Ykmo.js';
|
|
3
3
|
import { l as listBoxTokens } from './component.listBox-DlJaYVWf.js';
|
|
4
4
|
import { s as sanitizeInlineHtml } from './sanitize-inline-html-BE4tnQ2Z.js';
|
|
@@ -211,7 +211,7 @@ const SdSelectListItem = class {
|
|
|
211
211
|
return (
|
|
212
212
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
213
213
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
214
|
-
h("div", { key: '
|
|
214
|
+
h("div", { key: 'e4f8fc195a7231cd3218b91a26c77f51df14e6dc', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
215
215
|
'sd-select-list-item': true,
|
|
216
216
|
'sd-select-list-item--group': isGroup,
|
|
217
217
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -221,7 +221,7 @@ const SdSelectListItem = class {
|
|
|
221
221
|
'sd-select-list-item--focused': this.isFocused,
|
|
222
222
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
223
223
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
224
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
224
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'a9720067837860a8259b1a16b5eab111f02c7ac4', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '8ece77c44bea9aea99883efe099137bca7d89475', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -278,20 +278,20 @@ const SdSelectListItemSearch = class {
|
|
|
278
278
|
clearTimeout(this.debounceTimer);
|
|
279
279
|
}
|
|
280
280
|
render() {
|
|
281
|
-
return (h("div", { key: '
|
|
281
|
+
return (h("div", { key: '5e1dc595bd89df5364d9a302dc917abb29fa2c7b', class: {
|
|
282
282
|
'sd-select-list-item-search': true,
|
|
283
283
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
284
|
-
} }, h("div", { key: '
|
|
284
|
+
} }, h("div", { key: 'd07b293bf685652dcc965071f47c0492776f9d41', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '065e1df3105048322ababd7237df83d045543fc3', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: '973977bfbd98f5430b1b53f1ad59128383481197', ref: el => {
|
|
285
285
|
this.inputEl = el;
|
|
286
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
286
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '2a1386ef266f7398f97ff99adc89ee3cec4a594e', type: "button", class: {
|
|
287
287
|
'sd-select-list-item-search__clear': true,
|
|
288
288
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
289
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
289
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '1060c9fe4e3e6ce239800f04b382df9ce83e9d16', name: "close", size: 12, color: "#888888" })))));
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
293
293
|
|
|
294
|
-
const sdSelectListboxCss = () => `:host{display:block}:host .sd-select-listbox{display:flex;flex-direction:column;width:var(--listbox-trigger-width);max-width:var(--listbox-max-width);max-height:var(--listbox-max-height);border-radius:var(--listbox-radius);background:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);overflow:hidden;outline:none}:host .sd-select-listbox__list{flex:1;min-height:0;overflow-y:auto;padding-bottom:0}:host .sd-select-listbox__list::-webkit-scrollbar{
|
|
294
|
+
const sdSelectListboxCss = () => `:host{display:block}:host .sd-select-listbox{display:flex;flex-direction:column;width:var(--listbox-trigger-width);max-width:var(--listbox-max-width);max-height:var(--listbox-max-height);border-radius:var(--listbox-radius);background:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);overflow:hidden;outline:none}:host .sd-select-listbox__list{flex:1;min-height:0;overflow-y:auto;padding-bottom:0}:host .sd-select-listbox__list::-webkit-scrollbar{width:12px;height:12px;background:transparent}:host .sd-select-listbox__list::-webkit-scrollbar-track{background:transparent}:host .sd-select-listbox__list::-webkit-scrollbar-thumb{background-color:#CCCCCC;border:2px solid transparent;border-radius:8px;background-clip:padding-box}@supports not selector(::-webkit-scrollbar){:host .sd-select-listbox__list{scrollbar-width:thin;scrollbar-color:#CCCCCC transparent}}:host .sd-select-listbox__list::-webkit-scrollbar,:host .sd-select-listbox__list::-webkit-scrollbar-track{background:#F6F6F6}@supports not selector(::-webkit-scrollbar){:host .sd-select-listbox__list{scrollbar-color:#CCCCCC #F6F6F6}}:host .sd-select-listbox__list::-webkit-scrollbar-track:vertical{border-left:1px solid #E1E1E1}:host .sd-select-listbox__list::-webkit-scrollbar-track:horizontal{border-top:1px solid #E1E1E1}:host .sd-select-listbox__list::-webkit-scrollbar-thumb:vertical{border-left-width:3px}:host .sd-select-listbox__list::-webkit-scrollbar-thumb:horizontal{border-top-width:3px}:host .sd-select-listbox__empty{padding:12px;text-align:center;font-size:12px;line-height:20px;color:#888888}`;
|
|
295
295
|
|
|
296
296
|
const SdSelectListbox = class {
|
|
297
297
|
constructor(hostRef) {
|
|
@@ -658,9 +658,9 @@ const SdSelectListbox = class {
|
|
|
658
658
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
659
659
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
660
660
|
};
|
|
661
|
-
return (h("div", { key: '
|
|
661
|
+
return (h("div", { key: '060d455fa7eb31d50fb13251f352643460cc1232', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '70543defd307911c3885b9ef3a0726465e9e4471', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: '17aed7b1eb402f3b61044814cfad734e2cd4b922', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
662
662
|
this.listEl = el;
|
|
663
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
663
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '1f43ef353e470ebb0f70bfed5c495eb7de227c62', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
664
664
|
}
|
|
665
665
|
static get watchers() { return {
|
|
666
666
|
"searchKeyword": [{
|
|
@@ -728,7 +728,7 @@ const SdSelectTrigger = class {
|
|
|
728
728
|
? SELECT_COLORS.icon.disabled
|
|
729
729
|
: SELECT_COLORS.icon.default,
|
|
730
730
|
};
|
|
731
|
-
return (h("div", { key: '
|
|
731
|
+
return (h("div", { key: 'afda44bd2f8dcf0ab75d75b0178b067f96e61707', ref: el => {
|
|
732
732
|
this.triggerEl = el;
|
|
733
733
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
734
734
|
'sd-select-trigger': true,
|
|
@@ -739,7 +739,7 @@ const SdSelectTrigger = class {
|
|
|
739
739
|
e.preventDefault();
|
|
740
740
|
this.handleClick();
|
|
741
741
|
}
|
|
742
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
742
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '061acc7d557d222b2616538346d415a6f37a198e', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: '6444177838d54360776bbbfa7f08da7a6f556a16', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
743
743
|
'sd-select-trigger__icon': true,
|
|
744
744
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
745
745
|
} }))));
|
|
@@ -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": {
|
|
@@ -117,7 +117,7 @@ const SdSwitch = class {
|
|
|
117
117
|
// label(deprecated)은 rightLabel 로 흡수 (하위호환)
|
|
118
118
|
const right = this.rightLabel ?? this.label;
|
|
119
119
|
const accessibleName = [this.leftLabel, right].filter(Boolean).join(' ') || 'switch';
|
|
120
|
-
return (h("label", { key: '
|
|
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)));
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
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, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
|
|
2
2
|
import { p as parseTimeValue, c as clampTimePart, f as formatTimeValue, d as TIMEPICKER_SELECTOR } from './sd-time-picker.config-DUq29Nhs.js';
|
|
3
3
|
import './component.field-DjKOoQuF.js';
|
|
4
4
|
|
|
@@ -164,7 +164,7 @@ const SdTimePickerSelector = class {
|
|
|
164
164
|
'--selector-input-width': `${TIMEPICKER_SELECTOR.inputWidth}px`,
|
|
165
165
|
'--selector-colon-size': `${TIMEPICKER_SELECTOR.colonSize}px`,
|
|
166
166
|
};
|
|
167
|
-
return (h("div", { key: '
|
|
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
168
|
}
|
|
169
169
|
static get watchers() { return {
|
|
170
170
|
"value": [{
|
|
@@ -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
|
import { b as TIMEPICKER_SIZE_MAP, T as TIMEPICKER_COLORS } from './sd-time-picker.config-DUq29Nhs.js';
|
|
3
3
|
import './component.field-DjKOoQuF.js';
|
|
4
4
|
|
|
@@ -57,7 +57,7 @@ const SdTimePickerTrigger = class {
|
|
|
57
57
|
? TIMEPICKER_COLORS.icon.disabled
|
|
58
58
|
: TIMEPICKER_COLORS.icon.default,
|
|
59
59
|
};
|
|
60
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: '4cd9086e21a7e7fedb6601c163dcf9c5c8f374d1', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
61
61
|
'sd-time-picker-trigger': true,
|
|
62
62
|
'sd-time-picker-trigger--disabled': this.disabled,
|
|
63
63
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -65,7 +65,7 @@ const SdTimePickerTrigger = class {
|
|
|
65
65
|
e.preventDefault();
|
|
66
66
|
this.handleClick();
|
|
67
67
|
}
|
|
68
|
-
} }, h("sd-icon", { key: '
|
|
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
69
|
}
|
|
70
70
|
};
|
|
71
71
|
SdTimePickerTrigger.style = sdTimePickerTriggerCss();
|
|
@@ -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
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
3
|
import { f as formatTimeValue, a as formatTimeDisplay, T as TIMEPICKER_COLORS, b as TIMEPICKER_SIZE_MAP, p as parseTimeValue } from './sd-time-picker.config-DUq29Nhs.js';
|
|
4
4
|
import './component.field-DjKOoQuF.js';
|
|
@@ -153,9 +153,9 @@ const SdTimePicker = class {
|
|
|
153
153
|
'--sd-system-color-field-border-focus': TIMEPICKER_COLORS.border.focus,
|
|
154
154
|
'--sd-system-color-field-bg-default': TIMEPICKER_COLORS.bg.default,
|
|
155
155
|
};
|
|
156
|
-
return (h("sd-field", { key: '
|
|
156
|
+
return (h("sd-field", { key: '77b2d4c36e19481ccb6a3d0cef288fe9eb902330', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, status: this.status, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '2d25872f4d1253faf85384030de21ef283e0696d', class: "sd-time-picker", ref: el => {
|
|
157
157
|
this.triggerRef = el;
|
|
158
|
-
} }, h("sd-time-picker-trigger", { key: '
|
|
158
|
+
} }, h("sd-time-picker-trigger", { key: 'fe4a4611216642bcee5632c2202dec0058cc6898', displayText: formatTimeDisplay(this.value, this.effectiveUseMeridiem ? 'midday' : 'default'), placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, size: this.size, onSdTriggerClick: this.handleTriggerClick, onSdClear: this.handleClear })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'd2f921b2eee8d3cc33c52c6eb06f24188f18a78a', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-time-picker-selector", { key: 'd53c348ef16a1ddac731a49d0aafe64931007d32', value: this.value, useMeridiem: this.effectiveUseMeridiem, minuteStep: this.minuteStep, onSdUpdate: this.handleSelect })))));
|
|
159
159
|
}
|
|
160
160
|
static get watchers() { return {
|
|
161
161
|
"isOpen": [{
|
|
@@ -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
|
import { p as parseTimeValue, f as formatTimeValue, c as clampTimePart, T as TIMEPICKER_COLORS, d as TIMEPICKER_SELECTOR } from './sd-time-picker.config-DUq29Nhs.js';
|
|
3
3
|
import './component.field-DjKOoQuF.js';
|
|
4
4
|
|
|
@@ -209,7 +209,7 @@ const SdTimeRangePickerSelector = class {
|
|
|
209
209
|
'--selector-bg-disabled': TIMEPICKER_COLORS.bg.disabled,
|
|
210
210
|
'--selector-text-default': TIMEPICKER_COLORS.text.default,
|
|
211
211
|
};
|
|
212
|
-
return (h("div", { key: '
|
|
212
|
+
return (h("div", { key: 'd62a959d611bd9379c0f07cd29cea18cda66b1f6', class: "sd-time-range-picker-selector", style: cssVars }, this.renderPanel('start', '시작 시간'), h("div", { key: '23e668d0bae4a16fdc8af3be4a2c40bec2d7f1cd', class: "sd-time-range-picker-selector__divider" }), this.renderPanel('end', '종료 시간')));
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
SdTimeRangePickerSelector.style = sdTimeRangePickerSelectorCss();
|
|
@@ -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
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
3
|
import { f as formatTimeValue, a as formatTimeDisplay, p as parseTimeValue, T as TIMEPICKER_COLORS, b as TIMEPICKER_SIZE_MAP } from './sd-time-picker.config-DUq29Nhs.js';
|
|
4
4
|
import './component.field-DjKOoQuF.js';
|
|
@@ -181,9 +181,9 @@ const SdTimeRangePicker = class {
|
|
|
181
181
|
'--sd-system-color-field-border-focus': TIMEPICKER_COLORS.border.focus,
|
|
182
182
|
'--sd-system-color-field-bg-default': TIMEPICKER_COLORS.bg.default,
|
|
183
183
|
};
|
|
184
|
-
return (h("sd-field", { key: '
|
|
184
|
+
return (h("sd-field", { key: 'b709c0fe129ab899b60aa75e41bc949cb82184d7', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, status: this.status, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '7fffb9bb91a0fa8a8fdce7704c47aea2de0b509a', class: "sd-time-range-picker", ref: el => {
|
|
185
185
|
this.triggerRef = el;
|
|
186
|
-
} }, h("sd-time-picker-trigger", { key: '
|
|
186
|
+
} }, h("sd-time-picker-trigger", { key: 'b1f42c77070fc46da93aa66e681ee9504c999d11', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, size: this.size, onSdTriggerClick: this.handleTriggerClick, onSdClear: this.handleClear })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'ad91d531c8326a7e977f8c576e1026c4d6d0115c', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-time-range-picker-selector", { key: '0df138447c01169ea3e0462d012c4917ac7f904b', value: this.value, useMeridiem: this.effectiveUseMeridiem, minuteStep: this.minuteStep, "range-order": this.rangeOrder, onSdUpdate: this.handleSelect })))));
|
|
187
187
|
}
|
|
188
188
|
static get watchers() { return {
|
|
189
189
|
"isOpen": [{
|
|
@@ -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 DEFAULT_DURATION = 4000;
|
|
4
4
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -241,7 +241,7 @@ const SdToastContainer = class {
|
|
|
241
241
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
242
242
|
const indexMap = new Map();
|
|
243
243
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
244
|
-
return (h("div", { key: '
|
|
244
|
+
return (h("div", { key: '166ac21503b08853631fddaed047ab108a99570a', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
245
245
|
this.expanded = true;
|
|
246
246
|
this.pauseTimers();
|
|
247
247
|
}, onMouseLeave: () => {
|
|
@@ -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 toast = {
|
|
4
4
|
icon: "16",
|
|
@@ -91,12 +91,12 @@ const SdToast = class {
|
|
|
91
91
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
92
92
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
93
93
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '5d7511c3fe5a5ef828986ff624af7c52ff087cfa', style: {
|
|
95
95
|
'--sd-toast-bg': typeConfig.bg,
|
|
96
96
|
'--sd-toast-text': typeConfig.content,
|
|
97
97
|
'--sd-toast-icon': iconColor,
|
|
98
98
|
'--sd-toast-link': linkColor,
|
|
99
|
-
} }, h("div", { key: '
|
|
99
|
+
} }, h("div", { key: 'c35b42d7ece2030ed0e27abb0059f9b09c4edb9e', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '015223ab3e9d4296d3782afc0c6cfd60e54289c7', class: "sd-toast__icon" }, h("sd-icon", { key: '6d8e5d73fc026df0d8f75439b926bd027ca6a008', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: 'b601081818d66910d9d2f9984bfb9a473237b065', class: "sd-toast__content" }, h("span", { key: '6a17766f5a337cbc85179dc310fb400186f35ac6', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '80abceec8d37905073c9a8e43fcdd1a78978b5f6', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: '212516f32c46938d405e68dbb156cf139b39ffd8', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '9fd34f93f46d9a5a25ec52e0d164bbcaf4297e2e', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
SdToast.style = sdToastCss();
|
|
@@ -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 toggle = {
|
|
4
4
|
height: "28",
|
|
@@ -121,7 +121,7 @@ const SdToggle = class {
|
|
|
121
121
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
122
122
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
123
123
|
};
|
|
124
|
-
return (h("label", { key: '
|
|
124
|
+
return (h("label", { key: 'f78d58c01b943a5f22ace9cb14e50b0098cc8206', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '8b8d8e09b322a5093c57129f94c49f6951d78df7', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
const TooltipArrow = (props) => (h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
4
4
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ScrollAreaAxis } from './sd-scroll-area.config';
|
|
2
|
+
export declare class SdScrollArea {
|
|
3
|
+
/** 스크롤 방향. vertical=세로만, horizontal=가로만, both=양방향 */
|
|
4
|
+
axis: ScrollAreaAxis;
|
|
5
|
+
/** true면 스크롤바 트랙 배경을 채운다. 콘텐츠 영역 배경은 바뀌지 않는다. */
|
|
6
|
+
background: boolean;
|
|
7
|
+
/** true면 스크롤바와 콘텐츠 사이에 1px 구분선을 그린다. 컨테이너 테두리가 아니다. */
|
|
8
|
+
bordered: boolean;
|
|
9
|
+
/** viewport 최대 높이 (예: '400px'). 비우면 호스트 크기를 따른다. */
|
|
10
|
+
maxHeight: string;
|
|
11
|
+
/** viewport 최대 너비 (예: '480px'). 비우면 호스트 크기를 따른다. */
|
|
12
|
+
maxWidth: string;
|
|
13
|
+
render(): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type StepperSize = 'sm' | 'lg';
|
|
2
|
+
export type StepperItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const STEPPER_SIZES: Record<StepperSize, {
|
|
7
|
+
sequenceSize: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
lineHeight: string;
|
|
11
|
+
fontWeightActive: string;
|
|
12
|
+
fontWeightDefault: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const STEPPER_LAYOUT: {
|
|
15
|
+
containerGap: string;
|
|
16
|
+
itemGap: string;
|
|
17
|
+
dashWidth: string;
|
|
18
|
+
radius: string;
|
|
19
|
+
borderWidth: string;
|
|
20
|
+
iconSize: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const STEPPER_COLORS: {
|
|
23
|
+
dash: string;
|
|
24
|
+
sequenceBorder: {
|
|
25
|
+
active: string;
|
|
26
|
+
default: string;
|
|
27
|
+
completed: string;
|
|
28
|
+
witdh: string;
|
|
29
|
+
};
|
|
30
|
+
sequenceBg: {
|
|
31
|
+
active: string;
|
|
32
|
+
default: string;
|
|
33
|
+
completed: string;
|
|
34
|
+
};
|
|
35
|
+
sequenceText: {
|
|
36
|
+
active: string;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
text: {
|
|
40
|
+
active: string;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type StepperItem, type StepperSize } from './sd-stepper.config';
|
|
2
|
+
export declare class SdStepper {
|
|
3
|
+
/** 단계 목록 */
|
|
4
|
+
items: StepperItem[];
|
|
5
|
+
/** 현재 활성 단계 value */
|
|
6
|
+
value: string;
|
|
7
|
+
/** 크기 */
|
|
8
|
+
size: StepperSize;
|
|
9
|
+
/** 접근성 레이블 */
|
|
10
|
+
ariaLabel: string;
|
|
11
|
+
valueChanged(newValue: string): void;
|
|
12
|
+
private getItemValue;
|
|
13
|
+
private getActiveIndex;
|
|
14
|
+
private getState;
|
|
15
|
+
private buildCssVars;
|
|
16
|
+
private getStateVars;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|