@sellmate/design-system 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{component.datepicker-CUQbDSku.js → component.datepicker-zFTQQKMH.js} +1 -2
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-D12oddge.js → index-iiJZMzVM.js} +1 -15
- 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 +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +33 -36
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{sd-date-picker.config-De7ahWIs.js → sd-date-picker.config-Chrd8c4v.js} +1 -1
- package/dist/cjs/{sd-date-picker_7.cjs.entry.js → sd-date-picker_8.cjs.entry.js} +327 -18
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +4 -4
- package/dist/cjs/sd-divider.cjs.entry.js +3 -3
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-field_3.cjs.entry.js +9 -9
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-key-value-table.cjs.entry.js +88 -18
- 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 +16 -2
- package/dist/cjs/sd-pagination.cjs.entry.js +173 -0
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +3 -3
- 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_3.cjs.entry.js → sd-select-list-item_4.cjs.entry.js} +294 -315
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-tabs.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/{system-MjrAugX-.js → system-B4KkVpu2.js} +1 -7
- package/dist/cjs/{tooltipArrow-Dda4ik0V.js → tooltipArrow-DOOcBlLp.js} +1 -1
- package/dist/cjs/{useDatePicker-iMd6WToc.js → useDatePicker-CgpIfwLA.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -5
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.css +1 -0
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +3 -0
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +35 -59
- 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-field/sd-field.js +4 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +6 -6
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +2 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +5 -1
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +65 -15
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +15 -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-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-tabs/sd-tabs.js +1 -1
- 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-pwGA4sDj.js → p-9Ap2W-Mi.js} +1 -1
- package/dist/components/p-BFVfSW9t.js +1 -0
- package/dist/components/{p-BuADVB78.js → p-BHjezpAC.js} +1 -1
- package/dist/components/{p-CHHlQceE.js → p-BIEPMPWA.js} +1 -1
- package/dist/components/{p-CMvHDxR5.js → p-BKu0I6Io.js} +1 -1
- package/dist/components/{p-B3HYnTGx.js → p-B_Zwr4Et.js} +1 -1
- package/dist/components/{p-BysikR_g.js → p-Bpv90tfa.js} +1 -1
- package/dist/components/p-Bth2l1cy.js +1 -0
- package/dist/components/{p-DNbbdJIc.js → p-C7mC7a1z.js} +1 -1
- package/dist/components/{p-B2pYDEK7.js → p-CBoDoYDO.js} +1 -1
- package/dist/components/p-CErFctrV.js +1 -0
- package/dist/components/{p-ClD0nx1l.js → p-CFTyEfB9.js} +1 -1
- package/dist/components/{p-1i6Q61TF.js → p-CSr33M9s.js} +1 -1
- package/dist/components/{p-C0tnN4yn.js → p-CYMMLsGt.js} +1 -1
- package/dist/components/{p-l9RiSWRc.js → p-C_SG4M4z.js} +1 -1
- package/dist/components/{p-BE6ymp9E.js → p-C_in6AVN.js} +1 -1
- package/dist/components/{p-BAVsc1Ml.js → p-CbS69IvC.js} +1 -1
- package/dist/components/{p-BWHQn4fD.js → p-CgSXYw_0.js} +1 -1
- package/dist/components/{p-BQ4Okfcm.js → p-CmRF12Fy.js} +1 -1
- package/dist/components/{p-DbPS61bp.js → p-CnRfET5y.js} +1 -1
- package/dist/components/{p-Bxb7TcZh.js → p-Cvsrc0be.js} +1 -1
- package/dist/components/{p-BCxePXvg.js → p-DJ8z7_EG.js} +1 -1
- package/dist/components/{p-paSLRXAR.js → p-DJmxpVkK.js} +1 -1
- package/dist/components/{p-IDlLs_KA.js → p-DMoFncVl.js} +1 -1
- package/dist/components/{p-B-pJW3nY.js → p-DN7MAx-q.js} +1 -1
- package/dist/components/{p-E8OA_psS.js → p-DS6NVBvu.js} +1 -1
- package/dist/components/{p-BNHhtZUf.js → p-D_56BjcD.js} +1 -1
- package/dist/components/{p-CTDPl65u.js → p-Dg1UrMqI.js} +1 -1
- package/dist/components/{p-BKV1WAFb.js → p-Di1q4f5E.js} +1 -1
- package/dist/components/{p-Bgxca9o5.js → p-OO7xxhkC.js} +1 -1
- package/dist/components/{p-vtuEYpc6.js → p-R-Sdglj0.js} +1 -1
- package/dist/components/p-Uh9emYrV.js +1 -0
- package/dist/components/{p-CSh-DcM7.js → p-f0aBxUBG.js} +1 -1
- package/dist/components/{p-BnI9HUOv.js → p-idG6CMO0.js} +1 -1
- package/dist/components/p-oYbVr-z0.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.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-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-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.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/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-fbeed0e4.entry.js → p-02f0b906.entry.js} +1 -1
- package/dist/design-system/{p-4970f1ff.entry.js → p-0c1d1a15.entry.js} +1 -1
- package/dist/design-system/{p-75726e20.entry.js → p-0e014b76.entry.js} +1 -1
- package/dist/design-system/{p-91f7be74.entry.js → p-1b5fcf7b.entry.js} +1 -1
- package/dist/design-system/{p-5687ed0c.entry.js → p-1ed1bfa1.entry.js} +1 -1
- package/dist/design-system/{p-bbd24816.entry.js → p-246aafb9.entry.js} +1 -1
- package/dist/design-system/p-26a27312.entry.js +1 -0
- package/dist/design-system/{p-5c8f4d9c.entry.js → p-2a4d2ee0.entry.js} +1 -1
- package/dist/design-system/{p-b831eded.entry.js → p-2d6a7d7b.entry.js} +1 -1
- package/dist/design-system/{p-2553bb1f.entry.js → p-3595cafb.entry.js} +1 -1
- package/dist/design-system/p-3cd2751a.entry.js +1 -0
- package/dist/design-system/p-4b474538.entry.js +1 -0
- package/dist/design-system/{p-bab692c6.entry.js → p-4c85f6f6.entry.js} +1 -1
- package/dist/design-system/{p-67f19734.entry.js → p-53fe2741.entry.js} +1 -1
- package/dist/design-system/{p-58ec51db.entry.js → p-55c0be7d.entry.js} +1 -1
- package/dist/design-system/p-5a257ed9.entry.js +1 -0
- package/dist/design-system/{p-a938ffee.entry.js → p-840006b1.entry.js} +1 -1
- package/dist/design-system/{p-9c0bca09.entry.js → p-86329ae3.entry.js} +1 -1
- package/dist/design-system/{p-287d8016.entry.js → p-8de3b502.entry.js} +1 -1
- package/dist/design-system/{p-071e73e0.entry.js → p-8ed1d470.entry.js} +1 -1
- package/dist/design-system/{p-D2S9Zafz.js → p-B91K50wC.js} +1 -1
- package/dist/design-system/{p-BqWuC4-J.js → p-BPKiBSGr.js} +1 -1
- package/dist/design-system/p-BhcvMs8c.js +1 -0
- package/dist/design-system/p-Bth2l1cy.js +1 -0
- package/dist/design-system/p-Dz490Ukt.js +2 -0
- package/dist/design-system/{p-d7e302af.entry.js → p-a631cd78.entry.js} +1 -1
- package/dist/design-system/p-adf2f398.entry.js +1 -0
- package/dist/design-system/{p-750a9112.entry.js → p-b585f94b.entry.js} +1 -1
- package/dist/design-system/p-be54fd3a.entry.js +1 -0
- package/dist/design-system/{p-0b8c86c3.entry.js → p-c1066f40.entry.js} +1 -1
- package/dist/design-system/{p-26f2f4c2.entry.js → p-c5cffcc6.entry.js} +1 -1
- package/dist/design-system/{p-3b3a46cd.entry.js → p-c7d2c195.entry.js} +1 -1
- package/dist/design-system/{p-d6b3d78b.entry.js → p-cb6ab65c.entry.js} +1 -1
- package/dist/design-system/{p-1230b51b.entry.js → p-d204cac5.entry.js} +1 -1
- package/dist/design-system/p-d2ce01ac.entry.js +1 -0
- package/dist/design-system/{p-84d0181b.entry.js → p-d51f4170.entry.js} +1 -1
- package/dist/design-system/{p-61f5d5ea.entry.js → p-d9f33192.entry.js} +1 -1
- package/dist/design-system/{p-c5502585.entry.js → p-e7740a5f.entry.js} +1 -1
- package/dist/design-system/p-e85bf462.entry.js +1 -0
- package/dist/design-system/{p-d4e2f412.entry.js → p-ea008087.entry.js} +1 -1
- package/dist/design-system/{p-70608fec.entry.js → p-ec4ad48c.entry.js} +1 -1
- package/dist/design-system/{p-fa967329.entry.js → p-f962e5d2.entry.js} +1 -1
- package/dist/esm/{component.datepicker-laVsm9VM.js → component.datepicker-BOxGhKKP.js} +1 -2
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-DDNBPrZh.js → index-Dz490Ukt.js} +2 -14
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +6 -6
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +2 -2
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +3 -3
- package/dist/esm/sd-confirm-modal_2.entry.js +33 -36
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{sd-date-picker.config-D-ks6qNf.js → sd-date-picker.config-krRuSUsA.js} +1 -1
- package/dist/esm/{sd-date-picker_7.entry.js → sd-date-picker_8.entry.js} +327 -19
- package/dist/esm/sd-date-range-picker-calendar.entry.js +4 -4
- package/dist/esm/sd-divider.entry.js +3 -3
- package/dist/esm/sd-dropdown-button.entry.js +2 -2
- package/dist/esm/sd-field_3.entry.js +9 -9
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-key-value-table.entry.js +87 -17
- 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 +16 -2
- package/dist/esm/sd-pagination.entry.js +171 -0
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/{sd-select_3.entry.js → sd-select-list-item_4.entry.js} +277 -299
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-tabs.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/{system-BJfiMC9H.js → system-Bth2l1cy.js} +1 -7
- package/dist/esm/{tooltipArrow-blL0aWPE.js → tooltipArrow-CEHVt90h.js} +1 -1
- package/dist/esm/{useDatePicker-DoUg--aq.js → useDatePicker-BG0lUGJG.js} +1 -1
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +10 -10
- package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +22 -3
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +9 -1
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +3 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +2 -0
- package/dist/types/components.d.ts +17 -696
- package/dist/types/index.d.ts +0 -1
- package/hydrate/index.js +173 -2217
- package/hydrate/index.mjs +173 -2217
- package/package.json +1 -1
- package/dist/cjs/component.table-POXY492T.js +0 -72
- package/dist/cjs/constants-DJRV1upE.js +0 -5
- package/dist/cjs/sd-pagination_4.cjs.entry.js +0 -858
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +0 -173
- package/dist/cjs/sd-select.config-omyxekRa.js +0 -144
- package/dist/cjs/sd-table.cjs.entry.js +0 -956
- package/dist/cjs/sd-table.config-DFy_S4bc.js +0 -83
- package/dist/cjs/sd-td.cjs.entry.js +0 -201
- package/dist/collection/components/sd-table/constants.js +0 -1
- package/dist/collection/components/sd-table/sd-table.config.js +0 -88
- package/dist/collection/components/sd-table/sd-table.css +0 -180
- package/dist/collection/components/sd-table/sd-table.js +0 -1709
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +0 -242
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +0 -10
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +0 -110
- package/dist/collection/components/sd-table/sd-td/sd-td.css +0 -15
- package/dist/collection/components/sd-table/sd-td/sd-td.js +0 -381
- package/dist/collection/components/sd-table/sd-thead/sd-thead.css +0 -186
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +0 -629
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +0 -145
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +0 -530
- package/dist/components/p-5pkzwl5N.js +0 -1
- package/dist/components/p-B6ezDhRg.js +0 -1
- package/dist/components/p-BJfiMC9H.js +0 -1
- package/dist/components/p-BSxleKw8.js +0 -1
- package/dist/components/p-BUgGuigd.js +0 -1
- package/dist/components/p-BZXgIBUG.js +0 -1
- package/dist/components/p-Cf62Nvrx.js +0 -1
- package/dist/components/p-DckXBMgo.js +0 -1
- package/dist/components/p-DmAnTwUx.js +0 -1
- package/dist/components/p-PFLrdhQj.js +0 -1
- package/dist/components/p-sZMi_32I.js +0 -1
- package/dist/components/p-yxZBh03f.js +0 -1
- package/dist/components/sd-table.d.ts +0 -11
- package/dist/components/sd-table.js +0 -1
- package/dist/components/sd-tbody.d.ts +0 -11
- package/dist/components/sd-tbody.js +0 -1
- package/dist/components/sd-td.d.ts +0 -11
- package/dist/components/sd-td.js +0 -1
- package/dist/components/sd-thead.d.ts +0 -11
- package/dist/components/sd-thead.js +0 -1
- package/dist/components/sd-tr.d.ts +0 -11
- package/dist/components/sd-tr.js +0 -1
- package/dist/design-system/p-0048de73.entry.js +0 -1
- package/dist/design-system/p-20f69606.entry.js +0 -1
- package/dist/design-system/p-27197194.entry.js +0 -1
- package/dist/design-system/p-5pkzwl5N.js +0 -1
- package/dist/design-system/p-7abf62f3.entry.js +0 -1
- package/dist/design-system/p-7ae27a26.entry.js +0 -1
- package/dist/design-system/p-94d6b7b4.entry.js +0 -1
- package/dist/design-system/p-9b21773a.entry.js +0 -1
- package/dist/design-system/p-BJfiMC9H.js +0 -1
- package/dist/design-system/p-CRWmn35N.js +0 -1
- package/dist/design-system/p-Cf62Nvrx.js +0 -1
- package/dist/design-system/p-CuAh9n2o.js +0 -1
- package/dist/design-system/p-DDNBPrZh.js +0 -2
- package/dist/design-system/p-a12d7362.entry.js +0 -1
- package/dist/design-system/p-c81898a0.entry.js +0 -1
- package/dist/design-system/p-dbfa3931.entry.js +0 -1
- package/dist/design-system/p-f16985c9.entry.js +0 -1
- package/dist/design-system/p-sZMi_32I.js +0 -1
- package/dist/esm/component.table-5pkzwl5N.js +0 -70
- package/dist/esm/constants-sZMi_32I.js +0 -3
- package/dist/esm/sd-pagination_4.entry.js +0 -853
- package/dist/esm/sd-select-list-item_2.entry.js +0 -170
- package/dist/esm/sd-select.config-CeHGlqOT.js +0 -129
- package/dist/esm/sd-table.config-DmOBlnsM.js +0 -70
- package/dist/esm/sd-table.entry.js +0 -954
- package/dist/esm/sd-td.entry.js +0 -199
- package/dist/types/components/sd-table/constants.d.ts +0 -50
- package/dist/types/components/sd-table/sd-table.config.d.ts +0 -71
- package/dist/types/components/sd-table/sd-table.d.ts +0 -199
- package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +0 -39
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +0 -15
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +0 -38
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +0 -62
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +0 -54
- /package/dist/components/{p-laVsm9VM.js → p-BOxGhKKP.js} +0 -0
- /package/dist/design-system/{p-laVsm9VM.js → p-BOxGhKKP.js} +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-DDNBPrZh.js';
|
|
2
|
-
import { g as LIST_ITEM_LAYOUT, i as isHtmlLabel, h as LIST_ITEM_TYPOGRAPHY, j as LIST_ITEM_COLORS, k as SEARCH_DEBOUNCE_MS } from './sd-select.config-CeHGlqOT.js';
|
|
3
|
-
import { s as sanitizeInlineHtml } from './sanitize-inline-html-BE4tnQ2Z.js';
|
|
4
|
-
import './component.listItem-4S0_Ykmo.js';
|
|
5
|
-
import './component.listBox-DlJaYVWf.js';
|
|
6
|
-
|
|
7
|
-
const sdSelectListItemCss = () => `sd-select-list-item{display:block}sd-select-list-item .sd-select-list-item{display:flex;align-items:center;gap:var(--list-item-gap);padding:var(--list-item-padding-y) var(--list-item-padding-right) var(--list-item-padding-y) var(--list-item-padding-left);font-size:var(--list-item-font-size);line-height:var(--list-item-line-height);font-weight:var(--list-item-font-weight);background:var(--list-item-bg);color:var(--list-item-color);cursor:default;user-select:none}sd-select-list-item .sd-select-list-item--selectable{cursor:pointer}sd-select-list-item .sd-select-list-item--depth1-group{border-top:var(--list-item-border-top);font-weight:700}sd-select-list-item .sd-select-list-item--depth2-group{font-weight:500}sd-select-list-item .sd-select-list-item--focused.sd-select-list-item--selectable:not(.sd-select-list-item--disabled){background:var(--list-item-bg-hover);color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--selected:not(.sd-select-list-item--group){font-weight:var(--list-item-font-weight-selected);color:var(--list-item-color-selected)}sd-select-list-item .sd-select-list-item--selected.sd-select-list-item--focused{color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--disabled{color:var(--list-item-color-disabled);cursor:not-allowed}sd-select-list-item .sd-select-list-item__label{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-select-list-item .sd-select-list-item__count{flex-shrink:0;font-weight:500;color:var(--list-item-color-disabled)}sd-select-list-item .sd-select-list-item--group.sd-select-list-item--focused .sd-select-list-item__count{color:#ffffff}sd-select-list-item .sd-select-list-item__checkbox{flex-shrink:0}`;
|
|
8
|
-
|
|
9
|
-
const SdSelectListItem = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
registerInstance(this, hostRef);
|
|
12
|
-
this.listItemClick = createEvent(this, "sdListItemClick", 7);
|
|
13
|
-
}
|
|
14
|
-
/** 렌더링할 옵션 데이터 */
|
|
15
|
-
option;
|
|
16
|
-
/** 계층 깊이 (1~3) */
|
|
17
|
-
depth = 1;
|
|
18
|
-
/** 선택 상태 (null=중간) */
|
|
19
|
-
isSelected = false;
|
|
20
|
-
/** 키보드 포커스 상태 여부 */
|
|
21
|
-
isFocused = false;
|
|
22
|
-
/** 체크박스 표시 여부 */
|
|
23
|
-
useCheckbox = false;
|
|
24
|
-
/** 다중 선택 시 (선택/전체) 카운트 */
|
|
25
|
-
countInfo;
|
|
26
|
-
/** 항목 클릭 시 발생합니다. */
|
|
27
|
-
listItemClick;
|
|
28
|
-
get isGroup() {
|
|
29
|
-
return !!this.option.children;
|
|
30
|
-
}
|
|
31
|
-
get isSelectable() {
|
|
32
|
-
return !this.isGroup || this.useCheckbox;
|
|
33
|
-
}
|
|
34
|
-
get depthKey() {
|
|
35
|
-
if (this.depth <= 1)
|
|
36
|
-
return 'depth1';
|
|
37
|
-
if (this.depth === 2)
|
|
38
|
-
return 'depth2';
|
|
39
|
-
return 'depth3';
|
|
40
|
-
}
|
|
41
|
-
get paddingLeft() {
|
|
42
|
-
return `${LIST_ITEM_LAYOUT.paddingLeft[this.depthKey]}px`;
|
|
43
|
-
}
|
|
44
|
-
handleClick = (e) => {
|
|
45
|
-
e.stopPropagation();
|
|
46
|
-
if (this.option.disabled || !this.isSelectable)
|
|
47
|
-
return;
|
|
48
|
-
this.listItemClick.emit(this.option);
|
|
49
|
-
};
|
|
50
|
-
handleCheckboxClick = (e) => {
|
|
51
|
-
e.stopPropagation();
|
|
52
|
-
};
|
|
53
|
-
handleCheckboxUpdate = (e) => {
|
|
54
|
-
e.stopPropagation();
|
|
55
|
-
if (this.option.disabled || !this.isSelectable)
|
|
56
|
-
return;
|
|
57
|
-
this.listItemClick.emit(this.option);
|
|
58
|
-
};
|
|
59
|
-
render() {
|
|
60
|
-
const isGroup = this.isGroup;
|
|
61
|
-
const isDepth1Group = isGroup && this.depth === 1;
|
|
62
|
-
const isDepth2Group = isGroup && this.depth === 2;
|
|
63
|
-
const cssVars = {
|
|
64
|
-
'--list-item-padding-y': `${LIST_ITEM_LAYOUT.paddingY}px`,
|
|
65
|
-
'--list-item-padding-left': this.paddingLeft,
|
|
66
|
-
'--list-item-padding-right': `${LIST_ITEM_LAYOUT.paddingRight}px`,
|
|
67
|
-
'--list-item-gap': `${LIST_ITEM_LAYOUT.gap}px`,
|
|
68
|
-
'--list-item-font-size': `${LIST_ITEM_TYPOGRAPHY.fontSize}px`,
|
|
69
|
-
'--list-item-line-height': `${LIST_ITEM_TYPOGRAPHY.lineHeight}px`,
|
|
70
|
-
'--list-item-font-weight': LIST_ITEM_TYPOGRAPHY.fontWeight,
|
|
71
|
-
'--list-item-bg': isDepth1Group
|
|
72
|
-
? LIST_ITEM_COLORS.depth1.bg
|
|
73
|
-
: isDepth2Group
|
|
74
|
-
? LIST_ITEM_COLORS.depth2.bg
|
|
75
|
-
: LIST_ITEM_COLORS.bg.default,
|
|
76
|
-
'--list-item-bg-hover': LIST_ITEM_COLORS.bg.hover,
|
|
77
|
-
'--list-item-color': LIST_ITEM_COLORS.content.default,
|
|
78
|
-
'--list-item-color-hover': LIST_ITEM_COLORS.content.hover,
|
|
79
|
-
'--list-item-color-disabled': LIST_ITEM_COLORS.content.disabled,
|
|
80
|
-
'--list-item-color-selected': LIST_ITEM_COLORS.content.selected,
|
|
81
|
-
'--list-item-font-weight-selected': LIST_ITEM_TYPOGRAPHY.selectedFontWeight,
|
|
82
|
-
};
|
|
83
|
-
if (isDepth1Group) {
|
|
84
|
-
cssVars['--list-item-border-top'] =
|
|
85
|
-
`${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
86
|
-
}
|
|
87
|
-
return (
|
|
88
|
-
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
89
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
90
|
-
h("div", { key: '0e0a07c33c9e6718771ba8cc27d62e4909434562', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
91
|
-
'sd-select-list-item': true,
|
|
92
|
-
'sd-select-list-item--group': isGroup,
|
|
93
|
-
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
94
|
-
'sd-select-list-item--depth2-group': isDepth2Group,
|
|
95
|
-
'sd-select-list-item--selected': this.isSelected === true,
|
|
96
|
-
'sd-select-list-item--indeterminate': this.isSelected === null,
|
|
97
|
-
'sd-select-list-item--focused': this.isFocused,
|
|
98
|
-
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
99
|
-
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
100
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'd3078da8737c28b279f2057c06266710af6191cd', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '36b88dbda0d2bbd27b5df60eaaa855ebe77e0905', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
SdSelectListItem.style = sdSelectListItemCss();
|
|
104
|
-
|
|
105
|
-
const sdSelectListItemSearchCss = () => `sd-select-list-item-search{display:block}sd-select-list-item-search .sd-select-list-item-search{padding:4px 8px;position:sticky;top:0;z-index:1;background:white}sd-select-list-item-search .sd-select-list-item-search--scrolled{box-shadow:0 2px 4px rgba(0, 0, 0, 0.08)}sd-select-list-item-search .sd-select-list-item-search__inner{display:flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #cccccc;border-radius:4px;background:white}sd-select-list-item-search .sd-select-list-item-search__inner:focus-within{border-color:#0075ff}sd-select-list-item-search .sd-select-list-item-search__icon{flex-shrink:0}sd-select-list-item-search .sd-select-list-item-search__input{flex:1;border:none;outline:none;font-size:12px;line-height:20px;color:#222222;background:transparent;min-width:0}sd-select-list-item-search .sd-select-list-item-search__input::placeholder{color:#aaaaaa}sd-select-list-item-search .sd-select-list-item-search__clear{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:2px;border:none;background:transparent;cursor:pointer;border-radius:2px}sd-select-list-item-search .sd-select-list-item-search__clear:hover{background:#f0f0f0}sd-select-list-item-search .sd-select-list-item-search__clear--hidden{visibility:hidden;pointer-events:none}`;
|
|
106
|
-
|
|
107
|
-
const SdSelectListItemSearch = class {
|
|
108
|
-
constructor(hostRef) {
|
|
109
|
-
registerInstance(this, hostRef);
|
|
110
|
-
this.searchFilter = createEvent(this, "sdSearchFilter", 7);
|
|
111
|
-
this.searchFocus = createEvent(this, "sdSearchFocus", 7);
|
|
112
|
-
}
|
|
113
|
-
/** 리스트가 스크롤된 상태 여부 (그림자 효과용) */
|
|
114
|
-
isScrolled = false;
|
|
115
|
-
searchText = '';
|
|
116
|
-
/** 검색어가 변경될 때 발생합니다. */
|
|
117
|
-
searchFilter;
|
|
118
|
-
/** 검색 입력에 포커스될 때 발생합니다. */
|
|
119
|
-
searchFocus;
|
|
120
|
-
inputEl;
|
|
121
|
-
debounceTimer;
|
|
122
|
-
focusRafId;
|
|
123
|
-
componentDidLoad() {
|
|
124
|
-
requestAnimationFrame(() => {
|
|
125
|
-
this.focusRafId = requestAnimationFrame(() => {
|
|
126
|
-
this.inputEl?.focus();
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
/** 검색 입력에 포커스를 이동합니다. */
|
|
131
|
-
async sdFocus() {
|
|
132
|
-
this.inputEl?.focus();
|
|
133
|
-
}
|
|
134
|
-
handleInput = (e) => {
|
|
135
|
-
this.searchText = e.target.value;
|
|
136
|
-
if (this.debounceTimer)
|
|
137
|
-
clearTimeout(this.debounceTimer);
|
|
138
|
-
this.debounceTimer = setTimeout(() => {
|
|
139
|
-
this.searchFilter.emit(this.searchText);
|
|
140
|
-
}, SEARCH_DEBOUNCE_MS);
|
|
141
|
-
};
|
|
142
|
-
handleClear = (e) => {
|
|
143
|
-
e.stopPropagation();
|
|
144
|
-
this.searchText = '';
|
|
145
|
-
if (this.debounceTimer)
|
|
146
|
-
clearTimeout(this.debounceTimer);
|
|
147
|
-
this.searchFilter.emit('');
|
|
148
|
-
this.inputEl?.focus();
|
|
149
|
-
};
|
|
150
|
-
disconnectedCallback() {
|
|
151
|
-
if (this.focusRafId !== undefined)
|
|
152
|
-
cancelAnimationFrame(this.focusRafId);
|
|
153
|
-
if (this.debounceTimer !== undefined)
|
|
154
|
-
clearTimeout(this.debounceTimer);
|
|
155
|
-
}
|
|
156
|
-
render() {
|
|
157
|
-
return (h("div", { key: '6caac256fb6b1fc3e7b3fc7f7ee66b163737f944', class: {
|
|
158
|
-
'sd-select-list-item-search': true,
|
|
159
|
-
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
160
|
-
} }, h("div", { key: '3193b47072cb73c4400e606aa8dbd4553e178738', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '6165dae71933cbdf5c66d533d4cae43ae95f7bd4', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'd0526a3a20e220068a4b4cb489af060c80952325', ref: el => {
|
|
161
|
-
this.inputEl = el;
|
|
162
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'e139b3ddab9ac793bfcf44480161a1d0c501a861', type: "button", class: {
|
|
163
|
-
'sd-select-list-item-search__clear': true,
|
|
164
|
-
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
165
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '4d29274a17767dec92bb6052196832272ab215df', name: "close", size: 12, color: "#888888" })))));
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
169
|
-
|
|
170
|
-
export { SdSelectListItem as sd_select_list_item, SdSelectListItemSearch as sd_select_list_item_search };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { l as listItemTokens } from './component.listItem-4S0_Ykmo.js';
|
|
2
|
-
import { l as listBoxTokens } from './component.listBox-DlJaYVWf.js';
|
|
3
|
-
|
|
4
|
-
const select = {
|
|
5
|
-
sm: {
|
|
6
|
-
paddingX: "12",
|
|
7
|
-
gap: "8",
|
|
8
|
-
typography: {
|
|
9
|
-
fontWeight: "400",
|
|
10
|
-
fontSize: "12",
|
|
11
|
-
lineHeight: "20"}},
|
|
12
|
-
icon: {
|
|
13
|
-
"default": "#888888",
|
|
14
|
-
disabled: "#BBBBBB"
|
|
15
|
-
},
|
|
16
|
-
text: {
|
|
17
|
-
"default": "#222222",
|
|
18
|
-
disabled: "#888888"
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var selectTokens = {
|
|
22
|
-
select: select
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
// ── Select Trigger Tokens ──
|
|
26
|
-
const SELECT_LAYOUT = {
|
|
27
|
-
paddingX: selectTokens.select.sm.paddingX,
|
|
28
|
-
gap: selectTokens.select.sm.gap};
|
|
29
|
-
const SELECT_TYPOGRAPHY = {
|
|
30
|
-
fontSize: selectTokens.select.sm.typography.fontSize,
|
|
31
|
-
lineHeight: selectTokens.select.sm.typography.lineHeight,
|
|
32
|
-
fontWeight: selectTokens.select.sm.typography.fontWeight,
|
|
33
|
-
};
|
|
34
|
-
const SELECT_COLORS = {
|
|
35
|
-
icon: {
|
|
36
|
-
default: selectTokens.select.icon.default,
|
|
37
|
-
disabled: selectTokens.select.icon.disabled,
|
|
38
|
-
},
|
|
39
|
-
text: {
|
|
40
|
-
default: selectTokens.select.text.default,
|
|
41
|
-
disabled: selectTokens.select.text.disabled,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
// ── ListItem Tokens ──
|
|
45
|
-
const LIST_ITEM_LAYOUT = {
|
|
46
|
-
paddingY: listItemTokens.listItem.paddingY,
|
|
47
|
-
paddingRight: listItemTokens.listItem.paddingRight,
|
|
48
|
-
paddingLeft: {
|
|
49
|
-
depth1: listItemTokens.listItem.paddingLeft.depth1,
|
|
50
|
-
depth2: listItemTokens.listItem.paddingLeft.depth2,
|
|
51
|
-
depth3: listItemTokens.listItem.paddingLeft.depth3,
|
|
52
|
-
},
|
|
53
|
-
gap: listItemTokens.listItem.gap,
|
|
54
|
-
};
|
|
55
|
-
const LIST_ITEM_TYPOGRAPHY = {
|
|
56
|
-
fontSize: listItemTokens.listItem.typography.default.fontSize,
|
|
57
|
-
lineHeight: listItemTokens.listItem.typography.default.lineHeight,
|
|
58
|
-
fontWeight: listItemTokens.listItem.typography.default.fontWeight,
|
|
59
|
-
selectedFontWeight: listItemTokens.listItem.typography.selected.fontWeight,
|
|
60
|
-
};
|
|
61
|
-
const LIST_ITEM_COLORS = {
|
|
62
|
-
bg: {
|
|
63
|
-
default: listItemTokens.listItem.bg.default,
|
|
64
|
-
hover: listItemTokens.listItem.bg.hover,
|
|
65
|
-
},
|
|
66
|
-
content: {
|
|
67
|
-
default: listItemTokens.listItem.content.default,
|
|
68
|
-
hover: listItemTokens.listItem.content.hover,
|
|
69
|
-
disabled: listItemTokens.listItem.content.disabled,
|
|
70
|
-
selected: listItemTokens.listItem.content.selected,
|
|
71
|
-
},
|
|
72
|
-
depth1: {
|
|
73
|
-
bg: listItemTokens.listItem.depth1.bg.default,
|
|
74
|
-
border: listItemTokens.listItem.depth1.border.color,
|
|
75
|
-
borderWidth: listItemTokens.listItem.depth1.border.width,
|
|
76
|
-
},
|
|
77
|
-
depth2: {
|
|
78
|
-
bg: listItemTokens.listItem.depth2.middle.bg,
|
|
79
|
-
}};
|
|
80
|
-
// ── ListBox Tokens ──
|
|
81
|
-
const LIST_BOX_LAYOUT = {
|
|
82
|
-
radius: listBoxTokens.listBox.radius,
|
|
83
|
-
};
|
|
84
|
-
// ── Constants ──
|
|
85
|
-
const SEARCH_THRESHOLD = 11;
|
|
86
|
-
const SEARCH_DEBOUNCE_MS = 1000;
|
|
87
|
-
const EMPTY_MESSAGE = '표시할 항목이 없습니다.';
|
|
88
|
-
// ── Utilities ──
|
|
89
|
-
function isHtmlLabel(label) {
|
|
90
|
-
return /<[a-z][\s\S]*>/i.test(label);
|
|
91
|
-
}
|
|
92
|
-
function extractText(html) {
|
|
93
|
-
return html.replace(/<[^>]*>/g, '');
|
|
94
|
-
}
|
|
95
|
-
function countLeaves(options) {
|
|
96
|
-
return options.reduce((sum, option) => {
|
|
97
|
-
if (option.children) {
|
|
98
|
-
return sum + countLeaves(option.children);
|
|
99
|
-
}
|
|
100
|
-
return sum + 1;
|
|
101
|
-
}, 0);
|
|
102
|
-
}
|
|
103
|
-
function filterTree(options, keyword) {
|
|
104
|
-
const lowerKeyword = (keyword ?? '').toLowerCase();
|
|
105
|
-
return options.reduce((acc, option) => {
|
|
106
|
-
const labelText = isHtmlLabel(option.label) ? extractText(option.label) : option.label;
|
|
107
|
-
const selfMatch = labelText != null && labelText.toLowerCase().includes(lowerKeyword);
|
|
108
|
-
if (option.children) {
|
|
109
|
-
// 그룹: 자식은 항상 추가로 필터링한다.
|
|
110
|
-
// - 자식 중 일치하는 게 있으면 그 자식들만 노출
|
|
111
|
-
// - 자식 매칭이 없더라도 그룹명이 매칭되면 그룹 헤더는 그대로 노출
|
|
112
|
-
// (이때 children 은 빈 배열로 두고, 선택 동작은 collectVisibleLeaves
|
|
113
|
-
// 의 fallback 이 원본 트리를 사용해 처리한다)
|
|
114
|
-
const filteredChildren = filterTree(option.children, keyword);
|
|
115
|
-
if (filteredChildren.length > 0) {
|
|
116
|
-
acc.push({ ...option, children: filteredChildren });
|
|
117
|
-
}
|
|
118
|
-
else if (selfMatch) {
|
|
119
|
-
acc.push({ ...option, children: [] });
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
else if (selfMatch) {
|
|
123
|
-
acc.push({ ...option });
|
|
124
|
-
}
|
|
125
|
-
return acc;
|
|
126
|
-
}, []);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export { EMPTY_MESSAGE as E, LIST_BOX_LAYOUT as L, SEARCH_THRESHOLD as S, SELECT_COLORS as a, SELECT_TYPOGRAPHY as b, countLeaves as c, SELECT_LAYOUT as d, extractText as e, filterTree as f, LIST_ITEM_LAYOUT as g, LIST_ITEM_TYPOGRAPHY as h, isHtmlLabel as i, LIST_ITEM_COLORS as j, SEARCH_DEBOUNCE_MS as k };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { t as tableTokens } from './component.table-5pkzwl5N.js';
|
|
2
|
-
import { s as systemTokens } from './system-BJfiMC9H.js';
|
|
3
|
-
|
|
4
|
-
// ── Header Tokens ──
|
|
5
|
-
const TABLE_HEADER_LAYOUT = {
|
|
6
|
-
height: tableTokens.table.header.height,
|
|
7
|
-
paddingX: tableTokens.table.header.paddingX,
|
|
8
|
-
gap: tableTokens.table.header.gap,
|
|
9
|
-
};
|
|
10
|
-
const TABLE_HEADER_TYPOGRAPHY = {
|
|
11
|
-
fontFamily: tableTokens.table.header.typography.fontFamily,
|
|
12
|
-
fontWeight: tableTokens.table.header.typography.fontWeight,
|
|
13
|
-
fontSize: tableTokens.table.header.typography.fontSize,
|
|
14
|
-
lineHeight: tableTokens.table.header.typography.lineHeight,
|
|
15
|
-
textDecoration: tableTokens.table.header.typography.textDecoration,
|
|
16
|
-
};
|
|
17
|
-
const TABLE_HEADER_COLORS = {
|
|
18
|
-
bg: tableTokens.table.header.bg,
|
|
19
|
-
};
|
|
20
|
-
const TABLE_HEADER_RESIZING_BAR = {
|
|
21
|
-
color: tableTokens.table.header.resizingBar.color,
|
|
22
|
-
height: tableTokens.table.header.resizingBar.height,
|
|
23
|
-
};
|
|
24
|
-
// ── Body Tokens ──
|
|
25
|
-
const TABLE_BODY_LAYOUT = {
|
|
26
|
-
default: {
|
|
27
|
-
height: tableTokens.table.body.default.height,
|
|
28
|
-
paddingY: tableTokens.table.body.default.paddingY,
|
|
29
|
-
},
|
|
30
|
-
dense: {
|
|
31
|
-
height: tableTokens.table.body.dense.height,
|
|
32
|
-
paddingY: tableTokens.table.body.paddingY.dense,
|
|
33
|
-
},
|
|
34
|
-
paddingX: tableTokens.table.body.paddingX.wide,
|
|
35
|
-
densePaddingX: tableTokens.table.body.paddingX.default,
|
|
36
|
-
framePadding: tableTokens.table.body.paddingX.default,
|
|
37
|
-
};
|
|
38
|
-
const TABLE_BODY_TYPOGRAPHY = {
|
|
39
|
-
fontFamily: tableTokens.table.body.typography.fontFamily,
|
|
40
|
-
fontWeight: tableTokens.table.body.typography.fontWeight,
|
|
41
|
-
fontSize: tableTokens.table.body.typography.fontSize,
|
|
42
|
-
lineHeight: tableTokens.table.body.typography.lineHeight,
|
|
43
|
-
textDecoration: tableTokens.table.body.typography.textDecoration,
|
|
44
|
-
};
|
|
45
|
-
// ── Frame / Border Tokens ──
|
|
46
|
-
const TABLE_BORDER = {
|
|
47
|
-
color: tableTokens.table.border.color,
|
|
48
|
-
width: tableTokens.table.border.width,
|
|
49
|
-
};
|
|
50
|
-
const TABLE_SEPARATOR = {
|
|
51
|
-
color: tableTokens.table.separator.color,
|
|
52
|
-
width: tableTokens.table.separator.width.default,
|
|
53
|
-
denseWidth: tableTokens.table.separator.width.dense,
|
|
54
|
-
};
|
|
55
|
-
const TABLE_RADIUS = tableTokens.table.radius;
|
|
56
|
-
// ── Selectable Column ──
|
|
57
|
-
const TABLE_SELECTABLE_COLUMN_WIDTH = 48;
|
|
58
|
-
// ── Header Icon Color Defaults ──
|
|
59
|
-
const ICON_DEFAULT_COLOR = {
|
|
60
|
-
pageEdit: systemTokens.color.darkblue.strong,
|
|
61
|
-
arrowDown: systemTokens.color.darkblue.strong,
|
|
62
|
-
arrowUp: systemTokens.color.darkblue.strong,
|
|
63
|
-
updown: systemTokens.color.grey.strong,
|
|
64
|
-
pageMove: systemTokens.color.darkblue.strong,
|
|
65
|
-
star: systemTokens.color.blue.strong,
|
|
66
|
-
};
|
|
67
|
-
const resolveTableIconColor = (name, override) => override ?? ICON_DEFAULT_COLOR[name];
|
|
68
|
-
const resolveSortIconName = (sort) => sort === 'asc' ? 'arrowDown' : sort === 'desc' ? 'arrowUp' : 'updown';
|
|
69
|
-
|
|
70
|
-
export { TABLE_BODY_LAYOUT as T, TABLE_SELECTABLE_COLUMN_WIDTH as a, TABLE_BODY_TYPOGRAPHY as b, TABLE_BORDER as c, TABLE_RADIUS as d, resolveSortIconName as e, TABLE_HEADER_RESIZING_BAR as f, TABLE_HEADER_TYPOGRAPHY as g, TABLE_HEADER_COLORS as h, TABLE_HEADER_LAYOUT as i, TABLE_SEPARATOR as j, resolveTableIconColor as r };
|