@sellmate/design-system 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{component.table-B7brIpIQ.js → component.table-CMqGfEui.js} +11 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-BlxrCRYi.js → index-Cw-78mnC.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +10 -9
- package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip.cjs.entry.js +4 -4
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-box.cjs.entry.js +8 -3
- package/dist/cjs/sd-date-picker-calendar_2.cjs.entry.js +13 -8
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +22 -17
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +13 -13
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +7 -3
- package/dist/cjs/sd-field_3.cjs.entry.js +31 -30
- package/dist/cjs/sd-form.cjs.entry.js +5 -5
- package/dist/cjs/sd-ghost-button.cjs.entry.js +4 -4
- package/dist/cjs/sd-guide.cjs.entry.js +5 -5
- package/dist/cjs/sd-key-value-table.cjs.entry.js +10 -10
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-modal-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-pagination_4.cjs.entry.js +113 -40
- package/dist/cjs/sd-popover.cjs.entry.js +6 -6
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +7 -4
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +15 -11
- package/dist/cjs/sd-select_3.cjs.entry.js +20 -15
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +170 -47
- package/dist/cjs/{sd-table.config-CDyioyE2.js → sd-table.config-BIpldZtw.js} +13 -2
- package/dist/cjs/sd-tabs.cjs.entry.js +8 -3
- package/dist/cjs/sd-tag.cjs.entry.js +10 -10
- package/dist/cjs/sd-td.cjs.entry.js +52 -10
- package/dist/cjs/sd-text-link.cjs.entry.js +9 -4
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-N6nQ1QT-.js → tooltipArrow-BjSFKIUq.js} +1 -1
- package/dist/collection/components/sd-button/sd-button.js +9 -8
- package/dist/collection/components/sd-chip/sd-chip.js +4 -4
- package/dist/collection/components/sd-date-box/sd-date-box.js +7 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +4 -4
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +8 -3
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +12 -12
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +3 -3
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +6 -2
- package/dist/collection/components/sd-field/sd-field.js +23 -22
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +7 -2
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +4 -4
- package/dist/collection/components/sd-form/sd-form.js +4 -4
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +3 -3
- package/dist/collection/components/sd-guide/sd-guide.js +4 -4
- package/dist/collection/components/sd-input/sd-input.js +3 -3
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +8 -8
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +2 -2
- package/dist/collection/components/sd-number-input/sd-number-input.js +6 -6
- package/dist/collection/components/sd-popover/sd-popover.js +4 -4
- package/dist/collection/components/sd-portal/sd-portal.js +2 -2
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -3
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +7 -3
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +7 -7
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +5 -5
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +9 -4
- package/dist/collection/components/sd-select/sd-select.js +5 -5
- package/dist/collection/components/sd-table/sd-table.config.js +4 -0
- package/dist/collection/components/sd-table/sd-table.css +22 -3
- package/dist/collection/components/sd-table/sd-table.js +197 -50
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +2 -3
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +5 -5
- package/dist/collection/components/sd-table/sd-td/sd-td.js +111 -9
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +30 -16
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +20 -1
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +97 -18
- package/dist/collection/components/sd-tabs/sd-tabs.js +7 -2
- package/dist/collection/components/sd-tag/sd-tag.config.js +3 -3
- package/dist/collection/components/sd-tag/sd-tag.js +6 -3
- package/dist/collection/components/sd-text-link/sd-text-link.js +8 -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.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/utils/modal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-2wB9cing.js +1 -0
- package/dist/components/p-B-sK7I83.js +1 -0
- package/dist/components/p-B3D43x7F.js +1 -0
- package/dist/components/p-B7mpdnNl.js +1 -0
- package/dist/components/{p-DG45uNxd.js → p-BAcmO7w0.js} +1 -1
- package/dist/components/p-BL0ZcHK8.js +1 -0
- package/dist/components/p-BXCyVrle.js +1 -0
- package/dist/components/p-BY1LGlfc.js +1 -0
- package/dist/components/p-BjkROjjt.js +1 -0
- package/dist/components/p-Bm3W_eBv.js +1 -0
- package/dist/components/p-BnfUIhUj.js +1 -0
- package/dist/components/{p-D5TRyquv.js → p-BorUSgEK.js} +1 -1
- package/dist/components/{p-BfkuCNCI.js → p-BsM-fwYd.js} +1 -1
- package/dist/components/p-C5CH-s6a.js +1 -0
- package/dist/components/p-C7WLft_0.js +1 -0
- package/dist/components/{p-CGBnxqG2.js → p-CK9ciBIR.js} +1 -1
- package/dist/components/{p-BeK8amzx.js → p-CQI40kiY.js} +1 -1
- package/dist/components/{p-Dr1AMbBj.js → p-CRL7TjSB.js} +1 -1
- package/dist/components/p-CdOHomUp.js +1 -0
- package/dist/components/p-Ch5Yu1qd.js +1 -0
- package/dist/components/{p-D8WAP9T3.js → p-Cktiasfd.js} +1 -1
- package/dist/components/p-CsVAx6KV.js +1 -0
- package/dist/components/p-D0Jiw-Zk.js +1 -0
- package/dist/components/p-D5F7wCNo.js +1 -0
- package/dist/components/p-DBFgk0rX.js +1 -0
- package/dist/components/p-DFLCjX1a.js +1 -0
- package/dist/components/p-DL1ac1QS.js +1 -0
- package/dist/components/p-DeQcDHpn.js +1 -0
- package/dist/components/p-DfK4DiDI.js +1 -0
- package/dist/components/p-DhTcn6jX.js +1 -0
- package/dist/components/p-Dl8TIEQu.js +1 -0
- package/dist/components/{p--t9jBTYS.js → p-DyAnn9ea.js} +1 -1
- package/dist/components/p-Jts7ueOa.js +1 -0
- package/dist/components/{p-B1MabGRR.js → p-arZfxxPn.js} +1 -1
- package/dist/components/p-mmdt-WnS.js +1 -0
- package/dist/components/p-nOCYbyW4.js +1 -0
- package/dist/components/{p-MQTl8fGT.js → p-teN3CfOr.js} +1 -1
- package/dist/components/{p-ofkgu5aS.js → p-u8teDaMa.js} +1 -1
- package/dist/components/{p-BPsOJlCP.js → p-wCNRlKLa.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.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.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker-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-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-b96c694c.entry.js → p-04fdb4b1.entry.js} +1 -1
- package/dist/design-system/p-05611ff7.entry.js +1 -0
- package/dist/design-system/p-0U6dRjlq.js +2 -0
- package/dist/design-system/{p-cd8e4dd6.entry.js → p-0fe603a4.entry.js} +1 -1
- package/dist/design-system/p-100f5887.entry.js +1 -0
- package/dist/design-system/p-18c5ae1a.entry.js +1 -0
- package/dist/design-system/p-1baa05ae.entry.js +1 -0
- package/dist/design-system/p-2a1ef965.entry.js +1 -0
- package/dist/design-system/p-2c63404f.entry.js +1 -0
- package/dist/design-system/{p-feeb0cc5.entry.js → p-435ae69e.entry.js} +1 -1
- package/dist/design-system/{p-cbda9194.entry.js → p-43e97572.entry.js} +1 -1
- package/dist/design-system/{p-e1c0a3c9.entry.js → p-44d05570.entry.js} +1 -1
- package/dist/design-system/{p-328fae12.entry.js → p-501fae20.entry.js} +1 -1
- package/dist/design-system/{p-b6ca4461.entry.js → p-5705e6d6.entry.js} +1 -1
- package/dist/design-system/p-5cbaf1db.entry.js +1 -0
- package/dist/design-system/p-5ed0becf.entry.js +1 -0
- package/dist/design-system/p-5f1c39b8.entry.js +1 -0
- package/dist/design-system/p-66af0ba0.entry.js +1 -0
- package/dist/design-system/{p-a942dfbe.entry.js → p-77690440.entry.js} +1 -1
- package/dist/design-system/p-78cc0289.entry.js +1 -0
- package/dist/design-system/{p-b04b22c6.entry.js → p-790165f8.entry.js} +1 -1
- package/dist/design-system/p-80466582.entry.js +1 -0
- package/dist/design-system/{p-c0f60b00.entry.js → p-857c44e8.entry.js} +1 -1
- package/dist/design-system/{p-4e2953eb.entry.js → p-87c868c3.entry.js} +1 -1
- package/dist/design-system/{p-f60cc7be.entry.js → p-8db7d8f2.entry.js} +1 -1
- package/dist/design-system/{p-18466728.entry.js → p-8ee990bd.entry.js} +1 -1
- package/dist/design-system/p-8f22106e.entry.js +1 -0
- package/dist/design-system/p-BnfUIhUj.js +1 -0
- package/dist/{components/p-CT3dfy3K.js → design-system/p-C29HUShl.js} +1 -1
- package/dist/design-system/p-a6545130.entry.js +1 -0
- package/dist/design-system/p-ae2d45a2.entry.js +1 -0
- package/dist/design-system/{p-f3cfff78.entry.js → p-aeccfb2b.entry.js} +1 -1
- package/dist/design-system/{p-20a50702.entry.js → p-b0aad445.entry.js} +1 -1
- package/dist/design-system/p-b3c144ff.entry.js +1 -0
- package/dist/design-system/{p-b1bb0d72.entry.js → p-caee95b0.entry.js} +1 -1
- package/dist/design-system/p-d30c823e.entry.js +1 -0
- package/dist/design-system/{p-f5576a0d.entry.js → p-d3212544.entry.js} +1 -1
- package/dist/design-system/p-d8c41313.entry.js +1 -0
- package/dist/design-system/{p-7882e388.entry.js → p-de8bb9ba.entry.js} +1 -1
- package/dist/design-system/{p-29ed11e5.entry.js → p-e2334c1c.entry.js} +1 -1
- package/dist/design-system/{p-d78fbe16.entry.js → p-f4d73a0c.entry.js} +1 -1
- package/dist/design-system/p-fc973500.entry.js +1 -0
- package/dist/design-system/p-fe0a5368.entry.js +1 -0
- package/dist/design-system/p-mmdt-WnS.js +1 -0
- package/dist/esm/{component.table-BQ6at17Y.js → component.table-BnfUIhUj.js} +11 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-CLCoul8o.js → index-0U6dRjlq.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +10 -9
- package/dist/esm/sd-calendar.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip.entry.js +4 -4
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +1 -1
- package/dist/esm/sd-date-box.entry.js +8 -3
- package/dist/esm/sd-date-picker-calendar_2.entry.js +13 -8
- package/dist/esm/sd-date-picker_7.entry.js +22 -17
- package/dist/esm/sd-date-range-picker-calendar.entry.js +13 -13
- package/dist/esm/sd-dropdown-button.entry.js +7 -3
- package/dist/esm/sd-field_3.entry.js +31 -30
- package/dist/esm/sd-form.entry.js +5 -5
- package/dist/esm/sd-ghost-button.entry.js +4 -4
- package/dist/esm/sd-guide.entry.js +5 -5
- package/dist/esm/sd-key-value-table.entry.js +10 -10
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +1 -1
- package/dist/esm/sd-modal-container.entry.js +3 -3
- package/dist/esm/sd-pagination_4.entry.js +113 -40
- package/dist/esm/sd-popover.entry.js +6 -6
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-portal.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +7 -4
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +15 -11
- package/dist/esm/sd-select_3.entry.js +20 -15
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/{sd-table.config-0Te8GLCI.js → sd-table.config-B-VgXXT7.js} +13 -3
- package/dist/esm/sd-table.entry.js +170 -47
- package/dist/esm/sd-tabs.entry.js +8 -3
- package/dist/esm/sd-tag.entry.js +10 -10
- package/dist/esm/sd-td.entry.js +52 -10
- package/dist/esm/sd-text-link.entry.js +9 -4
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{tooltipArrow-Bc-yw2nt.js → tooltipArrow-O5LOsHae.js} +1 -1
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +3 -2
- package/dist/types/components/sd-table/constants.d.ts +2 -0
- package/dist/types/components/sd-table/sd-table.config.d.ts +4 -0
- package/dist/types/components/sd-table/sd-table.d.ts +19 -15
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +6 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +7 -0
- package/dist/types/components/sd-tag/sd-tag.d.ts +1 -0
- package/dist/types/components.d.ts +41 -8
- package/hydrate/index.js +552 -244
- package/hydrate/index.mjs +552 -244
- package/package.json +1 -1
- package/dist/components/p-At6nBeyO.js +0 -1
- package/dist/components/p-B73VhbYi.js +0 -1
- package/dist/components/p-BDQQllAo.js +0 -1
- package/dist/components/p-BDr27lvk.js +0 -1
- package/dist/components/p-BQ6at17Y.js +0 -1
- package/dist/components/p-BW_sBt7X.js +0 -1
- package/dist/components/p-BX3TJuQY.js +0 -1
- package/dist/components/p-Bm_T3qE0.js +0 -1
- package/dist/components/p-BnzK4uU4.js +0 -1
- package/dist/components/p-BqkJ0rZv.js +0 -1
- package/dist/components/p-C4PmGpW8.js +0 -1
- package/dist/components/p-C9CszVFl.js +0 -1
- package/dist/components/p-CGQWERwE.js +0 -1
- package/dist/components/p-CZmKBmKx.js +0 -1
- package/dist/components/p-CnarDyZi.js +0 -1
- package/dist/components/p-Cr2ghUra.js +0 -1
- package/dist/components/p-Cspm6LxP.js +0 -1
- package/dist/components/p-Cx3jXw9J.js +0 -1
- package/dist/components/p-DG-4Ifco.js +0 -1
- package/dist/components/p-DfXAgw0E.js +0 -1
- package/dist/components/p-MMkRcTBd.js +0 -1
- package/dist/components/p-ZstG0XdT.js +0 -1
- package/dist/components/p-h7eBUL4i.js +0 -1
- package/dist/components/p-lyB7zSp-.js +0 -1
- package/dist/components/p-oIM6jNZe.js +0 -1
- package/dist/components/p-oKHZl8yu.js +0 -1
- package/dist/design-system/p-02289728.entry.js +0 -1
- package/dist/design-system/p-17d66d85.entry.js +0 -1
- package/dist/design-system/p-1bb86d69.entry.js +0 -1
- package/dist/design-system/p-21874054.entry.js +0 -1
- package/dist/design-system/p-282cbefa.entry.js +0 -1
- package/dist/design-system/p-35dce399.entry.js +0 -1
- package/dist/design-system/p-39ff56b4.entry.js +0 -1
- package/dist/design-system/p-3cb712a6.entry.js +0 -1
- package/dist/design-system/p-7610153d.entry.js +0 -1
- package/dist/design-system/p-7722ddeb.entry.js +0 -1
- package/dist/design-system/p-7bfa0cf9.entry.js +0 -1
- package/dist/design-system/p-824ecfb5.entry.js +0 -1
- package/dist/design-system/p-9a04b341.entry.js +0 -1
- package/dist/design-system/p-BQ6at17Y.js +0 -1
- package/dist/design-system/p-CGQWERwE.js +0 -1
- package/dist/design-system/p-CLCoul8o.js +0 -2
- package/dist/design-system/p-Dmf0PYdM.js +0 -1
- package/dist/design-system/p-a7a0ca14.entry.js +0 -1
- package/dist/design-system/p-baed13e4.entry.js +0 -1
- package/dist/design-system/p-bd45e65d.entry.js +0 -1
- package/dist/design-system/p-bf4156d8.entry.js +0 -1
- package/dist/design-system/p-c228c2c7.entry.js +0 -1
- package/dist/design-system/p-cf382479.entry.js +0 -1
- package/dist/design-system/p-d0de34fd.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -188,9 +188,14 @@ const SdTabs = class {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
|
-
return (index.h("div", { key: '
|
|
191
|
+
return (index.h("div", { key: 'dd4377850ef052d22b6eb790b7766a3521a41c1c', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
192
192
|
const badgeName = this.getBadgeName(tab);
|
|
193
|
-
return (index.h("div", { key: `tab-${index$1}`,
|
|
193
|
+
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
194
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
195
|
+
e.preventDefault();
|
|
196
|
+
this.handleTabClick(tab);
|
|
197
|
+
}
|
|
198
|
+
} }, index.h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge !== undefined && tab.badge !== null && tab.badge !== '' && (index.h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
|
|
194
199
|
})));
|
|
195
200
|
}
|
|
196
201
|
static get watchers() { return {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
|
|
5
5
|
const tag = {
|
|
6
6
|
xs: {
|
|
7
7
|
height: "20",
|
|
8
8
|
paddingX: "8",
|
|
9
9
|
gap: "4",
|
|
10
|
-
icon: "12",
|
|
11
10
|
typography: {
|
|
12
11
|
fontSize: "11",
|
|
13
12
|
fontWeight: "500",
|
|
@@ -18,7 +17,6 @@ const tag = {
|
|
|
18
17
|
height: "24",
|
|
19
18
|
paddingX: "8",
|
|
20
19
|
gap: "4",
|
|
21
|
-
icon: "16",
|
|
22
20
|
typography: {
|
|
23
21
|
fontSize: "12",
|
|
24
22
|
fontWeight: "700",
|
|
@@ -30,7 +28,6 @@ const tag = {
|
|
|
30
28
|
height: "28",
|
|
31
29
|
paddingX: "12",
|
|
32
30
|
gap: "6",
|
|
33
|
-
icon: "16",
|
|
34
31
|
typography: {
|
|
35
32
|
fontSize: "14",
|
|
36
33
|
fontWeight: "700",
|
|
@@ -136,7 +133,7 @@ const SQUARE_SIZE_CONFIG = {
|
|
|
136
133
|
fontSize: `${tagTokens.tag.xs.typography.fontSize}px`,
|
|
137
134
|
fontWeight: tagTokens.tag.xs.typography.fontWeight,
|
|
138
135
|
lineHeight: `${tagTokens.tag.xs.typography.lineHeight}px`,
|
|
139
|
-
iconSize:
|
|
136
|
+
iconSize: 12,
|
|
140
137
|
radius: `${tagTokens.tag.xs.radius}px`,
|
|
141
138
|
},
|
|
142
139
|
sm: {
|
|
@@ -146,7 +143,7 @@ const SQUARE_SIZE_CONFIG = {
|
|
|
146
143
|
fontSize: `${tagTokens.tag.sm.typography.fontSize}px`,
|
|
147
144
|
fontWeight: tagTokens.tag.sm.typography.fontWeight,
|
|
148
145
|
lineHeight: `${tagTokens.tag.sm.typography.lineHeight}px`,
|
|
149
|
-
iconSize:
|
|
146
|
+
iconSize: 16,
|
|
150
147
|
radius: `${tagTokens.tag.sm.radius}px`,
|
|
151
148
|
},
|
|
152
149
|
md: {
|
|
@@ -156,7 +153,7 @@ const SQUARE_SIZE_CONFIG = {
|
|
|
156
153
|
fontSize: `${tagTokens.tag.md.typography.fontSize}px`,
|
|
157
154
|
fontWeight: tagTokens.tag.md.typography.fontWeight,
|
|
158
155
|
lineHeight: `${tagTokens.tag.md.typography.lineHeight}px`,
|
|
159
|
-
iconSize:
|
|
156
|
+
iconSize: 16,
|
|
160
157
|
radius: `${tagTokens.tag.md.radius}px`,
|
|
161
158
|
},
|
|
162
159
|
};
|
|
@@ -190,6 +187,9 @@ const SdTag = class {
|
|
|
190
187
|
label = '';
|
|
191
188
|
icon;
|
|
192
189
|
isLeft = true;
|
|
190
|
+
componentWillLoad() {
|
|
191
|
+
this.name = this.name ?? 'square_sm_grey';
|
|
192
|
+
}
|
|
193
193
|
get resolvedName() {
|
|
194
194
|
if (!isTagName(this.name)) {
|
|
195
195
|
throw new Error(`Invalid sd-tag name: "${this.name}"`);
|
|
@@ -200,14 +200,14 @@ const SdTag = class {
|
|
|
200
200
|
return TAG_CONFIG[this.resolvedName];
|
|
201
201
|
}
|
|
202
202
|
renderIcon(color, size) {
|
|
203
|
-
if (
|
|
203
|
+
if (this.icon == null)
|
|
204
204
|
return null;
|
|
205
205
|
return index.h("sd-icon", { class: "sd-tag__icon", name: this.icon, size: size, color: color });
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
208
|
const config = this.resolvedConfig;
|
|
209
209
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
210
|
-
return (index.h("span", { key: '
|
|
210
|
+
return (index.h("span", { key: 'bcf16350c162da2907ddf4ac53924d016a2457dd', class: "sd-tag", style: {
|
|
211
211
|
'--sd-tag-background': config.background,
|
|
212
212
|
'--sd-tag-content': config.content,
|
|
213
213
|
'--sd-tag-height': config.height,
|
|
@@ -217,7 +217,7 @@ const SdTag = class {
|
|
|
217
217
|
'--sd-tag-font-weight': config.fontWeight,
|
|
218
218
|
'--sd-tag-line-height': config.lineHeight,
|
|
219
219
|
'--sd-tag-radius': config.radius,
|
|
220
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '
|
|
220
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '248f9d8df1ff10af3c533580203cac1f816d8000', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
SdTag.style = sdTagCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
|
|
6
6
|
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}`;
|
|
@@ -19,6 +19,10 @@ const SdTd = class {
|
|
|
19
19
|
// <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
|
|
20
20
|
// 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
|
|
21
21
|
sdClass;
|
|
22
|
+
dividerLeft = false;
|
|
23
|
+
dividerRight = false;
|
|
24
|
+
// true이면 이 셀이 속한 행 전체가 dense를 무시하고 default 레이아웃으로 동작한다.
|
|
25
|
+
useFrame = false;
|
|
22
26
|
handleFieldChange(_newField, oldField) {
|
|
23
27
|
this.syncSlotName();
|
|
24
28
|
this.syncSpanRegistration();
|
|
@@ -35,10 +39,18 @@ const SdTd = class {
|
|
|
35
39
|
handleSdClassChange() {
|
|
36
40
|
this.syncCellClassRegistration();
|
|
37
41
|
}
|
|
42
|
+
handleDividerChange() {
|
|
43
|
+
this.syncCellClassRegistration();
|
|
44
|
+
}
|
|
45
|
+
handleUseFieldChange() {
|
|
46
|
+
this.syncUseFieldRegistration();
|
|
47
|
+
this.requestParentTrUpdate();
|
|
48
|
+
}
|
|
38
49
|
componentWillLoad() {
|
|
39
50
|
this.syncSlotName();
|
|
40
51
|
this.syncSpanRegistration();
|
|
41
52
|
this.syncCellClassRegistration();
|
|
53
|
+
this.syncUseFieldRegistration();
|
|
42
54
|
// slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
|
|
43
55
|
const parentTr = this.el.parentElement;
|
|
44
56
|
if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
|
|
@@ -49,6 +61,7 @@ const SdTd = class {
|
|
|
49
61
|
this.syncSlotName();
|
|
50
62
|
this.syncSpanRegistration();
|
|
51
63
|
this.syncCellClassRegistration();
|
|
64
|
+
this.syncUseFieldRegistration();
|
|
52
65
|
}
|
|
53
66
|
// React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
|
|
54
67
|
// 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
|
|
@@ -56,12 +69,14 @@ const SdTd = class {
|
|
|
56
69
|
connectedCallback() {
|
|
57
70
|
this.syncSpanRegistration();
|
|
58
71
|
this.syncCellClassRegistration();
|
|
72
|
+
this.syncUseFieldRegistration();
|
|
59
73
|
}
|
|
60
74
|
disconnectedCallback() {
|
|
61
75
|
const table = this.findTable();
|
|
62
|
-
if (table && this.field && this.rowKey != null) {
|
|
76
|
+
if (table != null && this.field !== '' && this.rowKey != null) {
|
|
63
77
|
table.unregisterSpanSync?.(String(this.rowKey), this.field);
|
|
64
78
|
table.unregisterCellClassSync?.(String(this.rowKey), this.field);
|
|
79
|
+
table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
|
|
65
80
|
this.requestParentTrUpdate();
|
|
66
81
|
}
|
|
67
82
|
}
|
|
@@ -82,7 +97,7 @@ const SdTd = class {
|
|
|
82
97
|
}
|
|
83
98
|
syncSpanRegistration() {
|
|
84
99
|
const table = this.findTable();
|
|
85
|
-
if (
|
|
100
|
+
if (table?.registerSpanSync == null || this.field === '' || this.rowKey == null)
|
|
86
101
|
return;
|
|
87
102
|
const rs = Math.max(1, Math.floor(Number(this.rowspan) || 1));
|
|
88
103
|
const cs = Math.max(1, Math.floor(Number(this.colspan) || 1));
|
|
@@ -96,27 +111,45 @@ const SdTd = class {
|
|
|
96
111
|
return;
|
|
97
112
|
const oldField = prevField ?? this.field;
|
|
98
113
|
const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
|
|
99
|
-
if (oldField && oldRowKey != null) {
|
|
114
|
+
if (oldField !== '' && oldRowKey != null) {
|
|
100
115
|
table.unregisterCellClassSync?.(oldRowKey, oldField);
|
|
101
116
|
}
|
|
102
|
-
if (!table.registerCellClassSync ||
|
|
117
|
+
if (!table.registerCellClassSync || this.field === '' || this.rowKey == null)
|
|
103
118
|
return;
|
|
104
|
-
|
|
119
|
+
const combinedClass = [
|
|
120
|
+
this.sdClass,
|
|
121
|
+
this.dividerLeft && 'td--divider-left',
|
|
122
|
+
this.dividerRight && 'td--divider-right',
|
|
123
|
+
]
|
|
124
|
+
.filter(Boolean)
|
|
125
|
+
.join(' ') || undefined;
|
|
126
|
+
table.registerCellClassSync(String(this.rowKey), this.field, combinedClass);
|
|
105
127
|
this.requestParentTrUpdate();
|
|
106
128
|
}
|
|
129
|
+
syncUseFieldRegistration() {
|
|
130
|
+
const table = this.findTable();
|
|
131
|
+
if (!table || this.field === '' || this.rowKey == null)
|
|
132
|
+
return;
|
|
133
|
+
if (this.useFrame) {
|
|
134
|
+
table.registerUseFrameSync?.(String(this.rowKey), this.field);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
107
140
|
syncSlotName() {
|
|
108
141
|
const table = this.el.closest('sd-table');
|
|
109
142
|
const fromMethod = table?.getTableIdSync?.();
|
|
110
143
|
const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
|
|
111
|
-
const tableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
112
|
-
(fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
144
|
+
const tableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
145
|
+
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
113
146
|
'';
|
|
114
|
-
if (this.field && this.rowKey !== undefined && tableId) {
|
|
147
|
+
if (this.field !== '' && this.rowKey !== undefined && tableId !== '') {
|
|
115
148
|
this.el.setAttribute('slot', `${tableId}-${this.field}-${this.rowKey}`);
|
|
116
149
|
}
|
|
117
150
|
}
|
|
118
151
|
render() {
|
|
119
|
-
return (index.h(index.Host, { key: '
|
|
152
|
+
return (index.h(index.Host, { key: 'ececfaf265a550ee38c5c2cc2ddd2875352deb10', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: 'c4a43f9affc1938d882e63e91ac90d570efffa37' })));
|
|
120
153
|
}
|
|
121
154
|
static get watchers() { return {
|
|
122
155
|
"field": [{
|
|
@@ -133,6 +166,15 @@ const SdTd = class {
|
|
|
133
166
|
}],
|
|
134
167
|
"sdClass": [{
|
|
135
168
|
"handleSdClassChange": 0
|
|
169
|
+
}],
|
|
170
|
+
"dividerLeft": [{
|
|
171
|
+
"handleDividerChange": 0
|
|
172
|
+
}],
|
|
173
|
+
"dividerRight": [{
|
|
174
|
+
"handleDividerChange": 0
|
|
175
|
+
}],
|
|
176
|
+
"useFrame": [{
|
|
177
|
+
"handleUseFieldChange": 0
|
|
136
178
|
}]
|
|
137
179
|
}; }
|
|
138
180
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
|
|
5
5
|
const textLink = {
|
|
6
6
|
gap: "4",
|
|
@@ -76,16 +76,21 @@ const SdTextLink = class {
|
|
|
76
76
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
77
77
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
78
78
|
};
|
|
79
|
-
return (index.h("span", { key: '
|
|
79
|
+
return (index.h("span", { key: '284a073ec6aca3ad91bffe084c3b84813df58772', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
80
80
|
'sd-text-link': true,
|
|
81
81
|
'sd-text-link--disabled': this.disabled,
|
|
82
|
-
}, style: cssVars, onClick: this.handleClick
|
|
82
|
+
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
83
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
this.handleClick();
|
|
86
|
+
}
|
|
87
|
+
} }, this.icon && (index.h("sd-icon", { key: '1e2021703a766769aa647f418fb4b287039d58a5', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: 'a25f207b8bf5bc2c221f0b370159b61ba2f27040', class: labelClassName }, this.label), this.useArrow && (index.h("span", { key: 'f273671ee796224bada0d2d27fc58ff893c433e7', class: "sd-text-link__arrow", style: {
|
|
83
88
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
84
89
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
85
90
|
display: 'inline-flex',
|
|
86
91
|
alignItems: 'center',
|
|
87
92
|
justifyContent: 'center',
|
|
88
|
-
} }, index.h("sd-icon", { key: '
|
|
93
|
+
} }, index.h("sd-icon", { key: '2e499bf0c1cd57d1ffb90999daa1c38d0cf43df8', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
89
94
|
}
|
|
90
95
|
};
|
|
91
96
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_DURATION = 4000;
|
|
6
6
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -234,7 +234,7 @@ const SdToastContainer = class {
|
|
|
234
234
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
235
235
|
const indexMap = new Map();
|
|
236
236
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
237
|
-
return (index.h("div", { key: '
|
|
237
|
+
return (index.h("div", { key: '4cf4413f350c2a1adc475c567d874252b1786e91', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
238
238
|
this.expanded = true;
|
|
239
239
|
this.pauseTimers();
|
|
240
240
|
}, onMouseLeave: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
|
|
5
5
|
const toast = {
|
|
6
6
|
icon: "16",
|
|
@@ -84,12 +84,12 @@ const SdToast = class {
|
|
|
84
84
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
85
85
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
86
86
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
87
|
-
return (index.h("div", { key: '
|
|
87
|
+
return (index.h("div", { key: 'edab2d1d8ac8222a988d38279f1a002281454f51', style: {
|
|
88
88
|
'--sd-toast-bg': typeConfig.bg,
|
|
89
89
|
'--sd-toast-text': typeConfig.content,
|
|
90
90
|
'--sd-toast-icon': iconColor,
|
|
91
91
|
'--sd-toast-link': linkColor,
|
|
92
|
-
} }, index.h("div", { key: '
|
|
92
|
+
} }, index.h("div", { key: '8dd98dd58cdf003ce031e5ae96b749a037333ce1', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '2b78cbc4fe96cc00d444fb49956da1fe245993ef', class: "sd-toast__icon" }, index.h("sd-icon", { key: '679852c9a19046ce1d2c9a0cdb4346f6e23c77fb', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '2798bd2392e9fc3c4c0375d894572da13d3d7e25', class: "sd-toast__content" }, index.h("span", { key: '76ab798742baa63b21bda60867cbeb5aa20f7957', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '6eb61ca5737f9af06ad63cfcef671e46ecc8de47', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '6c1ad7d494c7cc218b1058fec1ed3e42af0c83fc', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '32dd9adcc951a3a852bf20540376bd4d7ced7526', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
SdToast.style = sdToastCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
|
|
5
5
|
const toggle = {
|
|
6
6
|
height: "28",
|
|
@@ -120,7 +120,7 @@ const SdToggle = class {
|
|
|
120
120
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
121
121
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
122
122
|
};
|
|
123
|
-
return (index.h("label", { key: '
|
|
123
|
+
return (index.h("label", { key: '0b8273ed8f8efae70de32b92671bbd1353e877dc', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '2ec9909142463f8ba556ad885cb7f97bedad6b31', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cw-78mnC.js');
|
|
4
4
|
|
|
5
5
|
const TooltipArrow = (props) => (index.h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, index.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" })));
|
|
6
6
|
|
|
@@ -20,10 +20,11 @@ export class SdButton {
|
|
|
20
20
|
this.click.emit(event);
|
|
21
21
|
};
|
|
22
22
|
get resolvedName() {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const name = this.name || 'primary_sm';
|
|
24
|
+
if (!isButtonName(name)) {
|
|
25
|
+
throw new Error(`Invalid sd-button name: "${name}"`);
|
|
25
26
|
}
|
|
26
|
-
return
|
|
27
|
+
return name;
|
|
27
28
|
}
|
|
28
29
|
get resolvedConfig() {
|
|
29
30
|
const name = this.resolvedName;
|
|
@@ -49,8 +50,8 @@ export class SdButton {
|
|
|
49
50
|
this.warnIfMissingAriaLabel();
|
|
50
51
|
}
|
|
51
52
|
warnIfMissingAriaLabel() {
|
|
52
|
-
const iconOnly =
|
|
53
|
-
const missingAriaLabel = iconOnly &&
|
|
53
|
+
const iconOnly = this.label === '' && (isValidIcon(this.icon) || isValidIcon(this.rightIcon));
|
|
54
|
+
const missingAriaLabel = iconOnly && this.ariaLabel.trim() === '';
|
|
54
55
|
if (!missingAriaLabel) {
|
|
55
56
|
this.hasWarnedMissingAriaLabel = false;
|
|
56
57
|
return;
|
|
@@ -67,14 +68,14 @@ export class SdButton {
|
|
|
67
68
|
const validIcon = isValidIcon(this.icon) ? this.icon : undefined;
|
|
68
69
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
69
70
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
70
|
-
const accessibleName = iconOnly && this.ariaLabel.trim() ? this.ariaLabel : undefined;
|
|
71
|
-
return (h("button", { key: '
|
|
71
|
+
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
72
|
+
return (h("button", { key: 'c9f4491915f6ba4fdbf54df19b008bd32edbf925', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
72
73
|
'--sd-button-bg': config.color,
|
|
73
74
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
74
75
|
'--sd-button-border': PRESET_BORDER_COLORS[preset],
|
|
75
76
|
'--sd-button-content': PRESET_CONTENT_COLORS[preset],
|
|
76
77
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
77
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
78
|
+
}, onClick: this.handleClick }, h("span", { key: '44fc95645e6eea6aecee9978887f4309d9d31342', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: 'ae1d9a3e8eb40ed0aecac0e70af1341ac90767c8', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: 'ab7bbf916c3b0432db6313050d7facfe919794de', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: 'a533ef5439abe1729ccfacc9f8e44263b56434e5', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
|
|
78
79
|
}
|
|
79
80
|
static get is() { return "sd-button"; }
|
|
80
81
|
static get originalStyleUrls() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
2
|
import { CHIP_COLORS, CHIP_LAYOUT, CHIP_TYPOGRAPHY } from "./sd-chip.config";
|
|
3
3
|
export class SdChip {
|
|
4
4
|
el;
|
|
@@ -167,7 +167,7 @@ export class SdChip {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
unregisterFromForm() {
|
|
170
|
-
if (
|
|
170
|
+
if (this.name === '')
|
|
171
171
|
return;
|
|
172
172
|
const formEl = this.el.closest('sd-form');
|
|
173
173
|
formEl?.componentOnReady().then(form => {
|
|
@@ -205,12 +205,12 @@ export class SdChip {
|
|
|
205
205
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
206
206
|
'--sd-chip-line-height': typography.lineHeight,
|
|
207
207
|
};
|
|
208
|
-
return (h("span", { key: '
|
|
208
|
+
return (h("span", { key: '0addb8566b639d05921b9320b99abab7f1d67899', class: {
|
|
209
209
|
'sd-chip': true,
|
|
210
210
|
[`sd-chip--${state}`]: true,
|
|
211
211
|
'sd-chip--disabled': this.disabled,
|
|
212
212
|
'sd-chip--editable': !this.disabled,
|
|
213
|
-
}, role: this.disabled ? undefined : 'button', tabIndex: this.disabled || this.isEditing ? -1 : 0, "aria-disabled": this.disabled ? 'true' : undefined, style: cssVars, onClick: this.handleChipClick, onKeyDown: this.handleChipKeyDown }, this.isEditing ? (h("span", { key: "chip-input", ref: el => (this.inputEl = el), class: "sd-chip__input", contentEditable: !this.disabled, "data-placeholder": this.placeholder, spellcheck: false, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onBlur: this.handleInputBlur, onPaste: this.handlePaste, onClick: event => event.stopPropagation() })) : ([
|
|
213
|
+
}, role: this.disabled ? undefined : 'button', tabIndex: this.disabled || this.isEditing ? -1 : 0, "aria-disabled": this.disabled ? 'true' : undefined, style: cssVars, onClick: this.handleChipClick, onKeyDown: this.handleChipKeyDown }, this.isEditing ? (h("span", { key: "chip-input", ref: el => (this.inputEl = el), class: "sd-chip__input", role: "textbox", tabindex: this.disabled ? -1 : 0, contentEditable: !this.disabled, "data-placeholder": this.placeholder, spellcheck: false, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onBlur: this.handleInputBlur, onPaste: this.handlePaste, onClick: event => event.stopPropagation() })) : ([
|
|
214
214
|
h("span", { key: "chip-label", class: "sd-chip__label" }, this.internalValue),
|
|
215
215
|
!this.disabled && (h("sd-ghost-button", { key: "chip-remove", class: "sd-chip__remove", icon: "close", size: "xxs", ariaLabel: "remove", onClick: this.handleRemoveClick })),
|
|
216
216
|
])));
|
|
@@ -23,7 +23,7 @@ export class SdDateBox {
|
|
|
23
23
|
this.mouseOver?.emit(this.date);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
26
|
+
return (h("div", { key: 'ce4341db137de36e872a0e166bd89c33ac1ba91b', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
27
27
|
'sd-date-box': true,
|
|
28
28
|
'sd-hoverable': !this.disabled || !this.selected || this.type === '',
|
|
29
29
|
'sd-date-box--disabled': this.disabled,
|
|
@@ -34,7 +34,12 @@ export class SdDateBox {
|
|
|
34
34
|
'sd-date-box--in-range': this.inRange,
|
|
35
35
|
'sd-date-box--type-start': this.type === 'start',
|
|
36
36
|
'sd-date-box--type-end': this.type === 'end',
|
|
37
|
-
}, onClick: () => this.handleClickDate(),
|
|
37
|
+
}, onClick: () => this.handleClickDate(), onKeyDown: e => {
|
|
38
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
this.handleClickDate();
|
|
41
|
+
}
|
|
42
|
+
}, onMouseOver: () => this.handleHoverDate(), onFocus: () => this.handleHoverDate() }, h("div", { key: 'e641ed011f8e7e55cc589f566163899b26503717', class: "sd-date-box__content" }, h("div", { key: 'e15a5fce460757d5cf486ec0678c2e604beab4db', class: "sd-date-box__label" }, this.date))));
|
|
38
43
|
}
|
|
39
44
|
static get is() { return "sd-date-box"; }
|
|
40
45
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js
CHANGED
|
@@ -92,9 +92,9 @@ export class SdDatePickerCalendar {
|
|
|
92
92
|
if (!this.selectable)
|
|
93
93
|
return false;
|
|
94
94
|
const [start, end] = this.selectable;
|
|
95
|
-
if (start && date < start)
|
|
95
|
+
if (start !== '' && date < start)
|
|
96
96
|
return true;
|
|
97
|
-
if (end && date > end)
|
|
97
|
+
if (end !== '' && date > end)
|
|
98
98
|
return true;
|
|
99
99
|
return false;
|
|
100
100
|
}
|
|
@@ -133,8 +133,8 @@ export class SdDatePickerCalendar {
|
|
|
133
133
|
'--calendar-day-font-weight': CALENDAR_LAYOUT.day.fontWeight,
|
|
134
134
|
'--calendar-day-bold-font-weight': CALENDAR_LAYOUT.day.boldFontWeight,
|
|
135
135
|
};
|
|
136
|
-
return (h("div", { key: '
|
|
137
|
-
const isSelected = cell.inCurrentMonth &&
|
|
136
|
+
return (h("div", { key: '5fca5d51cbe5005cde3468c10f39397831371762', class: "sd-date-picker-calendar", style: cssVars }, h("div", { key: '5b6a101b463b455bfc70f9b92665fe308f45773d', class: "sd-date-picker-calendar__header" }, h("div", { key: '3fe7a4e416c632640371f9b3cb12baf72c7eab06', class: "sd-date-picker-calendar__nav-group" }, h("sd-ghost-button", { key: '1c71cf45dae23308ff901f08b606f0cfcdc7e5b4', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: 'aa9863d2cac5eb5d00a0d72570b216206b669f37', class: "sd-date-picker-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '941118e0c3cd37ed5decb2e91cfa738221f74958', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: 'e630c7269a617deeaa38cace0e2a91affb558688', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), h("div", { key: '45cfc135eeb6bf834cef92c1e36f2def4d7c2058', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, h("sd-ghost-button", { key: '98483c6626ea13cdb78be806feaa1748d60b6a1a', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '9e6097a040679203117436966c246f00b94f5ff2', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: '0ab7ccdae8678bb909aca74f4189a4426e51ec0b', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '07763d55d00fd6c6b3523bbbb2e994a177a5b81c', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), h("div", { key: '0304efaa140a8dba320e0e6791ef886bc77ac57b', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
|
|
137
|
+
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
138
138
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
139
139
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
140
140
|
return (h("button", { type: "button", key: cell.date, class: {
|
package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js
CHANGED
|
@@ -13,7 +13,7 @@ export class SdDatePickerTrigger {
|
|
|
13
13
|
};
|
|
14
14
|
render() {
|
|
15
15
|
const sizeTokens = DATEPICKER_SIZE_MAP[this.size] ?? DATEPICKER_SIZE_MAP.sm;
|
|
16
|
-
const hasValue =
|
|
16
|
+
const hasValue = this.displayText !== '';
|
|
17
17
|
const textMinWidth = this.size === 'md' ? 104 : 80;
|
|
18
18
|
const cssVars = {
|
|
19
19
|
'--trigger-padding-x': `${sizeTokens.paddingX}px`,
|
|
@@ -33,10 +33,15 @@ export class SdDatePickerTrigger {
|
|
|
33
33
|
? DATEPICKER_COLORS.icon.disabled
|
|
34
34
|
: DATEPICKER_COLORS.icon.default,
|
|
35
35
|
};
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: 'df53dd75ead71167d7089daab5718c7ff1c990ae', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
37
37
|
'sd-date-picker-trigger': true,
|
|
38
38
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
39
|
-
}, style: cssVars, onClick: this.handleClick
|
|
39
|
+
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
40
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
this.handleClick();
|
|
43
|
+
}
|
|
44
|
+
} }, h("sd-icon", { key: '76f41c99e1695eaa191cbc81ae057e65cb78e955', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: '4e1a4b2b41737f05dc1a4e642d317f5fc93bf9b2', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
40
45
|
}
|
|
41
46
|
static get is() { return "sd-date-picker-trigger"; }
|
|
42
47
|
static get originalStyleUrls() {
|
|
@@ -111,12 +111,12 @@ export class SdDateRangePickerCalendar {
|
|
|
111
111
|
isDisabled(date) {
|
|
112
112
|
if (this.selectable) {
|
|
113
113
|
const [start, end] = this.selectable;
|
|
114
|
-
if (start && date < start)
|
|
114
|
+
if (start != null && start !== '' && date < start)
|
|
115
115
|
return true;
|
|
116
|
-
if (end && date > end)
|
|
116
|
+
if (end != null && end !== '' && date > end)
|
|
117
117
|
return true;
|
|
118
118
|
}
|
|
119
|
-
if (this.maxRange && this.pendingStart) {
|
|
119
|
+
if (this.maxRange != null && this.maxRange > 0 && this.pendingStart !== '') {
|
|
120
120
|
const min = addDays(this.pendingStart, -this.maxRange);
|
|
121
121
|
const max = addDays(this.pendingStart, this.maxRange);
|
|
122
122
|
if (date < min || date > max)
|
|
@@ -129,8 +129,8 @@ export class SdDateRangePickerCalendar {
|
|
|
129
129
|
return;
|
|
130
130
|
if (this.isDisabled(cell.date))
|
|
131
131
|
return;
|
|
132
|
-
const hasCompleteRange =
|
|
133
|
-
if (
|
|
132
|
+
const hasCompleteRange = this.displayValue != null && this.displayValue[0] !== '' && this.displayValue[1] !== '';
|
|
133
|
+
if (this.pendingStart === '' || hasCompleteRange || cell.date < this.pendingStart) {
|
|
134
134
|
this.pendingStart = cell.date;
|
|
135
135
|
this.displayValue = null;
|
|
136
136
|
this.hoverDate = '';
|
|
@@ -145,7 +145,7 @@ export class SdDateRangePickerCalendar {
|
|
|
145
145
|
handleDayHover(cell) {
|
|
146
146
|
if (!cell.inCurrentMonth)
|
|
147
147
|
return;
|
|
148
|
-
if (this.pendingStart) {
|
|
148
|
+
if (this.pendingStart !== '') {
|
|
149
149
|
this.hoverDate = cell.date;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -153,18 +153,18 @@ export class SdDateRangePickerCalendar {
|
|
|
153
153
|
if (!inCurrentMonth) {
|
|
154
154
|
return { inRange: false, isRangeStart: false, isRangeEnd: false, isSelectedEdge: false };
|
|
155
155
|
}
|
|
156
|
-
if (this.pendingStart) {
|
|
156
|
+
if (this.pendingStart !== '') {
|
|
157
157
|
const isStart = date === this.pendingStart;
|
|
158
|
-
const previewEnd = this.hoverDate && this.hoverDate >= this.pendingStart ? this.hoverDate : '';
|
|
159
|
-
const inPreview =
|
|
158
|
+
const previewEnd = this.hoverDate !== '' && this.hoverDate >= this.pendingStart ? this.hoverDate : '';
|
|
159
|
+
const inPreview = previewEnd !== '' && date > this.pendingStart && date <= previewEnd;
|
|
160
160
|
return {
|
|
161
161
|
inRange: inPreview,
|
|
162
162
|
isRangeStart: isStart,
|
|
163
|
-
isRangeEnd:
|
|
163
|
+
isRangeEnd: previewEnd !== '' && date === previewEnd,
|
|
164
164
|
isSelectedEdge: isStart,
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
if (this.displayValue && this.displayValue[0] && this.displayValue[1]) {
|
|
167
|
+
if (this.displayValue != null && this.displayValue[0] !== '' && this.displayValue[1] !== '') {
|
|
168
168
|
const [start, end] = this.displayValue;
|
|
169
169
|
const isStart = date === start;
|
|
170
170
|
const isEnd = date === end;
|
|
@@ -239,7 +239,7 @@ export class SdDateRangePickerCalendar {
|
|
|
239
239
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
240
240
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
241
241
|
};
|
|
242
|
-
return (h(Fragment, { key: '
|
|
242
|
+
return (h(Fragment, { key: '71f25effececd0b83d9b33201230dc615ba87a30' }, h("div", { key: 'f075474fb0be9f8e8562a013532b3cdbaadee069', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '4dfa1d65b971f7d80f0799482c8ce41522200a94', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: '20149f97a5115115cc49894383ca7f989ba2b904', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
243
243
|
}
|
|
244
244
|
static get is() { return "sd-date-range-picker-calendar"; }
|
|
245
245
|
static get originalStyleUrls() {
|
|
@@ -81,7 +81,7 @@ export class SdDateRangePicker {
|
|
|
81
81
|
this.viewChange.emit(e.detail);
|
|
82
82
|
};
|
|
83
83
|
get displayText() {
|
|
84
|
-
if (
|
|
84
|
+
if (this.value == null || this.value[0] === '' || this.value[1] === '')
|
|
85
85
|
return '';
|
|
86
86
|
return `${this.value[0]} ~ ${this.value[1]}`;
|
|
87
87
|
}
|
|
@@ -98,9 +98,9 @@ export class SdDateRangePicker {
|
|
|
98
98
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
99
99
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
100
100
|
};
|
|
101
|
-
return (h("sd-field", { key: '
|
|
101
|
+
return (h("sd-field", { key: '1c335b82235bc829f26b06d01c967d81268fc348', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, 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("div", { key: '495f6e88d01bc6f19e57e04152e84bff2d0415d4', class: "sd-date-range-picker", ref: el => {
|
|
102
102
|
this.triggerRef = el;
|
|
103
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
103
|
+
} }, h("sd-date-picker-trigger", { key: '59c2d6ecdd7724e361ac4f6222d34d9ceca7ffd3', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '5ba7ab62c1205823fba496e984f4819dbb89064d', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-range-picker-calendar", { key: 'e6f84d99a4ceebee972900fd56593c18497cba9d', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "sd-date-range-picker"; }
|
|
106
106
|
static get originalStyleUrls() {
|