@sellmate/design-system 1.0.67 → 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-BpT5VmKY.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 +4 -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 +126 -155
- 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 +2 -2
- package/dist/cjs/sd-radio.cjs.entry.js +2 -2
- 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 +12 -16
- 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-C9i0ZsG_.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 +1 -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 +150 -164
- 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.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- 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.js +2 -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 +0 -1
- 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-DHh_uT9m.js → p-B1j9ZWLJ.js} +1 -1
- package/dist/components/{p-DPJPXCqf.js → p-BBluw-CU.js} +1 -1
- package/dist/components/{p-D74FHxKd.js → p-BFd54Imz.js} +1 -1
- package/dist/components/{p-IbLrnrk8.js → p-BPXQ6DXz.js} +1 -1
- package/dist/components/p-BaHpEtbz.js +1 -0
- package/dist/components/{p-DZJZLfsh.js → p-BlqLear7.js} +1 -1
- package/dist/components/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
- package/dist/components/{p-ByYIyCZY.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-Ds4UCVE1.js → p-CEeNVTzW.js} +1 -1
- package/dist/components/{p-DDOw5GBw.js → p-CLZ8NObl.js} +1 -1
- package/dist/components/{p-tZWFjQm2.js → p-COM91Bya.js} +1 -1
- package/dist/components/{p-BH4I7hqf.js → p-CS62OEXf.js} +1 -1
- package/dist/components/{p-iWu6aGXE.js → p-CX0V7awA.js} +1 -1
- package/dist/components/{p-DlsWuYWL.js → p-Cb1M05mf.js} +1 -1
- package/dist/{design-system/p-CRTx3YEe.js → components/p-Cj4NAUzE.js} +1 -1
- package/dist/components/{p-1iOCtFn5.js → p-CsPyZohK.js} +1 -1
- package/dist/components/{p-DhkPKN1J.js → p-CsVPC3FD.js} +1 -1
- package/dist/components/{p-tvysh3yO.js → p-Csfk-CtX.js} +1 -1
- package/dist/components/{p-DqYRbHxW.js → p-CtrDZYN5.js} +1 -1
- package/dist/components/p-D21iKAp7.js +1 -0
- package/dist/components/{p-cNJ6VOYI.js → p-D6C4-apu.js} +1 -1
- package/dist/components/{p-V6yl4lMM.js → p-DGPGMB_Z.js} +1 -1
- package/dist/components/{p-CymMpTU-.js → p-DIro-Wat.js} +1 -1
- package/dist/components/{p-BstWg2vS.js → p-DPCj-bFr.js} +1 -1
- package/dist/components/{p-DLeCo2gh.js → p-DQLyH3dr.js} +1 -1
- package/dist/components/p-DRVnqiWc.js +1 -0
- package/dist/components/{p-C02KLCcO.js → p-DWW5xr6r.js} +1 -1
- package/dist/components/p-D_lyw4rN.js +1 -0
- package/dist/components/{p-DL69hClF.js → p-Diis5oCN.js} +1 -1
- package/dist/components/{p-BRRvU4ZQ.js → p-DlkxQ9Jn.js} +1 -1
- package/dist/components/{p-CkMs7IA8.js → p-N_EbEY8s.js} +1 -1
- package/dist/components/{p-hN9rpxkR.js → p-T5BGXHZg.js} +1 -1
- package/dist/components/{p-BF4hokOY.js → p-YgnF5oje.js} +1 -1
- package/dist/components/{p-CX2EDIQM.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-c44ba991.entry.js → p-002e10ac.entry.js} +1 -1
- package/dist/design-system/p-01ac7743.entry.js +1 -0
- package/dist/design-system/{p-244d2d6e.entry.js → p-07736d67.entry.js} +1 -1
- package/dist/design-system/p-0929f910.entry.js +1 -0
- package/dist/design-system/{p-b2b5b2d3.entry.js → p-0b216b11.entry.js} +1 -1
- package/dist/design-system/{p-5b2486c9.entry.js → p-0bffdbf4.entry.js} +1 -1
- package/dist/design-system/{p-e1c17466.entry.js → p-0c98676e.entry.js} +1 -1
- package/dist/design-system/{p-5224553e.entry.js → p-0d485537.entry.js} +1 -1
- package/dist/design-system/{p-7fe09661.entry.js → p-16eae7ae.entry.js} +1 -1
- package/dist/design-system/{p-aebf903f.entry.js → p-1a455448.entry.js} +1 -1
- package/dist/design-system/{p-10763304.entry.js → p-1b8e63a6.entry.js} +1 -1
- package/dist/design-system/{p-525aefd5.entry.js → p-23c31074.entry.js} +1 -1
- package/dist/design-system/{p-7cf63a80.entry.js → p-23ff6bee.entry.js} +1 -1
- package/dist/design-system/{p-87a23bd0.entry.js → p-2a4b6bc7.entry.js} +1 -1
- package/dist/design-system/{p-298d9b57.entry.js → p-2a663b3b.entry.js} +1 -1
- package/dist/design-system/{p-fa1072f7.entry.js → p-308c2a72.entry.js} +1 -1
- package/dist/design-system/{p-e9d36c02.entry.js → p-33713805.entry.js} +1 -1
- package/dist/design-system/p-35b29182.entry.js +1 -0
- package/dist/design-system/{p-9e0b944f.entry.js → p-449e58ee.entry.js} +1 -1
- package/dist/design-system/{p-73383b2f.entry.js → p-48f1f9ff.entry.js} +1 -1
- package/dist/design-system/{p-504fdb4e.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-40371bf6.entry.js → p-59aa62ff.entry.js} +1 -1
- package/dist/design-system/{p-7b433296.entry.js → p-5a0b0a1b.entry.js} +1 -1
- package/dist/design-system/p-60ece09d.entry.js +1 -0
- package/dist/design-system/{p-10ed0768.entry.js → p-641c2f3d.entry.js} +1 -1
- package/dist/design-system/{p-2841d5e1.entry.js → p-64a56a4e.entry.js} +1 -1
- package/dist/design-system/{p-dff0060e.entry.js → p-6b2f6efb.entry.js} +1 -1
- package/dist/design-system/{p-e1202ad3.entry.js → p-6b478f5c.entry.js} +1 -1
- package/dist/design-system/{p-6eb3462d.entry.js → p-6ca6dfaf.entry.js} +1 -1
- package/dist/design-system/{p-337267a7.entry.js → p-6ef2d08f.entry.js} +1 -1
- package/dist/design-system/{p-51fcc29f.entry.js → p-703eee55.entry.js} +1 -1
- package/dist/design-system/p-75c5e31b.entry.js +1 -0
- package/dist/design-system/{p-768efd5a.entry.js → p-7dd8beba.entry.js} +1 -1
- package/dist/design-system/{p-348eff76.entry.js → p-7ef0c428.entry.js} +1 -1
- package/dist/design-system/{p-d263d476.entry.js → p-8281dc36.entry.js} +1 -1
- package/dist/design-system/p-87222184.entry.js +1 -0
- package/dist/design-system/p-8cd1b533.entry.js +1 -0
- package/dist/design-system/{p-f9559741.entry.js → p-92a52f89.entry.js} +1 -1
- package/dist/design-system/{p-19257b97.entry.js → p-95d96917.entry.js} +1 -1
- package/dist/design-system/{p-fb7e8c54.entry.js → p-9ecde011.entry.js} +1 -1
- package/dist/design-system/{p-b4e56b67.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-C4tHYnB4.js +1 -0
- package/dist/design-system/p-DRVnqiWc.js +1 -0
- package/dist/design-system/{p-513d85e1.entry.js → p-ade9319d.entry.js} +1 -1
- package/dist/design-system/{p-671a9ca8.entry.js → p-aeadfb9c.entry.js} +1 -1
- package/dist/design-system/{p-b56ae914.entry.js → p-ca6b4d4a.entry.js} +1 -1
- package/dist/design-system/{p-b6e7b8c8.entry.js → p-cdedac3c.entry.js} +1 -1
- package/dist/design-system/{p-5982bcd0.entry.js → p-d43772c0.entry.js} +1 -1
- package/dist/design-system/{p-c6d2f909.entry.js → p-dfa716e0.entry.js} +1 -1
- package/dist/design-system/{p-a66529a5.entry.js → p-e1288299.entry.js} +1 -1
- package/dist/design-system/{p-2edd355b.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-e385cbf4.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-Dcpqhs6V.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 +4 -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 +126 -155
- 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 +2 -2
- package/dist/esm/sd-radio.entry.js +2 -2
- 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 +12 -16
- 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-fP-ISMAm.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-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-select-v2/sd-select-v2.config.d.ts +0 -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 +125 -16
- package/dist/types/utils/modal-stack.d.ts +17 -0
- package/hydrate/index.js +963 -354
- package/hydrate/index.mjs +963 -354
- package/package.json +1 -1
- package/dist/components/p-B_7ozne7.js +0 -1
- package/dist/components/p-BsPBl6g5.js +0 -1
- package/dist/components/p-BuSniZ67.js +0 -1
- package/dist/components/p-CCHce_Dt.js +0 -1
- package/dist/components/p-DNVUhw5A.js +0 -1
- package/dist/components/p-UR2Cf2Sm.js +0 -1
- package/dist/design-system/p-1645da95.entry.js +0 -1
- package/dist/design-system/p-3b8595de.entry.js +0 -1
- package/dist/design-system/p-3bbf23b4.entry.js +0 -1
- package/dist/design-system/p-4c55ba79.entry.js +0 -1
- package/dist/design-system/p-6e9d6063.entry.js +0 -1
- package/dist/design-system/p-87b2c270.entry.js +0 -1
- package/dist/design-system/p-9925857c.entry.js +0 -1
- package/dist/design-system/p-9cb3be8c.entry.js +0 -1
- package/dist/design-system/p-Dcpqhs6V.js +0 -2
- package/dist/design-system/p-e232fb11.entry.js +0 -1
- package/dist/design-system/p-e474fa8c.entry.js +0 -1
|
@@ -163,20 +163,20 @@ export class SdField {
|
|
|
163
163
|
'--sd-field-addon-border-width': `${addonTokens.border.width}px`,
|
|
164
164
|
}
|
|
165
165
|
: {};
|
|
166
|
-
return (h("div", { key: '
|
|
166
|
+
return (h("div", { key: 'af5531a8bad5b8685f56748ce55044927f061903', class: {
|
|
167
167
|
'sd-field': true,
|
|
168
168
|
'sd-field--has-label': !!this.label,
|
|
169
169
|
'sd-field--has-addon': !!addon,
|
|
170
170
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
171
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: '
|
|
171
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: '82f2472c0ccc778a982bbf6164edfdc1629a9eb1', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '42dd86d80718b245402b42376d28810745cf2154', class: "sd-field__main", style: this.width
|
|
172
172
|
? {
|
|
173
173
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
174
174
|
flex: 'none',
|
|
175
175
|
}
|
|
176
|
-
: {} }, h("div", { key: '
|
|
176
|
+
: {} }, h("div", { key: '0c80a69019f7b14c5f19eeb21f751c885df4c82b', class: {
|
|
177
177
|
'sd-field__control': true,
|
|
178
178
|
'sd-field__control--has-addon': !!addon,
|
|
179
|
-
} }, addon && h("div", { key: '
|
|
179
|
+
} }, addon && h("div", { key: 'c3b9fac0b4586ba5697af8a7cfe7a6aec01b0e52', class: "sd-field__addon" }, addon), h("slot", { key: 'f7e087e3b3927708fd28919dba9e6edf4e1d317b' })), this.errorMsg || this.errorMessage ? (h("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
180
180
|
}
|
|
181
181
|
renderLabel(label) {
|
|
182
182
|
if (!label)
|
|
@@ -170,7 +170,7 @@ export class SdFilePicker {
|
|
|
170
170
|
'sd-file-picker__text': true,
|
|
171
171
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
172
172
|
'sd-file-picker__text--active': hasFiles,
|
|
173
|
-
} }, displayText), !this.disabled && hasFiles && (h("sd-ghost-button", { icon: "close", size: "xxs", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { class: "sd-file-picker__tooltip" }, displayText))));
|
|
173
|
+
} }, displayText), !this.disabled && hasFiles && (h("sd-ghost-button", { icon: "close", size: "xxs", ariaLabel: "clear", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { class: "sd-file-picker__tooltip" }, displayText))));
|
|
174
174
|
if (this.inline) {
|
|
175
175
|
return (h("div", { class: {
|
|
176
176
|
'sd-file-picker--inline': true,
|
|
@@ -4,7 +4,7 @@ export class SdFloatingPopover {
|
|
|
4
4
|
to = 'body';
|
|
5
5
|
parentRef = null;
|
|
6
6
|
offset = [0, 0];
|
|
7
|
-
zIndex =
|
|
7
|
+
zIndex = 998;
|
|
8
8
|
placement = 'bottom';
|
|
9
9
|
open = false;
|
|
10
10
|
close;
|
|
@@ -62,7 +62,7 @@ export class SdFloatingPopover {
|
|
|
62
62
|
this.wrapper = document.createElement('div');
|
|
63
63
|
Object.assign(this.wrapper.style, {
|
|
64
64
|
position: 'absolute',
|
|
65
|
-
zIndex: (this.zIndex ??
|
|
65
|
+
zIndex: (this.zIndex ?? 998).toString(),
|
|
66
66
|
transition: 'opacity 0.4s',
|
|
67
67
|
top: '-9999px',
|
|
68
68
|
left: '-9999px',
|
|
@@ -92,18 +92,22 @@ export class SdFloatingPopover {
|
|
|
92
92
|
switch (this.placement) {
|
|
93
93
|
case 'top':
|
|
94
94
|
top = rect.top + window.scrollY - this.wrapper.offsetHeight + offsetY - ARROW_SIZE;
|
|
95
|
-
left =
|
|
95
|
+
left =
|
|
96
|
+
rect.left + window.scrollX + rect.width / 2 - this.wrapper.offsetWidth / 2 + offsetX;
|
|
96
97
|
break;
|
|
97
98
|
case 'bottom':
|
|
98
99
|
top = rect.bottom + window.scrollY + offsetY + ARROW_SIZE;
|
|
99
|
-
left =
|
|
100
|
+
left =
|
|
101
|
+
rect.left + window.scrollX + rect.width / 2 - this.wrapper.offsetWidth / 2 + offsetX;
|
|
100
102
|
break;
|
|
101
103
|
case 'left':
|
|
102
|
-
top =
|
|
104
|
+
top =
|
|
105
|
+
rect.top + window.scrollY + rect.height / 2 - this.wrapper.offsetHeight / 2 + offsetY;
|
|
103
106
|
left = rect.left + window.scrollX - this.wrapper.offsetWidth - offsetX - ARROW_SIZE;
|
|
104
107
|
break;
|
|
105
108
|
case 'right':
|
|
106
|
-
top =
|
|
109
|
+
top =
|
|
110
|
+
rect.top + window.scrollY + rect.height / 2 - this.wrapper.offsetHeight / 2 + offsetY;
|
|
107
111
|
left = rect.right + window.scrollX + offsetX + ARROW_SIZE;
|
|
108
112
|
break;
|
|
109
113
|
}
|
|
@@ -144,7 +148,7 @@ export class SdFloatingPopover {
|
|
|
144
148
|
this.close.emit();
|
|
145
149
|
}
|
|
146
150
|
render() {
|
|
147
|
-
return h("slot", { key: '
|
|
151
|
+
return h("slot", { key: 'f463fadca5060ebc995d8115575404611b94fb11' });
|
|
148
152
|
}
|
|
149
153
|
static get is() { return "sd-floating-portal"; }
|
|
150
154
|
static get originalStyleUrls() {
|
|
@@ -243,7 +247,7 @@ export class SdFloatingPopover {
|
|
|
243
247
|
"setter": false,
|
|
244
248
|
"reflect": false,
|
|
245
249
|
"attribute": "z-index",
|
|
246
|
-
"defaultValue": "
|
|
250
|
+
"defaultValue": "998"
|
|
247
251
|
},
|
|
248
252
|
"placement": {
|
|
249
253
|
"type": "string",
|
|
@@ -32,19 +32,19 @@ export class SdGhostButton {
|
|
|
32
32
|
render() {
|
|
33
33
|
const sizeConfig = GHOST_BUTTON_SIZES[this.size];
|
|
34
34
|
const contentColor = this.disabled
|
|
35
|
-
? GHOST_BUTTON_DISABLED_COLORS[this.intent]
|
|
36
|
-
: GHOST_BUTTON_CONTENT_COLORS[this.intent];
|
|
35
|
+
? GHOST_BUTTON_DISABLED_COLORS[this.intent ?? 'default']
|
|
36
|
+
: GHOST_BUTTON_CONTENT_COLORS[this.intent ?? 'default'];
|
|
37
37
|
const accessibleName = this.ariaLabel.trim() || undefined;
|
|
38
|
-
return (h("button", { key: '
|
|
38
|
+
return (h("button", { key: '690151271d15b4a3e07b47021f368647cc9daf62', class: {
|
|
39
39
|
'sd-ghost-button': true,
|
|
40
40
|
'sd-ghost-button--disabled': this.disabled,
|
|
41
41
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
42
42
|
'--sd-ghost-button-size': `${sizeConfig.size}px`,
|
|
43
43
|
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[this.size]}px`,
|
|
44
|
-
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[this.intent],
|
|
44
|
+
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[this.intent ?? 'default'],
|
|
45
45
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
46
46
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
47
|
-
}, onClick: this.handleClick }, h("sd-icon", { key: '
|
|
47
|
+
}, onClick: this.handleClick }, h("sd-icon", { key: '9769fff9f694e7d1fa2cba94fa8e80498d0afe2e', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "sd-ghost-button"; }
|
|
50
50
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import guideTokens from "../../tokens/generated/component.guide.json";
|
|
2
|
+
import systemTokens from "../../tokens/generated/system.json";
|
|
3
|
+
const { button, contents, gap } = guideTokens.guide;
|
|
4
|
+
const NOTION_ICON_COLOR = systemTokens.color.content.primary;
|
|
5
|
+
export const GUIDE_CONFIG = {
|
|
6
|
+
gap: `${gap}px`,
|
|
7
|
+
button: {
|
|
8
|
+
height: `${button.height}px`,
|
|
9
|
+
paddingX: `${button.paddingX}px`,
|
|
10
|
+
radius: `${button.radius}px`,
|
|
11
|
+
gap: `${button.gap}px`,
|
|
12
|
+
fontFamily: button.typography.fontFamily,
|
|
13
|
+
fontSize: `${button.typography.fontSize}px`,
|
|
14
|
+
fontWeight: button.typography.fontWeight,
|
|
15
|
+
lineHeight: `${button.typography.lineHeight}px`,
|
|
16
|
+
iconSize: Number(button.icon.size),
|
|
17
|
+
iconColorDefault: button.icon.default,
|
|
18
|
+
iconColorActive: button.icon.active,
|
|
19
|
+
iconColorNotion: NOTION_ICON_COLOR,
|
|
20
|
+
borderWidth: `${button.border.width}px`,
|
|
21
|
+
borderColor: button.border.default,
|
|
22
|
+
bgDefault: button.bg.default,
|
|
23
|
+
bgTip: button.bg.tip,
|
|
24
|
+
bgNotion: button.bg.notion,
|
|
25
|
+
textDefault: button.text.default,
|
|
26
|
+
textActive: button.text.active,
|
|
27
|
+
},
|
|
28
|
+
contents: {
|
|
29
|
+
paddingX: `${contents.paddingX}px`,
|
|
30
|
+
paddingY: `${contents.paddingY}px`,
|
|
31
|
+
gap: `${contents.gap}px`,
|
|
32
|
+
rowGap: `${contents.row.gap}px`,
|
|
33
|
+
bodyGap: `${contents.body.gap}px`,
|
|
34
|
+
titleGap: `${contents.title.gap}px`,
|
|
35
|
+
radius: `${contents.radius}px`,
|
|
36
|
+
iconColor: contents.icon,
|
|
37
|
+
iconColorNotion: NOTION_ICON_COLOR,
|
|
38
|
+
titleFontFamily: contents.typography.title.fontFamily,
|
|
39
|
+
titleFontSize: `${contents.typography.title.fontSize}px`,
|
|
40
|
+
titleFontWeight: contents.typography.title.fontWeight,
|
|
41
|
+
titleLineHeight: `${contents.typography.title.lineHeight}px`,
|
|
42
|
+
bodyFontFamily: contents.typography.body.fontFamily,
|
|
43
|
+
bodyFontSize: `${contents.typography.body.fontSize}px`,
|
|
44
|
+
bodyFontWeight: contents.typography.body.fontWeight,
|
|
45
|
+
bodyLineHeight: `${contents.typography.body.lineHeight}px`,
|
|
46
|
+
textColor: contents.typography.color,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
@@ -177,38 +177,58 @@ sd-guide {
|
|
|
177
177
|
height: fit-content;
|
|
178
178
|
width: fit-content;
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
|
|
181
|
+
.sd-guide {
|
|
181
182
|
display: inline-flex;
|
|
182
183
|
align-items: center;
|
|
183
184
|
height: fit-content;
|
|
184
185
|
width: fit-content;
|
|
185
186
|
}
|
|
186
|
-
sd-guide .sd-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
.sd-guide .sd-guide__button .sd-button {
|
|
188
|
+
min-height: var(--sd-guide-button-height);
|
|
189
|
+
padding: 0 var(--sd-guide-button-padding-x);
|
|
190
|
+
border-radius: var(--sd-guide-button-radius);
|
|
191
|
+
border: var(--sd-guide-button-border-width) solid var(--sd-guide-button-border-color);
|
|
192
|
+
background: var(--sd-guide-button-bg-default);
|
|
193
|
+
color: var(--sd-guide-button-text-default) !important;
|
|
194
|
+
transition: none;
|
|
190
195
|
display: flex;
|
|
191
196
|
align-items: center;
|
|
192
|
-
|
|
197
|
+
gap: var(--sd-guide-button-gap);
|
|
198
|
+
}
|
|
199
|
+
.sd-guide .sd-guide__button .sd-button .sd-button__content {
|
|
200
|
+
color: var(--sd-guide-button-text-default) !important;
|
|
201
|
+
gap: var(--sd-guide-button-gap);
|
|
202
|
+
}
|
|
203
|
+
.sd-guide .sd-guide__button .sd-button .sd-button__content .sd-button__label {
|
|
204
|
+
margin-left: 0;
|
|
205
|
+
color: var(--sd-guide-button-text-default) !important;
|
|
206
|
+
font-size: var(--sd-guide-button-font-size);
|
|
207
|
+
font-weight: var(--sd-guide-button-font-weight);
|
|
208
|
+
line-height: var(--sd-guide-button-line-height);
|
|
193
209
|
}
|
|
194
|
-
sd-guide .sd-
|
|
195
|
-
color:
|
|
210
|
+
.sd-guide .sd-guide__button--active .sd-button {
|
|
211
|
+
color: var(--sd-guide-button-text-active) !important;
|
|
196
212
|
}
|
|
197
|
-
sd-guide .sd-
|
|
198
|
-
color:
|
|
199
|
-
margin-left: 4px;
|
|
213
|
+
.sd-guide .sd-guide__button--active .sd-button .sd-button__content {
|
|
214
|
+
color: var(--sd-guide-button-text-active) !important;
|
|
200
215
|
}
|
|
201
|
-
sd-guide .sd-
|
|
202
|
-
|
|
216
|
+
.sd-guide .sd-guide__button--active .sd-button .sd-button__content .sd-button__label {
|
|
217
|
+
color: var(--sd-guide-button-text-active) !important;
|
|
203
218
|
}
|
|
204
|
-
sd-guide .sd-
|
|
205
|
-
|
|
219
|
+
.sd-guide .sd-guide__button--type-tip.sd-guide__button--active .sd-button {
|
|
220
|
+
background: var(--sd-guide-button-bg-tip);
|
|
221
|
+
border-color: var(--sd-guide-button-bg-tip);
|
|
222
|
+
}
|
|
223
|
+
.sd-guide .sd-guide__button--type-notion.sd-guide__button--active .sd-button {
|
|
224
|
+
background: var(--sd-guide-button-bg-notion);
|
|
225
|
+
border-color: var(--sd-guide-button-bg-notion);
|
|
206
226
|
}
|
|
207
227
|
|
|
208
228
|
.sd-guide__popup {
|
|
209
229
|
position: relative;
|
|
210
|
-
padding:
|
|
211
|
-
border-radius:
|
|
230
|
+
padding: var(--sd-guide-contents-padding-y) var(--sd-guide-contents-padding-x);
|
|
231
|
+
border-radius: var(--sd-guide-contents-radius);
|
|
212
232
|
box-shadow: 4px 4px 24px 4px rgba(0, 0, 0, 0.1);
|
|
213
233
|
background: white;
|
|
214
234
|
}
|
|
@@ -220,15 +240,16 @@ sd-guide .sd-guide--active .sd-button .sd-button__content .sd-button__label {
|
|
|
220
240
|
.sd-guide__popup__header {
|
|
221
241
|
display: flex;
|
|
222
242
|
align-items: center;
|
|
223
|
-
gap:
|
|
224
|
-
margin-bottom:
|
|
243
|
+
gap: var(--sd-guide-contents-title-gap);
|
|
244
|
+
margin-bottom: var(--sd-guide-contents-gap);
|
|
225
245
|
}
|
|
226
246
|
.sd-guide__popup__header .sd-guide__popup__title {
|
|
227
247
|
margin-top: 0;
|
|
228
|
-
|
|
229
|
-
font-
|
|
230
|
-
|
|
231
|
-
|
|
248
|
+
margin-bottom: 0;
|
|
249
|
+
font-size: var(--sd-guide-contents-title-font-size);
|
|
250
|
+
font-weight: var(--sd-guide-contents-title-font-weight);
|
|
251
|
+
line-height: var(--sd-guide-contents-title-line-height);
|
|
252
|
+
color: var(--sd-guide-contents-text-color);
|
|
232
253
|
}
|
|
233
254
|
.sd-guide__popup__list {
|
|
234
255
|
width: 100%;
|
|
@@ -240,9 +261,10 @@ sd-guide .sd-guide--active .sd-button .sd-button__content .sd-button__label {
|
|
|
240
261
|
width: 100%;
|
|
241
262
|
align-items: start;
|
|
242
263
|
list-style: none;
|
|
243
|
-
color:
|
|
244
|
-
font-size:
|
|
245
|
-
font-weight:
|
|
264
|
+
color: var(--sd-guide-contents-text-color);
|
|
265
|
+
font-size: var(--sd-guide-contents-body-font-size);
|
|
266
|
+
font-weight: var(--sd-guide-contents-body-font-weight);
|
|
267
|
+
line-height: var(--sd-guide-contents-body-line-height);
|
|
246
268
|
}
|
|
247
269
|
.sd-guide__popup__list__item p {
|
|
248
270
|
width: 100%;
|
|
@@ -258,13 +280,20 @@ sd-guide .sd-guide--active .sd-button .sd-button__content .sd-button__label {
|
|
|
258
280
|
display: block;
|
|
259
281
|
content: "-";
|
|
260
282
|
width: 6px;
|
|
261
|
-
color:
|
|
262
|
-
font-size:
|
|
263
|
-
font-weight:
|
|
283
|
+
color: var(--sd-guide-contents-text-color);
|
|
284
|
+
font-size: var(--sd-guide-contents-body-font-size);
|
|
285
|
+
font-weight: var(--sd-guide-contents-body-font-weight);
|
|
286
|
+
line-height: var(--sd-guide-contents-body-line-height);
|
|
264
287
|
margin-left: 10px;
|
|
265
288
|
margin-right: 12px;
|
|
266
289
|
flex-shrink: 0;
|
|
267
290
|
}
|
|
291
|
+
.sd-guide__popup__list__item--depth-1:not(:first-child) {
|
|
292
|
+
margin-top: var(--sd-guide-contents-row-gap);
|
|
293
|
+
}
|
|
294
|
+
.sd-guide__popup__list__item--depth-2 {
|
|
295
|
+
margin-top: var(--sd-guide-contents-body-gap);
|
|
296
|
+
}
|
|
268
297
|
.sd-guide__popup__list__item--depth-2::before {
|
|
269
298
|
content: "•";
|
|
270
299
|
}
|
|
@@ -1,55 +1,83 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
youtube: 'Video Guide',
|
|
2
|
+
import { GUIDE_CONFIG } from "./sd-guide.config";
|
|
3
|
+
const DEFAULT_LABEL_BY_TYPE = {
|
|
4
|
+
tip: '활용 TIP',
|
|
6
5
|
notion: '사용법 안내',
|
|
7
|
-
event: 'Event Button',
|
|
8
6
|
};
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
size: 20,
|
|
13
|
-
color: 'green_75',
|
|
14
|
-
},
|
|
15
|
-
pdf: { name: 'pdf', size: 20, color: 'red_75' },
|
|
16
|
-
youtube: { name: 'youtube', size: 20, color: 'red_75' },
|
|
17
|
-
notion: { name: 'notion', size: 16, color: 'black' },
|
|
18
|
-
event: { name: 'event', size: 16, color: 'brilliantblue_70' },
|
|
7
|
+
const ICON_BY_TYPE = {
|
|
8
|
+
tip: 'helpOutline',
|
|
9
|
+
notion: 'notion',
|
|
19
10
|
};
|
|
20
11
|
export class SdGuide {
|
|
21
12
|
el;
|
|
22
|
-
type = '
|
|
13
|
+
type = 'tip';
|
|
23
14
|
label = '';
|
|
24
15
|
message = '';
|
|
25
|
-
|
|
16
|
+
url = '';
|
|
26
17
|
popupTitle = '';
|
|
27
18
|
popupWidth;
|
|
28
19
|
popupShow = false;
|
|
29
20
|
guideRef;
|
|
30
21
|
handleClickGuide = () => {
|
|
31
|
-
if (this.type === '
|
|
32
|
-
this.
|
|
22
|
+
if (this.type === 'notion') {
|
|
23
|
+
if (this.url) {
|
|
24
|
+
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
25
|
+
}
|
|
33
26
|
return;
|
|
34
27
|
}
|
|
35
|
-
|
|
36
|
-
window.open(this.guideUrl, '_blank');
|
|
37
|
-
}
|
|
28
|
+
this.popupShow = !this.popupShow;
|
|
38
29
|
};
|
|
39
|
-
get guideClass() {
|
|
40
|
-
const classes = ['sd-guide', `sd-guide--${this.type}`];
|
|
41
|
-
if (this.popupShow)
|
|
42
|
-
classes.push('sd-guide--active');
|
|
43
|
-
return classes.join(' ');
|
|
44
|
-
}
|
|
45
30
|
closeDropdown = () => {
|
|
46
31
|
this.popupShow = false;
|
|
47
32
|
};
|
|
33
|
+
get guideStyle() {
|
|
34
|
+
const { button, contents } = GUIDE_CONFIG;
|
|
35
|
+
return {
|
|
36
|
+
'--sd-guide-button-height': button.height,
|
|
37
|
+
'--sd-guide-button-padding-x': button.paddingX,
|
|
38
|
+
'--sd-guide-button-radius': button.radius,
|
|
39
|
+
'--sd-guide-button-gap': button.gap,
|
|
40
|
+
'--sd-guide-button-font-size': button.fontSize,
|
|
41
|
+
'--sd-guide-button-font-weight': button.fontWeight,
|
|
42
|
+
'--sd-guide-button-line-height': button.lineHeight,
|
|
43
|
+
'--sd-guide-button-border-width': button.borderWidth,
|
|
44
|
+
'--sd-guide-button-border-color': button.borderColor,
|
|
45
|
+
'--sd-guide-button-bg-default': button.bgDefault,
|
|
46
|
+
'--sd-guide-button-bg-tip': button.bgTip,
|
|
47
|
+
'--sd-guide-button-bg-notion': button.bgNotion,
|
|
48
|
+
'--sd-guide-button-text-default': button.textDefault,
|
|
49
|
+
'--sd-guide-button-text-active': button.textActive,
|
|
50
|
+
'--sd-guide-contents-padding-x': contents.paddingX,
|
|
51
|
+
'--sd-guide-contents-padding-y': contents.paddingY,
|
|
52
|
+
'--sd-guide-contents-gap': contents.gap,
|
|
53
|
+
'--sd-guide-contents-row-gap': contents.rowGap,
|
|
54
|
+
'--sd-guide-contents-body-gap': contents.bodyGap,
|
|
55
|
+
'--sd-guide-contents-title-gap': contents.titleGap,
|
|
56
|
+
'--sd-guide-contents-radius': contents.radius,
|
|
57
|
+
'--sd-guide-contents-title-font-size': contents.titleFontSize,
|
|
58
|
+
'--sd-guide-contents-title-font-weight': contents.titleFontWeight,
|
|
59
|
+
'--sd-guide-contents-title-line-height': contents.titleLineHeight,
|
|
60
|
+
'--sd-guide-contents-body-font-size': contents.bodyFontSize,
|
|
61
|
+
'--sd-guide-contents-body-font-weight': contents.bodyFontWeight,
|
|
62
|
+
'--sd-guide-contents-body-line-height': contents.bodyLineHeight,
|
|
63
|
+
'--sd-guide-contents-text-color': contents.textColor,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
48
66
|
render() {
|
|
49
|
-
const {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
67
|
+
const { button, contents } = GUIDE_CONFIG;
|
|
68
|
+
const isActive = this.popupShow;
|
|
69
|
+
const isNotion = (this.type ?? 'tip') === 'notion';
|
|
70
|
+
const defaultLabel = DEFAULT_LABEL_BY_TYPE[this.type ?? 'tip'];
|
|
71
|
+
const iconName = ICON_BY_TYPE[this.type ?? 'tip'];
|
|
72
|
+
const buttonIconDefault = isNotion ? button.iconColorNotion : button.iconColorDefault;
|
|
73
|
+
const popupIconColor = isNotion ? contents.iconColorNotion : contents.iconColor;
|
|
74
|
+
const buttonClasses = ['sd-guide__button', `sd-guide__button--type-${this.type ?? 'tip'}`];
|
|
75
|
+
if (isActive)
|
|
76
|
+
buttonClasses.push('sd-guide__button--active');
|
|
77
|
+
return (h("div", { key: '4b9aa8bafd13828a4ec29d726f7276fab3042f2d', class: "sd-guide", style: this.guideStyle }, h("sd-button", { key: 'e3a17c594d111e95d0cb42dd8315174ccf4dd908', ref: el => (this.guideRef = el), class: buttonClasses.join(' '), variant: isActive ? 'primary' : 'outline', label: this.label || defaultLabel, size: "sm", icon: iconName, iconColor: isActive ? button.iconColorActive : buttonIconDefault, iconSize: button.iconSize, noHover: isActive, onSdClick: this.handleClickGuide }), this.popupShow && (h("sd-portal", { key: 'b57b09779ec23220eb466f710d55e678c913fe24', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: 'e62ca3a49a4976861a3e485166c8376a71286aba', style: { position: 'absolute', width: '0px', height: '0px' } }, h("div", { key: '837625b5ab61bd9383cf5329bea66ceb97ef3bac', class: "sd-guide__popup", style: {
|
|
78
|
+
...this.guideStyle,
|
|
79
|
+
width: this.popupWidth ? this.popupWidth + 'px' : '426px',
|
|
80
|
+
} }, h("sd-ghost-button", { key: '0e3057af64b47e20234269c0e2bf07664b8b3b13', class: "sd-guide__popup__close", icon: "close", ariaLabel: "close", size: "sm", onSdClick: this.closeDropdown }), h("div", { key: '544e3508d232229b4d1edd82fdefa58457cc595a', class: "sd-guide__popup__header" }, h("sd-icon", { key: '234fb04df972a50fa8deb1cacc6e34fab678d27b', name: iconName, size: 24, color: popupIconColor }), h("h3", { key: '454d5ee4cdfc2a343d64e79dc642a2aee07ed448', class: "sd-guide__popup__title" }, this.popupTitle || defaultLabel)), h("ul", { key: '875d5f5587808e5189e77ca02e55e8d7be1125da', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
53
81
|
}
|
|
54
82
|
// 현재 2depth까지만 스타일 적용
|
|
55
83
|
renderListItem(message, depth = 0) {
|
|
@@ -84,11 +112,12 @@ export class SdGuide {
|
|
|
84
112
|
"mutable": false,
|
|
85
113
|
"complexType": {
|
|
86
114
|
"original": "GuideType",
|
|
87
|
-
"resolved": "\"
|
|
115
|
+
"resolved": "\"notion\" | \"tip\"",
|
|
88
116
|
"references": {
|
|
89
117
|
"GuideType": {
|
|
90
|
-
"location": "
|
|
91
|
-
"
|
|
118
|
+
"location": "local",
|
|
119
|
+
"path": "/Users/meijing/Documents/sellmate/frontend/design-system/packages/stencil/src/components/sd-guide/sd-guide.tsx",
|
|
120
|
+
"id": "src/components/sd-guide/sd-guide.tsx::GuideType"
|
|
92
121
|
}
|
|
93
122
|
}
|
|
94
123
|
},
|
|
@@ -100,9 +129,9 @@ export class SdGuide {
|
|
|
100
129
|
},
|
|
101
130
|
"getter": false,
|
|
102
131
|
"setter": false,
|
|
103
|
-
"reflect":
|
|
132
|
+
"reflect": true,
|
|
104
133
|
"attribute": "type",
|
|
105
|
-
"defaultValue": "'
|
|
134
|
+
"defaultValue": "'tip'"
|
|
106
135
|
},
|
|
107
136
|
"label": {
|
|
108
137
|
"type": "string",
|
|
@@ -120,7 +149,7 @@ export class SdGuide {
|
|
|
120
149
|
},
|
|
121
150
|
"getter": false,
|
|
122
151
|
"setter": false,
|
|
123
|
-
"reflect":
|
|
152
|
+
"reflect": true,
|
|
124
153
|
"attribute": "label",
|
|
125
154
|
"defaultValue": "''"
|
|
126
155
|
},
|
|
@@ -144,7 +173,7 @@ export class SdGuide {
|
|
|
144
173
|
"attribute": "message",
|
|
145
174
|
"defaultValue": "''"
|
|
146
175
|
},
|
|
147
|
-
"
|
|
176
|
+
"url": {
|
|
148
177
|
"type": "string",
|
|
149
178
|
"mutable": false,
|
|
150
179
|
"complexType": {
|
|
@@ -161,7 +190,7 @@ export class SdGuide {
|
|
|
161
190
|
"getter": false,
|
|
162
191
|
"setter": false,
|
|
163
192
|
"reflect": false,
|
|
164
|
-
"attribute": "
|
|
193
|
+
"attribute": "url",
|
|
165
194
|
"defaultValue": "''"
|
|
166
195
|
},
|
|
167
196
|
"popupTitle": {
|
|
@@ -111,12 +111,12 @@ export class SdInput {
|
|
|
111
111
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
112
112
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
113
113
|
};
|
|
114
|
-
return (h("sd-field", { key: '
|
|
114
|
+
return (h("sd-field", { key: 'ed32da716dabccac9c67061086a3eb821f49afd5', 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, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'c8297e261baee31b8508e0912004edd7fe85f115', class: "sd-input__content" }, h("slot", { key: '615b28bb1f239a1ead1cad888edde9b59358837b', name: "prefix" }), h("input", { key: 'd1231386b264dbb8b38bf920c48c59474417a492', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '97f7c084a17674d52c43255b334ddeb61cf743ad', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: 'f35a0872ac6f44e41716b0bf9f93f7a000445bf6', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
115
115
|
if (this.disabled)
|
|
116
116
|
return;
|
|
117
117
|
this.internalValue = '';
|
|
118
118
|
await this.formField?.sdValidate();
|
|
119
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
119
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '0fdf74595057997c7d2f5f0f3ba6b75c340c2965', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
120
120
|
if (this.disabled)
|
|
121
121
|
return;
|
|
122
122
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LOADING_CONTAINER_DEFAULT_Z_INDEX =
|
|
1
|
+
export const LOADING_CONTAINER_DEFAULT_Z_INDEX = 999;
|
|
@@ -4,7 +4,7 @@ sd-loading-container .sd-loading-container {
|
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
|
-
z-index: var(--sd-loading-container-z-index,
|
|
7
|
+
z-index: var(--sd-loading-container-z-index, 999);
|
|
8
8
|
opacity: 0;
|
|
9
9
|
visibility: hidden;
|
|
10
10
|
transition: opacity 0.2s ease, visibility 0s linear 0.2s;
|
|
@@ -10,10 +10,10 @@ export class SdLoadingContainer {
|
|
|
10
10
|
this.visible = false;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
13
|
+
return (h("div", { key: '8236579ed01f703fb105576c2fd575b157b3aa76', class: {
|
|
14
14
|
'sd-loading-container': true,
|
|
15
15
|
'sd-loading-container--visible': this.visible,
|
|
16
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
16
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '176473a839add91a86d207544e9cc5862b13d04f', class: "sd-loading-container__backdrop" }), h("div", { key: '2776ed326caa6870a79b94079ff6e778ee560b02', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '6977bfd46e06e9c13492a15b5081c98446770de5', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: '7cea458c498a4682b1d4d5f07e059ed8e4905df0', class: "sd-loading-container__message" }, this.message)))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "sd-loading-container"; }
|
|
19
19
|
static get originalStyleUrls() {
|
|
@@ -42,7 +42,7 @@ export class SdLoadingModal {
|
|
|
42
42
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
43
43
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
44
44
|
};
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '8ecd5db2ffde201dd0c7d3c58b1da6b85b5a4116', style: hostStyle }, h("div", { key: '61f79b16b22d5ab4bb4dca03f88568174cfcfb1f', class: "sd-loading-modal" }, h("div", { key: 'bc373cfebab5949bee9c024bd86ca92d8294ff7b', class: "sd-loading-modal__content" }, this.state === 'loading' ? (h("sd-circle-progress", { indeterminate: true })) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("p", { key: 'e9015b9c9813b1968c8ca7991d654761eb3ee9b3', class: "sd-loading-modal__message" }, this.resolvedMessage), this.useButton && (h("div", { key: '4ed941961611fe9533bd2b989c9b68ef6c7ca741', class: "sd-loading-modal__button" }, h("sd-button-v2", { key: '13f4c5ef5ad5285d846716e5dd72d9f2565c08f9', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "sd-loading-modal"; }
|
|
48
48
|
static get originalStyleUrls() {
|
|
@@ -4,10 +4,16 @@ sd-modal-container {
|
|
|
4
4
|
sd-modal-container .sd-modal-container {
|
|
5
5
|
position: fixed;
|
|
6
6
|
inset: 0;
|
|
7
|
-
z-index: var(--sd-modal-container-z-index,
|
|
7
|
+
z-index: var(--sd-modal-container-z-index, 997);
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
sd-modal-container .sd-modal-container__layer {
|
|
11
|
+
position: absolute;
|
|
12
|
+
inset: 0;
|
|
8
13
|
display: flex;
|
|
9
14
|
align-items: center;
|
|
10
15
|
justify-content: center;
|
|
16
|
+
pointer-events: none;
|
|
11
17
|
}
|
|
12
18
|
sd-modal-container .sd-modal-container__backdrop {
|
|
13
19
|
position: absolute;
|
|
@@ -15,23 +21,18 @@ sd-modal-container .sd-modal-container__backdrop {
|
|
|
15
21
|
background: rgba(0, 0, 0, 0.4);
|
|
16
22
|
opacity: 0;
|
|
17
23
|
transition: opacity 0.3s ease-out;
|
|
24
|
+
pointer-events: none;
|
|
18
25
|
}
|
|
19
26
|
sd-modal-container .sd-modal-container__backdrop--visible {
|
|
20
27
|
opacity: 1;
|
|
28
|
+
pointer-events: auto;
|
|
21
29
|
}
|
|
22
|
-
sd-modal-container .sd-modal-
|
|
30
|
+
sd-modal-container .sd-modal-container__modal {
|
|
23
31
|
position: relative;
|
|
24
32
|
z-index: 1;
|
|
25
|
-
display: grid;
|
|
26
|
-
place-items: center;
|
|
27
|
-
}
|
|
28
|
-
sd-modal-container .sd-modal-container__content > * {
|
|
29
|
-
grid-row: 1;
|
|
30
|
-
grid-column: 1;
|
|
31
|
-
}
|
|
32
|
-
sd-modal-container .sd-modal-container__modal {
|
|
33
33
|
opacity: 0;
|
|
34
34
|
transform: scale(0);
|
|
35
|
+
pointer-events: auto;
|
|
35
36
|
transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
36
37
|
}
|
|
37
38
|
sd-modal-container .sd-modal-container__modal--visible {
|