@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
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
const datepicker = {
|
|
2
|
-
sm: {
|
|
3
|
-
height: "28",
|
|
4
|
-
paddingX: "12",
|
|
5
|
-
gap: "8",
|
|
6
|
-
icon: "16",
|
|
7
|
-
typography: {
|
|
8
|
-
fontWeight: "400",
|
|
9
|
-
fontSize: "12",
|
|
10
|
-
lineHeight: "20"},
|
|
11
|
-
radius: "4"
|
|
12
|
-
},
|
|
13
|
-
md: {
|
|
14
|
-
height: "36",
|
|
15
|
-
paddingX: "16",
|
|
16
|
-
gap: "12",
|
|
17
|
-
icon: "20",
|
|
18
|
-
typography: {
|
|
19
|
-
fontWeight: "400",
|
|
20
|
-
fontSize: "14",
|
|
21
|
-
lineHeight: "24"
|
|
22
|
-
},
|
|
23
|
-
radius: "6"
|
|
24
|
-
},
|
|
25
|
-
border: {
|
|
26
|
-
"default": "#AAAAAA",
|
|
27
|
-
focus: "#0075FF"},
|
|
28
|
-
bg: {
|
|
29
|
-
"default": "#FFFFFF"},
|
|
30
|
-
icon: {
|
|
31
|
-
"default": "#888888",
|
|
32
|
-
disabled: "#BBBBBB"
|
|
33
|
-
},
|
|
34
|
-
text: {
|
|
35
|
-
"default": "#222222",
|
|
36
|
-
hint: "#555555",
|
|
37
|
-
disabled: "#888888"
|
|
38
|
-
},
|
|
39
|
-
calendar: {
|
|
40
|
-
bg: "#FFFFFF",
|
|
41
|
-
paddingXY: "24",
|
|
42
|
-
gap: "12",
|
|
43
|
-
radius: "8",
|
|
44
|
-
header: {
|
|
45
|
-
gap: "8",
|
|
46
|
-
divider: "#E1E1E1",
|
|
47
|
-
typography: {
|
|
48
|
-
fontWeight: "500",
|
|
49
|
-
fontSize: "14",
|
|
50
|
-
lineHeight: "24"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
week: {
|
|
54
|
-
typography: {
|
|
55
|
-
fontWeight: "400",
|
|
56
|
-
fontSize: "12",
|
|
57
|
-
lineHeight: "20"},
|
|
58
|
-
color: "#888888"
|
|
59
|
-
},
|
|
60
|
-
grid: {
|
|
61
|
-
rowGap: "4"
|
|
62
|
-
},
|
|
63
|
-
day: {
|
|
64
|
-
width: "40",
|
|
65
|
-
circle: {
|
|
66
|
-
size: "32",
|
|
67
|
-
radius: "9999"
|
|
68
|
-
},
|
|
69
|
-
"default": {
|
|
70
|
-
text: "#222222"
|
|
71
|
-
},
|
|
72
|
-
hover: {
|
|
73
|
-
text: "#222222",
|
|
74
|
-
border: "#0075FF"
|
|
75
|
-
},
|
|
76
|
-
select: {
|
|
77
|
-
bg: "#0075FF",
|
|
78
|
-
text: "#FFFFFF"
|
|
79
|
-
},
|
|
80
|
-
disabled: {
|
|
81
|
-
text: "#BBBBBB"
|
|
82
|
-
},
|
|
83
|
-
typography: {
|
|
84
|
-
"default": {
|
|
85
|
-
fontWeight: "400",
|
|
86
|
-
fontSize: "14",
|
|
87
|
-
lineHeight: "24"
|
|
88
|
-
},
|
|
89
|
-
bold: {
|
|
90
|
-
fontWeight: "700"}
|
|
91
|
-
}},
|
|
92
|
-
range: {
|
|
93
|
-
bg: "#D9EAFF",
|
|
94
|
-
height: "32",
|
|
95
|
-
panelGap: "24",
|
|
96
|
-
divider: "#E1E1E1"}}
|
|
97
|
-
};
|
|
98
|
-
var datepickerTokens = {
|
|
99
|
-
datepicker: datepicker
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
const sm = datepickerTokens.datepicker.sm;
|
|
103
|
-
const md = datepickerTokens.datepicker.md;
|
|
104
|
-
const DATEPICKER_SIZE_MAP = {
|
|
105
|
-
sm: {
|
|
106
|
-
height: sm.height,
|
|
107
|
-
paddingX: sm.paddingX,
|
|
108
|
-
gap: sm.gap,
|
|
109
|
-
iconSize: sm.icon,
|
|
110
|
-
radius: sm.radius,
|
|
111
|
-
fontSize: sm.typography.fontSize,
|
|
112
|
-
lineHeight: sm.typography.lineHeight,
|
|
113
|
-
fontWeight: sm.typography.fontWeight,
|
|
114
|
-
},
|
|
115
|
-
md: {
|
|
116
|
-
height: md.height,
|
|
117
|
-
paddingX: md.paddingX,
|
|
118
|
-
gap: md.gap,
|
|
119
|
-
iconSize: md.icon,
|
|
120
|
-
radius: md.radius,
|
|
121
|
-
fontSize: md.typography.fontSize,
|
|
122
|
-
lineHeight: md.typography.lineHeight,
|
|
123
|
-
fontWeight: md.typography.fontWeight,
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
const DATEPICKER_COLORS = {
|
|
127
|
-
border: datepickerTokens.datepicker.border,
|
|
128
|
-
bg: datepickerTokens.datepicker.bg,
|
|
129
|
-
icon: datepickerTokens.datepicker.icon,
|
|
130
|
-
text: datepickerTokens.datepicker.text,
|
|
131
|
-
};
|
|
132
|
-
const CALENDAR_LAYOUT = {
|
|
133
|
-
bg: datepickerTokens.datepicker.calendar.bg,
|
|
134
|
-
paddingXY: datepickerTokens.datepicker.calendar.paddingXY,
|
|
135
|
-
gap: datepickerTokens.datepicker.calendar.gap,
|
|
136
|
-
radius: datepickerTokens.datepicker.calendar.radius,
|
|
137
|
-
header: {
|
|
138
|
-
gap: datepickerTokens.datepicker.calendar.header.gap,
|
|
139
|
-
divider: datepickerTokens.datepicker.calendar.header.divider,
|
|
140
|
-
fontSize: datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
141
|
-
lineHeight: datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
142
|
-
fontWeight: datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
143
|
-
},
|
|
144
|
-
week: {
|
|
145
|
-
fontSize: datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
146
|
-
lineHeight: datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
147
|
-
fontWeight: datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
148
|
-
color: datepickerTokens.datepicker.calendar.week.color,
|
|
149
|
-
},
|
|
150
|
-
grid: {
|
|
151
|
-
rowGap: datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
152
|
-
},
|
|
153
|
-
day: {
|
|
154
|
-
size: datepickerTokens.datepicker.calendar.day.width,
|
|
155
|
-
circleSize: datepickerTokens.datepicker.calendar.day.circle.size,
|
|
156
|
-
circleRadius: datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
157
|
-
defaultText: datepickerTokens.datepicker.calendar.day.default.text,
|
|
158
|
-
hoverText: datepickerTokens.datepicker.calendar.day.hover.text,
|
|
159
|
-
hoverBorder: datepickerTokens.datepicker.calendar.day.hover.border,
|
|
160
|
-
selectBg: datepickerTokens.datepicker.calendar.day.select.bg,
|
|
161
|
-
selectText: datepickerTokens.datepicker.calendar.day.select.text,
|
|
162
|
-
disabledText: datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
163
|
-
fontSize: datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
164
|
-
lineHeight: datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
165
|
-
fontWeight: datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
166
|
-
boldFontWeight: datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
167
|
-
},
|
|
168
|
-
};
|
|
169
|
-
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
170
|
-
|
|
171
|
-
export { CALENDAR_LAYOUT as C, DATEPICKER_COLORS as D, WEEK_LABELS as W, DATEPICKER_SIZE_MAP as a, datepickerTokens as d };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const daysInMonth = (date) => {
|
|
2
|
-
const year = Number(date.split('-')[0]);
|
|
3
|
-
const month = Number(date.split('-')[1]);
|
|
4
|
-
const daysInMonth = new Date(year, month, 0).getDate(); // month에 0을 전달하면 전달의 마지막 날짜를 반환
|
|
5
|
-
return Array.from({ length: daysInMonth }, (_, i) => i + 1);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const getToday = () => {
|
|
9
|
-
const today = new Date();
|
|
10
|
-
const year = today.getFullYear();
|
|
11
|
-
const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
12
|
-
const day = String(today.getDate()).padStart(2, '0');
|
|
13
|
-
return `${year}-${month}-${day}`;
|
|
14
|
-
};
|
|
15
|
-
const today = getToday();
|
|
16
|
-
|
|
17
|
-
const useDatePicker = () => {
|
|
18
|
-
const formatDate = (year, month, day) => {
|
|
19
|
-
return `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
20
|
-
};
|
|
21
|
-
const createCalendar = (year, month) => {
|
|
22
|
-
const days = daysInMonth(`${year}-${String(month).padStart(2, '0')}-01`);
|
|
23
|
-
const firstDayIndex = new Date(year, month - 1, 1).getDay();
|
|
24
|
-
const prevMonthDays = Array.from({ length: firstDayIndex });
|
|
25
|
-
const remainingDays = (7 - ((days.length + firstDayIndex) % 7)) % 7;
|
|
26
|
-
const afterMonthDays = Array.from({ length: remainingDays });
|
|
27
|
-
return { days, prevMonthDays, afterMonthDays };
|
|
28
|
-
};
|
|
29
|
-
const calculateYearMonth = (year, month, type) => {
|
|
30
|
-
let newYear = year;
|
|
31
|
-
let newMonth = type === 'prev' ? month - 1 : month + 1;
|
|
32
|
-
if (newMonth < 1) {
|
|
33
|
-
newYear = year - 1;
|
|
34
|
-
newMonth = 12;
|
|
35
|
-
}
|
|
36
|
-
else if (newMonth > 12) {
|
|
37
|
-
newYear = year + 1;
|
|
38
|
-
newMonth = 1;
|
|
39
|
-
}
|
|
40
|
-
return { newYear, newMonth };
|
|
41
|
-
};
|
|
42
|
-
return { formatDate, createCalendar, calculateYearMonth };
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { today as t, useDatePicker as u };
|
package/dist/types/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
export declare class SdDatePickerCalendar {
|
|
3
|
-
value: string | null;
|
|
4
|
-
selectable?: [string, string];
|
|
5
|
-
private currentYear;
|
|
6
|
-
private currentMonth;
|
|
7
|
-
select: EventEmitter<string>;
|
|
8
|
-
viewChange: EventEmitter<{
|
|
9
|
-
year: number;
|
|
10
|
-
month: number;
|
|
11
|
-
}>;
|
|
12
|
-
private dateUtil;
|
|
13
|
-
componentWillLoad(): void;
|
|
14
|
-
handleValueChange(): void;
|
|
15
|
-
private syncViewFromValue;
|
|
16
|
-
private formatDate;
|
|
17
|
-
private get cells();
|
|
18
|
-
private emitViewChange;
|
|
19
|
-
private goPrevYear;
|
|
20
|
-
private goNextYear;
|
|
21
|
-
private goPrevMonth;
|
|
22
|
-
private goNextMonth;
|
|
23
|
-
private isDisabled;
|
|
24
|
-
private handleDayClick;
|
|
25
|
-
render(): any;
|
|
26
|
-
}
|