@sellmate/design-system 1.0.66 → 1.0.68
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.textinput-C4SsDjA1.js → component.textinput-BpXDeZPD.js} +3 -2
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-nsQP24mV.js → index-B2QvhbC3.js} +1 -1
- package/dist/cjs/index.cjs.js +36 -41
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/modal-stack-DucFLON7.js +112 -0
- package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/sd-button_4.cjs.entry.js +22 -17
- 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 +1 -1
- package/dist/cjs/sd-chip.cjs.entry.js +312 -0
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +5 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +8 -19
- package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +6 -6
- package/dist/cjs/sd-guide.cjs.entry.js +167 -34
- package/dist/cjs/sd-input_2.cjs.entry.js +7 -7
- package/dist/cjs/sd-loading-container.cjs.entry.js +4 -4
- package/dist/cjs/sd-modal-container.cjs.entry.js +130 -151
- package/dist/cjs/sd-number-input.cjs.entry.js +4 -4
- package/dist/cjs/sd-pagination_2.cjs.entry.js +116 -42
- package/dist/cjs/sd-popover.cjs.entry.js +4 -4
- package/dist/cjs/sd-portal.cjs.entry.js +4 -4
- package/dist/cjs/sd-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio.cjs.entry.js +18 -27
- package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-option-group.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +29 -24
- package/dist/cjs/sd-select.cjs.entry.js +2 -2
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +3 -3
- package/dist/cjs/sd-tbody.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
- package/dist/cjs/sd-textarea.cjs.entry.js +3 -3
- package/dist/cjs/sd-thead.cjs.entry.js +4 -4
- package/dist/cjs/sd-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/sd-tr.cjs.entry.js +3 -3
- package/dist/cjs/system-C89o3A9Z.js +16 -0
- package/dist/cjs/table-test.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-DhevfDPX.js → tooltipArrow-Xkv-p1bY.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- 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.js +1 -1
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +2 -2
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.config.js +37 -0
- package/dist/collection/components/sd-chip/sd-chip.css +56 -0
- package/dist/collection/components/sd-chip/sd-chip.js +544 -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-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.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-dropdown-button/sd-dropdown-button.js +3 -3
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +1 -1
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +1 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +12 -8
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +5 -5
- package/dist/collection/components/sd-guide/sd-guide.config.js +48 -0
- package/dist/collection/components/sd-guide/sd-guide.css +58 -29
- package/dist/collection/components/sd-guide/sd-guide.js +69 -40
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-container/sd-loading-container.config.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.css +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 +22 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.css +11 -10
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +154 -160
- package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
- package/dist/collection/components/sd-pagination/sd-pagination.config.js +25 -0
- package/dist/collection/components/sd-pagination/sd-pagination.css +69 -53
- package/dist/collection/components/sd-pagination/sd-pagination.js +53 -37
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +4 -4
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-radio/sd-radio.config.js +6 -5
- package/dist/collection/components/sd-radio/sd-radio.css +2 -2
- package/dist/collection/components/sd-radio/sd-radio.js +2 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/sd-select-group/sd-select-group.js +1 -1
- 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.js +1 -1
- 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.css +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +4 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +4 -4
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css +5 -5
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +2 -2
- 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 +5 -4
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +5 -5
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +146 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
- 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-table/sd-tr/sd-tr.js +2 -2
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- 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.config.js +1 -1
- 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/collection/components/table-test/table-test.js +1 -1
- package/dist/collection/utils/modal-stack.js +109 -0
- package/dist/collection/utils/modal.js +17 -23
- package/dist/components/index.js +1 -1
- package/dist/components/p-B1j9ZWLJ.js +1 -0
- package/dist/components/p-BBluw-CU.js +1 -0
- package/dist/components/{p-D9FDutsj.js → p-BFd54Imz.js} +1 -1
- package/dist/components/{p-BH3z_vB9.js → p-BPXQ6DXz.js} +1 -1
- package/dist/components/p-BaHpEtbz.js +1 -0
- package/dist/components/{p-B6RvTdqt.js → p-BlqLear7.js} +1 -1
- package/dist/components/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
- package/dist/components/{p-puZ1xlrr.js → p-BylHC3lv.js} +1 -1
- package/dist/components/p-C-txBx-h.js +1 -0
- package/dist/components/p-C0VkfKIA.js +1 -0
- package/dist/components/p-C4uWhzoG.js +1 -0
- package/dist/components/{p-CAeSM6Ov.js → p-CEeNVTzW.js} +1 -1
- package/dist/components/{p-6cueWz-l.js → p-CLZ8NObl.js} +1 -1
- package/dist/components/{p-DRY8HJ-T.js → p-COM91Bya.js} +1 -1
- package/dist/components/p-CS62OEXf.js +1 -0
- package/dist/components/{p-CGXwtYAv.js → p-CX0V7awA.js} +1 -1
- package/dist/components/{p-C2r48NLP.js → p-Cb1M05mf.js} +1 -1
- package/dist/components/{p-Cpu_hXwN.js → p-Cj4NAUzE.js} +1 -1
- package/dist/components/{p-B6OgnOKC.js → p-CsPyZohK.js} +1 -1
- package/dist/components/{p-Bh548Ckv.js → p-CsVPC3FD.js} +1 -1
- package/dist/components/{p-BLC3AWW8.js → p-Csfk-CtX.js} +1 -1
- package/dist/components/{p-CRl8Anfr.js → p-CtrDZYN5.js} +1 -1
- package/dist/components/p-D21iKAp7.js +1 -0
- package/dist/components/{p-TMuoVuhE.js → p-D6C4-apu.js} +1 -1
- package/dist/components/{p-Cr_74QR7.js → p-DGPGMB_Z.js} +1 -1
- package/dist/components/{p-h6zSUtA2.js → p-DIro-Wat.js} +1 -1
- package/dist/components/{p-AKpbKrkW.js → p-DPCj-bFr.js} +1 -1
- package/dist/components/{p-fcZvjHk_.js → p-DQLyH3dr.js} +1 -1
- package/dist/components/p-DRVnqiWc.js +1 -0
- package/dist/components/{p-HsTw_qYU.js → p-DWW5xr6r.js} +1 -1
- package/dist/components/p-D_lyw4rN.js +1 -0
- package/dist/components/{p-DXtyg5eK.js → p-Diis5oCN.js} +1 -1
- package/dist/components/{p-BdsI1E5l.js → p-DlkxQ9Jn.js} +1 -1
- package/dist/components/{p-Cpg2hVm3.js → p-N_EbEY8s.js} +1 -1
- package/dist/components/{p-CpclstHV.js → p-T5BGXHZg.js} +1 -1
- package/dist/components/{p-CGssy8eb.js → p-YgnF5oje.js} +1 -1
- package/dist/components/{p-Cc7ZBscb.js → p-z9MoRjYX.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button-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-chip.d.ts +11 -0
- package/dist/components/sd-chip.js +1 -0
- 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-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-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-portal.js +1 -1
- package/dist/components/sd-progress.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-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.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/components/table-test.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/index.esm.js +1 -1
- package/dist/design-system/{p-e5f71ec0.entry.js → p-002e10ac.entry.js} +1 -1
- package/dist/design-system/p-01ac7743.entry.js +1 -0
- package/dist/design-system/{p-f3d082c8.entry.js → p-07736d67.entry.js} +1 -1
- package/dist/design-system/p-0929f910.entry.js +1 -0
- package/dist/design-system/{p-867ec4ee.entry.js → p-0b216b11.entry.js} +1 -1
- package/dist/design-system/{p-4dcadde3.entry.js → p-0bffdbf4.entry.js} +1 -1
- package/dist/design-system/{p-05ce3449.entry.js → p-0c98676e.entry.js} +1 -1
- package/dist/design-system/{p-9dd3c6a7.entry.js → p-0d485537.entry.js} +1 -1
- package/dist/design-system/{p-ed61fe19.entry.js → p-16eae7ae.entry.js} +1 -1
- package/dist/design-system/{p-03099a57.entry.js → p-1a455448.entry.js} +1 -1
- package/dist/design-system/{p-3d341993.entry.js → p-1b8e63a6.entry.js} +1 -1
- package/dist/design-system/p-23c31074.entry.js +1 -0
- package/dist/design-system/{p-96b14db1.entry.js → p-23ff6bee.entry.js} +1 -1
- package/dist/design-system/{p-8d2328ae.entry.js → p-2a4b6bc7.entry.js} +1 -1
- package/dist/design-system/{p-b81e0493.entry.js → p-2a663b3b.entry.js} +1 -1
- package/dist/design-system/{p-53bc77f8.entry.js → p-308c2a72.entry.js} +1 -1
- package/dist/design-system/{p-010e4f47.entry.js → p-33713805.entry.js} +1 -1
- package/dist/design-system/p-35b29182.entry.js +1 -0
- package/dist/design-system/{p-2ae97b1c.entry.js → p-449e58ee.entry.js} +1 -1
- package/dist/design-system/{p-5a63febd.entry.js → p-48f1f9ff.entry.js} +1 -1
- package/dist/design-system/{p-a27718c1.entry.js → p-4d434794.entry.js} +1 -1
- package/dist/design-system/p-4de3b6b1.entry.js +1 -0
- package/dist/design-system/p-4f9f25a1.entry.js +1 -0
- package/dist/design-system/{p-84a329fb.entry.js → p-59aa62ff.entry.js} +1 -1
- package/dist/design-system/{p-363da5ff.entry.js → p-5a0b0a1b.entry.js} +1 -1
- package/dist/design-system/p-60ece09d.entry.js +1 -0
- package/dist/design-system/{p-b1fe12f8.entry.js → p-641c2f3d.entry.js} +1 -1
- package/dist/design-system/{p-04be87a4.entry.js → p-64a56a4e.entry.js} +1 -1
- package/dist/design-system/{p-b60ae063.entry.js → p-6b2f6efb.entry.js} +1 -1
- package/dist/design-system/{p-fd296c73.entry.js → p-6b478f5c.entry.js} +1 -1
- package/dist/design-system/{p-d8eb17a8.entry.js → p-6ca6dfaf.entry.js} +1 -1
- package/dist/design-system/{p-d04551be.entry.js → p-6ef2d08f.entry.js} +1 -1
- package/dist/design-system/{p-c4e68815.entry.js → p-703eee55.entry.js} +1 -1
- package/dist/design-system/p-75c5e31b.entry.js +1 -0
- package/dist/design-system/p-7dd8beba.entry.js +1 -0
- package/dist/design-system/{p-73acee07.entry.js → p-7ef0c428.entry.js} +1 -1
- package/dist/design-system/{p-6644c4a0.entry.js → p-8281dc36.entry.js} +1 -1
- package/dist/design-system/p-87222184.entry.js +1 -0
- package/dist/design-system/{p-a129711d.entry.js → p-8cd1b533.entry.js} +1 -1
- package/dist/design-system/{p-40495e05.entry.js → p-92a52f89.entry.js} +1 -1
- package/dist/design-system/{p-4a53d7b0.entry.js → p-95d96917.entry.js} +1 -1
- package/dist/design-system/{p-e33389b8.entry.js → p-9ecde011.entry.js} +1 -1
- package/dist/design-system/{p-e78faea6.entry.js → p-9f0fe1f6.entry.js} +1 -1
- package/dist/design-system/p-BGyJgVXm.js +2 -0
- package/dist/design-system/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
- package/dist/design-system/p-C-txBx-h.js +1 -0
- package/dist/design-system/{p-COK6PVLC.js → p-C4tHYnB4.js} +1 -1
- package/dist/design-system/p-DRVnqiWc.js +1 -0
- package/dist/design-system/{p-3f79f1d1.entry.js → p-ade9319d.entry.js} +1 -1
- package/dist/design-system/{p-4128c17f.entry.js → p-aeadfb9c.entry.js} +1 -1
- package/dist/design-system/{p-b3279f07.entry.js → p-ca6b4d4a.entry.js} +1 -1
- package/dist/design-system/{p-0fbb6d92.entry.js → p-cdedac3c.entry.js} +1 -1
- package/dist/design-system/{p-09ba9dbc.entry.js → p-d43772c0.entry.js} +1 -1
- package/dist/design-system/{p-e0f9e5b5.entry.js → p-dfa716e0.entry.js} +1 -1
- package/dist/design-system/{p-d040ec6f.entry.js → p-e1288299.entry.js} +1 -1
- package/dist/design-system/{p-a983560d.entry.js → p-e1b307ee.entry.js} +1 -1
- package/dist/design-system/p-e3a1e677.entry.js +1 -0
- package/dist/design-system/p-ebc72b3f.entry.js +1 -0
- package/dist/design-system/{p-6c71d7b7.entry.js → p-fa888a37.entry.js} +1 -1
- package/dist/esm/{component.textinput-CJwbBrt5.js → component.textinput-ByhWX2NK.js} +3 -2
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BqHL8W3c.js → index-BGyJgVXm.js} +1 -1
- package/dist/esm/index.js +36 -41
- package/dist/esm/loader.js +3 -3
- package/dist/esm/modal-stack-DRVnqiWc.js +105 -0
- package/dist/esm/sd-action-modal.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/sd-button_4.entry.js +22 -17
- 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 +1 -1
- package/dist/esm/sd-chip.entry.js +310 -0
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +5 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker-calendar.entry.js +2 -2
- package/dist/esm/sd-date-picker-trigger.entry.js +3 -3
- package/dist/esm/sd-date-picker.entry.js +3 -3
- package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
- package/dist/esm/sd-date-range-picker.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +5 -16
- package/dist/esm/sd-file-picker.entry.js +3 -3
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +6 -6
- package/dist/esm/sd-guide.entry.js +167 -34
- package/dist/esm/sd-input_2.entry.js +7 -7
- package/dist/esm/sd-loading-container.entry.js +4 -4
- package/dist/esm/sd-modal-container.entry.js +130 -151
- package/dist/esm/sd-number-input.entry.js +4 -4
- package/dist/esm/sd-pagination_2.entry.js +116 -42
- package/dist/esm/sd-popover.entry.js +4 -4
- package/dist/esm/sd-portal.entry.js +4 -4
- package/dist/esm/sd-progress.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +2 -2
- package/dist/esm/sd-radio-group.entry.js +3 -3
- package/dist/esm/sd-radio.entry.js +18 -27
- package/dist/esm/sd-select-dropdown_2.entry.js +4 -4
- package/dist/esm/sd-select-group.entry.js +2 -2
- package/dist/esm/sd-select-multiple-group.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +2 -2
- package/dist/esm/sd-select-option-group.entry.js +4 -4
- package/dist/esm/sd-select-v2-list-item_4.entry.js +29 -24
- package/dist/esm/sd-select.entry.js +2 -2
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +3 -3
- package/dist/esm/sd-tbody.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +4 -4
- package/dist/esm/sd-textarea.entry.js +3 -3
- package/dist/esm/sd-thead.entry.js +4 -4
- package/dist/esm/sd-toast-container.entry.js +3 -3
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/sd-tr.entry.js +3 -3
- package/dist/esm/system-C-txBx-h.js +14 -0
- package/dist/esm/table-test.entry.js +2 -2
- package/dist/esm/{tooltipArrow-BcsrQx1U.js → tooltipArrow-BAjP9_Hx.js} +1 -1
- package/dist/types/components/sd-chip/sd-chip.config.d.ts +36 -0
- package/dist/types/components/sd-chip/sd-chip.d.ts +47 -0
- package/dist/types/components/sd-guide/sd-guide.config.d.ts +44 -0
- package/dist/types/components/sd-guide/sd-guide.d.ts +3 -4
- package/dist/types/components/sd-loading-container/sd-loading-container.config.d.ts +1 -1
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +12 -16
- package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +23 -0
- package/dist/types/components/sd-pagination/sd-pagination.d.ts +3 -3
- package/dist/types/components/sd-radio/sd-radio.config.d.ts +1 -0
- package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +2 -1
- package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +29 -0
- package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +1 -1
- package/dist/types/components.d.ts +134 -16
- package/dist/types/utils/modal-stack.d.ts +17 -0
- package/hydrate/index.js +1004 -385
- package/hydrate/index.mjs +1004 -385
- package/package.json +1 -1
- package/dist/components/p-6LkBUj0w.js +0 -1
- package/dist/components/p-B1S4ybd6.js +0 -1
- package/dist/components/p-CU095QAR.js +0 -1
- package/dist/components/p-DBnszF5F.js +0 -1
- package/dist/components/p-DpsDTjcN.js +0 -1
- package/dist/components/p-DuYi4aqj.js +0 -1
- package/dist/components/p-VXLJLI30.js +0 -1
- package/dist/components/p-kZ5N_lFC.js +0 -1
- package/dist/design-system/p-12a03c88.entry.js +0 -1
- package/dist/design-system/p-15cda79c.entry.js +0 -1
- package/dist/design-system/p-2f64dd95.entry.js +0 -1
- package/dist/design-system/p-33e4ce64.entry.js +0 -1
- package/dist/design-system/p-7e09fdd5.entry.js +0 -1
- package/dist/design-system/p-8acf3b67.entry.js +0 -1
- package/dist/design-system/p-BqHL8W3c.js +0 -2
- package/dist/design-system/p-ae1800c0.entry.js +0 -1
- package/dist/design-system/p-b6e02544.entry.js +0 -1
- package/dist/design-system/p-cf1156cb.entry.js +0 -1
- package/dist/design-system/p-e1fdd540.entry.js +0 -1
- package/dist/design-system/p-f9b9204d.entry.js +0 -1
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
import { h, Fragment } from "@stencil/core";
|
|
2
|
+
import { PAGINATION_LAYOUT, PAGINATION_TYPOGRAPHY, PAGINATION_COLORS, } from "./sd-pagination.config";
|
|
3
|
+
const PER_PAGE = 10;
|
|
2
4
|
const BUTTON_WIDTH = {
|
|
3
|
-
1:
|
|
4
|
-
2:
|
|
5
|
-
3:
|
|
6
|
-
4:
|
|
7
|
-
5:
|
|
5
|
+
1: 24,
|
|
6
|
+
2: 34,
|
|
7
|
+
3: 40,
|
|
8
|
+
4: 48,
|
|
9
|
+
5: 56,
|
|
8
10
|
};
|
|
9
|
-
const PER_PAGE = 10;
|
|
10
11
|
export class SdPagination {
|
|
11
12
|
currentPage = 1;
|
|
12
13
|
lastPage = 1;
|
|
13
14
|
simple = false;
|
|
14
15
|
pageChange;
|
|
15
|
-
get paginationClasses() {
|
|
16
|
-
const classes = ['sd-pagination'];
|
|
17
|
-
if (this.simple) {
|
|
18
|
-
classes.push('sd-pagination--simple');
|
|
19
|
-
}
|
|
20
|
-
return classes.join(' ');
|
|
21
|
-
}
|
|
22
16
|
get pageNumbers() {
|
|
23
17
|
const start = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
|
|
24
18
|
const end = Math.min(start + PER_PAGE - 1, this.lastPage);
|
|
@@ -29,51 +23,73 @@ export class SdPagination {
|
|
|
29
23
|
const maxPageLength = lastPageNum.toString().length;
|
|
30
24
|
return BUTTON_WIDTH[maxPageLength] || BUTTON_WIDTH[1];
|
|
31
25
|
}
|
|
32
|
-
|
|
26
|
+
get isFirstGroup() {
|
|
27
|
+
return this.currentPage <= PER_PAGE;
|
|
28
|
+
}
|
|
29
|
+
get isLastGroup() {
|
|
30
|
+
const startPageGroup = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
|
|
31
|
+
return startPageGroup + PER_PAGE - 1 >= this.lastPage;
|
|
32
|
+
}
|
|
33
|
+
handlePageChange = (page) => {
|
|
33
34
|
if (page < 1 || page > this.lastPage)
|
|
34
35
|
return;
|
|
35
36
|
this.currentPage = page;
|
|
36
37
|
this.pageChange.emit(page);
|
|
37
|
-
}
|
|
38
|
-
handleGroupChange(direction) {
|
|
38
|
+
};
|
|
39
|
+
handleGroupChange = (direction) => {
|
|
39
40
|
const delta = direction === 'forward' ? PER_PAGE : -PER_PAGE;
|
|
40
41
|
const newPage = Math.min(Math.max(this.currentPage + delta, 1), this.lastPage);
|
|
41
42
|
this.handlePageChange(newPage);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
get isLastGroup() {
|
|
47
|
-
const startPageGroup = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
|
|
48
|
-
return startPageGroup + PER_PAGE - 1 >= this.lastPage;
|
|
43
|
+
};
|
|
44
|
+
renderNavButton(iconName, ariaLabel, onClick) {
|
|
45
|
+
return (h("button", { type: "button", class: "sd-pagination__nav", "aria-label": ariaLabel, onClick: onClick }, h("sd-icon", { name: iconName, size: PAGINATION_LAYOUT.iconSize, color: PAGINATION_COLORS.iconDefault })));
|
|
49
46
|
}
|
|
50
47
|
renderPrevButtons() {
|
|
51
48
|
if (this.simple) {
|
|
52
49
|
if (this.currentPage <= 1)
|
|
53
50
|
return null;
|
|
54
|
-
return (h(Fragment, null,
|
|
55
|
-
}
|
|
56
|
-
if (!this.isFirstGroup) {
|
|
57
|
-
return (h(Fragment, null, h("button", { "aria-label": "Go to first page", onClick: () => this.handlePageChange(1) }, h("sd-icon", { name: "chevronLeftEnd", size: "12", color: "#222222" })), h("button", { "aria-label": "Go to previous page group", onClick: () => this.handleGroupChange('backward') }, h("sd-icon", { name: "arrowLeft", size: "12", color: "#222222" }))));
|
|
51
|
+
return (h(Fragment, null, this.renderNavButton('chevronLeftEnd', 'Go to first page', () => this.handlePageChange(1)), this.renderNavButton('chevronLeft', 'Go to previous page', () => this.handlePageChange(this.currentPage - 1))));
|
|
58
52
|
}
|
|
53
|
+
if (this.isFirstGroup)
|
|
54
|
+
return null;
|
|
55
|
+
return (h(Fragment, null, this.renderNavButton('chevronLeftEnd', 'Go to first page', () => this.handlePageChange(1)), this.renderNavButton('chevronLeft', 'Go to previous page group', () => this.handleGroupChange('backward'))));
|
|
59
56
|
}
|
|
60
57
|
renderNextButtons() {
|
|
61
58
|
if (this.simple) {
|
|
62
59
|
if (this.currentPage >= this.lastPage)
|
|
63
60
|
return null;
|
|
64
|
-
return (h(Fragment, null,
|
|
65
|
-
}
|
|
66
|
-
if (!this.isLastGroup) {
|
|
67
|
-
return (h(Fragment, null, h("button", { "aria-label": "Go to next page group", onClick: () => this.handleGroupChange('forward') }, h("sd-icon", { name: "arrowRight", size: "12", color: "#222222" })), h("button", { "aria-label": "Go to last page", onClick: () => this.handlePageChange(this.lastPage) }, h("sd-icon", { name: "chevronRightEnd", size: "12", color: "#222222" }))));
|
|
61
|
+
return (h(Fragment, null, this.renderNavButton('chevronRight', 'Go to next page', () => this.handlePageChange(this.currentPage + 1)), this.renderNavButton('chevronRightEnd', 'Go to last page', () => this.handlePageChange(this.lastPage))));
|
|
68
62
|
}
|
|
63
|
+
if (this.isLastGroup)
|
|
64
|
+
return null;
|
|
65
|
+
return (h(Fragment, null, this.renderNavButton('chevronRight', 'Go to next page group', () => this.handleGroupChange('forward')), this.renderNavButton('chevronRightEnd', 'Go to last page', () => this.handlePageChange(this.lastPage))));
|
|
69
66
|
}
|
|
70
67
|
render() {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
const cssVars = {
|
|
69
|
+
'--sd-pagination-height': PAGINATION_LAYOUT.height,
|
|
70
|
+
'--sd-pagination-padding-x': PAGINATION_LAYOUT.paddingX,
|
|
71
|
+
'--sd-pagination-radius': PAGINATION_LAYOUT.radius,
|
|
72
|
+
'--sd-pagination-gap': PAGINATION_LAYOUT.gap,
|
|
73
|
+
'--sd-pagination-move-gap': PAGINATION_LAYOUT.moveGap,
|
|
74
|
+
'--sd-pagination-font-family': PAGINATION_TYPOGRAPHY.fontFamily,
|
|
75
|
+
'--sd-pagination-font-size': PAGINATION_TYPOGRAPHY.fontSize,
|
|
76
|
+
'--sd-pagination-line-height': PAGINATION_TYPOGRAPHY.lineHeight,
|
|
77
|
+
'--sd-pagination-font-weight-default': PAGINATION_TYPOGRAPHY.fontWeightDefault,
|
|
78
|
+
'--sd-pagination-font-weight-selected': PAGINATION_TYPOGRAPHY.fontWeightSelected,
|
|
79
|
+
'--sd-pagination-content': PAGINATION_COLORS.contentDefault,
|
|
80
|
+
'--sd-pagination-content-hover': PAGINATION_COLORS.contentHover,
|
|
81
|
+
'--sd-pagination-content-selected': PAGINATION_COLORS.contentSelected,
|
|
82
|
+
'--sd-pagination-bg-hover': PAGINATION_COLORS.bgHover,
|
|
83
|
+
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
84
|
+
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
85
|
+
};
|
|
86
|
+
return (h("div", { key: '1f6d3909c5c7f17701c405f058bf999020d9424e', class: {
|
|
87
|
+
'sd-pagination': true,
|
|
88
|
+
'sd-pagination--simple': this.simple,
|
|
89
|
+
}, style: cssVars }, h("div", { key: '9faaf4f1033e406ecaad7ed593a1610bb7002631', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
90
|
+
'sd-pagination__item': true,
|
|
91
|
+
'sd-pagination__item--selected': this.currentPage === n,
|
|
92
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'c8d21679938032bee223f6dfefff3a87dc5badec', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
77
93
|
}
|
|
78
94
|
static get is() { return "sd-pagination"; }
|
|
79
95
|
static get originalStyleUrls() {
|
|
@@ -43,14 +43,14 @@ export class SdPopover {
|
|
|
43
43
|
this.showPopover = false;
|
|
44
44
|
};
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Fragment, { key: '
|
|
46
|
+
return (h(Fragment, { key: '32e3a11baabd4f4fc8c570311b99b2113e4ce3b0' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: '8139e72f293319e4d5ed3fe67d4f47a03743b437', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement, offset: this.popoverOffset }, h("div", { key: 'fdb76f4a9a54be08fdf0d352ff389453840c4789', class: {
|
|
47
47
|
'sd-floating-menu': true,
|
|
48
48
|
'sd-floating-menu--popover': true,
|
|
49
49
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
50
50
|
[this.menuClass]: !!this.menuClass,
|
|
51
51
|
}, style: {
|
|
52
52
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
53
|
-
} }, h("i", { key: '
|
|
53
|
+
} }, h("i", { key: '94cb19bdf7182cd311800ac4d3fdf49c61db75fb', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '67394b2b751c485fc7198a10d54df2659c6f222b' })), h("div", { key: '1d6e143a931c24f28ef68afbfe7b84e73d3288db', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '33d47a87e6cab23131f360f7ea07809cec942ec0', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '28006b8958d1921eefa42c6282b8e735ae3e9367', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '574604775790aa49591848eb5f86ca0c6735558f', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("sd-ghost-button", { key: '027260d65fc575f480ce23e081b8b80ac8a1daea', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.handleClose() })))))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "sd-popover"; }
|
|
56
56
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SdPortal {
|
|
|
5
5
|
parentRef = null;
|
|
6
6
|
offset = [0, 4];
|
|
7
7
|
viewportPadding = 0;
|
|
8
|
-
zIndex =
|
|
8
|
+
zIndex = 998;
|
|
9
9
|
open = false;
|
|
10
10
|
close;
|
|
11
11
|
container;
|
|
@@ -51,7 +51,7 @@ export class SdPortal {
|
|
|
51
51
|
position: 'absolute',
|
|
52
52
|
top: '0',
|
|
53
53
|
left: '0',
|
|
54
|
-
zIndex: (this.zIndex ??
|
|
54
|
+
zIndex: (this.zIndex ?? 998).toString(),
|
|
55
55
|
opacity: '0',
|
|
56
56
|
transition: 'opacity 0.15s ease-out',
|
|
57
57
|
boxSizing: 'border-box',
|
|
@@ -220,7 +220,7 @@ export class SdPortal {
|
|
|
220
220
|
this.close.emit();
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
|
-
return h("slot", { key: '
|
|
223
|
+
return h("slot", { key: '394cce939280a171c13e875eaead3fbdd0163d5b' });
|
|
224
224
|
}
|
|
225
225
|
static get is() { return "sd-portal"; }
|
|
226
226
|
static get properties() {
|
|
@@ -329,7 +329,7 @@ export class SdPortal {
|
|
|
329
329
|
"setter": false,
|
|
330
330
|
"reflect": false,
|
|
331
331
|
"attribute": "z-index",
|
|
332
|
-
"defaultValue": "
|
|
332
|
+
"defaultValue": "998"
|
|
333
333
|
},
|
|
334
334
|
"open": {
|
|
335
335
|
"type": "boolean",
|
|
@@ -33,10 +33,10 @@ export class SdProgress {
|
|
|
33
33
|
return this.statusColor[this.progressStatus];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: 'b1c93dc549893b5a3ccef1ab9cea54ca8c9d8d44', style: {
|
|
37
37
|
'--progress-color': this.progressColor,
|
|
38
38
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
39
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '
|
|
39
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '843cb8d0994831da375d26f0421d98dddb068128', class: "sd-progress__label" }, this.label)));
|
|
40
40
|
}
|
|
41
41
|
renderBarProgress() {
|
|
42
42
|
return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, h("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
|
|
@@ -4,6 +4,7 @@ export const RADIO_LAYOUT = {
|
|
|
4
4
|
radius: radioTokens.radio.radius,
|
|
5
5
|
borderWidth: radioTokens.radio.borderWidth,
|
|
6
6
|
gap: radioTokens.radio.gap,
|
|
7
|
+
dotSize: radioTokens.radio.dot.size,
|
|
7
8
|
};
|
|
8
9
|
export const RADIO_TYPOGRAPHY = {
|
|
9
10
|
fontSize: radioTokens.radio.typography.fontSize,
|
|
@@ -13,13 +14,13 @@ export const RADIO_TYPOGRAPHY = {
|
|
|
13
14
|
export const RADIO_COLORS = {
|
|
14
15
|
unchecked: {
|
|
15
16
|
bg: radioTokens.radio.bg.default,
|
|
16
|
-
bgHover: radioTokens.radio.
|
|
17
|
-
border: radioTokens.radio.
|
|
18
|
-
borderHover: radioTokens.radio.
|
|
17
|
+
bgHover: radioTokens.radio.bg.hover,
|
|
18
|
+
border: radioTokens.radio.border.default,
|
|
19
|
+
borderHover: radioTokens.radio.border.hover,
|
|
19
20
|
},
|
|
20
21
|
checked: {
|
|
21
|
-
border: radioTokens.radio.
|
|
22
|
-
dot: radioTokens.radio.
|
|
22
|
+
border: radioTokens.radio.border.active,
|
|
23
|
+
dot: radioTokens.radio.dot.default,
|
|
23
24
|
},
|
|
24
25
|
disabled: {
|
|
25
26
|
bg: radioTokens.radio.bg.disabled,
|
|
@@ -53,8 +53,8 @@ sd-radio .sd-radio--checked .sd-radio__circle::after {
|
|
|
53
53
|
top: 50%;
|
|
54
54
|
left: 50%;
|
|
55
55
|
transform: translate(-50%, -50%);
|
|
56
|
-
width:
|
|
57
|
-
height:
|
|
56
|
+
width: var(--sd-radio-dot-size);
|
|
57
|
+
height: var(--sd-radio-dot-size);
|
|
58
58
|
border-radius: 50%;
|
|
59
59
|
background: var(--sd-radio-checked-dot);
|
|
60
60
|
}
|
|
@@ -33,6 +33,7 @@ export class SdRadio {
|
|
|
33
33
|
'--sd-radio-size': `${RADIO_LAYOUT.size}px`,
|
|
34
34
|
'--sd-radio-border-width': `${RADIO_LAYOUT.borderWidth}px`,
|
|
35
35
|
'--sd-radio-gap': `${RADIO_LAYOUT.gap}px`,
|
|
36
|
+
'--sd-radio-dot-size': `${RADIO_LAYOUT.dotSize}px`,
|
|
36
37
|
'--sd-radio-font-size': `${RADIO_TYPOGRAPHY.fontSize}px`,
|
|
37
38
|
'--sd-radio-line-height': `${RADIO_TYPOGRAPHY.lineHeight}px`,
|
|
38
39
|
'--sd-radio-font-weight': RADIO_TYPOGRAPHY.fontWeight,
|
|
@@ -47,7 +48,7 @@ export class SdRadio {
|
|
|
47
48
|
'--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
|
|
48
49
|
'--sd-radio-label-color': RADIO_COLORS.label,
|
|
49
50
|
};
|
|
50
|
-
return (h("label", { key: '
|
|
51
|
+
return (h("label", { key: '2b7819249e5070a22b626530011db4a8e56194f1', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("input", { key: '233699a7c3bc13708d43ca3719f61edf53836c83', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), h("span", { key: 'eb665c5f8c6202b66b65b6b120f144970fba0a38', class: "sd-radio__circle" }), this.label && h("span", { key: '3d0db13e083bacb4cb7ace9129fcfcd61f18dfc7', class: "sd-radio__label" }, this.label)));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "sd-radio"; }
|
|
53
54
|
static get originalStyleUrls() {
|
|
@@ -67,7 +67,7 @@ export class SdRadioButton {
|
|
|
67
67
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
68
68
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
69
69
|
};
|
|
70
|
-
return (h("div", { key: '
|
|
70
|
+
return (h("div", { key: 'f4ac83797b2661b0c2a612674911cbb0e41350a6', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
71
71
|
const isSelected = this.isOptionSelected(option);
|
|
72
72
|
const isDisabled = this.isOptionDisabled(option);
|
|
73
73
|
return (h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && h("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -53,8 +53,8 @@ sd-radio .sd-radio--checked .sd-radio__circle::after {
|
|
|
53
53
|
top: 50%;
|
|
54
54
|
left: 50%;
|
|
55
55
|
transform: translate(-50%, -50%);
|
|
56
|
-
width:
|
|
57
|
-
height:
|
|
56
|
+
width: var(--sd-radio-dot-size);
|
|
57
|
+
height: var(--sd-radio-dot-size);
|
|
58
58
|
border-radius: 50%;
|
|
59
59
|
background: var(--sd-radio-checked-dot);
|
|
60
60
|
}
|
|
@@ -22,7 +22,7 @@ export class SdRadioGroup {
|
|
|
22
22
|
return classes.join(' ');
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '8b01aca15ce9452921f37ba648d2d47728b84f41', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
26
26
|
return (h("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
27
27
|
})));
|
|
28
28
|
}
|
|
@@ -144,10 +144,10 @@ export class SdSelectDropdown {
|
|
|
144
144
|
this.isScrolled = scrollTop > 0;
|
|
145
145
|
};
|
|
146
146
|
render() {
|
|
147
|
-
return (h("div", { key: '
|
|
147
|
+
return (h("div", { key: '4d593edbf6e4480e171963aad54ceb2f489f189b', class: {
|
|
148
148
|
'sd-select-dropdown': true,
|
|
149
149
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
150
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '
|
|
150
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: 'ecea9b4ba816c6b0dcc8303f957f4b297251f65c', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("slot", { name: `option-${option.value}` }, h("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (h("slot", { name: "option-placeholder" }, h("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "sd-select-dropdown"; }
|
|
153
153
|
static get originalStyleUrls() {
|
|
@@ -24,7 +24,7 @@ export class SdSelectOption {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
render() {
|
|
27
|
-
return (h("div", { key: '
|
|
27
|
+
return (h("div", { key: '02e314232067bfb8f9bd882c01ae1462fa492cbf', class: {
|
|
28
28
|
'sd-select__option': true,
|
|
29
29
|
'sd-select__option--selected': this.isSelected,
|
|
30
30
|
'sd-select__option--disabled': !!this.option.disabled,
|
package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js
CHANGED
|
@@ -16,17 +16,17 @@ export class SdSelectSearchInput {
|
|
|
16
16
|
input?.focus({ preventScroll: true });
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: '2629fd8c13f67bc89c3b66f5f8aa14f2fb2e5fcd', class: {
|
|
20
20
|
'sd-select-search-input': true,
|
|
21
21
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
22
|
-
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '
|
|
22
|
+
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: 'f49cccdb49d0b2b861b0836dd654b7ab353b48ce', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
23
23
|
this.searchInput.emit(String(event?.detail));
|
|
24
24
|
}, onSdFocus: () => {
|
|
25
25
|
this.searchFocus.emit();
|
|
26
26
|
}, onKeyDown: event => {
|
|
27
27
|
if (event.code === 'Enter')
|
|
28
28
|
event.stopPropagation();
|
|
29
|
-
} }, h("sd-icon", { key: '
|
|
29
|
+
} }, h("sd-icon", { key: '773f5638821c73c20435f747c3dea5b6684b89eb', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "sd-select-search-input"; }
|
|
32
32
|
static get originalStyleUrls() {
|
|
@@ -142,7 +142,7 @@ export class SdSelect extends BaseDropdownEvent {
|
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
render() {
|
|
145
|
-
return (h("sd-field", { key: '
|
|
145
|
+
return (h("sd-field", { key: '106b7af5473549884afba275dfa86f6b354e9983', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: 'a200ea9e7409ed3f63e6ffa967c3171712598521', class: {
|
|
146
146
|
'sd-select': true,
|
|
147
147
|
'sd-select--disabled': this.disabled,
|
|
148
148
|
'sd-select--error': !!this.error,
|
|
@@ -271,7 +271,7 @@ export class SdSelectGroup extends BaseDropdownEvent {
|
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
render() {
|
|
274
|
-
return (h("sd-field", { key: '
|
|
274
|
+
return (h("sd-field", { key: 'c3d2a4365ba2594d3e0dca138ff63a335171125c', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, h("div", { key: 'b527250fecc69b8f5d4c88aa3f6090c2b291efc9', class: {
|
|
275
275
|
'sd-select-group': true,
|
|
276
276
|
'sd-select-group--open': this.isOpen,
|
|
277
277
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -151,7 +151,7 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
151
151
|
this.handleOptionSelection(option);
|
|
152
152
|
};
|
|
153
153
|
render() {
|
|
154
|
-
return (h("sd-field", { key: '
|
|
154
|
+
return (h("sd-field", { key: '92f9f1efeb25431700b376300ba8f21120456a68', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '48adb7f279b77d1637e6a1790d1448d7d7306a7a', class: {
|
|
155
155
|
'sd-select-multiple': true,
|
|
156
156
|
'sd-select-multiple--open': this.isOpen,
|
|
157
157
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -393,7 +393,7 @@ export class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
render() {
|
|
396
|
-
return (h("sd-field", { key: '
|
|
396
|
+
return (h("sd-field", { key: '8e0cfc89b55809d3c5b556fc5c59077c2c952ad5', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, h("div", { key: '852a713b4c38c4845c407cb04801d9b0c33f0515', class: {
|
|
397
397
|
'sd-select-multiple-group': true,
|
|
398
398
|
'sd-select-multiple-group--open': this.isOpen,
|
|
399
399
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
@@ -39,7 +39,7 @@ export class SdSelectOptionGroup {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '748c32883a0262612daf9bafc0617563c77254f8', class: {
|
|
43
43
|
'sd-select__option-group': true,
|
|
44
44
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
45
45
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -48,10 +48,10 @@ export class SdSelectOptionGroup {
|
|
|
48
48
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
49
49
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
50
50
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
51
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '
|
|
51
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '5a8f15864a69887a7d2e2ec5b18b96b1f7bde809', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: '202f92f4aac644802a58354d08b29451c9af863f', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
this.handleClick(this.option, this.isSelected, e);
|
|
54
|
-
} })), h("span", { key: '
|
|
54
|
+
} })), h("span", { key: 'f9dc667e7d251a5efcf7391ec4f533a5e21276c9', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: '2cd863d5bbdb1a9b5312c6eb7aa3be08a2093460', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-select-option-group"; }
|
|
57
57
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.css
CHANGED
|
@@ -29,8 +29,8 @@ sd-select-v2-list-item .sd-select-v2-list-item--focused.sd-select-v2-list-item--
|
|
|
29
29
|
color: var(--list-item-color-hover);
|
|
30
30
|
}
|
|
31
31
|
sd-select-v2-list-item .sd-select-v2-list-item--selected:not(.sd-select-v2-list-item--group) {
|
|
32
|
-
font-weight:
|
|
33
|
-
color: var(--list-item-
|
|
32
|
+
font-weight: var(--list-item-font-weight-selected);
|
|
33
|
+
color: var(--list-item-color-selected);
|
|
34
34
|
}
|
|
35
35
|
sd-select-v2-list-item .sd-select-v2-list-item--selected.sd-select-v2-list-item--focused {
|
|
36
36
|
color: var(--list-item-color-hover);
|
package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js
CHANGED
|
@@ -60,11 +60,13 @@ export class SdSelectV2ListItem {
|
|
|
60
60
|
'--list-item-color': LIST_ITEM_COLORS.content.default,
|
|
61
61
|
'--list-item-color-hover': LIST_ITEM_COLORS.content.hover,
|
|
62
62
|
'--list-item-color-disabled': LIST_ITEM_COLORS.content.disabled,
|
|
63
|
+
'--list-item-color-selected': LIST_ITEM_COLORS.content.selected,
|
|
64
|
+
'--list-item-font-weight-selected': LIST_ITEM_TYPOGRAPHY.selectedFontWeight,
|
|
63
65
|
};
|
|
64
66
|
if (isDepth1Group) {
|
|
65
67
|
cssVars['--list-item-border-top'] = `${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
66
68
|
}
|
|
67
|
-
return (h("div", { key: '
|
|
69
|
+
return (h("div", { key: 'ad8ea94f02d9e114915e4115237aed32d89e93d9', class: {
|
|
68
70
|
'sd-select-v2-list-item': true,
|
|
69
71
|
'sd-select-v2-list-item--group': isGroup,
|
|
70
72
|
'sd-select-v2-list-item--depth1-group': isDepth1Group,
|
|
@@ -74,7 +76,7 @@ export class SdSelectV2ListItem {
|
|
|
74
76
|
'sd-select-v2-list-item--focused': this.isFocused,
|
|
75
77
|
'sd-select-v2-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
76
78
|
'sd-select-v2-list-item--disabled': !!this.option.disabled,
|
|
77
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
79
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'c3c5be89457efbd465ebcb89e304aaefaa85e245', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-v2-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), h("span", { key: 'ce5b528ec88cd6c862fe0df36cf1b46f054bcc0e', class: "sd-select-v2-list-item__label" }, this.option.label), this.countInfo && (h("span", { key: 'e0120384115bb93819675335a574aeb072d0232c', class: "sd-select-v2-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
78
80
|
}
|
|
79
81
|
static get is() { return "sd-select-v2-list-item"; }
|
|
80
82
|
static get originalStyleUrls() {
|
|
@@ -41,15 +41,15 @@ export class SdSelectV2ListItemSearch {
|
|
|
41
41
|
clearTimeout(this.debounceTimer);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '77b7f0742212b03108d5da3a1384766bc58da3ce', class: {
|
|
45
45
|
'sd-select-v2-list-item-search': true,
|
|
46
46
|
'sd-select-v2-list-item-search--scrolled': this.isScrolled,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: 'bf2086a00ca7924c3b13b28b056a1ee2351cce3d', class: "sd-select-v2-list-item-search__inner" }, h("sd-icon", { key: '471c08d7b293003958e1e0be9c4521b8663c860b', name: "search", size: 16, color: "grey_70", class: "sd-select-v2-list-item-search__icon" }), h("input", { key: 'b17d8610b73c3701711b5def9b34320156c5f554', ref: el => {
|
|
48
48
|
this.inputEl = el;
|
|
49
|
-
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
49
|
+
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '5b8c48df700862476b37b7c24741ee0f9b284c02', type: "button", class: {
|
|
50
50
|
'sd-select-v2-list-item-search__clear': true,
|
|
51
51
|
'sd-select-v2-list-item-search__clear--hidden': !this.searchText,
|
|
52
|
-
}, onClick: this.handleClear, tabindex: this.searchText ? 0 : -1, "aria-hidden": this.searchText ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
52
|
+
}, onClick: this.handleClear, tabindex: this.searchText ? 0 : -1, "aria-hidden": this.searchText ? 'false' : 'true' }, h("sd-icon", { key: 'cbcec76b7eb4e400e7154cc652512a36c0660d45', name: "close", size: 12, color: "#888888" })))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "sd-select-v2-list-item-search"; }
|
|
55
55
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
:host {
|
|
2
2
|
display: block;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
:host .sd-select-v2-listbox {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
width: var(--listbox-trigger-width);
|
|
@@ -13,13 +13,13 @@ sd-select-v2-listbox .sd-select-v2-listbox {
|
|
|
13
13
|
overflow: hidden;
|
|
14
14
|
outline: none;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
:host .sd-select-v2-listbox__list {
|
|
17
17
|
flex: 1;
|
|
18
18
|
min-height: 0;
|
|
19
19
|
overflow-y: auto;
|
|
20
|
-
padding-bottom:
|
|
20
|
+
padding-bottom: 0;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
:host .sd-select-v2-listbox__empty {
|
|
23
23
|
padding: 12px;
|
|
24
24
|
text-align: center;
|
|
25
25
|
font-size: 12px;
|
package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js
CHANGED
|
@@ -281,13 +281,13 @@ export class SdSelectV2Listbox {
|
|
|
281
281
|
'--listbox-max-width': this.maxWidth,
|
|
282
282
|
'--listbox-max-height': this.maxHeight,
|
|
283
283
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
284
|
-
'--listbox-padding-bottom': `${LIST_BOX_LAYOUT.paddingBottom}px`,
|
|
285
284
|
};
|
|
286
|
-
return (h("div", { key: '
|
|
285
|
+
return (h("div", { key: 'ca3d529a4a20f394de1358cc0627c730843a8cf9', class: "sd-select-v2-listbox", style: cssVars }, this.showSearch && (h("sd-select-v2-list-item-search", { key: 'e7c421d676c6a94cc31b0df69a489818b26563e3', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'f3f44e6df1fc8faf71c607cc0efb0d891dcbfb3d', class: "sd-select-v2-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
287
286
|
this.listEl = el;
|
|
288
287
|
} }, this.isEmpty ? (h("div", { class: "sd-select-v2-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-v2-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
289
288
|
}
|
|
290
289
|
static get is() { return "sd-select-v2-listbox"; }
|
|
290
|
+
static get encapsulation() { return "shadow"; }
|
|
291
291
|
static get originalStyleUrls() {
|
|
292
292
|
return {
|
|
293
293
|
"$": ["sd-select-v2-listbox.scss"]
|
package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js
CHANGED
|
@@ -28,11 +28,11 @@ export class SdSelectV2Trigger {
|
|
|
28
28
|
? SELECT_COLORS.icon.disabled
|
|
29
29
|
: SELECT_COLORS.icon.default,
|
|
30
30
|
};
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '4b3f60a4bd00423337ebd472a628bc67f0a5d55c', class: {
|
|
32
32
|
'sd-select-v2-trigger': true,
|
|
33
33
|
'sd-select-v2-trigger--open': this.isOpen,
|
|
34
34
|
'sd-select-v2-trigger--disabled': this.disabled,
|
|
35
|
-
}, style: cssVars, onClick: this.handleClick }, h("div", { key: '
|
|
35
|
+
}, style: cssVars, onClick: this.handleClick }, h("div", { key: '8a6f9aa132aa6db4ba9035b3b97f91b4f29fa475', class: "sd-select-v2-trigger__content" }, h("span", { key: '3fb8fa054682eefc604623da9ecb906581cf1661', class: "sd-select-v2-trigger__text" }, hasValue ? this.displayText : this.placeholder), h("sd-icon", { key: 'c6ae918c442452018513a144a6f14613a49dedd4', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
36
36
|
'sd-select-v2-trigger__icon': true,
|
|
37
37
|
'sd-select-v2-trigger__icon--open': this.isOpen,
|
|
38
38
|
} }))));
|
|
@@ -47,9 +47,10 @@ export const LIST_ITEM_LAYOUT = {
|
|
|
47
47
|
gap: listItemTokens.listItem.gap,
|
|
48
48
|
};
|
|
49
49
|
export const LIST_ITEM_TYPOGRAPHY = {
|
|
50
|
-
fontSize: listItemTokens.listItem.typography.fontSize,
|
|
51
|
-
lineHeight: listItemTokens.listItem.typography.lineHeight,
|
|
52
|
-
fontWeight: listItemTokens.listItem.typography.fontWeight,
|
|
50
|
+
fontSize: listItemTokens.listItem.typography.default.fontSize,
|
|
51
|
+
lineHeight: listItemTokens.listItem.typography.default.lineHeight,
|
|
52
|
+
fontWeight: listItemTokens.listItem.typography.default.fontWeight,
|
|
53
|
+
selectedFontWeight: listItemTokens.listItem.typography.selected.fontWeight,
|
|
53
54
|
};
|
|
54
55
|
export const LIST_ITEM_COLORS = {
|
|
55
56
|
bg: {
|
|
@@ -60,6 +61,7 @@ export const LIST_ITEM_COLORS = {
|
|
|
60
61
|
default: listItemTokens.listItem.content.default,
|
|
61
62
|
hover: listItemTokens.listItem.content.hover,
|
|
62
63
|
disabled: listItemTokens.listItem.content.disabled,
|
|
64
|
+
selected: listItemTokens.listItem.content.selected,
|
|
63
65
|
},
|
|
64
66
|
depth1: {
|
|
65
67
|
bg: listItemTokens.listItem.depth1.bg.default,
|
|
@@ -76,7 +78,6 @@ export const LIST_ITEM_COLORS = {
|
|
|
76
78
|
// ── ListBox Tokens ──
|
|
77
79
|
export const LIST_BOX_LAYOUT = {
|
|
78
80
|
radius: listBoxTokens.listBox.radius,
|
|
79
|
-
paddingBottom: listBoxTokens.listBox.paddingBottom,
|
|
80
81
|
};
|
|
81
82
|
// ── Constants ──
|
|
82
83
|
export const SEARCH_THRESHOLD = 11;
|
|
@@ -207,13 +207,13 @@ export class SdSelectV2 {
|
|
|
207
207
|
this.closeDropdown();
|
|
208
208
|
},
|
|
209
209
|
};
|
|
210
|
-
return (h("sd-field", { key: '
|
|
210
|
+
return (h("sd-field", { key: 'ffca1287cefaeedf867a6b86a752942a1c8d1703', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
211
211
|
this.hovered = true;
|
|
212
212
|
}, onMouseLeave: () => {
|
|
213
213
|
this.hovered = false;
|
|
214
|
-
} }, h("div", { key: '
|
|
214
|
+
} }, h("div", { key: 'f53f38543b165040eb48236e2a25e43b78444350', class: "sd-select-v2", ref: el => {
|
|
215
215
|
this.triggerRef = el;
|
|
216
|
-
} }, h("sd-select-v2-trigger", { key: '
|
|
216
|
+
} }, h("sd-select-v2-trigger", { key: 'afd60ef0b492d9179318a5187565b45a58ef1ed5', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'e482c1fffc24e893fe1c04f136a116bac6c1b2e9', ...portalProps }, h("sd-select-v2-listbox", { key: 'c864fdef604eee7cea7c946de970e78b59e8b0da', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
217
217
|
}
|
|
218
218
|
static get is() { return "sd-select-v2"; }
|
|
219
219
|
static get originalStyleUrls() {
|