@sellmate/design-system 1.0.78 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/component.table-CMqGfEui.js +66 -0
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index--F2wGuAi.js → index-Cw-78mnC.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{resolveColor-LhfOKtTZ.js → resolveColor-B0hzQNLG.js} +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +3 -3
- package/dist/cjs/sd-badge.cjs.entry.js +2 -3
- package/dist/cjs/sd-barcode-input.cjs.entry.js +3 -3
- package/dist/cjs/{sd-button-v2.config-CnqCQQMi.js → sd-button.config-DH08UNfl.js} +114 -28
- package/dist/cjs/{sd-button-v2_2.cjs.entry.js → sd-button_2.cjs.entry.js} +102 -85
- package/dist/cjs/sd-calendar.cjs.entry.js +15 -15
- 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 +3 -3
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +19 -11
- package/dist/cjs/sd-date-box.cjs.entry.js +9 -4
- package/dist/cjs/{sd-date-picker-calendar.cjs.entry.js → sd-date-picker-calendar_2.cjs.entry.js} +59 -6
- package/dist/cjs/{sd-date-picker.config-CRgCT5dn.js → sd-date-picker.config-CjvrFpYK.js} +1 -2
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +1235 -0
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +14 -14
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +32 -27
- package/dist/cjs/{sd-button_4.cjs.entry.js → sd-field_3.cjs.entry.js} +47 -102
- package/dist/cjs/sd-form.cjs.entry.js +5 -5
- package/dist/cjs/sd-ghost-button.cjs.entry.js +12 -10
- package/dist/cjs/sd-guide.cjs.entry.js +11 -11
- package/dist/cjs/sd-key-value-table.cjs.entry.js +230 -0
- package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
- 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_5.cjs.entry.js → sd-pagination_4.cjs.entry.js} +136 -325
- package/dist/cjs/sd-popover.cjs.entry.js +18 -11
- package/dist/cjs/sd-popup.cjs.entry.js +112 -0
- package/dist/cjs/sd-portal.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +9 -6
- package/dist/cjs/sd-radio.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +159 -0
- package/dist/cjs/sd-select.config-B19ptCT2.js +178 -0
- package/dist/cjs/{sd-select-list-item_4.cjs.entry.js → sd-select_3.cjs.entry.js} +296 -323
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +188 -48
- package/dist/cjs/sd-table.config-BIpldZtw.js +76 -0
- package/dist/cjs/sd-tabs.cjs.entry.js +8 -3
- package/dist/cjs/sd-tag.cjs.entry.js +56 -21
- package/dist/cjs/sd-td.cjs.entry.js +52 -10
- package/dist/cjs/sd-text-link.cjs.entry.js +13 -5
- package/dist/cjs/sd-toast-container.cjs.entry.js +5 -5
- package/dist/cjs/sd-toast.cjs.entry.js +35 -5
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-DpTN1vBC.js → system-VmZRYp6V.js} +4 -2
- package/dist/cjs/{tooltipArrow-D1-wcNm1.js → tooltipArrow-BjSFKIUq.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/assets/CheckboxCheck.js +5 -0
- package/dist/collection/components/assets/CheckboxIndeterminate.js +5 -0
- package/dist/collection/components/assets/index.js +4 -0
- package/dist/collection/components/sd-action-modal/sd-action-modal.css +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +7 -7
- package/dist/collection/components/sd-badge/sd-badge.config.js +10 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -22
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +4 -4
- package/dist/collection/components/{sd-button-v2/sd-button-v2.config.js → sd-button/sd-button.config.js} +1 -1
- package/dist/collection/components/sd-button/sd-button.css +47 -93
- package/dist/collection/components/sd-button/sd-button.js +100 -173
- package/dist/collection/components/sd-calendar/sd-calendar.js +14 -14
- 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 +13 -8
- package/dist/collection/components/sd-date-box/sd-date-box.js +8 -3
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +4 -4
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.css +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +13 -6
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +4 -4
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +12 -12
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +5 -5
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +7 -3
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +13 -11
- package/dist/collection/components/sd-field/sd-field.css +6 -2
- package/dist/collection/components/sd-field/sd-field.js +48 -22
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +10 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +6 -6
- package/dist/collection/components/sd-form/sd-form.js +4 -4
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +12 -10
- package/dist/collection/components/sd-guide/sd-guide.css +8 -172
- package/dist/collection/components/sd-guide/sd-guide.js +8 -6
- package/dist/collection/components/sd-icon/sd-icon.js +4 -4
- package/dist/collection/components/sd-input/sd-input.css +4 -2
- package/dist/collection/components/sd-input/sd-input.js +6 -6
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +36 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +119 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +301 -0
- 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 +6 -3
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +2 -2
- package/dist/collection/components/sd-number-input/sd-number-input.css +7 -0
- package/dist/collection/components/sd-number-input/sd-number-input.js +8 -5
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +129 -36
- package/dist/collection/components/sd-popup/sd-popup.config.js +34 -0
- package/dist/collection/components/sd-popup/sd-popup.css +73 -0
- package/dist/collection/components/sd-popup/sd-popup.js +163 -0
- 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 +8 -5
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +2 -2
- 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.css +4 -4
- 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 +8 -8
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +9 -4
- package/dist/collection/components/sd-select/sd-select.js +6 -6
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.config.js +6 -2
- package/dist/collection/components/sd-table/sd-table.css +30 -11
- package/dist/collection/components/sd-table/sd-table.js +233 -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 +24 -1
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +116 -19
- package/dist/collection/components/sd-tabs/sd-tabs.js +7 -2
- package/dist/collection/components/sd-tag/sd-tag.config.js +43 -11
- package/dist/collection/components/sd-tag/sd-tag.js +13 -7
- package/dist/collection/components/sd-text-link/sd-text-link.css +1 -0
- package/dist/collection/components/sd-text-link/sd-text-link.js +10 -4
- package/dist/collection/components/sd-textarea/sd-textarea.css +3 -0
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/sd-toast/sd-toast.config.js +14 -0
- package/dist/collection/components/sd-toast/sd-toast.css +3 -5
- package/dist/collection/components/sd-toast/sd-toast.js +52 -5
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +4 -4
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +77 -30
- package/dist/collection/utils/color/resolveColor.js +2 -2
- package/dist/collection/utils/dropdown-manager.js +1 -1
- package/dist/collection/utils/modal.js +1 -1
- package/dist/collection/utils/toast.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/components/p-2wB9cing.js +1 -0
- package/dist/components/p-B-sK7I83.js +1 -0
- package/dist/components/p-B3D43x7F.js +1 -0
- package/dist/components/p-B7mpdnNl.js +1 -0
- package/dist/components/{p-TwGlKfsC.js → p-BAcmO7w0.js} +1 -1
- package/dist/components/p-BL0ZcHK8.js +1 -0
- package/dist/components/p-BXCyVrle.js +1 -0
- package/dist/components/p-BY1LGlfc.js +1 -0
- package/dist/components/p-BjkROjjt.js +1 -0
- package/dist/components/p-Bm3W_eBv.js +1 -0
- package/dist/components/p-BnfUIhUj.js +1 -0
- package/dist/components/{p-Dcc2Vm6z.js → p-BorUSgEK.js} +1 -1
- package/dist/components/{p-Bvq0Vpln.js → p-BsM-fwYd.js} +1 -1
- package/dist/components/p-C5CH-s6a.js +1 -0
- package/dist/components/p-C7WLft_0.js +1 -0
- package/dist/components/p-CK9ciBIR.js +1 -0
- package/dist/components/p-CQI40kiY.js +1 -0
- package/dist/components/p-CRL7TjSB.js +1 -0
- package/dist/components/p-CdOHomUp.js +1 -0
- package/dist/components/p-Ch5Yu1qd.js +1 -0
- package/dist/components/p-Cktiasfd.js +1 -0
- package/dist/components/p-CsVAx6KV.js +1 -0
- package/dist/components/p-D0Jiw-Zk.js +1 -0
- package/dist/components/p-D5F7wCNo.js +1 -0
- package/dist/components/p-DBFgk0rX.js +1 -0
- package/dist/components/p-DFLCjX1a.js +1 -0
- package/dist/components/p-DL1ac1QS.js +1 -0
- package/dist/components/p-DdLntfiw.js +1 -0
- package/dist/components/p-DeQcDHpn.js +1 -0
- package/dist/components/p-DfK4DiDI.js +1 -0
- package/dist/components/p-DhTcn6jX.js +1 -0
- package/dist/components/p-Dl8TIEQu.js +1 -0
- package/dist/components/p-DyAnn9ea.js +1 -0
- package/dist/components/p-GBlVDmy4.js +1 -0
- package/dist/components/p-Jts7ueOa.js +1 -0
- package/dist/components/p-arZfxxPn.js +1 -0
- package/dist/components/p-mmdt-WnS.js +1 -0
- package/dist/components/p-nOCYbyW4.js +1 -0
- package/dist/components/p-teN3CfOr.js +1 -0
- package/dist/components/p-u8teDaMa.js +1 -0
- package/dist/components/p-wCNRlKLa.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-calendar.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.d.ts +11 -0
- package/dist/components/sd-key-value-table.js +1 -0
- 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-button-v2.d.ts → sd-popup.d.ts} +4 -4
- package/dist/components/sd-popup.js +1 -0
- 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-04fdb4b1.entry.js +1 -0
- package/dist/design-system/p-05611ff7.entry.js +1 -0
- package/dist/design-system/p-0U6dRjlq.js +2 -0
- package/dist/design-system/{p-fe9cef6a.entry.js → p-0fe603a4.entry.js} +1 -1
- package/dist/design-system/p-100f5887.entry.js +1 -0
- package/dist/design-system/p-18c5ae1a.entry.js +1 -0
- package/dist/design-system/p-1baa05ae.entry.js +1 -0
- package/dist/design-system/p-2a1ef965.entry.js +1 -0
- package/dist/design-system/p-2c63404f.entry.js +1 -0
- package/dist/design-system/{p-33bc3176.entry.js → p-435ae69e.entry.js} +1 -1
- package/dist/design-system/p-43e97572.entry.js +1 -0
- package/dist/design-system/p-44d05570.entry.js +1 -0
- package/dist/design-system/p-501fae20.entry.js +1 -0
- package/dist/design-system/{p-ead3e688.entry.js → p-5705e6d6.entry.js} +1 -1
- package/dist/design-system/p-5cbaf1db.entry.js +1 -0
- package/dist/design-system/p-5ed0becf.entry.js +1 -0
- package/dist/design-system/p-5f1c39b8.entry.js +1 -0
- package/dist/design-system/p-66af0ba0.entry.js +1 -0
- package/dist/design-system/p-77690440.entry.js +1 -0
- package/dist/design-system/p-78cc0289.entry.js +1 -0
- package/dist/design-system/p-790165f8.entry.js +1 -0
- package/dist/design-system/p-80466582.entry.js +1 -0
- package/dist/design-system/{p-e5cebccd.entry.js → p-857c44e8.entry.js} +1 -1
- package/dist/design-system/{p-f522c91d.entry.js → p-87c868c3.entry.js} +1 -1
- package/dist/design-system/p-8db7d8f2.entry.js +1 -0
- package/dist/design-system/p-8ee990bd.entry.js +1 -0
- package/dist/design-system/p-8f22106e.entry.js +1 -0
- package/dist/design-system/p-BDjErF_K.js +1 -0
- package/dist/design-system/p-BnfUIhUj.js +1 -0
- package/dist/{components/p-DkJqVXpD.js → design-system/p-C29HUShl.js} +1 -1
- package/dist/design-system/{p-BxPyZJaz.js → p-Ce0cmS4R.js} +1 -1
- package/dist/design-system/p-CxOCk_ge.js +1 -0
- package/dist/design-system/p-GBlVDmy4.js +1 -0
- package/dist/design-system/p-a6545130.entry.js +1 -0
- package/dist/design-system/p-ae2d45a2.entry.js +1 -0
- package/dist/design-system/{p-797517b5.entry.js → p-aeccfb2b.entry.js} +1 -1
- package/dist/design-system/p-b0aad445.entry.js +1 -0
- package/dist/design-system/p-b3c144ff.entry.js +1 -0
- package/dist/design-system/p-caee95b0.entry.js +1 -0
- package/dist/design-system/p-d30c823e.entry.js +1 -0
- package/dist/design-system/{p-3f7bc660.entry.js → p-d3212544.entry.js} +1 -1
- package/dist/design-system/p-d8c41313.entry.js +1 -0
- package/dist/design-system/{p-6bfe3612.entry.js → p-de8bb9ba.entry.js} +1 -1
- package/dist/design-system/p-e2334c1c.entry.js +1 -0
- package/dist/design-system/p-f4d73a0c.entry.js +1 -0
- package/dist/design-system/p-fc973500.entry.js +1 -0
- package/dist/design-system/p-fe0a5368.entry.js +1 -0
- package/dist/design-system/p-mmdt-WnS.js +1 -0
- package/dist/esm/component.table-BnfUIhUj.js +64 -0
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-Cnwbjz1F.js → index-0U6dRjlq.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{resolveColor-BxPyZJaz.js → resolveColor-Ce0cmS4R.js} +2 -2
- package/dist/esm/sd-action-modal.entry.js +3 -3
- package/dist/esm/sd-badge.entry.js +2 -3
- package/dist/esm/sd-barcode-input.entry.js +3 -3
- package/dist/esm/{sd-button-v2.config-CV4xelxV.js → sd-button.config-BDjErF_K.js} +88 -3
- package/dist/esm/{sd-button-v2_2.entry.js → sd-button_2.entry.js} +102 -85
- package/dist/esm/sd-calendar.entry.js +15 -15
- 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 +3 -3
- package/dist/esm/sd-confirm-modal_2.entry.js +19 -11
- package/dist/esm/sd-date-box.entry.js +9 -4
- package/dist/esm/{sd-date-picker-calendar.entry.js → sd-date-picker-calendar_2.entry.js} +59 -7
- package/dist/esm/{sd-date-picker.config-C2fDbE9d.js → sd-date-picker.config-B6cqMQaM.js} +1 -2
- package/dist/esm/sd-date-picker_7.entry.js +1227 -0
- package/dist/esm/sd-date-range-picker-calendar.entry.js +14 -14
- package/dist/esm/sd-dropdown-button.entry.js +21 -16
- package/dist/esm/{sd-button_4.entry.js → sd-field_3.entry.js} +48 -102
- package/dist/esm/sd-form.entry.js +5 -5
- package/dist/esm/sd-ghost-button.entry.js +12 -10
- package/dist/esm/sd-guide.entry.js +11 -11
- package/dist/esm/sd-key-value-table.entry.js +228 -0
- package/dist/esm/sd-linear-progress.entry.js +3 -3
- 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_5.entry.js → sd-pagination_4.entry.js} +137 -325
- package/dist/esm/sd-popover.entry.js +18 -11
- package/dist/esm/sd-popup.entry.js +110 -0
- package/dist/esm/sd-portal.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +9 -6
- package/dist/esm/sd-radio.entry.js +2 -2
- package/dist/esm/sd-select-list-item_2.entry.js +156 -0
- package/dist/esm/sd-select.config-CxOCk_ge.js +165 -0
- package/dist/esm/{sd-select-list-item_4.entry.js → sd-select_3.entry.js} +281 -307
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/{sd-table.config-Bj-EEo7N.js → sd-table.config-B-VgXXT7.js} +16 -46
- package/dist/esm/sd-table.entry.js +188 -48
- package/dist/esm/sd-tabs.entry.js +8 -3
- package/dist/esm/sd-tag.entry.js +56 -21
- package/dist/esm/sd-td.entry.js +52 -10
- package/dist/esm/sd-text-link.entry.js +13 -5
- package/dist/esm/sd-toast-container.entry.js +5 -5
- package/dist/esm/sd-toast.entry.js +35 -5
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-CZ4ltUOw.js → system-GBlVDmy4.js} +4 -2
- package/dist/esm/{tooltipArrow-D8sr81Xw.js → tooltipArrow-O5LOsHae.js} +1 -1
- package/dist/types/components/assets/CheckboxCheck.d.ts +1 -0
- package/dist/types/components/assets/CheckboxIndeterminate.d.ts +1 -0
- package/dist/types/components/assets/index.d.ts +2 -0
- package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +2 -2
- package/dist/types/components/sd-badge/sd-badge.d.ts +0 -1
- package/dist/types/components/{sd-button-v2/sd-button-v2.config.d.ts → sd-button/sd-button.config.d.ts} +9 -15
- package/dist/types/components/sd-button/sd-button.d.ts +11 -13
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +3 -3
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +2 -1
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +6 -5
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +1 -0
- package/dist/types/components/sd-field/sd-field.d.ts +1 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +105 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +38 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.config.d.ts +2 -2
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -1
- package/dist/types/components/sd-popover/sd-popover.d.ts +16 -10
- package/dist/types/components/sd-popup/sd-popup.config.d.ts +30 -0
- package/dist/types/components/sd-popup/sd-popup.d.ts +11 -0
- 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 +21 -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 +9 -0
- package/dist/types/components/sd-tag/sd-tag.d.ts +2 -0
- package/dist/types/components/sd-toast/sd-toast.config.d.ts +5 -1
- package/dist/types/components/sd-toast/sd-toast.d.ts +2 -0
- package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +2 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.config.d.ts +2 -13
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +6 -4
- package/dist/types/components.d.ts +278 -192
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/form.d.ts +1 -1
- package/dist/types/types/global.d.ts +14 -13
- package/dist/types/utils/toast.d.ts +1 -1
- package/hydrate/index.js +5513 -4761
- package/hydrate/index.mjs +5513 -4761
- package/package.json +111 -97
- package/readme.md +13 -7
- package/dist/cjs/component.button-cqV-iCG5.js +0 -90
- package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +0 -51
- package/dist/cjs/sd-date-picker.cjs.entry.js +0 -117
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +0 -123
- package/dist/cjs/sd-file-picker.cjs.entry.js +0 -244
- package/dist/cjs/sd-input.cjs.entry.js +0 -175
- package/dist/cjs/sd-number-input.cjs.entry.js +0 -409
- package/dist/cjs/sd-radio-group.cjs.entry.js +0 -46
- package/dist/cjs/sd-table.config-Cb0Ot3C6.js +0 -105
- package/dist/cjs/sd-textarea.cjs.entry.js +0 -146
- package/dist/collection/components/sd-button-v2/sd-button-v2.css +0 -125
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +0 -273
- package/dist/components/p-B1XBwjCW.js +0 -1
- package/dist/components/p-B8jXOXtJ.js +0 -1
- package/dist/components/p-BE6TxbtX.js +0 -1
- package/dist/components/p-BJsHakU2.js +0 -1
- package/dist/components/p-BStczlLa.js +0 -1
- package/dist/components/p-BcMNA89i.js +0 -1
- package/dist/components/p-BheX6lAy.js +0 -1
- package/dist/components/p-BmYM7-4v.js +0 -1
- package/dist/components/p-BppjYHF6.js +0 -1
- package/dist/components/p-BwWDMpJc.js +0 -1
- package/dist/components/p-C-kw2p2a.js +0 -1
- package/dist/components/p-C5qZtNLl.js +0 -1
- package/dist/components/p-C7DajKYn.js +0 -1
- package/dist/components/p-CZ4ltUOw.js +0 -1
- package/dist/components/p-CeVMl_M9.js +0 -1
- package/dist/components/p-D1DpOp6M.js +0 -1
- package/dist/components/p-D3gjBBCU.js +0 -1
- package/dist/components/p-DC-6inj0.js +0 -1
- package/dist/components/p-DRF0He-x.js +0 -1
- package/dist/components/p-DegvQLTF.js +0 -1
- package/dist/components/p-Dey-lS6x.js +0 -1
- package/dist/components/p-DfH_fO01.js +0 -1
- package/dist/components/p-DngV3MT1.js +0 -1
- package/dist/components/p-EbjZr2OA.js +0 -1
- package/dist/components/p-LwWOleLJ.js +0 -1
- package/dist/components/p-Nvx13YlG.js +0 -1
- package/dist/components/p-ZMpCZhXP.js +0 -1
- package/dist/components/p-dNJIFthT.js +0 -1
- package/dist/components/p-q0VWISKA.js +0 -1
- package/dist/components/p-xnLvZ-xn.js +0 -1
- package/dist/components/sd-button-v2.js +0 -1
- package/dist/design-system/p-0356c195.entry.js +0 -1
- package/dist/design-system/p-045bc426.entry.js +0 -1
- package/dist/design-system/p-12dfd239.entry.js +0 -1
- package/dist/design-system/p-16d3a485.entry.js +0 -1
- package/dist/design-system/p-1706ed6f.entry.js +0 -1
- package/dist/design-system/p-182548f7.entry.js +0 -1
- package/dist/design-system/p-1a79edce.entry.js +0 -1
- package/dist/design-system/p-1cf87e87.entry.js +0 -1
- package/dist/design-system/p-25a08e98.entry.js +0 -1
- package/dist/design-system/p-2812b9ce.entry.js +0 -1
- package/dist/design-system/p-38f661ea.entry.js +0 -1
- package/dist/design-system/p-429dab5c.entry.js +0 -1
- package/dist/design-system/p-455dccf5.entry.js +0 -1
- package/dist/design-system/p-59313838.entry.js +0 -1
- package/dist/design-system/p-6af01ab0.entry.js +0 -1
- package/dist/design-system/p-70d4903f.entry.js +0 -1
- package/dist/design-system/p-767e99f9.entry.js +0 -1
- package/dist/design-system/p-7c370335.entry.js +0 -1
- package/dist/design-system/p-7fe8be6a.entry.js +0 -1
- package/dist/design-system/p-83b262dc.entry.js +0 -1
- package/dist/design-system/p-881adaa5.entry.js +0 -1
- package/dist/design-system/p-88d7303c.entry.js +0 -1
- package/dist/design-system/p-8a601e0f.entry.js +0 -1
- package/dist/design-system/p-B1XBwjCW.js +0 -1
- package/dist/design-system/p-BsrEibf7.js +0 -1
- package/dist/design-system/p-C5qZtNLl.js +0 -1
- package/dist/design-system/p-CZ4ltUOw.js +0 -1
- package/dist/design-system/p-Cnwbjz1F.js +0 -2
- package/dist/design-system/p-DnCBBIoq.js +0 -1
- package/dist/design-system/p-a82be987.entry.js +0 -1
- package/dist/design-system/p-b917c82a.entry.js +0 -1
- package/dist/design-system/p-b9f00eef.entry.js +0 -1
- package/dist/design-system/p-bcb53788.entry.js +0 -1
- package/dist/design-system/p-c24344ac.entry.js +0 -1
- package/dist/design-system/p-d76192bd.entry.js +0 -1
- package/dist/design-system/p-d9d8c51b.entry.js +0 -1
- package/dist/design-system/p-de67937d.entry.js +0 -1
- package/dist/design-system/p-ea5e6c2c.entry.js +0 -1
- package/dist/design-system/p-eeb1cac2.entry.js +0 -1
- package/dist/design-system/p-f1a74359.entry.js +0 -1
- package/dist/design-system/p-f44786a9.entry.js +0 -1
- package/dist/design-system/p-f69c7539.entry.js +0 -1
- package/dist/esm/component.button-B1XBwjCW.js +0 -88
- package/dist/esm/sd-date-picker-trigger.entry.js +0 -49
- package/dist/esm/sd-date-picker.entry.js +0 -115
- package/dist/esm/sd-date-range-picker.entry.js +0 -121
- package/dist/esm/sd-file-picker.entry.js +0 -242
- package/dist/esm/sd-input.entry.js +0 -173
- package/dist/esm/sd-number-input.entry.js +0 -407
- package/dist/esm/sd-radio-group.entry.js +0 -44
- package/dist/esm/sd-textarea.entry.js +0 -144
- package/dist/types/components/sd-button-v2/sd-button-v2.d.ts +0 -19
- /package/dist/components/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
- /package/dist/design-system/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
|
@@ -49,7 +49,7 @@ export class SdFloatingPopover {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
disconnectedCallback() {
|
|
52
|
-
if (this.rafId)
|
|
52
|
+
if (this.rafId !== undefined)
|
|
53
53
|
cancelAnimationFrame(this.rafId);
|
|
54
54
|
this.unobserveParent();
|
|
55
55
|
this.wrapper?.remove();
|
|
@@ -77,19 +77,19 @@ export class SdFloatingPopover {
|
|
|
77
77
|
}
|
|
78
78
|
// 위치 갱신 (scroll / resize)
|
|
79
79
|
updatePosition() {
|
|
80
|
-
if (this.rafId)
|
|
80
|
+
if (this.rafId !== undefined)
|
|
81
81
|
cancelAnimationFrame(this.rafId);
|
|
82
82
|
this.rafId = requestAnimationFrame(() => {
|
|
83
83
|
if (!this.parentRef || !this.wrapper)
|
|
84
84
|
return;
|
|
85
85
|
const rect = this.parentRef.getBoundingClientRect();
|
|
86
|
-
if (
|
|
86
|
+
if (rect.width === 0 && rect.height === 0)
|
|
87
87
|
return; // 요소가 보이지 않는 경우
|
|
88
|
-
const [offsetX, offsetY] = this.offset;
|
|
88
|
+
const [offsetX, offsetY] = this.offset ?? [0, 0];
|
|
89
89
|
const ARROW_SIZE = SdFloatingPopover.ARROW_SIZE;
|
|
90
90
|
let top = 0;
|
|
91
91
|
let left = 0;
|
|
92
|
-
switch (this.placement) {
|
|
92
|
+
switch (this.placement ?? 'bottom') {
|
|
93
93
|
case 'top':
|
|
94
94
|
top = rect.top + window.scrollY - this.wrapper.offsetHeight + offsetY - ARROW_SIZE;
|
|
95
95
|
left =
|
|
@@ -153,7 +153,7 @@ export class SdFloatingPopover {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return h("slot", { key: '
|
|
156
|
+
return h("slot", { key: 'b70d70c2ed9d18a191c939b84d5728eb1c450fd0' });
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "sd-floating-portal"; }
|
|
159
159
|
static get originalStyleUrls() {
|
|
@@ -13,15 +13,15 @@ export class SdForm {
|
|
|
13
13
|
if (elA === elB)
|
|
14
14
|
return 0;
|
|
15
15
|
const position = elA.compareDocumentPosition(elB);
|
|
16
|
-
if (position & Node.DOCUMENT_POSITION_FOLLOWING)
|
|
16
|
+
if ((position & Node.DOCUMENT_POSITION_FOLLOWING) !== 0)
|
|
17
17
|
return -1;
|
|
18
|
-
if (position & Node.DOCUMENT_POSITION_PRECEDING)
|
|
18
|
+
if ((position & Node.DOCUMENT_POSITION_PRECEDING) !== 0)
|
|
19
19
|
return 1;
|
|
20
20
|
return 0;
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
async sdRegisterField(field) {
|
|
24
|
-
if (
|
|
24
|
+
if (field.name === '') {
|
|
25
25
|
console.warn('[sd-form] field.name is required');
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -70,7 +70,7 @@ export class SdForm {
|
|
|
70
70
|
this.sdSubmit.emit();
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h("form", { key: '
|
|
73
|
+
return (h("form", { key: '197851b7d0ac6af39be67a2b5d2846370cc3ed39', onSubmit: e => this.onSubmit(e), class: this.formClass }, h("slot", { key: '33adfc4e9d40aa48b22755a98429ab8e0a32792f' })));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "sd-form"; }
|
|
76
76
|
static get properties() {
|
|
@@ -24,7 +24,7 @@ export class SdGhostButton {
|
|
|
24
24
|
this.warnIfMissingAriaLabel();
|
|
25
25
|
}
|
|
26
26
|
warnIfMissingAriaLabel() {
|
|
27
|
-
const missing =
|
|
27
|
+
const missing = (this.ariaLabel ?? '').trim() === '';
|
|
28
28
|
if (!missing) {
|
|
29
29
|
this.hasWarnedMissingAriaLabel = false;
|
|
30
30
|
return;
|
|
@@ -35,21 +35,23 @@ export class SdGhostButton {
|
|
|
35
35
|
this.hasWarnedMissingAriaLabel = true;
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
const
|
|
38
|
+
const size = this.size ?? 'sm';
|
|
39
|
+
const intent = this.intent ?? 'default';
|
|
40
|
+
const sizeConfig = GHOST_BUTTON_SIZES[size] ?? GHOST_BUTTON_SIZES.sm;
|
|
39
41
|
const contentColor = this.disabled
|
|
40
|
-
? GHOST_BUTTON_DISABLED_COLORS[
|
|
41
|
-
: GHOST_BUTTON_CONTENT_COLORS[
|
|
42
|
-
const accessibleName = this.ariaLabel.trim() || undefined;
|
|
43
|
-
return (h("button", { key: '
|
|
42
|
+
? GHOST_BUTTON_DISABLED_COLORS[intent]
|
|
43
|
+
: GHOST_BUTTON_CONTENT_COLORS[intent];
|
|
44
|
+
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
45
|
+
return (h("button", { key: '789d7ad03fd9fd3164bd76b4490c06d1a2ed5ca0', class: {
|
|
44
46
|
'sd-ghost-button': true,
|
|
45
47
|
'sd-ghost-button--disabled': this.disabled,
|
|
46
48
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
47
49
|
'--sd-ghost-button-size': `${sizeConfig.size}px`,
|
|
48
|
-
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[
|
|
49
|
-
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[
|
|
50
|
+
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[size]}px`,
|
|
51
|
+
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
50
52
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
51
53
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
52
|
-
}, onClick: this.handleClick }, h("sd-icon", { key: '
|
|
54
|
+
}, onClick: this.handleClick }, h("sd-icon", { key: '0cac7bcc4b6ad28d88c9ab4bc30e59dd92f45992', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
53
55
|
}
|
|
54
56
|
static get is() { return "sd-ghost-button"; }
|
|
55
57
|
static get originalStyleUrls() {
|
|
@@ -69,7 +71,7 @@ export class SdGhostButton {
|
|
|
69
71
|
"mutable": false,
|
|
70
72
|
"complexType": {
|
|
71
73
|
"original": "IconName",
|
|
72
|
-
"resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrowDown\" | \"arrowLeft\" | \"arrowRight\" | \"arrowUp\" | \"attachFile\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"camera\" | \"cancelFill\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFill\" | \"checkOutline\" | \"chevronDown\" | \"chevronLeft\" | \"chevronLeftEnd\" | \"chevronRight\" | \"chevronRightEnd\" | \"chevronUp\" | \"clockFill\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"edit\" | \"etc\" | \"event\" | \"global\" | \"helpFill\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageOutline\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"new\" | \"notificationFill\" | \"notificationOutline\" | \"notion\" | \"outline\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"print\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"save\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"updown\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseFill\" | \"warehouseOutline\" | \"warningFill\" | \"warningOutline\" | \"youtube\"",
|
|
74
|
+
"resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrowDown\" | \"arrowLeft\" | \"arrowRight\" | \"arrowUp\" | \"attachFile\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"camera\" | \"cancelFill\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFill\" | \"checkOutline\" | \"checkboxCheck\" | \"checkboxIndeterminate\" | \"chevronDown\" | \"chevronLeft\" | \"chevronLeftEnd\" | \"chevronRight\" | \"chevronRightEnd\" | \"chevronUp\" | \"clockFill\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"edit\" | \"etc\" | \"event\" | \"global\" | \"helpFill\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageOutline\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"new\" | \"notificationFill\" | \"notificationOutline\" | \"notion\" | \"outline\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"print\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"save\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"updown\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseFill\" | \"warehouseOutline\" | \"warningFill\" | \"warningOutline\" | \"youtube\"",
|
|
73
75
|
"references": {
|
|
74
76
|
"IconName": {
|
|
75
77
|
"location": "global",
|
|
@@ -1,176 +1,4 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
sd-button {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
width: fit-content;
|
|
5
|
-
height: fit-content;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.sd-button {
|
|
9
|
-
--sd-button-height: 34px;
|
|
10
|
-
--sd-button-padding-x: 20px;
|
|
11
|
-
--sd-button-gap: 8px;
|
|
12
|
-
--sd-button-font-family: inherit;
|
|
13
|
-
--sd-button-font-size: 16px;
|
|
14
|
-
--sd-button-font-weight: 500;
|
|
15
|
-
--sd-button-text-decoration: none;
|
|
16
|
-
--sd-button-label-min-width: auto;
|
|
17
|
-
--sd-button-icon-only-size: var(--sd-button-height);
|
|
18
|
-
text-decoration: none;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
border-radius: var(--sd-button-button-radius-sm, 4px);
|
|
21
|
-
transition: all 0.2s ease-in-out;
|
|
22
|
-
position: relative;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
-webkit-user-select: none;
|
|
26
|
-
user-select: none;
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
display: inline-flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
border: none;
|
|
32
|
-
padding: 0 var(--sd-button-padding-x);
|
|
33
|
-
min-width: var(--sd-button-min-width, auto);
|
|
34
|
-
min-height: var(--sd-button-height);
|
|
35
|
-
font-family: var(--sd-button-font-family);
|
|
36
|
-
font-size: var(--sd-button-font-size);
|
|
37
|
-
font-weight: var(--sd-button-font-weight);
|
|
38
|
-
text-decoration: var(--sd-button-text-decoration);
|
|
39
|
-
}
|
|
40
|
-
.sd-button--xs {
|
|
41
|
-
--sd-button-height: var(--sd-button-button-xs-height, 24px);
|
|
42
|
-
--sd-button-padding-x: var(--sd-button-button-xs-padding-x, 8px);
|
|
43
|
-
--sd-button-gap: var(--sd-button-button-xs-gap, 4px);
|
|
44
|
-
--sd-button-font-family: var(--sd-button-button-xs-typography-font-family, inherit);
|
|
45
|
-
--sd-button-font-size: var(--sd-button-button-xs-typography-font-size, 12px);
|
|
46
|
-
--sd-button-font-weight: var(--sd-button-button-xs-typography-font-weight, 500);
|
|
47
|
-
--sd-button-text-decoration: var(--sd-button-button-xs-typography-text-decoration, none);
|
|
48
|
-
--sd-button-label-min-width: var(--sd-button-label-xs-min-width, auto);
|
|
49
|
-
--sd-button-icon-only-size: var(--sd-button-button-icon-only-xs-width, var(--sd-button-height));
|
|
50
|
-
line-height: 20px;
|
|
51
|
-
}
|
|
52
|
-
.sd-button--sm {
|
|
53
|
-
--sd-button-height: var(--sd-button-button-sm-height, 28px);
|
|
54
|
-
--sd-button-padding-x: var(--sd-button-button-sm-padding-x, 12px);
|
|
55
|
-
--sd-button-gap: var(--sd-button-button-sm-gap, 6px);
|
|
56
|
-
--sd-button-font-family: var(--sd-button-button-sm-typography-font-family, inherit);
|
|
57
|
-
--sd-button-font-size: var(--sd-button-button-sm-typography-font-size, 12px);
|
|
58
|
-
--sd-button-font-weight: var(--sd-button-button-sm-typography-font-weight, 500);
|
|
59
|
-
--sd-button-text-decoration: var(--sd-button-button-sm-typography-text-decoration, none);
|
|
60
|
-
--sd-button-label-min-width: var(--sd-button-label-sm-min-width, auto);
|
|
61
|
-
--sd-button-icon-only-size: var(--sd-button-button-icon-only-sm-width, var(--sd-button-height));
|
|
62
|
-
line-height: 20px;
|
|
63
|
-
}
|
|
64
|
-
.sd-button--md {
|
|
65
|
-
--sd-button-height: var(--sd-button-button-md-height, 34px);
|
|
66
|
-
--sd-button-padding-x: var(--sd-button-button-md-padding-x, 20px);
|
|
67
|
-
--sd-button-gap: var(--sd-button-button-md-gap, 8px);
|
|
68
|
-
--sd-button-font-family: var(--sd-button-button-md-typography-font-family, inherit);
|
|
69
|
-
--sd-button-font-size: var(--sd-button-button-md-typography-font-size, 16px);
|
|
70
|
-
--sd-button-font-weight: var(--sd-button-button-md-typography-font-weight, 500);
|
|
71
|
-
--sd-button-text-decoration: var(--sd-button-button-md-typography-text-decoration, none);
|
|
72
|
-
--sd-button-label-min-width: var(--sd-button-label-md-min-width, auto);
|
|
73
|
-
--sd-button-icon-only-size: var(--sd-button-button-icon-only-md-width, var(--sd-button-height));
|
|
74
|
-
line-height: 26px;
|
|
75
|
-
}
|
|
76
|
-
.sd-button--lg {
|
|
77
|
-
--sd-button-height: var(--sd-button-button-lg-height, 62px);
|
|
78
|
-
--sd-button-padding-x: var(--sd-button-button-lg-padding-x, 28px);
|
|
79
|
-
--sd-button-gap: var(--sd-button-button-lg-gap, 12px);
|
|
80
|
-
--sd-button-font-family: var(--sd-button-button-lg-typography-font-family, inherit);
|
|
81
|
-
--sd-button-font-size: var(--sd-button-button-lg-typography-font-size, 18px);
|
|
82
|
-
--sd-button-font-weight: var(--sd-button-button-lg-typography-font-weight, 500);
|
|
83
|
-
--sd-button-text-decoration: var(--sd-button-button-lg-typography-text-decoration, none);
|
|
84
|
-
--sd-button-label-min-width: var(--sd-button-label-lg-min-width, auto);
|
|
85
|
-
--sd-button-icon-only-size: var(--sd-button-button-icon-only-lg-width, var(--sd-button-height));
|
|
86
|
-
line-height: 30px;
|
|
87
|
-
}
|
|
88
|
-
.sd-button--has-label {
|
|
89
|
-
--sd-button-min-width: var(--sd-button-label-min-width, auto);
|
|
90
|
-
}
|
|
91
|
-
.sd-button--primary {
|
|
92
|
-
background-color: var(--button-color);
|
|
93
|
-
color: white;
|
|
94
|
-
transition: filter 0.2s ease;
|
|
95
|
-
}
|
|
96
|
-
.sd-button--primary::before {
|
|
97
|
-
content: "";
|
|
98
|
-
position: absolute;
|
|
99
|
-
inset: 0;
|
|
100
|
-
background: #000000;
|
|
101
|
-
opacity: 0;
|
|
102
|
-
transition: opacity 0.2s ease;
|
|
103
|
-
z-index: 0;
|
|
104
|
-
}
|
|
105
|
-
.sd-button--primary:hover:not(.sd-button--disabled):not(.sd-button--loading)::before {
|
|
106
|
-
opacity: 0.25;
|
|
107
|
-
}
|
|
108
|
-
.sd-button--outline {
|
|
109
|
-
background: white;
|
|
110
|
-
border: var(--sd-button-button-border-width-default, 1px) solid var(--button-color);
|
|
111
|
-
color: var(--button-color);
|
|
112
|
-
}
|
|
113
|
-
.sd-button--outline::before {
|
|
114
|
-
content: "";
|
|
115
|
-
position: absolute;
|
|
116
|
-
inset: 0;
|
|
117
|
-
background: var(--button-color);
|
|
118
|
-
opacity: 0;
|
|
119
|
-
transition: opacity 0.2s ease;
|
|
120
|
-
z-index: 0;
|
|
121
|
-
}
|
|
122
|
-
.sd-button--outline:hover:not(.sd-button--disabled):not(.sd-button--loading)::before {
|
|
123
|
-
opacity: 0.15;
|
|
124
|
-
}
|
|
125
|
-
.sd-button--outline .sd-button__content {
|
|
126
|
-
position: relative;
|
|
127
|
-
z-index: 1;
|
|
128
|
-
}
|
|
129
|
-
.sd-button--ghost {
|
|
130
|
-
background-color: transparent;
|
|
131
|
-
color: var(--button-color);
|
|
132
|
-
border-color: transparent;
|
|
133
|
-
}
|
|
134
|
-
.sd-button--ghost::before {
|
|
135
|
-
content: "";
|
|
136
|
-
position: absolute;
|
|
137
|
-
inset: 0;
|
|
138
|
-
background: var(--button-color);
|
|
139
|
-
opacity: 0;
|
|
140
|
-
transition: opacity 0.2s ease;
|
|
141
|
-
z-index: 0;
|
|
142
|
-
}
|
|
143
|
-
.sd-button--ghost:hover:not(.sd-button--disabled):not(.sd-button--loading)::before {
|
|
144
|
-
opacity: 0.15;
|
|
145
|
-
}
|
|
146
|
-
.sd-button--ghost .sd-button__content {
|
|
147
|
-
position: relative;
|
|
148
|
-
z-index: 1;
|
|
149
|
-
}
|
|
150
|
-
.sd-button--disabled {
|
|
151
|
-
border: var(--sd-button-button-border-width-default, 1px) solid var(--sd-button-button-border-disabled, #CCCCCC);
|
|
152
|
-
background: var(--sd-button-button-bg-disabled, #E1E1E1);
|
|
153
|
-
color: var(--sd-button-button-text-disabled, #888888);
|
|
154
|
-
cursor: not-allowed !important;
|
|
155
|
-
}
|
|
156
|
-
.sd-button--icon-only {
|
|
157
|
-
padding: 0;
|
|
158
|
-
width: var(--sd-button-icon-only-size, var(--sd-button-height));
|
|
159
|
-
min-width: var(--sd-button-icon-only-size, var(--sd-button-height));
|
|
160
|
-
height: var(--sd-button-icon-only-size, var(--sd-button-height));
|
|
161
|
-
}
|
|
162
|
-
.sd-button--no-hover:hover::before {
|
|
163
|
-
opacity: 0 !important;
|
|
164
|
-
}
|
|
165
|
-
.sd-button .sd-button__content {
|
|
166
|
-
display: inline-flex;
|
|
167
|
-
align-items: center;
|
|
168
|
-
justify-content: center;
|
|
169
|
-
gap: var(--sd-button-gap);
|
|
170
|
-
z-index: 1;
|
|
171
|
-
font-weight: inherit;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
2
|
sd-guide {
|
|
175
3
|
display: inline-flex;
|
|
176
4
|
align-items: center;
|
|
@@ -195,6 +23,8 @@ sd-guide {
|
|
|
195
23
|
display: flex;
|
|
196
24
|
align-items: center;
|
|
197
25
|
gap: var(--sd-guide-button-gap);
|
|
26
|
+
--sd-button-bg-hover: var(--sd-guide-button-bg-default);
|
|
27
|
+
--sd-button-current-icon: var(--sd-guide-button-icon-color-default);
|
|
198
28
|
}
|
|
199
29
|
.sd-guide .sd-guide__button .sd-button .sd-button__content {
|
|
200
30
|
color: var(--sd-guide-button-text-default) !important;
|
|
@@ -207,8 +37,12 @@ sd-guide {
|
|
|
207
37
|
font-weight: var(--sd-guide-button-font-weight);
|
|
208
38
|
line-height: var(--sd-guide-button-line-height);
|
|
209
39
|
}
|
|
40
|
+
.sd-guide .sd-guide__button--type-notion .sd-button {
|
|
41
|
+
--sd-button-current-icon: var(--sd-guide-button-icon-color-notion);
|
|
42
|
+
}
|
|
210
43
|
.sd-guide .sd-guide__button--active .sd-button {
|
|
211
44
|
color: var(--sd-guide-button-text-active) !important;
|
|
45
|
+
--sd-button-current-icon: var(--sd-guide-button-icon-color-active);
|
|
212
46
|
}
|
|
213
47
|
.sd-guide .sd-guide__button--active .sd-button .sd-button__content {
|
|
214
48
|
color: var(--sd-guide-button-text-active) !important;
|
|
@@ -219,10 +53,12 @@ sd-guide {
|
|
|
219
53
|
.sd-guide .sd-guide__button--type-tip.sd-guide__button--active .sd-button {
|
|
220
54
|
background: var(--sd-guide-button-bg-tip);
|
|
221
55
|
border-color: var(--sd-guide-button-bg-tip);
|
|
56
|
+
--sd-button-bg-hover: var(--sd-guide-button-bg-tip);
|
|
222
57
|
}
|
|
223
58
|
.sd-guide .sd-guide__button--type-notion.sd-guide__button--active .sd-button {
|
|
224
59
|
background: var(--sd-guide-button-bg-notion);
|
|
225
60
|
border-color: var(--sd-guide-button-bg-notion);
|
|
61
|
+
--sd-button-bg-hover: var(--sd-guide-button-bg-notion);
|
|
226
62
|
}
|
|
227
63
|
|
|
228
64
|
.sd-guide__popup {
|
|
@@ -20,7 +20,7 @@ export class SdGuide {
|
|
|
20
20
|
guideRef;
|
|
21
21
|
handleClickGuide = () => {
|
|
22
22
|
if (this.type === 'notion') {
|
|
23
|
-
if (this.url) {
|
|
23
|
+
if (this.url !== '') {
|
|
24
24
|
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
25
25
|
}
|
|
26
26
|
return;
|
|
@@ -47,6 +47,9 @@ export class SdGuide {
|
|
|
47
47
|
'--sd-guide-button-bg-notion': button.bgNotion,
|
|
48
48
|
'--sd-guide-button-text-default': button.textDefault,
|
|
49
49
|
'--sd-guide-button-text-active': button.textActive,
|
|
50
|
+
'--sd-guide-button-icon-color-default': button.iconColorDefault,
|
|
51
|
+
'--sd-guide-button-icon-color-active': button.iconColorActive,
|
|
52
|
+
'--sd-guide-button-icon-color-notion': button.iconColorNotion,
|
|
50
53
|
'--sd-guide-contents-padding-x': contents.paddingX,
|
|
51
54
|
'--sd-guide-contents-padding-y': contents.paddingY,
|
|
52
55
|
'--sd-guide-contents-gap': contents.gap,
|
|
@@ -64,20 +67,19 @@ export class SdGuide {
|
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
render() {
|
|
67
|
-
const {
|
|
70
|
+
const { contents } = GUIDE_CONFIG;
|
|
68
71
|
const isActive = this.popupShow;
|
|
69
72
|
const isNotion = (this.type ?? 'tip') === 'notion';
|
|
70
73
|
const defaultLabel = DEFAULT_LABEL_BY_TYPE[this.type ?? 'tip'];
|
|
71
74
|
const iconName = ICON_BY_TYPE[this.type ?? 'tip'];
|
|
72
|
-
const buttonIconDefault = isNotion ? button.iconColorNotion : button.iconColorDefault;
|
|
73
75
|
const popupIconColor = isNotion ? contents.iconColorNotion : contents.iconColor;
|
|
74
76
|
const buttonClasses = ['sd-guide__button', `sd-guide__button--type-${this.type ?? 'tip'}`];
|
|
75
77
|
if (isActive)
|
|
76
78
|
buttonClasses.push('sd-guide__button--active');
|
|
77
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '0003572d8025680df033b2619ad11d99ccc25a35', class: "sd-guide", style: this.guideStyle }, h("sd-button", { key: '01e15b072764f4244778c727445887326792ea45', ref: el => (this.guideRef = el), class: buttonClasses.join(' '), name: isActive ? 'primary_sm' : 'neutral_outline_sm', label: this.label || defaultLabel, icon: iconName, onSdClick: this.handleClickGuide }), this.popupShow && (h("sd-portal", { key: 'd7fbe96ae73c3b35ce8ca673d19924b8b7503aae', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: 'e87cec81959c4c84a33c4c50fd40796d12ff7f4d', style: { position: 'absolute', width: '0px', height: '0px' } }, h("div", { key: '94499ea9e42b93fcec490a7ab9d7d9cccc7c1021', class: "sd-guide__popup", style: {
|
|
78
80
|
...this.guideStyle,
|
|
79
|
-
width: this.popupWidth ? this.popupWidth + 'px' : '426px',
|
|
80
|
-
} }, h("sd-ghost-button", { key: '
|
|
81
|
+
width: this.popupWidth != null ? this.popupWidth + 'px' : '426px',
|
|
82
|
+
} }, h("sd-ghost-button", { key: '712dc57cd85bd6929a2a1ef8221d29f46ecca686', class: "sd-guide__popup__close", icon: "close", ariaLabel: "close", size: "sm", onSdClick: this.closeDropdown }), h("div", { key: 'd53aadc5d766fde09a6463c7e114030c37617545', class: "sd-guide__popup__header" }, h("sd-icon", { key: 'dcb1fef4b2024f2b4584dc10c2dc54b28a0ce752', name: iconName, size: 24, color: popupIconColor }), h("h3", { key: '00860dda925f2d9670a7f9e261241f3698dd513e', class: "sd-guide__popup__title" }, this.popupTitle || defaultLabel)), h("ul", { key: '8676741e6998ed10ba39148cfff1f101fda8daa3', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
81
83
|
}
|
|
82
84
|
// 현재 2depth까지만 스타일 적용
|
|
83
85
|
renderListItem(message, depth = 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { Icons } from "../assets/index";
|
|
3
2
|
import { resolveColor } from "../../utils/color";
|
|
3
|
+
import { Icons } from "../assets/index";
|
|
4
4
|
export class SdIcon {
|
|
5
5
|
/** 아이콘명 */
|
|
6
6
|
name;
|
|
@@ -15,7 +15,7 @@ export class SdIcon {
|
|
|
15
15
|
iconStyle = {};
|
|
16
16
|
getIconClasses() {
|
|
17
17
|
const classes = ['sd-icon'];
|
|
18
|
-
if (this.rotate) {
|
|
18
|
+
if (this.rotate !== undefined && this.rotate !== 0) {
|
|
19
19
|
classes.push(`sd-icon--rotate-${this.rotate}`);
|
|
20
20
|
}
|
|
21
21
|
return classes.join(' ');
|
|
@@ -48,7 +48,7 @@ export class SdIcon {
|
|
|
48
48
|
"mutable": false,
|
|
49
49
|
"complexType": {
|
|
50
50
|
"original": "IconName",
|
|
51
|
-
"resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrowDown\" | \"arrowLeft\" | \"arrowRight\" | \"arrowUp\" | \"attachFile\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"camera\" | \"cancelFill\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFill\" | \"checkOutline\" | \"chevronDown\" | \"chevronLeft\" | \"chevronLeftEnd\" | \"chevronRight\" | \"chevronRightEnd\" | \"chevronUp\" | \"clockFill\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"edit\" | \"etc\" | \"event\" | \"global\" | \"helpFill\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageOutline\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"new\" | \"notificationFill\" | \"notificationOutline\" | \"notion\" | \"outline\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"print\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"save\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"updown\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseFill\" | \"warehouseOutline\" | \"warningFill\" | \"warningOutline\" | \"youtube\"",
|
|
51
|
+
"resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrowDown\" | \"arrowLeft\" | \"arrowRight\" | \"arrowUp\" | \"attachFile\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"camera\" | \"cancelFill\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFill\" | \"checkOutline\" | \"checkboxCheck\" | \"checkboxIndeterminate\" | \"chevronDown\" | \"chevronLeft\" | \"chevronLeftEnd\" | \"chevronRight\" | \"chevronRightEnd\" | \"chevronUp\" | \"clockFill\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"edit\" | \"etc\" | \"event\" | \"global\" | \"helpFill\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageOutline\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"new\" | \"notificationFill\" | \"notificationOutline\" | \"notion\" | \"outline\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"print\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"save\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"updown\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseFill\" | \"warehouseOutline\" | \"warningFill\" | \"warningOutline\" | \"youtube\"",
|
|
52
52
|
"references": {
|
|
53
53
|
"IconName": {
|
|
54
54
|
"location": "global",
|
|
@@ -149,7 +149,7 @@ export class SdIcon {
|
|
|
149
149
|
"mutable": false,
|
|
150
150
|
"complexType": {
|
|
151
151
|
"original": "StyleProps",
|
|
152
|
-
"resolved": "{ [key: string]:
|
|
152
|
+
"resolved": "{ [key: string]: string | undefined; }",
|
|
153
153
|
"references": {
|
|
154
154
|
"StyleProps": {
|
|
155
155
|
"location": "global",
|
|
@@ -64,7 +64,7 @@ sd-input .sd-input__content .sd-input__native[disabled] {
|
|
|
64
64
|
color: var(--sd-input-disabled-color);
|
|
65
65
|
}
|
|
66
66
|
sd-input .sd-input__content .sd-input__native[readonly] {
|
|
67
|
-
color: var(--sd-
|
|
67
|
+
color: var(--sd-system-color-field-text-read-only);
|
|
68
68
|
}
|
|
69
69
|
sd-input .sd-input__content .sd-input__native::placeholder {
|
|
70
70
|
color: var(--sd-input-placeholder-color);
|
|
@@ -74,7 +74,9 @@ sd-input .sd-input__content .sd-input__password-icon {
|
|
|
74
74
|
flex-shrink: 0;
|
|
75
75
|
}
|
|
76
76
|
sd-input .sd-input__content .sd-input__native[disabled] ~ .sd-input__clear-icon,
|
|
77
|
-
sd-input .sd-input__content .sd-input__native[disabled] ~ .sd-input__password-icon
|
|
77
|
+
sd-input .sd-input__content .sd-input__native[disabled] ~ .sd-input__password-icon,
|
|
78
|
+
sd-input .sd-input__content .sd-input__native[readonly] ~ .sd-input__clear-icon,
|
|
79
|
+
sd-input .sd-input__content .sd-input__native[readonly] ~ .sd-input__password-icon {
|
|
78
80
|
cursor: not-allowed;
|
|
79
81
|
pointer-events: none;
|
|
80
82
|
}
|
|
@@ -69,7 +69,7 @@ export class SdInput {
|
|
|
69
69
|
this.formField?.sdFocus();
|
|
70
70
|
}
|
|
71
71
|
componentWillLoad() {
|
|
72
|
-
if (this.value) {
|
|
72
|
+
if (this.value != null && this.value !== '') {
|
|
73
73
|
this.internalValue = this.value;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -112,13 +112,13 @@ export class SdInput {
|
|
|
112
112
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
113
113
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
114
114
|
};
|
|
115
|
-
return (h("sd-field", { key: '
|
|
116
|
-
if (this.disabled)
|
|
115
|
+
return (h("sd-field", { key: 'a81aefc3060587c77acf9f6de9f26f7f421b4c91', 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, readonly: this.readonly, 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: '7486a081cceed565d2624125e74cbde4a97a4d5c', class: "sd-input__content" }, h("slot", { key: 'cf65ff444baddbf20004ae3ef80c5a54564d7d6f', name: "prefix" }), h("input", { key: '468d342c1cd6f60f7ad573a8c4b0acd4d7424e13', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '5de289a0767297fc1952dbcb26bbe256f2f0d6c4', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '2ef30f443a82492f1cdd56f812651605b4057fa2', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
116
|
+
if (this.disabled || this.readonly)
|
|
117
117
|
return;
|
|
118
118
|
this.internalValue = '';
|
|
119
119
|
await this.formField?.sdValidate();
|
|
120
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
121
|
-
if (this.disabled)
|
|
120
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: 'a8cd4f37a0cea5512e080748310032256af9187d', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
121
|
+
if (this.disabled || this.readonly)
|
|
122
122
|
return;
|
|
123
123
|
this.passwordVisible = !this.passwordVisible;
|
|
124
124
|
} })))));
|
|
@@ -738,7 +738,7 @@ export class SdInput {
|
|
|
738
738
|
"mutable": false,
|
|
739
739
|
"complexType": {
|
|
740
740
|
"original": "SdTooltipProps | null",
|
|
741
|
-
"resolved": "
|
|
741
|
+
"resolved": "SdTooltip | null",
|
|
742
742
|
"references": {
|
|
743
743
|
"SdTooltipProps": {
|
|
744
744
|
"location": "import",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import systemTokens from "../../tokens/generated/system.json";
|
|
2
|
+
import tableTokens from "../../tokens/generated/component.table.json";
|
|
3
|
+
const t = tableTokens.table;
|
|
4
|
+
export const KEY_VALUE_TABLE_LAYOUT = {
|
|
5
|
+
rowHeight: Number(t.keyValue.height),
|
|
6
|
+
thWidth: 120,
|
|
7
|
+
borderRadius: Number(t.radius),
|
|
8
|
+
paddingX: Number(t.body.paddingX),
|
|
9
|
+
paddingY: Number(t.keyValue.body.padding),
|
|
10
|
+
helpIconSize: 16,
|
|
11
|
+
requiredIconSize: 12,
|
|
12
|
+
gap: Number(t.header.gap),
|
|
13
|
+
labelGap: Number(t.content.gap),
|
|
14
|
+
borderWidth: Number(t.border.width),
|
|
15
|
+
searchPaddingX: Number(t.keyValue.search.paddingX),
|
|
16
|
+
};
|
|
17
|
+
export const KEY_VALUE_TABLE_COLORS = {
|
|
18
|
+
border: t.border.color,
|
|
19
|
+
thBg: t.header.bg,
|
|
20
|
+
thLabel: systemTokens.color.fg.primary,
|
|
21
|
+
required: systemTokens.color.fg.accent,
|
|
22
|
+
helpIcon: systemTokens.color.fg.success,
|
|
23
|
+
tdBg: systemTokens.color.bg.frame,
|
|
24
|
+
tdText: systemTokens.color.fg.primary,
|
|
25
|
+
searchBg: t.keyValue.search.bg,
|
|
26
|
+
};
|
|
27
|
+
export const KEY_VALUE_TABLE_TYPOGRAPHY = {
|
|
28
|
+
labelFontFamily: t.header.typography.fontFamily,
|
|
29
|
+
labelFontSize: Number(t.header.typography.fontSize),
|
|
30
|
+
labelFontWeight: Number(t.header.typography.fontWeight),
|
|
31
|
+
labelLineHeight: Number(t.header.typography.lineHeight),
|
|
32
|
+
tdFontFamily: t.body.typography.fontFamily,
|
|
33
|
+
tdFontSize: Number(t.body.typography.fontSize),
|
|
34
|
+
tdFontWeight: Number(t.body.typography.fontWeight),
|
|
35
|
+
tdLineHeight: Number(t.body.typography.lineHeight),
|
|
36
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
sd-key-value-table {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
sd-key-value-table .sd-key-value-table__wrapper {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
width: 100%;
|
|
8
|
+
border: var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);
|
|
9
|
+
border-radius: var(--sd-kvt-radius);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
}
|
|
12
|
+
sd-key-value-table .sd-key-value-table__wrapper .sd-key-value-table {
|
|
13
|
+
flex: 1 1 auto;
|
|
14
|
+
border: 0;
|
|
15
|
+
border-radius: 0;
|
|
16
|
+
}
|
|
17
|
+
sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--use-top {
|
|
18
|
+
border-top-left-radius: 0;
|
|
19
|
+
border-top-right-radius: 0;
|
|
20
|
+
}
|
|
21
|
+
sd-key-value-table .sd-key-value-table__search-panel {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
flex: 0 0 auto;
|
|
26
|
+
padding: var(--sd-kvt-padding-y) var(--sd-kvt-search-padding-x);
|
|
27
|
+
background: var(--sd-kvt-search-bg);
|
|
28
|
+
border-left: var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);
|
|
29
|
+
}
|
|
30
|
+
sd-key-value-table .sd-key-value-table {
|
|
31
|
+
width: 100%;
|
|
32
|
+
table-layout: fixed;
|
|
33
|
+
border: var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);
|
|
34
|
+
border-radius: var(--sd-kvt-radius);
|
|
35
|
+
border-collapse: separate;
|
|
36
|
+
border-spacing: 0;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
sd-key-value-table .sd-key-value-table.sd-key-value-table--use-top {
|
|
40
|
+
border-top-left-radius: 0;
|
|
41
|
+
border-top-right-radius: 0;
|
|
42
|
+
}
|
|
43
|
+
sd-key-value-table .sd-key-value-table__th, sd-key-value-table .sd-key-value-table__td {
|
|
44
|
+
height: var(--sd-kvt-row-height);
|
|
45
|
+
padding: var(--sd-kvt-padding-y) var(--sd-kvt-padding-x);
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
vertical-align: middle;
|
|
48
|
+
text-align: left;
|
|
49
|
+
font-weight: normal;
|
|
50
|
+
border-top: var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);
|
|
51
|
+
}
|
|
52
|
+
sd-key-value-table .sd-key-value-table tbody > tr:first-child > .sd-key-value-table__th,
|
|
53
|
+
sd-key-value-table .sd-key-value-table tbody > tr:first-child > .sd-key-value-table__td {
|
|
54
|
+
border-top: 0;
|
|
55
|
+
}
|
|
56
|
+
sd-key-value-table .sd-key-value-table__th {
|
|
57
|
+
width: var(--sd-kvt-th-width);
|
|
58
|
+
background: var(--sd-kvt-th-bg);
|
|
59
|
+
color: var(--sd-kvt-th-color);
|
|
60
|
+
}
|
|
61
|
+
sd-key-value-table .sd-key-value-table__th-inner {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
gap: var(--sd-kvt-gap);
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
}
|
|
69
|
+
sd-key-value-table .sd-key-value-table__label {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: var(--sd-kvt-label-gap);
|
|
73
|
+
font-family: var(--sd-kvt-label-font-family);
|
|
74
|
+
font-size: var(--sd-kvt-label-font-size);
|
|
75
|
+
font-weight: var(--sd-kvt-label-font-weight);
|
|
76
|
+
line-height: var(--sd-kvt-label-line-height);
|
|
77
|
+
color: var(--sd-kvt-th-color);
|
|
78
|
+
}
|
|
79
|
+
sd-key-value-table .sd-key-value-table__required {
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
84
|
+
sd-key-value-table .sd-key-value-table__help {
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
}
|
|
89
|
+
sd-key-value-table .sd-key-value-table__td {
|
|
90
|
+
background: var(--sd-kvt-td-bg);
|
|
91
|
+
color: var(--sd-kvt-td-color);
|
|
92
|
+
}
|
|
93
|
+
sd-key-value-table .sd-key-value-table__td-inner {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 100%;
|
|
98
|
+
}
|
|
99
|
+
sd-key-value-table .sd-key-value-table__td-inner > slot {
|
|
100
|
+
display: block;
|
|
101
|
+
flex: 1 1 auto;
|
|
102
|
+
min-width: 0;
|
|
103
|
+
}
|
|
104
|
+
sd-key-value-table .sd-key-value-table__td-inner sd-input,
|
|
105
|
+
sd-key-value-table .sd-key-value-table__td-inner sd-textarea,
|
|
106
|
+
sd-key-value-table .sd-key-value-table__td-inner sd-number-input,
|
|
107
|
+
sd-key-value-table .sd-key-value-table__td-inner sd-select,
|
|
108
|
+
sd-key-value-table .sd-key-value-table__td-inner sd-date-picker,
|
|
109
|
+
sd-key-value-table .sd-key-value-table__td-inner sd-date-range-picker,
|
|
110
|
+
sd-key-value-table .sd-key-value-table__td-inner sd-file-picker {
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
sd-key-value-table .sd-key-value-table__text {
|
|
114
|
+
font-family: var(--sd-kvt-td-font-family);
|
|
115
|
+
font-size: var(--sd-kvt-td-font-size);
|
|
116
|
+
font-weight: var(--sd-kvt-td-font-weight);
|
|
117
|
+
line-height: var(--sd-kvt-td-line-height);
|
|
118
|
+
color: var(--sd-kvt-td-color);
|
|
119
|
+
}
|