@sellmate/design-system 1.8.0 → 1.10.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/{component.datepicker-Cw_-oidk.js → component.datepicker-CUQbDSku.js} +0 -1
- package/dist/cjs/component.field-YIQ9TAhV.js +61 -0
- package/dist/cjs/{component.textinput-BpXDeZPD.js → component.textinput-Bb-nU5xI.js} +3 -2
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-BGwB03Tk.js → index-C63F8C0_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +3 -3
- package/dist/cjs/{sd-button.config-BSHkfgdC.js → sd-button.config-eTAJM2iW.js} +17 -4
- package/dist/cjs/sd-button_2.cjs.entry.js +7 -6
- package/dist/cjs/sd-calendar_2.cjs.entry.js +10 -9
- package/dist/cjs/sd-callout.cjs.entry.js +2 -2
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +274 -0
- package/dist/cjs/sd-chip.cjs.entry.js +15 -87
- package/dist/cjs/sd-chip.config-DiLoRpct.js +71 -0
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{sd-date-picker.config-D3lTpa6W.js → sd-date-picker.config-CtXmufyj.js} +6 -2
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +34 -48
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +4 -4
- package/dist/cjs/sd-divider.cjs.entry.js +2 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +10 -6
- package/dist/cjs/sd-field_3.cjs.entry.js +15 -56
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_2.cjs.entry.js +407 -0
- package/dist/cjs/sd-guide.cjs.entry.js +1 -1
- package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +9 -9
- package/dist/cjs/sd-popover.cjs.entry.js +8 -7
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- package/dist/cjs/sd-portal.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +9 -8
- package/dist/cjs/{sd-select.config-B19ptCT2.js → sd-select.config-DrJ4LNVz.js} +24 -13
- package/dist/cjs/sd-select_3.cjs.entry.js +16 -13
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +7 -7
- package/dist/cjs/sd-tabs.cjs.entry.js +6 -3
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +20 -20
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-COD-SNZL.js → tooltipArrow-DONQ8MML.js} +1 -1
- package/dist/cjs/{useDatePicker-dCuEgvjX.js → useDatePicker-iMd6WToc.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.config.js +10 -2
- package/dist/collection/components/sd-button/sd-button.css +6 -5
- package/dist/collection/components/sd-button/sd-button.js +5 -4
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.config.js +0 -1
- package/dist/collection/components/sd-chip/sd-chip.css +5 -0
- package/dist/collection/components/sd-chip/sd-chip.js +7 -5
- package/dist/collection/components/sd-chip-input/sd-chip-input.config.js +48 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +92 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +709 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- 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 +5 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- 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-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +3 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +4 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +5 -3
- package/dist/collection/components/sd-field/sd-field.js +6 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +11 -10
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +21 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +27 -2
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.config.js +4 -3
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +5 -5
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +4 -3
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +7 -4
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +4 -3
- package/dist/collection/components/sd-select/sd-select.config.js +17 -10
- package/dist/collection/components/sd-select/sd-select.js +5 -6
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.css +27 -0
- package/dist/collection/components/sd-tabs/sd-tabs.js +24 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.config.js +4 -4
- package/dist/collection/components/sd-text-link/sd-text-link.js +11 -11
- 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.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/p-0KaFFbD8.js +1 -0
- package/dist/components/{p-p4bNikji.js → p-4XivETkt.js} +1 -1
- package/dist/components/p-AmkZCF9y.js +1 -0
- package/dist/components/p-BA8i1i5_.js +1 -0
- package/dist/components/{p-DQj-S8AC.js → p-BNkExhYB.js} +1 -1
- package/dist/components/p-BOJJ_sQS.js +1 -0
- package/dist/components/p-B_FQcRtk.js +1 -0
- package/dist/components/{p-lOVBaLB7.js → p-BcsFHQH8.js} +1 -1
- package/dist/components/p-BnaD56dI.js +1 -0
- package/dist/components/p-Bq9q5LoZ.js +1 -0
- package/dist/components/p-BwUUaGFU.js +1 -0
- package/dist/components/{p-DnW8EAqd.js → p-BysikR_g.js} +1 -1
- package/dist/components/p-C5wgHjtx.js +1 -0
- package/dist/components/{p-gqfJ-KUj.js → p-C79Cowjq.js} +1 -1
- package/dist/components/{p-Cye8r1MG.js → p-CFL9Rfh8.js} +1 -1
- package/dist/components/{p-uVZjhyvS.js → p-CJdrq8cV.js} +1 -1
- package/dist/components/{p-DCFqtVBm.js → p-CJr5BdNN.js} +1 -1
- package/dist/components/p-CWlwx4xx.js +1 -0
- package/dist/components/p-CWz_dfBG.js +1 -0
- package/dist/components/{p-D6cUtm8p.js → p-CjVOfLam.js} +1 -1
- package/dist/components/{p-wLoP3KMv.js → p-Ck9bJZTm.js} +1 -1
- package/dist/components/{p-CwQTEZWO.js → p-CkQzw2e0.js} +1 -1
- package/dist/components/p-CqvS2J1B.js +1 -0
- package/dist/components/p-CyGi6aGo.js +1 -0
- package/dist/components/p-Cz9ralVS.js +1 -0
- package/dist/components/{p-y_6iWhDy.js → p-D4TisqIF.js} +1 -1
- package/dist/components/p-D5O7fZYw.js +1 -0
- package/dist/components/p-DApxX0af.js +1 -0
- package/dist/components/p-DR0N8_Vt.js +1 -0
- package/dist/components/p-DUhqd8c7.js +1 -0
- package/dist/components/{p-BasCjDiE.js → p-DjS-dtF5.js} +1 -1
- package/dist/components/p-DmbwfZF7.js +1 -0
- package/dist/components/p-Dp6NByuZ.js +1 -0
- package/dist/components/{p-Bx9dlLbs.js → p-Dt9-l05k.js} +1 -1
- package/dist/components/{p-DhmsCQrB.js → p-DwU-e9i1.js} +1 -1
- package/dist/components/{p-BWJtQGYo.js → p-Dwl1u73P.js} +1 -1
- package/dist/components/{p-EcuI_UmK.js → p-NaAHdFVI.js} +1 -1
- package/dist/components/{p-ByhWX2NK.js → p-e0ABNkP6.js} +1 -1
- package/dist/components/{p-B45aOf4I.js → p-ipduET5U.js} +1 -1
- package/dist/components/{p-DKwnEkHE.js → p-jtJFHONo.js} +1 -1
- package/dist/components/p-laVsm9VM.js +1 -0
- package/dist/components/{p-CTuKWVTh.js → p-pfGv13eX.js} +1 -1
- package/dist/components/p-siTDlOb6.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip-input.d.ts +11 -0
- package/dist/components/sd-chip-input.js +1 -0
- 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-e81cb8c9.entry.js → p-0ac4d17b.entry.js} +1 -1
- package/dist/design-system/p-12c1ddfc.entry.js +1 -0
- package/dist/design-system/{p-5d5d8220.entry.js → p-15518cf5.entry.js} +1 -1
- package/dist/design-system/{p-07b0d118.entry.js → p-20ebfd9e.entry.js} +1 -1
- package/dist/design-system/{p-ff33d019.entry.js → p-24cb3aef.entry.js} +1 -1
- package/dist/design-system/{p-ea586c5e.entry.js → p-27f61c1f.entry.js} +1 -1
- package/dist/design-system/{p-db826b91.entry.js → p-2ef3cd00.entry.js} +1 -1
- package/dist/design-system/p-2f53e2f9.entry.js +1 -0
- package/dist/design-system/{p-78b0b759.entry.js → p-36b8f224.entry.js} +1 -1
- package/dist/design-system/{p-eb18d812.entry.js → p-3bd59260.entry.js} +1 -1
- package/dist/design-system/p-4fd59127.entry.js +1 -0
- package/dist/design-system/p-5b2dd552.entry.js +1 -0
- package/dist/design-system/{p-0de5a53b.entry.js → p-5deefcbc.entry.js} +1 -1
- package/dist/design-system/{p-a5930cbd.entry.js → p-6ebd85ae.entry.js} +1 -1
- package/dist/design-system/{p-f14962bd.entry.js → p-7440fbe7.entry.js} +1 -1
- package/dist/design-system/p-798c0f9b.entry.js +1 -0
- package/dist/design-system/{p-cce38339.entry.js → p-7b01d78b.entry.js} +1 -1
- package/dist/design-system/p-7ca9a6c9.entry.js +1 -0
- package/dist/design-system/p-90cc9785.entry.js +1 -0
- package/dist/design-system/p-9f899376.entry.js +1 -0
- package/dist/design-system/p-9ff473b2.entry.js +1 -0
- package/dist/design-system/p-BOJJ_sQS.js +1 -0
- package/dist/design-system/p-BpO2YWvq.js +2 -0
- package/dist/design-system/{p-BGtUaScP.js → p-BqWuC4-J.js} +1 -1
- package/dist/design-system/{p-LIf7YMBN.js → p-CcVraVK0.js} +1 -1
- package/dist/design-system/p-DDj5KTBF.js +1 -0
- package/dist/design-system/p-DjcjlPt7.js +1 -0
- package/dist/design-system/p-DtrsLG0Z.js +1 -0
- package/dist/design-system/p-a1f248ed.entry.js +1 -0
- package/dist/design-system/{p-9e75a5dc.entry.js → p-a4fff652.entry.js} +1 -1
- package/dist/design-system/{p-cffa6da7.entry.js → p-a9892cbe.entry.js} +1 -1
- package/dist/design-system/{p-1219699a.entry.js → p-acaaf137.entry.js} +1 -1
- package/dist/design-system/{p-18d3ae55.entry.js → p-b1d1f1d3.entry.js} +1 -1
- package/dist/design-system/{p-d8292621.entry.js → p-b456b9ac.entry.js} +1 -1
- package/dist/design-system/{p-1632a28d.entry.js → p-b495f26c.entry.js} +1 -1
- package/dist/design-system/p-b63c672a.entry.js +1 -0
- package/dist/design-system/{p-8528ba1e.entry.js → p-bbae006c.entry.js} +1 -1
- package/dist/design-system/p-bbb51afa.entry.js +1 -0
- package/dist/design-system/{p-8fc49d2d.entry.js → p-cad22f63.entry.js} +1 -1
- package/dist/design-system/p-d24F7UcR.js +1 -0
- package/dist/design-system/p-d40ffa84.entry.js +1 -0
- package/dist/design-system/{p-ByhWX2NK.js → p-e0ABNkP6.js} +1 -1
- package/dist/design-system/{p-aa28712a.entry.js → p-e4944ae6.entry.js} +1 -1
- package/dist/design-system/{p-2c0a8333.entry.js → p-e5f1156c.entry.js} +1 -1
- package/dist/design-system/p-f4597b6e.entry.js +1 -0
- package/dist/design-system/p-f462bc54.entry.js +1 -0
- package/dist/design-system/{p-4b43648c.entry.js → p-f5eb4e2f.entry.js} +1 -1
- package/dist/design-system/{p-e6bd8ab1.entry.js → p-f8b6b169.entry.js} +1 -1
- package/dist/design-system/{p-1aafbc7b.entry.js → p-fcd3961f.entry.js} +1 -1
- package/dist/design-system/{p-25fad267.entry.js → p-ff24fcb2.entry.js} +1 -1
- package/dist/design-system/p-laVsm9VM.js +1 -0
- package/dist/esm/{component.datepicker-BQn6le_Y.js → component.datepicker-laVsm9VM.js} +0 -1
- package/dist/esm/component.field-BOJJ_sQS.js +59 -0
- package/dist/esm/{component.textinput-ByhWX2NK.js → component.textinput-e0ABNkP6.js} +3 -2
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-DNWwGHho.js → index-BpO2YWvq.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +3 -3
- package/dist/esm/{sd-button.config-C7p6g_sM.js → sd-button.config-DjcjlPt7.js} +16 -4
- package/dist/esm/sd-button_2.entry.js +7 -6
- package/dist/esm/sd-calendar_2.entry.js +10 -9
- package/dist/esm/sd-callout.entry.js +2 -2
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +272 -0
- package/dist/esm/sd-chip.config-DDj5KTBF.js +67 -0
- package/dist/esm/sd-chip.entry.js +10 -82
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{sd-date-picker.config-CGEE3DkI.js → sd-date-picker.config-6dvDZPGx.js} +6 -2
- package/dist/esm/sd-date-picker_7.entry.js +34 -48
- package/dist/esm/sd-date-range-picker-calendar.entry.js +4 -4
- package/dist/esm/sd-divider.entry.js +2 -2
- package/dist/esm/sd-dropdown-button.entry.js +10 -6
- package/dist/esm/sd-field_3.entry.js +12 -53
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_2.entry.js +404 -0
- package/dist/esm/sd-guide.entry.js +1 -1
- package/dist/esm/sd-key-value-table.entry.js +1 -1
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination_4.entry.js +9 -9
- package/dist/esm/sd-popover.entry.js +8 -7
- package/dist/esm/sd-popup.entry.js +2 -2
- package/dist/esm/sd-portal.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +9 -8
- package/dist/esm/{sd-select.config-CxOCk_ge.js → sd-select.config-DtrsLG0Z.js} +23 -14
- package/dist/esm/sd-select_3.entry.js +16 -13
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-table.entry.js +7 -7
- package/dist/esm/sd-tabs.entry.js +6 -3
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +20 -20
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{tooltipArrow-Cj3AqWK0.js → tooltipArrow-DrrY_fPj.js} +1 -1
- package/dist/esm/{useDatePicker-D5RmWGOp.js → useDatePicker-DoUg--aq.js} +1 -1
- package/dist/types/components/sd-barcode-input/sd-barcode-input.config.d.ts +0 -2
- package/dist/types/components/sd-button/sd-button.config.d.ts +10 -2
- package/dist/types/components/sd-chip/sd-chip.config.d.ts +0 -1
- package/dist/types/components/sd-chip-input/sd-chip-input.config.d.ts +34 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +53 -0
- package/dist/types/components/sd-date-picker/sd-date-picker.config.d.ts +1 -1
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +9 -1
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +1 -0
- package/dist/types/components/sd-input/sd-input.config.d.ts +0 -2
- package/dist/types/components/sd-number-input/sd-number-input.config.d.ts +2 -2
- package/dist/types/components/sd-popover/sd-popover.d.ts +1 -1
- package/dist/types/components/sd-select/sd-select.config.d.ts +2 -0
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +1 -0
- package/dist/types/components/sd-text-link/sd-text-link.d.ts +1 -1
- package/dist/types/components/sd-textarea/sd-textarea.config.d.ts +0 -2
- package/dist/types/components.d.ts +217 -7
- package/hydrate/index.js +591 -251
- package/hydrate/index.mjs +591 -251
- package/package.json +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +0 -179
- package/dist/cjs/sd-tag.cjs.entry.js +0 -227
- package/dist/components/p-2z2c2umH.js +0 -1
- package/dist/components/p-B6G64i5a.js +0 -1
- package/dist/components/p-B6JOxZKP.js +0 -1
- package/dist/components/p-B6L3bPm2.js +0 -1
- package/dist/components/p-BQn6le_Y.js +0 -1
- package/dist/components/p-Bhh7ig9Q.js +0 -1
- package/dist/components/p-C4uWhzoG.js +0 -1
- package/dist/components/p-C8c6MuKQ.js +0 -1
- package/dist/components/p-CkR5oiLy.js +0 -1
- package/dist/components/p-CvfW21oo.js +0 -1
- package/dist/components/p-D7g33VZR.js +0 -1
- package/dist/components/p-DISZkQqT.js +0 -1
- package/dist/components/p-DMrXwfmf.js +0 -1
- package/dist/components/p-DP0Dp12H.js +0 -1
- package/dist/components/p-DhtKHJ7-.js +0 -1
- package/dist/components/p-DmDGMDzt.js +0 -1
- package/dist/components/p-DoREs-rv.js +0 -1
- package/dist/components/p-I9SoAcVO.js +0 -1
- package/dist/components/p-cX2DD74L.js +0 -1
- package/dist/components/p-f10Mw7qM.js +0 -1
- package/dist/components/p-pwNG5WaX.js +0 -1
- package/dist/design-system/p-18057222.entry.js +0 -1
- package/dist/design-system/p-25204798.entry.js +0 -1
- package/dist/design-system/p-3e2b5e01.entry.js +0 -1
- package/dist/design-system/p-46faa7ed.entry.js +0 -1
- package/dist/design-system/p-4c3ead1b.entry.js +0 -1
- package/dist/design-system/p-5c4fd9c1.entry.js +0 -1
- package/dist/design-system/p-60b80bf3.entry.js +0 -1
- package/dist/design-system/p-74b3e95b.entry.js +0 -1
- package/dist/design-system/p-8674d868.entry.js +0 -1
- package/dist/design-system/p-95bbba4f.entry.js +0 -1
- package/dist/design-system/p-9d34518e.entry.js +0 -1
- package/dist/design-system/p-BQn6le_Y.js +0 -1
- package/dist/design-system/p-C7p6g_sM.js +0 -1
- package/dist/design-system/p-CxOCk_ge.js +0 -1
- package/dist/design-system/p-DNWwGHho.js +0 -2
- package/dist/design-system/p-TF8_Lyhq.js +0 -1
- package/dist/design-system/p-c1bac61e.entry.js +0 -1
- package/dist/design-system/p-cf685d90.entry.js +0 -1
- package/dist/design-system/p-deec1ef0.entry.js +0 -1
- package/dist/design-system/p-f3dff8b8.entry.js +0 -1
- package/dist/esm/sd-ghost-button.entry.js +0 -177
- package/dist/esm/sd-tag.entry.js +0 -225
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BpO2YWvq.js';
|
|
2
|
+
import { g as LIST_ITEM_LAYOUT, i as isHtmlLabel, h as LIST_ITEM_TYPOGRAPHY, j as LIST_ITEM_COLORS, k as SEARCH_DEBOUNCE_MS } from './sd-select.config-DtrsLG0Z.js';
|
|
3
|
+
import { s as sanitizeInlineHtml } from './sanitize-inline-html-BE4tnQ2Z.js';
|
|
3
4
|
|
|
4
5
|
const sdSelectListItemCss = () => `sd-select-list-item{display:block}sd-select-list-item .sd-select-list-item{display:flex;align-items:center;gap:var(--list-item-gap);padding:var(--list-item-padding-y) var(--list-item-padding-right) var(--list-item-padding-y) var(--list-item-padding-left);font-size:var(--list-item-font-size);line-height:var(--list-item-line-height);font-weight:var(--list-item-font-weight);background:var(--list-item-bg);color:var(--list-item-color);cursor:default;user-select:none}sd-select-list-item .sd-select-list-item--selectable{cursor:pointer}sd-select-list-item .sd-select-list-item--depth1-group{border-top:var(--list-item-border-top);font-weight:700}sd-select-list-item .sd-select-list-item--depth2-group{font-weight:500}sd-select-list-item .sd-select-list-item--focused.sd-select-list-item--selectable:not(.sd-select-list-item--disabled){background:var(--list-item-bg-hover);color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--selected:not(.sd-select-list-item--group){font-weight:var(--list-item-font-weight-selected);color:var(--list-item-color-selected)}sd-select-list-item .sd-select-list-item--selected.sd-select-list-item--focused{color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--disabled{color:var(--list-item-color-disabled);cursor:not-allowed}sd-select-list-item .sd-select-list-item__label{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-select-list-item .sd-select-list-item__count{flex-shrink:0;font-weight:500;color:var(--list-item-color-disabled)}sd-select-list-item .sd-select-list-item--group.sd-select-list-item--focused .sd-select-list-item__count{color:#ffffff}sd-select-list-item .sd-select-list-item__checkbox{flex-shrink:0}`;
|
|
5
6
|
|
|
@@ -77,7 +78,7 @@ const SdSelectListItem = class {
|
|
|
77
78
|
return (
|
|
78
79
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
79
80
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
80
|
-
h("div", { key: '
|
|
81
|
+
h("div", { key: '55ebe094653cb89d5c70916c3e0a2f4ccb5551f8', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
81
82
|
'sd-select-list-item': true,
|
|
82
83
|
'sd-select-list-item--group': isGroup,
|
|
83
84
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -87,7 +88,7 @@ const SdSelectListItem = class {
|
|
|
87
88
|
'sd-select-list-item--focused': this.isFocused,
|
|
88
89
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
89
90
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
90
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
91
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'f636931bc20264db98e521b11b819610cda764cd', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '89750bc08c03915b738da390f4255e7451aa9d6d', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
94
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -140,15 +141,15 @@ const SdSelectListItemSearch = class {
|
|
|
140
141
|
clearTimeout(this.debounceTimer);
|
|
141
142
|
}
|
|
142
143
|
render() {
|
|
143
|
-
return (h("div", { key: '
|
|
144
|
+
return (h("div", { key: '6cf78c7d616dc21a7a6e806c184322d12cacb50d', class: {
|
|
144
145
|
'sd-select-list-item-search': true,
|
|
145
146
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
146
|
-
} }, h("div", { key: '
|
|
147
|
+
} }, h("div", { key: 'dd9fa44fed1f3ec7a222dacaa710cdf32ddbe6fc', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '2d65a81b7b6160ac4e93016adea0da43d5d01ec8', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: '0d5c4bb09778518aa17a210a2d1a9eb620a1dd7b', ref: el => {
|
|
147
148
|
this.inputEl = el;
|
|
148
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
149
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'e9708437f310788bf8b9a4d358dea9b83cc88ed8', type: "button", class: {
|
|
149
150
|
'sd-select-list-item-search__clear': true,
|
|
150
151
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
151
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
152
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'ed8b1c93809f823205f357b059a8b556e0278b1c', name: "close", size: 12, color: "#888888" })))));
|
|
152
153
|
}
|
|
153
154
|
};
|
|
154
155
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
const select = {
|
|
2
|
-
|
|
2
|
+
sm: {
|
|
3
|
+
paddingX: "12",
|
|
4
|
+
gap: "8",
|
|
5
|
+
typography: {
|
|
6
|
+
fontWeight: "400",
|
|
7
|
+
fontSize: "12",
|
|
8
|
+
lineHeight: "20"}},
|
|
3
9
|
icon: {
|
|
4
10
|
"default": "#888888",
|
|
5
11
|
disabled: "#BBBBBB"
|
|
6
12
|
},
|
|
7
|
-
gap: "8",
|
|
8
|
-
typography: {
|
|
9
|
-
fontWeight: "400",
|
|
10
|
-
fontSize: "12",
|
|
11
|
-
lineHeight: "20"},
|
|
12
13
|
text: {
|
|
13
14
|
"default": "#222222",
|
|
14
15
|
disabled: "#888888"
|
|
15
|
-
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
16
18
|
var selectTokens = {
|
|
17
19
|
select: select
|
|
18
20
|
};
|
|
@@ -67,12 +69,12 @@ var listBoxTokens = {
|
|
|
67
69
|
|
|
68
70
|
// ── Select Trigger Tokens ──
|
|
69
71
|
const SELECT_LAYOUT = {
|
|
70
|
-
paddingX: selectTokens.select.paddingX,
|
|
71
|
-
gap: selectTokens.select.gap};
|
|
72
|
+
paddingX: selectTokens.select.sm.paddingX,
|
|
73
|
+
gap: selectTokens.select.sm.gap};
|
|
72
74
|
const SELECT_TYPOGRAPHY = {
|
|
73
|
-
fontSize: selectTokens.select.typography.fontSize,
|
|
74
|
-
lineHeight: selectTokens.select.typography.lineHeight,
|
|
75
|
-
fontWeight: selectTokens.select.typography.fontWeight,
|
|
75
|
+
fontSize: selectTokens.select.sm.typography.fontSize,
|
|
76
|
+
lineHeight: selectTokens.select.sm.typography.lineHeight,
|
|
77
|
+
fontWeight: selectTokens.select.sm.typography.fontWeight,
|
|
76
78
|
};
|
|
77
79
|
const SELECT_COLORS = {
|
|
78
80
|
icon: {
|
|
@@ -129,6 +131,12 @@ const SEARCH_THRESHOLD = 11;
|
|
|
129
131
|
const SEARCH_DEBOUNCE_MS = 1000;
|
|
130
132
|
const EMPTY_MESSAGE = '표시할 항목이 없습니다.';
|
|
131
133
|
// ── Utilities ──
|
|
134
|
+
function isHtmlLabel(label) {
|
|
135
|
+
return /<[a-z][\s\S]*>/i.test(label);
|
|
136
|
+
}
|
|
137
|
+
function extractText(html) {
|
|
138
|
+
return html.replace(/<[^>]*>/g, '');
|
|
139
|
+
}
|
|
132
140
|
function countLeaves(options) {
|
|
133
141
|
return options.reduce((sum, option) => {
|
|
134
142
|
if (option.children) {
|
|
@@ -140,7 +148,8 @@ function countLeaves(options) {
|
|
|
140
148
|
function filterTree(options, keyword) {
|
|
141
149
|
const lowerKeyword = keyword.toLowerCase();
|
|
142
150
|
return options.reduce((acc, option) => {
|
|
143
|
-
const
|
|
151
|
+
const labelText = isHtmlLabel(option.label) ? extractText(option.label) : option.label;
|
|
152
|
+
const selfMatch = labelText.toLowerCase().includes(lowerKeyword);
|
|
144
153
|
if (option.children) {
|
|
145
154
|
// 그룹: 자식은 항상 추가로 필터링한다.
|
|
146
155
|
// - 자식 중 일치하는 게 있으면 그 자식들만 노출
|
|
@@ -162,4 +171,4 @@ function filterTree(options, keyword) {
|
|
|
162
171
|
}, []);
|
|
163
172
|
}
|
|
164
173
|
|
|
165
|
-
export { EMPTY_MESSAGE as E, LIST_BOX_LAYOUT as L, SEARCH_THRESHOLD as S, SELECT_COLORS as a, SELECT_TYPOGRAPHY as b, countLeaves as c, SELECT_LAYOUT as d,
|
|
174
|
+
export { EMPTY_MESSAGE as E, LIST_BOX_LAYOUT as L, SEARCH_THRESHOLD as S, SELECT_COLORS as a, SELECT_TYPOGRAPHY as b, countLeaves as c, SELECT_LAYOUT as d, extractText as e, filterTree as f, LIST_ITEM_LAYOUT as g, LIST_ITEM_TYPOGRAPHY as h, isHtmlLabel as i, LIST_ITEM_COLORS as j, SEARCH_DEBOUNCE_MS as k };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-BpO2YWvq.js';
|
|
2
2
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
|
-
import { c as countLeaves, S as SEARCH_THRESHOLD, f as filterTree, E as EMPTY_MESSAGE, L as LIST_BOX_LAYOUT, a as SELECT_COLORS, b as SELECT_TYPOGRAPHY, d as SELECT_LAYOUT } from './sd-select.config-
|
|
3
|
+
import { c as countLeaves, S as SEARCH_THRESHOLD, f as filterTree, i as isHtmlLabel, e as extractText, E as EMPTY_MESSAGE, L as LIST_BOX_LAYOUT, a as SELECT_COLORS, b as SELECT_TYPOGRAPHY, d as SELECT_LAYOUT } from './sd-select.config-DtrsLG0Z.js';
|
|
4
|
+
import { s as sanitizeInlineHtml } from './sanitize-inline-html-BE4tnQ2Z.js';
|
|
4
5
|
|
|
5
6
|
const sdSelectCss = () => `sd-select{display:inline-flex}sd-select sd-portal{display:none}sd-select .sd-select{position:relative;width:100%;height:100%}`;
|
|
6
7
|
|
|
@@ -102,8 +103,7 @@ const SdSelect = class {
|
|
|
102
103
|
return this.value.label ?? '';
|
|
103
104
|
}
|
|
104
105
|
const flat = this.flattenOptions(this.options);
|
|
105
|
-
|
|
106
|
-
return found?.label ?? '';
|
|
106
|
+
return flat.find(o => o.value === this.value)?.label ?? '';
|
|
107
107
|
}
|
|
108
108
|
flattenOptions(options) {
|
|
109
109
|
return options.flatMap(o => (o.children ? this.flattenOptions(o.children) : [o]));
|
|
@@ -263,15 +263,15 @@ const SdSelect = class {
|
|
|
263
263
|
this.closeDropdown();
|
|
264
264
|
},
|
|
265
265
|
};
|
|
266
|
-
return (h("sd-field", { key: '
|
|
266
|
+
return (h("sd-field", { key: 'd3c3175067494715963592806a150bebadd8970c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
267
267
|
this.hovered = true;
|
|
268
268
|
}, onMouseLeave: () => {
|
|
269
269
|
this.hovered = false;
|
|
270
|
-
} }, h("div", { key: '
|
|
270
|
+
} }, h("div", { key: 'c291b661a968375c341d26ac48f7ff7fd4947e3e', class: "sd-select", ref: el => {
|
|
271
271
|
this.triggerRef = el;
|
|
272
|
-
} }, h("sd-select-trigger", { key: '
|
|
272
|
+
} }, h("sd-select-trigger", { key: '45da184f72f989d9c6be05479fec7a616f168ddf', ref: el => {
|
|
273
273
|
this.triggerComponentRef = el;
|
|
274
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '
|
|
274
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'bd7a612cf9ef74e157336a8de0170cebb61074dc', ...portalProps }, h("sd-select-listbox", { key: '8117fab3ef6b2f5f77e74a234c6b21dfc2549df1', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
275
275
|
}
|
|
276
276
|
static get watchers() { return {
|
|
277
277
|
"isOpen": [{
|
|
@@ -354,7 +354,10 @@ const SdSelectListbox = class {
|
|
|
354
354
|
if (this.isDepth)
|
|
355
355
|
return filterTree(this.options, this.searchKeyword);
|
|
356
356
|
const keyword = this.searchKeyword.toLowerCase();
|
|
357
|
-
return this.options.filter(o =>
|
|
357
|
+
return this.options.filter(o => {
|
|
358
|
+
const labelText = isHtmlLabel(o.label) ? extractText(o.label) : o.label;
|
|
359
|
+
return labelText.toLowerCase().includes(keyword);
|
|
360
|
+
});
|
|
358
361
|
}
|
|
359
362
|
get isEmpty() {
|
|
360
363
|
if (this.isDepth)
|
|
@@ -635,9 +638,9 @@ const SdSelectListbox = class {
|
|
|
635
638
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
636
639
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
637
640
|
};
|
|
638
|
-
return (h("div", { key: '
|
|
641
|
+
return (h("div", { key: '6c2cbad13f8aaa8c0552068c7cbc35a147bee77d', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '052d783e27e2458aa397c77fe891dad4a440f09e', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'bba95f3c4475d01a65562ba079c8666e3325195d', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
639
642
|
this.listEl = el;
|
|
640
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
643
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '2f55bbacbed71952903599db0739773176ac55fd', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
641
644
|
}
|
|
642
645
|
static get watchers() { return {
|
|
643
646
|
"searchKeyword": [{
|
|
@@ -697,7 +700,7 @@ const SdSelectTrigger = class {
|
|
|
697
700
|
? SELECT_COLORS.icon.disabled
|
|
698
701
|
: SELECT_COLORS.icon.default,
|
|
699
702
|
};
|
|
700
|
-
return (h("div", { key: '
|
|
703
|
+
return (h("div", { key: 'b5a4f750c00889d0d9b985211063fc6b20bc2e38', ref: el => {
|
|
701
704
|
this.triggerEl = el;
|
|
702
705
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
703
706
|
'sd-select-trigger': true,
|
|
@@ -708,7 +711,7 @@ const SdSelectTrigger = class {
|
|
|
708
711
|
e.preventDefault();
|
|
709
712
|
this.handleClick();
|
|
710
713
|
}
|
|
711
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
714
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'be0b61c0550618602ef016504fa1672f7520fa93', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: '9d60c3eeae54ce6ed9609534e3530d0349d1a3ff', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
712
715
|
'sd-select-trigger__icon': true,
|
|
713
716
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
714
717
|
} }))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BpO2YWvq.js';
|
|
2
2
|
|
|
3
3
|
var switchTokens = {
|
|
4
4
|
"switch": {
|
|
@@ -100,7 +100,7 @@ const SdSwitch = class {
|
|
|
100
100
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
101
101
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
102
102
|
};
|
|
103
|
-
return (h("label", { key: '
|
|
103
|
+
return (h("label", { key: '54ebe92b29a80537e2e4380ffe096a252f883d10', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'd18abbbf293434f07ae7dfa18b983b47cac1b774', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '76fef910e632b541c0b33c508e6001529df5614f', class: "sd-switch__track" }, h("div", { key: 'a66f4ecca5787f00febe19216a93ec62916e0541', class: "sd-switch__knob" })), this.label && h("span", { key: '948d2b7afc6e171ee329752cb85f8e361f6bbed8', class: "sd-switch__label" }, this.label)));
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-BpO2YWvq.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
import { T as TABLE_BODY_LAYOUT, a as TABLE_SELECTABLE_COLUMN_WIDTH, b as TABLE_BODY_TYPOGRAPHY, c as TABLE_BORDER, d as TABLE_RADIUS } from './sd-table.config-D9meRqTx.js';
|
|
4
4
|
import './component.table-D6GUzecR.js';
|
|
@@ -843,24 +843,24 @@ const SdTable = class {
|
|
|
843
843
|
'--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
844
844
|
'--table-host-height': hostHeight,
|
|
845
845
|
};
|
|
846
|
-
return (h(Host, { key: '
|
|
846
|
+
return (h(Host, { key: '164ba96033be0195fa50e3d4d684059b9c471479', style: hostStyle }, h("div", { key: '2f1a1be73f86c72e7caa46981ee691d29bb237c7', class: "sd-table__container", style: {
|
|
847
847
|
'--table-width': this.width,
|
|
848
848
|
'--pagination-height': `${paginationHeight}px`,
|
|
849
|
-
} }, h("div", { key: '
|
|
849
|
+
} }, h("div", { key: '16976d24d4c21714183f9691b06c503b86388c54', class: {
|
|
850
850
|
'sd-table__wrapper': true,
|
|
851
851
|
'sd-table__wrapper--use-top': this.useTop,
|
|
852
|
-
} }, h("div", { key: '
|
|
852
|
+
} }, h("div", { key: 'fdd0dcfbff4c3a5e441d720d2e1a39a69c51f9cf', class: {
|
|
853
853
|
'sd-table__scroll-container': true,
|
|
854
854
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
855
855
|
'sd-table__scroll-container--no-data': isNoData,
|
|
856
|
-
} }, this.isLoading && (h("div", { key: '
|
|
856
|
+
} }, this.isLoading && (h("div", { key: 'facb26c0d1651d4a2a6e0dee5c1b8ca73586de89', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '844b92fc9fc38f95d51092b698b67b685bcba076', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '458c8e24b85c0e7c99afe940c3d5856e63bc582a', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'bd29a77ac11da7e5d513955a4c4baa0dd89a623d', class: "sd-table__no-data" }, h("div", { key: '7db0e8e3888e97638f3c78d560e844cc0f8b2944', class: "sd-table__no-data-content", ref: el => {
|
|
857
857
|
this.noDataContentEl = el;
|
|
858
858
|
if (el)
|
|
859
859
|
this.syncNoDataContentObserver();
|
|
860
|
-
} }, h("slot", { key: '
|
|
860
|
+
} }, h("slot", { key: 'fa175041907d4af7e5e0db7cad6e9a3e16e96901', name: "no-data" }, h("span", { key: '3fae3a23d86dc543502f74574a4b5c3f026b9992' }, this.resolvedNoDataLabel)))))), h("table", { key: '9ae98e0697e045b308f7e584fb496692acade8ba', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
861
861
|
this.pagination.rowsPerPage > 0 &&
|
|
862
862
|
this.rowCount > 0 &&
|
|
863
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
863
|
+
!this.useVirtualScroll && (h("div", { key: 'a0da779351490332035ec784bc301ea2cb017afd', class: "sd-table__pagination" }, h("sd-pagination", { key: '8c3bcd06e1644afaebabd3762cdb03900f727142', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '4bff157ac6e0fb5efe03663d4bbf58d67f8308b6', value: this.useInternalPagination
|
|
864
864
|
? this.innerRowsPerPage
|
|
865
865
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
866
866
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BpO2YWvq.js';
|
|
2
2
|
|
|
3
3
|
const tab = {
|
|
4
4
|
main: {
|
|
@@ -113,7 +113,7 @@ const TAB_SUB_TYPOGRAPHY = {
|
|
|
113
113
|
default: tabTokens.tab.sub.default.typography,
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
const sdTabsCss = () => `sd-tabs{display:inline-block;width:100%}sd-tabs .sd-tabs{display:flex;flex-direction:row;gap:var(--sd-tabs-main-container-gap);border-bottom:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-selected-border);font-family:var(--sd-tabs-main-font-family)}sd-tabs .sd-tabs__tab{display:flex;align-items:center;justify-content:center;gap:var(--sd-tabs-main-gap);cursor:pointer;box-sizing:border-box;height:var(--sd-tabs-main-height);padding:0 var(--sd-tabs-main-padding-x);border:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-default-border);border-bottom:none;border-top-left-radius:var(--sd-tabs-main-radius);border-top-right-radius:var(--sd-tabs-main-radius);background-color:var(--sd-tabs-main-default-bg);color:var(--sd-tabs-main-default-text);font-size:var(--sd-tabs-main-font-size);line-height:var(--sd-tabs-main-line-height);font-weight:var(--sd-tabs-main-font-weight-default);transition:all 0.2s ease;position:relative;user-select:none}sd-tabs .sd-tabs__tab::before{content:"";position:absolute;inset:0;opacity:0;transition:all 0.2s;pointer-events:none}sd-tabs .sd-tabs__tab--selected{border-color:var(--sd-tabs-main-selected-border);color:var(--sd-tabs-main-selected-text);background-color:var(--sd-tabs-main-selected-bg)}sd-tabs .sd-tabs__tab--selected .sd-tabs__label::before{font-weight:var(--sd-tabs-main-font-weight-selected)}sd-tabs .sd-tabs__tab--selected:hover::before{background-color:var(--sd-tabs-main-selected-border);opacity:0.15}sd-tabs .sd-tabs__tab--unselected:hover::before{background-color:var(--sd-tabs-main-default-text);opacity:0.15}sd-tabs .sd-tabs__label{user-select:none;font-weight:var(--sd-tabs-main-font-weight-selected);visibility:hidden;position:relative;white-space:nowrap}sd-tabs .sd-tabs__label::before{content:attr(data-label);visibility:visible;position:absolute;inset:0;font-weight:var(--sd-tabs-main-font-weight-default);transition:font-weight 0.2s ease}sd-tabs .sd-tabs--sub{gap:var(--sd-tabs-sub-gap);border-bottom:none;font-family:var(--sd-tabs-sub-font-family)}sd-tabs .sd-tabs--sub .sd-tabs__tab{height:auto;padding:0 0 var(--sd-tabs-sub-content-gap) 0;border:none;border-radius:0;background-color:transparent;color:var(--sd-tabs-sub-default-text);font-size:var(--sd-tabs-sub-font-size);line-height:var(--sd-tabs-sub-line-height);font-weight:var(--sd-tabs-sub-font-weight-default)}sd-tabs .sd-tabs--sub .sd-tabs__tab::before{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--sd-tabs-sub-border-width);width:100%;background-color:var(--sd-tabs-sub-selected-line);opacity:0;transition:opacity 0.2s ease;inset:auto 0 0 0;pointer-events:none}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected{color:var(--sd-tabs-sub-selected-text);background-color:transparent}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected::before{opacity:1}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected .sd-tabs__label::before{font-weight:var(--sd-tabs-sub-font-weight-selected)}sd-tabs .sd-tabs--sub .sd-tabs__label{font-weight:var(--sd-tabs-sub-font-weight-selected)}sd-tabs .sd-tabs--sub .sd-tabs__label::before{font-weight:var(--sd-tabs-sub-font-weight-default)}`;
|
|
116
|
+
const sdTabsCss = () => `sd-tabs{display:inline-block;width:100%}sd-tabs .sd-tabs{display:flex;flex-direction:row;gap:var(--sd-tabs-main-container-gap);border-bottom:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-selected-border);font-family:var(--sd-tabs-main-font-family)}sd-tabs .sd-tabs__tab{display:flex;align-items:center;justify-content:center;gap:var(--sd-tabs-main-gap);cursor:pointer;box-sizing:border-box;height:var(--sd-tabs-main-height);padding:0 var(--sd-tabs-main-padding-x);border:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-default-border);border-bottom:none;border-top-left-radius:var(--sd-tabs-main-radius);border-top-right-radius:var(--sd-tabs-main-radius);background-color:var(--sd-tabs-main-default-bg);color:var(--sd-tabs-main-default-text);font-size:var(--sd-tabs-main-font-size);line-height:var(--sd-tabs-main-line-height);font-weight:var(--sd-tabs-main-font-weight-default);transition:all 0.2s ease;position:relative;user-select:none}sd-tabs .sd-tabs__tab::before{content:"";position:absolute;inset:0;opacity:0;transition:all 0.2s;pointer-events:none}sd-tabs .sd-tabs__tab--selected{border-color:var(--sd-tabs-main-selected-border);color:var(--sd-tabs-main-selected-text);background-color:var(--sd-tabs-main-selected-bg)}sd-tabs .sd-tabs__tab--selected .sd-tabs__label::before{font-weight:var(--sd-tabs-main-font-weight-selected)}sd-tabs .sd-tabs__tab--selected:hover::before{background-color:var(--sd-tabs-main-selected-border);opacity:0.15}sd-tabs .sd-tabs__tab--unselected:hover::before{background-color:var(--sd-tabs-main-default-text);opacity:0.15}sd-tabs .sd-tabs__label{user-select:none;font-weight:var(--sd-tabs-main-font-weight-selected);visibility:hidden;position:relative;white-space:nowrap}sd-tabs .sd-tabs__label::before{content:attr(data-label);visibility:visible;position:absolute;inset:0;font-weight:var(--sd-tabs-main-font-weight-default);transition:font-weight 0.2s ease}sd-tabs .sd-tabs--sub{gap:var(--sd-tabs-sub-gap);border-bottom:none;font-family:var(--sd-tabs-sub-font-family)}sd-tabs .sd-tabs--sub .sd-tabs__tab{height:auto;padding:0 0 var(--sd-tabs-sub-content-gap) 0;border:none;border-radius:0;background-color:transparent;color:var(--sd-tabs-sub-default-text);font-size:var(--sd-tabs-sub-font-size);line-height:var(--sd-tabs-sub-line-height);font-weight:var(--sd-tabs-sub-font-weight-default)}sd-tabs .sd-tabs--sub .sd-tabs__tab::before{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--sd-tabs-sub-border-width);width:100%;background-color:var(--sd-tabs-sub-selected-line);opacity:0;transition:opacity 0.2s ease;inset:auto 0 0 0;pointer-events:none}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected{color:var(--sd-tabs-sub-selected-text);background-color:transparent}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected::before{opacity:1}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected .sd-tabs__label::before{font-weight:var(--sd-tabs-sub-font-weight-selected)}sd-tabs .sd-tabs--sub .sd-tabs__label{font-weight:var(--sd-tabs-sub-font-weight-selected)}sd-tabs .sd-tabs--sub .sd-tabs__label::before{font-weight:var(--sd-tabs-sub-font-weight-default)}sd-tabs .sd-tabs--vertical{flex-direction:column;align-items:stretch;width:fit-content;border-bottom:none;border-right:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-selected-border)}sd-tabs .sd-tabs--vertical .sd-tabs__tab{justify-content:flex-start;border-bottom:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-default-border);border-right:none;border-top-right-radius:0;border-bottom-left-radius:var(--sd-tabs-main-radius)}sd-tabs .sd-tabs--vertical .sd-tabs__tab--selected{border-color:var(--sd-tabs-main-selected-border)}sd-tabs .sd-tabs--vertical.sd-tabs--sub{gap:16px;border-right:none}sd-tabs .sd-tabs--vertical.sd-tabs--sub .sd-tabs__tab{justify-content:center;width:100%;border:none;border-radius:0}`;
|
|
117
117
|
|
|
118
118
|
const SdTabs = class {
|
|
119
119
|
constructor(hostRef) {
|
|
@@ -124,6 +124,7 @@ const SdTabs = class {
|
|
|
124
124
|
tabs = [];
|
|
125
125
|
size = 'md';
|
|
126
126
|
isSub = false;
|
|
127
|
+
vertical = false;
|
|
127
128
|
update;
|
|
128
129
|
valueChanged(newValue) {
|
|
129
130
|
this.value = newValue;
|
|
@@ -146,6 +147,8 @@ const SdTabs = class {
|
|
|
146
147
|
const classes = ['sd-tabs', `sd-tabs--${this.size ?? 'md'}`];
|
|
147
148
|
if (this.isSub)
|
|
148
149
|
classes.push('sd-tabs--sub');
|
|
150
|
+
if (this.vertical)
|
|
151
|
+
classes.push('sd-tabs--vertical');
|
|
149
152
|
return classes.join(' ');
|
|
150
153
|
}
|
|
151
154
|
getBadgeName(tab) {
|
|
@@ -186,7 +189,7 @@ const SdTabs = class {
|
|
|
186
189
|
};
|
|
187
190
|
}
|
|
188
191
|
render() {
|
|
189
|
-
return (h("div", { key: '
|
|
192
|
+
return (h("div", { key: '277188138dd50992b468b35f723cc3f852ad38c3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
190
193
|
const badgeName = this.getBadgeName(tab);
|
|
191
194
|
return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
192
195
|
if (e.key === 'Enter' || e.key === ' ') {
|
package/dist/esm/sd-td.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, f as forceUpdate, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, f as forceUpdate, h, H as Host } from './index-BpO2YWvq.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
|
|
4
4
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -156,7 +156,7 @@ const SdTd = class {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
render() {
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '95f97474c4d00a35085c558bf43593322a9f69e7', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: 'f67d1e8b125c10446dac3abdfa0da01bfb83f470' })));
|
|
160
160
|
}
|
|
161
161
|
static get watchers() { return {
|
|
162
162
|
"field": [{
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BpO2YWvq.js';
|
|
2
2
|
|
|
3
3
|
const textLink = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
icon: "16"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
sm: {
|
|
5
|
+
gap: "4",
|
|
6
|
+
icon: "16",
|
|
7
|
+
typography: {
|
|
8
|
+
"default": {
|
|
9
|
+
fontSize: "12",
|
|
10
|
+
textDecoration: "none"},
|
|
11
|
+
underline: {
|
|
12
|
+
fontSize: "12",
|
|
13
|
+
textDecoration: "underline"}
|
|
14
|
+
}
|
|
15
15
|
},
|
|
16
16
|
content: {
|
|
17
17
|
disabled: "#888888"
|
|
@@ -26,15 +26,15 @@ var textLinkTokens = {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
const TEXT_LINK_LAYOUT = {
|
|
29
|
-
gap: textLinkTokens.textLink.gap,
|
|
30
|
-
iconSize: Number(textLinkTokens.textLink.
|
|
29
|
+
gap: textLinkTokens.textLink.sm.gap,
|
|
30
|
+
iconSize: Number(textLinkTokens.textLink.sm.icon),
|
|
31
31
|
arrowFrame: 16, // TODO: 토큰 반영 후 교체
|
|
32
32
|
arrowIconSize: 12, // TODO: 토큰 반영 후 교체
|
|
33
33
|
arrowColor: '#888888', // TODO: 토큰 반영 후 교체 (grey_65)
|
|
34
34
|
};
|
|
35
35
|
const TEXT_LINK_TYPOGRAPHY = {
|
|
36
|
-
default: textLinkTokens.textLink.typography.default,
|
|
37
|
-
underline: textLinkTokens.textLink.typography.underline,
|
|
36
|
+
default: textLinkTokens.textLink.sm.typography.default,
|
|
37
|
+
underline: textLinkTokens.textLink.sm.typography.underline,
|
|
38
38
|
};
|
|
39
39
|
const TEXT_LINK_COLORS = {
|
|
40
40
|
content: textLinkTokens.textLink.content,
|
|
@@ -52,7 +52,7 @@ const SdTextLink = class {
|
|
|
52
52
|
icon = '';
|
|
53
53
|
iconColor = '';
|
|
54
54
|
labelClass = '';
|
|
55
|
-
|
|
55
|
+
rightArrow = 'none';
|
|
56
56
|
underline = false;
|
|
57
57
|
disabled = false;
|
|
58
58
|
click;
|
|
@@ -74,7 +74,7 @@ const SdTextLink = class {
|
|
|
74
74
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
75
75
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
76
76
|
};
|
|
77
|
-
return (h("span", { key: '
|
|
77
|
+
return (h("span", { key: '26955b1626c09a6712b42454c6fb057e3a28a5b5', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
78
78
|
'sd-text-link': true,
|
|
79
79
|
'sd-text-link--disabled': this.disabled,
|
|
80
80
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -82,13 +82,13 @@ const SdTextLink = class {
|
|
|
82
82
|
e.preventDefault();
|
|
83
83
|
this.handleClick();
|
|
84
84
|
}
|
|
85
|
-
} }, this.icon && (h("sd-icon", { key: '
|
|
85
|
+
} }, this.icon && (h("sd-icon", { key: 'caa180d6b2cdc054c4c2becc486ac0bb5f1abdf7', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: '65940e935169cfc2fabe1b52ec8a70111f726519', class: labelClassName }, this.label), this.rightArrow && this.rightArrow !== 'none' && (h("span", { key: 'e7c988784da2b38087f35a209f9bd912b742a688', class: "sd-text-link__arrow", style: {
|
|
86
86
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
87
87
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
88
88
|
display: 'inline-flex',
|
|
89
89
|
alignItems: 'center',
|
|
90
90
|
justifyContent: 'center',
|
|
91
|
-
} }, h("sd-icon", { key: '
|
|
91
|
+
} }, h("sd-icon", { key: '29da741e45513a6d33876c4ed4316cb6d6418266', name: this.rightArrow === 'chevron' ? 'chevronRight' : 'caretRight', size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-BpO2YWvq.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_DURATION = 4000;
|
|
4
4
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -232,7 +232,7 @@ const SdToastContainer = class {
|
|
|
232
232
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
233
233
|
const indexMap = new Map();
|
|
234
234
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
235
|
-
return (h("div", { key: '
|
|
235
|
+
return (h("div", { key: '2b0bc86b7e2ea19a44f3c0b870ce5dec1de3a140', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
236
236
|
this.expanded = true;
|
|
237
237
|
this.pauseTimers();
|
|
238
238
|
}, onMouseLeave: () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BpO2YWvq.js';
|
|
2
2
|
|
|
3
3
|
const toast = {
|
|
4
4
|
icon: "16",
|
|
@@ -82,12 +82,12 @@ const SdToast = class {
|
|
|
82
82
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
83
83
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
84
84
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
85
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: '82c8063406a534e60c985d3c8321612077f75623', style: {
|
|
86
86
|
'--sd-toast-bg': typeConfig.bg,
|
|
87
87
|
'--sd-toast-text': typeConfig.content,
|
|
88
88
|
'--sd-toast-icon': iconColor,
|
|
89
89
|
'--sd-toast-link': linkColor,
|
|
90
|
-
} }, h("div", { key: '
|
|
90
|
+
} }, h("div", { key: 'e83c5b7ddc0edec3fb9e29325dcb52e3295fad4d', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: 'd249e5915f0c92a0a2cff43dee5c61d809ffc7f0', class: "sd-toast__icon" }, h("sd-icon", { key: '088da81d0083cc0ca72f2bf59392a72d3f2ed4de', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: '5cad9a3a81b00d8926d92d9895c4cca1389dc63b', class: "sd-toast__content" }, h("span", { key: '1fbc72aac70fbb3bb630ad10343ea2c8f76f924c', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '769a85fa539bab8b478ef999cab615285a842085', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: '77612614898b6abdade4b4599987cbb90bc09c4e', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '3bef6c0e7f3dec3f2b1f493f9c979a121bc897e9', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
SdToast.style = sdToastCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BpO2YWvq.js';
|
|
2
2
|
|
|
3
3
|
const toggle = {
|
|
4
4
|
height: "28",
|
|
@@ -118,7 +118,7 @@ const SdToggle = class {
|
|
|
118
118
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
119
119
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
120
120
|
};
|
|
121
|
-
return (h("label", { key: '
|
|
121
|
+
return (h("label", { key: 'f61e80701bc85205794aec0c960965d29b94a247', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '26a31febfdae6bebe55291d3454a177366dc3db0', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-BpO2YWvq.js';
|
|
2
2
|
|
|
3
3
|
const TooltipArrow = (props) => (h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
4
4
|
|
|
@@ -135,7 +135,15 @@ export declare const PRESET_HOVER_BACKGROUNDS: {
|
|
|
135
135
|
readonly danger: string;
|
|
136
136
|
readonly danger_outline: string;
|
|
137
137
|
};
|
|
138
|
-
export declare const
|
|
138
|
+
export declare const PRESET_TEXT_COLORS: {
|
|
139
|
+
readonly primary: string;
|
|
140
|
+
readonly secondary: string;
|
|
141
|
+
readonly primary_outline: string;
|
|
142
|
+
readonly neutral_outline: string;
|
|
143
|
+
readonly danger: string;
|
|
144
|
+
readonly danger_outline: string;
|
|
145
|
+
};
|
|
146
|
+
export declare const PRESET_ICON_COLORS: {
|
|
139
147
|
readonly primary: string;
|
|
140
148
|
readonly secondary: string;
|
|
141
149
|
readonly primary_outline: string;
|
|
@@ -151,7 +159,7 @@ export declare const PRESET_BORDER_COLORS: {
|
|
|
151
159
|
readonly danger: "transparent";
|
|
152
160
|
readonly danger_outline: string;
|
|
153
161
|
};
|
|
154
|
-
export type ButtonPreset = keyof typeof
|
|
162
|
+
export type ButtonPreset = keyof typeof PRESET_TEXT_COLORS;
|
|
155
163
|
export declare const DISABLED_TEXT: string;
|
|
156
164
|
export declare const DISABLED_ICON: string;
|
|
157
165
|
export declare const isButtonName: (value: string) => value is ButtonName;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type ChipInputSize = 'sm' | 'md';
|
|
2
|
+
export declare const CHIP_INPUT_SIZE_MAP: Record<ChipInputSize, {
|
|
3
|
+
minHeight: string;
|
|
4
|
+
paddingX: string;
|
|
5
|
+
paddingY: string;
|
|
6
|
+
radius: string;
|
|
7
|
+
fontSize: string;
|
|
8
|
+
lineHeight: string;
|
|
9
|
+
fontWeight: string;
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const CHIP_INPUT_COLORS: {
|
|
13
|
+
border: {
|
|
14
|
+
default: string;
|
|
15
|
+
focus: string;
|
|
16
|
+
disabled: string;
|
|
17
|
+
};
|
|
18
|
+
bg: {
|
|
19
|
+
default: string;
|
|
20
|
+
disabled: string;
|
|
21
|
+
};
|
|
22
|
+
text: {
|
|
23
|
+
placeholder: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const CHIP_INPUT_LAYOUT: {
|
|
27
|
+
borderWidth: string;
|
|
28
|
+
chipGap: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const CHIP_INPUT_RESET: {
|
|
31
|
+
dividerColor: string;
|
|
32
|
+
iconColor: string;
|
|
33
|
+
labelColor: string;
|
|
34
|
+
};
|