@sellmate/design-system 1.9.0 → 1.11.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/design-system.cjs.js +2 -2
- package/dist/cjs/{index-C63F8C0_.js → index-erbAlKp-.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
- package/dist/cjs/{sd-button.config-WeoddlTQ.js → sd-button.config-eTAJM2iW.js} +17 -3
- package/dist/cjs/sd-button_2.cjs.entry.js +7 -6
- package/dist/cjs/sd-calendar_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-callout.cjs.entry.js +2 -2
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +274 -0
- package/dist/cjs/sd-chip.cjs.entry.js +15 -85
- package/dist/cjs/sd-chip.config-DiLoRpct.js +71 -0
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +10 -10
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
- package/dist/cjs/sd-divider.cjs.entry.js +2 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +10 -6
- package/dist/cjs/sd-field_3.cjs.entry.js +11 -10
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_2.cjs.entry.js +407 -0
- package/dist/cjs/sd-guide.cjs.entry.js +1 -1
- package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +9 -9
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- package/dist/cjs/sd-portal.cjs.entry.js +2 -2
- 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 +7 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +9 -9
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +7 -7
- package/dist/cjs/sd-tabs.cjs.entry.js +19 -6
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-DONQ8MML.js → tooltipArrow-CYf_WBPN.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- 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.config.js +9 -1
- package/dist/collection/components/sd-button/sd-button.css +6 -5
- package/dist/collection/components/sd-button/sd-button.js +5 -4
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.config.js +0 -1
- package/dist/collection/components/sd-chip/sd-chip.css +5 -0
- package/dist/collection/components/sd-chip/sd-chip.js +7 -5
- package/dist/collection/components/sd-chip-input/sd-chip-input.config.js +48 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +92 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +709 -0
- 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-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -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-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +3 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +4 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +5 -3
- package/dist/collection/components/sd-field/sd-field.js +6 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +21 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +27 -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-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.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 +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.config.js +3 -1
- package/dist/collection/components/sd-tabs/sd-tabs.css +29 -2
- package/dist/collection/components/sd-tabs/sd-tabs.js +27 -2
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- 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/components/index.js +1 -1
- package/dist/components/{p-PDLDFsH7.js → p-9S3tUKro.js} +1 -1
- package/dist/components/{p-C8MKSPNX.js → p-B-pYYTgJ.js} +1 -1
- package/dist/components/p-B0Aqa3rl.js +1 -0
- package/dist/components/{p-siTDlOb6.js → p-BFjxNqDj.js} +1 -1
- package/dist/components/p-Bc81OXqj.js +1 -0
- package/dist/components/p-Bd7NDNZR.js +1 -0
- package/dist/components/{p-Due8URWT.js → p-BdmCYhiG.js} +1 -1
- package/dist/components/{p-B8Z5qc_1.js → p-BkL6ut5U.js} +1 -1
- package/dist/components/p-BklUnzX5.js +1 -0
- package/dist/components/{p-BNkExhYB.js → p-BoXTUvyq.js} +1 -1
- package/dist/components/{p-CwUPCrDk.js → p-BzMV13Xr.js} +1 -1
- package/dist/components/{p-ipduET5U.js → p-C-0-0BCQ.js} +1 -1
- package/dist/components/{p-BnJJAhY6.js → p-C8vzShov.js} +1 -1
- package/dist/components/{p-DLNwV8Wa.js → p-C9pDOVrU.js} +1 -1
- package/dist/components/{p-BaOCZ7B6.js → p-CMVIH_LA.js} +1 -1
- package/dist/components/{p-C79Cowjq.js → p-CYJoJT1r.js} +1 -1
- package/dist/components/{p-CnCH_nnG.js → p-CZP1wFmE.js} +1 -1
- package/dist/components/{p-C2LhOf89.js → p-C_3H0ef6.js} +1 -1
- package/dist/components/{p-C_RL1gZR.js → p-CcyPWdvG.js} +1 -1
- package/dist/components/p-Ce3p4Wwc.js +1 -0
- package/dist/components/{p-pfGv13eX.js → p-CoX_ozJQ.js} +1 -1
- package/dist/components/p-CuuPUA52.js +1 -0
- package/dist/components/{p-BS1cT5dG.js → p-D8F2mTyh.js} +1 -1
- package/dist/components/{p-DjS-dtF5.js → p-D9fTZjTl.js} +1 -1
- package/dist/components/{p-CFL9Rfh8.js → p-DG5mmAZR.js} +1 -1
- package/dist/components/{p-B_FQcRtk.js → p-DRFcrZ_2.js} +1 -1
- package/dist/components/{p-7TYtYYrb.js → p-DRoYx4ox.js} +1 -1
- package/dist/components/p-DUaqwhdO.js +1 -0
- package/dist/components/{p-B3vmDhWb.js → p-DetgSxJr.js} +1 -1
- package/dist/components/p-Dp6NByuZ.js +1 -0
- package/dist/components/p-Dqabylmm.js +1 -0
- package/dist/components/{p-B5XCkCeg.js → p-Dt8isS3r.js} +1 -1
- package/dist/components/p-F7m_gfg2.js +1 -0
- package/dist/components/{p-yTY5CmAx.js → p-KENiwV56.js} +1 -1
- package/dist/components/{p-J57vnHhu.js → p-TD8DiYYC.js} +1 -1
- package/dist/components/p-ebOv6eVT.js +1 -0
- package/dist/components/{p-BDUIw6As.js → p-pt9ANL-l.js} +1 -1
- package/dist/components/p-vS--1dHy.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-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip-input.d.ts +11 -0
- package/dist/components/sd-chip-input.js +1 -0
- 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-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-19d47ac2.entry.js → p-01ee066e.entry.js} +1 -1
- package/dist/design-system/p-099b1fa6.entry.js +1 -0
- package/dist/design-system/p-1a06b680.entry.js +1 -0
- package/dist/design-system/{p-acfe5585.entry.js → p-29d72776.entry.js} +1 -1
- package/dist/design-system/{p-ff24fcb2.entry.js → p-308abc0e.entry.js} +1 -1
- package/dist/design-system/{p-e1ef1eb8.entry.js → p-3148fdbb.entry.js} +1 -1
- package/dist/design-system/{p-7b01d78b.entry.js → p-3c4396bf.entry.js} +1 -1
- package/dist/design-system/{p-86db28ce.entry.js → p-43d36198.entry.js} +1 -1
- package/dist/design-system/{p-21f654e3.entry.js → p-548b799f.entry.js} +1 -1
- package/dist/design-system/{p-11e99ac5.entry.js → p-56c6c243.entry.js} +1 -1
- package/dist/design-system/{p-a0daadc8.entry.js → p-5ea98503.entry.js} +1 -1
- package/dist/design-system/{p-a4fff652.entry.js → p-63d49ccb.entry.js} +1 -1
- package/dist/design-system/{p-b3b46576.entry.js → p-6785b122.entry.js} +1 -1
- package/dist/design-system/p-67a3f9ca.entry.js +1 -0
- package/dist/design-system/p-69c41f34.entry.js +1 -0
- package/dist/design-system/{p-cad22f63.entry.js → p-7ae98de4.entry.js} +1 -1
- package/dist/design-system/{p-362ac234.entry.js → p-7b3fec0d.entry.js} +1 -1
- package/dist/design-system/{p-f4597b6e.entry.js → p-7f0e8752.entry.js} +1 -1
- package/dist/design-system/{p-2ef3cd00.entry.js → p-845b95cc.entry.js} +1 -1
- package/dist/design-system/p-88f8fa16.entry.js +1 -0
- package/dist/design-system/{p-b456b9ac.entry.js → p-90997ca5.entry.js} +1 -1
- package/dist/design-system/{p-4ca63a2d.entry.js → p-929ba1b6.entry.js} +1 -1
- package/dist/design-system/{p-6716691b.entry.js → p-9470e031.entry.js} +1 -1
- package/dist/design-system/{p-90cc9785.entry.js → p-973eed65.entry.js} +1 -1
- package/dist/design-system/p-97fceb51.entry.js +1 -0
- package/dist/design-system/{p-f5eb4e2f.entry.js → p-9c658fdd.entry.js} +1 -1
- package/dist/design-system/{p-BpO2YWvq.js → p-D3yCWQNg.js} +1 -1
- package/dist/design-system/{p-CcVraVK0.js → p-DDgZHadT.js} +1 -1
- package/dist/design-system/p-DDj5KTBF.js +1 -0
- package/dist/design-system/p-DjcjlPt7.js +1 -0
- package/dist/design-system/p-acf7099e.entry.js +1 -0
- package/dist/design-system/p-b06e4b77.entry.js +1 -0
- package/dist/design-system/{p-a0607a9f.entry.js → p-b33b18c7.entry.js} +1 -1
- package/dist/design-system/{p-8926c5ec.entry.js → p-b5252a07.entry.js} +1 -1
- package/dist/design-system/{p-1dd139cb.entry.js → p-c068f61a.entry.js} +1 -1
- package/dist/design-system/p-c148947c.entry.js +1 -0
- package/dist/design-system/p-c4ebb7d1.entry.js +1 -0
- package/dist/design-system/{p-de743615.entry.js → p-cf301438.entry.js} +1 -1
- package/dist/design-system/{p-27f61c1f.entry.js → p-d3fc5510.entry.js} +1 -1
- package/dist/design-system/{p-95cce55d.entry.js → p-e0ea08ba.entry.js} +1 -1
- package/dist/design-system/{p-3eb72b33.entry.js → p-e53d6089.entry.js} +1 -1
- package/dist/design-system/{p-5b7ea330.entry.js → p-f22590e4.entry.js} +1 -1
- package/dist/design-system/{p-06344171.entry.js → p-f46d4199.entry.js} +1 -1
- package/dist/design-system/{p-7440fbe7.entry.js → p-f66f4eee.entry.js} +1 -1
- package/dist/design-system/{p-39a2bf05.entry.js → p-febd7c47.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BpO2YWvq.js → index-D3yCWQNg.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -2
- package/dist/esm/{sd-button.config-CdRvJ-Uc.js → sd-button.config-DjcjlPt7.js} +16 -3
- package/dist/esm/sd-button_2.entry.js +7 -6
- package/dist/esm/sd-calendar_2.entry.js +6 -6
- package/dist/esm/sd-callout.entry.js +2 -2
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +272 -0
- package/dist/esm/sd-chip.config-DDj5KTBF.js +67 -0
- package/dist/esm/sd-chip.entry.js +10 -80
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +10 -10
- package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
- package/dist/esm/sd-divider.entry.js +2 -2
- package/dist/esm/sd-dropdown-button.entry.js +10 -6
- package/dist/esm/sd-field_3.entry.js +11 -10
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_2.entry.js +404 -0
- package/dist/esm/sd-guide.entry.js +1 -1
- package/dist/esm/sd-key-value-table.entry.js +1 -1
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination_4.entry.js +9 -9
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +2 -2
- package/dist/esm/sd-portal.entry.js +2 -2
- 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 +7 -7
- package/dist/esm/sd-select_3.entry.js +9 -9
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-table.entry.js +7 -7
- package/dist/esm/sd-tabs.entry.js +19 -6
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{tooltipArrow-DrrY_fPj.js → tooltipArrow-CUCfrch1.js} +1 -1
- package/dist/types/components/sd-button/sd-button.config.d.ts +10 -2
- package/dist/types/components/sd-chip/sd-chip.config.d.ts +0 -1
- package/dist/types/components/sd-chip-input/sd-chip-input.config.d.ts +34 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +53 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +9 -1
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +1 -0
- package/dist/types/components/sd-tabs/sd-tabs.config.d.ts +3 -1
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +1 -0
- package/dist/types/components.d.ts +210 -0
- package/hydrate/index.js +463 -125
- package/hydrate/index.mjs +463 -125
- package/package.json +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +0 -179
- package/dist/cjs/sd-tag.cjs.entry.js +0 -227
- package/dist/components/p-B8QZRiYH.js +0 -1
- package/dist/components/p-BYgOJUk0.js +0 -1
- package/dist/components/p-BmmIQQlT.js +0 -1
- package/dist/components/p-CMUpMkva.js +0 -1
- package/dist/components/p-CeoBnd3w.js +0 -1
- package/dist/components/p-CpdFMy8s.js +0 -1
- package/dist/components/p-CqcGVHzJ.js +0 -1
- package/dist/components/p-CtxH9xQc.js +0 -1
- package/dist/components/p-DEfG8t7h.js +0 -1
- package/dist/components/p-DGCbSjhn.js +0 -1
- package/dist/components/p-DLeITJ-j.js +0 -1
- package/dist/components/p-DqXt80Qn.js +0 -1
- package/dist/design-system/p-0a225a4a.entry.js +0 -1
- package/dist/design-system/p-17d8457d.entry.js +0 -1
- package/dist/design-system/p-2bd09b2f.entry.js +0 -1
- package/dist/design-system/p-515e837b.entry.js +0 -1
- package/dist/design-system/p-5ee1e5e6.entry.js +0 -1
- package/dist/design-system/p-79e73305.entry.js +0 -1
- package/dist/design-system/p-97b16b63.entry.js +0 -1
- package/dist/design-system/p-CdRvJ-Uc.js +0 -1
- package/dist/design-system/p-a39016ac.entry.js +0 -1
- package/dist/design-system/p-d9c1ec16.entry.js +0 -1
- package/dist/design-system/p-de565b9f.entry.js +0 -1
- package/dist/esm/sd-ghost-button.entry.js +0 -177
- package/dist/esm/sd-tag.entry.js +0 -225
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
var index$1 = require('./index-BUvXpPc3.js');
|
|
5
5
|
var sdSelect_config = require('./sd-select.config-DrJ4LNVz.js');
|
|
6
6
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
@@ -265,15 +265,15 @@ const SdSelect = class {
|
|
|
265
265
|
this.closeDropdown();
|
|
266
266
|
},
|
|
267
267
|
};
|
|
268
|
-
return (index.h("sd-field", { key: '
|
|
268
|
+
return (index.h("sd-field", { key: 'd3c3175067494715963592806a150bebadd8970c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
269
269
|
this.hovered = true;
|
|
270
270
|
}, onMouseLeave: () => {
|
|
271
271
|
this.hovered = false;
|
|
272
|
-
} }, index.h("div", { key: '
|
|
272
|
+
} }, index.h("div", { key: 'c291b661a968375c341d26ac48f7ff7fd4947e3e', class: "sd-select", ref: el => {
|
|
273
273
|
this.triggerRef = el;
|
|
274
|
-
} }, index.h("sd-select-trigger", { key: '
|
|
274
|
+
} }, index.h("sd-select-trigger", { key: '45da184f72f989d9c6be05479fec7a616f168ddf', ref: el => {
|
|
275
275
|
this.triggerComponentRef = el;
|
|
276
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '
|
|
276
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: 'bd7a612cf9ef74e157336a8de0170cebb61074dc', ...portalProps }, index.h("sd-select-listbox", { key: '8117fab3ef6b2f5f77e74a234c6b21dfc2549df1', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
277
277
|
}
|
|
278
278
|
static get watchers() { return {
|
|
279
279
|
"isOpen": [{
|
|
@@ -640,9 +640,9 @@ const SdSelectListbox = class {
|
|
|
640
640
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
641
641
|
'--listbox-radius': `${sdSelect_config.LIST_BOX_LAYOUT.radius}px`,
|
|
642
642
|
};
|
|
643
|
-
return (index.h("div", { key: '
|
|
643
|
+
return (index.h("div", { key: '6c2cbad13f8aaa8c0552068c7cbc35a147bee77d', class: "sd-select-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-list-item-search", { key: '052d783e27e2458aa397c77fe891dad4a440f09e', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: 'bba95f3c4475d01a65562ba079c8666e3325195d', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
644
644
|
this.listEl = el;
|
|
645
|
-
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '
|
|
645
|
+
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '2f55bbacbed71952903599db0739773176ac55fd', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (index.h("div", { class: "sd-select-listbox__empty" }, sdSelect_config.EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
646
646
|
}
|
|
647
647
|
static get watchers() { return {
|
|
648
648
|
"searchKeyword": [{
|
|
@@ -702,7 +702,7 @@ const SdSelectTrigger = class {
|
|
|
702
702
|
? sdSelect_config.SELECT_COLORS.icon.disabled
|
|
703
703
|
: sdSelect_config.SELECT_COLORS.icon.default,
|
|
704
704
|
};
|
|
705
|
-
return (index.h("div", { key: '
|
|
705
|
+
return (index.h("div", { key: 'b5a4f750c00889d0d9b985211063fc6b20bc2e38', ref: el => {
|
|
706
706
|
this.triggerEl = el;
|
|
707
707
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
708
708
|
'sd-select-trigger': true,
|
|
@@ -713,7 +713,7 @@ const SdSelectTrigger = class {
|
|
|
713
713
|
e.preventDefault();
|
|
714
714
|
this.handleClick();
|
|
715
715
|
}
|
|
716
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '
|
|
716
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: 'be0b61c0550618602ef016504fa1672f7520fa93', class: "sd-select-trigger__content" }, hasValue && sdSelect_config.isHtmlLabel(this.displayText) ? (index.h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml.sanitizeInlineHtml(this.displayText)) })) : (index.h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), index.h("sd-icon", { key: '9d60c3eeae54ce6ed9609534e3530d0349d1a3ff', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
717
717
|
'sd-select-trigger__icon': true,
|
|
718
718
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
719
719
|
} }))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
|
|
5
5
|
var switchTokens = {
|
|
6
6
|
"switch": {
|
|
@@ -102,7 +102,7 @@ const SdSwitch = class {
|
|
|
102
102
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
103
103
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
104
104
|
};
|
|
105
|
-
return (index.h("label", { key: '
|
|
105
|
+
return (index.h("label", { key: '54ebe92b29a80537e2e4380ffe096a252f883d10', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, index.h("input", { key: 'd18abbbf293434f07ae7dfa18b983b47cac1b774', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), index.h("div", { key: '76fef910e632b541c0b33c508e6001529df5614f', class: "sd-switch__track" }, index.h("div", { key: 'a66f4ecca5787f00febe19216a93ec62916e0541', class: "sd-switch__knob" })), this.label && index.h("span", { key: '948d2b7afc6e171ee329752cb85f8e361f6bbed8', class: "sd-switch__label" }, this.label)));
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
var sdTable_config = require('./sd-table.config-BjJW74Zx.js');
|
|
6
6
|
require('./component.table-DIxmbGBT.js');
|
|
@@ -845,24 +845,24 @@ const SdTable = class {
|
|
|
845
845
|
'--table-selectable-width': `${sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
846
846
|
'--table-host-height': hostHeight,
|
|
847
847
|
};
|
|
848
|
-
return (index.h(index.Host, { key: '
|
|
848
|
+
return (index.h(index.Host, { key: '164ba96033be0195fa50e3d4d684059b9c471479', style: hostStyle }, index.h("div", { key: '2f1a1be73f86c72e7caa46981ee691d29bb237c7', class: "sd-table__container", style: {
|
|
849
849
|
'--table-width': this.width,
|
|
850
850
|
'--pagination-height': `${paginationHeight}px`,
|
|
851
|
-
} }, index.h("div", { key: '
|
|
851
|
+
} }, index.h("div", { key: '16976d24d4c21714183f9691b06c503b86388c54', class: {
|
|
852
852
|
'sd-table__wrapper': true,
|
|
853
853
|
'sd-table__wrapper--use-top': this.useTop,
|
|
854
|
-
} }, index.h("div", { key: '
|
|
854
|
+
} }, index.h("div", { key: 'fdd0dcfbff4c3a5e441d720d2e1a39a69c51f9cf', class: {
|
|
855
855
|
'sd-table__scroll-container': true,
|
|
856
856
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
857
857
|
'sd-table__scroll-container--no-data': isNoData,
|
|
858
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
858
|
+
} }, this.isLoading && (index.h("div", { key: 'facb26c0d1651d4a2a6e0dee5c1b8ca73586de89', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: '844b92fc9fc38f95d51092b698b67b685bcba076', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: '458c8e24b85c0e7c99afe940c3d5856e63bc582a', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: 'bd29a77ac11da7e5d513955a4c4baa0dd89a623d', class: "sd-table__no-data" }, index.h("div", { key: '7db0e8e3888e97638f3c78d560e844cc0f8b2944', class: "sd-table__no-data-content", ref: el => {
|
|
859
859
|
this.noDataContentEl = el;
|
|
860
860
|
if (el)
|
|
861
861
|
this.syncNoDataContentObserver();
|
|
862
|
-
} }, index.h("slot", { key: '
|
|
862
|
+
} }, index.h("slot", { key: 'fa175041907d4af7e5e0db7cad6e9a3e16e96901', name: "no-data" }, index.h("span", { key: '3fae3a23d86dc543502f74574a4b5c3f026b9992' }, this.resolvedNoDataLabel)))))), index.h("table", { key: '9ae98e0697e045b308f7e584fb496692acade8ba', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
863
863
|
this.pagination.rowsPerPage > 0 &&
|
|
864
864
|
this.rowCount > 0 &&
|
|
865
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
865
|
+
!this.useVirtualScroll && (index.h("div", { key: 'a0da779351490332035ec784bc301ea2cb017afd', class: "sd-table__pagination" }, index.h("sd-pagination", { key: '8c3bcd06e1644afaebabd3762cdb03900f727142', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: '4bff157ac6e0fb5efe03663d4bbf58d67f8308b6', value: this.useInternalPagination
|
|
866
866
|
? this.innerRowsPerPage
|
|
867
867
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
868
868
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -56,9 +56,15 @@ const tab = {
|
|
|
56
56
|
border: {
|
|
57
57
|
width: "1"
|
|
58
58
|
},
|
|
59
|
-
gap:
|
|
59
|
+
gap: {
|
|
60
|
+
horizontal: "24",
|
|
61
|
+
vertical: "16"
|
|
62
|
+
},
|
|
60
63
|
content: {
|
|
61
64
|
gap: "4"
|
|
65
|
+
},
|
|
66
|
+
item: {
|
|
67
|
+
height: "20"
|
|
62
68
|
}
|
|
63
69
|
}
|
|
64
70
|
};
|
|
@@ -97,9 +103,11 @@ const TAB_MAIN_TYPOGRAPHY = {
|
|
|
97
103
|
default: tabTokens.tab.main.default.typography,
|
|
98
104
|
};
|
|
99
105
|
const TAB_SUB_LAYOUT = {
|
|
100
|
-
|
|
106
|
+
gapHorizontal: Number(tabTokens.tab.sub.gap.horizontal),
|
|
107
|
+
gapVertical: Number(tabTokens.tab.sub.gap.vertical),
|
|
101
108
|
contentGap: Number(tabTokens.tab.sub.content.gap),
|
|
102
109
|
borderWidth: Number(tabTokens.tab.sub.border.width),
|
|
110
|
+
itemHeight: Number(tabTokens.tab.sub.item.height),
|
|
103
111
|
};
|
|
104
112
|
const TAB_SUB_COLORS = {
|
|
105
113
|
selected: {
|
|
@@ -115,7 +123,7 @@ const TAB_SUB_TYPOGRAPHY = {
|
|
|
115
123
|
default: tabTokens.tab.sub.default.typography,
|
|
116
124
|
};
|
|
117
125
|
|
|
118
|
-
const sdTabsCss = () => `sd-tabs{display:inline-block;width:100%}sd-tabs .sd-tabs{display:flex;flex-direction:row;gap:var(--sd-tabs-main-container-gap);border-bottom:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-selected-border);font-family:var(--sd-tabs-main-font-family)}sd-tabs .sd-tabs__tab{display:flex;align-items:center;justify-content:center;gap:var(--sd-tabs-main-gap);cursor:pointer;box-sizing:border-box;height:var(--sd-tabs-main-height);padding:0 var(--sd-tabs-main-padding-x);border:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-default-border);border-bottom:none;border-top-left-radius:var(--sd-tabs-main-radius);border-top-right-radius:var(--sd-tabs-main-radius);background-color:var(--sd-tabs-main-default-bg);color:var(--sd-tabs-main-default-text);font-size:var(--sd-tabs-main-font-size);line-height:var(--sd-tabs-main-line-height);font-weight:var(--sd-tabs-main-font-weight-default);transition:all 0.2s ease;position:relative;user-select:none}sd-tabs .sd-tabs__tab::before{content:"";position:absolute;inset:0;opacity:0;transition:all 0.2s;pointer-events:none}sd-tabs .sd-tabs__tab--selected{border-color:var(--sd-tabs-main-selected-border);color:var(--sd-tabs-main-selected-text);background-color:var(--sd-tabs-main-selected-bg)}sd-tabs .sd-tabs__tab--selected .sd-tabs__label::before{font-weight:var(--sd-tabs-main-font-weight-selected)}sd-tabs .sd-tabs__tab--selected:hover::before{background-color:var(--sd-tabs-main-selected-border);opacity:0.15}sd-tabs .sd-tabs__tab--unselected:hover::before{background-color:var(--sd-tabs-main-default-text);opacity:0.15}sd-tabs .sd-tabs__label{user-select:none;font-weight:var(--sd-tabs-main-font-weight-selected);visibility:hidden;position:relative;white-space:nowrap}sd-tabs .sd-tabs__label::before{content:attr(data-label);visibility:visible;position:absolute;inset:0;font-weight:var(--sd-tabs-main-font-weight-default);transition:font-weight 0.2s ease}sd-tabs .sd-tabs--sub{gap:var(--sd-tabs-sub-gap);border-bottom:none;font-family:var(--sd-tabs-sub-font-family)}sd-tabs .sd-tabs--sub .sd-tabs__tab{height:
|
|
126
|
+
const sdTabsCss = () => `sd-tabs{display:inline-block;width:100%}sd-tabs .sd-tabs{display:flex;flex-direction:row;gap:var(--sd-tabs-main-container-gap);border-bottom:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-selected-border);font-family:var(--sd-tabs-main-font-family)}sd-tabs .sd-tabs__tab{display:flex;align-items:center;justify-content:center;gap:var(--sd-tabs-main-gap);cursor:pointer;box-sizing:border-box;height:var(--sd-tabs-main-height);padding:0 var(--sd-tabs-main-padding-x);border:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-default-border);border-bottom:none;border-top-left-radius:var(--sd-tabs-main-radius);border-top-right-radius:var(--sd-tabs-main-radius);background-color:var(--sd-tabs-main-default-bg);color:var(--sd-tabs-main-default-text);font-size:var(--sd-tabs-main-font-size);line-height:var(--sd-tabs-main-line-height);font-weight:var(--sd-tabs-main-font-weight-default);transition:all 0.2s ease;position:relative;user-select:none}sd-tabs .sd-tabs__tab::before{content:"";position:absolute;inset:0;opacity:0;transition:all 0.2s;pointer-events:none}sd-tabs .sd-tabs__tab--selected{border-color:var(--sd-tabs-main-selected-border);color:var(--sd-tabs-main-selected-text);background-color:var(--sd-tabs-main-selected-bg)}sd-tabs .sd-tabs__tab--selected .sd-tabs__label::before{font-weight:var(--sd-tabs-main-font-weight-selected)}sd-tabs .sd-tabs__tab--selected:hover::before{background-color:var(--sd-tabs-main-selected-border);opacity:0.15}sd-tabs .sd-tabs__tab--unselected:hover::before{background-color:var(--sd-tabs-main-default-text);opacity:0.15}sd-tabs .sd-tabs__label{user-select:none;font-weight:var(--sd-tabs-main-font-weight-selected);visibility:hidden;position:relative;white-space:nowrap}sd-tabs .sd-tabs__label::before{content:attr(data-label);visibility:visible;position:absolute;inset:0;font-weight:var(--sd-tabs-main-font-weight-default);transition:font-weight 0.2s ease}sd-tabs .sd-tabs--sub{gap:var(--sd-tabs-sub-gap-horizontal);border-bottom:none;font-family:var(--sd-tabs-sub-font-family)}sd-tabs .sd-tabs--sub .sd-tabs__tab{height:var(--sd-tabs-sub-item-height);padding:0 0 var(--sd-tabs-sub-content-gap) 0;border:none;border-radius:0;background-color:transparent;color:var(--sd-tabs-sub-default-text);font-size:var(--sd-tabs-sub-font-size);line-height:var(--sd-tabs-sub-line-height);font-weight:var(--sd-tabs-sub-font-weight-default)}sd-tabs .sd-tabs--sub .sd-tabs__tab::before{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--sd-tabs-sub-border-width);width:100%;background-color:var(--sd-tabs-sub-selected-line);opacity:0;transition:opacity 0.2s ease;inset:auto 0 0 0;pointer-events:none}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected{color:var(--sd-tabs-sub-selected-text);background-color:transparent}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected::before{opacity:1}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected .sd-tabs__label::before{font-weight:var(--sd-tabs-sub-font-weight-selected)}sd-tabs .sd-tabs--sub .sd-tabs__label{font-weight:var(--sd-tabs-sub-font-weight-selected)}sd-tabs .sd-tabs--sub .sd-tabs__label::before{font-weight:var(--sd-tabs-sub-font-weight-default)}sd-tabs .sd-tabs--vertical{flex-direction:column;align-items:stretch;width:fit-content;border-bottom:none;border-right:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-selected-border)}sd-tabs .sd-tabs--vertical .sd-tabs__tab{justify-content:flex-start;border-bottom:var(--sd-tabs-main-border-width) solid var(--sd-tabs-main-default-border);border-right:none;border-top-right-radius:0;border-bottom-left-radius:var(--sd-tabs-main-radius)}sd-tabs .sd-tabs--vertical .sd-tabs__tab--selected{border-color:var(--sd-tabs-main-selected-border)}sd-tabs .sd-tabs--vertical.sd-tabs--sub{gap:var(--sd-tabs-sub-gap-vertical);border-right:none}sd-tabs .sd-tabs--vertical.sd-tabs--sub .sd-tabs__tab{justify-content:center;width:100%;border:none;border-radius:0}`;
|
|
119
127
|
|
|
120
128
|
const SdTabs = class {
|
|
121
129
|
constructor(hostRef) {
|
|
@@ -126,6 +134,7 @@ const SdTabs = class {
|
|
|
126
134
|
tabs = [];
|
|
127
135
|
size = 'md';
|
|
128
136
|
isSub = false;
|
|
137
|
+
vertical = false;
|
|
129
138
|
update;
|
|
130
139
|
valueChanged(newValue) {
|
|
131
140
|
this.value = newValue;
|
|
@@ -148,6 +157,8 @@ const SdTabs = class {
|
|
|
148
157
|
const classes = ['sd-tabs', `sd-tabs--${this.size ?? 'md'}`];
|
|
149
158
|
if (this.isSub)
|
|
150
159
|
classes.push('sd-tabs--sub');
|
|
160
|
+
if (this.vertical)
|
|
161
|
+
classes.push('sd-tabs--vertical');
|
|
151
162
|
return classes.join(' ');
|
|
152
163
|
}
|
|
153
164
|
getBadgeName(tab) {
|
|
@@ -174,7 +185,9 @@ const SdTabs = class {
|
|
|
174
185
|
'--sd-tabs-main-line-height': `${TAB_MAIN_TYPOGRAPHY.default.lineHeight}px`,
|
|
175
186
|
'--sd-tabs-main-font-weight-default': TAB_MAIN_TYPOGRAPHY.default.fontWeight,
|
|
176
187
|
'--sd-tabs-main-font-weight-selected': TAB_MAIN_TYPOGRAPHY.selected.fontWeight,
|
|
177
|
-
'--sd-tabs-sub-gap': `${TAB_SUB_LAYOUT.
|
|
188
|
+
'--sd-tabs-sub-gap-horizontal': `${TAB_SUB_LAYOUT.gapHorizontal}px`,
|
|
189
|
+
'--sd-tabs-sub-gap-vertical': `${TAB_SUB_LAYOUT.gapVertical}px`,
|
|
190
|
+
'--sd-tabs-sub-item-height': `${TAB_SUB_LAYOUT.itemHeight}px`,
|
|
178
191
|
'--sd-tabs-sub-content-gap': `${TAB_SUB_LAYOUT.contentGap}px`,
|
|
179
192
|
'--sd-tabs-sub-border-width': `${TAB_SUB_LAYOUT.borderWidth}px`,
|
|
180
193
|
'--sd-tabs-sub-selected-text': TAB_SUB_COLORS.selected.text,
|
|
@@ -188,7 +201,7 @@ const SdTabs = class {
|
|
|
188
201
|
};
|
|
189
202
|
}
|
|
190
203
|
render() {
|
|
191
|
-
return (index.h("div", { key: '
|
|
204
|
+
return (index.h("div", { key: '1c670c50ff7f5489a77043bc030fe3a65eb894ab', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
192
205
|
const badgeName = this.getBadgeName(tab);
|
|
193
206
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
194
207
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
|
|
6
6
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -158,7 +158,7 @@ const SdTd = class {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return (index.h(index.Host, { key: '
|
|
161
|
+
return (index.h(index.Host, { key: '95f97474c4d00a35085c558bf43593322a9f69e7', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: 'f67d1e8b125c10446dac3abdfa0da01bfb83f470' })));
|
|
162
162
|
}
|
|
163
163
|
static get watchers() { return {
|
|
164
164
|
"field": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_DURATION = 4000;
|
|
6
6
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -234,7 +234,7 @@ const SdToastContainer = class {
|
|
|
234
234
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
235
235
|
const indexMap = new Map();
|
|
236
236
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
237
|
-
return (index.h("div", { key: '
|
|
237
|
+
return (index.h("div", { key: '2b0bc86b7e2ea19a44f3c0b870ce5dec1de3a140', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
238
238
|
this.expanded = true;
|
|
239
239
|
this.pauseTimers();
|
|
240
240
|
}, onMouseLeave: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
|
|
5
5
|
const toast = {
|
|
6
6
|
icon: "16",
|
|
@@ -84,12 +84,12 @@ const SdToast = class {
|
|
|
84
84
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
85
85
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
86
86
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
87
|
-
return (index.h("div", { key: '
|
|
87
|
+
return (index.h("div", { key: '82c8063406a534e60c985d3c8321612077f75623', style: {
|
|
88
88
|
'--sd-toast-bg': typeConfig.bg,
|
|
89
89
|
'--sd-toast-text': typeConfig.content,
|
|
90
90
|
'--sd-toast-icon': iconColor,
|
|
91
91
|
'--sd-toast-link': linkColor,
|
|
92
|
-
} }, index.h("div", { key: '
|
|
92
|
+
} }, index.h("div", { key: 'e83c5b7ddc0edec3fb9e29325dcb52e3295fad4d', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: 'd249e5915f0c92a0a2cff43dee5c61d809ffc7f0', class: "sd-toast__icon" }, index.h("sd-icon", { key: '088da81d0083cc0ca72f2bf59392a72d3f2ed4de', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '5cad9a3a81b00d8926d92d9895c4cca1389dc63b', class: "sd-toast__content" }, index.h("span", { key: '1fbc72aac70fbb3bb630ad10343ea2c8f76f924c', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '769a85fa539bab8b478ef999cab615285a842085', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '77612614898b6abdade4b4599987cbb90bc09c4e', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '3bef6c0e7f3dec3f2b1f493f9c979a121bc897e9', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
SdToast.style = sdToastCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
|
|
5
5
|
const toggle = {
|
|
6
6
|
height: "28",
|
|
@@ -120,7 +120,7 @@ const SdToggle = class {
|
|
|
120
120
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
121
121
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
122
122
|
};
|
|
123
|
-
return (index.h("label", { key: '
|
|
123
|
+
return (index.h("label", { key: 'f61e80701bc85205794aec0c960965d29b94a247', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '26a31febfdae6bebe55291d3454a177366dc3db0', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-erbAlKp-.js');
|
|
4
4
|
|
|
5
5
|
const TooltipArrow = (props) => (index.h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, index.h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
6
6
|
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"components/sd-icon/sd-icon.js",
|
|
21
21
|
"components/sd-card/sd-card.js",
|
|
22
22
|
"components/sd-chip/sd-chip.js",
|
|
23
|
+
"components/sd-chip-input/sd-chip-input.js",
|
|
23
24
|
"components/sd-circle-progress/sd-circle-progress.js",
|
|
24
25
|
"components/sd-confirm-modal/sd-confirm-modal.js",
|
|
25
26
|
"components/sd-tag/sd-tag.js",
|
|
@@ -4,7 +4,7 @@ export class SdBadge {
|
|
|
4
4
|
color = 'blue';
|
|
5
5
|
render() {
|
|
6
6
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '0f337c449618a6182f00d9557305f42983610a98', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, h("div", { key: '68a559c01a6b65dab5bee08236d36bea565633a9', class: "sd-badge__dot" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "sd-badge"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -102,7 +102,7 @@ export class SdBarcodeInput {
|
|
|
102
102
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
103
103
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
104
104
|
};
|
|
105
|
-
return (h("sd-field", { key: '
|
|
105
|
+
return (h("sd-field", { key: '80a633774754f20f136ae6bd7319a7be69719155', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'a48fabe8c70f13337386f136e63c495aadbb4bf9', class: "sd-barcode-input__content" }, h("slot", { key: '5b192ccacd1cdb7b2736c422d56ab54cd2c90e0e', name: "prefix" }), h("input", { key: '01677b39141de0213c12160632a6b56da3671cbd', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '55a3a9e0cfa1ea615f3ca502c3e5bdf85d9f1a3d', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '5d410c58f7ec630051a39405e966663bb7aaa64b', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
106
106
|
if (this.disabled)
|
|
107
107
|
return;
|
|
108
108
|
this.internalValue = '';
|
|
@@ -144,7 +144,7 @@ export const PRESET_HOVER_BACKGROUNDS = {
|
|
|
144
144
|
danger: buttonTokens.button.danger.strong.bg.hover,
|
|
145
145
|
danger_outline: buttonTokens.button.danger.outline.bg.hover,
|
|
146
146
|
};
|
|
147
|
-
export const
|
|
147
|
+
export const PRESET_TEXT_COLORS = {
|
|
148
148
|
primary: buttonTokens.button.brand.strong.content,
|
|
149
149
|
secondary: buttonTokens.button.brand.subtle.content,
|
|
150
150
|
primary_outline: buttonTokens.button.brand.outline.content,
|
|
@@ -152,6 +152,14 @@ export const PRESET_CONTENT_COLORS = {
|
|
|
152
152
|
danger: buttonTokens.button.danger.strong.content,
|
|
153
153
|
danger_outline: buttonTokens.button.danger.outline.content,
|
|
154
154
|
};
|
|
155
|
+
export const PRESET_ICON_COLORS = {
|
|
156
|
+
primary: buttonTokens.button.brand.strong.content,
|
|
157
|
+
secondary: buttonTokens.button.brand.subtle.content,
|
|
158
|
+
primary_outline: buttonTokens.button.brand.outline.content,
|
|
159
|
+
neutral_outline: buttonTokens.button.neutral.outline.icon,
|
|
160
|
+
danger: buttonTokens.button.danger.strong.content,
|
|
161
|
+
danger_outline: buttonTokens.button.danger.outline.content,
|
|
162
|
+
};
|
|
155
163
|
export const PRESET_BORDER_COLORS = {
|
|
156
164
|
primary: 'transparent',
|
|
157
165
|
secondary: 'transparent',
|
|
@@ -17,9 +17,10 @@ sd-button {
|
|
|
17
17
|
--sd-button-bg: #025497;
|
|
18
18
|
--sd-button-bg-hover: #004177;
|
|
19
19
|
--sd-button-border: transparent;
|
|
20
|
-
--sd-button-
|
|
21
|
-
--sd-button-
|
|
22
|
-
--sd-button-current-
|
|
20
|
+
--sd-button-text: #FFFFFF;
|
|
21
|
+
--sd-button-icon: var(--sd-button-text);
|
|
22
|
+
--sd-button-current-text: var(--sd-button-text);
|
|
23
|
+
--sd-button-current-icon: var(--sd-button-icon);
|
|
23
24
|
display: inline-flex;
|
|
24
25
|
align-items: center;
|
|
25
26
|
justify-content: center;
|
|
@@ -29,7 +30,7 @@ sd-button {
|
|
|
29
30
|
border: var(--sd-button-button-border-width-default, 1px) solid var(--sd-button-border);
|
|
30
31
|
border-radius: var(--sd-button-button-radius-sm, 4px);
|
|
31
32
|
background: var(--sd-button-bg);
|
|
32
|
-
color: var(--sd-button-current-
|
|
33
|
+
color: var(--sd-button-current-text);
|
|
33
34
|
cursor: pointer;
|
|
34
35
|
box-sizing: border-box;
|
|
35
36
|
font-family: var(--sd-button-font-family);
|
|
@@ -110,7 +111,7 @@ sd-button {
|
|
|
110
111
|
.sd-button--disabled {
|
|
111
112
|
border-color: var(--sd-button-button-border-disabled, #CCCCCC);
|
|
112
113
|
background: var(--sd-button-button-bg-disabled, #E1E1E1);
|
|
113
|
-
--sd-button-current-
|
|
114
|
+
--sd-button-current-text: var(--sd-button-button-text-disabled, #888888);
|
|
114
115
|
--sd-button-current-icon: var(--sd-button-button-icon-disabled, #BBBBBB);
|
|
115
116
|
cursor: not-allowed;
|
|
116
117
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Icons } from "../assets/index";
|
|
3
|
-
import { BUTTON_CONFIG, BUTTON_FOCUS_RING_COLOR, BUTTON_ICON_SIZES, PRESET_BORDER_COLORS,
|
|
3
|
+
import { BUTTON_CONFIG, BUTTON_FOCUS_RING_COLOR, BUTTON_ICON_SIZES, PRESET_BORDER_COLORS, PRESET_TEXT_COLORS, PRESET_ICON_COLORS, PRESET_HOVER_BACKGROUNDS, getPresetName, isButtonName, } from "./sd-button.config";
|
|
4
4
|
const isValidIcon = (icon) => icon != null && icon in Icons;
|
|
5
5
|
export class SdButton {
|
|
6
6
|
name = 'primary_sm';
|
|
@@ -69,13 +69,14 @@ export class SdButton {
|
|
|
69
69
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
70
70
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
71
71
|
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
72
|
-
return (h("button", { key: '
|
|
72
|
+
return (h("button", { key: 'da3228e64ba27430283d55a49d3e13b2112929b6', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
73
73
|
'--sd-button-bg': config.color,
|
|
74
74
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
75
75
|
'--sd-button-border': PRESET_BORDER_COLORS[preset],
|
|
76
|
-
'--sd-button-
|
|
76
|
+
'--sd-button-text': PRESET_TEXT_COLORS[preset],
|
|
77
|
+
'--sd-button-icon': PRESET_ICON_COLORS[preset],
|
|
77
78
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
78
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
79
|
+
}, onClick: this.handleClick }, h("span", { key: '22f4dac854314abb3edf3f6d4746057337d2d1c6', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: 'cd88155fa1783071fe6bee390df47daa96133eab', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: '27798d8db1d633ef99572982bddf40fbca415ed7', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: '6393eb128f66a88b7ad1b5f2c1cec5654af07fae', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
|
|
79
80
|
}
|
|
80
81
|
static get is() { return "sd-button"; }
|
|
81
82
|
static get originalStyleUrls() {
|
|
@@ -173,7 +173,7 @@ export class SdCalendar {
|
|
|
173
173
|
const eventMap = this.eventMap;
|
|
174
174
|
const legend = this.legendItems;
|
|
175
175
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
176
|
-
return (h("div", { key: '
|
|
176
|
+
return (h("div", { key: 'e939d5fae94ff8f44bd2167abd78ac331359f35d', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, h("div", { key: '2dad0f6cfd58d1a4ce430142df0af56ed0a5cfa3', class: "sd-calendar__header" }, h("div", { key: '5d7424dc210f3ff9fa28ee5c24e958130449b798', class: "sd-calendar__nav-group" }, h("sd-ghost-button", { key: 'd15c0d1691492d0bbdb099893701c2538c183513', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: 'a2e936f9a4626bdd4d48bcd7b513e33f76d4affb', class: "sd-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: 'c4c50b1a3440ef2eeb1a0ed95c61d3f5b55ba055', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: 'ec677bd90799db7032f188b521c32f06688c8659', class: "sd-calendar__divider", "aria-hidden": "true" }), h("div", { key: 'd8ab3d1a8efa607ee6f8cd4c3af5ba2d2af31639', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, h("sd-ghost-button", { key: '1a76dcd9d9655bdac72d78a8bf6c40e546c9c4a1', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '08b4274631b31aa028f14f8d3ecd63d135c125d7', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: 'ec404faf07c03f7a1949d2379a1313e99b712883', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '98775d3b2d885492347dec3e13258b33936b92bc', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-calendar__week-cell" }, label)))), h("div", { key: '87a4739a0ddf26302d22bcb39b545cffab44dd09', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
177
177
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
178
178
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
179
179
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -186,8 +186,8 @@ export class SdCalendar {
|
|
|
186
186
|
'sd-calendar__day--disabled': isDisabled,
|
|
187
187
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, h("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (h("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (h("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
188
188
|
})), legend.length > 0 && [
|
|
189
|
-
h("span", { key: '
|
|
190
|
-
h("div", { key: '
|
|
189
|
+
h("span", { key: '9c1c21573694ca6702d19ba451c31cbdb47e727c', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
190
|
+
h("div", { key: 'dae2d35ea2971f6c7b1b3ec4774934efb2fcd168', class: "sd-calendar__legend" }, legend.map(item => (h("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, h("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), h("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
191
191
|
]));
|
|
192
192
|
}
|
|
193
193
|
static get is() { return "sd-calendar"; }
|
|
@@ -49,7 +49,7 @@ export class SdCallout {
|
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
51
|
const showTitle = this.type === 'danger';
|
|
52
|
-
return (h("div", { key: '
|
|
52
|
+
return (h("div", { key: '7fc363dc8a8621220cdf966af89a5aa8a55f4941', class: "sd-callout", style: this.calloutStyle, role: "note" }, showTitle && this.renderTitle(), h("div", { key: '69f8d46fc2e9c3f77c992fef98164c19f027b1f1', class: "sd-callout__body" }, this.renderBody())));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "sd-callout"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -3,7 +3,7 @@ export class SdCard {
|
|
|
3
3
|
bordered = false;
|
|
4
4
|
sdClass = '';
|
|
5
5
|
render() {
|
|
6
|
-
return (h(Fragment, { key: '
|
|
6
|
+
return (h(Fragment, { key: 'bf7511e8d9fccc98adf963ae20f59710bb0d00f3' }, h("div", { key: '729a6053062c3959ee1e9561f5673c8a75a4dc9d', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: '11ec4fa43f694901a85879ec04e146ace90be435' }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "sd-card"; }
|
|
9
9
|
static get originalStyleUrls() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
sd-chip {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
width: fit-content;
|
|
4
|
+
max-width: 100%;
|
|
4
5
|
height: fit-content;
|
|
5
6
|
}
|
|
6
7
|
sd-chip .sd-chip {
|
|
@@ -8,6 +9,7 @@ sd-chip .sd-chip {
|
|
|
8
9
|
align-items: center;
|
|
9
10
|
justify-content: center;
|
|
10
11
|
gap: var(--sd-chip-gap);
|
|
12
|
+
max-width: 100%;
|
|
11
13
|
height: var(--sd-chip-height);
|
|
12
14
|
padding: 0 var(--sd-chip-padding-x);
|
|
13
15
|
border-radius: var(--sd-chip-radius);
|
|
@@ -20,6 +22,7 @@ sd-chip .sd-chip {
|
|
|
20
22
|
line-height: var(--sd-chip-line-height);
|
|
21
23
|
box-sizing: border-box;
|
|
22
24
|
white-space: nowrap;
|
|
25
|
+
overflow: hidden;
|
|
23
26
|
-webkit-user-select: none;
|
|
24
27
|
user-select: none;
|
|
25
28
|
}
|
|
@@ -34,6 +37,8 @@ sd-chip .sd-chip__label {
|
|
|
34
37
|
display: inline-flex;
|
|
35
38
|
align-items: center;
|
|
36
39
|
min-width: 0;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
37
42
|
}
|
|
38
43
|
sd-chip .sd-chip__input {
|
|
39
44
|
display: inline-block;
|
|
@@ -126,10 +126,12 @@ export class SdChip {
|
|
|
126
126
|
handleInputKeyDown = (event) => {
|
|
127
127
|
if (event.key === 'Enter') {
|
|
128
128
|
event.preventDefault();
|
|
129
|
+
event.stopPropagation();
|
|
129
130
|
this.commitEdit();
|
|
130
131
|
}
|
|
131
132
|
else if (event.key === 'Escape') {
|
|
132
133
|
event.preventDefault();
|
|
134
|
+
event.stopPropagation();
|
|
133
135
|
this.cancelEdit();
|
|
134
136
|
}
|
|
135
137
|
};
|
|
@@ -190,22 +192,22 @@ export class SdChip {
|
|
|
190
192
|
}
|
|
191
193
|
render() {
|
|
192
194
|
const state = this.resolveState();
|
|
193
|
-
const typography =
|
|
195
|
+
const typography = CHIP_TYPOGRAPHY.default;
|
|
194
196
|
const cssVars = {
|
|
195
197
|
'--sd-chip-height': CHIP_LAYOUT.height,
|
|
196
198
|
'--sd-chip-padding-x': CHIP_LAYOUT.paddingX,
|
|
197
199
|
'--sd-chip-gap': CHIP_LAYOUT.gap,
|
|
198
200
|
'--sd-chip-radius': CHIP_LAYOUT.radius,
|
|
199
201
|
'--sd-chip-border-width': CHIP_LAYOUT.borderWidth,
|
|
200
|
-
'--sd-chip-bg': CHIP_COLORS.bg
|
|
201
|
-
'--sd-chip-content': CHIP_COLORS.content
|
|
202
|
-
'--sd-chip-border-color':
|
|
202
|
+
'--sd-chip-bg': state === 'error' ? CHIP_COLORS.bg.error : CHIP_COLORS.bg.default,
|
|
203
|
+
'--sd-chip-content': state === 'error' ? CHIP_COLORS.content.error : CHIP_COLORS.content.default,
|
|
204
|
+
'--sd-chip-border-color': 'transparent',
|
|
203
205
|
'--sd-chip-font-family': typography.fontFamily,
|
|
204
206
|
'--sd-chip-font-size': typography.fontSize,
|
|
205
207
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
206
208
|
'--sd-chip-line-height': typography.lineHeight,
|
|
207
209
|
};
|
|
208
|
-
return (h("span", { key: '
|
|
210
|
+
return (h("span", { key: 'e1c1386f3143f4830256784853c1d931706a6beb', class: {
|
|
209
211
|
'sd-chip': true,
|
|
210
212
|
[`sd-chip--${state}`]: true,
|
|
211
213
|
'sd-chip--disabled': this.disabled,
|