@sellmate/design-system 1.2.0 → 1.4.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-CMqGfEui.js → component.table-qOFez3z3.js} +3 -0
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- 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 +270 -4
- package/dist/cjs/sd-calendar_2.cjs.entry.js +263 -0
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-box.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-picker.config-D3lTpa6W.js +37 -0
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +15 -13
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +37 -37
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-field_3.cjs.entry.js +7 -7
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +27 -36
- package/dist/cjs/sd-popover.cjs.entry.js +3 -3
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +25 -27
- package/dist/cjs/{sd-table.config-BIpldZtw.js → sd-table.config-B7psrvV4.js} +4 -2
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +18 -9
- package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.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 +2 -2
- package/dist/collection/components/sd-calendar/sd-calendar.config.js +51 -0
- package/dist/collection/components/sd-calendar/sd-calendar.css +136 -73
- package/dist/collection/components/sd-calendar/sd-calendar.js +173 -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 +1 -1
- 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 +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.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 +1 -1
- 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 +2 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-form/sd-form.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- 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-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +4 -4
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +24 -26
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +18 -9
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +6 -2
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +16 -25
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.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/components/p-BDVrZ5mV.js +1 -0
- package/dist/components/{p-BY1LGlfc.js → p-BFC3Etk2.js} +1 -1
- package/dist/components/p-BQn6le_Y.js +1 -0
- package/dist/components/{p-nOCYbyW4.js → p-BRk9YZBe.js} +1 -1
- package/dist/components/{p-Jts7ueOa.js → p-BRxXhFqt.js} +1 -1
- package/dist/components/{p-Cktiasfd.js → p-BSfu4DO2.js} +1 -1
- package/dist/components/{p-B3D43x7F.js → p-BZabVWBD.js} +1 -1
- package/dist/components/{p-BsM-fwYd.js → p-BeBiPTbd.js} +1 -1
- package/dist/components/{p-Dl8TIEQu.js → p-BjpbUGud.js} +1 -1
- package/dist/components/{p-DL1ac1QS.js → p-Bs1Z5QtN.js} +1 -1
- package/dist/components/{p-teN3CfOr.js → p-BwPmM1Pm.js} +1 -1
- package/dist/components/{p-DBFgk0rX.js → p-C3fqSH7A.js} +1 -1
- package/dist/components/p-CETxX4-M.js +1 -0
- package/dist/components/{p-D0Jiw-Zk.js → p-CIUE4qr7.js} +1 -1
- package/dist/components/{p-BXCyVrle.js → p-CLxVZFEG.js} +1 -1
- package/dist/components/{p-B-sK7I83.js → p-CpgTSxf0.js} +1 -1
- package/dist/components/p-Cx_d5vsS.js +1 -0
- package/dist/components/{p-CQI40kiY.js → p-CyObYB-g.js} +1 -1
- package/dist/components/{p-DFLCjX1a.js → p-D7nYP2a4.js} +1 -1
- package/dist/components/p-DQFHAKL_.js +1 -0
- package/dist/components/{p-wCNRlKLa.js → p-DS7Ypvt5.js} +1 -1
- package/dist/components/{p-CsVAx6KV.js → p-Da5i_Sa6.js} +1 -1
- package/dist/components/p-DiP0LJGq.js +1 -0
- package/dist/components/{p-CdOHomUp.js → p-DlREBZ-C.js} +1 -1
- package/dist/components/p-DnW8EAqd.js +1 -0
- package/dist/components/{p-C5CH-s6a.js → p-DwgaMhOM.js} +1 -1
- package/dist/components/p-DykVq5VY.js +1 -0
- package/dist/components/{p-BorUSgEK.js → p-FKKk7Bk8.js} +1 -1
- package/dist/components/{p-CRL7TjSB.js → p-INdVvadB.js} +1 -1
- package/dist/components/p-JlZdKw4C.js +1 -0
- package/dist/components/{p-C7WLft_0.js → p-VuxN5d2D.js} +1 -1
- package/dist/components/{p-u8teDaMa.js → p-X-8I-A3g.js} +1 -1
- package/dist/components/{p-arZfxxPn.js → p-Z5Vk33zf.js} +1 -1
- package/dist/components/{p-BAcmO7w0.js → p-kSfaCwf1.js} +1 -1
- package/dist/components/p-oyZgWRnC.js +1 -0
- package/dist/components/{p-2wB9cing.js → p-t161LJqb.js} +1 -1
- package/dist/components/{p-CK9ciBIR.js → p-wOAxmZ1V.js} +1 -1
- package/dist/components/{p-B7mpdnNl.js → p-xX3QT-8K.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-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.esm.js +1 -1
- package/dist/design-system/{p-1baa05ae.entry.js → p-00b2c850.entry.js} +1 -1
- package/dist/design-system/{p-8f22106e.entry.js → p-03badf68.entry.js} +1 -1
- package/dist/design-system/{p-f4d73a0c.entry.js → p-11b904a3.entry.js} +1 -1
- package/dist/design-system/p-29fd86d8.entry.js +1 -0
- package/dist/design-system/{p-78cc0289.entry.js → p-32e2d71e.entry.js} +1 -1
- package/dist/design-system/p-36d744fb.entry.js +1 -0
- package/dist/design-system/{p-a6545130.entry.js → p-399d416c.entry.js} +1 -1
- package/dist/design-system/{p-e2334c1c.entry.js → p-3b8954d9.entry.js} +1 -1
- package/dist/design-system/{p-fe0a5368.entry.js → p-42f7febe.entry.js} +1 -1
- package/dist/design-system/{p-435ae69e.entry.js → p-481e6934.entry.js} +1 -1
- package/dist/design-system/{p-501fae20.entry.js → p-4a91875c.entry.js} +1 -1
- package/dist/design-system/p-522d1481.entry.js +1 -0
- package/dist/design-system/{p-b3c144ff.entry.js → p-679bce6c.entry.js} +1 -1
- package/dist/design-system/{p-5705e6d6.entry.js → p-74bf0ed9.entry.js} +1 -1
- package/dist/design-system/{p-87c868c3.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-d3212544.entry.js → p-9b9bf9db.entry.js} +1 -1
- package/dist/design-system/{p-2c63404f.entry.js → p-9f7f1b8b.entry.js} +1 -1
- package/dist/design-system/p-BGtUaScP.js +1 -0
- package/dist/design-system/p-BQn6le_Y.js +1 -0
- package/dist/design-system/p-DQFHAKL_.js +1 -0
- package/dist/design-system/p-DykVq5VY.js +1 -0
- package/dist/design-system/p-TF8_Lyhq.js +1 -0
- package/dist/design-system/{p-100f5887.entry.js → p-a640e509.entry.js} +1 -1
- package/dist/design-system/{p-b0aad445.entry.js → p-a71d4947.entry.js} +1 -1
- package/dist/design-system/{p-fc973500.entry.js → p-a7ea1cf0.entry.js} +1 -1
- package/dist/design-system/{p-44d05570.entry.js → p-a97033a2.entry.js} +1 -1
- package/dist/design-system/{p-ae2d45a2.entry.js → p-a98f9a29.entry.js} +1 -1
- package/dist/design-system/{p-de8bb9ba.entry.js → p-ae117afa.entry.js} +1 -1
- package/dist/design-system/{p-5cbaf1db.entry.js → p-c7099e9e.entry.js} +1 -1
- package/dist/design-system/{p-8ee990bd.entry.js → p-cc97f4b4.entry.js} +1 -1
- package/dist/design-system/{p-04fdb4b1.entry.js → p-d39e515d.entry.js} +1 -1
- package/dist/design-system/{p-5ed0becf.entry.js → p-d890a680.entry.js} +1 -1
- package/dist/design-system/{p-d30c823e.entry.js → p-dbeaeb31.entry.js} +1 -1
- package/dist/design-system/{p-5f1c39b8.entry.js → p-e23dac79.entry.js} +1 -1
- package/dist/design-system/{p-857c44e8.entry.js → p-e611dcd4.entry.js} +1 -1
- package/dist/design-system/{p-77690440.entry.js → p-e8e64511.entry.js} +1 -1
- package/dist/design-system/{p-0fe603a4.entry.js → p-e902a3f4.entry.js} +1 -1
- package/dist/design-system/{p-18c5ae1a.entry.js → p-f7074386.entry.js} +1 -1
- package/dist/design-system/{p-caee95b0.entry.js → p-fc5c4f85.entry.js} +1 -1
- package/dist/design-system/{p-43e97572.entry.js → p-fe3ae346.entry.js} +1 -1
- package/dist/esm/component.datepicker-BQn6le_Y.js +119 -0
- package/dist/esm/{component.table-BnfUIhUj.js → component.table-DQFHAKL_.js} +3 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- 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 +269 -3
- package/dist/esm/sd-calendar_2.entry.js +260 -0
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +3 -3
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-box.entry.js +2 -2
- package/dist/esm/sd-date-picker.config-CGEE3DkI.js +34 -0
- package/dist/esm/sd-date-picker_7.entry.js +15 -13
- package/dist/esm/sd-date-range-picker-calendar.entry.js +10 -10
- package/dist/esm/sd-dropdown-button.entry.js +3 -3
- package/dist/esm/sd-field_3.entry.js +7 -7
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +2 -2
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-key-value-table.entry.js +1 -1
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +27 -36
- package/dist/esm/sd-popover.entry.js +3 -3
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/{sd-table.config-B-VgXXT7.js → sd-table.config-DU7Pc6YH.js} +4 -2
- package/dist/esm/sd-table.entry.js +25 -27
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +18 -9
- package/dist/esm/sd-text-link.entry.js +3 -3
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.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-table/sd-table.d.ts +1 -1
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +2 -2
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +1 -2
- package/dist/types/components.d.ts +6 -52
- package/dist/types/index.d.ts +4 -3
- package/hydrate/index.js +1035 -1110
- package/hydrate/index.mjs +1035 -1110
- 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 -219
- 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-B6cqMQaM.js +0 -1
- package/dist/components/p-BL0ZcHK8.js +0 -1
- package/dist/components/p-Bm3W_eBv.js +0 -1
- package/dist/components/p-BnfUIhUj.js +0 -1
- package/dist/components/p-Ch5Yu1qd.js +0 -1
- package/dist/components/p-D5F7wCNo.js +0 -1
- package/dist/components/p-DTrMR0rx.js +0 -1
- package/dist/components/p-DeQcDHpn.js +0 -1
- package/dist/components/p-DfK4DiDI.js +0 -1
- package/dist/components/p-DyAnn9ea.js +0 -1
- package/dist/components/p-mmdt-WnS.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-05611ff7.entry.js +0 -1
- package/dist/design-system/p-2a1ef965.entry.js +0 -1
- package/dist/design-system/p-66af0ba0.entry.js +0 -1
- package/dist/design-system/p-790165f8.entry.js +0 -1
- package/dist/design-system/p-80466582.entry.js +0 -1
- package/dist/design-system/p-8db7d8f2.entry.js +0 -1
- package/dist/design-system/p-B6cqMQaM.js +0 -1
- package/dist/design-system/p-BnfUIhUj.js +0 -1
- package/dist/design-system/p-Ce0cmS4R.js +0 -1
- package/dist/design-system/p-DTrMR0rx.js +0 -1
- package/dist/design-system/p-d8c41313.entry.js +0 -1
- package/dist/design-system/p-mmdt-WnS.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 -216
- 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
|
@@ -27,11 +27,13 @@ const SdTd = class {
|
|
|
27
27
|
this.syncSlotName();
|
|
28
28
|
this.syncSpanRegistration();
|
|
29
29
|
this.syncCellClassRegistration(oldField);
|
|
30
|
+
this.syncUseFrameRegistration(oldField);
|
|
30
31
|
}
|
|
31
32
|
handleRowKeyChange(_newKey, oldKey) {
|
|
32
33
|
this.syncSlotName();
|
|
33
34
|
this.syncSpanRegistration();
|
|
34
35
|
this.syncCellClassRegistration(undefined, oldKey);
|
|
36
|
+
this.syncUseFrameRegistration(undefined, oldKey);
|
|
35
37
|
}
|
|
36
38
|
handleSpanChange() {
|
|
37
39
|
this.syncSpanRegistration();
|
|
@@ -42,15 +44,15 @@ const SdTd = class {
|
|
|
42
44
|
handleDividerChange() {
|
|
43
45
|
this.syncCellClassRegistration();
|
|
44
46
|
}
|
|
45
|
-
|
|
46
|
-
this.
|
|
47
|
+
handleUseFrameChange() {
|
|
48
|
+
this.syncUseFrameRegistration();
|
|
47
49
|
this.requestParentTrUpdate();
|
|
48
50
|
}
|
|
49
51
|
componentWillLoad() {
|
|
50
52
|
this.syncSlotName();
|
|
51
53
|
this.syncSpanRegistration();
|
|
52
54
|
this.syncCellClassRegistration();
|
|
53
|
-
this.
|
|
55
|
+
this.syncUseFrameRegistration();
|
|
54
56
|
// slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
|
|
55
57
|
const parentTr = this.el.parentElement;
|
|
56
58
|
if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
|
|
@@ -61,7 +63,7 @@ const SdTd = class {
|
|
|
61
63
|
this.syncSlotName();
|
|
62
64
|
this.syncSpanRegistration();
|
|
63
65
|
this.syncCellClassRegistration();
|
|
64
|
-
this.
|
|
66
|
+
this.syncUseFrameRegistration();
|
|
65
67
|
}
|
|
66
68
|
// React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
|
|
67
69
|
// 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
|
|
@@ -69,7 +71,7 @@ const SdTd = class {
|
|
|
69
71
|
connectedCallback() {
|
|
70
72
|
this.syncSpanRegistration();
|
|
71
73
|
this.syncCellClassRegistration();
|
|
72
|
-
this.
|
|
74
|
+
this.syncUseFrameRegistration();
|
|
73
75
|
}
|
|
74
76
|
disconnectedCallback() {
|
|
75
77
|
const table = this.findTable();
|
|
@@ -126,9 +128,16 @@ const SdTd = class {
|
|
|
126
128
|
table.registerCellClassSync(String(this.rowKey), this.field, combinedClass);
|
|
127
129
|
this.requestParentTrUpdate();
|
|
128
130
|
}
|
|
129
|
-
|
|
131
|
+
syncUseFrameRegistration(prevField, prevRowKey) {
|
|
130
132
|
const table = this.findTable();
|
|
131
|
-
if (!table
|
|
133
|
+
if (!table)
|
|
134
|
+
return;
|
|
135
|
+
const oldField = prevField ?? this.field;
|
|
136
|
+
const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
|
|
137
|
+
if (oldField !== '' && oldRowKey != null) {
|
|
138
|
+
table.unregisterUseFrameSync?.(oldRowKey, oldField);
|
|
139
|
+
}
|
|
140
|
+
if (this.field === '' || this.rowKey == null)
|
|
132
141
|
return;
|
|
133
142
|
if (this.useFrame) {
|
|
134
143
|
table.registerUseFrameSync?.(String(this.rowKey), this.field);
|
|
@@ -149,7 +158,7 @@ const SdTd = class {
|
|
|
149
158
|
}
|
|
150
159
|
}
|
|
151
160
|
render() {
|
|
152
|
-
return (index.h(index.Host, { key: '
|
|
161
|
+
return (index.h(index.Host, { key: '505b602b609050870e7e80df9157dbc50d0cb8c1', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '9910f02d98ce5e115b2a380954dd0a994f9f1c12' })));
|
|
153
162
|
}
|
|
154
163
|
static get watchers() { return {
|
|
155
164
|
"field": [{
|
|
@@ -174,7 +183,7 @@ const SdTd = class {
|
|
|
174
183
|
"handleDividerChange": 0
|
|
175
184
|
}],
|
|
176
185
|
"useFrame": [{
|
|
177
|
-
"
|
|
186
|
+
"handleUseFrameChange": 0
|
|
178
187
|
}]
|
|
179
188
|
}; }
|
|
180
189
|
};
|
|
@@ -76,7 +76,7 @@ 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
82
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -84,13 +84,13 @@ const SdTextLink = class {
|
|
|
84
84
|
e.preventDefault();
|
|
85
85
|
this.handleClick();
|
|
86
86
|
}
|
|
87
|
-
} }, this.icon && (index.h("sd-icon", { key: '
|
|
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: {
|
|
88
88
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
89
89
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
90
90
|
display: 'inline-flex',
|
|
91
91
|
alignItems: 'center',
|
|
92
92
|
justifyContent: 'center',
|
|
93
|
-
} }, index.h("sd-icon", { key: '
|
|
93
|
+
} }, index.h("sd-icon", { key: 'dfe3286eaeef9a176f5ff1a69950713e2712a550', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -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: () => {
|
|
@@ -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();
|
|
@@ -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();
|
|
@@ -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 = '';
|
|
@@ -69,13 +69,13 @@ export class SdButton {
|
|
|
69
69
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
70
70
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
71
71
|
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
72
|
-
return (h("button", { key: '
|
|
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: {
|
|
73
73
|
'--sd-button-bg': config.color,
|
|
74
74
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
75
75
|
'--sd-button-border': PRESET_BORDER_COLORS[preset],
|
|
76
76
|
'--sd-button-content': PRESET_CONTENT_COLORS[preset],
|
|
77
77
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
78
|
-
}, 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)" })))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "sd-button"; }
|
|
81
81
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import datepickerTokens from "../../tokens/generated/component.datepicker.json";
|
|
2
|
+
export const CALENDAR_LAYOUT = {
|
|
3
|
+
bg: datepickerTokens.datepicker.calendar.bg,
|
|
4
|
+
paddingXY: datepickerTokens.datepicker.calendar.paddingXY,
|
|
5
|
+
gap: datepickerTokens.datepicker.calendar.gap,
|
|
6
|
+
radius: datepickerTokens.datepicker.calendar.radius,
|
|
7
|
+
header: {
|
|
8
|
+
gap: datepickerTokens.datepicker.calendar.header.gap,
|
|
9
|
+
divider: datepickerTokens.datepicker.calendar.header.divider,
|
|
10
|
+
fontSize: datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
11
|
+
lineHeight: datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
12
|
+
fontWeight: datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
13
|
+
},
|
|
14
|
+
week: {
|
|
15
|
+
fontSize: datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
16
|
+
lineHeight: datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
17
|
+
fontWeight: datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
18
|
+
color: datepickerTokens.datepicker.calendar.week.color,
|
|
19
|
+
},
|
|
20
|
+
grid: {
|
|
21
|
+
rowGap: datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
22
|
+
},
|
|
23
|
+
day: {
|
|
24
|
+
size: datepickerTokens.datepicker.calendar.day.width,
|
|
25
|
+
circleSize: datepickerTokens.datepicker.calendar.day.circle.size,
|
|
26
|
+
circleRadius: datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
27
|
+
defaultText: datepickerTokens.datepicker.calendar.day.default.text,
|
|
28
|
+
hoverText: datepickerTokens.datepicker.calendar.day.hover.text,
|
|
29
|
+
hoverBorder: datepickerTokens.datepicker.calendar.day.hover.border,
|
|
30
|
+
selectBg: datepickerTokens.datepicker.calendar.day.select.bg,
|
|
31
|
+
selectText: datepickerTokens.datepicker.calendar.day.select.text,
|
|
32
|
+
disabledText: datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
33
|
+
fontSize: datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
34
|
+
lineHeight: datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
35
|
+
fontWeight: datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
36
|
+
boldFontWeight: datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
37
|
+
dot: {
|
|
38
|
+
size: datepickerTokens.datepicker.calendar.day.dot.size,
|
|
39
|
+
gap: datepickerTokens.datepicker.calendar.day.dot.gap,
|
|
40
|
+
paddingY: datepickerTokens.datepicker.calendar.day.dot.paddingY,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
legend: {
|
|
44
|
+
fontSize: datepickerTokens.datepicker.calendar.legend.typography.fontSize,
|
|
45
|
+
lineHeight: datepickerTokens.datepicker.calendar.legend.typography.lineHeight,
|
|
46
|
+
fontWeight: datepickerTokens.datepicker.calendar.legend.typography.fontWeight,
|
|
47
|
+
gap: datepickerTokens.datepicker.calendar.legend.gap,
|
|
48
|
+
groupGap: datepickerTokens.datepicker.calendar.legend.group.gap,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
@@ -1,106 +1,169 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
border-radius: 8px;
|
|
5
|
-
padding: 24px 19px;
|
|
6
|
-
background: white;
|
|
1
|
+
sd-calendar {
|
|
2
|
+
display: block;
|
|
7
3
|
}
|
|
8
|
-
|
|
4
|
+
sd-calendar .sd-calendar {
|
|
9
5
|
display: flex;
|
|
10
|
-
flex-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
padding:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--calendar-gap);
|
|
8
|
+
width: 328px;
|
|
9
|
+
min-height: 328px;
|
|
10
|
+
padding: var(--calendar-padding);
|
|
11
|
+
background: var(--calendar-bg);
|
|
12
|
+
border-radius: var(--calendar-radius);
|
|
13
|
+
box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.2);
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
sd-calendar .sd-calendar__header {
|
|
20
17
|
display: flex;
|
|
21
|
-
flex-flow: row nowrap;
|
|
22
18
|
align-items: center;
|
|
23
|
-
|
|
19
|
+
justify-content: center;
|
|
20
|
+
gap: var(--calendar-header-gap);
|
|
21
|
+
font-size: var(--calendar-header-font-size);
|
|
22
|
+
line-height: var(--calendar-header-line-height);
|
|
23
|
+
font-weight: var(--calendar-header-font-weight);
|
|
24
|
+
color: var(--calendar-day-text);
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
margin: 0;
|
|
31
|
-
padding: 0;
|
|
26
|
+
sd-calendar .sd-calendar__nav-group {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--calendar-gap);
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
width:
|
|
35
|
-
text-align: center;
|
|
31
|
+
sd-calendar .sd-calendar__nav-group-month {
|
|
32
|
+
width: 100%;
|
|
36
33
|
}
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
sd-calendar .sd-calendar__label {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
min-width: 40px;
|
|
39
39
|
text-align: center;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
sd-calendar .sd-calendar__label-month {
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
sd-calendar .sd-calendar__divider {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
width: 1px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
background: var(--calendar-header-divider);
|
|
49
|
+
}
|
|
50
|
+
sd-calendar .sd-calendar__week {
|
|
43
51
|
display: grid;
|
|
44
|
-
grid-template-columns: repeat(7,
|
|
45
|
-
column-gap: 10px;
|
|
46
|
-
padding: 0 5px;
|
|
52
|
+
grid-template-columns: repeat(7, var(--calendar-day-size));
|
|
47
53
|
}
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
sd-calendar .sd-calendar__week-cell {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
50
58
|
height: 20px;
|
|
51
|
-
font-size:
|
|
52
|
-
line-height:
|
|
53
|
-
|
|
54
|
-
color:
|
|
59
|
+
font-size: var(--calendar-week-font-size);
|
|
60
|
+
line-height: var(--calendar-week-line-height);
|
|
61
|
+
font-weight: var(--calendar-week-font-weight);
|
|
62
|
+
color: var(--calendar-week-color);
|
|
55
63
|
}
|
|
56
|
-
|
|
57
|
-
margin-top: 12px;
|
|
64
|
+
sd-calendar .sd-calendar__grid {
|
|
58
65
|
display: grid;
|
|
59
|
-
grid-template-columns: repeat(7,
|
|
60
|
-
|
|
66
|
+
grid-template-columns: repeat(7, var(--calendar-day-size));
|
|
67
|
+
row-gap: var(--calendar-grid-row-gap);
|
|
61
68
|
}
|
|
62
|
-
|
|
63
|
-
display: flex;
|
|
69
|
+
sd-calendar .sd-calendar__day {
|
|
70
|
+
display: inline-flex;
|
|
64
71
|
flex-direction: column;
|
|
65
72
|
align-items: center;
|
|
73
|
+
justify-content: flex-start;
|
|
74
|
+
width: var(--calendar-day-size);
|
|
75
|
+
min-height: var(--calendar-day-circle-size);
|
|
76
|
+
padding: 0;
|
|
77
|
+
border: none;
|
|
78
|
+
background: transparent;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
font-size: var(--calendar-day-font-size);
|
|
81
|
+
line-height: var(--calendar-day-line-height);
|
|
82
|
+
font-weight: var(--calendar-day-font-weight);
|
|
83
|
+
color: var(--calendar-day-text);
|
|
66
84
|
}
|
|
67
|
-
|
|
85
|
+
sd-calendar .sd-calendar__day-circle {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
width: var(--calendar-day-circle-size);
|
|
90
|
+
height: var(--calendar-day-circle-size);
|
|
91
|
+
border-radius: calc(var(--calendar-day-circle-radius) * 1px);
|
|
92
|
+
border: 1px solid transparent;
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
}
|
|
95
|
+
sd-calendar .sd-calendar__day:not(:disabled):hover .sd-calendar__day-circle {
|
|
96
|
+
border-radius: 16px;
|
|
97
|
+
border: 1px solid var(--calendar-day-hover-border);
|
|
98
|
+
}
|
|
99
|
+
sd-calendar .sd-calendar__day--today .sd-calendar__day-circle {
|
|
100
|
+
font-weight: 700;
|
|
101
|
+
}
|
|
102
|
+
sd-calendar .sd-calendar__day--selected .sd-calendar__day-circle {
|
|
103
|
+
border-radius: 16px;
|
|
104
|
+
background: var(--calendar-day-select-bg);
|
|
105
|
+
color: var(--calendar-day-select-text);
|
|
106
|
+
}
|
|
107
|
+
sd-calendar .sd-calendar__day--selected:not(:disabled):hover .sd-calendar__day-circle {
|
|
108
|
+
background: var(--calendar-day-select-bg);
|
|
109
|
+
color: var(--calendar-day-select-text);
|
|
110
|
+
}
|
|
111
|
+
sd-calendar .sd-calendar__day--disabled {
|
|
112
|
+
color: var(--calendar-day-disabled-text);
|
|
113
|
+
background: none !important;
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
}
|
|
116
|
+
sd-calendar .sd-calendar__day--empty {
|
|
117
|
+
visibility: hidden;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
sd-calendar .sd-calendar__dot-row {
|
|
68
121
|
display: flex;
|
|
69
122
|
flex-wrap: wrap;
|
|
70
|
-
gap: 2px;
|
|
71
123
|
justify-content: center;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
124
|
+
gap: var(--calendar-day-dot-gap);
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
width: 100%;
|
|
127
|
+
min-height: 14px;
|
|
128
|
+
padding-top: var(--calendar-day-dot-padding-y);
|
|
129
|
+
padding-bottom: var(--calendar-day-dot-padding-y);
|
|
75
130
|
}
|
|
76
|
-
|
|
77
|
-
width: 5px;
|
|
78
|
-
height: 5px;
|
|
79
|
-
border-radius: 50%;
|
|
131
|
+
sd-calendar .sd-calendar__dot {
|
|
80
132
|
display: inline-block;
|
|
133
|
+
width: var(--calendar-day-dot-size);
|
|
134
|
+
height: var(--calendar-day-dot-size);
|
|
135
|
+
border-radius: 50%;
|
|
81
136
|
}
|
|
82
|
-
|
|
137
|
+
sd-calendar .sd-calendar__divider-bottom {
|
|
138
|
+
display: block;
|
|
139
|
+
width: 100%;
|
|
140
|
+
height: 1px;
|
|
141
|
+
background: var(--calendar-header-divider);
|
|
142
|
+
}
|
|
143
|
+
sd-calendar .sd-calendar__legend {
|
|
83
144
|
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
84
147
|
flex-wrap: wrap;
|
|
85
|
-
gap:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
148
|
+
column-gap: var(--calendar-legend-group-gap);
|
|
149
|
+
row-gap: 4px;
|
|
150
|
+
font-size: var(--calendar-legend-font-size);
|
|
151
|
+
line-height: var(--calendar-legend-line-height);
|
|
152
|
+
font-weight: var(--calendar-legend-font-weight);
|
|
153
|
+
color: var(--calendar-day-text);
|
|
89
154
|
}
|
|
90
|
-
|
|
91
|
-
display: flex;
|
|
155
|
+
sd-calendar .sd-calendar__legend-item {
|
|
156
|
+
display: inline-flex;
|
|
92
157
|
align-items: center;
|
|
93
|
-
gap:
|
|
158
|
+
gap: var(--calendar-legend-gap);
|
|
94
159
|
}
|
|
95
|
-
|
|
96
|
-
width: 6px;
|
|
97
|
-
height: 6px;
|
|
98
|
-
border-radius: 50%;
|
|
160
|
+
sd-calendar .sd-calendar__legend-dot {
|
|
99
161
|
display: inline-block;
|
|
162
|
+
width: var(--calendar-day-dot-size);
|
|
163
|
+
height: var(--calendar-day-dot-size);
|
|
164
|
+
border-radius: 50%;
|
|
100
165
|
flex-shrink: 0;
|
|
101
166
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
color: #888888;
|
|
105
|
-
line-height: 1;
|
|
167
|
+
sd-calendar .sd-calendar__legend-label {
|
|
168
|
+
display: inline-block;
|
|
106
169
|
}
|