@sellmate/design-system 1.0.61 → 1.0.63
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/{component.modal-DmQUWbve.js → component.modal-BFelrSMx.js} +14 -0
- package/dist/cjs/constants-DJRV1upE.js +5 -0
- package/dist/cjs/design-system.cjs.js +3 -4
- package/dist/cjs/{index-BQt-JC6r.js → index-nsQP24mV.js} +130 -9
- package/dist/cjs/index.cjs.js +103 -32
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/sd-action-modal.cjs.entry.js +3 -3
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +3 -3
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +9 -8
- package/dist/cjs/sd-button_4.cjs.entry.js +56 -18
- package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +30 -5
- package/dist/cjs/sd-circle-progress.cjs.entry.js +71 -0
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +186 -0
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/{sd-date-picker.config-DWC_aiD2.js → sd-date-picker.config-D8xSALVj.js} +3 -3
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +4 -4
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +10 -5
- package/dist/cjs/sd-file-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +15 -6
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-input_2.cjs.entry.js +7 -7
- package/dist/cjs/sd-loading-container.cjs.entry.js +29 -0
- package/dist/cjs/sd-modal-container.cjs.entry.js +45 -2
- package/dist/cjs/sd-number-input.cjs.entry.js +5 -10
- package/dist/cjs/{sd-select-v2.cjs.entry.js → sd-pagination_2.cjs.entry.js} +90 -4
- package/dist/cjs/sd-popover.cjs.entry.js +4 -4
- package/dist/cjs/sd-portal.cjs.entry.js +2 -2
- package/dist/cjs/sd-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +182 -0
- package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +6 -6
- package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-option-group.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +661 -0
- package/dist/cjs/sd-select.cjs.entry.js +179 -0
- package/dist/cjs/sd-switch.cjs.entry.js +110 -0
- package/dist/cjs/sd-table.cjs.entry.js +424 -651
- package/dist/cjs/sd-tabs.cjs.entry.js +3 -3
- package/dist/cjs/sd-tag.cjs.entry.js +6 -5
- package/dist/cjs/sd-tbody.cjs.entry.js +66 -0
- package/dist/cjs/sd-td.cjs.entry.js +58 -0
- package/dist/cjs/sd-text-link.cjs.entry.js +10 -12
- package/dist/cjs/sd-textarea.cjs.entry.js +2 -2
- package/dist/cjs/sd-thead.cjs.entry.js +179 -0
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +96 -13
- package/dist/cjs/sd-tr.cjs.entry.js +171 -0
- package/dist/cjs/table-test.cjs.entry.js +96 -0
- package/dist/cjs/{tooltipArrow-CRCpqOYA.js → tooltipArrow-DhevfDPX.js} +1 -1
- package/dist/collection/__mocks__/nanoid-non-secure.js +13 -0
- package/dist/collection/__mocks__/nanoid.js +1 -0
- package/dist/collection/collection-manifest.json +11 -4
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.css +3 -0
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.css +37 -37
- package/dist/collection/components/sd-button-v2/sd-button-v2.css +44 -44
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +31 -6
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.config.js +3 -0
- package/dist/collection/components/sd-checkbox/sd-checkbox.css +15 -0
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +36 -2
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.config.js +24 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.css +53 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +109 -0
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +2 -2
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.config.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +5 -5
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +5 -5
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +5 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +46 -36
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +4 -4
- package/dist/collection/components/sd-field/sd-field.config.js +21 -0
- package/dist/collection/components/sd-field/sd-field.css +19 -16
- package/dist/collection/components/sd-field/sd-field.js +46 -11
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +5 -5
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.config.js +7 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +3 -3
- package/dist/collection/components/sd-guide/sd-guide.css +37 -37
- package/dist/collection/components/sd-input/sd-input.css +3 -0
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-container/sd-loading-container.config.js +1 -0
- package/dist/collection/components/sd-loading-container/sd-loading-container.css +40 -0
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +83 -0
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.config.js +31 -0
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.css +37 -0
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +184 -0
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +89 -3
- package/dist/collection/components/sd-number-input/sd-number-input.config.js +0 -2
- package/dist/collection/components/sd-number-input/sd-number-input.css +0 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +3 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-radio/sd-radio.config.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.config.js +45 -0
- package/dist/collection/components/sd-radio-button/sd-radio-button.css +71 -0
- package/dist/collection/components/{sd-radio-button-group/sd-radio-button-group.js → sd-radio-button/sd-radio-button.js} +49 -18
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select/sd-select.css +4 -0
- package/dist/collection/components/sd-select-group/sd-select-group.css +4 -0
- package/dist/collection/components/sd-select-group/sd-select-group.js +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.css +4 -0
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.css +4 -0
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.css +4 -0
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +6 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css +2 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +2 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2.config.js +1 -0
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
- package/dist/collection/components/sd-switch/sd-switch.config.js +23 -0
- package/dist/collection/components/sd-switch/sd-switch.css +54 -0
- package/dist/collection/components/{sd-toggle-button/sd-toggle-button.js → sd-switch/sd-switch.js} +30 -27
- package/dist/collection/components/sd-table/constants.js +1 -0
- package/dist/collection/components/sd-table/sd-table.css +76 -248
- package/dist/collection/components/sd-table/sd-table.js +705 -700
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +18 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +105 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.css +15 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.js +121 -0
- package/dist/collection/components/sd-table/sd-thead/sd-thead.css +147 -0
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +442 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +111 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +376 -0
- package/dist/collection/components/sd-tabs/sd-tabs.css +2 -1
- package/dist/collection/components/sd-tabs/sd-tabs.js +3 -3
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.css +1 -0
- package/dist/collection/components/sd-text-link/sd-text-link.js +7 -13
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- 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.config.js +33 -0
- package/dist/collection/components/sd-toggle/sd-toggle.css +38 -50
- package/dist/collection/components/sd-toggle/sd-toggle.js +29 -12
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/collection/components/table-test/table-test.css +59 -0
- package/dist/collection/components/table-test/table-test.js +316 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/loading.js +43 -0
- package/dist/collection/utils/modal.js +26 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-6LkBUj0w.js +1 -0
- package/dist/components/{p-DlujHEXS.js → p-6cueWz-l.js} +1 -1
- package/dist/components/{p-D0wZv01W.js → p-AKpbKrkW.js} +1 -1
- package/dist/components/p-B1S4ybd6.js +1 -0
- package/dist/components/{p-D93Cb_Vw.js → p-B6OgnOKC.js} +1 -1
- package/dist/components/{p-lKwhftf9.js → p-B6RvTdqt.js} +1 -1
- package/dist/components/p-BLC3AWW8.js +1 -0
- package/dist/components/{p-BUAwjF_Z.js → p-BZ7V5xV5.js} +1 -1
- package/dist/components/{p-BWgJ9XTj.js → p-BdsI1E5l.js} +1 -1
- package/dist/components/{p-DdBIc8AE.js → p-BgRPWxrz.js} +1 -1
- package/dist/components/{p-DCv5afjJ.js → p-Bh548Ckv.js} +1 -1
- package/dist/components/p-C2r48NLP.js +1 -0
- package/dist/components/{p-BtH5wWA5.js → p-CGXwtYAv.js} +1 -1
- package/dist/components/p-CGssy8eb.js +1 -0
- package/dist/components/{p-BHQirDZt.js → p-CRl8Anfr.js} +1 -1
- package/dist/components/p-CU095QAR.js +1 -0
- package/dist/components/p-CpclstHV.js +1 -0
- package/dist/components/{p-C2Yw3PoX.js → p-Cpu_hXwN.js} +1 -1
- package/dist/components/{p-gTPCqs3t.js → p-Cr_74QR7.js} +1 -1
- package/dist/components/{p-BsJy4pgR.js → p-D9FDutsj.js} +1 -1
- package/dist/components/p-DBnszF5F.js +1 -0
- package/dist/components/p-DOXMJi-V.js +1 -0
- package/dist/components/p-DRY8HJ-T.js +1 -0
- package/dist/components/{p-BVBMsoZP.js → p-DUqX35W_.js} +1 -1
- package/dist/components/{p-Ci3yfjxH.js → p-DgYBr7xb.js} +1 -1
- package/dist/components/{p-98NWgkAU.js → p-DpsDTjcN.js} +1 -1
- package/dist/components/p-DuYi4aqj.js +1 -0
- package/dist/components/{p-AdSqif48.js → p-DxzgCf_d.js} +1 -1
- package/dist/components/p-TMuoVuhE.js +1 -0
- package/dist/components/{p-CE1Hmoij.js → p-VXLJLI30.js} +1 -1
- package/dist/components/p-aC4HJHug.js +1 -0
- package/dist/components/p-bYCOh35g.js +1 -0
- package/dist/components/p-e35Du7-7.js +1 -0
- package/dist/components/p-e8HA30H_.js +1 -0
- package/dist/components/p-kZ5N_lFC.js +1 -0
- package/dist/components/{p-CqU3a1re.js → p-puZ1xlrr.js} +1 -1
- package/dist/components/p-sZMi_32I.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button-v2.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/{sd-loading-spinner.d.ts → sd-circle-progress.d.ts} +4 -4
- package/dist/components/sd-circle-progress.js +1 -0
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker-calendar.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-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-radio-button-group.d.ts → sd-loading-container.d.ts} +4 -4
- package/dist/components/sd-loading-container.js +1 -0
- package/dist/components/{sd-toggle-button.d.ts → sd-loading-modal.d.ts} +4 -4
- package/dist/components/sd-loading-modal.js +1 -0
- 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-portal.js +1 -1
- package/dist/components/sd-progress.js +1 -1
- package/dist/components/sd-radio-button.d.ts +11 -0
- package/dist/components/sd-radio-button.js +1 -0
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-group.js +1 -1
- package/dist/components/sd-select-multiple-group.js +1 -1
- package/dist/components/sd-select-multiple.js +1 -1
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select-v2-list-item-search.js +1 -1
- package/dist/components/sd-select-v2-list-item.js +1 -1
- package/dist/components/sd-select-v2-listbox.js +1 -1
- package/dist/components/sd-select-v2-trigger.js +1 -1
- package/dist/components/sd-select-v2.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.d.ts +11 -0
- package/dist/components/sd-switch.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/sd-tbody.js +1 -0
- package/dist/components/sd-td.d.ts +11 -0
- package/dist/components/sd-td.js +1 -0
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.d.ts +11 -0
- package/dist/components/sd-thead.js +1 -0
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.d.ts +11 -0
- package/dist/components/sd-tr.js +1 -0
- package/dist/components/table-test.d.ts +11 -0
- package/dist/components/table-test.js +1 -0
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/p-03099a57.entry.js +1 -0
- package/dist/design-system/p-04be87a4.entry.js +1 -0
- package/dist/design-system/{p-e9c28bdc.entry.js → p-09ba9dbc.entry.js} +1 -1
- package/dist/design-system/p-0ca594a4.entry.js +1 -0
- package/dist/design-system/p-0fbb6d92.entry.js +1 -0
- package/dist/design-system/p-12a03c88.entry.js +1 -0
- package/dist/design-system/p-15cda79c.entry.js +1 -0
- package/dist/design-system/p-1b9e427e.entry.js +1 -0
- package/dist/design-system/p-1cbe4b22.entry.js +1 -0
- package/dist/design-system/{p-a03ad24f.entry.js → p-1d310832.entry.js} +1 -1
- package/dist/design-system/p-2f64dd95.entry.js +1 -0
- package/dist/design-system/p-33e4ce64.entry.js +1 -0
- package/dist/design-system/{p-14b67a6e.entry.js → p-363da5ff.entry.js} +1 -1
- package/dist/design-system/p-3d341993.entry.js +1 -0
- package/dist/design-system/p-3f79f1d1.entry.js +1 -0
- package/dist/design-system/{p-c59191d3.entry.js → p-40495e05.entry.js} +1 -1
- package/dist/design-system/p-4128c17f.entry.js +1 -0
- package/dist/design-system/{p-614c9883.entry.js → p-4a53d7b0.entry.js} +1 -1
- package/dist/design-system/{p-9ae589c4.entry.js → p-4dcadde3.entry.js} +1 -1
- package/dist/design-system/{p-62992b73.entry.js → p-53bc77f8.entry.js} +1 -1
- package/dist/design-system/{p-28058050.entry.js → p-5a63febd.entry.js} +1 -1
- package/dist/design-system/p-656acb07.entry.js +1 -0
- package/dist/design-system/{p-30055371.entry.js → p-6c71d7b7.entry.js} +1 -1
- package/dist/design-system/{p-7a18a52b.entry.js → p-73acee07.entry.js} +1 -1
- package/dist/design-system/p-748ece8e.entry.js +1 -0
- package/dist/design-system/p-7e09fdd5.entry.js +1 -0
- package/dist/design-system/{p-4272b9e6.entry.js → p-84a329fb.entry.js} +1 -1
- package/dist/design-system/p-867ec4ee.entry.js +1 -0
- package/dist/design-system/p-8acf3b67.entry.js +1 -0
- package/dist/design-system/p-8d2328ae.entry.js +1 -0
- package/dist/design-system/{p-dee605b1.entry.js → p-9af7e19a.entry.js} +1 -1
- package/dist/design-system/p-BqHL8W3c.js +2 -0
- package/dist/design-system/{p-DSRYrM1n.js → p-COK6PVLC.js} +1 -1
- package/dist/design-system/p-DOXMJi-V.js +1 -0
- package/dist/design-system/{p-72b564ed.entry.js → p-a129711d.entry.js} +1 -1
- package/dist/design-system/p-a24c3431.entry.js +1 -0
- package/dist/design-system/p-a27718c1.entry.js +1 -0
- package/dist/design-system/{p-3d10be45.entry.js → p-a9a91e69.entry.js} +1 -1
- package/dist/design-system/p-ae1800c0.entry.js +1 -0
- package/dist/design-system/p-b1fe12f8.entry.js +1 -0
- package/dist/design-system/p-b60ae063.entry.js +1 -0
- package/dist/design-system/p-b6e02544.entry.js +1 -0
- package/dist/design-system/p-bYCOh35g.js +1 -0
- package/dist/design-system/{p-fa8b64c2.entry.js → p-c2f3470f.entry.js} +1 -1
- package/dist/design-system/{p-85e22acd.entry.js → p-c4e68815.entry.js} +1 -1
- package/dist/design-system/p-c98ed6ae.entry.js +1 -0
- package/dist/design-system/p-ca80379a.entry.js +1 -0
- package/dist/design-system/{p-5d2e8779.entry.js → p-d04551be.entry.js} +1 -1
- package/dist/design-system/p-e0f9e5b5.entry.js +1 -0
- package/dist/design-system/p-e1fdd540.entry.js +1 -0
- package/dist/design-system/{p-2bd887ca.entry.js → p-e33389b8.entry.js} +1 -1
- package/dist/design-system/p-e78faea6.entry.js +1 -0
- package/dist/design-system/p-e9f24d23.entry.js +1 -0
- package/dist/design-system/{p-00207f08.entry.js → p-ec79fefd.entry.js} +1 -1
- package/dist/design-system/{p-067b0b3c.entry.js → p-f3a60f61.entry.js} +1 -1
- package/dist/design-system/p-f9b9204d.entry.js +1 -0
- package/dist/design-system/{p-13fed1bd.entry.js → p-fd296c73.entry.js} +1 -1
- package/dist/design-system/p-sZMi_32I.js +1 -0
- package/dist/esm/{component.modal-mO5GcwI3.js → component.modal-DOXMJi-V.js} +14 -0
- package/dist/esm/constants-sZMi_32I.js +3 -0
- package/dist/esm/design-system.js +3 -4
- package/dist/esm/{index-DsU722JF.js → index-BqHL8W3c.js} +128 -10
- package/dist/esm/index.js +103 -33
- package/dist/esm/loader.js +3 -4
- package/dist/esm/sd-action-modal.entry.js +3 -3
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +3 -3
- package/dist/esm/sd-button-v2_2.entry.js +9 -8
- package/dist/esm/sd-button_4.entry.js +56 -18
- package/dist/esm/sd-calendar.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +30 -5
- package/dist/esm/sd-circle-progress.entry.js +69 -0
- package/dist/esm/sd-confirm-modal_2.entry.js +183 -0
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker-calendar.entry.js +3 -3
- package/dist/esm/sd-date-picker-trigger.entry.js +4 -4
- package/dist/esm/{sd-date-picker.config-C4i826lM.js → sd-date-picker.config-bYCOh35g.js} +3 -3
- package/dist/esm/sd-date-picker.entry.js +4 -4
- package/dist/esm/sd-date-range-picker-calendar.entry.js +3 -3
- package/dist/esm/sd-date-range-picker.entry.js +4 -4
- package/dist/esm/sd-dropdown-button.entry.js +10 -5
- package/dist/esm/sd-file-picker.entry.js +1 -1
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +15 -6
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-input_2.entry.js +7 -7
- package/dist/esm/sd-loading-container.entry.js +27 -0
- package/dist/esm/sd-modal-container.entry.js +45 -2
- package/dist/esm/sd-number-input.entry.js +5 -10
- package/dist/esm/{sd-select-v2.entry.js → sd-pagination_2.entry.js} +90 -5
- package/dist/esm/sd-popover.entry.js +4 -4
- package/dist/esm/sd-portal.entry.js +2 -2
- package/dist/esm/sd-progress.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +180 -0
- package/dist/esm/sd-radio-group.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +6 -6
- package/dist/esm/sd-select-dropdown_2.entry.js +4 -4
- package/dist/esm/sd-select-group.entry.js +3 -3
- package/dist/esm/sd-select-multiple-group.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +3 -3
- package/dist/esm/sd-select-option-group.entry.js +4 -4
- package/dist/esm/sd-select-v2-list-item_4.entry.js +656 -0
- package/dist/esm/sd-select.entry.js +177 -0
- package/dist/esm/sd-switch.entry.js +108 -0
- package/dist/esm/sd-table.entry.js +424 -651
- package/dist/esm/sd-tabs.entry.js +3 -3
- package/dist/esm/sd-tag.entry.js +6 -5
- package/dist/esm/sd-tbody.entry.js +64 -0
- package/dist/esm/sd-td.entry.js +56 -0
- package/dist/esm/sd-text-link.entry.js +10 -12
- package/dist/esm/sd-textarea.entry.js +2 -2
- package/dist/esm/sd-thead.entry.js +177 -0
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +96 -13
- package/dist/esm/sd-tr.entry.js +169 -0
- package/dist/esm/table-test.entry.js +94 -0
- package/dist/esm/{tooltipArrow-CJuzsrdH.js → tooltipArrow-BcsrQx1U.js} +1 -1
- package/dist/types/__mocks__/nanoid-non-secure.d.ts +2 -0
- package/dist/types/__mocks__/nanoid.d.ts +1 -0
- package/dist/types/components/sd-button-v2/sd-button-v2.d.ts +1 -0
- package/dist/types/components/sd-checkbox/sd-checkbox.config.d.ts +3 -0
- package/dist/types/components/sd-checkbox/sd-checkbox.d.ts +2 -0
- package/dist/types/components/sd-circle-progress/sd-circle-progress.config.d.ts +9 -0
- package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +8 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +1 -0
- package/dist/types/components/sd-field/sd-field.config.d.ts +9 -0
- package/dist/types/components/sd-field/sd-field.d.ts +2 -0
- package/dist/types/components/sd-ghost-button/sd-ghost-button.config.d.ts +1 -1
- package/dist/types/components/sd-loading-container/sd-loading-container.config.d.ts +4 -0
- package/dist/types/components/sd-loading-container/sd-loading-container.d.ts +8 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.config.d.ts +25 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +15 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +10 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +6 -2
- package/dist/types/components/sd-number-input/sd-number-input.config.d.ts +0 -1
- package/dist/types/components/sd-radio-button/sd-radio-button.config.d.ts +44 -0
- package/dist/types/components/{sd-radio-button-group/sd-radio-button-group.d.ts → sd-radio-button/sd-radio-button.d.ts} +4 -3
- package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +1 -0
- package/dist/types/components/sd-switch/sd-switch.config.d.ts +22 -0
- package/dist/types/components/{sd-toggle-button/sd-toggle-button.d.ts → sd-switch/sd-switch.d.ts} +2 -6
- package/dist/types/components/sd-table/constants.d.ts +44 -0
- package/dist/types/components/sd-table/sd-table.d.ts +103 -115
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +14 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +12 -0
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +36 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +34 -0
- package/dist/types/components/sd-toggle/sd-toggle.config.d.ts +32 -0
- package/dist/types/components/sd-toggle/sd-toggle.d.ts +0 -3
- package/dist/types/components/table-test/table-test.d.ts +46 -0
- package/dist/types/components.d.ts +532 -141
- package/dist/types/index.d.ts +3 -1
- package/dist/types/utils/loading.d.ts +7 -0
- package/dist/types/utils/modal.d.ts +19 -3
- package/hydrate/index.js +2472 -971
- package/hydrate/index.mjs +2472 -971
- package/package.json +2 -2
- package/readme.md +1 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/sd-confirm-modal.cjs.entry.js +0 -106
- package/dist/cjs/sd-loading-spinner_3.cjs.entry.js +0 -283
- package/dist/cjs/sd-radio-button-group.cjs.entry.js +0 -57
- package/dist/cjs/sd-select-v2-list-item_2.cjs.entry.js +0 -150
- package/dist/cjs/sd-select-v2-listbox_2.cjs.entry.js +0 -353
- package/dist/cjs/sd-select-v2.config-7xBJQhvx.js +0 -171
- package/dist/cjs/sd-toggle-button.cjs.entry.js +0 -49
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.css +0 -44
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +0 -46
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.css +0 -85
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.css +0 -47
- package/dist/components/p-5OtzmjLh.js +0 -1
- package/dist/components/p-BFaIxm6b.js +0 -1
- package/dist/components/p-BP-QKaKz.js +0 -1
- package/dist/components/p-BSZadK9N.js +0 -1
- package/dist/components/p-BbtO5CEW.js +0 -1
- package/dist/components/p-BxPyZJaz.js +0 -1
- package/dist/components/p-C-qSDgVU.js +0 -1
- package/dist/components/p-C4i826lM.js +0 -1
- package/dist/components/p-CEa1HSpw.js +0 -1
- package/dist/components/p-CYRGa0VL.js +0 -1
- package/dist/components/p-ClgihpRm.js +0 -1
- package/dist/components/p-D-Y0-FQk.js +0 -1
- package/dist/components/p-D-pFdq6g.js +0 -1
- package/dist/components/p-DPipeCRI.js +0 -1
- package/dist/components/p-DSYw-7RA.js +0 -1
- package/dist/components/p-DXAB0k9r.js +0 -1
- package/dist/components/p-mO5GcwI3.js +0 -1
- package/dist/components/sd-loading-spinner.js +0 -1
- package/dist/components/sd-radio-button-group.js +0 -1
- package/dist/components/sd-toggle-button.js +0 -1
- package/dist/design-system/p-0e6f5a99.entry.js +0 -1
- package/dist/design-system/p-22a4972a.entry.js +0 -1
- package/dist/design-system/p-27df33c1.entry.js +0 -1
- package/dist/design-system/p-3ac6a626.entry.js +0 -1
- package/dist/design-system/p-3f04d68a.entry.js +0 -1
- package/dist/design-system/p-6610c16b.entry.js +0 -1
- package/dist/design-system/p-739ac181.entry.js +0 -1
- package/dist/design-system/p-7dce4241.entry.js +0 -1
- package/dist/design-system/p-7e4c0a36.entry.js +0 -1
- package/dist/design-system/p-8b5b2866.entry.js +0 -1
- package/dist/design-system/p-90f51f65.entry.js +0 -1
- package/dist/design-system/p-C3eQSZx-.js +0 -1
- package/dist/design-system/p-C4i826lM.js +0 -1
- package/dist/design-system/p-DQuL1Twl.js +0 -1
- package/dist/design-system/p-DsU722JF.js +0 -2
- package/dist/design-system/p-a6bc8512.entry.js +0 -1
- package/dist/design-system/p-afeb740a.entry.js +0 -1
- package/dist/design-system/p-b3e0e6f4.entry.js +0 -1
- package/dist/design-system/p-ba90dc5f.entry.js +0 -1
- package/dist/design-system/p-bad88292.entry.js +0 -1
- package/dist/design-system/p-cbb5575d.entry.js +0 -1
- package/dist/design-system/p-ce6a0b0f.entry.js +0 -1
- package/dist/design-system/p-d07448fe.entry.js +0 -1
- package/dist/design-system/p-d1a94401.entry.js +0 -1
- package/dist/design-system/p-d5b5cfc7.entry.js +0 -1
- package/dist/design-system/p-d75e0dc0.entry.js +0 -1
- package/dist/design-system/p-e9ed9c00.entry.js +0 -1
- package/dist/design-system/p-f8567970.entry.js +0 -1
- package/dist/design-system/p-fa22f13c.entry.js +0 -1
- package/dist/design-system/p-fbac6160.entry.js +0 -1
- package/dist/design-system/p-mO5GcwI3.js +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/sd-confirm-modal.entry.js +0 -104
- package/dist/esm/sd-loading-spinner_3.entry.js +0 -279
- package/dist/esm/sd-radio-button-group.entry.js +0 -55
- package/dist/esm/sd-select-v2-list-item_2.entry.js +0 -147
- package/dist/esm/sd-select-v2-listbox_2.entry.js +0 -350
- package/dist/esm/sd-select-v2.config-C3eQSZx-.js +0 -158
- package/dist/esm/sd-toggle-button.entry.js +0 -47
- package/dist/types/components/sd-loading-spinner/sd-loading-spinner.d.ts +0 -5
|
@@ -17,7 +17,7 @@ sd-button {
|
|
|
17
17
|
--sd-button-icon-only-size: var(--sd-button-height);
|
|
18
18
|
text-decoration: none;
|
|
19
19
|
cursor: pointer;
|
|
20
|
-
border-radius: var(--sd-button-radius-sm, 4px);
|
|
20
|
+
border-radius: var(--sd-button-button-radius-sm, 4px);
|
|
21
21
|
transition: all 0.2s ease-in-out;
|
|
22
22
|
position: relative;
|
|
23
23
|
overflow: hidden;
|
|
@@ -38,51 +38,51 @@ sd-button {
|
|
|
38
38
|
text-decoration: var(--sd-button-text-decoration);
|
|
39
39
|
}
|
|
40
40
|
.sd-button--xs {
|
|
41
|
-
--sd-button-height: var(--sd-button-xs-height, 24px);
|
|
42
|
-
--sd-button-padding-x: var(--sd-button-xs-padding-x, 8px);
|
|
43
|
-
--sd-button-gap: var(--sd-button-xs-gap, 4px);
|
|
44
|
-
--sd-button-font-family: var(--sd-button-xs-typography-font-family, inherit);
|
|
45
|
-
--sd-button-font-size: var(--sd-button-xs-typography-font-size, 12px);
|
|
46
|
-
--sd-button-font-weight: var(--sd-button-xs-typography-font-weight, 500);
|
|
47
|
-
--sd-button-text-decoration: var(--sd-button-xs-typography-text-decoration, none);
|
|
41
|
+
--sd-button-height: var(--sd-button-button-xs-height, 24px);
|
|
42
|
+
--sd-button-padding-x: var(--sd-button-button-xs-padding-x, 8px);
|
|
43
|
+
--sd-button-gap: var(--sd-button-button-xs-gap, 4px);
|
|
44
|
+
--sd-button-font-family: var(--sd-button-button-xs-typography-font-family, inherit);
|
|
45
|
+
--sd-button-font-size: var(--sd-button-button-xs-typography-font-size, 12px);
|
|
46
|
+
--sd-button-font-weight: var(--sd-button-button-xs-typography-font-weight, 500);
|
|
47
|
+
--sd-button-text-decoration: var(--sd-button-button-xs-typography-text-decoration, none);
|
|
48
48
|
--sd-button-label-min-width: var(--sd-button-label-xs-min-width, auto);
|
|
49
|
-
--sd-button-icon-only-size: var(--sd-button-icon-only-xs-width, var(--sd-button-height));
|
|
49
|
+
--sd-button-icon-only-size: var(--sd-button-button-icon-only-xs-width, var(--sd-button-height));
|
|
50
50
|
line-height: 20px;
|
|
51
51
|
}
|
|
52
52
|
.sd-button--sm {
|
|
53
|
-
--sd-button-height: var(--sd-button-sm-height, 28px);
|
|
54
|
-
--sd-button-padding-x: var(--sd-button-sm-padding-x, 12px);
|
|
55
|
-
--sd-button-gap: var(--sd-button-sm-gap, 6px);
|
|
56
|
-
--sd-button-font-family: var(--sd-button-sm-typography-font-family, inherit);
|
|
57
|
-
--sd-button-font-size: var(--sd-button-sm-typography-font-size, 12px);
|
|
58
|
-
--sd-button-font-weight: var(--sd-button-sm-typography-font-weight, 500);
|
|
59
|
-
--sd-button-text-decoration: var(--sd-button-sm-typography-text-decoration, none);
|
|
53
|
+
--sd-button-height: var(--sd-button-button-sm-height, 28px);
|
|
54
|
+
--sd-button-padding-x: var(--sd-button-button-sm-padding-x, 12px);
|
|
55
|
+
--sd-button-gap: var(--sd-button-button-sm-gap, 6px);
|
|
56
|
+
--sd-button-font-family: var(--sd-button-button-sm-typography-font-family, inherit);
|
|
57
|
+
--sd-button-font-size: var(--sd-button-button-sm-typography-font-size, 12px);
|
|
58
|
+
--sd-button-font-weight: var(--sd-button-button-sm-typography-font-weight, 500);
|
|
59
|
+
--sd-button-text-decoration: var(--sd-button-button-sm-typography-text-decoration, none);
|
|
60
60
|
--sd-button-label-min-width: var(--sd-button-label-sm-min-width, auto);
|
|
61
|
-
--sd-button-icon-only-size: var(--sd-button-icon-only-sm-width, var(--sd-button-height));
|
|
61
|
+
--sd-button-icon-only-size: var(--sd-button-button-icon-only-sm-width, var(--sd-button-height));
|
|
62
62
|
line-height: 20px;
|
|
63
63
|
}
|
|
64
64
|
.sd-button--md {
|
|
65
|
-
--sd-button-height: var(--sd-button-md-height, 34px);
|
|
66
|
-
--sd-button-padding-x: var(--sd-button-md-padding-x, 20px);
|
|
67
|
-
--sd-button-gap: var(--sd-button-md-gap, 8px);
|
|
68
|
-
--sd-button-font-family: var(--sd-button-md-typography-font-family, inherit);
|
|
69
|
-
--sd-button-font-size: var(--sd-button-md-typography-font-size, 16px);
|
|
70
|
-
--sd-button-font-weight: var(--sd-button-md-typography-font-weight, 500);
|
|
71
|
-
--sd-button-text-decoration: var(--sd-button-md-typography-text-decoration, none);
|
|
65
|
+
--sd-button-height: var(--sd-button-button-md-height, 34px);
|
|
66
|
+
--sd-button-padding-x: var(--sd-button-button-md-padding-x, 20px);
|
|
67
|
+
--sd-button-gap: var(--sd-button-button-md-gap, 8px);
|
|
68
|
+
--sd-button-font-family: var(--sd-button-button-md-typography-font-family, inherit);
|
|
69
|
+
--sd-button-font-size: var(--sd-button-button-md-typography-font-size, 16px);
|
|
70
|
+
--sd-button-font-weight: var(--sd-button-button-md-typography-font-weight, 500);
|
|
71
|
+
--sd-button-text-decoration: var(--sd-button-button-md-typography-text-decoration, none);
|
|
72
72
|
--sd-button-label-min-width: var(--sd-button-label-md-min-width, auto);
|
|
73
|
-
--sd-button-icon-only-size: var(--sd-button-icon-only-md-width, var(--sd-button-height));
|
|
73
|
+
--sd-button-icon-only-size: var(--sd-button-button-icon-only-md-width, var(--sd-button-height));
|
|
74
74
|
line-height: 26px;
|
|
75
75
|
}
|
|
76
76
|
.sd-button--lg {
|
|
77
|
-
--sd-button-height: var(--sd-button-lg-height, 62px);
|
|
78
|
-
--sd-button-padding-x: var(--sd-button-lg-padding-x, 28px);
|
|
79
|
-
--sd-button-gap: var(--sd-button-lg-gap, 12px);
|
|
80
|
-
--sd-button-font-family: var(--sd-button-lg-typography-font-family, inherit);
|
|
81
|
-
--sd-button-font-size: var(--sd-button-lg-typography-font-size, 18px);
|
|
82
|
-
--sd-button-font-weight: var(--sd-button-lg-typography-font-weight, 500);
|
|
83
|
-
--sd-button-text-decoration: var(--sd-button-lg-typography-text-decoration, none);
|
|
77
|
+
--sd-button-height: var(--sd-button-button-lg-height, 62px);
|
|
78
|
+
--sd-button-padding-x: var(--sd-button-button-lg-padding-x, 28px);
|
|
79
|
+
--sd-button-gap: var(--sd-button-button-lg-gap, 12px);
|
|
80
|
+
--sd-button-font-family: var(--sd-button-button-lg-typography-font-family, inherit);
|
|
81
|
+
--sd-button-font-size: var(--sd-button-button-lg-typography-font-size, 18px);
|
|
82
|
+
--sd-button-font-weight: var(--sd-button-button-lg-typography-font-weight, 500);
|
|
83
|
+
--sd-button-text-decoration: var(--sd-button-button-lg-typography-text-decoration, none);
|
|
84
84
|
--sd-button-label-min-width: var(--sd-button-label-lg-min-width, auto);
|
|
85
|
-
--sd-button-icon-only-size: var(--sd-button-icon-only-lg-width, var(--sd-button-height));
|
|
85
|
+
--sd-button-icon-only-size: var(--sd-button-button-icon-only-lg-width, var(--sd-button-height));
|
|
86
86
|
line-height: 30px;
|
|
87
87
|
}
|
|
88
88
|
.sd-button--has-label {
|
|
@@ -107,7 +107,7 @@ sd-button {
|
|
|
107
107
|
}
|
|
108
108
|
.sd-button--outline {
|
|
109
109
|
background: white;
|
|
110
|
-
border: var(--sd-button-border-width-default, 1px) solid var(--button-color);
|
|
110
|
+
border: var(--sd-button-button-border-width-default, 1px) solid var(--button-color);
|
|
111
111
|
color: var(--button-color);
|
|
112
112
|
}
|
|
113
113
|
.sd-button--outline::before {
|
|
@@ -148,9 +148,9 @@ sd-button {
|
|
|
148
148
|
z-index: 1;
|
|
149
149
|
}
|
|
150
150
|
.sd-button--disabled {
|
|
151
|
-
border: var(--sd-button-border-width-default, 1px) solid var(--sd-button-border-disabled, #CCCCCC);
|
|
152
|
-
background: var(--sd-button-bg-disabled, #E1E1E1);
|
|
153
|
-
color: var(--sd-button-
|
|
151
|
+
border: var(--sd-button-button-border-width-default, 1px) solid var(--sd-button-button-border-disabled, #CCCCCC);
|
|
152
|
+
background: var(--sd-button-button-bg-disabled, #E1E1E1);
|
|
153
|
+
color: var(--sd-button-button-text-disabled, #888888);
|
|
154
154
|
cursor: not-allowed !important;
|
|
155
155
|
}
|
|
156
156
|
.sd-button--icon-only {
|
|
@@ -63,6 +63,9 @@ sd-input .sd-input__content .sd-input__native[disabled] {
|
|
|
63
63
|
cursor: not-allowed;
|
|
64
64
|
color: var(--sd-input-disabled-color);
|
|
65
65
|
}
|
|
66
|
+
sd-input .sd-input__content .sd-input__native[readonly] {
|
|
67
|
+
color: var(--sd-input-disabled-color);
|
|
68
|
+
}
|
|
66
69
|
sd-input .sd-input__content .sd-input__native::placeholder {
|
|
67
70
|
color: var(--sd-input-placeholder-color);
|
|
68
71
|
}
|
|
@@ -110,12 +110,12 @@ export class SdInput {
|
|
|
110
110
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
111
111
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
112
112
|
};
|
|
113
|
-
return (h("sd-field", { key: '
|
|
113
|
+
return (h("sd-field", { key: 'a96aaa54fe54c9d9ee5ab31537e1b6fb7b612c8f', name: this.name, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, 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("label", { key: 'd806549d41156ab414d04664e6887075ef97f307', class: "sd-input__content" }, h("slot", { key: '29f447128f6211792742a252d1ea087b5a5b413e', name: "prefix" }), h("input", { key: 'e1870c7573268e97eac820d7508e134c13c32b40', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: 'f12b87b5d30878a55e1224abf789b924c1fd3a0c', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: 'dad4be5dc6e8239dedc094fe0eb02a2587dd9f9c', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
114
114
|
if (this.disabled)
|
|
115
115
|
return;
|
|
116
116
|
this.internalValue = '';
|
|
117
117
|
await this.formField?.sdValidate();
|
|
118
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
118
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '71c5cf7565ad13f08173fc10e828ddf5f8f546b8', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
119
119
|
if (this.disabled)
|
|
120
120
|
return;
|
|
121
121
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const LOADING_CONTAINER_DEFAULT_Z_INDEX = 10000;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
sd-loading-container .sd-loading-container {
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
z-index: var(--sd-loading-container-z-index, 10000);
|
|
8
|
+
opacity: 0;
|
|
9
|
+
visibility: hidden;
|
|
10
|
+
transition: opacity 0.2s ease, visibility 0s linear 0.2s;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
sd-loading-container .sd-loading-container--visible {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
visibility: visible;
|
|
16
|
+
transition: opacity 0.2s ease, visibility 0s linear 0s;
|
|
17
|
+
pointer-events: auto;
|
|
18
|
+
}
|
|
19
|
+
sd-loading-container .sd-loading-container__backdrop {
|
|
20
|
+
position: absolute;
|
|
21
|
+
inset: 0;
|
|
22
|
+
background: rgba(0, 0, 0, 0.4);
|
|
23
|
+
}
|
|
24
|
+
sd-loading-container .sd-loading-container__content {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 16px;
|
|
30
|
+
}
|
|
31
|
+
sd-loading-container .sd-loading-container__message {
|
|
32
|
+
margin: 0;
|
|
33
|
+
color: #ffffff;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
line-height: 22px;
|
|
37
|
+
text-align: center;
|
|
38
|
+
max-width: 400px;
|
|
39
|
+
word-break: keep-all;
|
|
40
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class SdLoadingContainer {
|
|
3
|
+
visible = false;
|
|
4
|
+
message = '';
|
|
5
|
+
async show(options = {}) {
|
|
6
|
+
this.message = options.message ?? '';
|
|
7
|
+
this.visible = true;
|
|
8
|
+
}
|
|
9
|
+
async hide() {
|
|
10
|
+
this.visible = false;
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h("div", { key: 'e4578e196ebd4ee69d424fe85c9bf651bc3382f7', class: {
|
|
14
|
+
'sd-loading-container': true,
|
|
15
|
+
'sd-loading-container--visible': this.visible,
|
|
16
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: 'ae9fae9408f9b69591554ca105abb2ece362db00', class: "sd-loading-container__backdrop" }), h("div", { key: '27d0c6518dacbb664cebb2fc76c9ceb14b2b3aac', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: 'ace74d2550a2ddb579c61e6f8daaaf64915e8666', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: 'af059ecdadf7b3b3c0a0437cbc4264ff550fa3c6', class: "sd-loading-container__message" }, this.message)))));
|
|
17
|
+
}
|
|
18
|
+
static get is() { return "sd-loading-container"; }
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["sd-loading-container.scss"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["sd-loading-container.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get states() {
|
|
30
|
+
return {
|
|
31
|
+
"visible": {},
|
|
32
|
+
"message": {}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get methods() {
|
|
36
|
+
return {
|
|
37
|
+
"show": {
|
|
38
|
+
"complexType": {
|
|
39
|
+
"signature": "(options?: SdLoadingShowArgs) => Promise<void>",
|
|
40
|
+
"parameters": [{
|
|
41
|
+
"name": "options",
|
|
42
|
+
"type": "SdLoadingShowArgs",
|
|
43
|
+
"docs": ""
|
|
44
|
+
}],
|
|
45
|
+
"references": {
|
|
46
|
+
"Promise": {
|
|
47
|
+
"location": "global",
|
|
48
|
+
"id": "global::Promise"
|
|
49
|
+
},
|
|
50
|
+
"SdLoadingShowArgs": {
|
|
51
|
+
"location": "import",
|
|
52
|
+
"path": "./sd-loading-container.config",
|
|
53
|
+
"id": "src/components/sd-loading-container/sd-loading-container.config.ts::SdLoadingShowArgs",
|
|
54
|
+
"referenceLocation": "SdLoadingShowArgs"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"return": "Promise<void>"
|
|
58
|
+
},
|
|
59
|
+
"docs": {
|
|
60
|
+
"text": "",
|
|
61
|
+
"tags": []
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"hide": {
|
|
65
|
+
"complexType": {
|
|
66
|
+
"signature": "() => Promise<void>",
|
|
67
|
+
"parameters": [],
|
|
68
|
+
"references": {
|
|
69
|
+
"Promise": {
|
|
70
|
+
"location": "global",
|
|
71
|
+
"id": "global::Promise"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"return": "Promise<void>"
|
|
75
|
+
},
|
|
76
|
+
"docs": {
|
|
77
|
+
"text": "",
|
|
78
|
+
"tags": []
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import modalTokens from "../../tokens/generated/component.modal.json";
|
|
2
|
+
import spinnerTokens from "../../tokens/generated/component.spinner.json";
|
|
3
|
+
export const LOADING_MODAL_LAYOUT = {
|
|
4
|
+
minWidth: Number(modalTokens.modal.loading.width),
|
|
5
|
+
minHeight: Number(modalTokens.modal.loading.height),
|
|
6
|
+
gap: Number(modalTokens.modal.loading.gap),
|
|
7
|
+
contentSize: Number(modalTokens.modal.loading.content),
|
|
8
|
+
radius: Number(modalTokens.modal.radius),
|
|
9
|
+
};
|
|
10
|
+
export const LOADING_MODAL_COLORS = {
|
|
11
|
+
bg: modalTokens.modal.bg,
|
|
12
|
+
messageColor: modalTokens.modal.loading.message.color,
|
|
13
|
+
errorIcon: modalTokens.modal.confirm.negative.icon,
|
|
14
|
+
spinnerTrack: spinnerTokens.spinner.color.track,
|
|
15
|
+
spinnerArc: spinnerTokens.spinner.color.arc,
|
|
16
|
+
};
|
|
17
|
+
export const LOADING_MODAL_TYPOGRAPHY = {
|
|
18
|
+
fontFamily: modalTokens.modal.loading.message.typography.fontFamily,
|
|
19
|
+
fontSize: Number(modalTokens.modal.loading.message.typography.fontSize),
|
|
20
|
+
fontWeight: Number(modalTokens.modal.loading.message.typography.fontWeight),
|
|
21
|
+
lineHeight: Number(modalTokens.modal.loading.message.typography.lineHeight),
|
|
22
|
+
};
|
|
23
|
+
export const LOADING_MODAL_DEFAULT_MESSAGE = {
|
|
24
|
+
loading: '작업을 진행하고 있습니다. 잠시만 기다려 주세요.',
|
|
25
|
+
error: '작업에 실패하였습니다. 다시 시도해 주세요.',
|
|
26
|
+
};
|
|
27
|
+
export const LOADING_MODAL_DEFAULT_BUTTON_LABEL = {
|
|
28
|
+
loading: '작업 취소',
|
|
29
|
+
error: '다시 시도',
|
|
30
|
+
};
|
|
31
|
+
export const LOADING_MODAL_BUTTON_PRESET = 'neutral_outline_sm';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
sd-loading-modal {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
sd-loading-modal .sd-loading-modal {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: var(--sd-loading-modal-gap);
|
|
10
|
+
min-width: var(--sd-loading-modal-min-width);
|
|
11
|
+
min-height: var(--sd-loading-modal-min-height);
|
|
12
|
+
width: var(--sd-loading-modal-width, auto);
|
|
13
|
+
height: var(--sd-loading-modal-height, auto);
|
|
14
|
+
border-radius: var(--sd-loading-modal-radius);
|
|
15
|
+
background: var(--sd-loading-modal-bg);
|
|
16
|
+
box-shadow: 4px 4px 24px 4px rgba(0, 0, 0, 0.2);
|
|
17
|
+
}
|
|
18
|
+
sd-loading-modal .sd-loading-modal__content {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
width: var(--sd-loading-modal-content-size);
|
|
23
|
+
height: var(--sd-loading-modal-content-size);
|
|
24
|
+
}
|
|
25
|
+
sd-loading-modal .sd-loading-modal__message {
|
|
26
|
+
margin: 0;
|
|
27
|
+
color: var(--sd-loading-modal-message-color);
|
|
28
|
+
font-family: var(--sd-loading-modal-message-font-family);
|
|
29
|
+
font-size: var(--sd-loading-modal-message-font-size);
|
|
30
|
+
font-weight: var(--sd-loading-modal-message-font-weight);
|
|
31
|
+
line-height: var(--sd-loading-modal-message-line-height);
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
34
|
+
sd-loading-modal .sd-loading-modal__button {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
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
|
+
export class SdLoadingModal {
|
|
4
|
+
state = 'loading';
|
|
5
|
+
message = '';
|
|
6
|
+
buttonLabel = '';
|
|
7
|
+
width;
|
|
8
|
+
height;
|
|
9
|
+
click;
|
|
10
|
+
get resolvedMessage() {
|
|
11
|
+
return this.message || LOADING_MODAL_DEFAULT_MESSAGE[this.state];
|
|
12
|
+
}
|
|
13
|
+
get resolvedButtonLabel() {
|
|
14
|
+
return this.buttonLabel || LOADING_MODAL_DEFAULT_BUTTON_LABEL[this.state];
|
|
15
|
+
}
|
|
16
|
+
handleClick = () => {
|
|
17
|
+
this.click.emit();
|
|
18
|
+
};
|
|
19
|
+
toCssSize(value) {
|
|
20
|
+
if (value === undefined || value === null || value === '')
|
|
21
|
+
return undefined;
|
|
22
|
+
return typeof value === 'number' ? `${value}px` : value;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const cssVars = {
|
|
26
|
+
'--sd-loading-modal-min-width': `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
27
|
+
'--sd-loading-modal-min-height': `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
28
|
+
'--sd-loading-modal-gap': `${LOADING_MODAL_LAYOUT.gap}px`,
|
|
29
|
+
'--sd-loading-modal-content-size': `${LOADING_MODAL_LAYOUT.contentSize}px`,
|
|
30
|
+
'--sd-loading-modal-radius': `${LOADING_MODAL_LAYOUT.radius}px`,
|
|
31
|
+
'--sd-loading-modal-bg': LOADING_MODAL_COLORS.bg,
|
|
32
|
+
'--sd-loading-modal-message-color': LOADING_MODAL_COLORS.messageColor,
|
|
33
|
+
'--sd-loading-modal-message-font-family': LOADING_MODAL_TYPOGRAPHY.fontFamily,
|
|
34
|
+
'--sd-loading-modal-message-font-size': `${LOADING_MODAL_TYPOGRAPHY.fontSize}px`,
|
|
35
|
+
'--sd-loading-modal-message-font-weight': `${LOADING_MODAL_TYPOGRAPHY.fontWeight}`,
|
|
36
|
+
'--sd-loading-modal-message-line-height': `${LOADING_MODAL_TYPOGRAPHY.lineHeight}px`,
|
|
37
|
+
'--sd-loading-modal-error-color': LOADING_MODAL_COLORS.errorIcon,
|
|
38
|
+
};
|
|
39
|
+
const hostStyle = {
|
|
40
|
+
...cssVars,
|
|
41
|
+
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
42
|
+
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
43
|
+
};
|
|
44
|
+
return (h(Host, { key: 'dcc53b3421a88970ce4ad8258285a896da0e400c', style: hostStyle }, h("div", { key: 'bb2319b861392c8a88587b7654f2c6227b226cc7', class: "sd-loading-modal" }, h("div", { key: 'f3064846c06d2cd1e9d2474dc16fe80773c4a8f7', class: "sd-loading-modal__content" }, this.state === 'loading' ? (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("p", { key: '932c71930b4484d652266f85556e7eb2195a81c9', class: "sd-loading-modal__message" }, this.resolvedMessage), h("div", { key: 'e06cfa7729b72f881789d573f38116ac5086e062', class: "sd-loading-modal__button" }, h("sd-button-v2", { key: '63684aa367e552df0e020ce4766d6c34c1361427', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick })))));
|
|
45
|
+
}
|
|
46
|
+
static get is() { return "sd-loading-modal"; }
|
|
47
|
+
static get originalStyleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["sd-loading-modal.scss"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get styleUrls() {
|
|
53
|
+
return {
|
|
54
|
+
"$": ["sd-loading-modal.css"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
"state": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "LoadingModalState",
|
|
64
|
+
"resolved": "\"error\" | \"loading\"",
|
|
65
|
+
"references": {
|
|
66
|
+
"LoadingModalState": {
|
|
67
|
+
"location": "import",
|
|
68
|
+
"path": "./sd-loading-modal.config",
|
|
69
|
+
"id": "src/components/sd-loading-modal/sd-loading-modal.config.ts::LoadingModalState",
|
|
70
|
+
"referenceLocation": "LoadingModalState"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": ""
|
|
79
|
+
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
82
|
+
"reflect": true,
|
|
83
|
+
"attribute": "state",
|
|
84
|
+
"defaultValue": "'loading'"
|
|
85
|
+
},
|
|
86
|
+
"message": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "string",
|
|
91
|
+
"resolved": "string",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"optional": false,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [],
|
|
98
|
+
"text": ""
|
|
99
|
+
},
|
|
100
|
+
"getter": false,
|
|
101
|
+
"setter": false,
|
|
102
|
+
"reflect": false,
|
|
103
|
+
"attribute": "message",
|
|
104
|
+
"defaultValue": "''"
|
|
105
|
+
},
|
|
106
|
+
"buttonLabel": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": ""
|
|
119
|
+
},
|
|
120
|
+
"getter": false,
|
|
121
|
+
"setter": false,
|
|
122
|
+
"reflect": false,
|
|
123
|
+
"attribute": "button-label",
|
|
124
|
+
"defaultValue": "''"
|
|
125
|
+
},
|
|
126
|
+
"width": {
|
|
127
|
+
"type": "any",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "string | number",
|
|
131
|
+
"resolved": "number | string | undefined",
|
|
132
|
+
"references": {}
|
|
133
|
+
},
|
|
134
|
+
"required": false,
|
|
135
|
+
"optional": true,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [],
|
|
138
|
+
"text": ""
|
|
139
|
+
},
|
|
140
|
+
"getter": false,
|
|
141
|
+
"setter": false,
|
|
142
|
+
"reflect": false,
|
|
143
|
+
"attribute": "width"
|
|
144
|
+
},
|
|
145
|
+
"height": {
|
|
146
|
+
"type": "any",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "string | number",
|
|
150
|
+
"resolved": "number | string | undefined",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": true,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": ""
|
|
158
|
+
},
|
|
159
|
+
"getter": false,
|
|
160
|
+
"setter": false,
|
|
161
|
+
"reflect": false,
|
|
162
|
+
"attribute": "height"
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
static get events() {
|
|
167
|
+
return [{
|
|
168
|
+
"method": "click",
|
|
169
|
+
"name": "sdClick",
|
|
170
|
+
"bubbles": true,
|
|
171
|
+
"cancelable": true,
|
|
172
|
+
"composed": true,
|
|
173
|
+
"docs": {
|
|
174
|
+
"tags": [],
|
|
175
|
+
"text": ""
|
|
176
|
+
},
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "void",
|
|
179
|
+
"resolved": "void",
|
|
180
|
+
"references": {}
|
|
181
|
+
}
|
|
182
|
+
}];
|
|
183
|
+
}
|
|
184
|
+
}
|