@commercetools/nimbus 2.3.0 → 2.3.1
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-BjcDZ5eb.es.js → Button-CmpJG0ec.es.js} +7 -7
- package/dist/chunks/{Button-BjcDZ5eb.es.js.map → Button-CmpJG0ec.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-BOe312C_.es.js → CollectionBuilder-DYW6tbzU.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-BOe312C_.es.js.map → CollectionBuilder-DYW6tbzU.es.js.map} +1 -1
- package/dist/chunks/{DateField-DCWy1Ysp.es.js → DateField-D4hq_06Z.es.js} +21 -21
- package/dist/chunks/{DateField-DCWy1Ysp.es.js.map → DateField-D4hq_06Z.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-CL72jbDo.es.js → DatePicker-BiUqIBOt.es.js} +17 -17
- package/dist/chunks/{DatePicker-CL72jbDo.es.js.map → DatePicker-BiUqIBOt.es.js.map} +1 -1
- package/dist/chunks/{Dialog-B0BQfdQa.es.js → Dialog-C3fAbDNn.es.js} +24 -24
- package/dist/chunks/{Dialog-B0BQfdQa.es.js.map → Dialog-C3fAbDNn.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-CqEZq7sr.es.js → FocusScope-bj_mamFe.es.js} +36 -36
- package/dist/chunks/{FocusScope-CqEZq7sr.es.js.map → FocusScope-bj_mamFe.es.js.map} +1 -1
- package/dist/chunks/{Group-BQc9LuMT.es.js → Group-C9jsb9_m.es.js} +8 -8
- package/dist/chunks/{Group-BQc9LuMT.es.js.map → Group-C9jsb9_m.es.js.map} +1 -1
- package/dist/chunks/{Header-CiYtrnTw.es.js → Header-Dc_tzDs3.es.js} +5 -5
- package/dist/chunks/{Header-CiYtrnTw.es.js.map → Header-Dc_tzDs3.es.js.map} +1 -1
- package/dist/chunks/{Heading-BMsylHxq.es.js → Heading-YOwfzTQe.es.js} +14 -14
- package/dist/chunks/{Heading-BMsylHxq.es.js.map → Heading-YOwfzTQe.es.js.map} +1 -1
- package/dist/chunks/{Input-Cmg08oRP.es.js → Input-aKSXZBAh.es.js} +5 -5
- package/dist/chunks/{Input-Cmg08oRP.es.js.map → Input-aKSXZBAh.es.js.map} +1 -1
- package/dist/chunks/{Label-DIseLESi.es.js → Label-Bu5lTMzy.es.js} +2 -2
- package/dist/chunks/{Label-DIseLESi.es.js.map → Label-Bu5lTMzy.es.js.map} +1 -1
- package/dist/chunks/{ListBox-RrHJjnuq.es.js → ListBox-CYNLUQ3a.es.js} +15 -15
- package/dist/chunks/{ListBox-RrHJjnuq.es.js.map → ListBox-CYNLUQ3a.es.js.map} +1 -1
- package/dist/chunks/{Modal-K4JEy19g.es.js → Modal-DJG9WuG4.es.js} +7 -7
- package/dist/chunks/{Modal-K4JEy19g.es.js.map → Modal-DJG9WuG4.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js → OverlayArrow-qm-lnjhS.es.js} +2 -2
- package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js.map → OverlayArrow-qm-lnjhS.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js → ProgressBar-DogfCeuX.es.js} +5 -5
- package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js.map → ProgressBar-DogfCeuX.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-CX9btso_.es.js → SelectionManager-LP-e3_n1.es.js} +10 -10
- package/dist/chunks/{SelectionManager-CX9btso_.es.js.map → SelectionManager-LP-e3_n1.es.js.map} +1 -1
- package/dist/chunks/{Separator-x6wk4JUe.es.js → Separator-dJgzu8hU.es.js} +4 -4
- package/dist/chunks/{Separator-x6wk4JUe.es.js.map → Separator-dJgzu8hU.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js → ToggleButton-B-feHlsu.es.js} +7 -7
- package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js.map → ToggleButton-B-feHlsu.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js → VisuallyHidden-BIA5VRNP.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js.map → VisuallyHidden-BIA5VRNP.es.js.map} +1 -1
- package/dist/chunks/{accordion-DvftRW7J.cjs.js → accordion-W2xqGUed.cjs.js} +2 -2
- package/dist/chunks/{accordion-DvftRW7J.cjs.js.map → accordion-W2xqGUed.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-Cwy8ywRo.es.js → accordion-rScmyg3S.es.js} +2 -2
- package/dist/chunks/{accordion-Cwy8ywRo.es.js.map → accordion-rScmyg3S.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-DR_1dtdK.es.js → accordion.content-9ii6Isyh.es.js} +33 -32
- package/dist/chunks/{accordion.content-DR_1dtdK.es.js.map → accordion.content-9ii6Isyh.es.js.map} +1 -1
- package/dist/chunks/accordion.content-Ca78ZBHt.cjs.js +2 -0
- package/dist/chunks/{accordion.content-DBBMLq5x.cjs.js.map → accordion.content-Ca78ZBHt.cjs.js.map} +1 -1
- package/dist/chunks/{alert-WiLa3ap4.es.js → alert-292BzLRA.es.js} +2 -2
- package/dist/chunks/{alert-WiLa3ap4.es.js.map → alert-292BzLRA.es.js.map} +1 -1
- package/dist/chunks/{alert-D5SDMEKA.cjs.js → alert-DnESjVYR.cjs.js} +2 -2
- package/dist/chunks/{alert-D5SDMEKA.cjs.js.map → alert-DnESjVYR.cjs.js.map} +1 -1
- package/dist/chunks/badge-DUiqk6w9.es.js +17 -0
- package/dist/chunks/{badge-CgYpum7D.es.js.map → badge-DUiqk6w9.es.js.map} +1 -1
- package/dist/chunks/{button-Bz1hc0LL.cjs.js → button-BYuPX7Oa.cjs.js} +2 -2
- package/dist/chunks/{button-Bz1hc0LL.cjs.js.map → button-BYuPX7Oa.cjs.js.map} +1 -1
- package/dist/chunks/{button-CANeXX_D.es.js → button-BwnDZDxC.es.js} +6 -6
- package/dist/chunks/{button-CANeXX_D.es.js.map → button-BwnDZDxC.es.js.map} +1 -1
- package/dist/chunks/{calendar-Bnw0u0vz.es.js → calendar-BXzL7PB5.es.js} +13 -13
- package/dist/chunks/{calendar-Bnw0u0vz.es.js.map → calendar-BXzL7PB5.es.js.map} +1 -1
- package/dist/chunks/calendar-hlWmLdWT.cjs.js +2 -0
- package/dist/chunks/{calendar-D0OrT88Y.cjs.js.map → calendar-hlWmLdWT.cjs.js.map} +1 -1
- package/dist/chunks/{card-CgBcH7Zm.cjs.js → card-BXy28CJn.cjs.js} +2 -2
- package/dist/chunks/{card-CgBcH7Zm.cjs.js.map → card-BXy28CJn.cjs.js.map} +1 -1
- package/dist/chunks/{card-BHw7lWYe.es.js → card-DufueR8q.es.js} +2 -2
- package/dist/chunks/{card-BHw7lWYe.es.js.map → card-DufueR8q.es.js.map} +1 -1
- package/dist/chunks/{checkbox-BYBGaSV9.cjs.js → checkbox-BDAugCSm.cjs.js} +2 -2
- package/dist/chunks/{checkbox-BYBGaSV9.cjs.js.map → checkbox-BDAugCSm.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-UATxAVti.es.js → checkbox-DyjLPpNB.es.js} +10 -10
- package/dist/chunks/{checkbox-UATxAVti.es.js.map → checkbox-DyjLPpNB.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-Cj6ESwsR.cjs.js → collapsible-motion-CogDY_t9.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-Cj6ESwsR.cjs.js.map → collapsible-motion-CogDY_t9.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BsyuKtxS.es.js → collapsible-motion-OPkHQog1.es.js} +5 -5
- package/dist/chunks/{collapsible-motion-BsyuKtxS.es.js.map → collapsible-motion-OPkHQog1.es.js.map} +1 -1
- package/dist/chunks/{combobox-B30crY-T.es.js → combobox-C_mvoNgT.es.js} +17 -17
- package/dist/chunks/{combobox-B30crY-T.es.js.map → combobox-C_mvoNgT.es.js.map} +1 -1
- package/dist/chunks/{combobox-D_L2EmTy.cjs.js → combobox-DneI7nqJ.cjs.js} +2 -2
- package/dist/chunks/{combobox-D_L2EmTy.cjs.js.map → combobox-DneI7nqJ.cjs.js.map} +1 -1
- package/dist/chunks/data-table-BhxeFbKo.cjs.js +2 -0
- package/dist/chunks/{data-table-Cg75JPdu.cjs.js.map → data-table-BhxeFbKo.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-B7orK0Y6.es.js → data-table-zA32nJuv.es.js} +38 -38
- package/dist/chunks/{data-table-B7orK0Y6.es.js.map → data-table-zA32nJuv.es.js.map} +1 -1
- package/dist/chunks/{date-input-BL7owE4Q.cjs.js → date-input-CGCdF-Ci.cjs.js} +2 -2
- package/dist/chunks/{date-input-BL7owE4Q.cjs.js.map → date-input-CGCdF-Ci.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-Ba6r9wMb.es.js → date-input-CkxW6Dwe.es.js} +4 -4
- package/dist/chunks/{date-input-Ba6r9wMb.es.js.map → date-input-CkxW6Dwe.es.js.map} +1 -1
- package/dist/chunks/date-picker-CKiTw4k0.cjs.js +2 -0
- package/dist/chunks/{date-picker-Bm6DjFOx.cjs.js.map → date-picker-CKiTw4k0.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-DwQ1WWNP.es.js → date-picker-oben2gT5.es.js} +19 -19
- package/dist/chunks/{date-picker-DwQ1WWNP.es.js.map → date-picker-oben2gT5.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-dw7c9idV.es.js → date-range-picker-DUZjHF9Y.es.js} +15 -15
- package/dist/chunks/{date-range-picker-dw7c9idV.es.js.map → date-range-picker-DUZjHF9Y.es.js.map} +1 -1
- package/dist/chunks/date-range-picker-YzIHScYE.cjs.js +2 -0
- package/dist/chunks/{date-range-picker-DaSUwkke.cjs.js.map → date-range-picker-YzIHScYE.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-D-kCkHEF.es.js → date-range-picker-field-DPDAq0Vk.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-D-kCkHEF.es.js.map → date-range-picker-field-DPDAq0Vk.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-J2b1-A1l.cjs.js → date-range-picker-field-KYVjc37N.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-J2b1-A1l.cjs.js.map → date-range-picker-field-KYVjc37N.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-ByHd6RlA.cjs.js → dialog-D_bclPPG.cjs.js} +2 -2
- package/dist/chunks/{dialog-ByHd6RlA.cjs.js.map → dialog-D_bclPPG.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-vnnSNnUC.es.js → dialog-DnTNN0As.es.js} +7 -7
- package/dist/chunks/{dialog-vnnSNnUC.es.js.map → dialog-DnTNN0As.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-DR-559Qk.es.js → draggable-list-BA-Ta1tl.es.js} +22 -22
- package/dist/chunks/{draggable-list-DR-559Qk.es.js.map → draggable-list-BA-Ta1tl.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-CGpLzk-D.cjs.js → draggable-list-DICiNibe.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-CGpLzk-D.cjs.js.map → draggable-list-DICiNibe.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-CasegOAE.es.js → drawer-5iAAFedv.es.js} +8 -8
- package/dist/chunks/{drawer-CasegOAE.es.js.map → drawer-5iAAFedv.es.js.map} +1 -1
- package/dist/chunks/{drawer-CmxHDgtW.cjs.js → drawer-C0f91Gif.cjs.js} +2 -2
- package/dist/chunks/{drawer-CmxHDgtW.cjs.js.map → drawer-C0f91Gif.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CM4QZGaE.es.js → extract-style-props-B8tpnj8B.es.js} +2 -2
- package/dist/chunks/{extract-style-props-CM4QZGaE.es.js.map → extract-style-props-B8tpnj8B.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-BvvBKXOu.cjs.js → extract-style-props-YkvHQ4GF.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-BvvBKXOu.cjs.js.map → extract-style-props-YkvHQ4GF.cjs.js.map} +1 -1
- package/dist/chunks/flex-BqxAMF-7.es.js +11 -0
- package/dist/chunks/flex-BqxAMF-7.es.js.map +1 -0
- package/dist/chunks/flex-DwGL6TCj.cjs.js +2 -0
- package/dist/chunks/flex-DwGL6TCj.cjs.js.map +1 -0
- package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js → focusSafely-RvsgqoUt.es.js} +3 -3
- package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js.map → focusSafely-RvsgqoUt.es.js.map} +1 -1
- package/dist/chunks/{form-field-52--hhlj.cjs.js → form-field-6MPrXfZA.cjs.js} +2 -2
- package/dist/chunks/{form-field-52--hhlj.cjs.js.map → form-field-6MPrXfZA.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-DCWDyNJx.es.js → form-field-JQ-0X24M.es.js} +4 -4
- package/dist/chunks/{form-field-DCWDyNJx.es.js.map → form-field-JQ-0X24M.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-MZgwmCKW.es.js → getScrollParent-DlqhSzBC.es.js} +2 -2
- package/dist/chunks/{getScrollParent-MZgwmCKW.es.js.map → getScrollParent-DlqhSzBC.es.js.map} +1 -1
- package/dist/chunks/{group-CCBgdph2.es.js → group-jGsHh1w7.es.js} +2 -2
- package/dist/chunks/{group-CCBgdph2.es.js.map → group-jGsHh1w7.es.js.map} +1 -1
- package/dist/chunks/{heading-nfjoR4vL.es.js → heading-CwsT9zp_.es.js} +2 -2
- package/dist/chunks/{heading-nfjoR4vL.es.js.map → heading-CwsT9zp_.es.js.map} +1 -1
- package/dist/chunks/{icon-button-5pYAEokc.cjs.js → icon-button-Bri4vUUz.cjs.js} +2 -2
- package/dist/chunks/{icon-button-5pYAEokc.cjs.js.map → icon-button-Bri4vUUz.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-DhHKxd27.es.js → icon-button-DBBY3Dn9.es.js} +2 -2
- package/dist/chunks/{icon-button-DhHKxd27.es.js.map → icon-button-DBBY3Dn9.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BsQzSrKe.cjs.js → icon-toggle-button-CBfDNuf9.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BsQzSrKe.cjs.js.map → icon-toggle-button-CBfDNuf9.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-C7HZUXh5.es.js → icon-toggle-button-q_nRJLdc.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-C7HZUXh5.es.js.map → icon-toggle-button-q_nRJLdc.es.js.map} +1 -1
- package/dist/chunks/{index-D3KlpJA5.es.js → index-BQXCumBh.es.js} +184 -184
- package/dist/chunks/index-BQXCumBh.es.js.map +1 -0
- package/dist/chunks/{index-CBRmb4jF.cjs.js → index-jx_KUftr.cjs.js} +3 -3
- package/dist/chunks/index-jx_KUftr.cjs.js.map +1 -0
- package/dist/chunks/{inline-svg-Cwl9dFvu.es.js → inline-svg-DeHAHjI4.es.js} +2 -2
- package/dist/chunks/{inline-svg-Cwl9dFvu.es.js.map → inline-svg-DeHAHjI4.es.js.map} +1 -1
- package/dist/chunks/{inline-svg-BzzKpbrB.cjs.js → inline-svg-ZvGLE5-3.cjs.js} +2 -2
- package/dist/chunks/{inline-svg-BzzKpbrB.cjs.js.map → inline-svg-ZvGLE5-3.cjs.js.map} +1 -1
- package/dist/chunks/{kbd-Bl5Ncm2d.es.js → kbd-B11Qoo4k.es.js} +2 -2
- package/dist/chunks/{kbd-Bl5Ncm2d.es.js.map → kbd-B11Qoo4k.es.js.map} +1 -1
- package/dist/chunks/{link-BMUyXcmC.es.js → link-Db65JZE6.es.js} +9 -9
- package/dist/chunks/{link-BMUyXcmC.es.js.map → link-Db65JZE6.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-gf62wtm3.es.js → loading-spinner-BtDS9yzp.es.js} +6 -6
- package/dist/chunks/{loading-spinner-gf62wtm3.es.js.map → loading-spinner-BtDS9yzp.es.js.map} +1 -1
- package/dist/chunks/{localized-field-CHXN7Zf1.es.js → localized-field-1QnknoHl.es.js} +13 -13
- package/dist/chunks/{localized-field-CHXN7Zf1.es.js.map → localized-field-1QnknoHl.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BJTWKclB.cjs.js → localized-field-D-j174BM.cjs.js} +2 -2
- package/dist/chunks/{localized-field-BJTWKclB.cjs.js.map → localized-field-D-j174BM.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js → make-element-focusable-DVfaQntJ.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js.map → make-element-focusable-DVfaQntJ.es.js.map} +1 -1
- package/dist/chunks/{menu-Cu7gIVGQ.cjs.js → menu-CGzwkVSN.cjs.js} +2 -2
- package/dist/chunks/{menu-Cu7gIVGQ.cjs.js.map → menu-CGzwkVSN.cjs.js.map} +1 -1
- package/dist/chunks/{menu-SxqgiwJf.es.js → menu-CY7e-1VD.es.js} +6 -6
- package/dist/chunks/{menu-SxqgiwJf.es.js.map → menu-CY7e-1VD.es.js.map} +1 -1
- package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js → mergeProps-D1jjFfMs.es.js} +6 -6
- package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js.map → mergeProps-D1jjFfMs.es.js.map} +1 -1
- package/dist/chunks/{money-input-B5kFhLR0.es.js → money-input-51QkN1Fh.es.js} +9 -9
- package/dist/chunks/{money-input-B5kFhLR0.es.js.map → money-input-51QkN1Fh.es.js.map} +1 -1
- package/dist/chunks/{money-input-CBKb1D73.cjs.js → money-input-DvHk2_Bj.cjs.js} +2 -2
- package/dist/chunks/{money-input-CBKb1D73.cjs.js.map → money-input-DvHk2_Bj.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-field-0vXOOTvx.es.js → money-input-field-CoCvzzGE.es.js} +3 -3
- package/dist/chunks/{money-input-field-0vXOOTvx.es.js.map → money-input-field-CoCvzzGE.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-DjpKPCGo.cjs.js → money-input-field-sM_cBUFp.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-DjpKPCGo.cjs.js.map → money-input-field-sM_cBUFp.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DkruVK6m.es.js → multiline-text-input-BmAvzvIS.es.js} +8 -8
- package/dist/chunks/{multiline-text-input-DkruVK6m.es.js.map → multiline-text-input-BmAvzvIS.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DN9yF7Di.cjs.js → multiline-text-input-Dqkuj0Sk.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-DN9yF7Di.cjs.js.map → multiline-text-input-Dqkuj0Sk.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-QLmo_I6Q.cjs.js → multiline-text-input-field-BaWFTwye.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-QLmo_I6Q.cjs.js.map → multiline-text-input-field-BaWFTwye.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-ipwTTNg6.es.js → multiline-text-input-field-D91TYhJ1.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-ipwTTNg6.es.js.map → multiline-text-input-field-D91TYhJ1.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-4H3HucGg.es.js → nimbus-provider-C84q7ZFt.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-4H3HucGg.es.js.map → nimbus-provider-C84q7ZFt.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CbD64J_V.cjs.js → nimbus-provider-DGdgb9VU.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-CbD64J_V.cjs.js.map → nimbus-provider-DGdgb9VU.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-BVTqEzzS.es.js → number-input-CicVxjYf.es.js} +14 -14
- package/dist/chunks/{number-input-BVTqEzzS.es.js.map → number-input-CicVxjYf.es.js.map} +1 -1
- package/dist/chunks/{number-input-B29DJ2_U.cjs.js → number-input-DVO-qqmy.cjs.js} +2 -2
- package/dist/chunks/{number-input-B29DJ2_U.cjs.js.map → number-input-DVO-qqmy.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-DenXeCQQ.es.js → number-input-field-1kIn8j-V.es.js} +3 -3
- package/dist/chunks/{number-input-field-DenXeCQQ.es.js.map → number-input-field-1kIn8j-V.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-DHBy_GKG.cjs.js → number-input-field-3SIWl2ys.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-DHBy_GKG.cjs.js.map → number-input-field-3SIWl2ys.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-BjUXs0hd.es.js → pagination-5xlqgcGF.es.js} +10 -10
- package/dist/chunks/{pagination-BjUXs0hd.es.js.map → pagination-5xlqgcGF.es.js.map} +1 -1
- package/dist/chunks/pagination-xF9OBqqw.cjs.js +2 -0
- package/dist/chunks/{pagination-D8Tn2HGh.cjs.js.map → pagination-xF9OBqqw.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-vu3kFdzW.es.js → password-input-BHeK11T5.es.js} +4 -4
- package/dist/chunks/{password-input-vu3kFdzW.es.js.map → password-input-BHeK11T5.es.js.map} +1 -1
- package/dist/chunks/{password-input-DQM-caak.cjs.js → password-input-Dqkx7rna.cjs.js} +2 -2
- package/dist/chunks/{password-input-DQM-caak.cjs.js.map → password-input-Dqkx7rna.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-CgQEW15R.cjs.js → password-input-field-Bdk2PGh-.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-CgQEW15R.cjs.js.map → password-input-field-Bdk2PGh-.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-CNLpabCL.es.js → password-input-field-D_9uQszl.es.js} +3 -3
- package/dist/chunks/{password-input-field-CNLpabCL.es.js.map → password-input-field-D_9uQszl.es.js.map} +1 -1
- package/dist/chunks/{popover-CuA9VugH.es.js → popover-BB1pYTlN.es.js} +2 -2
- package/dist/chunks/{popover-CuA9VugH.es.js.map → popover-BB1pYTlN.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-D99U1mF3.es.js → progress-bar-5RFD3Gzz.es.js} +15 -15
- package/dist/chunks/{progress-bar-D99U1mF3.es.js.map → progress-bar-5RFD3Gzz.es.js.map} +1 -1
- package/dist/chunks/progress-bar-lMoiWhLT.cjs.js +2 -0
- package/dist/chunks/{progress-bar-CMRmoNou.cjs.js.map → progress-bar-lMoiWhLT.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-S4OwAttR.es.js → radio-input-DJ7dbsdR.es.js} +42 -42
- package/dist/chunks/{radio-input-S4OwAttR.es.js.map → radio-input-DJ7dbsdR.es.js.map} +1 -1
- package/dist/chunks/{radio-input-B91hQHjX.cjs.js → radio-input-DUxKE-Cs.cjs.js} +2 -2
- package/dist/chunks/{radio-input-B91hQHjX.cjs.js.map → radio-input-DUxKE-Cs.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-qoiJRxsH.es.js → range-calendar-B6Pxr7zJ.es.js} +13 -13
- package/dist/chunks/{range-calendar-qoiJRxsH.es.js.map → range-calendar-B6Pxr7zJ.es.js.map} +1 -1
- package/dist/chunks/range-calendar-D5S4X72j.cjs.js +2 -0
- package/dist/chunks/{range-calendar-tLrCZyTQ.cjs.js.map → range-calendar-D5S4X72j.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-COjV3y9x.es.js → rich-text-input-Bj1pRFPq.es.js} +13 -13
- package/dist/chunks/{rich-text-input-COjV3y9x.es.js.map → rich-text-input-Bj1pRFPq.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-Cx9u2DDm.cjs.js → rich-text-input-DJfzOb_3.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-Cx9u2DDm.cjs.js.map → rich-text-input-DJfzOb_3.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DYOcOZ0t.cjs.js → scoped-search-input-Dsh8-OgU.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-DYOcOZ0t.cjs.js.map → scoped-search-input-Dsh8-OgU.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-Qf2F3cu-.es.js → scoped-search-input-L6cMYzuY.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-Qf2F3cu-.es.js.map → scoped-search-input-L6cMYzuY.es.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-B7D07fJk.es.js → scrollIntoView-CQMm8-SR.es.js} +5 -5
- package/dist/chunks/{scrollIntoView-B7D07fJk.es.js.map → scrollIntoView-CQMm8-SR.es.js.map} +1 -1
- package/dist/chunks/{search-input-DrTdsAJB.cjs.js → search-input-BtnmYYzw.cjs.js} +2 -2
- package/dist/chunks/{search-input-DrTdsAJB.cjs.js.map → search-input-BtnmYYzw.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-Ba7KSi4m.es.js → search-input-QR7sGTGP.es.js} +11 -11
- package/dist/chunks/{search-input-Ba7KSi4m.es.js.map → search-input-QR7sGTGP.es.js.map} +1 -1
- package/dist/chunks/{search-input-field-Dan6FtWD.cjs.js → search-input-field-CMescsqG.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-Dan6FtWD.cjs.js.map → search-input-field-CMescsqG.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-G080Ti8W.es.js → search-input-field-t_x6V99P.es.js} +3 -3
- package/dist/chunks/{search-input-field-G080Ti8W.es.js.map → search-input-field-t_x6V99P.es.js.map} +1 -1
- package/dist/chunks/select-Cqs4hTbk.cjs.js +2 -0
- package/dist/chunks/{select-DzHoPh1S.cjs.js.map → select-Cqs4hTbk.cjs.js.map} +1 -1
- package/dist/chunks/{select-B3w10lhg.es.js → select-DESJPjCr.es.js} +40 -40
- package/dist/chunks/{select-B3w10lhg.es.js.map → select-DESJPjCr.es.js.map} +1 -1
- package/dist/chunks/{separator-DX_ZJMkp.es.js → separator-Cv7Pq4Ds.es.js} +4 -4
- package/dist/chunks/{separator-DX_ZJMkp.es.js.map → separator-Cv7Pq4Ds.es.js.map} +1 -1
- package/dist/chunks/{separator-D0uGdP2M.cjs.js → separator-EcxRV37n.cjs.js} +2 -2
- package/dist/chunks/{separator-D0uGdP2M.cjs.js.map → separator-EcxRV37n.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-Cu7MwPgo.cjs.js → split-button-DU3xgYU0.cjs.js} +2 -2
- package/dist/chunks/{split-button-Cu7MwPgo.cjs.js.map → split-button-DU3xgYU0.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-BGDUOZcq.es.js → split-button-fFjvmZHq.es.js} +4 -4
- package/dist/chunks/{split-button-BGDUOZcq.es.js.map → split-button-fFjvmZHq.es.js.map} +1 -1
- package/dist/chunks/{switch-GD8BjCPZ.es.js → switch-CdVnan26.es.js} +7 -7
- package/dist/chunks/{switch-GD8BjCPZ.es.js.map → switch-CdVnan26.es.js.map} +1 -1
- package/dist/chunks/{switch-dDLFRsag.cjs.js → switch-DMi6ns1l.cjs.js} +2 -2
- package/dist/chunks/{switch-dDLFRsag.cjs.js.map → switch-DMi6ns1l.cjs.js.map} +1 -1
- package/dist/chunks/table-B5iad7CD.es.js +62 -0
- package/dist/chunks/table-B5iad7CD.es.js.map +1 -0
- package/dist/chunks/table-BFZZu0lw.cjs.js +2 -0
- package/dist/chunks/table-BFZZu0lw.cjs.js.map +1 -0
- package/dist/chunks/{tabs-Dh_AK8jc.es.js → tabs-CWDqgw59.es.js} +12 -12
- package/dist/chunks/{tabs-Dh_AK8jc.es.js.map → tabs-CWDqgw59.es.js.map} +1 -1
- package/dist/chunks/{tabs-Dxwwd4jH.cjs.js → tabs-UcZcFbnu.cjs.js} +2 -2
- package/dist/chunks/{tabs-Dxwwd4jH.cjs.js.map → tabs-UcZcFbnu.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-CMfyCIc3.es.js → tag-group-3taLR4L7.es.js} +19 -19
- package/dist/chunks/{tag-group-CMfyCIc3.es.js.map → tag-group-3taLR4L7.es.js.map} +1 -1
- package/dist/chunks/{tag-group-rbUwxsaP.cjs.js → tag-group-BWA-yzCv.cjs.js} +2 -2
- package/dist/chunks/{tag-group-rbUwxsaP.cjs.js.map → tag-group-BWA-yzCv.cjs.js.map} +1 -1
- package/dist/chunks/{text-CIb_VDvO.es.js → text-DvqDjbwb.es.js} +2 -2
- package/dist/chunks/{text-CIb_VDvO.es.js.map → text-DvqDjbwb.es.js.map} +1 -1
- package/dist/chunks/{text-input-UaixbZjE.es.js → text-input-DzO2bE5d.es.js} +7 -7
- package/dist/chunks/{text-input-UaixbZjE.es.js.map → text-input-DzO2bE5d.es.js.map} +1 -1
- package/dist/chunks/{text-input-n7jUFat6.cjs.js → text-input-cMb5fdnO.cjs.js} +2 -2
- package/dist/chunks/{text-input-n7jUFat6.cjs.js.map → text-input-cMb5fdnO.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-ChGQsEAJ.es.js → text-input-field-UbYDvgb4.es.js} +3 -3
- package/dist/chunks/{text-input-field-ChGQsEAJ.es.js.map → text-input-field-UbYDvgb4.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-C_Ykb6V3.cjs.js → text-input-field-qfkkCezM.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-C_Ykb6V3.cjs.js.map → text-input-field-qfkkCezM.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-G64QnJLm.cjs.js → time-input-B8Z7jn-2.cjs.js} +2 -2
- package/dist/chunks/{time-input-G64QnJLm.cjs.js.map → time-input-B8Z7jn-2.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-T4jAE9kM.es.js → time-input-DnW6Aelf.es.js} +4 -4
- package/dist/chunks/{time-input-T4jAE9kM.es.js.map → time-input-DnW6Aelf.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-J0Vys1xC.es.js → toggle-button-BuusM0yE.es.js} +4 -4
- package/dist/chunks/{toggle-button-J0Vys1xC.es.js.map → toggle-button-BuusM0yE.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-aX7Gr-Ib.cjs.js → toggle-button-DVHvcwQ7.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-aX7Gr-Ib.cjs.js.map → toggle-button-DVHvcwQ7.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js → toggle-button-group-P0oS-q6h.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js.map → toggle-button-group-P0oS-q6h.es.js.map} +1 -1
- package/dist/chunks/{toolbar-QZSD0kko.es.js → toolbar-B2nAx66D.es.js} +6 -6
- package/dist/chunks/{toolbar-QZSD0kko.es.js.map → toolbar-B2nAx66D.es.js.map} +1 -1
- package/dist/chunks/{toolbar-Bw9mLuBU.cjs.js → toolbar-C50Aroys.cjs.js} +2 -2
- package/dist/chunks/{toolbar-Bw9mLuBU.cjs.js.map → toolbar-C50Aroys.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-D3QrrizN.es.js → tooltip-CzEuq_Qi.es.js} +7 -7
- package/dist/chunks/{tooltip-D3QrrizN.es.js.map → tooltip-CzEuq_Qi.es.js.map} +1 -1
- package/dist/chunks/{use-inline-svg-Cua0623E.es.js → use-inline-svg-D-aaBVBt.es.js} +2 -2
- package/dist/chunks/{use-inline-svg-Cua0623E.es.js.map → use-inline-svg-D-aaBVBt.es.js.map} +1 -1
- package/dist/chunks/{use-inline-svg-C2ko8Bcq.cjs.js → use-inline-svg-D0IP_Zja.cjs.js} +2 -2
- package/dist/chunks/{use-inline-svg-C2ko8Bcq.cjs.js.map → use-inline-svg-D0IP_Zja.cjs.js.map} +1 -1
- package/dist/chunks/{useButton-CiPiehgC.es.js → useButton-B2TbwHSy.es.js} +4 -4
- package/dist/chunks/{useButton-CiPiehgC.es.js.map → useButton-B2TbwHSy.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-9juUpmrj.es.js → useDateFormatter-Bm8thTNT.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-9juUpmrj.es.js.map → useDateFormatter-Bm8thTNT.es.js.map} +1 -1
- package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js → useDisclosureState-BqxwXawT.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js.map → useDisclosureState-BqxwXawT.es.js.map} +1 -1
- package/dist/chunks/{useEvent-CRo5BZDX.es.js → useEvent-D8bTsAyx.es.js} +6 -6
- package/dist/chunks/{useEvent-CRo5BZDX.es.js.map → useEvent-D8bTsAyx.es.js.map} +1 -1
- package/dist/chunks/{useField-CHrpmkxe.es.js → useField-BfW84CS4.es.js} +8 -8
- package/dist/chunks/{useField-CHrpmkxe.es.js.map → useField-BfW84CS4.es.js.map} +1 -1
- package/dist/chunks/{useFocus-CrgTusM3.es.js → useFocus-TCNvrvTC.es.js} +6 -6
- package/dist/chunks/{useFocus-CrgTusM3.es.js.map → useFocus-TCNvrvTC.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-FPt2Rwil.es.js → useFocusRing-oMAqzr3e.es.js} +4 -4
- package/dist/chunks/{useFocusRing-FPt2Rwil.es.js.map → useFocusRing-oMAqzr3e.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js → useFocusVisible-Uw6yFmFY.es.js} +6 -6
- package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js.map → useFocusVisible-Uw6yFmFY.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js → useFocusWithin-nAsP7Ru3.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js.map → useFocusWithin-nAsP7Ru3.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Cs6i58WP.es.js → useFocusable-Bm-DQaak.es.js} +5 -5
- package/dist/chunks/{useFocusable-Cs6i58WP.es.js.map → useFocusable-Bm-DQaak.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-BGuIA_u2.es.js → useFormReset-C52dSDoe.es.js} +2 -2
- package/dist/chunks/{useFormReset-BGuIA_u2.es.js.map → useFormReset-C52dSDoe.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BCVLtR0U.es.js → useFormValidation-DxDV9X1M.es.js} +3 -3
- package/dist/chunks/{useFormValidation-BCVLtR0U.es.js.map → useFormValidation-DxDV9X1M.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-CJrr2QNO.es.js → useGridListItem-W6DzfYRB.es.js} +10 -10
- package/dist/chunks/{useGridListItem-CJrr2QNO.es.js.map → useGridListItem-W6DzfYRB.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js → useHasTabbableChild-DemFbZRn.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js.map → useHasTabbableChild-DemFbZRn.es.js.map} +1 -1
- package/dist/chunks/{useHover-BQRSM3qT.es.js → useHover-BtRK9g2L.es.js} +2 -2
- package/dist/chunks/{useHover-BQRSM3qT.es.js.map → useHover-BtRK9g2L.es.js.map} +1 -1
- package/dist/chunks/{useLabel-DQaRD22u.es.js → useLabel-DfbcmKTa.es.js} +5 -5
- package/dist/chunks/{useLabel-DQaRD22u.es.js.map → useLabel-DfbcmKTa.es.js.map} +1 -1
- package/dist/chunks/{useLabels-BDqWMehi.es.js → useLabels-Gn8v9XZB.es.js} +2 -2
- package/dist/chunks/{useLabels-BDqWMehi.es.js.map → useLabels-Gn8v9XZB.es.js.map} +1 -1
- package/dist/chunks/{useListState-Dd0Mtev3.es.js → useListState-BgQn1ZbV.es.js} +2 -2
- package/dist/chunks/{useListState-Dd0Mtev3.es.js.map → useListState-BgQn1ZbV.es.js.map} +1 -1
- package/dist/chunks/{usePress-BuLomD_X.es.js → usePress-C_IPaF8I.es.js} +6 -6
- package/dist/chunks/{usePress-BuLomD_X.es.js.map → usePress-C_IPaF8I.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar--OvVKto2.es.js → useProgressBar-DCj794Zv.es.js} +7 -7
- package/dist/chunks/{useProgressBar--OvVKto2.es.js.map → useProgressBar-DCj794Zv.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-D8B_x4uj.es.js → useSpinButton-BkOWnOWL.es.js} +15 -15
- package/dist/chunks/{useSpinButton-D8B_x4uj.es.js.map → useSpinButton-BkOWnOWL.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-BpLviItW.es.js → useSyncRef-DmY05o2G.es.js} +2 -2
- package/dist/chunks/{useSyncRef-BpLviItW.es.js.map → useSyncRef-DmY05o2G.es.js.map} +1 -1
- package/dist/chunks/{useTextField-yuaT8-G4.es.js → useTextField-9WuJfc9u.es.js} +7 -7
- package/dist/chunks/{useTextField-yuaT8-G4.es.js.map → useTextField-9WuJfc9u.es.js.map} +1 -1
- package/dist/chunks/{useToggle-DKP3zVOY.es.js → useToggle-BZPMewLP.es.js} +5 -5
- package/dist/chunks/{useToggle-DKP3zVOY.es.js.map → useToggle-BZPMewLP.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-CbJkugif.es.js → useToolbar-C673xD3E.es.js} +3 -3
- package/dist/chunks/{useToolbar-CbJkugif.es.js.map → useToolbar-C673xD3E.es.js.map} +1 -1
- package/dist/chunks/{utils-B6pV5ewr.es.js → utils-9vu7GUaz.es.js} +12 -12
- package/dist/chunks/{utils-B6pV5ewr.es.js.map → utils-9vu7GUaz.es.js.map} +1 -1
- package/dist/chunks/{utils-oAGBWzI5.es.js → utils-Bl-3nKLa.es.js} +14 -14
- package/dist/chunks/{utils-oAGBWzI5.es.js.map → utils-Bl-3nKLa.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js → visually-hidden-m5QY9YV7.es.js} +2 -2
- package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js.map → visually-hidden-m5QY9YV7.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/flex/flex.d.ts +18 -2
- package/dist/components/flex/flex.types.d.ts +23 -0
- package/dist/components/flex/index.d.ts +1 -0
- package/dist/components/flex.cjs +1 -1
- package/dist/components/flex.es.js +1 -1
- 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/hooks.cjs +1 -1
- package/dist/components/hooks.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/inline-svg.cjs +1 -1
- package/dist/components/inline-svg.es.js +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/table/index.d.ts +1 -0
- package/dist/components/table/table.d.ts +40 -6
- package/dist/components/table/table.types.d.ts +100 -0
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.es.js +2 -2
- 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.cjs.map +1 -1
- package/dist/index.es.js +67 -67
- package/dist/theme/slot-recipes/index.d.ts +8 -8
- package/package.json +5 -5
- package/dist/chunks/accordion.content-DBBMLq5x.cjs.js +0 -2
- package/dist/chunks/badge-CgYpum7D.es.js +0 -17
- package/dist/chunks/calendar-D0OrT88Y.cjs.js +0 -2
- package/dist/chunks/data-table-Cg75JPdu.cjs.js +0 -2
- package/dist/chunks/date-picker-Bm6DjFOx.cjs.js +0 -2
- package/dist/chunks/date-range-picker-DaSUwkke.cjs.js +0 -2
- package/dist/chunks/index-CBRmb4jF.cjs.js.map +0 -1
- package/dist/chunks/index-D3KlpJA5.es.js.map +0 -1
- package/dist/chunks/pagination-D8Tn2HGh.cjs.js +0 -2
- package/dist/chunks/progress-bar-CMRmoNou.cjs.js +0 -2
- package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js +0 -2
- package/dist/chunks/select-DzHoPh1S.cjs.js +0 -2
|
@@ -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"),Ee=require("@commercetools/nimbus-icons"),fe=require("./extract-style-props-BvvBKXOu.cjs.js"),bt=require("./popover-Dhg--8YC.cjs.js"),qe=require("./icon-button-5pYAEokc.cjs.js"),xt=require("./loading-spinner-DYEYnI5N.cjs.js"),be=require("./Input-2FU1rljx.cjs.js"),ue=require("./tag-group-rbUwxsaP.cjs.js"),ht=require("@chakra-ui/react/styled-system"),vt=require("./RSPContexts-BdKenzIN.cjs.js"),Fe=require("./Button-DLCecw8f.cjs.js"),Le=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,L;return{...e,state:"idle",items:[...e.items,...(I=t.items)!==null&&I!==void 0?I:[]],selectedKeys:r,sortDescriptor:(L=t.sortDescriptor)!==null&&L!==void 0?L: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 A;return(A=t.abortController)===null||A===void 0||A.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 L;let A=await w({items:i.items.slice(),selectedKeys:i.selectedKeys,sortDescriptor:(L=f.sortDescriptor)!==null&&L!==void 0?L:i.sortDescriptor,signal:g.signal,cursor:f.type==="loadingMore"?i.cursor:void 0,filterText:b,loadingState:i.state});var M;let K=(M=A.filterText)!==null&&M!==void 0?M:b;d({type:"success",...A,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 At(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(),L=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 A=!!(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 V=function(v){var E=x.current,P=h.current;return x.current=h.current=null,a.current=v,i.current=i.current||v,f.current=w.current.apply(P,E)},Q=function(v,E){b&&cancelAnimationFrame(d.current),d.current=b?requestAnimationFrame(v):setTimeout(v,E)},re=function(v){if(!g.current)return!1;var E=v-s.current;return!s.current||E>=t||E<0||U&&v-a.current>=J},oe=function(v){return d.current=null,K&&x.current?V(v):(x.current=h.current=null,f.current)},R=function v(){var E=Date.now();if(A&&i.current===a.current&&pe(),re(E))return oe(E);if(g.current){var P=t-(E-s.current),G=U?Math.min(P,J-(E-a.current)):P;Q(v,G)}},pe=function(){},Y=function(){if(M||W){var v,E=Date.now(),P=re(E);if(x.current=[].slice.call(arguments),h.current=o,s.current=E,H&&!I.current&&(I.current=function(){var G;((G=global.document)==null?void 0:G.visibilityState)==="hidden"&&L.current.flush()},(v=global.document)==null||v.addEventListener==null||v.addEventListener("visibilitychange",I.current)),P){if(!d.current&&g.current)return a.current=s.current,Q(R,t),A?V(s.current):f.current;if(U)return Q(R,t),V(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},[A,U,t,J,K,H,b,M,W,l]);return L.current=te,n.useEffect(function(){return g.current=!0,function(){var V;H&&L.current.flush(),I.current&&((V=global.document)==null||V.removeEventListener==null||V.removeEventListener("visibilitychange",I.current),I.current=null),g.current=!1}},[H]),te}const{withProvider:Et,withContext:N}=yt.createSlotRecipeContext({key:"combobox"}),Ft=Et("div","root"),Lt=N("div","trigger"),Ot=N("div","leadingElement"),Tt=N("div","content"),Vt=N("div","tagGroup"),Pt=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",toggleOptions:"Toggle options",selectedValues:"Selected values",options:"Options menu"},Gt={clearSelection:"Auswahl löschen",toggleOptions:"Optionen umschalten",selectedValues:"Ausgewählte Werte",options:"Optionsmenü"},Ht={clearSelection:"Borrar selección",toggleOptions:"Alternar opciones",selectedValues:"Valores seleccionados",options:"Menú de opciones"},Ut={clearSelection:"Effacer la sélection",toggleOptions:"Basculer les options",selectedValues:"Valeurs sélectionnées",options:"Menu des options"},Jt={clearSelection:"Limpar seleção",toggleOptions:"Alternar opções",selectedValues:"Valores selecionados",options:"Menu de opções"},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),Oe=n.createContext(null),Ke=()=>{const e=n.useContext(Oe);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]=Le.$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:L=!1,isDisabled:M=!1,isInvalid:b=!1,isRequired:A=!1,isReadOnly:K=!1}=e,H=ht.useSlotRecipe({key:"combobox"}),[U,W]=H.splitVariantProps(e),[J,te]=fe.extractStyleProps(W),V=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,E]=n.useState(!1),[P,G]=n.useState([]),Ie=g?.debounce??300,xe=At(B=>{E(!1),R.setFilterText(B)},Ie),he=n.useCallback(B=>{Y(B),E(!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||L?!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=(L?$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"&&P.length>0){const F=new Set(C.map(ge=>o(ge)));C=[...P.filter(ge=>!F.has(o(ge))),...C]}return C},[g,R.items,e.items,re,P,r,o]),ne=n.useMemo(()=>({selectionMode:r,size:l,getKey:o,getTextValue:s,leadingElement:i,triggerRef:V,inputRef:Q,isLoading:X,isDisabled:M,isRequired:A,isInvalid:b,isReadOnly:K}),[r,o,s,i,V,Q,M,A,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(Oe.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:A,defaultChildren:null}):a})}),[a,M,b,A,me,ne]);return m.jsx(Le.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{}],[be.$3985021b0ad6602f$export$37fb8590cf2c088c,{}],[ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{}]],children:m.jsx(Oe.Provider,{value:ne,children:m.jsx(Ft,{ref:t,...U,...J,size:l,"data-disabled":M,"data-invalid":b,"data-required":A,"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:A,isInvalid:b,isReadOnly:K,collection:B,allowsCustomOptions:L,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:L=!0,shouldCloseOnSelect:M=!0,isOpen:b,defaultOpen:A=!1,onOpenChange:K,allowsEmptyMenu:H=!1,renderEmptyState:U,allowsCustomOptions:W=!1,isValidNewOption:J,getNewOptionData:te=Yt,onCreateOption:V,"aria-label":Q,"aria-labelledby":re,"aria-describedby":oe,isDisabled:R=!1,isRequired:pe=!1,isInvalid:Y=!1,isReadOnly:v=!1,shouldFocusWrap:E=!0,autoFocus:P=!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,Te=()=>{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(Te),T=F?h:ge,ee=n.useRef(T),[rt,Ve]=n.useState(A),S=b??rt,[Re,ye]=n.useState(null),O=n.useCallback(c=>{b===void 0&&Ve(c),K?.(c)},[b,K]),ot=n.useMemo(()=>{if(T.trim()==="")return o;if(r==="single"){const u=Array.from(C);if(u.length>0){const p=u[0];if(o.getItem(p)?.textValue===T)return o}}if(w){const u=Array.from(o),p=Array.from(w(u,T)),$=new Set(p.map(we=>we.key));return o.filter?.((we,Ae)=>$.has(Ae.key))??o}const c=T.toLowerCase();return o.filter?.(u=>u.toLowerCase().includes(c))??o},[o,T,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?Ve(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&&O(!0),ee.current=c},[F,f,I,O]),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 Ae=_t(p);if(d?d(Ae):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&&O(!1)}},[o,r,C,d,f,M,O,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?.(""),O(!0),requestAnimationFrame(()=>{z.current?.focus()})},[j,F,f,O,z]),Pe=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=T.trim();if(!c||Array.from(o).some($=>$.textValue?.toLowerCase()===c.toLowerCase())||J&&!J(c))return!1;const p=te(c);return Pe(p),r==="multiple"?(F||(le(""),ee.current=""),f?.("")):(F||(le(c),ee.current=c),f?.(c)),V?.(p),!0},[W,te,J,T,o,r,f,V,Pe,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)O(!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)O(!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(),O(!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(T===""){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,O,ye,r,T,C,W,je]),ft=n.useCallback(()=>{I==="focus"&&!R&&!v&&O(!0),r==="single"&&T&&z.current&&z.current.select()},[I,R,v,O,r,T]),pt=n.useCallback(c=>{if(!L)return;const u=c.currentTarget;setTimeout(()=>{const p=document.activeElement;u.contains(p)||O(!1)},150)},[L,O]),De=n.useRef(null);n.useEffect(()=>{P&&z.current&&!R&&z.current.focus()},[P,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||O(!1)},[S,H,ve,y.collection.size,O,T]),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:T,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:E,"aria-label":t.format("options")}],[de.$eed445e0843c11d0$export$7c5906fe4f1f2af2,y]];return m.jsxs(Le.$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:T}),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(Pt,{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(Ot,{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(Vt,{...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(Lt,{ref:r,onClick:i,...t,children:[l&&m.jsx(tr,{children:l}),m.jsxs(Tt,{children:[m.jsx(Qe,{}),m.jsx(Je,{})]}),m.jsx(qe.IconButton,{slot:"clear",size:"2xs",variant:"ghost",colorPalette:"primary",children:m.jsx(Ee.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(Ee.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(Ee.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"),Ee=require("@commercetools/nimbus-icons"),fe=require("./extract-style-props-YkvHQ4GF.cjs.js"),bt=require("./popover-Dhg--8YC.cjs.js"),qe=require("./icon-button-Bri4vUUz.cjs.js"),xt=require("./loading-spinner-DYEYnI5N.cjs.js"),be=require("./Input-2FU1rljx.cjs.js"),ue=require("./tag-group-BWA-yzCv.cjs.js"),ht=require("@chakra-ui/react/styled-system"),vt=require("./RSPContexts-BdKenzIN.cjs.js"),Fe=require("./Button-DLCecw8f.cjs.js"),Le=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,L;return{...e,state:"idle",items:[...e.items,...(I=t.items)!==null&&I!==void 0?I:[]],selectedKeys:r,sortDescriptor:(L=t.sortDescriptor)!==null&&L!==void 0?L: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 A;return(A=t.abortController)===null||A===void 0||A.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 L;let A=await w({items:i.items.slice(),selectedKeys:i.selectedKeys,sortDescriptor:(L=f.sortDescriptor)!==null&&L!==void 0?L:i.sortDescriptor,signal:g.signal,cursor:f.type==="loadingMore"?i.cursor:void 0,filterText:b,loadingState:i.state});var M;let K=(M=A.filterText)!==null&&M!==void 0?M:b;d({type:"success",...A,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 At(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(),L=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 A=!!(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 V=function(v){var E=x.current,P=h.current;return x.current=h.current=null,a.current=v,i.current=i.current||v,f.current=w.current.apply(P,E)},Q=function(v,E){b&&cancelAnimationFrame(d.current),d.current=b?requestAnimationFrame(v):setTimeout(v,E)},re=function(v){if(!g.current)return!1;var E=v-s.current;return!s.current||E>=t||E<0||U&&v-a.current>=J},oe=function(v){return d.current=null,K&&x.current?V(v):(x.current=h.current=null,f.current)},R=function v(){var E=Date.now();if(A&&i.current===a.current&&pe(),re(E))return oe(E);if(g.current){var P=t-(E-s.current),G=U?Math.min(P,J-(E-a.current)):P;Q(v,G)}},pe=function(){},Y=function(){if(M||W){var v,E=Date.now(),P=re(E);if(x.current=[].slice.call(arguments),h.current=o,s.current=E,H&&!I.current&&(I.current=function(){var G;((G=global.document)==null?void 0:G.visibilityState)==="hidden"&&L.current.flush()},(v=global.document)==null||v.addEventListener==null||v.addEventListener("visibilitychange",I.current)),P){if(!d.current&&g.current)return a.current=s.current,Q(R,t),A?V(s.current):f.current;if(U)return Q(R,t),V(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},[A,U,t,J,K,H,b,M,W,l]);return L.current=te,n.useEffect(function(){return g.current=!0,function(){var V;H&&L.current.flush(),I.current&&((V=global.document)==null||V.removeEventListener==null||V.removeEventListener("visibilitychange",I.current),I.current=null),g.current=!1}},[H]),te}const{withProvider:Et,withContext:N}=yt.createSlotRecipeContext({key:"combobox"}),Ft=Et("div","root"),Lt=N("div","trigger"),Ot=N("div","leadingElement"),Tt=N("div","content"),Vt=N("div","tagGroup"),Pt=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",toggleOptions:"Toggle options",selectedValues:"Selected values",options:"Options menu"},Gt={clearSelection:"Auswahl löschen",toggleOptions:"Optionen umschalten",selectedValues:"Ausgewählte Werte",options:"Optionsmenü"},Ht={clearSelection:"Borrar selección",toggleOptions:"Alternar opciones",selectedValues:"Valores seleccionados",options:"Menú de opciones"},Ut={clearSelection:"Effacer la sélection",toggleOptions:"Basculer les options",selectedValues:"Valeurs sélectionnées",options:"Menu des options"},Jt={clearSelection:"Limpar seleção",toggleOptions:"Alternar opções",selectedValues:"Valores selecionados",options:"Menu de opções"},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),Oe=n.createContext(null),Ke=()=>{const e=n.useContext(Oe);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]=Le.$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:L=!1,isDisabled:M=!1,isInvalid:b=!1,isRequired:A=!1,isReadOnly:K=!1}=e,H=ht.useSlotRecipe({key:"combobox"}),[U,W]=H.splitVariantProps(e),[J,te]=fe.extractStyleProps(W),V=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,E]=n.useState(!1),[P,G]=n.useState([]),Ie=g?.debounce??300,xe=At(B=>{E(!1),R.setFilterText(B)},Ie),he=n.useCallback(B=>{Y(B),E(!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||L?!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=(L?$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"&&P.length>0){const F=new Set(C.map(ge=>o(ge)));C=[...P.filter(ge=>!F.has(o(ge))),...C]}return C},[g,R.items,e.items,re,P,r,o]),ne=n.useMemo(()=>({selectionMode:r,size:l,getKey:o,getTextValue:s,leadingElement:i,triggerRef:V,inputRef:Q,isLoading:X,isDisabled:M,isRequired:A,isInvalid:b,isReadOnly:K}),[r,o,s,i,V,Q,M,A,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(Oe.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:A,defaultChildren:null}):a})}),[a,M,b,A,me,ne]);return m.jsx(Le.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{}],[be.$3985021b0ad6602f$export$37fb8590cf2c088c,{}],[ue.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{}]],children:m.jsx(Oe.Provider,{value:ne,children:m.jsx(Ft,{ref:t,...U,...J,size:l,"data-disabled":M,"data-invalid":b,"data-required":A,"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:A,isInvalid:b,isReadOnly:K,collection:B,allowsCustomOptions:L,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:L=!0,shouldCloseOnSelect:M=!0,isOpen:b,defaultOpen:A=!1,onOpenChange:K,allowsEmptyMenu:H=!1,renderEmptyState:U,allowsCustomOptions:W=!1,isValidNewOption:J,getNewOptionData:te=Yt,onCreateOption:V,"aria-label":Q,"aria-labelledby":re,"aria-describedby":oe,isDisabled:R=!1,isRequired:pe=!1,isInvalid:Y=!1,isReadOnly:v=!1,shouldFocusWrap:E=!0,autoFocus:P=!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,Te=()=>{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(Te),T=F?h:ge,ee=n.useRef(T),[rt,Ve]=n.useState(A),S=b??rt,[Re,ye]=n.useState(null),O=n.useCallback(c=>{b===void 0&&Ve(c),K?.(c)},[b,K]),ot=n.useMemo(()=>{if(T.trim()==="")return o;if(r==="single"){const u=Array.from(C);if(u.length>0){const p=u[0];if(o.getItem(p)?.textValue===T)return o}}if(w){const u=Array.from(o),p=Array.from(w(u,T)),$=new Set(p.map(we=>we.key));return o.filter?.((we,Ae)=>$.has(Ae.key))??o}const c=T.toLowerCase();return o.filter?.(u=>u.toLowerCase().includes(c))??o},[o,T,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?Ve(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&&O(!0),ee.current=c},[F,f,I,O]),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 Ae=_t(p);if(d?d(Ae):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&&O(!1)}},[o,r,C,d,f,M,O,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?.(""),O(!0),requestAnimationFrame(()=>{z.current?.focus()})},[j,F,f,O,z]),Pe=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=T.trim();if(!c||Array.from(o).some($=>$.textValue?.toLowerCase()===c.toLowerCase())||J&&!J(c))return!1;const p=te(c);return Pe(p),r==="multiple"?(F||(le(""),ee.current=""),f?.("")):(F||(le(c),ee.current=c),f?.(c)),V?.(p),!0},[W,te,J,T,o,r,f,V,Pe,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)O(!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)O(!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(),O(!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(T===""){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,O,ye,r,T,C,W,je]),ft=n.useCallback(()=>{I==="focus"&&!R&&!v&&O(!0),r==="single"&&T&&z.current&&z.current.select()},[I,R,v,O,r,T]),pt=n.useCallback(c=>{if(!L)return;const u=c.currentTarget;setTimeout(()=>{const p=document.activeElement;u.contains(p)||O(!1)},150)},[L,O]),De=n.useRef(null);n.useEffect(()=>{P&&z.current&&!R&&z.current.focus()},[P,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||O(!1)},[S,H,ve,y.collection.size,O,T]),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:T,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:E,"aria-label":t.format("options")}],[de.$eed445e0843c11d0$export$7c5906fe4f1f2af2,y]];return m.jsxs(Le.$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:T}),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(Pt,{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(Ot,{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(Vt,{...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(Lt,{ref:r,onClick:i,...t,children:[l&&m.jsx(tr,{children:l}),m.jsxs(Tt,{children:[m.jsx(Qe,{}),m.jsx(Je,{})]}),m.jsx(qe.IconButton,{slot:"clear",size:"2xs",variant:"ghost",colorPalette:"primary",children:m.jsx(Ee.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(Ee.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(Ee.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-DneI7nqJ.cjs.js.map
|