@commercetools/nimbus 0.0.0-canary-20260126073931 → 0.0.0-canary-20260126161726
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/chunks/{Button-CmpJG0ec.es.js → Button-BjcDZ5eb.es.js} +7 -7
- package/dist/chunks/{Button-CmpJG0ec.es.js.map → Button-BjcDZ5eb.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-DYW6tbzU.es.js → CollectionBuilder-BOe312C_.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-DYW6tbzU.es.js.map → CollectionBuilder-BOe312C_.es.js.map} +1 -1
- package/dist/chunks/{DateField-D4hq_06Z.es.js → DateField-DCWy1Ysp.es.js} +21 -21
- package/dist/chunks/{DateField-D4hq_06Z.es.js.map → DateField-DCWy1Ysp.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-BiUqIBOt.es.js → DatePicker-CL72jbDo.es.js} +17 -17
- package/dist/chunks/{DatePicker-BiUqIBOt.es.js.map → DatePicker-CL72jbDo.es.js.map} +1 -1
- package/dist/chunks/{Dialog-C3fAbDNn.es.js → Dialog-B0BQfdQa.es.js} +24 -24
- package/dist/chunks/{Dialog-C3fAbDNn.es.js.map → Dialog-B0BQfdQa.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-bj_mamFe.es.js → FocusScope-CqEZq7sr.es.js} +36 -36
- package/dist/chunks/{FocusScope-bj_mamFe.es.js.map → FocusScope-CqEZq7sr.es.js.map} +1 -1
- package/dist/chunks/{Group-C9jsb9_m.es.js → Group-BQc9LuMT.es.js} +8 -8
- package/dist/chunks/{Group-C9jsb9_m.es.js.map → Group-BQc9LuMT.es.js.map} +1 -1
- package/dist/chunks/{Header-Dc_tzDs3.es.js → Header-CiYtrnTw.es.js} +5 -5
- package/dist/chunks/{Header-Dc_tzDs3.es.js.map → Header-CiYtrnTw.es.js.map} +1 -1
- package/dist/chunks/{Heading-YOwfzTQe.es.js → Heading-BMsylHxq.es.js} +14 -14
- package/dist/chunks/{Heading-YOwfzTQe.es.js.map → Heading-BMsylHxq.es.js.map} +1 -1
- package/dist/chunks/{Input-aKSXZBAh.es.js → Input-Cmg08oRP.es.js} +5 -5
- package/dist/chunks/{Input-aKSXZBAh.es.js.map → Input-Cmg08oRP.es.js.map} +1 -1
- package/dist/chunks/{Label-Bu5lTMzy.es.js → Label-DIseLESi.es.js} +2 -2
- package/dist/chunks/{Label-Bu5lTMzy.es.js.map → Label-DIseLESi.es.js.map} +1 -1
- package/dist/chunks/{ListBox-CYNLUQ3a.es.js → ListBox-RrHJjnuq.es.js} +15 -15
- package/dist/chunks/{ListBox-CYNLUQ3a.es.js.map → ListBox-RrHJjnuq.es.js.map} +1 -1
- package/dist/chunks/{Modal-DJG9WuG4.es.js → Modal-K4JEy19g.es.js} +7 -7
- package/dist/chunks/{Modal-DJG9WuG4.es.js.map → Modal-K4JEy19g.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js → OverlayArrow-BIjbCSXk.es.js} +2 -2
- package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js.map → OverlayArrow-BIjbCSXk.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DogfCeuX.es.js → ProgressBar-Dm2Ge45l.es.js} +5 -5
- package/dist/chunks/{ProgressBar-DogfCeuX.es.js.map → ProgressBar-Dm2Ge45l.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-LP-e3_n1.es.js → SelectionManager-CX9btso_.es.js} +10 -10
- package/dist/chunks/{SelectionManager-LP-e3_n1.es.js.map → SelectionManager-CX9btso_.es.js.map} +1 -1
- package/dist/chunks/{Separator-dJgzu8hU.es.js → Separator-x6wk4JUe.es.js} +4 -4
- package/dist/chunks/{Separator-dJgzu8hU.es.js.map → Separator-x6wk4JUe.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-B-feHlsu.es.js → ToggleButton-BqW-X6iJ.es.js} +7 -7
- package/dist/chunks/{ToggleButton-B-feHlsu.es.js.map → ToggleButton-BqW-X6iJ.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js → VisuallyHidden-BLRzeMsq.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js.map → VisuallyHidden-BLRzeMsq.es.js.map} +1 -1
- package/dist/chunks/{accordion-C2CVQ5Cb.cjs.js → accordion-DD2oi7Kn.cjs.js} +2 -2
- package/dist/chunks/{accordion-C2CVQ5Cb.cjs.js.map → accordion-DD2oi7Kn.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-3xSyPU_D.es.js → accordion-DDAV8l9X.es.js} +2 -2
- package/dist/chunks/{accordion-3xSyPU_D.es.js.map → accordion-DDAV8l9X.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-Mo0dvhsq.es.js → accordion.content-BfZnzJuc.es.js} +23 -24
- package/dist/chunks/{accordion.content-Mo0dvhsq.es.js.map → accordion.content-BfZnzJuc.es.js.map} +1 -1
- package/dist/chunks/accordion.content-BlOjica9.cjs.js +2 -0
- package/dist/chunks/{accordion.content-D9jLS4IU.cjs.js.map → accordion.content-BlOjica9.cjs.js.map} +1 -1
- package/dist/chunks/{alert-BA-ifNOU.es.js → alert-Br_PRPAr.es.js} +2 -2
- package/dist/chunks/{alert-BA-ifNOU.es.js.map → alert-Br_PRPAr.es.js.map} +1 -1
- package/dist/chunks/{alert-CMok4mPz.cjs.js → alert-CmZF0yAh.cjs.js} +2 -2
- package/dist/chunks/{alert-CMok4mPz.cjs.js.map → alert-CmZF0yAh.cjs.js.map} +1 -1
- package/dist/chunks/badge-CgYpum7D.es.js +17 -0
- package/dist/chunks/{badge-DUiqk6w9.es.js.map → badge-CgYpum7D.es.js.map} +1 -1
- package/dist/chunks/button-BAPG6d5m.cjs.js +2 -0
- package/dist/chunks/button-BAPG6d5m.cjs.js.map +1 -0
- package/dist/chunks/button-Dp-F9cZ2.es.js +82 -0
- package/dist/chunks/button-Dp-F9cZ2.es.js.map +1 -0
- package/dist/chunks/{calendar-DsL0F029.cjs.js → calendar-CTVKVt7P.cjs.js} +2 -2
- package/dist/chunks/{calendar-DsL0F029.cjs.js.map → calendar-CTVKVt7P.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-Bs4aXigK.es.js → calendar-CqqLfNJd.es.js} +9 -9
- package/dist/chunks/{calendar-Bs4aXigK.es.js.map → calendar-CqqLfNJd.es.js.map} +1 -1
- package/dist/chunks/{card-Co4JVJ-y.es.js → card-CnJ-EQ7o.es.js} +2 -2
- package/dist/chunks/{card-Co4JVJ-y.es.js.map → card-CnJ-EQ7o.es.js.map} +1 -1
- package/dist/chunks/{card-DtQoxVC1.cjs.js → card-DWwkIoJ5.cjs.js} +2 -2
- package/dist/chunks/{card-DtQoxVC1.cjs.js.map → card-DWwkIoJ5.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-CSkiK1hg.cjs.js → checkbox-Bz-bJcd3.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CSkiK1hg.cjs.js.map → checkbox-Bz-bJcd3.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-CJH8mAds.es.js → checkbox-CnXqjwDQ.es.js} +10 -10
- package/dist/chunks/{checkbox-CJH8mAds.es.js.map → checkbox-CnXqjwDQ.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BAKxmYME.cjs.js → collapsible-motion-AdpfNSeX.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-BAKxmYME.cjs.js.map → collapsible-motion-AdpfNSeX.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-Ca5ot0Eo.es.js → collapsible-motion-GaDcSGNH.es.js} +5 -5
- package/dist/chunks/{collapsible-motion-Ca5ot0Eo.es.js.map → collapsible-motion-GaDcSGNH.es.js.map} +1 -1
- package/dist/chunks/{combobox-CFdusrRY.es.js → combobox-CKko1MRl.es.js} +17 -17
- package/dist/chunks/{combobox-CFdusrRY.es.js.map → combobox-CKko1MRl.es.js.map} +1 -1
- package/dist/chunks/{combobox-BIc_jefB.cjs.js → combobox-DzQy4kLW.cjs.js} +2 -2
- package/dist/chunks/{combobox-BIc_jefB.cjs.js.map → combobox-DzQy4kLW.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-D3cUsH2A.es.js → data-table-DE-C-D1P.es.js} +37 -37
- package/dist/chunks/{data-table-D3cUsH2A.es.js.map → data-table-DE-C-D1P.es.js.map} +1 -1
- package/dist/chunks/{data-table-CShgtvzn.cjs.js → data-table-DRicoaSn.cjs.js} +2 -2
- package/dist/chunks/{data-table-CShgtvzn.cjs.js.map → data-table-DRicoaSn.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-BnXMLB6z.cjs.js → date-input-8_qMwPMF.cjs.js} +2 -2
- package/dist/chunks/{date-input-BnXMLB6z.cjs.js.map → date-input-8_qMwPMF.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-Do9ScA8H.es.js → date-input-sr0tD8IV.es.js} +4 -4
- package/dist/chunks/{date-input-Do9ScA8H.es.js.map → date-input-sr0tD8IV.es.js.map} +1 -1
- package/dist/chunks/{date-picker-DIiBryvz.cjs.js → date-picker-C70ZxIvZ.cjs.js} +2 -2
- package/dist/chunks/{date-picker-DIiBryvz.cjs.js.map → date-picker-C70ZxIvZ.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-Kq5LNVNX.es.js → date-picker-CIqmuX9R.es.js} +14 -14
- package/dist/chunks/{date-picker-Kq5LNVNX.es.js.map → date-picker-CIqmuX9R.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-DACnN3h7.es.js → date-range-picker-6iesoL38.es.js} +14 -14
- package/dist/chunks/{date-range-picker-DACnN3h7.es.js.map → date-range-picker-6iesoL38.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-9UdQzvsV.cjs.js → date-range-picker-D9jrkFvn.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-9UdQzvsV.cjs.js.map → date-range-picker-D9jrkFvn.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-2I7f39J_.es.js → date-range-picker-field-CeFd8bBn.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-2I7f39J_.es.js.map → date-range-picker-field-CeFd8bBn.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-D_1biovf.cjs.js → date-range-picker-field-qk3uI1UO.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-D_1biovf.cjs.js.map → date-range-picker-field-qk3uI1UO.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-BGeZg5AX.es.js → dialog-4MWi1A8M.es.js} +7 -7
- package/dist/chunks/{dialog-BGeZg5AX.es.js.map → dialog-4MWi1A8M.es.js.map} +1 -1
- package/dist/chunks/{dialog-zHzLA4ld.cjs.js → dialog-DL7S2S85.cjs.js} +2 -2
- package/dist/chunks/{dialog-zHzLA4ld.cjs.js.map → dialog-DL7S2S85.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-BSEfb_T5.cjs.js → draggable-list-Bc-zVIyw.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-BSEfb_T5.cjs.js.map → draggable-list-Bc-zVIyw.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-BsmStsPJ.es.js → draggable-list-C8IxYWJ1.es.js} +22 -22
- package/dist/chunks/{draggable-list-BsmStsPJ.es.js.map → draggable-list-C8IxYWJ1.es.js.map} +1 -1
- package/dist/chunks/{drawer-A9RoyrKx.es.js → drawer-4wnwFcUV.es.js} +8 -8
- package/dist/chunks/{drawer-A9RoyrKx.es.js.map → drawer-4wnwFcUV.es.js.map} +1 -1
- package/dist/chunks/{drawer-x3O3EdV_.cjs.js → drawer-Bz1CKSc_.cjs.js} +2 -2
- package/dist/chunks/{drawer-x3O3EdV_.cjs.js.map → drawer-Bz1CKSc_.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-BburBiL_.cjs.js → extract-style-props-C5Zbx7mA.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-BburBiL_.cjs.js.map → extract-style-props-C5Zbx7mA.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CyUPG_35.es.js → extract-style-props-Cgg8HsH7.es.js} +2 -2
- package/dist/chunks/{extract-style-props-CyUPG_35.es.js.map → extract-style-props-Cgg8HsH7.es.js.map} +1 -1
- package/dist/chunks/{focusSafely-RvsgqoUt.es.js → focusSafely-Cwb0Tyy6.es.js} +3 -3
- package/dist/chunks/{focusSafely-RvsgqoUt.es.js.map → focusSafely-Cwb0Tyy6.es.js.map} +1 -1
- package/dist/chunks/{form-field-DfLzuiIc.cjs.js → form-field-DO-UFEVi.cjs.js} +2 -2
- package/dist/chunks/{form-field-DfLzuiIc.cjs.js.map → form-field-DO-UFEVi.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-hcF1b0oA.es.js → form-field-DhbLbIJX.es.js} +4 -4
- package/dist/chunks/{form-field-hcF1b0oA.es.js.map → form-field-DhbLbIJX.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-DlqhSzBC.es.js → getScrollParent-MZgwmCKW.es.js} +2 -2
- package/dist/chunks/{getScrollParent-DlqhSzBC.es.js.map → getScrollParent-MZgwmCKW.es.js.map} +1 -1
- package/dist/chunks/{group-jGsHh1w7.es.js → group-CCBgdph2.es.js} +2 -2
- package/dist/chunks/{group-jGsHh1w7.es.js.map → group-CCBgdph2.es.js.map} +1 -1
- package/dist/chunks/{heading-CwsT9zp_.es.js → heading-nfjoR4vL.es.js} +2 -2
- package/dist/chunks/{heading-CwsT9zp_.es.js.map → heading-nfjoR4vL.es.js.map} +1 -1
- package/dist/chunks/{icon-button-Dvj3lFzY.cjs.js → icon-button-C1TIOrC2.cjs.js} +2 -2
- package/dist/chunks/{icon-button-Dvj3lFzY.cjs.js.map → icon-button-C1TIOrC2.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-DfRybvA9.es.js → icon-button-Cf0LSF4C.es.js} +2 -2
- package/dist/chunks/{icon-button-DfRybvA9.es.js.map → icon-button-Cf0LSF4C.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DAg_mkF7.cjs.js → icon-toggle-button-BtNYkBMK.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DAg_mkF7.cjs.js.map → icon-toggle-button-BtNYkBMK.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-fjMhoXCy.es.js → icon-toggle-button-D8czvFVW.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-fjMhoXCy.es.js.map → icon-toggle-button-D8czvFVW.es.js.map} +1 -1
- package/dist/chunks/{index-p-_cy29m.es.js → index--N3lf_EW.es.js} +183 -183
- package/dist/chunks/index--N3lf_EW.es.js.map +1 -0
- package/dist/chunks/{index-CrHyGJxx.cjs.js → index-C04089Bd.cjs.js} +3 -3
- package/dist/chunks/index-C04089Bd.cjs.js.map +1 -0
- package/dist/chunks/{kbd-B11Qoo4k.es.js → kbd-Bl5Ncm2d.es.js} +2 -2
- package/dist/chunks/{kbd-B11Qoo4k.es.js.map → kbd-Bl5Ncm2d.es.js.map} +1 -1
- package/dist/chunks/{link-Db65JZE6.es.js → link-BMUyXcmC.es.js} +9 -9
- package/dist/chunks/{link-Db65JZE6.es.js.map → link-BMUyXcmC.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-BtDS9yzp.es.js → loading-spinner-gf62wtm3.es.js} +6 -6
- package/dist/chunks/{loading-spinner-BtDS9yzp.es.js.map → loading-spinner-gf62wtm3.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BgmaDlvp.es.js → localized-field-B3OxesP5.es.js} +13 -13
- package/dist/chunks/{localized-field-BgmaDlvp.es.js.map → localized-field-B3OxesP5.es.js.map} +1 -1
- package/dist/chunks/{localized-field-7dQJylrH.cjs.js → localized-field-CSN5jJgw.cjs.js} +2 -2
- package/dist/chunks/{localized-field-7dQJylrH.cjs.js.map → localized-field-CSN5jJgw.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js → make-element-focusable-7-aXFtDJ.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js.map → make-element-focusable-7-aXFtDJ.es.js.map} +1 -1
- package/dist/chunks/{menu-juuy7E4X.es.js → menu-Ba3r-dhK.es.js} +6 -6
- package/dist/chunks/{menu-juuy7E4X.es.js.map → menu-Ba3r-dhK.es.js.map} +1 -1
- package/dist/chunks/{menu-w4ABAUCC.cjs.js → menu-hBGeRvHK.cjs.js} +2 -2
- package/dist/chunks/{menu-w4ABAUCC.cjs.js.map → menu-hBGeRvHK.cjs.js.map} +1 -1
- package/dist/chunks/{mergeProps-D1jjFfMs.es.js → mergeProps-Dsl8k3Ig.es.js} +6 -6
- package/dist/chunks/{mergeProps-D1jjFfMs.es.js.map → mergeProps-Dsl8k3Ig.es.js.map} +1 -1
- package/dist/chunks/{money-input-3f3Vb2YN.cjs.js → money-input-BF-dLYad.cjs.js} +2 -2
- package/dist/chunks/{money-input-3f3Vb2YN.cjs.js.map → money-input-BF-dLYad.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-BndoTS4P.es.js → money-input-Cnx44q9h.es.js} +9 -9
- package/dist/chunks/{money-input-BndoTS4P.es.js.map → money-input-Cnx44q9h.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-Cn4MOKOb.es.js → money-input-field-BYeWQIDh.es.js} +3 -3
- package/dist/chunks/{money-input-field-Cn4MOKOb.es.js.map → money-input-field-BYeWQIDh.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-CrxZXoU8.cjs.js → money-input-field-ctc_KjuQ.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-CrxZXoU8.cjs.js.map → money-input-field-ctc_KjuQ.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BnKf9Z5a.cjs.js → multiline-text-input-BgA7wrCp.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-BnKf9Z5a.cjs.js.map → multiline-text-input-BgA7wrCp.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-cDQ3luX2.es.js → multiline-text-input-DFL0MyoX.es.js} +8 -8
- package/dist/chunks/{multiline-text-input-cDQ3luX2.es.js.map → multiline-text-input-DFL0MyoX.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-Cj48-8Yp.cjs.js → multiline-text-input-field-CIzfVmkc.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-Cj48-8Yp.cjs.js.map → multiline-text-input-field-CIzfVmkc.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-DGBq57pm.es.js → multiline-text-input-field-D6yYeHct.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-DGBq57pm.es.js.map → multiline-text-input-field-D6yYeHct.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-ZmPSH2kx.cjs.js → nimbus-provider-DrYI3Mb4.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-ZmPSH2kx.cjs.js.map → nimbus-provider-DrYI3Mb4.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider--WJBsM7m.es.js → nimbus-provider-Dt4CLOBH.es.js} +2 -2
- package/dist/chunks/{nimbus-provider--WJBsM7m.es.js.map → nimbus-provider-Dt4CLOBH.es.js.map} +1 -1
- package/dist/chunks/{number-input-2TXXV5sO.cjs.js → number-input-BGpHu2lB.cjs.js} +2 -2
- package/dist/chunks/{number-input-2TXXV5sO.cjs.js.map → number-input-BGpHu2lB.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-1cEAfpgg.es.js → number-input-CKAwKm69.es.js} +14 -14
- package/dist/chunks/{number-input-1cEAfpgg.es.js.map → number-input-CKAwKm69.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-ncGHtB8B.cjs.js → number-input-field-BNbMhFmZ.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-ncGHtB8B.cjs.js.map → number-input-field-BNbMhFmZ.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-DL5wU2JT.es.js → number-input-field-C69Ksf0q.es.js} +3 -3
- package/dist/chunks/{number-input-field-DL5wU2JT.es.js.map → number-input-field-C69Ksf0q.es.js.map} +1 -1
- package/dist/chunks/{pagination-Cr9DLRlH.es.js → pagination-BiY0r6-2.es.js} +5 -5
- package/dist/chunks/{pagination-Cr9DLRlH.es.js.map → pagination-BiY0r6-2.es.js.map} +1 -1
- package/dist/chunks/{pagination-CnZ8hYY6.cjs.js → pagination-J7n7ZeH_.cjs.js} +2 -2
- package/dist/chunks/{pagination-CnZ8hYY6.cjs.js.map → pagination-J7n7ZeH_.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-32zeDVvL.cjs.js → password-input-BjkpqqvR.cjs.js} +2 -2
- package/dist/chunks/{password-input-32zeDVvL.cjs.js.map → password-input-BjkpqqvR.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-4ysGgPnu.es.js → password-input-C5zlOKrv.es.js} +4 -4
- package/dist/chunks/{password-input-4ysGgPnu.es.js.map → password-input-C5zlOKrv.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-IuA7EpWC.es.js → password-input-field-BMg8r-ZX.es.js} +3 -3
- package/dist/chunks/{password-input-field-IuA7EpWC.es.js.map → password-input-field-BMg8r-ZX.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-BnDghlXE.cjs.js → password-input-field-CCImx9wE.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-BnDghlXE.cjs.js.map → password-input-field-CCImx9wE.cjs.js.map} +1 -1
- package/dist/chunks/{popover-BB1pYTlN.es.js → popover-CuA9VugH.es.js} +2 -2
- package/dist/chunks/{popover-BB1pYTlN.es.js.map → popover-CuA9VugH.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-VwKVjykh.cjs.js → progress-bar-6t2IcBps.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-VwKVjykh.cjs.js.map → progress-bar-6t2IcBps.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-CEpr99mC.es.js → progress-bar-DRqomrJz.es.js} +4 -4
- package/dist/chunks/{progress-bar-CEpr99mC.es.js.map → progress-bar-DRqomrJz.es.js.map} +1 -1
- package/dist/chunks/{radio-input-B5hFYAHw.cjs.js → radio-input-BBvyHOLd.cjs.js} +2 -2
- package/dist/chunks/{radio-input-B5hFYAHw.cjs.js.map → radio-input-BBvyHOLd.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-C6nTwFcq.es.js → radio-input-Bonx28Iu.es.js} +42 -42
- package/dist/chunks/{radio-input-C6nTwFcq.es.js.map → radio-input-Bonx28Iu.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-D2kDykV7.cjs.js → range-calendar-CzjsGfoF.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-D2kDykV7.cjs.js.map → range-calendar-CzjsGfoF.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-CIEjMchS.es.js → range-calendar-goIyjM90.es.js} +10 -10
- package/dist/chunks/{range-calendar-CIEjMchS.es.js.map → range-calendar-goIyjM90.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BAT6fKbH.cjs.js → rich-text-input-CQsTr4Gf.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-BAT6fKbH.cjs.js.map → rich-text-input-CQsTr4Gf.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-_SURelfj.es.js → rich-text-input-lcyJvKnq.es.js} +13 -13
- package/dist/chunks/{rich-text-input-_SURelfj.es.js.map → rich-text-input-lcyJvKnq.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-FExr5-SJ.es.js → scoped-search-input-DNgrz2rB.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-FExr5-SJ.es.js.map → scoped-search-input-DNgrz2rB.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-aI3Tg-rD.cjs.js → scoped-search-input-yE6YcP7W.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-aI3Tg-rD.cjs.js.map → scoped-search-input-yE6YcP7W.cjs.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js → scrollIntoView-B7D07fJk.es.js} +5 -5
- package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js.map → scrollIntoView-B7D07fJk.es.js.map} +1 -1
- package/dist/chunks/{search-input-13dtGCp7.es.js → search-input-BinM5Y8r.es.js} +11 -11
- package/dist/chunks/{search-input-13dtGCp7.es.js.map → search-input-BinM5Y8r.es.js.map} +1 -1
- package/dist/chunks/{search-input-CfQhlvk5.cjs.js → search-input-CK78tugC.cjs.js} +2 -2
- package/dist/chunks/{search-input-CfQhlvk5.cjs.js.map → search-input-CK78tugC.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-HlI8cb5d.cjs.js → search-input-field-DiymorOb.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-HlI8cb5d.cjs.js.map → search-input-field-DiymorOb.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-B-E3uPrC.es.js → search-input-field-p_kP223y.es.js} +3 -3
- package/dist/chunks/{search-input-field-B-E3uPrC.es.js.map → search-input-field-p_kP223y.es.js.map} +1 -1
- package/dist/chunks/{select-BAWnEI3t.cjs.js → select-BGQ8xpWl.cjs.js} +2 -2
- package/dist/chunks/{select-BAWnEI3t.cjs.js.map → select-BGQ8xpWl.cjs.js.map} +1 -1
- package/dist/chunks/{select-CXwUzJJK.es.js → select-BXTnPwyv.es.js} +21 -21
- package/dist/chunks/{select-CXwUzJJK.es.js.map → select-BXTnPwyv.es.js.map} +1 -1
- package/dist/chunks/{separator-C7fYCbHq.cjs.js → separator-C86a1TZ3.cjs.js} +2 -2
- package/dist/chunks/{separator-C7fYCbHq.cjs.js.map → separator-C86a1TZ3.cjs.js.map} +1 -1
- package/dist/chunks/{separator-DcgULQ5H.es.js → separator-DmOGoG79.es.js} +4 -4
- package/dist/chunks/{separator-DcgULQ5H.es.js.map → separator-DmOGoG79.es.js.map} +1 -1
- package/dist/chunks/{split-button-BAuf0nIF.es.js → split-button-D0tmM7ib.es.js} +4 -4
- package/dist/chunks/{split-button-BAuf0nIF.es.js.map → split-button-D0tmM7ib.es.js.map} +1 -1
- package/dist/chunks/{split-button-_USJK0yt.cjs.js → split-button-fWShbx9Y.cjs.js} +2 -2
- package/dist/chunks/{split-button-_USJK0yt.cjs.js.map → split-button-fWShbx9Y.cjs.js.map} +1 -1
- package/dist/chunks/{switch-CBLV3pB1.es.js → switch-DMtV3mOG.es.js} +7 -7
- package/dist/chunks/{switch-CBLV3pB1.es.js.map → switch-DMtV3mOG.es.js.map} +1 -1
- package/dist/chunks/{switch-By0UZG6W.cjs.js → switch-Dy0v5Aj4.cjs.js} +2 -2
- package/dist/chunks/{switch-By0UZG6W.cjs.js.map → switch-Dy0v5Aj4.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-CFzGYaGj.es.js → tabs-CKm4TvSS.es.js} +12 -12
- package/dist/chunks/{tabs-CFzGYaGj.es.js.map → tabs-CKm4TvSS.es.js.map} +1 -1
- package/dist/chunks/{tabs-xkLeIhGm.cjs.js → tabs-DXmjn0vH.cjs.js} +2 -2
- package/dist/chunks/{tabs-xkLeIhGm.cjs.js.map → tabs-DXmjn0vH.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-CkKfHF1g.cjs.js → tag-group-B7QZhXAF.cjs.js} +2 -2
- package/dist/chunks/{tag-group-CkKfHF1g.cjs.js.map → tag-group-B7QZhXAF.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-g07sNPdS.es.js → tag-group-CpLRtc1p.es.js} +19 -19
- package/dist/chunks/{tag-group-g07sNPdS.es.js.map → tag-group-CpLRtc1p.es.js.map} +1 -1
- package/dist/chunks/{text-DvqDjbwb.es.js → text-CIb_VDvO.es.js} +2 -2
- package/dist/chunks/{text-DvqDjbwb.es.js.map → text-CIb_VDvO.es.js.map} +1 -1
- package/dist/chunks/{text-input-c1k3u5d2.cjs.js → text-input-CaPCyZ2-.cjs.js} +2 -2
- package/dist/chunks/{text-input-c1k3u5d2.cjs.js.map → text-input-CaPCyZ2-.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-C_FypARL.es.js → text-input-DzVWAlCx.es.js} +7 -7
- package/dist/chunks/{text-input-C_FypARL.es.js.map → text-input-DzVWAlCx.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-DWGk0zk8.cjs.js → text-input-field-_4RX-6hV.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-DWGk0zk8.cjs.js.map → text-input-field-_4RX-6hV.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-5eiHKtr7.es.js → text-input-field-cIf83Y5M.es.js} +3 -3
- package/dist/chunks/{text-input-field-5eiHKtr7.es.js.map → text-input-field-cIf83Y5M.es.js.map} +1 -1
- package/dist/chunks/{time-input-Do4aKZTZ.es.js → time-input-B4_-rL-A.es.js} +4 -4
- package/dist/chunks/{time-input-Do4aKZTZ.es.js.map → time-input-B4_-rL-A.es.js.map} +1 -1
- package/dist/chunks/{time-input-DHfa7mZN.cjs.js → time-input-Du0BWaGv.cjs.js} +2 -2
- package/dist/chunks/{time-input-DHfa7mZN.cjs.js.map → time-input-Du0BWaGv.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-Pu1uC-yp.cjs.js → toggle-button-Bu2ZxXdl.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-Pu1uC-yp.cjs.js.map → toggle-button-Bu2ZxXdl.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-O0-NHrUm.es.js → toggle-button-Dv3hro8W.es.js} +4 -4
- package/dist/chunks/{toggle-button-O0-NHrUm.es.js.map → toggle-button-Dv3hro8W.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js → toggle-button-group-BWpmMkEz.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js.map → toggle-button-group-BWpmMkEz.es.js.map} +1 -1
- package/dist/chunks/{toolbar-B4KC-UL2.es.js → toolbar-BkLgY_VF.es.js} +6 -6
- package/dist/chunks/{toolbar-B4KC-UL2.es.js.map → toolbar-BkLgY_VF.es.js.map} +1 -1
- package/dist/chunks/{toolbar-vK17PPkS.cjs.js → toolbar-CKursXK9.cjs.js} +2 -2
- package/dist/chunks/{toolbar-vK17PPkS.cjs.js.map → toolbar-CKursXK9.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-CzEuq_Qi.es.js → tooltip-D3QrrizN.es.js} +7 -7
- package/dist/chunks/{tooltip-CzEuq_Qi.es.js.map → tooltip-D3QrrizN.es.js.map} +1 -1
- package/dist/chunks/{useButton-B2TbwHSy.es.js → useButton-CiPiehgC.es.js} +4 -4
- package/dist/chunks/{useButton-B2TbwHSy.es.js.map → useButton-CiPiehgC.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-Bm8thTNT.es.js → useDateFormatter-9juUpmrj.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-Bm8thTNT.es.js.map → useDateFormatter-9juUpmrj.es.js.map} +1 -1
- package/dist/chunks/{useDisclosureState-BqxwXawT.es.js → useDisclosureState-CWZTR2xM.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-BqxwXawT.es.js.map → useDisclosureState-CWZTR2xM.es.js.map} +1 -1
- package/dist/chunks/{useEvent-D8bTsAyx.es.js → useEvent-CRo5BZDX.es.js} +6 -6
- package/dist/chunks/{useEvent-D8bTsAyx.es.js.map → useEvent-CRo5BZDX.es.js.map} +1 -1
- package/dist/chunks/{useField-BfW84CS4.es.js → useField-CHrpmkxe.es.js} +8 -8
- package/dist/chunks/{useField-BfW84CS4.es.js.map → useField-CHrpmkxe.es.js.map} +1 -1
- package/dist/chunks/{useFocus-TCNvrvTC.es.js → useFocus-CrgTusM3.es.js} +6 -6
- package/dist/chunks/{useFocus-TCNvrvTC.es.js.map → useFocus-CrgTusM3.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-oMAqzr3e.es.js → useFocusRing-FPt2Rwil.es.js} +4 -4
- package/dist/chunks/{useFocusRing-oMAqzr3e.es.js.map → useFocusRing-FPt2Rwil.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js → useFocusVisible-B3HmFL2Q.es.js} +6 -6
- package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js.map → useFocusVisible-B3HmFL2Q.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js → useFocusWithin-EFOG-Jn1.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js.map → useFocusWithin-EFOG-Jn1.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Bm-DQaak.es.js → useFocusable-Cs6i58WP.es.js} +5 -5
- package/dist/chunks/{useFocusable-Bm-DQaak.es.js.map → useFocusable-Cs6i58WP.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-C52dSDoe.es.js → useFormReset-BGuIA_u2.es.js} +2 -2
- package/dist/chunks/{useFormReset-C52dSDoe.es.js.map → useFormReset-BGuIA_u2.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-DxDV9X1M.es.js → useFormValidation-BCVLtR0U.es.js} +3 -3
- package/dist/chunks/{useFormValidation-DxDV9X1M.es.js.map → useFormValidation-BCVLtR0U.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-W6DzfYRB.es.js → useGridListItem-CJrr2QNO.es.js} +10 -10
- package/dist/chunks/{useGridListItem-W6DzfYRB.es.js.map → useGridListItem-CJrr2QNO.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js → useHasTabbableChild-DXq72IE3.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js.map → useHasTabbableChild-DXq72IE3.es.js.map} +1 -1
- package/dist/chunks/{useHover-BtRK9g2L.es.js → useHover-BQRSM3qT.es.js} +2 -2
- package/dist/chunks/{useHover-BtRK9g2L.es.js.map → useHover-BQRSM3qT.es.js.map} +1 -1
- package/dist/chunks/{useLabel-DfbcmKTa.es.js → useLabel-DQaRD22u.es.js} +5 -5
- package/dist/chunks/{useLabel-DfbcmKTa.es.js.map → useLabel-DQaRD22u.es.js.map} +1 -1
- package/dist/chunks/{useLabels-Gn8v9XZB.es.js → useLabels-BDqWMehi.es.js} +2 -2
- package/dist/chunks/{useLabels-Gn8v9XZB.es.js.map → useLabels-BDqWMehi.es.js.map} +1 -1
- package/dist/chunks/{useListState-BgQn1ZbV.es.js → useListState-Dd0Mtev3.es.js} +2 -2
- package/dist/chunks/{useListState-BgQn1ZbV.es.js.map → useListState-Dd0Mtev3.es.js.map} +1 -1
- package/dist/chunks/{usePress-C_IPaF8I.es.js → usePress-BuLomD_X.es.js} +6 -6
- package/dist/chunks/{usePress-C_IPaF8I.es.js.map → usePress-BuLomD_X.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar-DCj794Zv.es.js → useProgressBar--OvVKto2.es.js} +7 -7
- package/dist/chunks/{useProgressBar-DCj794Zv.es.js.map → useProgressBar--OvVKto2.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-BkOWnOWL.es.js → useSpinButton-D8B_x4uj.es.js} +15 -15
- package/dist/chunks/{useSpinButton-BkOWnOWL.es.js.map → useSpinButton-D8B_x4uj.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-DmY05o2G.es.js → useSyncRef-BpLviItW.es.js} +2 -2
- package/dist/chunks/{useSyncRef-DmY05o2G.es.js.map → useSyncRef-BpLviItW.es.js.map} +1 -1
- package/dist/chunks/{useTextField-9WuJfc9u.es.js → useTextField-yuaT8-G4.es.js} +7 -7
- package/dist/chunks/{useTextField-9WuJfc9u.es.js.map → useTextField-yuaT8-G4.es.js.map} +1 -1
- package/dist/chunks/{useToggle-BZPMewLP.es.js → useToggle-DKP3zVOY.es.js} +5 -5
- package/dist/chunks/{useToggle-BZPMewLP.es.js.map → useToggle-DKP3zVOY.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-C673xD3E.es.js → useToolbar-CbJkugif.es.js} +3 -3
- package/dist/chunks/{useToolbar-C673xD3E.es.js.map → useToolbar-CbJkugif.es.js.map} +1 -1
- package/dist/chunks/{utils-9vu7GUaz.es.js → utils-B6pV5ewr.es.js} +12 -12
- package/dist/chunks/{utils-9vu7GUaz.es.js.map → utils-B6pV5ewr.es.js.map} +1 -1
- package/dist/chunks/{utils-Bl-3nKLa.es.js → utils-oAGBWzI5.es.js} +14 -14
- package/dist/chunks/{utils-Bl-3nKLa.es.js.map → utils-oAGBWzI5.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-m5QY9YV7.es.js → visually-hidden-Dj5CT-u_.es.js} +2 -2
- package/dist/chunks/{visually-hidden-m5QY9YV7.es.js.map → visually-hidden-Dj5CT-u_.es.js.map} +1 -1
- package/dist/components/accordion/accordion.recipe.d.ts +1 -1
- package/dist/components/accordion/accordion.slots.d.ts +5 -5
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert/alert.recipe.d.ts +1 -1
- package/dist/components/alert/alert.slots.d.ts +3 -3
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.slots.d.ts +1 -1
- package/dist/components/badge/badge.slots.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.slots.d.ts +8 -8
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox/combobox.recipe.d.ts +1 -1
- package/dist/components/combobox/combobox.slots.d.ts +12 -12
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -3
- package/dist/components/data-table/data-table.slots.d.ts +12 -12
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input/date-input.slots.d.ts +5 -5
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker/date-picker.recipe.d.ts +1 -1
- package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.slots.d.ts +8 -8
- package/dist/components/date-range-picker-field.cjs +1 -1
- package/dist/components/date-range-picker-field.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog/dialog.slots.d.ts +9 -9
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer/drawer.slots.d.ts +10 -10
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +7 -7
- package/dist/components/form-field/form-field.recipe.d.ts +1 -1
- package/dist/components/form-field/form-field.slots.d.ts +2 -2
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/heading.es.js +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/inline-svg/inline-svg.slots.d.ts +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link/link.slots.d.ts +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/menu/menu.recipe.d.ts +1 -1
- package/dist/components/money-input/money-input.slots.d.ts +6 -6
- package/dist/components/money-input-field.cjs +1 -1
- package/dist/components/money-input-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
- package/dist/components/multiline-text-input-field.cjs +1 -1
- package/dist/components/multiline-text-input-field.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input/number-input.slots.d.ts +6 -6
- package/dist/components/number-input-field.cjs +1 -1
- package/dist/components/number-input-field.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input-field.cjs +1 -1
- package/dist/components/password-input-field.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +7 -7
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar/progress-bar.slots.d.ts +4 -4
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input/radio-input.slots.d.ts +2 -2
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/rich-text-input.slots.d.ts +2 -2
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input-field.cjs +1 -1
- package/dist/components/search-input-field.es.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/select.slots.d.ts +7 -7
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/split-button.slots.d.ts +3 -3
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch/switch.slots.d.ts +3 -3
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +1 -1
- package/dist/components/tabs/tabs.slots.d.ts +3 -3
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input-field.cjs +1 -1
- package/dist/components/text-input-field.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input/time-input.slots.d.ts +5 -5
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.es.js +2 -2
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +64 -64
- package/dist/theme/slot-recipes/index.d.ts +8 -8
- package/package.json +5 -5
- package/dist/chunks/accordion.content-D9jLS4IU.cjs.js +0 -2
- package/dist/chunks/badge-DUiqk6w9.es.js +0 -17
- package/dist/chunks/button-C8O8AAy_.cjs.js +0 -2
- package/dist/chunks/button-C8O8AAy_.cjs.js.map +0 -1
- package/dist/chunks/button-CXhSahNi.es.js +0 -65
- package/dist/chunks/button-CXhSahNi.es.js.map +0 -1
- package/dist/chunks/index-CrHyGJxx.cjs.js.map +0 -1
- package/dist/chunks/index-p-_cy29m.es.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const m=require("react/jsx-runtime"),n=require("react"),gt=require("./Header-BXEPjypM.cjs.js"),de=require("./ListBox-rm_vuzPg.cjs.js"),We=require("./CollectionBuilder-DjRx57vm.cjs.js"),yt=require("@chakra-ui/react"),Ae=require("@commercetools/nimbus-icons"),fe=require("./extract-style-props-BburBiL_.cjs.js"),bt=require("./popover-Dhg--8YC.cjs.js"),qe=require("./icon-button-Dvj3lFzY.cjs.js"),xt=require("./loading-spinner-DYEYnI5N.cjs.js"),be=require("./Input-2FU1rljx.cjs.js"),ue=require("./tag-group-CkKfHF1g.cjs.js"),ht=require("@chakra-ui/react/styled-system"),vt=require("./RSPContexts-BdKenzIN.cjs.js"),Fe=require("./Button-DLCecw8f.cjs.js"),Oe=require("./utils-DVb3jcp5.cjs.js"),Ct=require("./Group-1nWkximy.cjs.js"),St=require("./Label-szabofdc.cjs.js"),$t=require("./Dialog-CSr6lHSd.cjs.js"),wt=require("./Text-BWSfeB9p.cjs.js"),ae=require("./normalize-messages-CaDzkuUm.cjs.js"),Kt=require("./useListData-BGzhnkuO.cjs.js"),Ne=require("./mergeProps-CxnHrnow.cjs.js"),It=require("./useListState-BjCb6LLO.cjs.js");function Mt(e,t){let r;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var l,o;return{...e,filterText:(l=t.filterText)!==null&&l!==void 0?l:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,sortDescriptor:(o=t.sortDescriptor)!==null&&o!==void 0?o:e.sortDescriptor,abortController:t.abortController};case"update":var s;return{...e,...(s=t.updater)===null||s===void 0?void 0:s.call(t,e)};case"success":case"error":return e;default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loading":case"sorting":case"filtering":switch(t.type){case"success":if(t.abortController!==e.abortController)return e;var a;r=(a=t.selectedKeys)!==null&&a!==void 0?a:e.selectedKeys;var i,d,x;return{...e,filterText:(i=t.filterText)!==null&&i!==void 0?i:e.filterText,state:"idle",items:[...(d=t.items)!==null&&d!==void 0?d:[]],selectedKeys:r==="all"?"all":new Set(r),sortDescriptor:(x=t.sortDescriptor)!==null&&x!==void 0?x:e.sortDescriptor,abortController:void 0,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error,abortController:void 0};case"loading":case"loadingMore":case"sorting":case"filtering":var h;(h=e.abortController)===null||h===void 0||h.abort();var f;return{...e,filterText:(f=t.filterText)!==null&&f!==void 0?f:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,abortController:t.abortController};case"update":var w;return{...e,...(w=t.updater)===null||w===void 0?void 0:w.call(t,e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loadingMore":switch(t.type){case"success":var g;r=e.selectedKeys==="all"||t.selectedKeys==="all"?"all":new Set([...e.selectedKeys,...(g=t.selectedKeys)!==null&&g!==void 0?g:[]]);var I,O;return{...e,state:"idle",items:[...e.items,...(I=t.items)!==null&&I!==void 0?I:[]],selectedKeys:r,sortDescriptor:(O=t.sortDescriptor)!==null&&O!==void 0?O:e.sortDescriptor,abortController:void 0,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error};case"loading":case"sorting":case"filtering":var M;(M=e.abortController)===null||M===void 0||M.abort();var b;return{...e,filterText:(b=t.filterText)!==null&&b!==void 0?b:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,abortController:t.abortController};case"loadingMore":var E;return(E=t.abortController)===null||E===void 0||E.abort(),e;case"update":var K;return{...e,...(K=t.updater)===null||K===void 0?void 0:K.call(t,e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw new Error(`Invalid state "${e.state}"`)}}function Bt(e){const{load:t,sort:r,initialSelectedKeys:l,initialSortDescriptor:o,getKey:s=f=>f.id||f.key,initialFilterText:a=""}=e;let[i,d]=n.useReducer(Mt,{state:"idle",error:void 0,items:[],selectedKeys:l==="all"?"all":new Set(l),sortDescriptor:o,filterText:a});const x=async(f,w)=>{let g=new AbortController;try{d({...f,abortController:g});var I;let b=(I=f.filterText)!==null&&I!==void 0?I:i.filterText;var O;let E=await w({items:i.items.slice(),selectedKeys:i.selectedKeys,sortDescriptor:(O=f.sortDescriptor)!==null&&O!==void 0?O:i.sortDescriptor,signal:g.signal,cursor:f.type==="loadingMore"?i.cursor:void 0,filterText:b,loadingState:i.state});var M;let K=(M=E.filterText)!==null&&M!==void 0?M:b;d({type:"success",...E,abortController:g}),K&&K!==b&&!g.signal.aborted&&x({type:"filtering",filterText:K},t)}catch(b){d({type:"error",error:b,abortController:g})}};let h=n.useRef(!1);return n.useEffect(()=>{h.current||(x({type:"loading"},t),h.current=!0)},[]),{items:i.items,selectedKeys:i.selectedKeys,sortDescriptor:i.sortDescriptor,isLoading:i.state==="loading"||i.state==="loadingMore"||i.state==="sorting"||i.state==="filtering",loadingState:i.state,error:i.error,filterText:i.filterText,getItem(f){return i.items.find(w=>s(w)===f)},reload(){x({type:"loading"},t)},loadMore(){i.state==="loading"||i.state==="loadingMore"||i.state==="filtering"||i.cursor==null||x({type:"loadingMore"},t)},sort(f){x({type:"sorting",sortDescriptor:f},r||t)},...Kt.$0d86e9c8f07f9a7b$export$79c0c687a5963b0a({...e,getKey:s,cursor:i.cursor},f=>{d({type:"update",updater:f})}),setFilterText(f){x({type:"filtering",filterText:f},t)}}}const Rt=n.createContext(null);function Et(e,t,r,l){var o=this,s=n.useRef(null),a=n.useRef(0),i=n.useRef(0),d=n.useRef(null),x=n.useRef([]),h=n.useRef(),f=n.useRef(),w=n.useRef(e),g=n.useRef(!0),I=n.useRef(),O=n.useRef();w.current=e;var M=typeof window<"u",b=!t&&t!==0&&M;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var E=!!(r=r||{}).leading,K=!("trailing"in r)||!!r.trailing,H=!!r.flushOnExit&&K,U="maxWait"in r,W="debounceOnServer"in r&&!!r.debounceOnServer,J=U?Math.max(+r.maxWait||0,t):null,te=n.useMemo(function(){var P=function(v){var A=x.current,V=h.current;return x.current=h.current=null,a.current=v,i.current=i.current||v,f.current=w.current.apply(V,A)},Q=function(v,A){b&&cancelAnimationFrame(d.current),d.current=b?requestAnimationFrame(v):setTimeout(v,A)},re=function(v){if(!g.current)return!1;var A=v-s.current;return!s.current||A>=t||A<0||U&&v-a.current>=J},oe=function(v){return d.current=null,K&&x.current?P(v):(x.current=h.current=null,f.current)},R=function v(){var A=Date.now();if(E&&i.current===a.current&&pe(),re(A))return oe(A);if(g.current){var V=t-(A-s.current),G=U?Math.min(V,J-(A-a.current)):V;Q(v,G)}},pe=function(){},Y=function(){if(M||W){var v,A=Date.now(),V=re(A);if(x.current=[].slice.call(arguments),h.current=o,s.current=A,H&&!I.current&&(I.current=function(){var G;((G=global.document)==null?void 0:G.visibilityState)==="hidden"&&O.current.flush()},(v=global.document)==null||v.addEventListener==null||v.addEventListener("visibilitychange",I.current)),V){if(!d.current&&g.current)return a.current=s.current,Q(R,t),E?P(s.current):f.current;if(U)return Q(R,t),P(s.current)}return d.current||Q(R,t),f.current}};return Y.cancel=function(){var v=d.current;v&&(b?cancelAnimationFrame(d.current):clearTimeout(d.current)),a.current=0,x.current=s.current=h.current=d.current=null},Y.isPending=function(){return!!d.current},Y.flush=function(){return d.current?oe(Date.now()):f.current},Y},[E,U,t,J,K,H,b,M,W,l]);return O.current=te,n.useEffect(function(){return g.current=!0,function(){var P;H&&O.current.flush(),I.current&&((P=global.document)==null||P.removeEventListener==null||P.removeEventListener("visibilitychange",I.current),I.current=null),g.current=!1}},[H]),te}const{withProvider:At,withContext:N}=yt.createSlotRecipeContext({key:"combobox"}),Ft=At("div","root"),Ot=N("div","trigger"),Tt=N("div","leadingElement"),Lt=N("div","content"),Pt=N("div","tagGroup"),Vt=N("div","input"),jt=N("div","popover"),Dt=N("div","listBox"),kt=N("div","section"),zt=N("div","option"),qt=N("div","optionIndicator"),Nt=N("div","optionContent"),Wt={clearSelection:"Clear selection",options:"Options menu",selectedValues:"Selected values",toggleOptions:"Toggle options"},Gt={clearSelection:"Auswahl löschen",options:"Options menu",selectedValues:"Ausgewählte Werte",toggleOptions:"Toggle options"},Ht={clearSelection:"Borrar selección",options:"Menú de opciones",selectedValues:"Valores seleccionados",toggleOptions:"Opciones de conmutación"},Ut={clearSelection:"Effacer la sélection",options:"Menu d'options",selectedValues:"Valeurs sélectionnées",toggleOptions:"Basculer les options"},Jt={clearSelection:"Limpar seleção",options:"Options menu",selectedValues:"Selecionar valores",toggleOptions:"Toggle options"},Qt={en:ae.normalizeMessages(Wt),de:ae.normalizeMessages(Gt),es:ae.normalizeMessages(Ht),"fr-FR":ae.normalizeMessages(Ut),"pt-BR":ae.normalizeMessages(Jt)};function Ge(e){if(typeof e=="string"||typeof e=="number")return e;if("id"in e)return e.id;throw new Error("ComboBox - Item must have an 'id' property or provide getKey function")}function Xt(e){if(typeof e=="string")return e;if("name"in e)return String(e.name);if("label"in e)return String(e.label);throw new Error("ComboBox - Item must have 'name' or 'label' property, or provide a getTextValue function")}function Yt(e){return{id:e,name:e}}const Zt=e=>e?e instanceof Set?e:new Set(Array.isArray(e)?e:[e]):new Set,_t=e=>Array.from(e),Te=n.createContext(null),Ke=()=>{const e=n.useContext(Te);if(!e)throw new Error("Nimbus - ComboBox components must be used within ComboBox.Root");return e},He=e=>{const{name:t,form:r,selectedKeys:l,selectionMode:o,formValue:s,allowsCustomOptions:a,collection:i,inputValue:d}=e;if(!t)return null;const x=n.useMemo(()=>{if(o==="single"){const h=Array.from(l)[0];return h?s==="text"||a?Array.from(i).find(w=>w.key===h)?.textValue||d||"":String(h):""}else{const h=Array.from(l);return s==="text"||a?h.map(f=>Array.from(i).find(g=>g.key===f)?.textValue||"").filter(Boolean).join(","):h.join(",")}},[o,l,s,a,i,d]);return m.jsx("input",{type:"hidden",name:t,form:typeof r=="string"?r:void 0,value:x})};He.displayName="ComboBoxHiddenInput";function Ue(e){let t;[e,t]=Oe.$64fa3d84918910a7$export$29f1550f4b0d4415(e,null,Rt);const{selectionMode:r="single",size:l="md",getKey:o=Ge,getTextValue:s=Xt,children:a,leadingElement:i,inputValue:d,onInputChange:x,isLoading:h,allowsEmptyMenu:f,renderEmptyState:w,async:g,filter:I,allowsCustomOptions:O=!1,isDisabled:M=!1,isInvalid:b=!1,isRequired:E=!1,isReadOnly:K=!1}=e,H=ht.useSlotRecipe({key:"combobox"}),[U,W]=H.splitVariantProps(e),[J,te]=fe.extractStyleProps(W),P=n.useRef(null),Q=n.useRef(null),[re,oe]=n.useState([]),R=Bt({getKey:o,async load({signal:B,filterText:q}){if(!g)return{items:[]};const _=g.minSearchLength??0;if(!q||q.length<_)return{items:[]};try{return{items:await g.load(q,B)}}catch(se){if(se.name==="AbortError")throw se;const C=se;return g.onError?.(C),{items:[]}}}}),[pe,Y]=n.useState(d),[v,A]=n.useState(!1),[V,G]=n.useState([]),Ie=g?.debounce??300,xe=Et(B=>{A(!1),R.setFilterText(B)},Ie),he=n.useCallback(B=>{Y(B),A(!0),xe(B)},[xe]),D=g?pe:d,ve=g?he:x,X=g?v||R.loadingState==="loading"||R.loadingState==="loadingMore"||R.loadingState==="filtering":h,Ce=g||O?!0:f,Se=n.useCallback(()=>X?D?.length?`loading results for "${D}"`:"loading results":D?.length&&g?.minSearchLength&&D.length>=g.minSearchLength?`no results for "${D}"`:g?.minSearchLength?`enter at least ${g?.minSearchLength} characters`:"type to search",[g?.minSearchLength,X,D]),$e=n.useCallback(()=>X?D?.length?`loading results for "${D}"`:"loading results":'hit "enter" to create an option',[X,D]),z=(O?$e:g?Se:void 0)??w,Z=n.useMemo(()=>{const B=g?Array.from(R.items):e.items,q=B?Array.from(B):[],_=new Set(q.map(F=>o(F)));let C=[...re.filter(F=>!_.has(o(F))),...q];if(g&&r==="multiple"&&V.length>0){const F=new Set(C.map(ge=>o(ge)));C=[...V.filter(ge=>!F.has(o(ge))),...C]}return C},[g,R.items,e.items,re,V,r,o]),ne=n.useMemo(()=>({selectionMode:r,size:l,getKey:o,getTextValue:s,leadingElement:i,triggerRef:P,inputRef:Q,isLoading:X,isDisabled:M,isRequired:E,isInvalid:b,isReadOnly:K}),[r,o,s,i,P,Q,M,E,b,K]),me=n.useMemo(()=>{if(Z)return Array.from(Z).map(B=>{const q="id"in B,_="textValue"in B;return q&&_?B:{...B,...q?{}:{id:o(B)},..._?{}:{textValue:s(B)}}})},[Z,o,s]),Be=n.useMemo(()=>m.jsx(Te.Provider,{value:ne,children:m.jsx(de.$eed445e0843c11d0$export$7ff8f37d2d81a48d.Provider,{value:{items:me},children:typeof a=="function"?a({isOpen:!1,isDisabled:M,isInvalid:b,isRequired:E,defaultChildren:null}):a})}),[a,M,b,E,me,ne]);return m.jsx(Oe.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{}],[be.$3985021b0ad6602f$export$37fb8590cf2c088c,{}],[ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{}]],children:m.jsx(Te.Provider,{value:ne,children:m.jsx(Ft,{ref:t,...U,...J,size:l,"data-disabled":M,"data-invalid":b,"data-required":E,"data-readonly":K,"data-open":e.isOpen,role:"group",children:m.jsx(We.$e1995378a142960e$export$bf788dd355e3a401,{content:Be,children:B=>m.jsx(er,{...te,size:l,filter:I,selectionMode:r,inputValue:D,onInputChange:ve,getKey:o,getTextValue:s,allowsEmptyMenu:Ce,renderEmptyState:z,isDisabled:M,isRequired:E,isInvalid:b,isReadOnly:K,collection:B,allowsCustomOptions:O,asyncConfig:g,onAsyncSelectedItemsChange:g&&r==="multiple"?G:void 0,onAddCustomItem:oe,onAddAsyncSelectedItem:G})})})})})}Ue.displayName="ComboBox.Root";const er=e=>{const t=ae.useLocalizedStringFormatter(Qt),{selectionMode:r="single",items:l,collection:o,getKey:s=Ge,children:a,selectedKeys:i=[],onSelectionChange:d,disabledKeys:x,inputValue:h="",onInputChange:f,filter:w,placeholder:g,menuTrigger:I="input",shouldCloseOnBlur:O=!0,shouldCloseOnSelect:M=!0,isOpen:b,defaultOpen:E=!1,onOpenChange:K,allowsEmptyMenu:H=!1,renderEmptyState:U,allowsCustomOptions:W=!1,isValidNewOption:J,getNewOptionData:te=Yt,onCreateOption:P,"aria-label":Q,"aria-labelledby":re,"aria-describedby":oe,isDisabled:R=!1,isRequired:pe=!1,isInvalid:Y=!1,isReadOnly:v=!1,shouldFocusWrap:A=!0,autoFocus:V=!1,name:G,formValue:Ie,validationBehavior:xe="aria",form:he,validate:D,isLoading:ve,asyncConfig:X,onAsyncSelectedItemsChange:Ce,onAddCustomItem:Se,onAddAsyncSelectedItem:$e}=e,{triggerRef:Me,inputRef:z}=Ke(),Z=Ne.$bdb11010cef70236$export$f680877a34711e37(),ne=Ne.$bdb11010cef70236$export$f680877a34711e37(),me=n.useRef(null),Be=n.useRef(null),B=n.useMemo(()=>Zt(i),[i]),q=!!d,[_,se]=n.useState(B),C=q?B:_,F=f!==void 0,Le=()=>{if(h)return h;if(F||r!=="single")return"";const c=Array.from(C);if(c.length===0)return"";const u=c[0];return o.getItem(u)?.textValue??""},[ge,le]=n.useState(Le),L=F?h:ge,ee=n.useRef(L),[rt,Pe]=n.useState(E),S=b??rt,[Re,ye]=n.useState(null),T=n.useCallback(c=>{b===void 0&&Pe(c),K?.(c)},[b,K]),ot=n.useMemo(()=>{if(L.trim()==="")return o;if(r==="single"){const u=Array.from(C);if(u.length>0){const p=u[0];if(o.getItem(p)?.textValue===L)return o}}if(w){const u=Array.from(o),p=Array.from(w(u,L)),$=new Set(p.map(we=>we.key));return o.filter?.((we,Ee)=>$.has(Ee.key))??o}const c=L.toLowerCase();return o.filter?.(u=>u.toLowerCase().includes(c))??o},[o,L,w,r,C]),nt=n.useMemo(()=>r==="multiple"?Array.from(C).map(c=>o.getItem(c)?.value).filter(c=>c!==void 0):[],[r,C,o]),[st,lt]=n.useState(null),it=n.useCallback(()=>{const c=b===void 0?!S:!b;b===void 0?Pe(u=>!u):K?.(!b),c&&(z.current?.focus(),ye("first"))},[b,S,K]),ct=n.useCallback(c=>{F||le(c),f?.(c),I==="input"&&c!==ee.current&&T(!0),ee.current=c},[F,f,I,T]),j=n.useCallback((c,u)=>{let p=c==="all"?new Set(Array.from(o).map(k=>k.key)):c;const $=u??C,we=p.size>0&&Array.from(p).every(k=>$.has(k))&&p.size<$.size;if(r==="multiple"&&p.size===1&&!we){const k=Array.from(p)[0],ce=$.has(k),ie=new Set($);ce?ie.delete(k):ie.add(k),p=ie}const Ee=_t(p);if(d?d(Ee):se(p),X&&r==="multiple"&&Ce){const k=Array.from(p).map(ce=>o.getItem(ce)?.value).filter(ce=>ce!==void 0);Ce(k)}if(r==="single"){const k=Array.from(p)[0];if(k!==null){const ie=o.getItem(k)?.textValue??"";F||(le(ie),ee.current=ie),f?.(ie)}M&&T(!1)}},[o,r,C,d,f,M,T,F]),y=It.$e72dd72e1c76a225$export$2f645645f7bca764({selectionMode:r,collection:ot,selectedKeys:C,onSelectionChange:j,disabledKeys:x}),at=n.useCallback(()=>{j(new Set),F||(le(""),ee.current=""),f?.(""),T(!0),requestAnimationFrame(()=>{z.current?.focus()})},[j,F,f,T,z]),Ve=n.useCallback(c=>{Se?.($=>[...$,c]),X&&r==="multiple"&&$e?.($=>[...$,c]);const u=s(c),p=C;if(r==="single")j(new Set([u]),p);else{const $=new Set(p);$.add(u),j($,p)}},[Se,X,r,$e,s,C,j]),je=n.useCallback(()=>{if(!W)return!1;const c=L.trim();if(!c||Array.from(o).some($=>$.textValue?.toLowerCase()===c.toLowerCase())||J&&!J(c))return!1;const p=te(c);return Ve(p),r==="multiple"?(F||(le(""),ee.current=""),f?.("")):(F||(le(c),ee.current=c),f?.(c)),P?.(p),!0},[W,te,J,L,o,r,f,P,Ve,F,le,ee]),ut=n.useCallback(c=>{if(R||v)return;const u=C,p=new Set(u);c.forEach($=>p.delete($)),j(p,u),p.size===0&&z.current?.focus()},[C,j,R,v]),dt=n.useCallback(c=>{switch(c.key){case"ArrowDown":if(c.preventDefault(),!S)T(!0),ye("first");else{const u=y.selectionManager.focusedKey,p=u?y.collection.getKeyAfter(u):y.collection.getFirstKey();y.selectionManager.setFocusedKey(p??y.collection.getFirstKey())}break;case"ArrowUp":if(c.preventDefault(),!S)T(!0),ye("last");else{const u=y.selectionManager.focusedKey,p=u?y.collection.getKeyBefore(u):y.collection.getLastKey();y.selectionManager.setFocusedKey(p??y.collection.getLastKey())}break;case"Enter":if(S&&y.selectionManager.focusedKey){c.preventDefault();const u=y.selectionManager.focusedKey;if(r==="multiple"){const p=new Set(C);p.has(u)?p.delete(u):p.add(u),j(p)}else j(new Set([u])),y.selectionManager.setFocusedKey(null)}else S&&!y.selectionManager.focusedKey&&W&&je()&&c.preventDefault();break;case"Escape":S&&(c.preventDefault(),T(!1),y.selectionManager.setFocusedKey(null));break;case"Home":if(S){c.preventDefault();const u=y.collection.getFirstKey();y.selectionManager.setFocusedKey(u)}break;case"End":if(S){c.preventDefault();const u=y.collection.getLastKey();y.selectionManager.setFocusedKey(u)}break;case"Backspace":if(L===""){const u=Array.from(C);if(u.length>0)if(c.preventDefault(),r==="single")j(new Set);else{const p=new Set(u);p.delete(u[u.length-1]),j(p)}}break}},[S,y.selectionManager,y.collection,j,T,ye,r,L,C,W,je]),ft=n.useCallback(()=>{I==="focus"&&!R&&!v&&T(!0),r==="single"&&L&&z.current&&z.current.select()},[I,R,v,T,r,L]),pt=n.useCallback(c=>{if(!O)return;const u=c.currentTarget;setTimeout(()=>{const p=document.activeElement;u.contains(p)||T(!1)},150)},[O,T]),De=n.useRef(null);n.useEffect(()=>{V&&z.current&&!R&&z.current.focus()},[V,R]);const ke=n.useRef(S);n.useEffect(()=>{b===void 0&&ke.current!==S&&(ke.current=S,K?.(S))},[S,b,K]),n.useEffect(()=>{if(r!=="single")return;const c=Array.from(y.selectionManager.selectedKeys),u=c.length>0?c[0]:null;if(u===De.current)return;De.current=u;const p=u!==null?y.collection.getItem(u):null;if(u!==null&&!p)return;const $=p?.textValue??"";F?f?.($):(le($),ee.current=$)},[r,y.selectionManager.selectedKeys,y.collection,F,f]),n.useEffect(()=>{if(S&&Re){const c=Re==="first"?y.collection.getFirstKey():y.collection.getLastKey();y.selectionManager.setFocusedKey(c??null),ye(null)}},[S,Re,y.collection,y.selectionManager]),n.useEffect(()=>{S?y.selectionManager.setFocused(!0):(y.selectionManager.setFocused(!1),y.selectionManager.setFocusedKey(null))},[S,y.selectionManager]);const ze=n.useRef(!1);y.collection.size>0&&(ze.current=!0),n.useEffect(()=>{if(!S||H||ve||!ze.current)return;y.collection.size>0||T(!1)},[S,H,ve,y.collection.size,T,L]),n.useEffect(()=>{const c=Me.current;if(!c)return;const u=()=>{const $=c.offsetWidth;lt(`${$}px`)};u();const p=new ResizeObserver(u);return p.observe(c),()=>{p.disconnect()}},[]);const mt=[[be.$3985021b0ad6602f$export$37fb8590cf2c088c,{ref:z,role:"combobox","aria-autocomplete":"list","aria-controls":r==="multiple"?`${ne} ${Z}`:Z,"aria-expanded":S,"aria-activedescendant":y.selectionManager.focusedKey?`${Z}-option-${y.selectionManager.focusedKey}`:void 0,"aria-describedby":r==="multiple"?`${ne} ${oe??""}`:oe,"aria-label":Q,"aria-labelledby":re,value:L,onChange:c=>ct(c.target.value),onKeyDown:dt,onFocus:ft,onBlur:pt,disabled:R,readOnly:v,required:pe,"aria-invalid":Y,placeholder:g,name:G,form:he,validationbehavior:xe,validate:D}],[ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{id:ne,"aria-label":t.format("selectedValues"),items:nt,onRemove:ut}],[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{toggle:{onPress:it,"aria-label":t.format("toggleOptions"),isDisabled:R||v,isPressed:S},clear:{onPress:at,"aria-label":t.format("clearSelection"),style:C.size>0?void 0:{display:"none"},isDisabled:R||v||y.selectionManager.selectedKeys.size===0}}}],[$t.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{isOpen:S,onOpenChange:()=>{},ref:Be,triggerRef:Me,scrollRef:me,isNonModal:!0,trigger:"ComboBox",placement:"bottom start",style:{"--nimbus-combobox-trigger-width":st},clearContexts:[St.$01b77f81d0f07f68$export$75b6ee27786ba447,Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,be.$3985021b0ad6602f$export$37fb8590cf2c088c,Ct.$a049562f99e7db0e$export$f9c6924e160136d1,wt.$514c0188e459b4c0$export$9afb8bc826b033ea]}],[vt.$4e85f108e88277b8$export$b0d3ecf7112093a7,{shouldUseVirtualFocus:!0}],[de.$eed445e0843c11d0$export$7ff8f37d2d81a48d,{items:l,id:Z,ref:me,renderEmptyState:U,shouldFocusWrap:A,"aria-label":t.format("options")}],[de.$eed445e0843c11d0$export$7c5906fe4f1f2af2,y]];return m.jsxs(Oe.$64fa3d84918910a7$export$2881499e37b75b9a,{values:mt,children:[m.jsx(He,{name:G,form:he,selectedKeys:C,selectionMode:r,formValue:Ie,allowsCustomOptions:W,collection:y.collection,inputValue:L}),a]})},Je=e=>{const[t,r]=fe.extractStyleProps(e),l=n.useContext(be.$3985021b0ad6602f$export$37fb8590cf2c088c),{inputRef:o}=Ke();let s="",a="";l&&typeof l=="object"&&"value"in l&&(s=l.value||"",a=l.placeholder||"");const i=Math.max(s.length||a.length||1,1);return m.jsx(Vt,{asChild:!0,...t,children:m.jsx(be.$3985021b0ad6602f$export$f5b8910cec6cf069,{ref:o,...r,size:i,"data-empty":!(s.length||a.length)})})};Je.displayName="ComboBox.Input";const tr=({children:e})=>m.jsx(Tt,{children:e}),Qe=e=>{const{selectionMode:t,size:r,getKey:l,getTextValue:o,isDisabled:s,isReadOnly:a}=Ke(),[i,d]=fe.extractStyleProps(e),x=n.useContext(ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3),h=(x&&"items"in x?x.items:void 0)??[];return t!=="multiple"?null:m.jsx(Pt,{...i,...d,asChild:!0,children:m.jsx(ue.TagGroup.Root,{size:r,children:m.jsx(ue.TagGroup.TagList,{items:h,display:"contents",children:f=>{const w=l(f),g=o(f);return m.jsx(ue.TagGroup.Tag,{id:w,textValue:g,isDisabled:s||a,maxW:"100%",children:g})}})})})};Qe.displayName="ComboBox.TagGroup";const Xe=({children:e,...t})=>{const{triggerRef:r,leadingElement:l,inputRef:o,isLoading:s,isDisabled:a}=Ke(),i=d=>{!a&&d.target instanceof HTMLElement&&!d.target.closest("button")&&o.current?.focus()};return m.jsxs(Ot,{ref:r,onClick:i,...t,children:[l&&m.jsx(tr,{children:l}),m.jsxs(Lt,{children:[m.jsx(Qe,{}),m.jsx(Je,{})]}),m.jsx(qe.IconButton,{slot:"clear",size:"2xs",variant:"ghost",colorPalette:"primary",children:m.jsx(Ae.Close,{})}),m.jsx(qe.IconButton,{slot:"toggle",size:"2xs",variant:"ghost",colorPalette:"neutral",excludeFromTabOrder:!0,children:s?m.jsx(xt.LoadingSpinner,{size:"xs",margin:"50"}):m.jsx(Ae.KeyboardArrowDown,{})}),e]})};Xe.displayName="ComboBox.Trigger";const Ye=({children:e,ref:t,...r})=>{const[l,o]=fe.extractStyleProps(r);return m.jsx(jt,{asChild:!0,...l,children:m.jsx(bt.Popover,{ref:t,isNonModal:!0,autoFocus:!0,...o,children:e})})};Ye.displayName="ComboBox.Popover";function Ze({children:e,ref:t,...r}){const[l,o]=fe.extractStyleProps(r),s=typeof e=="function"?a=>{const i=e(a),d=a;return n.isValidElement(i)&&(d.id||d.textValue)?n.cloneElement(i,{...i.props,...d.id?{id:d.id}:{},...d.textValue?{textValue:d.textValue}:{}}):i}:e;return m.jsx(Dt,{...l,ref:t,asChild:!0,children:m.jsx(de.$eed445e0843c11d0$export$41f133550aa26f48,{...o,children:s})})}Ze.displayName="ComboBox.ListBox";function _e({children:e,ref:t,...r}){const[l,o]=fe.extractStyleProps(r);return m.jsx(zt,{...l,asChild:!0,children:m.jsx(de.$eed445e0843c11d0$export$a11e76429ed99b4,{ref:t,...o,children:s=>{const a=typeof e=="function"?e({...s}):e;return s.selectionMode==="multiple"?m.jsxs(m.Fragment,{children:[m.jsx(qt,{children:m.jsx("span",{"data-selected":s.isSelected,children:s.isSelected&&m.jsx(Ae.Check,{})})}),m.jsx(Nt,{children:a})]}):m.jsx(m.Fragment,{children:a})}})})}_e.displayName="ComboBox.Option";function et({children:e,label:t,items:r,ref:l,...o}){if(r&&typeof e!="function")throw new Error('ComboBox.Section: When "items" is provided, "children" must be a function');return m.jsxs(de.$eed445e0843c11d0$export$dca12b0bb56e4fc,{ref:l,...o,children:[t&&m.jsx(kt,{asChild:!0,children:m.jsx(gt.$72a5793c14baf454$export$8b251419efc915eb,{children:t})}),r?m.jsx(We.$e1995378a142960e$export$fb8073518f34e6ec,{items:r,children:s=>typeof e=="function"?e(s):null}):e]})}et.displayName="ComboBox.Section";function tt(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const o of e)o.textValue.toLowerCase().includes(r)&&l.push(o);return l}function rr(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const o of e)o.textValue.toLowerCase().startsWith(r)&&l.push(o);return l}function or(e,t){if(!t.trim())return e;const r=[];for(const l of e)l.textValue.includes(t)&&r.push(l);return r}function nr(e,t){if(!t.trim())return e;const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),l=new RegExp(`\\b${r}`,"i"),o=[];for(const s of e)l.test(s.textValue)&&o.push(s);return o}function sr(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const o of e){const s=o.textValue.toLowerCase();let a=0;for(let i=0;i<s.length&&a<r.length;i++)s[i]===r[a]&&a++;a===r.length&&l.push(o)}return l}function lr(e){return(t,r)=>{if(!r.trim())return t;const l=r.toLowerCase(),o=[];for(const s of t){const a=s.value;if(!a)continue;e.some(d=>{const x=d.split(".").reduce((f,w)=>f&&typeof f=="object"?f[w]:void 0,a);return x==null?!1:String(x).toLowerCase().includes(l)})&&o.push(s)}return o}}function ir(e){return(t,r)=>{if(!r.trim())return t;const l=[];for(const o of t){const s=e(o,r);s>0&&l.push({node:o,score:s})}return l.sort((o,s)=>s.score-o.score),l.map(o=>o.node)}}function cr(e=tt){return(t,r)=>{if(!r.trim())return t;const l=r.split(/\s+/).filter(a=>a.length>0);if(l.length===0)return t;const o=new Set;for(const a of l){const i=e(t,a);for(const d of i)o.add(d.key)}const s=[];for(const a of t)o.has(a.key)&&s.push(a);return s}}function ar(e){return(t,r)=>{if(!r.trim())return t;const l=[];let o=null;const s=[],a=()=>{o&&s.length>0&&(l.push(o),l.push(...s)),s.length=0};for(const i of t)if(i.type==="section")a(),o=i;else{const d=Array.from(e([i],r));d.length>0&&s.push(...d)}return a(),l}}const ur={Root:Ue,Trigger:Xe,Popover:Ye,ListBox:Ze,Option:_e,Section:et,filters:{filterByText:tt,filterByStartsWith:rr,filterByCaseSensitive:or,filterByWordBoundary:nr,filterByFuzzy:sr,createMultiPropertyFilter:lr,createRankedFilter:ir,createMultiTermFilter:cr,createSectionAwareFilter:ar}};exports.ComboBox=ur;
|
|
2
|
-
//# sourceMappingURL=combobox-
|
|
1
|
+
"use strict";const m=require("react/jsx-runtime"),n=require("react"),gt=require("./Header-BXEPjypM.cjs.js"),de=require("./ListBox-rm_vuzPg.cjs.js"),We=require("./CollectionBuilder-DjRx57vm.cjs.js"),yt=require("@chakra-ui/react"),Ae=require("@commercetools/nimbus-icons"),fe=require("./extract-style-props-C5Zbx7mA.cjs.js"),bt=require("./popover-Dhg--8YC.cjs.js"),qe=require("./icon-button-C1TIOrC2.cjs.js"),xt=require("./loading-spinner-DYEYnI5N.cjs.js"),be=require("./Input-2FU1rljx.cjs.js"),ue=require("./tag-group-B7QZhXAF.cjs.js"),ht=require("@chakra-ui/react/styled-system"),vt=require("./RSPContexts-BdKenzIN.cjs.js"),Fe=require("./Button-DLCecw8f.cjs.js"),Oe=require("./utils-DVb3jcp5.cjs.js"),Ct=require("./Group-1nWkximy.cjs.js"),St=require("./Label-szabofdc.cjs.js"),$t=require("./Dialog-CSr6lHSd.cjs.js"),wt=require("./Text-BWSfeB9p.cjs.js"),ae=require("./normalize-messages-CaDzkuUm.cjs.js"),Kt=require("./useListData-BGzhnkuO.cjs.js"),Ne=require("./mergeProps-CxnHrnow.cjs.js"),It=require("./useListState-BjCb6LLO.cjs.js");function Mt(e,t){let r;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var l,o;return{...e,filterText:(l=t.filterText)!==null&&l!==void 0?l:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,sortDescriptor:(o=t.sortDescriptor)!==null&&o!==void 0?o:e.sortDescriptor,abortController:t.abortController};case"update":var s;return{...e,...(s=t.updater)===null||s===void 0?void 0:s.call(t,e)};case"success":case"error":return e;default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loading":case"sorting":case"filtering":switch(t.type){case"success":if(t.abortController!==e.abortController)return e;var a;r=(a=t.selectedKeys)!==null&&a!==void 0?a:e.selectedKeys;var i,d,x;return{...e,filterText:(i=t.filterText)!==null&&i!==void 0?i:e.filterText,state:"idle",items:[...(d=t.items)!==null&&d!==void 0?d:[]],selectedKeys:r==="all"?"all":new Set(r),sortDescriptor:(x=t.sortDescriptor)!==null&&x!==void 0?x:e.sortDescriptor,abortController:void 0,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error,abortController:void 0};case"loading":case"loadingMore":case"sorting":case"filtering":var h;(h=e.abortController)===null||h===void 0||h.abort();var f;return{...e,filterText:(f=t.filterText)!==null&&f!==void 0?f:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,abortController:t.abortController};case"update":var w;return{...e,...(w=t.updater)===null||w===void 0?void 0:w.call(t,e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loadingMore":switch(t.type){case"success":var g;r=e.selectedKeys==="all"||t.selectedKeys==="all"?"all":new Set([...e.selectedKeys,...(g=t.selectedKeys)!==null&&g!==void 0?g:[]]);var I,O;return{...e,state:"idle",items:[...e.items,...(I=t.items)!==null&&I!==void 0?I:[]],selectedKeys:r,sortDescriptor:(O=t.sortDescriptor)!==null&&O!==void 0?O:e.sortDescriptor,abortController:void 0,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error};case"loading":case"sorting":case"filtering":var M;(M=e.abortController)===null||M===void 0||M.abort();var b;return{...e,filterText:(b=t.filterText)!==null&&b!==void 0?b:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,abortController:t.abortController};case"loadingMore":var E;return(E=t.abortController)===null||E===void 0||E.abort(),e;case"update":var K;return{...e,...(K=t.updater)===null||K===void 0?void 0:K.call(t,e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw new Error(`Invalid state "${e.state}"`)}}function Bt(e){const{load:t,sort:r,initialSelectedKeys:l,initialSortDescriptor:o,getKey:s=f=>f.id||f.key,initialFilterText:a=""}=e;let[i,d]=n.useReducer(Mt,{state:"idle",error:void 0,items:[],selectedKeys:l==="all"?"all":new Set(l),sortDescriptor:o,filterText:a});const x=async(f,w)=>{let g=new AbortController;try{d({...f,abortController:g});var I;let b=(I=f.filterText)!==null&&I!==void 0?I:i.filterText;var O;let E=await w({items:i.items.slice(),selectedKeys:i.selectedKeys,sortDescriptor:(O=f.sortDescriptor)!==null&&O!==void 0?O:i.sortDescriptor,signal:g.signal,cursor:f.type==="loadingMore"?i.cursor:void 0,filterText:b,loadingState:i.state});var M;let K=(M=E.filterText)!==null&&M!==void 0?M:b;d({type:"success",...E,abortController:g}),K&&K!==b&&!g.signal.aborted&&x({type:"filtering",filterText:K},t)}catch(b){d({type:"error",error:b,abortController:g})}};let h=n.useRef(!1);return n.useEffect(()=>{h.current||(x({type:"loading"},t),h.current=!0)},[]),{items:i.items,selectedKeys:i.selectedKeys,sortDescriptor:i.sortDescriptor,isLoading:i.state==="loading"||i.state==="loadingMore"||i.state==="sorting"||i.state==="filtering",loadingState:i.state,error:i.error,filterText:i.filterText,getItem(f){return i.items.find(w=>s(w)===f)},reload(){x({type:"loading"},t)},loadMore(){i.state==="loading"||i.state==="loadingMore"||i.state==="filtering"||i.cursor==null||x({type:"loadingMore"},t)},sort(f){x({type:"sorting",sortDescriptor:f},r||t)},...Kt.$0d86e9c8f07f9a7b$export$79c0c687a5963b0a({...e,getKey:s,cursor:i.cursor},f=>{d({type:"update",updater:f})}),setFilterText(f){x({type:"filtering",filterText:f},t)}}}const Rt=n.createContext(null);function Et(e,t,r,l){var o=this,s=n.useRef(null),a=n.useRef(0),i=n.useRef(0),d=n.useRef(null),x=n.useRef([]),h=n.useRef(),f=n.useRef(),w=n.useRef(e),g=n.useRef(!0),I=n.useRef(),O=n.useRef();w.current=e;var M=typeof window<"u",b=!t&&t!==0&&M;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var E=!!(r=r||{}).leading,K=!("trailing"in r)||!!r.trailing,H=!!r.flushOnExit&&K,U="maxWait"in r,W="debounceOnServer"in r&&!!r.debounceOnServer,J=U?Math.max(+r.maxWait||0,t):null,te=n.useMemo(function(){var P=function(v){var A=x.current,V=h.current;return x.current=h.current=null,a.current=v,i.current=i.current||v,f.current=w.current.apply(V,A)},Q=function(v,A){b&&cancelAnimationFrame(d.current),d.current=b?requestAnimationFrame(v):setTimeout(v,A)},re=function(v){if(!g.current)return!1;var A=v-s.current;return!s.current||A>=t||A<0||U&&v-a.current>=J},oe=function(v){return d.current=null,K&&x.current?P(v):(x.current=h.current=null,f.current)},R=function v(){var A=Date.now();if(E&&i.current===a.current&&pe(),re(A))return oe(A);if(g.current){var V=t-(A-s.current),G=U?Math.min(V,J-(A-a.current)):V;Q(v,G)}},pe=function(){},Y=function(){if(M||W){var v,A=Date.now(),V=re(A);if(x.current=[].slice.call(arguments),h.current=o,s.current=A,H&&!I.current&&(I.current=function(){var G;((G=global.document)==null?void 0:G.visibilityState)==="hidden"&&O.current.flush()},(v=global.document)==null||v.addEventListener==null||v.addEventListener("visibilitychange",I.current)),V){if(!d.current&&g.current)return a.current=s.current,Q(R,t),E?P(s.current):f.current;if(U)return Q(R,t),P(s.current)}return d.current||Q(R,t),f.current}};return Y.cancel=function(){var v=d.current;v&&(b?cancelAnimationFrame(d.current):clearTimeout(d.current)),a.current=0,x.current=s.current=h.current=d.current=null},Y.isPending=function(){return!!d.current},Y.flush=function(){return d.current?oe(Date.now()):f.current},Y},[E,U,t,J,K,H,b,M,W,l]);return O.current=te,n.useEffect(function(){return g.current=!0,function(){var P;H&&O.current.flush(),I.current&&((P=global.document)==null||P.removeEventListener==null||P.removeEventListener("visibilitychange",I.current),I.current=null),g.current=!1}},[H]),te}const{withProvider:At,withContext:N}=yt.createSlotRecipeContext({key:"combobox"}),Ft=At("div","root"),Ot=N("div","trigger"),Tt=N("div","leadingElement"),Lt=N("div","content"),Pt=N("div","tagGroup"),Vt=N("div","input"),jt=N("div","popover"),Dt=N("div","listBox"),kt=N("div","section"),zt=N("div","option"),qt=N("div","optionIndicator"),Nt=N("div","optionContent"),Wt={clearSelection:"Clear selection",options:"Options menu",selectedValues:"Selected values",toggleOptions:"Toggle options"},Gt={clearSelection:"Auswahl löschen",options:"Options menu",selectedValues:"Ausgewählte Werte",toggleOptions:"Toggle options"},Ht={clearSelection:"Borrar selección",options:"Menú de opciones",selectedValues:"Valores seleccionados",toggleOptions:"Opciones de conmutación"},Ut={clearSelection:"Effacer la sélection",options:"Menu d'options",selectedValues:"Valeurs sélectionnées",toggleOptions:"Basculer les options"},Jt={clearSelection:"Limpar seleção",options:"Options menu",selectedValues:"Selecionar valores",toggleOptions:"Toggle options"},Qt={en:ae.normalizeMessages(Wt),de:ae.normalizeMessages(Gt),es:ae.normalizeMessages(Ht),"fr-FR":ae.normalizeMessages(Ut),"pt-BR":ae.normalizeMessages(Jt)};function Ge(e){if(typeof e=="string"||typeof e=="number")return e;if("id"in e)return e.id;throw new Error("ComboBox - Item must have an 'id' property or provide getKey function")}function Xt(e){if(typeof e=="string")return e;if("name"in e)return String(e.name);if("label"in e)return String(e.label);throw new Error("ComboBox - Item must have 'name' or 'label' property, or provide a getTextValue function")}function Yt(e){return{id:e,name:e}}const Zt=e=>e?e instanceof Set?e:new Set(Array.isArray(e)?e:[e]):new Set,_t=e=>Array.from(e),Te=n.createContext(null),Ke=()=>{const e=n.useContext(Te);if(!e)throw new Error("Nimbus - ComboBox components must be used within ComboBox.Root");return e},He=e=>{const{name:t,form:r,selectedKeys:l,selectionMode:o,formValue:s,allowsCustomOptions:a,collection:i,inputValue:d}=e;if(!t)return null;const x=n.useMemo(()=>{if(o==="single"){const h=Array.from(l)[0];return h?s==="text"||a?Array.from(i).find(w=>w.key===h)?.textValue||d||"":String(h):""}else{const h=Array.from(l);return s==="text"||a?h.map(f=>Array.from(i).find(g=>g.key===f)?.textValue||"").filter(Boolean).join(","):h.join(",")}},[o,l,s,a,i,d]);return m.jsx("input",{type:"hidden",name:t,form:typeof r=="string"?r:void 0,value:x})};He.displayName="ComboBoxHiddenInput";function Ue(e){let t;[e,t]=Oe.$64fa3d84918910a7$export$29f1550f4b0d4415(e,null,Rt);const{selectionMode:r="single",size:l="md",getKey:o=Ge,getTextValue:s=Xt,children:a,leadingElement:i,inputValue:d,onInputChange:x,isLoading:h,allowsEmptyMenu:f,renderEmptyState:w,async:g,filter:I,allowsCustomOptions:O=!1,isDisabled:M=!1,isInvalid:b=!1,isRequired:E=!1,isReadOnly:K=!1}=e,H=ht.useSlotRecipe({key:"combobox"}),[U,W]=H.splitVariantProps(e),[J,te]=fe.extractStyleProps(W),P=n.useRef(null),Q=n.useRef(null),[re,oe]=n.useState([]),R=Bt({getKey:o,async load({signal:B,filterText:q}){if(!g)return{items:[]};const _=g.minSearchLength??0;if(!q||q.length<_)return{items:[]};try{return{items:await g.load(q,B)}}catch(se){if(se.name==="AbortError")throw se;const C=se;return g.onError?.(C),{items:[]}}}}),[pe,Y]=n.useState(d),[v,A]=n.useState(!1),[V,G]=n.useState([]),Ie=g?.debounce??300,xe=Et(B=>{A(!1),R.setFilterText(B)},Ie),he=n.useCallback(B=>{Y(B),A(!0),xe(B)},[xe]),D=g?pe:d,ve=g?he:x,X=g?v||R.loadingState==="loading"||R.loadingState==="loadingMore"||R.loadingState==="filtering":h,Ce=g||O?!0:f,Se=n.useCallback(()=>X?D?.length?`loading results for "${D}"`:"loading results":D?.length&&g?.minSearchLength&&D.length>=g.minSearchLength?`no results for "${D}"`:g?.minSearchLength?`enter at least ${g?.minSearchLength} characters`:"type to search",[g?.minSearchLength,X,D]),$e=n.useCallback(()=>X?D?.length?`loading results for "${D}"`:"loading results":'hit "enter" to create an option',[X,D]),z=(O?$e:g?Se:void 0)??w,Z=n.useMemo(()=>{const B=g?Array.from(R.items):e.items,q=B?Array.from(B):[],_=new Set(q.map(F=>o(F)));let C=[...re.filter(F=>!_.has(o(F))),...q];if(g&&r==="multiple"&&V.length>0){const F=new Set(C.map(ge=>o(ge)));C=[...V.filter(ge=>!F.has(o(ge))),...C]}return C},[g,R.items,e.items,re,V,r,o]),ne=n.useMemo(()=>({selectionMode:r,size:l,getKey:o,getTextValue:s,leadingElement:i,triggerRef:P,inputRef:Q,isLoading:X,isDisabled:M,isRequired:E,isInvalid:b,isReadOnly:K}),[r,o,s,i,P,Q,M,E,b,K]),me=n.useMemo(()=>{if(Z)return Array.from(Z).map(B=>{const q="id"in B,_="textValue"in B;return q&&_?B:{...B,...q?{}:{id:o(B)},..._?{}:{textValue:s(B)}}})},[Z,o,s]),Be=n.useMemo(()=>m.jsx(Te.Provider,{value:ne,children:m.jsx(de.$eed445e0843c11d0$export$7ff8f37d2d81a48d.Provider,{value:{items:me},children:typeof a=="function"?a({isOpen:!1,isDisabled:M,isInvalid:b,isRequired:E,defaultChildren:null}):a})}),[a,M,b,E,me,ne]);return m.jsx(Oe.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{}],[be.$3985021b0ad6602f$export$37fb8590cf2c088c,{}],[ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{}]],children:m.jsx(Te.Provider,{value:ne,children:m.jsx(Ft,{ref:t,...U,...J,size:l,"data-disabled":M,"data-invalid":b,"data-required":E,"data-readonly":K,"data-open":e.isOpen,role:"group",children:m.jsx(We.$e1995378a142960e$export$bf788dd355e3a401,{content:Be,children:B=>m.jsx(er,{...te,size:l,filter:I,selectionMode:r,inputValue:D,onInputChange:ve,getKey:o,getTextValue:s,allowsEmptyMenu:Ce,renderEmptyState:z,isDisabled:M,isRequired:E,isInvalid:b,isReadOnly:K,collection:B,allowsCustomOptions:O,asyncConfig:g,onAsyncSelectedItemsChange:g&&r==="multiple"?G:void 0,onAddCustomItem:oe,onAddAsyncSelectedItem:G})})})})})}Ue.displayName="ComboBox.Root";const er=e=>{const t=ae.useLocalizedStringFormatter(Qt),{selectionMode:r="single",items:l,collection:o,getKey:s=Ge,children:a,selectedKeys:i=[],onSelectionChange:d,disabledKeys:x,inputValue:h="",onInputChange:f,filter:w,placeholder:g,menuTrigger:I="input",shouldCloseOnBlur:O=!0,shouldCloseOnSelect:M=!0,isOpen:b,defaultOpen:E=!1,onOpenChange:K,allowsEmptyMenu:H=!1,renderEmptyState:U,allowsCustomOptions:W=!1,isValidNewOption:J,getNewOptionData:te=Yt,onCreateOption:P,"aria-label":Q,"aria-labelledby":re,"aria-describedby":oe,isDisabled:R=!1,isRequired:pe=!1,isInvalid:Y=!1,isReadOnly:v=!1,shouldFocusWrap:A=!0,autoFocus:V=!1,name:G,formValue:Ie,validationBehavior:xe="aria",form:he,validate:D,isLoading:ve,asyncConfig:X,onAsyncSelectedItemsChange:Ce,onAddCustomItem:Se,onAddAsyncSelectedItem:$e}=e,{triggerRef:Me,inputRef:z}=Ke(),Z=Ne.$bdb11010cef70236$export$f680877a34711e37(),ne=Ne.$bdb11010cef70236$export$f680877a34711e37(),me=n.useRef(null),Be=n.useRef(null),B=n.useMemo(()=>Zt(i),[i]),q=!!d,[_,se]=n.useState(B),C=q?B:_,F=f!==void 0,Le=()=>{if(h)return h;if(F||r!=="single")return"";const c=Array.from(C);if(c.length===0)return"";const u=c[0];return o.getItem(u)?.textValue??""},[ge,le]=n.useState(Le),L=F?h:ge,ee=n.useRef(L),[rt,Pe]=n.useState(E),S=b??rt,[Re,ye]=n.useState(null),T=n.useCallback(c=>{b===void 0&&Pe(c),K?.(c)},[b,K]),ot=n.useMemo(()=>{if(L.trim()==="")return o;if(r==="single"){const u=Array.from(C);if(u.length>0){const p=u[0];if(o.getItem(p)?.textValue===L)return o}}if(w){const u=Array.from(o),p=Array.from(w(u,L)),$=new Set(p.map(we=>we.key));return o.filter?.((we,Ee)=>$.has(Ee.key))??o}const c=L.toLowerCase();return o.filter?.(u=>u.toLowerCase().includes(c))??o},[o,L,w,r,C]),nt=n.useMemo(()=>r==="multiple"?Array.from(C).map(c=>o.getItem(c)?.value).filter(c=>c!==void 0):[],[r,C,o]),[st,lt]=n.useState(null),it=n.useCallback(()=>{const c=b===void 0?!S:!b;b===void 0?Pe(u=>!u):K?.(!b),c&&(z.current?.focus(),ye("first"))},[b,S,K]),ct=n.useCallback(c=>{F||le(c),f?.(c),I==="input"&&c!==ee.current&&T(!0),ee.current=c},[F,f,I,T]),j=n.useCallback((c,u)=>{let p=c==="all"?new Set(Array.from(o).map(k=>k.key)):c;const $=u??C,we=p.size>0&&Array.from(p).every(k=>$.has(k))&&p.size<$.size;if(r==="multiple"&&p.size===1&&!we){const k=Array.from(p)[0],ce=$.has(k),ie=new Set($);ce?ie.delete(k):ie.add(k),p=ie}const Ee=_t(p);if(d?d(Ee):se(p),X&&r==="multiple"&&Ce){const k=Array.from(p).map(ce=>o.getItem(ce)?.value).filter(ce=>ce!==void 0);Ce(k)}if(r==="single"){const k=Array.from(p)[0];if(k!==null){const ie=o.getItem(k)?.textValue??"";F||(le(ie),ee.current=ie),f?.(ie)}M&&T(!1)}},[o,r,C,d,f,M,T,F]),y=It.$e72dd72e1c76a225$export$2f645645f7bca764({selectionMode:r,collection:ot,selectedKeys:C,onSelectionChange:j,disabledKeys:x}),at=n.useCallback(()=>{j(new Set),F||(le(""),ee.current=""),f?.(""),T(!0),requestAnimationFrame(()=>{z.current?.focus()})},[j,F,f,T,z]),Ve=n.useCallback(c=>{Se?.($=>[...$,c]),X&&r==="multiple"&&$e?.($=>[...$,c]);const u=s(c),p=C;if(r==="single")j(new Set([u]),p);else{const $=new Set(p);$.add(u),j($,p)}},[Se,X,r,$e,s,C,j]),je=n.useCallback(()=>{if(!W)return!1;const c=L.trim();if(!c||Array.from(o).some($=>$.textValue?.toLowerCase()===c.toLowerCase())||J&&!J(c))return!1;const p=te(c);return Ve(p),r==="multiple"?(F||(le(""),ee.current=""),f?.("")):(F||(le(c),ee.current=c),f?.(c)),P?.(p),!0},[W,te,J,L,o,r,f,P,Ve,F,le,ee]),ut=n.useCallback(c=>{if(R||v)return;const u=C,p=new Set(u);c.forEach($=>p.delete($)),j(p,u),p.size===0&&z.current?.focus()},[C,j,R,v]),dt=n.useCallback(c=>{switch(c.key){case"ArrowDown":if(c.preventDefault(),!S)T(!0),ye("first");else{const u=y.selectionManager.focusedKey,p=u?y.collection.getKeyAfter(u):y.collection.getFirstKey();y.selectionManager.setFocusedKey(p??y.collection.getFirstKey())}break;case"ArrowUp":if(c.preventDefault(),!S)T(!0),ye("last");else{const u=y.selectionManager.focusedKey,p=u?y.collection.getKeyBefore(u):y.collection.getLastKey();y.selectionManager.setFocusedKey(p??y.collection.getLastKey())}break;case"Enter":if(S&&y.selectionManager.focusedKey){c.preventDefault();const u=y.selectionManager.focusedKey;if(r==="multiple"){const p=new Set(C);p.has(u)?p.delete(u):p.add(u),j(p)}else j(new Set([u])),y.selectionManager.setFocusedKey(null)}else S&&!y.selectionManager.focusedKey&&W&&je()&&c.preventDefault();break;case"Escape":S&&(c.preventDefault(),T(!1),y.selectionManager.setFocusedKey(null));break;case"Home":if(S){c.preventDefault();const u=y.collection.getFirstKey();y.selectionManager.setFocusedKey(u)}break;case"End":if(S){c.preventDefault();const u=y.collection.getLastKey();y.selectionManager.setFocusedKey(u)}break;case"Backspace":if(L===""){const u=Array.from(C);if(u.length>0)if(c.preventDefault(),r==="single")j(new Set);else{const p=new Set(u);p.delete(u[u.length-1]),j(p)}}break}},[S,y.selectionManager,y.collection,j,T,ye,r,L,C,W,je]),ft=n.useCallback(()=>{I==="focus"&&!R&&!v&&T(!0),r==="single"&&L&&z.current&&z.current.select()},[I,R,v,T,r,L]),pt=n.useCallback(c=>{if(!O)return;const u=c.currentTarget;setTimeout(()=>{const p=document.activeElement;u.contains(p)||T(!1)},150)},[O,T]),De=n.useRef(null);n.useEffect(()=>{V&&z.current&&!R&&z.current.focus()},[V,R]);const ke=n.useRef(S);n.useEffect(()=>{b===void 0&&ke.current!==S&&(ke.current=S,K?.(S))},[S,b,K]),n.useEffect(()=>{if(r!=="single")return;const c=Array.from(y.selectionManager.selectedKeys),u=c.length>0?c[0]:null;if(u===De.current)return;De.current=u;const p=u!==null?y.collection.getItem(u):null;if(u!==null&&!p)return;const $=p?.textValue??"";F?f?.($):(le($),ee.current=$)},[r,y.selectionManager.selectedKeys,y.collection,F,f]),n.useEffect(()=>{if(S&&Re){const c=Re==="first"?y.collection.getFirstKey():y.collection.getLastKey();y.selectionManager.setFocusedKey(c??null),ye(null)}},[S,Re,y.collection,y.selectionManager]),n.useEffect(()=>{S?y.selectionManager.setFocused(!0):(y.selectionManager.setFocused(!1),y.selectionManager.setFocusedKey(null))},[S,y.selectionManager]);const ze=n.useRef(!1);y.collection.size>0&&(ze.current=!0),n.useEffect(()=>{if(!S||H||ve||!ze.current)return;y.collection.size>0||T(!1)},[S,H,ve,y.collection.size,T,L]),n.useEffect(()=>{const c=Me.current;if(!c)return;const u=()=>{const $=c.offsetWidth;lt(`${$}px`)};u();const p=new ResizeObserver(u);return p.observe(c),()=>{p.disconnect()}},[]);const mt=[[be.$3985021b0ad6602f$export$37fb8590cf2c088c,{ref:z,role:"combobox","aria-autocomplete":"list","aria-controls":r==="multiple"?`${ne} ${Z}`:Z,"aria-expanded":S,"aria-activedescendant":y.selectionManager.focusedKey?`${Z}-option-${y.selectionManager.focusedKey}`:void 0,"aria-describedby":r==="multiple"?`${ne} ${oe??""}`:oe,"aria-label":Q,"aria-labelledby":re,value:L,onChange:c=>ct(c.target.value),onKeyDown:dt,onFocus:ft,onBlur:pt,disabled:R,readOnly:v,required:pe,"aria-invalid":Y,placeholder:g,name:G,form:he,validationbehavior:xe,validate:D}],[ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{id:ne,"aria-label":t.format("selectedValues"),items:nt,onRemove:ut}],[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{toggle:{onPress:it,"aria-label":t.format("toggleOptions"),isDisabled:R||v,isPressed:S},clear:{onPress:at,"aria-label":t.format("clearSelection"),style:C.size>0?void 0:{display:"none"},isDisabled:R||v||y.selectionManager.selectedKeys.size===0}}}],[$t.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{isOpen:S,onOpenChange:()=>{},ref:Be,triggerRef:Me,scrollRef:me,isNonModal:!0,trigger:"ComboBox",placement:"bottom start",style:{"--nimbus-combobox-trigger-width":st},clearContexts:[St.$01b77f81d0f07f68$export$75b6ee27786ba447,Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,be.$3985021b0ad6602f$export$37fb8590cf2c088c,Ct.$a049562f99e7db0e$export$f9c6924e160136d1,wt.$514c0188e459b4c0$export$9afb8bc826b033ea]}],[vt.$4e85f108e88277b8$export$b0d3ecf7112093a7,{shouldUseVirtualFocus:!0}],[de.$eed445e0843c11d0$export$7ff8f37d2d81a48d,{items:l,id:Z,ref:me,renderEmptyState:U,shouldFocusWrap:A,"aria-label":t.format("options")}],[de.$eed445e0843c11d0$export$7c5906fe4f1f2af2,y]];return m.jsxs(Oe.$64fa3d84918910a7$export$2881499e37b75b9a,{values:mt,children:[m.jsx(He,{name:G,form:he,selectedKeys:C,selectionMode:r,formValue:Ie,allowsCustomOptions:W,collection:y.collection,inputValue:L}),a]})},Je=e=>{const[t,r]=fe.extractStyleProps(e),l=n.useContext(be.$3985021b0ad6602f$export$37fb8590cf2c088c),{inputRef:o}=Ke();let s="",a="";l&&typeof l=="object"&&"value"in l&&(s=l.value||"",a=l.placeholder||"");const i=Math.max(s.length||a.length||1,1);return m.jsx(Vt,{asChild:!0,...t,children:m.jsx(be.$3985021b0ad6602f$export$f5b8910cec6cf069,{ref:o,...r,size:i,"data-empty":!(s.length||a.length)})})};Je.displayName="ComboBox.Input";const tr=({children:e})=>m.jsx(Tt,{children:e}),Qe=e=>{const{selectionMode:t,size:r,getKey:l,getTextValue:o,isDisabled:s,isReadOnly:a}=Ke(),[i,d]=fe.extractStyleProps(e),x=n.useContext(ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3),h=(x&&"items"in x?x.items:void 0)??[];return t!=="multiple"?null:m.jsx(Pt,{...i,...d,asChild:!0,children:m.jsx(ue.TagGroup.Root,{size:r,children:m.jsx(ue.TagGroup.TagList,{items:h,display:"contents",children:f=>{const w=l(f),g=o(f);return m.jsx(ue.TagGroup.Tag,{id:w,textValue:g,isDisabled:s||a,maxW:"100%",children:g})}})})})};Qe.displayName="ComboBox.TagGroup";const Xe=({children:e,...t})=>{const{triggerRef:r,leadingElement:l,inputRef:o,isLoading:s,isDisabled:a}=Ke(),i=d=>{!a&&d.target instanceof HTMLElement&&!d.target.closest("button")&&o.current?.focus()};return m.jsxs(Ot,{ref:r,onClick:i,...t,children:[l&&m.jsx(tr,{children:l}),m.jsxs(Lt,{children:[m.jsx(Qe,{}),m.jsx(Je,{})]}),m.jsx(qe.IconButton,{slot:"clear",size:"2xs",variant:"ghost",colorPalette:"primary",children:m.jsx(Ae.Close,{})}),m.jsx(qe.IconButton,{slot:"toggle",size:"2xs",variant:"ghost",colorPalette:"neutral",excludeFromTabOrder:!0,children:s?m.jsx(xt.LoadingSpinner,{size:"xs",margin:"50"}):m.jsx(Ae.KeyboardArrowDown,{})}),e]})};Xe.displayName="ComboBox.Trigger";const Ye=({children:e,ref:t,...r})=>{const[l,o]=fe.extractStyleProps(r);return m.jsx(jt,{asChild:!0,...l,children:m.jsx(bt.Popover,{ref:t,isNonModal:!0,autoFocus:!0,...o,children:e})})};Ye.displayName="ComboBox.Popover";function Ze({children:e,ref:t,...r}){const[l,o]=fe.extractStyleProps(r),s=typeof e=="function"?a=>{const i=e(a),d=a;return n.isValidElement(i)&&(d.id||d.textValue)?n.cloneElement(i,{...i.props,...d.id?{id:d.id}:{},...d.textValue?{textValue:d.textValue}:{}}):i}:e;return m.jsx(Dt,{...l,ref:t,asChild:!0,children:m.jsx(de.$eed445e0843c11d0$export$41f133550aa26f48,{...o,children:s})})}Ze.displayName="ComboBox.ListBox";function _e({children:e,ref:t,...r}){const[l,o]=fe.extractStyleProps(r);return m.jsx(zt,{...l,asChild:!0,children:m.jsx(de.$eed445e0843c11d0$export$a11e76429ed99b4,{ref:t,...o,children:s=>{const a=typeof e=="function"?e({...s}):e;return s.selectionMode==="multiple"?m.jsxs(m.Fragment,{children:[m.jsx(qt,{children:m.jsx("span",{"data-selected":s.isSelected,children:s.isSelected&&m.jsx(Ae.Check,{})})}),m.jsx(Nt,{children:a})]}):m.jsx(m.Fragment,{children:a})}})})}_e.displayName="ComboBox.Option";function et({children:e,label:t,items:r,ref:l,...o}){if(r&&typeof e!="function")throw new Error('ComboBox.Section: When "items" is provided, "children" must be a function');return m.jsxs(de.$eed445e0843c11d0$export$dca12b0bb56e4fc,{ref:l,...o,children:[t&&m.jsx(kt,{asChild:!0,children:m.jsx(gt.$72a5793c14baf454$export$8b251419efc915eb,{children:t})}),r?m.jsx(We.$e1995378a142960e$export$fb8073518f34e6ec,{items:r,children:s=>typeof e=="function"?e(s):null}):e]})}et.displayName="ComboBox.Section";function tt(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const o of e)o.textValue.toLowerCase().includes(r)&&l.push(o);return l}function rr(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const o of e)o.textValue.toLowerCase().startsWith(r)&&l.push(o);return l}function or(e,t){if(!t.trim())return e;const r=[];for(const l of e)l.textValue.includes(t)&&r.push(l);return r}function nr(e,t){if(!t.trim())return e;const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),l=new RegExp(`\\b${r}`,"i"),o=[];for(const s of e)l.test(s.textValue)&&o.push(s);return o}function sr(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const o of e){const s=o.textValue.toLowerCase();let a=0;for(let i=0;i<s.length&&a<r.length;i++)s[i]===r[a]&&a++;a===r.length&&l.push(o)}return l}function lr(e){return(t,r)=>{if(!r.trim())return t;const l=r.toLowerCase(),o=[];for(const s of t){const a=s.value;if(!a)continue;e.some(d=>{const x=d.split(".").reduce((f,w)=>f&&typeof f=="object"?f[w]:void 0,a);return x==null?!1:String(x).toLowerCase().includes(l)})&&o.push(s)}return o}}function ir(e){return(t,r)=>{if(!r.trim())return t;const l=[];for(const o of t){const s=e(o,r);s>0&&l.push({node:o,score:s})}return l.sort((o,s)=>s.score-o.score),l.map(o=>o.node)}}function cr(e=tt){return(t,r)=>{if(!r.trim())return t;const l=r.split(/\s+/).filter(a=>a.length>0);if(l.length===0)return t;const o=new Set;for(const a of l){const i=e(t,a);for(const d of i)o.add(d.key)}const s=[];for(const a of t)o.has(a.key)&&s.push(a);return s}}function ar(e){return(t,r)=>{if(!r.trim())return t;const l=[];let o=null;const s=[],a=()=>{o&&s.length>0&&(l.push(o),l.push(...s)),s.length=0};for(const i of t)if(i.type==="section")a(),o=i;else{const d=Array.from(e([i],r));d.length>0&&s.push(...d)}return a(),l}}const ur={Root:Ue,Trigger:Xe,Popover:Ye,ListBox:Ze,Option:_e,Section:et,filters:{filterByText:tt,filterByStartsWith:rr,filterByCaseSensitive:or,filterByWordBoundary:nr,filterByFuzzy:sr,createMultiPropertyFilter:lr,createRankedFilter:ir,createMultiTermFilter:cr,createSectionAwareFilter:ar}};exports.ComboBox=ur;
|
|
2
|
+
//# sourceMappingURL=combobox-DzQy4kLW.cjs.js.map
|