@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,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h, H as Host } from './index-BGyJgVXm.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
|
|
4
4
|
const sdTbodyCss = () => `:host{display:contents}:host *{box-sizing:border-box}.tbody{display:table-row-group}.tbody--empty .tbody__no-data-row{display:table-row}.tbody--empty .tbody__no-data-cell{display:table-cell;padding:0;border-bottom:none}`;
|
|
@@ -47,7 +47,7 @@ const SdTbody = class {
|
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
49
|
const hasRows = this.rows.length > 0;
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '82a437ddf0cb3c34877b9dbcb47b5406c20a0c0e', slot: `${this.tableId}-body` }, h("tbody", { key: '0f0257720491c781eda0479fb0c08d7dffc4f734', class: { 'tbody': true, 'tbody--empty': !hasRows } }, hasRows ? ([
|
|
51
51
|
this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
52
52
|
h("slot", null),
|
|
53
53
|
this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
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-BGyJgVXm.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}`;
|
|
@@ -40,7 +40,7 @@ const SdTd = class {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'c6ddb546268b573694b827509ebdfe74fff8a15a', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '0b59fb8a0cfa1ef628f50496af96aa2f39fdc89a' })));
|
|
44
44
|
}
|
|
45
45
|
static get watchers() { return {
|
|
46
46
|
"field": [{
|
|
@@ -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-BGyJgVXm.js';
|
|
2
2
|
|
|
3
3
|
const textLink = {
|
|
4
4
|
gap: "4",
|
|
@@ -71,16 +71,16 @@ const SdTextLink = class {
|
|
|
71
71
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
72
72
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
73
73
|
};
|
|
74
|
-
return (h("span", { key: '
|
|
74
|
+
return (h("span", { key: 'c485091d0a9d7f8aa946ac54d96baab50bcaa3c7', class: {
|
|
75
75
|
'sd-text-link': true,
|
|
76
76
|
'sd-text-link--disabled': this.disabled,
|
|
77
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '
|
|
77
|
+
}, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '98a2df9a2ba9b5d77eb73c0989cdf38383cfcd15', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: '3c6867611e0d970855897b06f7e9368a8588ff76', class: labelClassName }, this.label), this.useArrow && (h("span", { key: '460bebf92782560d64e41b47ea9ef42b66cc08c0', class: "sd-text-link__arrow", style: {
|
|
78
78
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
79
79
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
80
80
|
display: 'inline-flex',
|
|
81
81
|
alignItems: 'center',
|
|
82
82
|
justifyContent: 'center',
|
|
83
|
-
} }, h("sd-icon", { key: '
|
|
83
|
+
} }, h("sd-icon", { key: 'fee7c74359e683829ad3fa802191b651aa9e94da', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
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-BGyJgVXm.js';
|
|
2
2
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
|
-
import { i as inputTokens } from './component.textinput-
|
|
3
|
+
import { i as inputTokens } from './component.textinput-ByhWX2NK.js';
|
|
4
4
|
|
|
5
5
|
const TEXTAREA_TOKENS = {
|
|
6
6
|
paddingX: inputTokens.textinput.sm.paddingX,
|
|
@@ -127,7 +127,7 @@ const SdTextarea = class {
|
|
|
127
127
|
'--sd-system-size-field-sm-height': 'auto',
|
|
128
128
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
129
129
|
};
|
|
130
|
-
return (h("sd-field", { key: '
|
|
130
|
+
return (h("sd-field", { key: '4c93d887429d6790d2d49c951be64e4be1496fd4', name: this.name, 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, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'b64aa1b2f02c1f68db57e5e36e0a7146257629e1', class: "sd-textarea__content" }, h("textarea", { key: 'b2baff1d99b9c2347f0b0bb751fc51268d2c48c7', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
131
131
|
}
|
|
132
132
|
static get watchers() { return {
|
|
133
133
|
"value": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h, H as Host } from './index-BGyJgVXm.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
|
|
4
4
|
const sdTheadCss = () => `sd-thead{display:contents}sd-thead *{box-sizing:border-box}.thead{display:table-header-group;height:36px}.thead--sticky{position:sticky;top:0;z-index:120}.tr{display:table-row;width:100%}.th{display:table-cell;background:#F5FAFF;height:36px;padding:0 16px;font-weight:500;vertical-align:middle;border-bottom:1px solid #E1E1E1;-webkit-user-select:none;user-select:none;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.th--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.th--selected sd-checkbox label{position:relative}.th--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.th.sticky-left{position:sticky;background-color:#F5FAFF;z-index:110 !important;left:var(--sticky-left-offset, 0)}.th.sticky-right{position:sticky;background-color:#F5FAFF;z-index:110 !important;right:var(--sticky-right-offset, 0)}.th.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.th.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.th.sticky-left-edge.is-scrolled-left{overflow:visible}.th.sticky-left-edge.is-scrolled-left:after{opacity:1}.th.sticky-right-edge.is-scrolled-right{overflow:visible}.th.sticky-right-edge.is-scrolled-right:after{opacity:1}.th__content{display:flex;flex-flow:row nowrap;align-items:center;gap:4px}.th__content--left{justify-content:flex-start}.th__content--center{justify-content:center}.th__content--right{justify-content:flex-end}.th__content--label{white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.th__resizer{position:absolute;top:50%;right:0;transform:translateY(-50%);width:4px;height:16px;cursor:col-resize;z-index:3;border-left:1px solid #CCCCCC;border-right:1px solid #CCCCCC}.th__resizer--left{right:auto;left:0}`;
|
|
@@ -134,16 +134,16 @@ const SdThead = class {
|
|
|
134
134
|
const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
|
|
135
135
|
const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
|
|
136
136
|
const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
|
|
137
|
-
return (h(Host, { key: '
|
|
137
|
+
return (h(Host, { key: '97badde9634e2e7363eace5a402fc49a587459c3', slot: `${this.tableId}-head` }, h("thead", { key: 'd1ce731f6082679d8d61f4b74ac122f28f344909', class: {
|
|
138
138
|
'thead': true,
|
|
139
139
|
'thead--sticky': this._stickyHeader,
|
|
140
|
-
} }, h("tr", { key: '
|
|
140
|
+
} }, h("tr", { key: 'd0f8b1e8b8a7174cc9b39fabf782eddf2e2accaa', class: "tr" }, this._selectable && (h("th", { key: 'c422f5bd9f9a045785d2d91dd9e2dee6e8f91185', class: {
|
|
141
141
|
'th': true,
|
|
142
142
|
'th--selected': true,
|
|
143
143
|
'sticky-left': true,
|
|
144
144
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
145
145
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
146
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
146
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '32cea740457b21d4d6fd53a8f1c10b505a24a481', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
147
147
|
'th': true,
|
|
148
148
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
149
149
|
'sticky-left': true,
|
|
@@ -1,9 +1,9 @@
|
|
|
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-BGyJgVXm.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_DURATION = 4000;
|
|
4
4
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
5
5
|
const DEFAULT_GAP = 8;
|
|
6
|
-
const DEFAULT_Z_INDEX =
|
|
6
|
+
const DEFAULT_Z_INDEX = 999;
|
|
7
7
|
const TRANSITION_DURATION = 400;
|
|
8
8
|
const TRANSITION_FALLBACK_BUFFER = 100;
|
|
9
9
|
const COLLAPSED_SCALE_STEP = 0.05;
|
|
@@ -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: '4660dd2f2626d391bbcca7da59e16e6c4204d80d', 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-BGyJgVXm.js';
|
|
2
2
|
|
|
3
3
|
const toast = {
|
|
4
4
|
icon: "16",
|
|
@@ -55,10 +55,10 @@ const SdToast = class {
|
|
|
55
55
|
render() {
|
|
56
56
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
57
57
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
58
|
-
return (h("div", { key: '
|
|
58
|
+
return (h("div", { key: 'a041d5561d09ef56f4afd722e141b0a2e3a9453f', style: {
|
|
59
59
|
'--sd-toast-bg': typeConfig.bg,
|
|
60
60
|
'--sd-toast-text': typeConfig.content,
|
|
61
|
-
} }, h("div", { key: '
|
|
61
|
+
} }, h("div", { key: 'bf2a397484ec5938c0442ee0ee98f0ce00ad1ec0', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '4ea8468b31909e3aea1a293c393621e1815dea5c', class: "sd-toast__icon" }, h("sd-icon", { key: '407a0be71e36a6dca30f5cfb300f2c9ebf6b32c2', name: this.icon, size: iconSize, color: typeConfig.content }))), h("div", { key: '756ca54899ec4d6c3543f8fb1f681d09181674c9', class: "sd-toast__content" }, h("span", { key: 'f0e66dbd5e99bc3921a354ac51294a3c29fe9ea0', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '9f4a1a938b7559b03d7dd824c7f2fdbcb093e6fe', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (h("sd-ghost-button", { key: '03d64765901bc8a93f09642b09ae733fa9da0db4', class: "sd-toast__close", icon: "close", intent: this.type === 'caution' ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
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-BGyJgVXm.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: '1e0864450b0447ec08643290d1050e4d0ee0c4a4', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '7e44e8569de24839c41e8c28f579923e3a837366', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
SdToggle.style = sdToggleCss();
|
package/dist/esm/sd-tr.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h, H as Host } from './index-BGyJgVXm.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
|
|
4
4
|
const sdTrCss = () => `sd-tr{display:contents}sd-tr *{box-sizing:border-box}.tr{display:table-row}.tr:hover .td{background-color:#F9F9F9}.td{display:table-cell;height:44px;padding:0 16px;border-bottom:1px solid #E1E1E1;background:white;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.td--left{text-align:left}.td--center{text-align:center}.td--right{text-align:right}.td--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.td--selected sd-checkbox label{position:relative}.td--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.td.sticky-left{position:sticky;background-color:white;z-index:100 !important;left:var(--sticky-left-offset, 0)}.td.sticky-right{position:sticky;background-color:white;z-index:100 !important;right:var(--sticky-right-offset, 0)}.td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-left-edge.is-scrolled-left{overflow:visible}.td.sticky-left-edge.is-scrolled-left:after{opacity:1}.td.sticky-right-edge.is-scrolled-right{overflow:visible}.td.sticky-right-edge.is-scrolled-right:after{opacity:1}.tr:hover .td.sticky-left,.tr:hover .td.sticky-right{background-color:#F9F9F9}`;
|
|
@@ -129,13 +129,13 @@ const SdTr = class {
|
|
|
129
129
|
const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
|
|
130
130
|
const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
|
|
131
131
|
const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: '3bc910f3afa801d7824eee2e73456ef152c7dc93', style: { display: this.isVisible ? '' : 'none' } }, h("tr", { key: '93b1f4113ae63aa1c0cf79addaa9e8d15c9e8287', class: "tr" }, this._selectable && (h("td", { key: '0caba47c216126f4b7407dfe26afb9f0c75f6450', class: {
|
|
133
133
|
'td': true,
|
|
134
134
|
'td--selected': true,
|
|
135
135
|
'sticky-left': true,
|
|
136
136
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
137
137
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
138
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
138
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '2e41b3902f489877b624266e588221698aaa8f12', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => (h("td", { key: col.name, class: {
|
|
139
139
|
'td': true,
|
|
140
140
|
[`td--${col.align || 'left'}`]: true,
|
|
141
141
|
'sticky-left': true,
|
|
@@ -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-BGyJgVXm.js';
|
|
2
2
|
|
|
3
3
|
const tableTestCss = () => `:host{display:block}.table-wrapper{width:100%;overflow-x:auto}.templates-slot{display:none}.data-table{width:100%;border-collapse:collapse;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-size:14px}.data-table th,.data-table td{padding:12px 16px;text-align:left;vertical-align:middle}.data-table th{font-weight:600;background-color:#f8f9fa;color:#333}.data-table.bordered th,.data-table.bordered td{border:1px solid #dee2e6}.data-table.striped tbody tr:nth-child(odd){background-color:#f8f9fa}.data-table tbody tr:hover{background-color:#e9ecef}.data-table .cell-flex{display:flex;align-items:center;gap:8px}.data-table .cell-image{width:24px;height:16px;object-fit:cover;border-radius:2px}`;
|
|
4
4
|
|
|
@@ -78,7 +78,7 @@ const DataTable = class {
|
|
|
78
78
|
return el.innerHTML;
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h("div", { key: '
|
|
81
|
+
return (h("div", { key: 'eb6246d49bb46a1c2b2b9d93cff90e7c0d6788b4', class: "table-wrapper" }, h("table", { key: '584d752e51f252f2dd7a29868ae4300b55c47065', class: { 'data-table': true, 'bordered': this.bordered, 'striped': this.striped } }, h("thead", { key: 'fd35de9ad1cb79cf77ab9f7a806d2d7258d8b11b' }, h("tr", { key: '39a42d9fc76571aa5ef6073ec554471d5fd1b4c1' }, this.columns.map(column => (h("th", { key: column.field, style: { width: column.width } }, this.renderHeaderContent(column)))))), h("tbody", { key: '5c3a2b5853f619666b20145e0f7a221c75969071' }, this.rows.map((row, rowIndex) => (h("tr", { key: rowIndex }, this.columns.map(column => (h("td", { key: `${rowIndex}-${column.field}` }, this.renderCellContent(column, row, rowIndex))))))))), h("div", { key: 'bbbd15c2d1b517774340dbcdfb59338f260df21b', class: "templates-slot", hidden: true }, h("slot", { key: '28733f09dd4a90976d9bb60102039981c736cf87' }))));
|
|
82
82
|
}
|
|
83
83
|
static get watchers() { return {
|
|
84
84
|
"columns": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-BGyJgVXm.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
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const CHIP_LAYOUT: {
|
|
2
|
+
height: string;
|
|
3
|
+
paddingX: string;
|
|
4
|
+
gap: string;
|
|
5
|
+
radius: string;
|
|
6
|
+
borderWidth: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const CHIP_COLORS: {
|
|
9
|
+
bg: {
|
|
10
|
+
default: string;
|
|
11
|
+
error: string;
|
|
12
|
+
focus: string;
|
|
13
|
+
};
|
|
14
|
+
content: {
|
|
15
|
+
default: string;
|
|
16
|
+
error: string;
|
|
17
|
+
focus: string;
|
|
18
|
+
};
|
|
19
|
+
border: {
|
|
20
|
+
focus: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const CHIP_TYPOGRAPHY: {
|
|
24
|
+
default: {
|
|
25
|
+
fontFamily: string;
|
|
26
|
+
fontSize: string;
|
|
27
|
+
fontWeight: string;
|
|
28
|
+
lineHeight: string;
|
|
29
|
+
};
|
|
30
|
+
focus: {
|
|
31
|
+
fontFamily: string;
|
|
32
|
+
fontSize: string;
|
|
33
|
+
fontWeight: string;
|
|
34
|
+
lineHeight: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ValidatableField } from '../sd-form/sd-form';
|
|
3
|
+
import { Rule } from '../../types/form';
|
|
4
|
+
export declare class SdChip implements ValidatableField {
|
|
5
|
+
el: HTMLElement;
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
error: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
rules?: Rule[];
|
|
12
|
+
internalValue: string;
|
|
13
|
+
isEditing: boolean;
|
|
14
|
+
update: EventEmitter<string>;
|
|
15
|
+
remove: EventEmitter<void>;
|
|
16
|
+
focus: EventEmitter<void>;
|
|
17
|
+
blur: EventEmitter<void>;
|
|
18
|
+
private inputEl?;
|
|
19
|
+
private draftValue;
|
|
20
|
+
private shouldInitInput;
|
|
21
|
+
valueChanged(newValue: string): void;
|
|
22
|
+
componentWillLoad(): void;
|
|
23
|
+
componentDidLoad(): void;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
sdValidate(): Promise<boolean>;
|
|
26
|
+
sdReset(): Promise<void>;
|
|
27
|
+
sdResetValidate(): Promise<void>;
|
|
28
|
+
sdResetValidation(): Promise<void>;
|
|
29
|
+
sdFocus(): Promise<void>;
|
|
30
|
+
sdGetNativeElement(): Promise<HTMLSpanElement | null>;
|
|
31
|
+
private enterEditMode;
|
|
32
|
+
private commitEdit;
|
|
33
|
+
private cancelEdit;
|
|
34
|
+
private handleChipClick;
|
|
35
|
+
private handleChipKeyDown;
|
|
36
|
+
private handleInputChange;
|
|
37
|
+
private handleInputKeyDown;
|
|
38
|
+
private handleInputBlur;
|
|
39
|
+
private handlePaste;
|
|
40
|
+
private handleRemoveClick;
|
|
41
|
+
private syncInputValue;
|
|
42
|
+
private registerToForm;
|
|
43
|
+
private unregisterFromForm;
|
|
44
|
+
componentDidUpdate(): void;
|
|
45
|
+
private resolveState;
|
|
46
|
+
render(): any;
|
|
47
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const GUIDE_CONFIG: {
|
|
2
|
+
readonly gap: `${string}px`;
|
|
3
|
+
readonly button: {
|
|
4
|
+
readonly height: `${string}px`;
|
|
5
|
+
readonly paddingX: `${string}px`;
|
|
6
|
+
readonly radius: `${string}px`;
|
|
7
|
+
readonly gap: `${string}px`;
|
|
8
|
+
readonly fontFamily: string;
|
|
9
|
+
readonly fontSize: `${string}px`;
|
|
10
|
+
readonly fontWeight: string;
|
|
11
|
+
readonly lineHeight: `${string}px`;
|
|
12
|
+
readonly iconSize: number;
|
|
13
|
+
readonly iconColorDefault: string;
|
|
14
|
+
readonly iconColorActive: string;
|
|
15
|
+
readonly iconColorNotion: string;
|
|
16
|
+
readonly borderWidth: `${string}px`;
|
|
17
|
+
readonly borderColor: string;
|
|
18
|
+
readonly bgDefault: string;
|
|
19
|
+
readonly bgTip: string;
|
|
20
|
+
readonly bgNotion: string;
|
|
21
|
+
readonly textDefault: string;
|
|
22
|
+
readonly textActive: string;
|
|
23
|
+
};
|
|
24
|
+
readonly contents: {
|
|
25
|
+
readonly paddingX: `${string}px`;
|
|
26
|
+
readonly paddingY: `${string}px`;
|
|
27
|
+
readonly gap: `${string}px`;
|
|
28
|
+
readonly rowGap: `${string}px`;
|
|
29
|
+
readonly bodyGap: `${string}px`;
|
|
30
|
+
readonly titleGap: `${string}px`;
|
|
31
|
+
readonly radius: `${string}px`;
|
|
32
|
+
readonly iconColor: string;
|
|
33
|
+
readonly iconColorNotion: string;
|
|
34
|
+
readonly titleFontFamily: string;
|
|
35
|
+
readonly titleFontSize: `${string}px`;
|
|
36
|
+
readonly titleFontWeight: string;
|
|
37
|
+
readonly titleLineHeight: `${string}px`;
|
|
38
|
+
readonly bodyFontFamily: string;
|
|
39
|
+
readonly bodyFontSize: `${string}px`;
|
|
40
|
+
readonly bodyFontWeight: string;
|
|
41
|
+
readonly bodyLineHeight: `${string}px`;
|
|
42
|
+
readonly textColor: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
type GuideType = '
|
|
1
|
+
export type GuideType = 'tip' | 'notion';
|
|
2
2
|
export declare class SdGuide {
|
|
3
3
|
el: HTMLElement;
|
|
4
4
|
type: GuideType;
|
|
5
5
|
label: string;
|
|
6
6
|
message: string | string[];
|
|
7
|
-
|
|
7
|
+
url: string;
|
|
8
8
|
popupTitle: string;
|
|
9
9
|
popupWidth?: number;
|
|
10
10
|
popupShow: boolean;
|
|
11
11
|
private guideRef?;
|
|
12
12
|
private handleClickGuide;
|
|
13
|
-
private get guideClass();
|
|
14
13
|
closeDropdown: () => void;
|
|
14
|
+
private get guideStyle();
|
|
15
15
|
render(): any;
|
|
16
16
|
renderListItem(message: string | string[], depth?: number): HTMLElement[];
|
|
17
17
|
renderLi: (message: string, depth: number) => any;
|
|
18
18
|
}
|
|
19
|
-
export {};
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import type { ConfirmModalOptions, LoadingModalOptions,
|
|
1
|
+
import type { ConfirmModalOptions, LoadingModalOptions, ModalDialogRefLike, ModalEntry, SdModalCreateOptions } from './sd-modal-container.config';
|
|
2
2
|
export declare class SdModalContainer {
|
|
3
3
|
el: HTMLElement;
|
|
4
|
-
|
|
4
|
+
autoRemove: boolean;
|
|
5
|
+
entry?: ModalEntry;
|
|
5
6
|
isVisible: boolean;
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
private containerDismissTimerId?;
|
|
9
|
-
private previousBodyOverflow;
|
|
10
|
-
private bodyScrollLocked;
|
|
11
|
-
handleKeydown(e: KeyboardEvent): void;
|
|
7
|
+
backdropVisible: boolean;
|
|
8
|
+
private layerRef?;
|
|
12
9
|
open(options: ConfirmModalOptions, modalRef: ModalDialogRefLike): Promise<string>;
|
|
13
10
|
openLoading(options: LoadingModalOptions, modalRef: ModalDialogRefLike): Promise<string>;
|
|
14
11
|
createCustom(element: HTMLElement, options: SdModalCreateOptions, modalRef: ModalDialogRefLike): Promise<string>;
|
|
12
|
+
componentDidRender(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
dismissById(id: string, reason?: 'confirm' | 'cancel' | 'close'): Promise<void>;
|
|
15
|
+
update(id: string, props: Partial<ConfirmModalOptions> | Partial<LoadingModalOptions>): Promise<void>;
|
|
16
|
+
private mountEntry;
|
|
15
17
|
private attachModalEventListeners;
|
|
16
18
|
private attachLoadingModalEventListeners;
|
|
17
19
|
private dispatchClose;
|
|
18
|
-
private
|
|
19
|
-
|
|
20
|
-
update(id: string, props: Partial<ConfirmModalOptions> | Partial<LoadingModalOptions>): Promise<void>;
|
|
20
|
+
private requestDismiss;
|
|
21
|
+
private finalizeDismiss;
|
|
21
22
|
private createConfirmModal;
|
|
22
23
|
private createLoadingModal;
|
|
23
24
|
private applyLoadingProps;
|
|
24
25
|
private applyProps;
|
|
25
26
|
private handleBackdropClick;
|
|
26
27
|
private shakeModal;
|
|
27
|
-
disconnectedCallback(): void;
|
|
28
|
-
private setBodyScrollLock;
|
|
29
|
-
private getTopEntry;
|
|
30
|
-
private requestDismiss;
|
|
31
|
-
private finalizeDismiss;
|
|
32
28
|
private waitForModalReady;
|
|
33
29
|
private hasOwnProp;
|
|
34
30
|
private setAttr;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const PAGINATION_LAYOUT: {
|
|
2
|
+
height: string;
|
|
3
|
+
paddingX: string;
|
|
4
|
+
radius: string;
|
|
5
|
+
gap: string;
|
|
6
|
+
moveGap: string;
|
|
7
|
+
iconSize: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const PAGINATION_TYPOGRAPHY: {
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
fontWeightDefault: string;
|
|
14
|
+
fontWeightSelected: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const PAGINATION_COLORS: {
|
|
17
|
+
contentDefault: string;
|
|
18
|
+
contentHover: string;
|
|
19
|
+
contentSelected: string;
|
|
20
|
+
bgHover: string;
|
|
21
|
+
bgSelected: string;
|
|
22
|
+
iconDefault: string;
|
|
23
|
+
};
|
|
@@ -4,13 +4,13 @@ export declare class SdPagination {
|
|
|
4
4
|
lastPage: number;
|
|
5
5
|
simple: boolean;
|
|
6
6
|
pageChange: EventEmitter<number>;
|
|
7
|
-
private get paginationClasses();
|
|
8
7
|
private get pageNumbers();
|
|
9
8
|
private get buttonWidth();
|
|
10
|
-
private handlePageChange;
|
|
11
|
-
private handleGroupChange;
|
|
12
9
|
private get isFirstGroup();
|
|
13
10
|
private get isLastGroup();
|
|
11
|
+
private handlePageChange;
|
|
12
|
+
private handleGroupChange;
|
|
13
|
+
private renderNavButton;
|
|
14
14
|
private renderPrevButtons;
|
|
15
15
|
private renderNextButtons;
|
|
16
16
|
render(): any;
|
|
@@ -61,6 +61,7 @@ export declare const LIST_ITEM_TYPOGRAPHY: {
|
|
|
61
61
|
fontSize: string;
|
|
62
62
|
lineHeight: string;
|
|
63
63
|
fontWeight: string;
|
|
64
|
+
selectedFontWeight: string;
|
|
64
65
|
};
|
|
65
66
|
export declare const LIST_ITEM_COLORS: {
|
|
66
67
|
bg: {
|
|
@@ -71,6 +72,7 @@ export declare const LIST_ITEM_COLORS: {
|
|
|
71
72
|
default: string;
|
|
72
73
|
hover: string;
|
|
73
74
|
disabled: string;
|
|
75
|
+
selected: string;
|
|
74
76
|
};
|
|
75
77
|
depth1: {
|
|
76
78
|
bg: string;
|
|
@@ -86,7 +88,6 @@ export declare const LIST_ITEM_COLORS: {
|
|
|
86
88
|
};
|
|
87
89
|
export declare const LIST_BOX_LAYOUT: {
|
|
88
90
|
radius: string;
|
|
89
|
-
paddingBottom: string;
|
|
90
91
|
};
|
|
91
92
|
export declare const SEARCH_THRESHOLD = 11;
|
|
92
93
|
export declare const SEARCH_DEBOUNCE_MS = 1000;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement, nothing, type TemplateResult } from 'lit';
|
|
2
|
+
import type { Row, SdTableColumn, SdTableStickyColumn } from './constants';
|
|
3
|
+
export declare class StoryVirtualTable extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
columns: SdTableColumn[];
|
|
6
|
+
rows: Row[];
|
|
7
|
+
stickyColumn: SdTableStickyColumn;
|
|
8
|
+
stickyHeader: boolean;
|
|
9
|
+
selectable: boolean;
|
|
10
|
+
resizable: boolean;
|
|
11
|
+
height: string;
|
|
12
|
+
width: string;
|
|
13
|
+
rowHeight: number;
|
|
14
|
+
rowKey: string;
|
|
15
|
+
renderRow?: (row: Row, absoluteIndex: number) => TemplateResult | typeof nothing;
|
|
16
|
+
private range;
|
|
17
|
+
private tableRef;
|
|
18
|
+
private detachListener?;
|
|
19
|
+
private syncRafId;
|
|
20
|
+
constructor();
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
firstUpdated(): void;
|
|
23
|
+
render(): TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'story-virtual-table': StoryVirtualTable;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -19,7 +19,7 @@ export interface ToastEntry {
|
|
|
19
19
|
export declare const DEFAULT_DURATION = 4000;
|
|
20
20
|
export declare const DEFAULT_MAX_VISIBLE = 3;
|
|
21
21
|
export declare const DEFAULT_GAP = 8;
|
|
22
|
-
export declare const DEFAULT_Z_INDEX =
|
|
22
|
+
export declare const DEFAULT_Z_INDEX = 999;
|
|
23
23
|
export declare const TRANSITION_DURATION = 400;
|
|
24
24
|
export declare const TRANSITION_FALLBACK_BUFFER = 100;
|
|
25
25
|
export declare const COLLAPSED_SCALE_STEP = 0.05;
|