@sellmate/design-system 1.20.1 → 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 +12 -3
- 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 +7 -1
- 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/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 +12 -6
- 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-D99vy8Ip.js → p-4MIzxb0h.js} +1 -1
- package/dist/components/{p-CQozoo2-.js → p-B-Igud6n.js} +1 -1
- package/dist/components/{p-CoqA9KgU.js → p-B5VNSTAf.js} +1 -1
- package/dist/components/{p-DertIGhs.js → p-B76pFg6k.js} +1 -1
- package/dist/components/{p-MJG6EZeP.js → p-BFlmHQm9.js} +1 -1
- package/dist/components/{p-Rwc_ltPn.js → p-BIHVGo10.js} +1 -1
- package/dist/components/{p-uSEbiD29.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-CZfsknba.js → p-BVlg0BoC.js} +1 -1
- package/dist/components/{p-CRwvv7YM.js → p-BjSMh85k.js} +1 -1
- package/dist/components/{p-gOIeNT-Z.js → p-BrHnpCXR.js} +1 -1
- package/dist/components/{p-Bz93hWXV.js → p-Btj50AUe.js} +1 -1
- package/dist/components/{p-CLlAhEDc.js → p-BzsHwLh6.js} +1 -1
- package/dist/components/{p-9Z-q6kKD.js → p-C1QezE7u.js} +1 -1
- package/dist/components/{p-Dl89_4C3.js → p-C3mTIE8H.js} +1 -1
- package/dist/components/{p-CTPImLDQ.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-5imde6N9.js → p-CTw1Deo8.js} +1 -1
- package/dist/components/p-CTxZT3Je.js +1 -0
- package/dist/components/{p-CB2A3pJ5.js → p-CZYTZeMe.js} +1 -1
- package/dist/components/{p-BZfVV3gu.js → p-CcwzTAJC.js} +1 -1
- package/dist/components/p-Cj_1bYZF.js +1 -0
- package/dist/components/{p-B5bya7Gp.js → p-Cugxp5lo.js} +1 -1
- package/dist/components/{p-CUR9smP5.js → p-D4zy1T3V.js} +1 -1
- package/dist/components/{p-BjcGzaFR.js → p-DC5W8Uy1.js} +1 -1
- package/dist/components/{p-DDAA-zcg.js → p-DIc8C633.js} +1 -1
- package/dist/components/{p-DIlNesBH.js → p-DJY7lCe4.js} +1 -1
- package/dist/components/{p-CrT06Uwc.js → p-DPXOBYhf.js} +1 -1
- package/dist/components/{p-BiBLp9_a.js → p-DU0IkIvI.js} +1 -1
- package/dist/components/{p-DZTxHJlP.js → p-DZikCqcw.js} +1 -1
- package/dist/components/{p-DNnI3Nru.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-ZvI5A-_t.js → p-YpyfqzoP.js} +1 -1
- package/dist/components/{p-CJ69QmR3.js → p-l7TaS8q9.js} +1 -1
- package/dist/components/{p-FTvXz0-a.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-7ed8c8f1.entry.js → p-d5b535ad.entry.js} +1 -1
- 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-17dcf0e4.entry.js → p-fe5b8eaa.entry.js} +1 -1
- 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 +12 -3
- 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 +7 -1
- 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 +6 -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 +823 -124
- package/hydrate/index.mjs +823 -124
- package/package.json +1 -1
- package/dist/components/p-B7PHGGFH.js +0 -1
- package/dist/components/p-CXeOxSQ-.js +0 -1
- package/dist/components/p-CvSqieCH.js +0 -1
- package/dist/components/p-P2jWtk8J.js +0 -1
- package/dist/components/p-xkRWGISE.js +0 -1
- package/dist/design-system/p-316b8a08.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-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
|
@@ -9,9 +9,13 @@ const BUTTON_WIDTH = {
|
|
|
9
9
|
5: 56,
|
|
10
10
|
};
|
|
11
11
|
export class SdPagination {
|
|
12
|
+
/** 현재 페이지 번호 */
|
|
12
13
|
currentPage = 1;
|
|
14
|
+
/** 마지막 페이지 번호 */
|
|
13
15
|
lastPage = 1;
|
|
16
|
+
/** true이면 현재/마지막 페이지만 표시하는 단순 모드 */
|
|
14
17
|
simple = false;
|
|
18
|
+
/** 페이지가 변경될 때 새 페이지 번호를 전달합니다. */
|
|
15
19
|
pageChange;
|
|
16
20
|
get pageNumbers() {
|
|
17
21
|
const start = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
|
|
@@ -83,13 +87,13 @@ export class SdPagination {
|
|
|
83
87
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
84
88
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
85
89
|
};
|
|
86
|
-
return (h("div", { key: '
|
|
90
|
+
return (h("div", { key: '733bf7952c4e38a65a1042c6a8784d6502c81667', class: {
|
|
87
91
|
'sd-pagination': true,
|
|
88
92
|
'sd-pagination--simple': this.simple,
|
|
89
|
-
}, style: cssVars }, h("div", { key: '
|
|
93
|
+
}, style: cssVars }, h("div", { key: '4c23bdfb9a58950a04107fc4b4c921bbafa4e601', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
90
94
|
'sd-pagination__item': true,
|
|
91
95
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
92
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
96
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'a0406c1f9cd13970d47f25ed88095ac1c684203c', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
93
97
|
}
|
|
94
98
|
static get is() { return "sd-pagination"; }
|
|
95
99
|
static get originalStyleUrls() {
|
|
@@ -116,7 +120,7 @@ export class SdPagination {
|
|
|
116
120
|
"optional": false,
|
|
117
121
|
"docs": {
|
|
118
122
|
"tags": [],
|
|
119
|
-
"text": ""
|
|
123
|
+
"text": "\uD604\uC7AC \uD398\uC774\uC9C0 \uBC88\uD638"
|
|
120
124
|
},
|
|
121
125
|
"getter": false,
|
|
122
126
|
"setter": false,
|
|
@@ -136,7 +140,7 @@ export class SdPagination {
|
|
|
136
140
|
"optional": false,
|
|
137
141
|
"docs": {
|
|
138
142
|
"tags": [],
|
|
139
|
-
"text": ""
|
|
143
|
+
"text": "\uB9C8\uC9C0\uB9C9 \uD398\uC774\uC9C0 \uBC88\uD638"
|
|
140
144
|
},
|
|
141
145
|
"getter": false,
|
|
142
146
|
"setter": false,
|
|
@@ -156,7 +160,7 @@ export class SdPagination {
|
|
|
156
160
|
"optional": false,
|
|
157
161
|
"docs": {
|
|
158
162
|
"tags": [],
|
|
159
|
-
"text": ""
|
|
163
|
+
"text": "true\uC774\uBA74 \uD604\uC7AC/\uB9C8\uC9C0\uB9C9 \uD398\uC774\uC9C0\uB9CC \uD45C\uC2DC\uD558\uB294 \uB2E8\uC21C \uBAA8\uB4DC"
|
|
160
164
|
},
|
|
161
165
|
"getter": false,
|
|
162
166
|
"setter": false,
|
|
@@ -175,7 +179,7 @@ export class SdPagination {
|
|
|
175
179
|
"composed": true,
|
|
176
180
|
"docs": {
|
|
177
181
|
"tags": [],
|
|
178
|
-
"text": ""
|
|
182
|
+
"text": "\uD398\uC774\uC9C0\uAC00 \uBCC0\uACBD\uB420 \uB54C \uC0C8 \uD398\uC774\uC9C0 \uBC88\uD638\uB97C \uC804\uB2EC\uD569\uB2C8\uB2E4."
|
|
179
183
|
},
|
|
180
184
|
"complexType": {
|
|
181
185
|
"original": "number",
|
|
@@ -3,22 +3,38 @@ import { TooltipArrow } from "../assets/tooltipArrow";
|
|
|
3
3
|
import popoverTokens from "../../tokens/generated/component.popover.json";
|
|
4
4
|
export class SdPopover {
|
|
5
5
|
el;
|
|
6
|
+
/** 팝오버 표시 여부 */
|
|
6
7
|
show = false;
|
|
8
|
+
/** 팝오버를 표시할 방향 */
|
|
7
9
|
placement = 'bottom';
|
|
10
|
+
/** 아이콘 트리거 색상 */
|
|
8
11
|
color = '#01BB4B';
|
|
12
|
+
/** 아이콘 트리거 아이콘명 */
|
|
9
13
|
icon = 'helpOutline';
|
|
14
|
+
/** 아이콘 트리거 크기 */
|
|
10
15
|
iconSize = 12;
|
|
16
|
+
/** 버튼 트리거 레이블 (있으면 아이콘 대신 버튼 렌더링) */
|
|
11
17
|
label = '';
|
|
18
|
+
/** 버튼 트리거 프리셋 */
|
|
12
19
|
name = 'primary_sm';
|
|
20
|
+
/** 버튼 트리거 우측 아이콘 */
|
|
13
21
|
rightIcon;
|
|
22
|
+
/** 스크린리더용 접근성 레이블 */
|
|
14
23
|
ariaLabel = '';
|
|
24
|
+
/** 비활성 상태 여부 */
|
|
15
25
|
disabled = false;
|
|
26
|
+
/** 버튼 type 속성 */
|
|
16
27
|
type = 'button';
|
|
28
|
+
/** 팝오버 메뉴 제목 */
|
|
17
29
|
menuTitle;
|
|
30
|
+
/** 팝오버 하단 좌측 링크 옵션 */
|
|
18
31
|
leftLink;
|
|
32
|
+
/** 팝오버 하단 버튼 옵션 */
|
|
19
33
|
button;
|
|
34
|
+
/** 팝오버 메뉴에 추가할 클래스 */
|
|
20
35
|
menuClass = '';
|
|
21
36
|
slotContentHTML = '';
|
|
37
|
+
/** 팝오버 표시 상태가 바뀔 때 발생합니다. */
|
|
22
38
|
showChange;
|
|
23
39
|
buttonEl;
|
|
24
40
|
setShow = (next) => {
|
|
@@ -53,17 +69,17 @@ export class SdPopover {
|
|
|
53
69
|
const leftLink = this.leftLink;
|
|
54
70
|
const button = this.button;
|
|
55
71
|
const hasFooter = !!leftLink || !!button;
|
|
56
|
-
return (h(Fragment, { key: '
|
|
72
|
+
return (h(Fragment, { key: '94fcf54c8b20ffd1bcf2c7f540de31e1f41154fa' }, this.label !== '' ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel || this.label || icon || 'Open popover', disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (h("sd-floating-portal", { key: '9f1585f2d268452f3d5c713e30ff865c3fc5fbac', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, h("div", { key: '2cd2103f56c45364df5db9b73a2d89447b7c2bcc', class: {
|
|
57
73
|
'sd-floating-menu': true,
|
|
58
74
|
'sd-floating-menu--popover': true,
|
|
59
75
|
[`sd-floating-menu--${placement}`]: true,
|
|
60
76
|
[menuClass]: menuClass !== '',
|
|
61
77
|
}, style: {
|
|
62
78
|
'--sd-floating-bg': popoverTokens.popover.default.bg,
|
|
63
|
-
} }, h("i", { key: '
|
|
79
|
+
} }, h("i", { key: '5fd6c333790d3bb45bf4d43391ed1457d5eb54c3', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: '062b11e3b6cee1e87f20064ab62a589a23f3eb26' })), h("div", { key: 'b863abd8e31c8ce0dfddfdb25b6a49be69f34da1', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '1873c595d7ad91b3a7c71d979414820694c23ff5', class: "sd-floating-menu__title" }, this.menuTitle), this.slotContentHTML && (h("div", { key: '7a197b43d34a59ec298ed5e733cae0f3390c87a3', class: "sd-floating-menu__messages", innerHTML: this.slotContentHTML })), hasFooter && (h("div", { key: 'be9034b4150421be08c17978beba643e73c5568d', class: {
|
|
64
80
|
'sd-floating-menu__buttons': true,
|
|
65
81
|
'sd-floating-menu__buttons--with-link': !!leftLink,
|
|
66
|
-
} }, leftLink && (h("sd-text-link", { key: '
|
|
82
|
+
} }, leftLink && (h("sd-text-link", { key: '890a163609b8544450ad1b8c009648d73ef0d269', class: "sd-floating-menu__left-link", label: leftLink.label, icon: leftLink.icon ?? '', iconColor: leftLink.iconColor ?? '', rightArrow: leftLink.rightArrow ?? 'none', underline: !!leftLink.underline, disabled: !!leftLink.disabled, onSdClick: leftLink.onClick })), button && (h("sd-button", { key: '128270add7ea99f7c9f61abe9f2a113f152465d8', name: button.name ?? 'secondary_xs', label: button.label, icon: button.icon, rightIcon: button.rightIcon, ariaLabel: button.ariaLabel || button.label || button.icon || 'Open popover', disabled: button.disabled, type: button.type, onSdClick: button.onClick }))))), h("sd-ghost-button", { key: 'bc4c4d982da8fe72c85cd4ae7ba6cd2e09154164', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose }))))));
|
|
67
83
|
}
|
|
68
84
|
static get is() { return "sd-popover"; }
|
|
69
85
|
static get originalStyleUrls() {
|
|
@@ -90,7 +106,7 @@ export class SdPopover {
|
|
|
90
106
|
"optional": false,
|
|
91
107
|
"docs": {
|
|
92
108
|
"tags": [],
|
|
93
|
-
"text": ""
|
|
109
|
+
"text": "\uD31D\uC624\uBC84 \uD45C\uC2DC \uC5EC\uBD80"
|
|
94
110
|
},
|
|
95
111
|
"getter": false,
|
|
96
112
|
"setter": false,
|
|
@@ -110,7 +126,7 @@ export class SdPopover {
|
|
|
110
126
|
"optional": false,
|
|
111
127
|
"docs": {
|
|
112
128
|
"tags": [],
|
|
113
|
-
"text": ""
|
|
129
|
+
"text": "\uD31D\uC624\uBC84\uB97C \uD45C\uC2DC\uD560 \uBC29\uD5A5"
|
|
114
130
|
},
|
|
115
131
|
"getter": false,
|
|
116
132
|
"setter": false,
|
|
@@ -130,7 +146,7 @@ export class SdPopover {
|
|
|
130
146
|
"optional": false,
|
|
131
147
|
"docs": {
|
|
132
148
|
"tags": [],
|
|
133
|
-
"text": ""
|
|
149
|
+
"text": "\uC544\uC774\uCF58 \uD2B8\uB9AC\uAC70 \uC0C9\uC0C1"
|
|
134
150
|
},
|
|
135
151
|
"getter": false,
|
|
136
152
|
"setter": false,
|
|
@@ -155,7 +171,7 @@ export class SdPopover {
|
|
|
155
171
|
"optional": false,
|
|
156
172
|
"docs": {
|
|
157
173
|
"tags": [],
|
|
158
|
-
"text": ""
|
|
174
|
+
"text": "\uC544\uC774\uCF58 \uD2B8\uB9AC\uAC70 \uC544\uC774\uCF58\uBA85"
|
|
159
175
|
},
|
|
160
176
|
"getter": false,
|
|
161
177
|
"setter": false,
|
|
@@ -175,7 +191,7 @@ export class SdPopover {
|
|
|
175
191
|
"optional": false,
|
|
176
192
|
"docs": {
|
|
177
193
|
"tags": [],
|
|
178
|
-
"text": ""
|
|
194
|
+
"text": "\uC544\uC774\uCF58 \uD2B8\uB9AC\uAC70 \uD06C\uAE30"
|
|
179
195
|
},
|
|
180
196
|
"getter": false,
|
|
181
197
|
"setter": false,
|
|
@@ -195,7 +211,7 @@ export class SdPopover {
|
|
|
195
211
|
"optional": false,
|
|
196
212
|
"docs": {
|
|
197
213
|
"tags": [],
|
|
198
|
-
"text": ""
|
|
214
|
+
"text": "\uBC84\uD2BC \uD2B8\uB9AC\uAC70 \uB808\uC774\uBE14 (\uC788\uC73C\uBA74 \uC544\uC774\uCF58 \uB300\uC2E0 \uBC84\uD2BC \uB80C\uB354\uB9C1)"
|
|
199
215
|
},
|
|
200
216
|
"getter": false,
|
|
201
217
|
"setter": false,
|
|
@@ -222,7 +238,7 @@ export class SdPopover {
|
|
|
222
238
|
"optional": false,
|
|
223
239
|
"docs": {
|
|
224
240
|
"tags": [],
|
|
225
|
-
"text": ""
|
|
241
|
+
"text": "\uBC84\uD2BC \uD2B8\uB9AC\uAC70 \uD504\uB9AC\uC14B"
|
|
226
242
|
},
|
|
227
243
|
"getter": false,
|
|
228
244
|
"setter": false,
|
|
@@ -247,7 +263,7 @@ export class SdPopover {
|
|
|
247
263
|
"optional": true,
|
|
248
264
|
"docs": {
|
|
249
265
|
"tags": [],
|
|
250
|
-
"text": ""
|
|
266
|
+
"text": "\uBC84\uD2BC \uD2B8\uB9AC\uAC70 \uC6B0\uCE21 \uC544\uC774\uCF58"
|
|
251
267
|
},
|
|
252
268
|
"getter": false,
|
|
253
269
|
"setter": false,
|
|
@@ -266,7 +282,7 @@ export class SdPopover {
|
|
|
266
282
|
"optional": false,
|
|
267
283
|
"docs": {
|
|
268
284
|
"tags": [],
|
|
269
|
-
"text": ""
|
|
285
|
+
"text": "\uC2A4\uD06C\uB9B0\uB9AC\uB354\uC6A9 \uC811\uADFC\uC131 \uB808\uC774\uBE14"
|
|
270
286
|
},
|
|
271
287
|
"getter": false,
|
|
272
288
|
"setter": false,
|
|
@@ -286,7 +302,7 @@ export class SdPopover {
|
|
|
286
302
|
"optional": false,
|
|
287
303
|
"docs": {
|
|
288
304
|
"tags": [],
|
|
289
|
-
"text": ""
|
|
305
|
+
"text": "\uBE44\uD65C\uC131 \uC0C1\uD0DC \uC5EC\uBD80"
|
|
290
306
|
},
|
|
291
307
|
"getter": false,
|
|
292
308
|
"setter": false,
|
|
@@ -313,7 +329,7 @@ export class SdPopover {
|
|
|
313
329
|
"optional": false,
|
|
314
330
|
"docs": {
|
|
315
331
|
"tags": [],
|
|
316
|
-
"text": ""
|
|
332
|
+
"text": "\uBC84\uD2BC type \uC18D\uC131"
|
|
317
333
|
},
|
|
318
334
|
"getter": false,
|
|
319
335
|
"setter": false,
|
|
@@ -333,7 +349,7 @@ export class SdPopover {
|
|
|
333
349
|
"optional": true,
|
|
334
350
|
"docs": {
|
|
335
351
|
"tags": [],
|
|
336
|
-
"text": ""
|
|
352
|
+
"text": "\uD31D\uC624\uBC84 \uBA54\uB274 \uC81C\uBAA9"
|
|
337
353
|
},
|
|
338
354
|
"getter": false,
|
|
339
355
|
"setter": false,
|
|
@@ -358,7 +374,7 @@ export class SdPopover {
|
|
|
358
374
|
"optional": true,
|
|
359
375
|
"docs": {
|
|
360
376
|
"tags": [],
|
|
361
|
-
"text": ""
|
|
377
|
+
"text": "\uD31D\uC624\uBC84 \uD558\uB2E8 \uC88C\uCE21 \uB9C1\uD06C \uC635\uC158"
|
|
362
378
|
},
|
|
363
379
|
"getter": false,
|
|
364
380
|
"setter": false
|
|
@@ -381,7 +397,7 @@ export class SdPopover {
|
|
|
381
397
|
"optional": true,
|
|
382
398
|
"docs": {
|
|
383
399
|
"tags": [],
|
|
384
|
-
"text": ""
|
|
400
|
+
"text": "\uD31D\uC624\uBC84 \uD558\uB2E8 \uBC84\uD2BC \uC635\uC158"
|
|
385
401
|
},
|
|
386
402
|
"getter": false,
|
|
387
403
|
"setter": false
|
|
@@ -398,7 +414,7 @@ export class SdPopover {
|
|
|
398
414
|
"optional": false,
|
|
399
415
|
"docs": {
|
|
400
416
|
"tags": [],
|
|
401
|
-
"text": ""
|
|
417
|
+
"text": "\uD31D\uC624\uBC84 \uBA54\uB274\uC5D0 \uCD94\uAC00\uD560 \uD074\uB798\uC2A4"
|
|
402
418
|
},
|
|
403
419
|
"getter": false,
|
|
404
420
|
"setter": false,
|
|
@@ -422,7 +438,7 @@ export class SdPopover {
|
|
|
422
438
|
"composed": true,
|
|
423
439
|
"docs": {
|
|
424
440
|
"tags": [],
|
|
425
|
-
"text": ""
|
|
441
|
+
"text": "\uD31D\uC624\uBC84 \uD45C\uC2DC \uC0C1\uD0DC\uAC00 \uBC14\uB014 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
426
442
|
},
|
|
427
443
|
"complexType": {
|
|
428
444
|
"original": "boolean",
|
|
@@ -5,12 +5,16 @@ const DEFAULT_SUBMIT_BUTTON_PROPS = {
|
|
|
5
5
|
label: '확인',
|
|
6
6
|
};
|
|
7
7
|
export class SdPopup {
|
|
8
|
+
/** 팝업 헤더에 표시할 제목 */
|
|
8
9
|
popupTitle = '';
|
|
10
|
+
/** 팝업 타입 */
|
|
9
11
|
type = 'default';
|
|
10
12
|
// 기본 footer 표시가 자연스러운 UX. prop 이름 변경(hideFooter 등)은 public API breaking 이라 별도 이슈로 분리.
|
|
11
|
-
|
|
13
|
+
/** 하단 footer 영역 표시 여부 */
|
|
12
14
|
useFooter = true;
|
|
15
|
+
/** 확인 버튼 커스텀 props */
|
|
13
16
|
submitButtonProps;
|
|
17
|
+
/** 확인 버튼 클릭 시 발생합니다. */
|
|
14
18
|
submit;
|
|
15
19
|
render() {
|
|
16
20
|
const cssVars = {
|
|
@@ -36,7 +40,7 @@ export class SdPopup {
|
|
|
36
40
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
37
41
|
...this.submitButtonProps,
|
|
38
42
|
};
|
|
39
|
-
return (h("div", { key: '
|
|
43
|
+
return (h("div", { key: '4455120f02fc1df1b1661062a22f3d82508627c4', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: '96a5e7cdc21fa239e4275f4b57379f36246048f4', class: "sd-popup__header" }, h("h2", { key: 'cdf8d05561f470fef31c46e6508e1e0c41aa7fa9', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'ddb32332f8822634f544f2fa5a246c5f37c7fcc2', class: "sd-popup__body" }, h("slot", { key: '8f36daf8c918da6babcbb4383957e979930bfd73' })), this.useFooter && (h("footer", { key: '2b84ed134a8d53633bb4feb7ab423e58955dfdae', class: "sd-popup__footer" }, h("div", { key: '95e55875b38102ff809e752a3cc647dc830699a9', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: 'fbd86c77e1117018793279c9b90fd8e2f6db4934', name: "footer-left" })), h("sd-button", { key: 'e8710c15d20e52d0476e7f656e800cda008187d8', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
40
44
|
}
|
|
41
45
|
static get is() { return "sd-popup"; }
|
|
42
46
|
static get originalStyleUrls() {
|
|
@@ -63,7 +67,7 @@ export class SdPopup {
|
|
|
63
67
|
"optional": false,
|
|
64
68
|
"docs": {
|
|
65
69
|
"tags": [],
|
|
66
|
-
"text": ""
|
|
70
|
+
"text": "\uD31D\uC5C5 \uD5E4\uB354\uC5D0 \uD45C\uC2DC\uD560 \uC81C\uBAA9"
|
|
67
71
|
},
|
|
68
72
|
"getter": false,
|
|
69
73
|
"setter": false,
|
|
@@ -90,7 +94,7 @@ export class SdPopup {
|
|
|
90
94
|
"optional": false,
|
|
91
95
|
"docs": {
|
|
92
96
|
"tags": [],
|
|
93
|
-
"text": ""
|
|
97
|
+
"text": "\uD31D\uC5C5 \uD0C0\uC785"
|
|
94
98
|
},
|
|
95
99
|
"getter": false,
|
|
96
100
|
"setter": false,
|
|
@@ -110,7 +114,7 @@ export class SdPopup {
|
|
|
110
114
|
"optional": false,
|
|
111
115
|
"docs": {
|
|
112
116
|
"tags": [],
|
|
113
|
-
"text": ""
|
|
117
|
+
"text": "\uD558\uB2E8 footer \uC601\uC5ED \uD45C\uC2DC \uC5EC\uBD80"
|
|
114
118
|
},
|
|
115
119
|
"getter": false,
|
|
116
120
|
"setter": false,
|
|
@@ -137,7 +141,7 @@ export class SdPopup {
|
|
|
137
141
|
"optional": true,
|
|
138
142
|
"docs": {
|
|
139
143
|
"tags": [],
|
|
140
|
-
"text": ""
|
|
144
|
+
"text": "\uD655\uC778 \uBC84\uD2BC \uCEE4\uC2A4\uD140 props"
|
|
141
145
|
},
|
|
142
146
|
"getter": false,
|
|
143
147
|
"setter": false
|
|
@@ -153,7 +157,7 @@ export class SdPopup {
|
|
|
153
157
|
"composed": true,
|
|
154
158
|
"docs": {
|
|
155
159
|
"tags": [],
|
|
156
|
-
"text": ""
|
|
160
|
+
"text": "\uD655\uC778 \uBC84\uD2BC \uD074\uB9AD \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
157
161
|
},
|
|
158
162
|
"complexType": {
|
|
159
163
|
"original": "void",
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SdPortal {
|
|
3
3
|
hostEl;
|
|
4
|
+
/** 포탈 콘텐츠를 마운트할 대상 (CSS 선택자 또는 HTMLElement) */
|
|
4
5
|
to = 'body';
|
|
6
|
+
/** 위치 기준이 되는 부모 엘리먼트 */
|
|
5
7
|
parentRef = null;
|
|
8
|
+
/** [x, y] 오프셋 (px) */
|
|
6
9
|
offset = [0, 4];
|
|
10
|
+
/** 뷰포트 경계 여백 (px) */
|
|
7
11
|
viewportPadding = 0;
|
|
8
|
-
|
|
12
|
+
/** z-index */
|
|
13
|
+
zIndex = 996;
|
|
14
|
+
/** 표시 여부 */
|
|
9
15
|
open = false;
|
|
16
|
+
/** 콘텐츠를 표시할 방향 (공간이 부족하면 자동으로 반대 방향으로 전환) */
|
|
10
17
|
placement = 'bottom';
|
|
18
|
+
/** 외부 클릭 등으로 닫힐 때 발생합니다. */
|
|
11
19
|
close;
|
|
12
20
|
container;
|
|
13
21
|
wrapper;
|
|
@@ -46,13 +54,27 @@ export class SdPortal {
|
|
|
46
54
|
const el = typeof this.to === 'string' ? document.querySelector(this.to) : this.to;
|
|
47
55
|
return el instanceof HTMLElement ? el : document.body;
|
|
48
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* 트리거(parentRef)가 모달 내부에 있으면 해당 모달보다 위에, 아니면 페이지 기본값에 둔다.
|
|
59
|
+
* 페이지 기본값(996)은 모달(997)보다 낮아, 모달 뒤의 페이지 포털이 모달 위로 떠오르지 않는다.
|
|
60
|
+
*/
|
|
61
|
+
resolveZIndex() {
|
|
62
|
+
const base = this.zIndex ?? 996;
|
|
63
|
+
const layer = this.parentRef?.closest('.sd-modal-container__layer');
|
|
64
|
+
if (!layer)
|
|
65
|
+
return base;
|
|
66
|
+
const container = layer.closest('.sd-modal-container');
|
|
67
|
+
const z = container instanceof HTMLElement ? parseInt(getComputedStyle(container).zIndex, 10) : NaN;
|
|
68
|
+
const modalZIndex = Number.isFinite(z) ? z : 997;
|
|
69
|
+
return Math.max(base, modalZIndex + 1);
|
|
70
|
+
}
|
|
49
71
|
createWrapper() {
|
|
50
72
|
this.wrapper = document.createElement('div');
|
|
51
73
|
Object.assign(this.wrapper.style, {
|
|
52
74
|
position: 'fixed',
|
|
53
75
|
top: '0',
|
|
54
76
|
left: '0',
|
|
55
|
-
zIndex:
|
|
77
|
+
zIndex: this.resolveZIndex().toString(),
|
|
56
78
|
opacity: '0',
|
|
57
79
|
transition: 'opacity 0.15s ease-out',
|
|
58
80
|
boxSizing: 'border-box',
|
|
@@ -218,8 +240,7 @@ export class SdPortal {
|
|
|
218
240
|
return scrollParents;
|
|
219
241
|
}
|
|
220
242
|
isInsideTarget(target) {
|
|
221
|
-
return !!(
|
|
222
|
-
(this.parentRef?.contains(target)));
|
|
243
|
+
return !!(this.wrapper?.contains(target) || this.parentRef?.contains(target));
|
|
223
244
|
}
|
|
224
245
|
// 외부 클릭 감지
|
|
225
246
|
handleMouseDown(e) {
|
|
@@ -235,7 +256,7 @@ export class SdPortal {
|
|
|
235
256
|
this.close.emit();
|
|
236
257
|
}
|
|
237
258
|
render() {
|
|
238
|
-
return h("slot", { key: '
|
|
259
|
+
return h("slot", { key: 'e4523bbb6fd56072c4f5a4dc241ab8a3ac0ea1bf' });
|
|
239
260
|
}
|
|
240
261
|
static get is() { return "sd-portal"; }
|
|
241
262
|
static get properties() {
|
|
@@ -257,7 +278,7 @@ export class SdPortal {
|
|
|
257
278
|
"optional": false,
|
|
258
279
|
"docs": {
|
|
259
280
|
"tags": [],
|
|
260
|
-
"text": ""
|
|
281
|
+
"text": "\uD3EC\uD0C8 \uCF58\uD150\uCE20\uB97C \uB9C8\uC6B4\uD2B8\uD560 \uB300\uC0C1 (CSS \uC120\uD0DD\uC790 \uB610\uB294 HTMLElement)"
|
|
261
282
|
},
|
|
262
283
|
"getter": false,
|
|
263
284
|
"setter": false,
|
|
@@ -282,7 +303,7 @@ export class SdPortal {
|
|
|
282
303
|
"optional": false,
|
|
283
304
|
"docs": {
|
|
284
305
|
"tags": [],
|
|
285
|
-
"text": ""
|
|
306
|
+
"text": "\uC704\uCE58 \uAE30\uC900\uC774 \uB418\uB294 \uBD80\uBAA8 \uC5D8\uB9AC\uBA3C\uD2B8"
|
|
286
307
|
},
|
|
287
308
|
"getter": false,
|
|
288
309
|
"setter": false,
|
|
@@ -300,7 +321,7 @@ export class SdPortal {
|
|
|
300
321
|
"optional": false,
|
|
301
322
|
"docs": {
|
|
302
323
|
"tags": [],
|
|
303
|
-
"text": ""
|
|
324
|
+
"text": "[x, y] \uC624\uD504\uC14B (px)"
|
|
304
325
|
},
|
|
305
326
|
"getter": false,
|
|
306
327
|
"setter": false,
|
|
@@ -318,7 +339,7 @@ export class SdPortal {
|
|
|
318
339
|
"optional": false,
|
|
319
340
|
"docs": {
|
|
320
341
|
"tags": [],
|
|
321
|
-
"text": ""
|
|
342
|
+
"text": "\uBDF0\uD3EC\uD2B8 \uACBD\uACC4 \uC5EC\uBC31 (px)"
|
|
322
343
|
},
|
|
323
344
|
"getter": false,
|
|
324
345
|
"setter": false,
|
|
@@ -338,13 +359,13 @@ export class SdPortal {
|
|
|
338
359
|
"optional": false,
|
|
339
360
|
"docs": {
|
|
340
361
|
"tags": [],
|
|
341
|
-
"text": ""
|
|
362
|
+
"text": "z-index"
|
|
342
363
|
},
|
|
343
364
|
"getter": false,
|
|
344
365
|
"setter": false,
|
|
345
366
|
"reflect": false,
|
|
346
367
|
"attribute": "z-index",
|
|
347
|
-
"defaultValue": "
|
|
368
|
+
"defaultValue": "996"
|
|
348
369
|
},
|
|
349
370
|
"open": {
|
|
350
371
|
"type": "boolean",
|
|
@@ -358,7 +379,7 @@ export class SdPortal {
|
|
|
358
379
|
"optional": false,
|
|
359
380
|
"docs": {
|
|
360
381
|
"tags": [],
|
|
361
|
-
"text": ""
|
|
382
|
+
"text": "\uD45C\uC2DC \uC5EC\uBD80"
|
|
362
383
|
},
|
|
363
384
|
"getter": false,
|
|
364
385
|
"setter": false,
|
|
@@ -378,7 +399,7 @@ export class SdPortal {
|
|
|
378
399
|
"optional": false,
|
|
379
400
|
"docs": {
|
|
380
401
|
"tags": [],
|
|
381
|
-
"text": ""
|
|
402
|
+
"text": "\uCF58\uD150\uCE20\uB97C \uD45C\uC2DC\uD560 \uBC29\uD5A5 (\uACF5\uAC04\uC774 \uBD80\uC871\uD558\uBA74 \uC790\uB3D9\uC73C\uB85C \uBC18\uB300 \uBC29\uD5A5\uC73C\uB85C \uC804\uD658)"
|
|
382
403
|
},
|
|
383
404
|
"getter": false,
|
|
384
405
|
"setter": false,
|
|
@@ -397,7 +418,7 @@ export class SdPortal {
|
|
|
397
418
|
"composed": true,
|
|
398
419
|
"docs": {
|
|
399
420
|
"tags": [],
|
|
400
|
-
"text": ""
|
|
421
|
+
"text": "\uC678\uBD80 \uD074\uB9AD \uB4F1\uC73C\uB85C \uB2EB\uD790 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
401
422
|
},
|
|
402
423
|
"complexType": {
|
|
403
424
|
"original": "void",
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { RADIO_COLORS, RADIO_LAYOUT, RADIO_TYPOGRAPHY } from "./sd-radio.config";
|
|
3
3
|
export class SdRadio {
|
|
4
|
+
/** 라디오 그룹의 현재 선택 값 */
|
|
4
5
|
value;
|
|
6
|
+
/** 이 라디오 아이템의 값 */
|
|
5
7
|
val;
|
|
8
|
+
/** 비활성 상태 여부 */
|
|
6
9
|
disabled = false;
|
|
10
|
+
/** 표시할 라벨 텍스트 */
|
|
7
11
|
label;
|
|
12
|
+
/** 선택 값이 변경될 때 발생합니다. */
|
|
8
13
|
update;
|
|
9
14
|
valueChanged(newValue) {
|
|
10
15
|
this.value = newValue;
|
|
@@ -47,7 +52,7 @@ export class SdRadio {
|
|
|
47
52
|
'--sd-radio-label-color': RADIO_COLORS.label.default,
|
|
48
53
|
'--sd-radio-label-disabled-color': RADIO_COLORS.label.disabled,
|
|
49
54
|
};
|
|
50
|
-
return (h("label", { key: '
|
|
55
|
+
return (h("label", { key: 'f220a45add2be550bc696cd2442b8520ea0143f0', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("input", { key: '64692f5bf49783f166be9327877a474816a556ca', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), h("span", { key: '3c30268adcbd735857b4163ecba444b5a57cba08', class: "sd-radio__circle" }), this.label && (h("span", { key: 'b641086ab4ff9161ba4fb733b87c751b6863fe06', class: "sd-radio__label", "data-label": this.label }, this.label))));
|
|
51
56
|
}
|
|
52
57
|
static get is() { return "sd-radio"; }
|
|
53
58
|
static get originalStyleUrls() {
|
|
@@ -80,7 +85,7 @@ export class SdRadio {
|
|
|
80
85
|
"optional": false,
|
|
81
86
|
"docs": {
|
|
82
87
|
"tags": [],
|
|
83
|
-
"text": ""
|
|
88
|
+
"text": "\uB77C\uB514\uC624 \uADF8\uB8F9\uC758 \uD604\uC7AC \uC120\uD0DD \uAC12"
|
|
84
89
|
},
|
|
85
90
|
"getter": false,
|
|
86
91
|
"setter": false,
|
|
@@ -105,7 +110,7 @@ export class SdRadio {
|
|
|
105
110
|
"optional": false,
|
|
106
111
|
"docs": {
|
|
107
112
|
"tags": [],
|
|
108
|
-
"text": ""
|
|
113
|
+
"text": "\uC774 \uB77C\uB514\uC624 \uC544\uC774\uD15C\uC758 \uAC12"
|
|
109
114
|
},
|
|
110
115
|
"getter": false,
|
|
111
116
|
"setter": false,
|
|
@@ -124,7 +129,7 @@ export class SdRadio {
|
|
|
124
129
|
"optional": false,
|
|
125
130
|
"docs": {
|
|
126
131
|
"tags": [],
|
|
127
|
-
"text": ""
|
|
132
|
+
"text": "\uBE44\uD65C\uC131 \uC0C1\uD0DC \uC5EC\uBD80"
|
|
128
133
|
},
|
|
129
134
|
"getter": false,
|
|
130
135
|
"setter": false,
|
|
@@ -144,7 +149,7 @@ export class SdRadio {
|
|
|
144
149
|
"optional": true,
|
|
145
150
|
"docs": {
|
|
146
151
|
"tags": [],
|
|
147
|
-
"text": ""
|
|
152
|
+
"text": "\uD45C\uC2DC\uD560 \uB77C\uBCA8 \uD14D\uC2A4\uD2B8"
|
|
148
153
|
},
|
|
149
154
|
"getter": false,
|
|
150
155
|
"setter": false,
|
|
@@ -162,7 +167,7 @@ export class SdRadio {
|
|
|
162
167
|
"composed": true,
|
|
163
168
|
"docs": {
|
|
164
169
|
"tags": [],
|
|
165
|
-
"text": ""
|
|
170
|
+
"text": "\uC120\uD0DD \uAC12\uC774 \uBCC0\uACBD\uB420 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
166
171
|
},
|
|
167
172
|
"complexType": {
|
|
168
173
|
"original": "RadioValue",
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { RADIO_BUTTON_COLORS, RADIO_BUTTON_LAYOUT, RADIO_BUTTON_SIZES, } from "./sd-radio-button.config";
|
|
3
3
|
export class SdRadioButton {
|
|
4
|
+
/** 현재 선택된 값 */
|
|
4
5
|
value;
|
|
6
|
+
/** 라디오 버튼 옵션 목록 */
|
|
5
7
|
options = [];
|
|
8
|
+
/** 버튼 크기 */
|
|
6
9
|
size = 'sm';
|
|
10
|
+
/** 비활성 상태 여부 */
|
|
7
11
|
disabled = false;
|
|
12
|
+
/** input name 속성 (없으면 자동 생성) */
|
|
8
13
|
name;
|
|
14
|
+
/** 선택 값이 변경될 때 발생합니다. */
|
|
9
15
|
change;
|
|
10
16
|
componentWillLoad() {
|
|
11
17
|
this.size ??= 'sm';
|
|
@@ -75,7 +81,7 @@ export class SdRadioButton {
|
|
|
75
81
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
76
82
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
77
83
|
};
|
|
78
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: 'c0ed4c6927bd32a7335e003856de4b43ead97b1c', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
79
85
|
const isSelected = this.isOptionSelected(option);
|
|
80
86
|
const isDisabled = this.isOptionDisabled(option);
|
|
81
87
|
return (h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && h("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -113,7 +119,7 @@ export class SdRadioButton {
|
|
|
113
119
|
"optional": false,
|
|
114
120
|
"docs": {
|
|
115
121
|
"tags": [],
|
|
116
|
-
"text": ""
|
|
122
|
+
"text": "\uD604\uC7AC \uC120\uD0DD\uB41C \uAC12"
|
|
117
123
|
},
|
|
118
124
|
"getter": false,
|
|
119
125
|
"setter": false,
|
|
@@ -138,7 +144,7 @@ export class SdRadioButton {
|
|
|
138
144
|
"optional": false,
|
|
139
145
|
"docs": {
|
|
140
146
|
"tags": [],
|
|
141
|
-
"text": ""
|
|
147
|
+
"text": "\uB77C\uB514\uC624 \uBC84\uD2BC \uC635\uC158 \uBAA9\uB85D"
|
|
142
148
|
},
|
|
143
149
|
"getter": false,
|
|
144
150
|
"setter": false,
|
|
@@ -156,7 +162,7 @@ export class SdRadioButton {
|
|
|
156
162
|
"optional": false,
|
|
157
163
|
"docs": {
|
|
158
164
|
"tags": [],
|
|
159
|
-
"text": ""
|
|
165
|
+
"text": "\uBC84\uD2BC \uD06C\uAE30"
|
|
160
166
|
},
|
|
161
167
|
"getter": false,
|
|
162
168
|
"setter": false,
|
|
@@ -176,7 +182,7 @@ export class SdRadioButton {
|
|
|
176
182
|
"optional": false,
|
|
177
183
|
"docs": {
|
|
178
184
|
"tags": [],
|
|
179
|
-
"text": ""
|
|
185
|
+
"text": "\uBE44\uD65C\uC131 \uC0C1\uD0DC \uC5EC\uBD80"
|
|
180
186
|
},
|
|
181
187
|
"getter": false,
|
|
182
188
|
"setter": false,
|
|
@@ -196,7 +202,7 @@ export class SdRadioButton {
|
|
|
196
202
|
"optional": true,
|
|
197
203
|
"docs": {
|
|
198
204
|
"tags": [],
|
|
199
|
-
"text": ""
|
|
205
|
+
"text": "input name \uC18D\uC131 (\uC5C6\uC73C\uBA74 \uC790\uB3D9 \uC0DD\uC131)"
|
|
200
206
|
},
|
|
201
207
|
"getter": false,
|
|
202
208
|
"setter": false,
|
|
@@ -214,7 +220,7 @@ export class SdRadioButton {
|
|
|
214
220
|
"composed": true,
|
|
215
221
|
"docs": {
|
|
216
222
|
"tags": [],
|
|
217
|
-
"text": ""
|
|
223
|
+
"text": "\uC120\uD0DD \uAC12\uC774 \uBCC0\uACBD\uB420 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
218
224
|
},
|
|
219
225
|
"complexType": {
|
|
220
226
|
"original": "RadioValue",
|