@sellmate/design-system 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/component.datepicker-Cw_-oidk.js +121 -0
- 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 +2 -2
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +278 -11
- package/dist/cjs/sd-calendar_2.cjs.entry.js +262 -0
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/sd-chip.cjs.entry.js +4 -4
- 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 +8 -3
- package/dist/cjs/sd-date-picker.config-D3lTpa6W.js +37 -0
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +27 -20
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +49 -49
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +10 -6
- 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 +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-pagination_4.cjs.entry.js +116 -43
- package/dist/cjs/sd-popover.cjs.entry.js +6 -6
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/cjs/useDatePicker-dCuEgvjX.js +103 -0
- package/dist/collection/collection-manifest.json +1 -2
- 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/sd-button.js +9 -8
- package/dist/collection/components/sd-calendar/sd-calendar.config.js +51 -0
- package/dist/collection/components/sd-calendar/sd-calendar.css +134 -73
- package/dist/collection/components/sd-calendar/sd-calendar.js +172 -133
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +3 -3
- package/dist/collection/components/sd-chip/sd-chip.js +4 -4
- 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-box/sd-date-box.js +7 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +8 -3
- package/dist/collection/components/sd-date-picker/sd-date-picker.config.js +0 -38
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +3 -2
- 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.config.js +2 -1
- 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-dropdown-button/sd-dropdown-button.js +3 -3
- 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-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-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-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +5 -5
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +2 -2
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- 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-switch/sd-switch.js +1 -1
- 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/index.js +1 -1
- package/dist/collection/utils/modal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B8o25hOw.js +1 -0
- package/dist/components/p-BFC3Etk2.js +1 -0
- package/dist/components/p-BQn6le_Y.js +1 -0
- package/dist/components/p-BRk9YZBe.js +1 -0
- package/dist/components/p-BRxXhFqt.js +1 -0
- package/dist/components/{p-D8WAP9T3.js → p-BSfu4DO2.js} +1 -1
- package/dist/components/p-BZabVWBD.js +1 -0
- package/dist/components/{p-BfkuCNCI.js → p-BeBiPTbd.js} +1 -1
- package/dist/components/p-BjkROjjt.js +1 -0
- package/dist/components/p-BjpbUGud.js +1 -0
- package/dist/components/p-BkWaPXXj.js +1 -0
- package/dist/components/p-BnfUIhUj.js +1 -0
- package/dist/components/p-Bs1Z5QtN.js +1 -0
- package/dist/components/{p-MQTl8fGT.js → p-BwPmM1Pm.js} +1 -1
- package/dist/components/p-C3fqSH7A.js +1 -0
- package/dist/components/p-CIUE4qr7.js +1 -0
- package/dist/components/p-CLxVZFEG.js +1 -0
- package/dist/components/p-CPuyhF6g.js +1 -0
- package/dist/components/p-CpgTSxf0.js +1 -0
- package/dist/components/p-Cx_d5vsS.js +1 -0
- package/dist/components/{p-BeK8amzx.js → p-CyObYB-g.js} +1 -1
- package/dist/components/p-D7nYP2a4.js +1 -0
- package/dist/components/{p-BPsOJlCP.js → p-DS7Ypvt5.js} +1 -1
- package/dist/components/p-Da5i_Sa6.js +1 -0
- package/dist/components/p-DhTcn6jX.js +1 -0
- package/dist/components/p-DlREBZ-C.js +1 -0
- package/dist/components/p-DnW8EAqd.js +1 -0
- package/dist/components/{p-D5TRyquv.js → p-FKKk7Bk8.js} +1 -1
- package/dist/components/{p-Dr1AMbBj.js → p-INdVvadB.js} +1 -1
- package/dist/components/p-JlZdKw4C.js +1 -0
- package/dist/components/p-VuxN5d2D.js +1 -0
- package/dist/components/p-WAsath62.js +1 -0
- package/dist/components/{p-ofkgu5aS.js → p-X-8I-A3g.js} +1 -1
- package/dist/components/{p-B1MabGRR.js → p-Z5Vk33zf.js} +1 -1
- package/dist/components/{p-DG45uNxd.js → p-kSfaCwf1.js} +1 -1
- package/dist/components/p-mmdt-WnS.js +1 -0
- package/dist/components/p-oyZgWRnC.js +1 -0
- package/dist/components/p-t161LJqb.js +1 -0
- package/dist/components/{p-CGBnxqG2.js → p-wOAxmZ1V.js} +1 -1
- package/dist/components/p-xX3QT-8K.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-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-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-00854a0a.entry.js +1 -0
- package/dist/design-system/p-00b2c850.entry.js +1 -0
- package/dist/design-system/p-03badf68.entry.js +1 -0
- package/dist/design-system/p-0U6dRjlq.js +2 -0
- package/dist/design-system/{p-d78fbe16.entry.js → p-11b904a3.entry.js} +1 -1
- package/dist/design-system/p-32e2d71e.entry.js +1 -0
- package/dist/design-system/p-399d416c.entry.js +1 -0
- package/dist/design-system/{p-29ed11e5.entry.js → p-3b8954d9.entry.js} +1 -1
- package/dist/design-system/{p-feeb0cc5.entry.js → p-481e6934.entry.js} +1 -1
- package/dist/design-system/{p-328fae12.entry.js → p-4a91875c.entry.js} +1 -1
- package/dist/design-system/p-563b6fc2.entry.js +1 -0
- package/dist/design-system/p-679bce6c.entry.js +1 -0
- package/dist/design-system/{p-b6ca4461.entry.js → p-74bf0ed9.entry.js} +1 -1
- package/dist/design-system/{p-4e2953eb.entry.js → p-84a94775.entry.js} +1 -1
- package/dist/design-system/p-8f4ccae4.entry.js +1 -0
- package/dist/design-system/p-92f368a2.entry.js +1 -0
- package/dist/design-system/p-9681b0ba.entry.js +1 -0
- package/dist/design-system/{p-f5576a0d.entry.js → p-9b9bf9db.entry.js} +1 -1
- package/dist/design-system/p-9f7f1b8b.entry.js +1 -0
- package/dist/design-system/p-BGtUaScP.js +1 -0
- package/dist/design-system/p-BQn6le_Y.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-TF8_Lyhq.js +1 -0
- package/dist/design-system/p-a640e509.entry.js +1 -0
- package/dist/design-system/{p-20a50702.entry.js → p-a71d4947.entry.js} +1 -1
- package/dist/design-system/p-a7ea1cf0.entry.js +1 -0
- package/dist/design-system/{p-e1c0a3c9.entry.js → p-a97033a2.entry.js} +1 -1
- package/dist/design-system/p-a98f9a29.entry.js +1 -0
- package/dist/design-system/{p-7882e388.entry.js → p-ae117afa.entry.js} +1 -1
- package/dist/design-system/{p-f3cfff78.entry.js → p-aeccfb2b.entry.js} +1 -1
- package/dist/design-system/p-c7099e9e.entry.js +1 -0
- package/dist/design-system/p-cc97f4b4.entry.js +1 -0
- package/dist/design-system/{p-b96c694c.entry.js → p-d39e515d.entry.js} +1 -1
- package/dist/design-system/p-dbeaeb31.entry.js +1 -0
- package/dist/design-system/p-e23dac79.entry.js +1 -0
- package/dist/design-system/{p-c0f60b00.entry.js → p-e611dcd4.entry.js} +1 -1
- package/dist/design-system/{p-a942dfbe.entry.js → p-e8e64511.entry.js} +1 -1
- package/dist/design-system/{p-cd8e4dd6.entry.js → p-e902a3f4.entry.js} +1 -1
- package/dist/design-system/p-f7074386.entry.js +1 -0
- package/dist/design-system/p-f721a6c6.entry.js +1 -0
- package/dist/design-system/{p-b1bb0d72.entry.js → p-fc5c4f85.entry.js} +1 -1
- package/dist/design-system/p-fe0a5368.entry.js +1 -0
- package/dist/design-system/{p-cbda9194.entry.js → p-fe3ae346.entry.js} +1 -1
- package/dist/design-system/p-ffaa4b5d.entry.js +1 -0
- package/dist/design-system/p-mmdt-WnS.js +1 -0
- package/dist/esm/component.datepicker-BQn6le_Y.js +119 -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 +2 -2
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -2
- package/dist/esm/sd-button_2.entry.js +277 -10
- package/dist/esm/sd-calendar_2.entry.js +259 -0
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +4 -4
- package/dist/esm/sd-chip.entry.js +4 -4
- 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 +8 -3
- package/dist/esm/sd-date-picker.config-CGEE3DkI.js +34 -0
- package/dist/esm/sd-date-picker_7.entry.js +27 -20
- package/dist/esm/sd-date-range-picker-calendar.entry.js +22 -22
- package/dist/esm/sd-dropdown-button.entry.js +10 -6
- 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 +2 -2
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +3 -3
- package/dist/esm/sd-pagination_4.entry.js +116 -43
- package/dist/esm/sd-popover.entry.js +6 -6
- package/dist/esm/sd-popup.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/esm/useDatePicker-D5RmWGOp.js +98 -0
- package/dist/types/components/sd-calendar/sd-calendar.config.d.ts +55 -0
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +18 -21
- package/dist/types/components/sd-date-picker/sd-date-picker.config.d.ts +0 -38
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.config.d.ts +2 -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 +47 -60
- package/dist/types/index.d.ts +4 -3
- package/hydrate/index.js +1359 -1130
- package/hydrate/index.mjs +1359 -1130
- package/package.json +1 -1
- package/dist/cjs/resolveColor-B0hzQNLG.js +0 -270
- package/dist/cjs/sd-calendar.cjs.entry.js +0 -143
- package/dist/cjs/sd-date-picker-calendar_2.cjs.entry.js +0 -214
- package/dist/cjs/sd-date-picker.config-CjvrFpYK.js +0 -177
- package/dist/cjs/useDatePicker-cK_XK_P6.js +0 -48
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.css +0 -117
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +0 -246
- package/dist/components/p--t9jBTYS.js +0 -1
- package/dist/components/p-At6nBeyO.js +0 -1
- package/dist/components/p-B6cqMQaM.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-DTrMR0rx.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/components/sd-date-picker-calendar.d.ts +0 -11
- package/dist/components/sd-date-picker-calendar.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-18466728.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-B6cqMQaM.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-Ce0cmS4R.js +0 -1
- package/dist/design-system/p-DTrMR0rx.js +0 -1
- package/dist/design-system/p-Dmf0PYdM.js +0 -1
- package/dist/design-system/p-a7a0ca14.entry.js +0 -1
- package/dist/design-system/p-b04b22c6.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
- package/dist/design-system/p-f60cc7be.entry.js +0 -1
- package/dist/esm/resolveColor-Ce0cmS4R.js +0 -268
- package/dist/esm/sd-calendar.entry.js +0 -141
- package/dist/esm/sd-date-picker-calendar_2.entry.js +0 -211
- package/dist/esm/sd-date-picker.config-B6cqMQaM.js +0 -171
- package/dist/esm/useDatePicker-DTrMR0rx.js +0 -45
- package/dist/types/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.d.ts +0 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var component_table = require('./component.table-
|
|
3
|
+
var component_table = require('./component.table-CMqGfEui.js');
|
|
4
4
|
var system = require('./system-VmZRYp6V.js');
|
|
5
5
|
|
|
6
6
|
// ── Header Tokens ──
|
|
@@ -26,7 +26,13 @@ const TABLE_HEADER_RESIZING_BAR = {
|
|
|
26
26
|
// ── Body Tokens ──
|
|
27
27
|
const TABLE_BODY_LAYOUT = {
|
|
28
28
|
default: {
|
|
29
|
-
height: component_table.tableTokens.table.body.default.height
|
|
29
|
+
height: component_table.tableTokens.table.body.default.height,
|
|
30
|
+
paddingY: component_table.tableTokens.table.body.default.paddingY,
|
|
31
|
+
},
|
|
32
|
+
dense: {
|
|
33
|
+
height: component_table.tableTokens.table.body.dense.height,
|
|
34
|
+
paddingY: component_table.tableTokens.table.body.dense.paddingY,
|
|
35
|
+
},
|
|
30
36
|
paddingX: component_table.tableTokens.table.body.paddingX};
|
|
31
37
|
const TABLE_BODY_TYPOGRAPHY = {
|
|
32
38
|
fontFamily: component_table.tableTokens.table.body.typography.fontFamily,
|
|
@@ -40,6 +46,10 @@ const TABLE_BORDER = {
|
|
|
40
46
|
color: component_table.tableTokens.table.border.color,
|
|
41
47
|
width: component_table.tableTokens.table.border.width,
|
|
42
48
|
};
|
|
49
|
+
const TABLE_SEPARATOR = {
|
|
50
|
+
color: component_table.tableTokens.table.separator.color,
|
|
51
|
+
width: component_table.tableTokens.table.separator.Width,
|
|
52
|
+
};
|
|
43
53
|
const TABLE_RADIUS = component_table.tableTokens.table.radius;
|
|
44
54
|
// ── Header Icon Color Defaults ──
|
|
45
55
|
const ICON_DEFAULT_COLOR = {
|
|
@@ -61,5 +71,6 @@ exports.TABLE_HEADER_LAYOUT = TABLE_HEADER_LAYOUT;
|
|
|
61
71
|
exports.TABLE_HEADER_RESIZING_BAR = TABLE_HEADER_RESIZING_BAR;
|
|
62
72
|
exports.TABLE_HEADER_TYPOGRAPHY = TABLE_HEADER_TYPOGRAPHY;
|
|
63
73
|
exports.TABLE_RADIUS = TABLE_RADIUS;
|
|
74
|
+
exports.TABLE_SEPARATOR = TABLE_SEPARATOR;
|
|
64
75
|
exports.resolveSortIconName = resolveSortIconName;
|
|
65
76
|
exports.resolveTableIconColor = resolveTableIconColor;
|
|
@@ -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: '880f1aa80c29f2d578ffe2d5e5e5e0c008c898d3', 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: '57f3c3f9ad53059fabff205cb44ffa3d1da9a711', 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: '3360f36d18f073cd24699b6b8db2e731fda351ac', 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: '7d51ea5f02ba2df099f4440be26c2f0be8a73a6b', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '9a6a634e2bcd206ec9099c6be738c3853d0cbebf' })));
|
|
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: '11d2153cc91818c1214e21ffa14bd08249ad1116', 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: '23972d53b4968c9bdef9b54dfa785e658ba117ef', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: '5e99a6c1151093929086ec4398b93d7db590d959', class: labelClassName }, this.label), this.useArrow && (index.h("span", { key: 'b814759278cefe229a5321556374438f281ce0f3', 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: 'dfe3286eaeef9a176f5ff1a69950713e2712a550', 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: 'bc3c9591b6453eed7df462841e29784c29b3aeef', 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: 'db3ffaf51dc96c39c05558017f25929c679a59df', 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: '92344f5bb95b0d4787591207f2e017d7dd177091', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '991db58b2cb019dd3a787e000e9d8813014bbb09', class: "sd-toast__icon" }, index.h("sd-icon", { key: '24d53cd77fdea82ec07663a8968493ec2b794751', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '70cfad4ef389cca798be9baeac99bfc41efcc615', class: "sd-toast__content" }, index.h("span", { key: '5927023435b17dc25ee07630fc4ae4568aadd9b9', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '410c024fd81ebcc78175c1855a86f590566d1a81', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: 'd85287e7ef796a11f850a0ce5cde87f5881fa5c9', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '55a6bf6457bd89254f6eb01072d46a0edbb8b510', 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: 'b16577aa25863a9dc337314d9059328799c1cd1e', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '6130825b74df8a573f4e062671fd694508759e82', 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
|
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var component_datepicker = require('./component.datepicker-Cw_-oidk.js');
|
|
4
|
+
|
|
5
|
+
const CALENDAR_LAYOUT = {
|
|
6
|
+
bg: component_datepicker.datepickerTokens.datepicker.calendar.bg,
|
|
7
|
+
paddingXY: component_datepicker.datepickerTokens.datepicker.calendar.paddingXY,
|
|
8
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.gap,
|
|
9
|
+
radius: component_datepicker.datepickerTokens.datepicker.calendar.radius,
|
|
10
|
+
header: {
|
|
11
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.header.gap,
|
|
12
|
+
divider: component_datepicker.datepickerTokens.datepicker.calendar.header.divider,
|
|
13
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
14
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
15
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
16
|
+
},
|
|
17
|
+
week: {
|
|
18
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
19
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
20
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
21
|
+
color: component_datepicker.datepickerTokens.datepicker.calendar.week.color,
|
|
22
|
+
},
|
|
23
|
+
grid: {
|
|
24
|
+
rowGap: component_datepicker.datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
25
|
+
},
|
|
26
|
+
day: {
|
|
27
|
+
size: component_datepicker.datepickerTokens.datepicker.calendar.day.width,
|
|
28
|
+
circleSize: component_datepicker.datepickerTokens.datepicker.calendar.day.circle.size,
|
|
29
|
+
circleRadius: component_datepicker.datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
30
|
+
defaultText: component_datepicker.datepickerTokens.datepicker.calendar.day.default.text,
|
|
31
|
+
hoverText: component_datepicker.datepickerTokens.datepicker.calendar.day.hover.text,
|
|
32
|
+
hoverBorder: component_datepicker.datepickerTokens.datepicker.calendar.day.hover.border,
|
|
33
|
+
selectBg: component_datepicker.datepickerTokens.datepicker.calendar.day.select.bg,
|
|
34
|
+
selectText: component_datepicker.datepickerTokens.datepicker.calendar.day.select.text,
|
|
35
|
+
disabledText: component_datepicker.datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
36
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
37
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
38
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
39
|
+
boldFontWeight: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
40
|
+
dot: {
|
|
41
|
+
size: component_datepicker.datepickerTokens.datepicker.calendar.day.dot.size,
|
|
42
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.day.dot.gap,
|
|
43
|
+
paddingY: component_datepicker.datepickerTokens.datepicker.calendar.day.dot.paddingY,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
legend: {
|
|
47
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.legend.typography.fontSize,
|
|
48
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.legend.typography.lineHeight,
|
|
49
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.legend.typography.fontWeight,
|
|
50
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.legend.gap,
|
|
51
|
+
groupGap: component_datepicker.datepickerTokens.datepicker.calendar.legend.group.gap,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
55
|
+
|
|
56
|
+
const daysInMonth = (date) => {
|
|
57
|
+
const year = Number(date.split('-')[0]);
|
|
58
|
+
const month = Number(date.split('-')[1]);
|
|
59
|
+
const daysInMonth = new Date(year, month, 0).getDate(); // month에 0을 전달하면 전달의 마지막 날짜를 반환
|
|
60
|
+
return Array.from({ length: daysInMonth }, (_, i) => i + 1);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const getToday = () => {
|
|
64
|
+
const today = new Date();
|
|
65
|
+
const year = today.getFullYear();
|
|
66
|
+
const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
67
|
+
const day = String(today.getDate()).padStart(2, '0');
|
|
68
|
+
return `${year}-${month}-${day}`;
|
|
69
|
+
};
|
|
70
|
+
const today = getToday();
|
|
71
|
+
|
|
72
|
+
const useDatePicker = () => {
|
|
73
|
+
const formatDate = (year, month, day) => {
|
|
74
|
+
return `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
75
|
+
};
|
|
76
|
+
const createCalendar = (year, month) => {
|
|
77
|
+
const days = daysInMonth(`${year}-${String(month).padStart(2, '0')}-01`);
|
|
78
|
+
const firstDayIndex = new Date(year, month - 1, 1).getDay();
|
|
79
|
+
const prevMonthDays = Array.from({ length: firstDayIndex });
|
|
80
|
+
const remainingDays = (7 - ((days.length + firstDayIndex) % 7)) % 7;
|
|
81
|
+
const afterMonthDays = Array.from({ length: remainingDays });
|
|
82
|
+
return { days, prevMonthDays, afterMonthDays };
|
|
83
|
+
};
|
|
84
|
+
const calculateYearMonth = (year, month, type) => {
|
|
85
|
+
let newYear = year;
|
|
86
|
+
let newMonth = type === 'prev' ? month - 1 : month + 1;
|
|
87
|
+
if (newMonth < 1) {
|
|
88
|
+
newYear = year - 1;
|
|
89
|
+
newMonth = 12;
|
|
90
|
+
}
|
|
91
|
+
else if (newMonth > 12) {
|
|
92
|
+
newYear = year + 1;
|
|
93
|
+
newMonth = 1;
|
|
94
|
+
}
|
|
95
|
+
return { newYear, newMonth };
|
|
96
|
+
};
|
|
97
|
+
return { formatDate, createCalendar, calculateYearMonth };
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
exports.CALENDAR_LAYOUT = CALENDAR_LAYOUT;
|
|
101
|
+
exports.WEEK_LABELS = WEEK_LABELS;
|
|
102
|
+
exports.today = today;
|
|
103
|
+
exports.useDatePicker = useDatePicker;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"components/sd-calendar/sd-calendar.js",
|
|
4
3
|
"components/sd-checkbox/sd-checkbox.js",
|
|
5
4
|
"components/sd-date-box/sd-date-box.js",
|
|
6
5
|
"components/sd-date-range-picker/sd-date-range-picker.js",
|
|
@@ -16,6 +15,7 @@
|
|
|
16
15
|
"components/sd-ghost-button/sd-ghost-button.js",
|
|
17
16
|
"components/sd-badge/sd-badge.js",
|
|
18
17
|
"components/sd-barcode-input/sd-barcode-input.js",
|
|
18
|
+
"components/sd-calendar/sd-calendar.js",
|
|
19
19
|
"components/sd-card/sd-card.js",
|
|
20
20
|
"components/sd-chip/sd-chip.js",
|
|
21
21
|
"components/sd-circle-progress/sd-circle-progress.js",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"components/sd-tag/sd-tag.js",
|
|
25
25
|
"components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js",
|
|
26
26
|
"components/sd-date-picker/sd-date-picker.js",
|
|
27
|
-
"components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js",
|
|
28
27
|
"components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js",
|
|
29
28
|
"components/sd-portal/sd-portal.js",
|
|
30
29
|
"components/sd-field/sd-field.js",
|
|
@@ -39,7 +39,7 @@ export class SdActionModal {
|
|
|
39
39
|
if (this.height != null && this.height !== '') {
|
|
40
40
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
41
41
|
}
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '7b59ff655bb9f7a6bc79bb948201a6a532c16b06', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, h("header", { key: '3e141509dc7082e08f448043573de3a8bd8e7cf0', class: "sd-action-modal__header" }, h("h2", { key: 'ba80634b72ce1168d2ab3aec12bdf2a6546ff08d', class: "sd-action-modal__title" }, this.modalTitle), h("div", { key: 'aed32008f0dcaa2deec098ca3c0c9cb1e8f6fb50', class: "sd-action-modal__header-sub" }, h("slot", { key: '32a015a006cbcf26373c64a72e4131b878c53222', name: "header-sub-title" })), h("sd-ghost-button", { key: '574d14cf2d0031dbf43cbb5999d4471a235ca72a', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: '713761da4ad2217c1d762fd56bc391ddc5c9cded', class: "sd-action-modal__body" }, h("slot", { key: 'e224251b153d60cf35056b542c5d9925f4918b7f', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (h("footer", { key: '43d6e4ffed21704ac68689f0742f8d7a6456b0b6', class: "sd-action-modal__footer" }, h("div", { key: 'bd9cce1c5b1fb02156008a4e76c65dc8cb4385aa', class: "sd-action-modal__footer-sub" }, h("slot", { key: '4de818c9ba8fcdb159963b9c9c7ce893fa3216da', name: "bottom-sub-content" })), h("sd-button", { key: 'af9f4c1fd4c6bb482690c2545e0add53c308b95a', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "sd-action-modal"; }
|
|
45
45
|
static get originalStyleUrls() {
|
|
@@ -4,7 +4,7 @@ export class SdBadge {
|
|
|
4
4
|
color = 'blue';
|
|
5
5
|
render() {
|
|
6
6
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '9ae835aba8a4acde4b918eceda00441ee2c22905', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, h("div", { key: 'c3b648845b5c138026a82a6a2c483d2a56ed2aab', class: "sd-badge__dot" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "sd-badge"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -102,7 +102,7 @@ export class SdBarcodeInput {
|
|
|
102
102
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
103
103
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
104
104
|
};
|
|
105
|
-
return (h("sd-field", { key: '
|
|
105
|
+
return (h("sd-field", { key: '61eb9beceb57e58323c1477c71147607db834e71', 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, 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: '9d4fa219af76d29b2d2e8443af1e66b980d62dd1', class: "sd-barcode-input__content" }, h("slot", { key: '044bf2c4a6e79bb0d6b2a76398107b47d1237662', name: "prefix" }), h("input", { key: '2522d0ded40b69c76872877bede00b1e4e5260d2', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '8dc300df9f8bd7045f9c9e357925be3b7f2bdbb4', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '1b3cab2c7fe9caf973e7defff170f64b3fd35daa', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
106
106
|
if (this.disabled)
|
|
107
107
|
return;
|
|
108
108
|
this.internalValue = '';
|
|
@@ -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: '3caa9dff467ec7efa748eecd736296500a222ecb', 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: 'cded66e4802956c29064cbdcc12b9dd1066a45c3', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: 'b989e3eb8661e16f052d5c7a292ea316a2b821df', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: '07695896bd8f11ca8753dcb171b5c7f0e7304c0d', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: 'bfd18c0a390a955d8de99789c86ce39fb605beae', 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() {
|