@sellmate/design-system 1.20.0 → 1.21.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 +1 -1
- package/dist/cjs/{index-DXm0PH2A.js → index-C-F-JEv_.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-action-modal.cjs.entry.js +8 -2
- package/dist/cjs/sd-badge.cjs.entry.js +3 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +35 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +13 -4
- package/dist/cjs/sd-calendar_2.cjs.entry.js +17 -6
- package/dist/cjs/sd-callout.cjs.entry.js +4 -2
- package/dist/cjs/sd-card.cjs.entry.js +4 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +21 -12
- package/dist/cjs/sd-chip-input.cjs.entry.js +38 -4
- package/dist/cjs/sd-chip.cjs.entry.js +19 -2
- package/dist/cjs/sd-circle-progress.cjs.entry.js +6 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +27 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +13 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +209 -13
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +7 -2
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +11 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +70 -12
- package/dist/cjs/sd-form.cjs.entry.js +10 -2
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +54 -15
- package/dist/cjs/sd-guide.cjs.entry.js +9 -3
- package/dist/cjs/sd-key-value-table.cjs.entry.js +3 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +7 -4
- package/dist/cjs/sd-loading-container.cjs.entry.js +5 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +56 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +38 -9
- package/dist/cjs/sd-popover.cjs.entry.js +21 -5
- package/dist/cjs/sd-popup.cjs.entry.js +7 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +8 -2
- package/dist/cjs/sd-radio.cjs.entry.js +7 -2
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +18 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +56 -9
- package/dist/cjs/sd-switch.cjs.entry.js +6 -2
- package/dist/cjs/sd-table.cjs.entry.js +42 -7
- package/dist/cjs/sd-tabs.cjs.entry.js +8 -2
- package/dist/cjs/sd-td.cjs.entry.js +11 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +13 -4
- package/dist/cjs/sd-toast-container.cjs.entry.js +11 -2
- package/dist/cjs/sd-toast.cjs.entry.js +12 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +6 -2
- package/dist/cjs/{tooltipArrow-D3P3JC08.js → tooltipArrow-26hYtSrD.js} +1 -1
- package/dist/collection/components/assets/Close.js +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +13 -7
- package/dist/collection/components/sd-badge/sd-badge.js +3 -2
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +67 -34
- package/dist/collection/components/sd-button/sd-button.js +18 -10
- package/dist/collection/components/sd-calendar/sd-calendar.js +15 -9
- package/dist/collection/components/sd-callout/sd-callout.js +5 -3
- package/dist/collection/components/sd-card/sd-card.js +5 -3
- package/dist/collection/components/sd-checkbox/sd-checkbox.config.js +5 -3
- package/dist/collection/components/sd-checkbox/sd-checkbox.css +16 -0
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +5 -3
- package/dist/collection/components/sd-chip/sd-chip.js +35 -18
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +1 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +69 -35
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +9 -5
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +32 -17
- package/dist/collection/components/sd-date-box/sd-date-box.js +22 -12
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +12 -7
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +48 -25
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +11 -6
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +50 -26
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +20 -10
- package/dist/collection/components/sd-field/sd-field.js +51 -28
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +60 -30
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +32 -11
- package/dist/collection/components/sd-form/sd-form.js +17 -9
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +28 -13
- package/dist/collection/components/sd-guide/sd-guide.js +14 -8
- package/dist/collection/components/sd-icon/sd-icon.js +2 -1
- package/dist/collection/components/sd-input/sd-input.js +82 -42
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +4 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +10 -7
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +6 -4
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +17 -9
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +61 -7
- package/dist/collection/components/sd-number-input/sd-number-input.js +82 -43
- package/dist/collection/components/sd-pagination/sd-pagination.js +11 -7
- package/dist/collection/components/sd-popover/sd-popover.js +35 -19
- package/dist/collection/components/sd-popup/sd-popup.js +11 -7
- package/dist/collection/components/sd-portal/sd-portal.js +35 -14
- package/dist/collection/components/sd-radio/sd-radio.js +11 -6
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +13 -7
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +13 -7
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +16 -9
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +12 -8
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +22 -12
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +18 -10
- package/dist/collection/components/sd-select/sd-select.js +62 -33
- package/dist/collection/components/sd-switch/sd-switch.js +9 -5
- package/dist/collection/components/sd-table/sd-table.js +76 -41
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +4 -3
- package/dist/collection/components/sd-table/sd-td/sd-td.js +19 -10
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +29 -16
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +22 -11
- package/dist/collection/components/sd-tabs/sd-tabs.js +13 -7
- package/dist/collection/components/sd-tag/sd-tag.js +10 -7
- package/dist/collection/components/sd-text-link/sd-text-link.js +21 -12
- package/dist/collection/components/sd-textarea/sd-textarea.js +69 -35
- package/dist/collection/components/sd-toast/sd-toast.js +20 -11
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +19 -10
- package/dist/collection/components/sd-toggle/sd-toggle.js +9 -5
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +30 -16
- package/dist/components/index.js +1 -1
- package/dist/components/{p-pSthmtsz.js → p-4MIzxb0h.js} +1 -1
- package/dist/components/{p-CQozoo2-.js → p-B-Igud6n.js} +1 -1
- package/dist/components/{p-CtWfOIxb.js → p-B5VNSTAf.js} +1 -1
- package/dist/components/{p-5GcM22aW.js → p-B76pFg6k.js} +1 -1
- package/dist/components/{p-MJG6EZeP.js → p-BFlmHQm9.js} +1 -1
- package/dist/components/{p-DrSHJYop.js → p-BIHVGo10.js} +1 -1
- package/dist/components/{p-De7UsPPk.js → p-BQQC-6k4.js} +1 -1
- package/dist/{design-system/p-L_He_WSA.js → components/p-BRmilX-4.js} +1 -1
- package/dist/components/p-BVlg0BoC.js +1 -0
- package/dist/components/{p-Df1g_kVH.js → p-BjSMh85k.js} +1 -1
- package/dist/components/{p-BuFzlA0M.js → p-BrHnpCXR.js} +1 -1
- package/dist/components/{p-DaMzYzXI.js → p-Btj50AUe.js} +1 -1
- package/dist/components/p-BzsHwLh6.js +1 -0
- package/dist/components/{p-9Z-q6kKD.js → p-C1QezE7u.js} +1 -1
- package/dist/components/{p-Bd-fDbVE.js → p-C3mTIE8H.js} +1 -1
- package/dist/components/{p-CEhI4kUA.js → p-CBDBmMmw.js} +1 -1
- package/dist/components/p-CCCwPJ5p.js +1 -0
- package/dist/components/p-CEKu7cxA.js +1 -0
- package/dist/components/{p-Cfko62rU.js → p-CTw1Deo8.js} +1 -1
- package/dist/components/p-CTxZT3Je.js +1 -0
- package/dist/components/{p-CiEAVQT4.js → p-CZYTZeMe.js} +1 -1
- package/dist/components/{p-DAJIg-VD.js → p-CcwzTAJC.js} +1 -1
- package/dist/components/p-Cj_1bYZF.js +1 -0
- package/dist/components/{p-DpfXh55-.js → p-Cugxp5lo.js} +1 -1
- package/dist/components/{p-BzUU-npj.js → p-D4zy1T3V.js} +1 -1
- package/dist/components/{p-BHW1fnDC.js → p-DC5W8Uy1.js} +1 -1
- package/dist/components/{p-BZjIn1hr.js → p-DIc8C633.js} +1 -1
- package/dist/components/{p-BeYMZ1fR.js → p-DJY7lCe4.js} +1 -1
- package/dist/components/{p-ChncPmp-.js → p-DPXOBYhf.js} +1 -1
- package/dist/components/{p-nruUh8p1.js → p-DU0IkIvI.js} +1 -1
- package/dist/components/{p-DRgPF0Fp.js → p-DZikCqcw.js} +1 -1
- package/dist/components/{p-vTnMooAF.js → p-Dz7VXmIA.js} +1 -1
- package/dist/components/p-FA9fGvbL.js +1 -0
- package/dist/components/p-S2-XqY2R.js +1 -0
- package/dist/components/{p-CjYYBlrZ.js → p-YpyfqzoP.js} +1 -1
- package/dist/components/{p-E5buAge1.js → p-l7TaS8q9.js} +1 -1
- package/dist/components/{p-lmVlfugh.js → p-s_75vJTu.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-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-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.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/components/sd-tr.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-0f35cd21.entry.js +1 -0
- package/dist/design-system/{p-e9d1dbb5.entry.js → p-274dbc65.entry.js} +1 -1
- package/dist/design-system/{p-b291baab.entry.js → p-2ba0b35a.entry.js} +1 -1
- package/dist/design-system/{p-52f551a1.entry.js → p-2ca4902b.entry.js} +1 -1
- package/dist/design-system/p-2df32f8c.entry.js +1 -0
- package/dist/design-system/{p-cb80327c.entry.js → p-35da166a.entry.js} +1 -1
- package/dist/design-system/p-35e1e2fa.entry.js +1 -0
- package/dist/design-system/{p-6ce68bf2.entry.js → p-4bc0ce52.entry.js} +1 -1
- package/dist/design-system/p-4c1559c8.entry.js +1 -0
- package/dist/design-system/{p-9c38ee79.entry.js → p-4e44b45b.entry.js} +1 -1
- package/dist/design-system/{p-da4e2674.entry.js → p-4eeca0cb.entry.js} +1 -1
- package/dist/design-system/{p-646a7830.entry.js → p-4f69fde0.entry.js} +1 -1
- package/dist/design-system/{p-ccf1a3fc.entry.js → p-50b5cf37.entry.js} +1 -1
- package/dist/design-system/p-52e88677.entry.js +1 -0
- package/dist/design-system/{p-4acfc5f9.entry.js → p-552acf98.entry.js} +1 -1
- package/dist/design-system/{p-23006577.entry.js → p-563a8242.entry.js} +1 -1
- package/dist/design-system/{p-e3990243.entry.js → p-68687503.entry.js} +1 -1
- package/dist/design-system/{p-1f3c1cca.entry.js → p-6d8a4a23.entry.js} +1 -1
- package/dist/design-system/{p-d5032f31.entry.js → p-7c507d39.entry.js} +1 -1
- package/dist/design-system/{p-717eba5f.entry.js → p-88926a42.entry.js} +1 -1
- package/dist/design-system/{p-35d390f1.entry.js → p-90436be8.entry.js} +1 -1
- package/dist/design-system/{p-9289eb14.entry.js → p-99f33027.entry.js} +1 -1
- package/dist/design-system/{p-c47198fc.entry.js → p-9a010c12.entry.js} +1 -1
- package/dist/design-system/{p-54853a2b.entry.js → p-9dc0c2f9.entry.js} +1 -1
- package/dist/{components/p-Bg9XySrz.js → design-system/p-C7HJ-NfO.js} +2 -1
- package/dist/{components/p-0VCXAYrh.js → design-system/p-DUyBmuH_.js} +1 -1
- package/dist/design-system/{p-d5c3bac9.entry.js → p-a71a8b31.entry.js} +1 -1
- package/dist/design-system/{p-a4331364.entry.js → p-a80cc067.entry.js} +1 -1
- package/dist/design-system/{p-ae344950.entry.js → p-abcc9367.entry.js} +1 -1
- package/dist/design-system/p-ac81b46e.entry.js +1 -0
- package/dist/design-system/{p-08343698.entry.js → p-b881bbb6.entry.js} +1 -1
- package/dist/design-system/{p-2151e081.entry.js → p-bfba449b.entry.js} +1 -1
- package/dist/design-system/p-c684cd96.entry.js +1 -0
- package/dist/design-system/{p-b63b8df9.entry.js → p-c93c623f.entry.js} +1 -1
- package/dist/design-system/{p-98e0b332.entry.js → p-ccc85130.entry.js} +1 -1
- package/dist/design-system/{p-aa1c6202.entry.js → p-ce5df7ef.entry.js} +1 -1
- package/dist/design-system/{p-adfddf3b.entry.js → p-ce83eca1.entry.js} +1 -1
- package/dist/design-system/p-d5b535ad.entry.js +1 -0
- package/dist/design-system/{p-df7c721d.entry.js → p-e310f188.entry.js} +1 -1
- package/dist/design-system/{p-bdb7492c.entry.js → p-fc65bbe2.entry.js} +1 -1
- package/dist/design-system/p-fe5b8eaa.entry.js +1 -0
- package/dist/design-system/{p-a5a586da.entry.js → p-ff726fad.entry.js} +1 -1
- package/dist/esm/design-system.js +2 -2
- package/dist/esm/{index-CAxodB5I.js → index-C7HJ-NfO.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/sd-action-modal.entry.js +8 -2
- package/dist/esm/sd-badge.entry.js +3 -2
- package/dist/esm/sd-barcode-input.entry.js +35 -2
- package/dist/esm/sd-button_2.entry.js +13 -4
- package/dist/esm/sd-calendar_2.entry.js +17 -6
- package/dist/esm/sd-callout.entry.js +4 -2
- package/dist/esm/sd-card.entry.js +4 -2
- package/dist/esm/sd-checkbox.entry.js +21 -12
- package/dist/esm/sd-chip-input.entry.js +38 -4
- package/dist/esm/sd-chip.entry.js +19 -2
- package/dist/esm/sd-circle-progress.entry.js +6 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +27 -4
- package/dist/esm/sd-date-box.entry.js +13 -3
- package/dist/esm/sd-date-picker_7.entry.js +209 -13
- package/dist/esm/sd-date-range-picker-calendar.entry.js +7 -2
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +11 -1
- package/dist/esm/sd-field_3.entry.js +70 -12
- package/dist/esm/sd-form.entry.js +10 -2
- package/dist/esm/sd-ghost-button_3.entry.js +54 -15
- package/dist/esm/sd-guide.entry.js +9 -3
- package/dist/esm/sd-key-value-table.entry.js +3 -1
- package/dist/esm/sd-linear-progress.entry.js +7 -4
- package/dist/esm/sd-loading-container.entry.js +5 -3
- package/dist/esm/sd-modal-container.entry.js +56 -2
- package/dist/esm/sd-pagination_4.entry.js +38 -9
- package/dist/esm/sd-popover.entry.js +21 -5
- package/dist/esm/sd-popup.entry.js +7 -3
- package/dist/esm/sd-radio-button.entry.js +8 -2
- package/dist/esm/sd-radio.entry.js +7 -2
- package/dist/esm/sd-select-list-item_2.entry.js +18 -7
- package/dist/esm/sd-select_3.entry.js +56 -9
- package/dist/esm/sd-switch.entry.js +6 -2
- package/dist/esm/sd-table.entry.js +42 -7
- package/dist/esm/sd-tabs.entry.js +8 -2
- package/dist/esm/sd-td.entry.js +11 -2
- package/dist/esm/sd-text-link.entry.js +13 -4
- package/dist/esm/sd-toast-container.entry.js +11 -2
- package/dist/esm/sd-toast.entry.js +12 -3
- package/dist/esm/sd-toggle.entry.js +6 -2
- package/dist/esm/{tooltipArrow-DLr6VvUK.js → tooltipArrow-Bgf3crs7.js} +1 -1
- package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +6 -0
- package/dist/types/components/sd-badge/sd-badge.d.ts +1 -0
- package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +33 -0
- package/dist/types/components/sd-button/sd-button.d.ts +8 -0
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +6 -0
- package/dist/types/components/sd-callout/sd-callout.d.ts +2 -0
- package/dist/types/components/sd-card/sd-card.d.ts +2 -0
- package/dist/types/components/sd-checkbox/sd-checkbox.config.d.ts +2 -0
- package/dist/types/components/sd-chip/sd-chip.d.ts +17 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +33 -0
- package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +4 -0
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +15 -0
- package/dist/types/components/sd-date-box/sd-date-box.d.ts +10 -0
- package/dist/types/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.d.ts +5 -0
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +23 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.d.ts +5 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +24 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +10 -0
- package/dist/types/components/sd-field/sd-field.d.ts +23 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +30 -0
- package/dist/types/components/sd-floating-portal/sd-floating-portal.d.ts +12 -0
- package/dist/types/components/sd-form/sd-form.d.ts +8 -0
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +7 -0
- package/dist/types/components/sd-guide/sd-guide.d.ts +6 -0
- package/dist/types/components/sd-icon/sd-icon.d.ts +1 -0
- package/dist/types/components/sd-input/sd-input.d.ts +40 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +2 -0
- package/dist/types/components/sd-linear-progress/sd-linear-progress.d.ts +4 -0
- package/dist/types/components/sd-loading-container/sd-loading-container.d.ts +2 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +8 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +15 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +39 -0
- package/dist/types/components/sd-pagination/sd-pagination.d.ts +4 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +16 -0
- package/dist/types/components/sd-popup/sd-popup.d.ts +5 -0
- package/dist/types/components/sd-portal/sd-portal.d.ts +13 -0
- package/dist/types/components/sd-radio/sd-radio.d.ts +5 -0
- package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +6 -0
- package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +6 -0
- package/dist/types/components/sd-select/sd-select-list-item/sd-select-list-item.d.ts +7 -0
- package/dist/types/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.d.ts +4 -0
- package/dist/types/components/sd-select/sd-select-listbox/sd-select-listbox.d.ts +10 -0
- package/dist/types/components/sd-select/sd-select-trigger/sd-select-trigger.d.ts +8 -0
- package/dist/types/components/sd-select/sd-select.d.ts +29 -0
- package/dist/types/components/sd-switch/sd-switch.d.ts +4 -0
- package/dist/types/components/sd-table/sd-table.d.ts +35 -0
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +1 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +9 -0
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +13 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +11 -0
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +6 -0
- package/dist/types/components/sd-tag/sd-tag.d.ts +4 -0
- package/dist/types/components/sd-text-link/sd-text-link.d.ts +9 -0
- package/dist/types/components/sd-textarea/sd-textarea.d.ts +34 -0
- package/dist/types/components/sd-toast/sd-toast.d.ts +9 -0
- package/dist/types/components/sd-toast-container/sd-toast-container.d.ts +9 -0
- package/dist/types/components/sd-toggle/sd-toggle.d.ts +4 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +14 -0
- package/dist/types/components.d.ts +1827 -7
- package/hydrate/index.js +873 -126
- package/hydrate/index.mjs +873 -126
- package/package.json +1 -1
- package/dist/components/p-B7PHGGFH.js +0 -1
- package/dist/components/p-ClKABgST.js +0 -1
- package/dist/components/p-CvSqieCH.js +0 -1
- package/dist/components/p-DDR0VcRU.js +0 -1
- package/dist/components/p-DYOyb7rq.js +0 -1
- package/dist/components/p-DbLQoVx6.js +0 -1
- package/dist/components/p-P2jWtk8J.js +0 -1
- package/dist/design-system/p-316b8a08.entry.js +0 -1
- package/dist/design-system/p-3f7349ae.entry.js +0 -1
- package/dist/design-system/p-5039241c.entry.js +0 -1
- package/dist/design-system/p-5eaa12af.entry.js +0 -1
- package/dist/design-system/p-CAxodB5I.js +0 -2
- package/dist/design-system/p-aa312937.entry.js +0 -1
- package/dist/design-system/p-c995e6c3.entry.js +0 -1
- package/dist/design-system/p-eef6d4a3.entry.js +0 -1
- package/dist/design-system/p-faf7b64c.entry.js +0 -1
- package/dist/design-system/p-fd7abbfa.entry.js +0 -1
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { LOADING_MODAL_BUTTON_PRESET, LOADING_MODAL_COLORS, LOADING_MODAL_DEFAULT_BUTTON_LABEL, LOADING_MODAL_DEFAULT_MESSAGE, LOADING_MODAL_LAYOUT, LOADING_MODAL_TYPOGRAPHY, } from "./sd-loading-modal.config";
|
|
3
3
|
export class SdLoadingModal {
|
|
4
|
+
/** 모달 상태 (loading: 로딩 중, error: 에러) */
|
|
4
5
|
state = 'loading';
|
|
6
|
+
/** 표시할 메시지 (배열이면 여러 줄로 렌더링) */
|
|
5
7
|
message = '';
|
|
8
|
+
/** 하단 버튼 표시 여부 */
|
|
6
9
|
useButton = false;
|
|
10
|
+
/** 버튼 레이블 (없으면 state에 따른 기본값 사용) */
|
|
7
11
|
buttonLabel = '';
|
|
12
|
+
/** 모달 너비 */
|
|
8
13
|
width;
|
|
14
|
+
/** 모달 높이 */
|
|
9
15
|
height;
|
|
16
|
+
/** sd-circle-progress에 전달할 진행률 (0–100) */
|
|
10
17
|
progress;
|
|
18
|
+
/** 버튼 클릭 시 발생합니다. */
|
|
11
19
|
click;
|
|
12
20
|
get resolvedState() {
|
|
13
21
|
return this.state ?? 'loading';
|
|
@@ -46,7 +54,7 @@ export class SdLoadingModal {
|
|
|
46
54
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
47
55
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
48
56
|
};
|
|
49
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '0f3719ca22408ff2739f3997e693fe0e17cb32ab', style: hostStyle }, h("div", { key: '25501b81a4514315bd3b408bf958f549b099c5a5', class: "sd-loading-modal" }, h("div", { key: 'f5e6cf6334454a8455f95544a934fc245bddbbe6', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: '7629809572661e28f9564db1d06e882cb64580e8', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (h("div", { key: '36e1b978e1cc4ef56b8072d1d6dab83807eca951', class: "sd-loading-modal__button" }, h("sd-button", { key: '218cb045df7b0dafc49024fc905bd88c7b12fcff', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
50
58
|
}
|
|
51
59
|
static get is() { return "sd-loading-modal"; }
|
|
52
60
|
static get originalStyleUrls() {
|
|
@@ -80,7 +88,7 @@ export class SdLoadingModal {
|
|
|
80
88
|
"optional": false,
|
|
81
89
|
"docs": {
|
|
82
90
|
"tags": [],
|
|
83
|
-
"text": ""
|
|
91
|
+
"text": "\uBAA8\uB2EC \uC0C1\uD0DC (loading: \uB85C\uB529 \uC911, error: \uC5D0\uB7EC)"
|
|
84
92
|
},
|
|
85
93
|
"getter": false,
|
|
86
94
|
"setter": false,
|
|
@@ -100,7 +108,7 @@ export class SdLoadingModal {
|
|
|
100
108
|
"optional": false,
|
|
101
109
|
"docs": {
|
|
102
110
|
"tags": [],
|
|
103
|
-
"text": ""
|
|
111
|
+
"text": "\uD45C\uC2DC\uD560 \uBA54\uC2DC\uC9C0 (\uBC30\uC5F4\uC774\uBA74 \uC5EC\uB7EC \uC904\uB85C \uB80C\uB354\uB9C1)"
|
|
104
112
|
},
|
|
105
113
|
"getter": false,
|
|
106
114
|
"setter": false,
|
|
@@ -120,7 +128,7 @@ export class SdLoadingModal {
|
|
|
120
128
|
"optional": false,
|
|
121
129
|
"docs": {
|
|
122
130
|
"tags": [],
|
|
123
|
-
"text": ""
|
|
131
|
+
"text": "\uD558\uB2E8 \uBC84\uD2BC \uD45C\uC2DC \uC5EC\uBD80"
|
|
124
132
|
},
|
|
125
133
|
"getter": false,
|
|
126
134
|
"setter": false,
|
|
@@ -140,7 +148,7 @@ export class SdLoadingModal {
|
|
|
140
148
|
"optional": false,
|
|
141
149
|
"docs": {
|
|
142
150
|
"tags": [],
|
|
143
|
-
"text": ""
|
|
151
|
+
"text": "\uBC84\uD2BC \uB808\uC774\uBE14 (\uC5C6\uC73C\uBA74 state\uC5D0 \uB530\uB978 \uAE30\uBCF8\uAC12 \uC0AC\uC6A9)"
|
|
144
152
|
},
|
|
145
153
|
"getter": false,
|
|
146
154
|
"setter": false,
|
|
@@ -160,7 +168,7 @@ export class SdLoadingModal {
|
|
|
160
168
|
"optional": true,
|
|
161
169
|
"docs": {
|
|
162
170
|
"tags": [],
|
|
163
|
-
"text": ""
|
|
171
|
+
"text": "\uBAA8\uB2EC \uB108\uBE44"
|
|
164
172
|
},
|
|
165
173
|
"getter": false,
|
|
166
174
|
"setter": false,
|
|
@@ -179,7 +187,7 @@ export class SdLoadingModal {
|
|
|
179
187
|
"optional": true,
|
|
180
188
|
"docs": {
|
|
181
189
|
"tags": [],
|
|
182
|
-
"text": ""
|
|
190
|
+
"text": "\uBAA8\uB2EC \uB192\uC774"
|
|
183
191
|
},
|
|
184
192
|
"getter": false,
|
|
185
193
|
"setter": false,
|
|
@@ -198,7 +206,7 @@ export class SdLoadingModal {
|
|
|
198
206
|
"optional": true,
|
|
199
207
|
"docs": {
|
|
200
208
|
"tags": [],
|
|
201
|
-
"text": ""
|
|
209
|
+
"text": "sd-circle-progress\uC5D0 \uC804\uB2EC\uD560 \uC9C4\uD589\uB960 (0\u2013100)"
|
|
202
210
|
},
|
|
203
211
|
"getter": false,
|
|
204
212
|
"setter": false,
|
|
@@ -216,7 +224,7 @@ export class SdLoadingModal {
|
|
|
216
224
|
"composed": true,
|
|
217
225
|
"docs": {
|
|
218
226
|
"tags": [],
|
|
219
|
-
"text": ""
|
|
227
|
+
"text": "\uBC84\uD2BC \uD074\uB9AD \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
220
228
|
},
|
|
221
229
|
"complexType": {
|
|
222
230
|
"original": "void",
|
|
@@ -2,11 +2,14 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { isTopInteractiveModal, registerModal, requestCloseForModal, setModalInteractive, unregisterModal, } from "../../utils/modal-stack";
|
|
3
3
|
let modalIdCounter = 0;
|
|
4
4
|
const ANIMATION_DURATION = 350;
|
|
5
|
+
const FOCUSABLE_SELECTOR = 'a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])';
|
|
5
6
|
export class SdModalContainer {
|
|
6
7
|
el;
|
|
8
|
+
/** 마지막 모달이 닫힐 때 자신을 DOM에서 제거할지 여부 */
|
|
7
9
|
autoRemove = false;
|
|
8
10
|
entries = [];
|
|
9
11
|
layerRefs = new Map();
|
|
12
|
+
/** 확인 모달을 열고 모달 ID를 반환합니다. */
|
|
10
13
|
async open(options, modalRef) {
|
|
11
14
|
const id = `modal-${++modalIdCounter}`;
|
|
12
15
|
const modalEl = this.createConfirmModal(id, options);
|
|
@@ -21,6 +24,7 @@ export class SdModalContainer {
|
|
|
21
24
|
});
|
|
22
25
|
return id;
|
|
23
26
|
}
|
|
27
|
+
/** 로딩 모달을 열고 모달 ID를 반환합니다. */
|
|
24
28
|
async openLoading(options, modalRef) {
|
|
25
29
|
const id = `modal-${++modalIdCounter}`;
|
|
26
30
|
const modalEl = this.createLoadingModal(id, options);
|
|
@@ -35,6 +39,7 @@ export class SdModalContainer {
|
|
|
35
39
|
});
|
|
36
40
|
return id;
|
|
37
41
|
}
|
|
42
|
+
/** 커스텀 엘리먼트를 모달로 등록하고 모달 ID를 반환합니다. */
|
|
38
43
|
async createCustom(element, options, modalRef) {
|
|
39
44
|
const id = `modal-${++modalIdCounter}`;
|
|
40
45
|
element.setAttribute('data-modal-id', id);
|
|
@@ -68,6 +73,7 @@ export class SdModalContainer {
|
|
|
68
73
|
return;
|
|
69
74
|
this.entries = this.entries.map(e => (e.id === id ? { ...e, backdropVisible: true } : e));
|
|
70
75
|
modalEl.classList.add('sd-modal-container__modal--visible');
|
|
76
|
+
this.focusInitialElement(modalEl);
|
|
71
77
|
});
|
|
72
78
|
});
|
|
73
79
|
}
|
|
@@ -79,12 +85,14 @@ export class SdModalContainer {
|
|
|
79
85
|
unregisterModal(entry.id);
|
|
80
86
|
}
|
|
81
87
|
}
|
|
88
|
+
/** 지정한 ID의 모달을 닫습니다. */
|
|
82
89
|
async dismissById(id, reason) {
|
|
83
90
|
const entry = this.entries.find(e => e.id === id);
|
|
84
91
|
if (!entry)
|
|
85
92
|
return;
|
|
86
93
|
this.requestDismiss(id, reason);
|
|
87
94
|
}
|
|
95
|
+
/** 열려있는 모달의 props를 동적으로 업데이트합니다. */
|
|
88
96
|
async update(id, props) {
|
|
89
97
|
const entry = this.entries.find(e => e.id === id && !e.closing);
|
|
90
98
|
if (!entry)
|
|
@@ -97,7 +105,14 @@ export class SdModalContainer {
|
|
|
97
105
|
this.applyProps(entry.modalEl, props);
|
|
98
106
|
}
|
|
99
107
|
mountEntry(entry) {
|
|
100
|
-
|
|
108
|
+
const activeElement = typeof document !== 'undefined' ? document.activeElement : null;
|
|
109
|
+
this.entries = [
|
|
110
|
+
...(this.entries ?? []),
|
|
111
|
+
{
|
|
112
|
+
...entry,
|
|
113
|
+
previousActiveElement: activeElement,
|
|
114
|
+
},
|
|
115
|
+
];
|
|
101
116
|
registerModal({
|
|
102
117
|
id: entry.id,
|
|
103
118
|
persistent: entry.persistent,
|
|
@@ -155,6 +170,7 @@ export class SdModalContainer {
|
|
|
155
170
|
clearTimeout(currentEntry.dismissTimerId);
|
|
156
171
|
currentEntry.modalEl.remove();
|
|
157
172
|
unregisterModal(id);
|
|
173
|
+
this.restoreFocus(currentEntry.previousActiveElement);
|
|
158
174
|
currentEntry.modalRef._triggerDismissed();
|
|
159
175
|
this.layerRefs.delete(id);
|
|
160
176
|
this.entries = (this.entries ?? []).filter(e => e.id !== id);
|
|
@@ -240,6 +256,44 @@ export class SdModalContainer {
|
|
|
240
256
|
return;
|
|
241
257
|
requestCloseForModal(id);
|
|
242
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* 모달이 열릴 때 트리거 요소(버튼 등)에 남아 있던 포커스를 모달 내부로
|
|
261
|
+
* 이동시킨다. 이를 하지 않으면 모달을 연 버튼이 계속 포커스를 가져,
|
|
262
|
+
* Enter 키를 누를 때마다 트리거가 재실행되어 모달이 중첩으로 쌓인다.
|
|
263
|
+
*/
|
|
264
|
+
focusInitialElement(modalEl) {
|
|
265
|
+
const target = this.getInitialFocusTarget(modalEl);
|
|
266
|
+
target?.focus();
|
|
267
|
+
}
|
|
268
|
+
getInitialFocusTarget(modalEl) {
|
|
269
|
+
const explicit = modalEl.querySelector('[autofocus]');
|
|
270
|
+
if (explicit)
|
|
271
|
+
return explicit;
|
|
272
|
+
// 각 모달 타입의 메인(주요 액션) 버튼에 우선 포커스해 Enter 로 확정 가능하게 한다.
|
|
273
|
+
// confirm/action/loading 모두 대응한다.
|
|
274
|
+
const mainButton = modalEl.querySelector([
|
|
275
|
+
'.sd-confirm-modal__button sd-button:last-of-type button',
|
|
276
|
+
'.sd-action-modal__footer > sd-button button',
|
|
277
|
+
'.sd-loading-modal__button sd-button button',
|
|
278
|
+
].join(','));
|
|
279
|
+
if (mainButton)
|
|
280
|
+
return mainButton;
|
|
281
|
+
// 그 외(커스텀 모달 등): 헤더의 닫기(X) 버튼을 제외한 첫 포커스 가능 요소.
|
|
282
|
+
const focusables = Array.from(modalEl.querySelectorAll(FOCUSABLE_SELECTOR));
|
|
283
|
+
const preferred = focusables.find(el => !el.closest('.sd-action-modal__close, .sd-confirm-modal__close-button'));
|
|
284
|
+
if (focusables.length > 0)
|
|
285
|
+
return preferred ?? focusables[0];
|
|
286
|
+
if (!modalEl.hasAttribute('tabindex'))
|
|
287
|
+
modalEl.setAttribute('tabindex', '-1');
|
|
288
|
+
return modalEl;
|
|
289
|
+
}
|
|
290
|
+
restoreFocus(previousActiveElement) {
|
|
291
|
+
if (previousActiveElement &&
|
|
292
|
+
typeof previousActiveElement.focus === 'function' &&
|
|
293
|
+
previousActiveElement.isConnected) {
|
|
294
|
+
previousActiveElement.focus();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
243
297
|
shakeModal(modalEl) {
|
|
244
298
|
const cls = 'sd-modal-container__modal--shake';
|
|
245
299
|
modalEl.classList.remove(cls);
|
|
@@ -303,7 +357,7 @@ export class SdModalContainer {
|
|
|
303
357
|
"optional": false,
|
|
304
358
|
"docs": {
|
|
305
359
|
"tags": [],
|
|
306
|
-
"text": ""
|
|
360
|
+
"text": "\uB9C8\uC9C0\uB9C9 \uBAA8\uB2EC\uC774 \uB2EB\uD790 \uB54C \uC790\uC2E0\uC744 DOM\uC5D0\uC11C \uC81C\uAC70\uD560\uC9C0 \uC5EC\uBD80"
|
|
307
361
|
},
|
|
308
362
|
"getter": false,
|
|
309
363
|
"setter": false,
|
|
@@ -353,7 +407,7 @@ export class SdModalContainer {
|
|
|
353
407
|
"return": "Promise<string>"
|
|
354
408
|
},
|
|
355
409
|
"docs": {
|
|
356
|
-
"text": "",
|
|
410
|
+
"text": "\uD655\uC778 \uBAA8\uB2EC\uC744 \uC5F4\uACE0 \uBAA8\uB2EC ID\uB97C \uBC18\uD658\uD569\uB2C8\uB2E4.",
|
|
357
411
|
"tags": []
|
|
358
412
|
}
|
|
359
413
|
},
|
|
@@ -390,7 +444,7 @@ export class SdModalContainer {
|
|
|
390
444
|
"return": "Promise<string>"
|
|
391
445
|
},
|
|
392
446
|
"docs": {
|
|
393
|
-
"text": "",
|
|
447
|
+
"text": "\uB85C\uB529 \uBAA8\uB2EC\uC744 \uC5F4\uACE0 \uBAA8\uB2EC ID\uB97C \uBC18\uD658\uD569\uB2C8\uB2E4.",
|
|
394
448
|
"tags": []
|
|
395
449
|
}
|
|
396
450
|
},
|
|
@@ -435,7 +489,7 @@ export class SdModalContainer {
|
|
|
435
489
|
"return": "Promise<string>"
|
|
436
490
|
},
|
|
437
491
|
"docs": {
|
|
438
|
-
"text": "",
|
|
492
|
+
"text": "\uCEE4\uC2A4\uD140 \uC5D8\uB9AC\uBA3C\uD2B8\uB97C \uBAA8\uB2EC\uB85C \uB4F1\uB85D\uD558\uACE0 \uBAA8\uB2EC ID\uB97C \uBC18\uD658\uD569\uB2C8\uB2E4.",
|
|
439
493
|
"tags": []
|
|
440
494
|
}
|
|
441
495
|
},
|
|
@@ -460,7 +514,7 @@ export class SdModalContainer {
|
|
|
460
514
|
"return": "Promise<void>"
|
|
461
515
|
},
|
|
462
516
|
"docs": {
|
|
463
|
-
"text": "",
|
|
517
|
+
"text": "\uC9C0\uC815\uD55C ID\uC758 \uBAA8\uB2EC\uC744 \uB2EB\uC2B5\uB2C8\uB2E4.",
|
|
464
518
|
"tags": []
|
|
465
519
|
}
|
|
466
520
|
},
|
|
@@ -509,7 +563,7 @@ export class SdModalContainer {
|
|
|
509
563
|
"return": "Promise<void>"
|
|
510
564
|
},
|
|
511
565
|
"docs": {
|
|
512
|
-
"text": "",
|
|
566
|
+
"text": "\uC5F4\uB824\uC788\uB294 \uBAA8\uB2EC\uC758 props\uB97C \uB3D9\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uD569\uB2C8\uB2E4.",
|
|
513
567
|
"tags": []
|
|
514
568
|
}
|
|
515
569
|
}
|