@commercetools/nimbus 2.11.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Button-i3wfJjZy.es.js → Button-BbiBXpLI.es.js} +3 -3
- package/dist/chunks/{Button-i3wfJjZy.es.js.map → Button-BbiBXpLI.es.js.map} +1 -1
- package/dist/chunks/{Calendar-BGX_ecv9.es.js → Calendar-D2xXO9yf.es.js} +7 -7
- package/dist/chunks/{Calendar-BGX_ecv9.es.js.map → Calendar-D2xXO9yf.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-CbqLnlVI.es.js → CollectionBuilder-GnbDoE-A.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-CbqLnlVI.es.js.map → CollectionBuilder-GnbDoE-A.es.js.map} +1 -1
- package/dist/chunks/{DateField-C1PcBsYT.es.js → DateField-CQrmNlLj.es.js} +10 -10
- package/dist/chunks/{DateField-C1PcBsYT.es.js.map → DateField-CQrmNlLj.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-BLXrb3eY.es.js → DatePicker-CbM40tGe.es.js} +11 -11
- package/dist/chunks/{DatePicker-BLXrb3eY.es.js.map → DatePicker-CbM40tGe.es.js.map} +1 -1
- package/dist/chunks/{Dialog-Dwy2_Ptk.es.js → Dialog-BVUZ7ef8.es.js} +14 -14
- package/dist/chunks/{Dialog-Dwy2_Ptk.es.js.map → Dialog-BVUZ7ef8.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-D0jw9l8a.es.js → FocusScope-BpjuIERr.es.js} +3 -3
- package/dist/chunks/{FocusScope-D0jw9l8a.es.js.map → FocusScope-BpjuIERr.es.js.map} +1 -1
- package/dist/chunks/{Group-MOzeoewy.es.js → Group-BoEoEWiy.es.js} +2 -2
- package/dist/chunks/{Group-MOzeoewy.es.js.map → Group-BoEoEWiy.es.js.map} +1 -1
- package/dist/chunks/{Input-BLulRm-m.es.js → Input-7uI4BOR3.es.js} +2 -2
- package/dist/chunks/{Input-BLulRm-m.es.js.map → Input-7uI4BOR3.es.js.map} +1 -1
- package/dist/chunks/{ListBox-BQGvhjf1.es.js → ListBox-CLG1CedW.es.js} +11 -11
- package/dist/chunks/{ListBox-BQGvhjf1.es.js.map → ListBox-CLG1CedW.es.js.map} +1 -1
- package/dist/chunks/{Modal-Cxh6ykOi.es.js → Modal-CyqqmLlL.es.js} +8 -8
- package/dist/chunks/{Modal-Cxh6ykOi.es.js.map → Modal-CyqqmLlL.es.js.map} +1 -1
- package/dist/chunks/{Separator-ByH0WwDE.es.js → Separator-CU5Dgur6.es.js} +2 -2
- package/dist/chunks/{Separator-ByH0WwDE.es.js.map → Separator-CU5Dgur6.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-D8ToBOmn.es.js → ToggleButton-C_RMF16v.es.js} +4 -4
- package/dist/chunks/{ToggleButton-D8ToBOmn.es.js.map → ToggleButton-C_RMF16v.es.js.map} +1 -1
- package/dist/chunks/{accordion-BWDDez2K.cjs.js → accordion-B3vpwgmz.cjs.js} +2 -2
- package/dist/chunks/{accordion-BWDDez2K.cjs.js.map → accordion-B3vpwgmz.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-BghGJkfm.es.js → accordion-BtV7SqbN.es.js} +2 -2
- package/dist/chunks/{accordion-BghGJkfm.es.js.map → accordion-BtV7SqbN.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-CduLlKab.es.js → accordion.content-Bec2unyW.es.js} +4 -4
- package/dist/chunks/{accordion.content-CduLlKab.es.js.map → accordion.content-Bec2unyW.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-DfUrWRK2.cjs.js → accordion.content-DnVIufbw.cjs.js} +2 -2
- package/dist/chunks/{accordion.content-DfUrWRK2.cjs.js.map → accordion.content-DnVIufbw.cjs.js.map} +1 -1
- package/dist/chunks/{alert-CtpnwfLq.cjs.js → alert-DhjefOnW.cjs.js} +2 -2
- package/dist/chunks/{alert-CtpnwfLq.cjs.js.map → alert-DhjefOnW.cjs.js.map} +1 -1
- package/dist/chunks/{alert-CKjEjYuk.es.js → alert-Xxqyst93.es.js} +2 -2
- package/dist/chunks/{alert-CKjEjYuk.es.js.map → alert-Xxqyst93.es.js.map} +1 -1
- package/dist/chunks/avatar-BxWYEvDv.es.js +59 -0
- package/dist/chunks/avatar-BxWYEvDv.es.js.map +1 -0
- package/dist/chunks/avatar-CAvEZh0T.cjs.js +2 -0
- package/dist/chunks/avatar-CAvEZh0T.cjs.js.map +1 -0
- package/dist/chunks/{button-C2Dl55wY.cjs.js → button-C8BxhnrL.cjs.js} +2 -2
- package/dist/chunks/{button-C2Dl55wY.cjs.js.map → button-C8BxhnrL.cjs.js.map} +1 -1
- package/dist/chunks/{button-lHv6f2MW.es.js → button-DDk_A6fN.es.js} +4 -4
- package/dist/chunks/{button-lHv6f2MW.es.js.map → button-DDk_A6fN.es.js.map} +1 -1
- package/dist/chunks/{calendar-QUdv8RpQ.es.js → calendar-CCbKuHRw.es.js} +5 -5
- package/dist/chunks/{calendar-QUdv8RpQ.es.js.map → calendar-CCbKuHRw.es.js.map} +1 -1
- package/dist/chunks/{calendar-C9fUqihQ.cjs.js → calendar-DyS7pcka.cjs.js} +2 -2
- package/dist/chunks/{calendar-C9fUqihQ.cjs.js.map → calendar-DyS7pcka.cjs.js.map} +1 -1
- package/dist/chunks/card-BAXEfIrr.es.js +123 -0
- package/dist/chunks/card-BAXEfIrr.es.js.map +1 -0
- package/dist/chunks/card-CKOBGWCk.cjs.js +2 -0
- package/dist/chunks/card-CKOBGWCk.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-BuapXMHc.es.js → checkbox-B9YYUgwd.es.js} +6 -6
- package/dist/chunks/{checkbox-BuapXMHc.es.js.map → checkbox-B9YYUgwd.es.js.map} +1 -1
- package/dist/chunks/{checkbox-Da1oqUdt.cjs.js → checkbox-k5YpSH7a.cjs.js} +2 -2
- package/dist/chunks/{checkbox-Da1oqUdt.cjs.js.map → checkbox-k5YpSH7a.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BdwG6Ope.es.js → collapsible-motion-BQ6ylBzi.es.js} +3 -3
- package/dist/chunks/{collapsible-motion-BdwG6Ope.es.js.map → collapsible-motion-BQ6ylBzi.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BiQOV9JE.cjs.js → collapsible-motion-DR0Jmfre.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-BiQOV9JE.cjs.js.map → collapsible-motion-DR0Jmfre.cjs.js.map} +1 -1
- package/dist/chunks/combobox-Bax_tJAv.cjs.js +2 -0
- package/dist/chunks/combobox-Bax_tJAv.cjs.js.map +1 -0
- package/dist/chunks/combobox-BkebHB4d.es.js +1586 -0
- package/dist/chunks/combobox-BkebHB4d.es.js.map +1 -0
- package/dist/chunks/data-table-Ba4Jk9qI.cjs.js +2 -0
- package/dist/chunks/{data-table-DCpNE2Zx.cjs.js.map → data-table-Ba4Jk9qI.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-BxM4aLrf.es.js → data-table-CGdxOTsY.es.js} +1789 -1711
- package/dist/chunks/{data-table-BxM4aLrf.es.js.map → data-table-CGdxOTsY.es.js.map} +1 -1
- package/dist/chunks/{date-input-U8N1y6b_.es.js → date-input-DFU5GZg-.es.js} +4 -4
- package/dist/chunks/{date-input-U8N1y6b_.es.js.map → date-input-DFU5GZg-.es.js.map} +1 -1
- package/dist/chunks/{date-input-DD0uZdGq.cjs.js → date-input-cXV2C969.cjs.js} +2 -2
- package/dist/chunks/{date-input-DD0uZdGq.cjs.js.map → date-input-cXV2C969.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-DZD4cZZI.cjs.js → date-picker-CKXDJqmt.cjs.js} +2 -2
- package/dist/chunks/{date-picker-DZD4cZZI.cjs.js.map → date-picker-CKXDJqmt.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-B5NwXo5k.es.js → date-picker-DiSC4s8p.es.js} +12 -12
- package/dist/chunks/{date-picker-B5NwXo5k.es.js.map → date-picker-DiSC4s8p.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-CloFZ70c.es.js → date-range-picker-DKPzeKkS.es.js} +12 -12
- package/dist/chunks/{date-range-picker-CloFZ70c.es.js.map → date-range-picker-DKPzeKkS.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-DcKkP7Xj.cjs.js → date-range-picker-DZxdGxHy.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-DcKkP7Xj.cjs.js.map → date-range-picker-DZxdGxHy.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-CSpT0HwR.cjs.js → date-range-picker-field-Cc97V99w.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-CSpT0HwR.cjs.js.map → date-range-picker-field-Cc97V99w.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-BPGGp3jH.es.js → date-range-picker-field-Cz0on7N9.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-BPGGp3jH.es.js.map → date-range-picker-field-Cz0on7N9.es.js.map} +1 -1
- package/dist/chunks/default-page-Bb0JHsAd.cjs.js +2 -0
- package/dist/chunks/default-page-Bb0JHsAd.cjs.js.map +1 -0
- package/dist/chunks/{default-page-CkacXcz2.es.js → default-page-E0hvl34S.es.js} +60 -60
- package/dist/chunks/default-page-E0hvl34S.es.js.map +1 -0
- package/dist/chunks/{dialog-yIDnbE41.es.js → dialog-BMGMx0uh.es.js} +59 -58
- package/dist/chunks/dialog-BMGMx0uh.es.js.map +1 -0
- package/dist/chunks/dialog-X45TZomp.cjs.js +2 -0
- package/dist/chunks/dialog-X45TZomp.cjs.js.map +1 -0
- package/dist/chunks/{draggable-list-DEWPzTXs.es.js → draggable-list-DQZ9mMY7.es.js} +18 -18
- package/dist/chunks/{draggable-list-DEWPzTXs.es.js.map → draggable-list-DQZ9mMY7.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-oPX1t-3Y.cjs.js → draggable-list-DY8FTWN5.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-oPX1t-3Y.cjs.js.map → draggable-list-DY8FTWN5.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-C6SlH_kv.cjs.js → drawer-B8d7ngw9.cjs.js} +2 -2
- package/dist/chunks/{drawer-C6SlH_kv.cjs.js.map → drawer-B8d7ngw9.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-DNLkEvD0.es.js → drawer-D2VDzpBe.es.js} +7 -7
- package/dist/chunks/{drawer-DNLkEvD0.es.js.map → drawer-D2VDzpBe.es.js.map} +1 -1
- package/dist/chunks/extract-padding-props-5XQcb4kp.es.js +86 -0
- package/dist/chunks/extract-padding-props-5XQcb4kp.es.js.map +1 -0
- package/dist/chunks/extract-padding-props-De5B6uiA.cjs.js +2 -0
- package/dist/chunks/extract-padding-props-De5B6uiA.cjs.js.map +1 -0
- package/dist/chunks/{extract-style-props-D86m_g63.es.js → extract-style-props-Bcwub3j6.es.js} +2 -2
- package/dist/chunks/{extract-style-props-D86m_g63.es.js.map → extract-style-props-Bcwub3j6.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DiP1lZl_.cjs.js → extract-style-props-DWdgk4rX.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-DiP1lZl_.cjs.js.map → extract-style-props-DWdgk4rX.cjs.js.map} +1 -1
- package/dist/chunks/{focusSafely-DqnNk8Cr.es.js → focusSafely-Cpjz2BzP.es.js} +2 -2
- package/dist/chunks/{focusSafely-DqnNk8Cr.es.js.map → focusSafely-Cpjz2BzP.es.js.map} +1 -1
- package/dist/chunks/form-action-bar-B7zd3XAE.es.js +101 -0
- package/dist/chunks/form-action-bar-B7zd3XAE.es.js.map +1 -0
- package/dist/chunks/form-action-bar-Bzst5Vxz.cjs.js +2 -0
- package/dist/chunks/form-action-bar-Bzst5Vxz.cjs.js.map +1 -0
- package/dist/chunks/{form-field-BVbjVnSV.es.js → form-field-8H5wbjSo.es.js} +3 -3
- package/dist/chunks/{form-field-BVbjVnSV.es.js.map → form-field-8H5wbjSo.es.js.map} +1 -1
- package/dist/chunks/{form-field-BgYwFv45.cjs.js → form-field-CRA4BE4c.cjs.js} +2 -2
- package/dist/chunks/{form-field-BgYwFv45.cjs.js.map → form-field-CRA4BE4c.cjs.js.map} +1 -1
- package/dist/chunks/{getItemCount-BEy-gD1d.es.js → getItemCount-BlW7-DM4.es.js} +4 -4
- package/dist/chunks/{getItemCount-BEy-gD1d.es.js.map → getItemCount-BlW7-DM4.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-DpFDagTz.es.js → getScrollParent-CS3T_04J.es.js} +2 -2
- package/dist/chunks/{getScrollParent-DpFDagTz.es.js.map → getScrollParent-CS3T_04J.es.js.map} +1 -1
- package/dist/chunks/{group-DmZFJeQ4.es.js → group-C9O-E531.es.js} +2 -2
- package/dist/chunks/{group-DmZFJeQ4.es.js.map → group-C9O-E531.es.js.map} +1 -1
- package/dist/chunks/{icon-button-COjLtd6N.es.js → icon-button-BEAbGl9T.es.js} +2 -2
- package/dist/chunks/{icon-button-COjLtd6N.es.js.map → icon-button-BEAbGl9T.es.js.map} +1 -1
- package/dist/chunks/{icon-button-BwxwVPZQ.cjs.js → icon-button-xxvxJnj0.cjs.js} +2 -2
- package/dist/chunks/{icon-button-BwxwVPZQ.cjs.js.map → icon-button-xxvxJnj0.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BUG86RqE.cjs.js → icon-toggle-button-BPQBCC7v.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BUG86RqE.cjs.js.map → icon-toggle-button-BPQBCC7v.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CBEMJReu.es.js → icon-toggle-button-Car7NrgY.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CBEMJReu.es.js.map → icon-toggle-button-Car7NrgY.es.js.map} +1 -1
- package/dist/chunks/{index-CTrsTsK6.es.js → index-B_vTRVge.es.js} +149 -73
- package/dist/chunks/index-B_vTRVge.es.js.map +1 -0
- package/dist/chunks/index-D7XQqnz_.cjs.js +34 -0
- package/dist/chunks/index-D7XQqnz_.cjs.js.map +1 -0
- package/dist/chunks/info-dialog-D4ylpGSa.cjs.js +2 -0
- package/dist/chunks/info-dialog-D4ylpGSa.cjs.js.map +1 -0
- package/dist/chunks/info-dialog-DryM_KKZ.es.js +32 -0
- package/dist/chunks/info-dialog-DryM_KKZ.es.js.map +1 -0
- package/dist/chunks/{inline-svg-D0MU6k2J.es.js → inline-svg-DKiHSMuM.es.js} +2 -2
- package/dist/chunks/{inline-svg-D0MU6k2J.es.js.map → inline-svg-DKiHSMuM.es.js.map} +1 -1
- package/dist/chunks/{inline-svg-Che-ey1M.cjs.js → inline-svg-DSoQFXip.cjs.js} +2 -2
- package/dist/chunks/{inline-svg-Che-ey1M.cjs.js.map → inline-svg-DSoQFXip.cjs.js.map} +1 -1
- package/dist/chunks/{link-BagSeub_.es.js → link-Crovp2Od.es.js} +2 -2
- package/dist/chunks/{link-BagSeub_.es.js.map → link-Crovp2Od.es.js.map} +1 -1
- package/dist/chunks/{list-DZkO_S3d.cjs.js → list-DxPDmQ-o.cjs.js} +2 -2
- package/dist/chunks/{list-DZkO_S3d.cjs.js.map → list-DxPDmQ-o.cjs.js.map} +1 -1
- package/dist/chunks/{list-DZIxOhF7.es.js → list-tY8NtJk0.es.js} +2 -2
- package/dist/chunks/{list-DZIxOhF7.es.js.map → list-tY8NtJk0.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BrdKlDDc.es.js → localized-field-9SQ5Na7r.es.js} +11 -11
- package/dist/chunks/{localized-field-BrdKlDDc.es.js.map → localized-field-9SQ5Na7r.es.js.map} +1 -1
- package/dist/chunks/{localized-field-B69EDfq1.cjs.js → localized-field-Sp9tovsD.cjs.js} +2 -2
- package/dist/chunks/{localized-field-B69EDfq1.cjs.js.map → localized-field-Sp9tovsD.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-QhMuqMrZ.es.js → make-element-focusable-CDZnSp67.es.js} +2 -2
- package/dist/chunks/{make-element-focusable-QhMuqMrZ.es.js.map → make-element-focusable-CDZnSp67.es.js.map} +1 -1
- package/dist/chunks/{menu-BgqoIrxE.cjs.js → menu-DVanb-L3.cjs.js} +2 -2
- package/dist/chunks/{menu-BgqoIrxE.cjs.js.map → menu-DVanb-L3.cjs.js.map} +1 -1
- package/dist/chunks/{menu-DpjEZqo0.es.js → menu-EnbHuHaW.es.js} +6 -6
- package/dist/chunks/{menu-DpjEZqo0.es.js.map → menu-EnbHuHaW.es.js.map} +1 -1
- package/dist/chunks/modal-page-BiF7R0Pr.cjs.js +2 -0
- package/dist/chunks/modal-page-BiF7R0Pr.cjs.js.map +1 -0
- package/dist/chunks/{modal-page-7Mp-9hq7.es.js → modal-page-CfoF1omY.es.js} +76 -76
- package/dist/chunks/{modal-page-hqz13F_k.cjs.js.map → modal-page-CfoF1omY.es.js.map} +1 -1
- package/dist/chunks/{money-input-C0FNshvC.es.js → money-input-B7loCwhJ.es.js} +8 -8
- package/dist/chunks/{money-input-C0FNshvC.es.js.map → money-input-B7loCwhJ.es.js.map} +1 -1
- package/dist/chunks/{money-input-a6xa1Bco.cjs.js → money-input-DYYoHYJT.cjs.js} +2 -2
- package/dist/chunks/{money-input-a6xa1Bco.cjs.js.map → money-input-DYYoHYJT.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-field-MSYtNijl.es.js → money-input-field-BgqnQEKD.es.js} +3 -3
- package/dist/chunks/{money-input-field-MSYtNijl.es.js.map → money-input-field-BgqnQEKD.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-CcZh9XXF.cjs.js → money-input-field-CfJuYMwF.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-CcZh9XXF.cjs.js.map → money-input-field-CfJuYMwF.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-CIvjI0sz.es.js → multiline-text-input-Cty3zIk3.es.js} +5 -5
- package/dist/chunks/{multiline-text-input-CIvjI0sz.es.js.map → multiline-text-input-Cty3zIk3.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-Bg-IYvjs.cjs.js → multiline-text-input-DOZi-hXb.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-Bg-IYvjs.cjs.js.map → multiline-text-input-DOZi-hXb.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-vHwcYVrc.cjs.js → multiline-text-input-field-Biyu5soS.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-vHwcYVrc.cjs.js.map → multiline-text-input-field-Biyu5soS.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-z3fcg1SN.es.js → multiline-text-input-field-DYfT9pzO.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-z3fcg1SN.es.js.map → multiline-text-input-field-DYfT9pzO.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-Cx8MjMS6.cjs.js → nimbus-provider-BBTo9R4P.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-Cx8MjMS6.cjs.js.map → nimbus-provider-BBTo9R4P.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CgqsobhH.es.js → nimbus-provider-Ct3e0KGB.es.js} +9 -9
- package/dist/chunks/{nimbus-provider-CgqsobhH.es.js.map → nimbus-provider-Ct3e0KGB.es.js.map} +1 -1
- package/dist/chunks/{number-input-DP-OVZI2.es.js → number-input-C7007r95.es.js} +8 -8
- package/dist/chunks/{number-input-DP-OVZI2.es.js.map → number-input-C7007r95.es.js.map} +1 -1
- package/dist/chunks/{number-input-B6wg3RZV.cjs.js → number-input-eaqJq1-5.cjs.js} +2 -2
- package/dist/chunks/{number-input-B6wg3RZV.cjs.js.map → number-input-eaqJq1-5.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-xM-TUlKb.cjs.js → number-input-field-DVqoH0p-.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-xM-TUlKb.cjs.js.map → number-input-field-DVqoH0p-.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-CrNsadIg.es.js → number-input-field-Dh5FDth2.es.js} +3 -3
- package/dist/chunks/{number-input-field-CrNsadIg.es.js.map → number-input-field-Dh5FDth2.es.js.map} +1 -1
- package/dist/chunks/{pagination-C95pC4Nv.cjs.js → pagination-DiltG6WS.cjs.js} +2 -2
- package/dist/chunks/pagination-DiltG6WS.cjs.js.map +1 -0
- package/dist/chunks/{pagination-Ckqf7naU.es.js → pagination-Z8tzRviC.es.js} +4 -4
- package/dist/chunks/pagination-Z8tzRviC.es.js.map +1 -0
- package/dist/chunks/{password-input-Ce1_zTrV.cjs.js → password-input-CUmZJUPL.cjs.js} +2 -2
- package/dist/chunks/{password-input-Ce1_zTrV.cjs.js.map → password-input-CUmZJUPL.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-B7FJ9Ldf.es.js → password-input-D8ptasUp.es.js} +4 -4
- package/dist/chunks/{password-input-B7FJ9Ldf.es.js.map → password-input-D8ptasUp.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-C0yxb6e0.cjs.js → password-input-field-DSjVMRCP.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-C0yxb6e0.cjs.js.map → password-input-field-DSjVMRCP.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-DK9Ojw81.es.js → password-input-field-DWs71XOF.es.js} +3 -3
- package/dist/chunks/{password-input-field-DK9Ojw81.es.js.map → password-input-field-DWs71XOF.es.js.map} +1 -1
- package/dist/chunks/{popover-BBxctRr2.es.js → popover-CRwL6ieG.es.js} +2 -2
- package/dist/chunks/{popover-BBxctRr2.es.js.map → popover-CRwL6ieG.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-KC5B4kbq.cjs.js → progress-bar-6w36JcxG.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-KC5B4kbq.cjs.js.map → progress-bar-6w36JcxG.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-D1aXIOQm.es.js → progress-bar-B57j7ETd.es.js} +2 -2
- package/dist/chunks/{progress-bar-D1aXIOQm.es.js.map → progress-bar-B57j7ETd.es.js.map} +1 -1
- package/dist/chunks/{radio-input-4j5fR8Sw.es.js → radio-input-DOuElAn1.es.js} +8 -8
- package/dist/chunks/{radio-input-4j5fR8Sw.es.js.map → radio-input-DOuElAn1.es.js.map} +1 -1
- package/dist/chunks/{radio-input-DNNcbOA1.cjs.js → radio-input-s7Vn3eqD.cjs.js} +2 -2
- package/dist/chunks/{radio-input-DNNcbOA1.cjs.js.map → radio-input-s7Vn3eqD.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-C1irWg1b.cjs.js → range-calendar-C_xSoqge.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-C1irWg1b.cjs.js.map → range-calendar-C_xSoqge.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-BFVhbf7m.es.js → range-calendar-DklNm37M.es.js} +6 -6
- package/dist/chunks/{range-calendar-BFVhbf7m.es.js.map → range-calendar-DklNm37M.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BMkdKO7t.es.js → rich-text-input-BDCm78yF.es.js} +11 -11
- package/dist/chunks/{rich-text-input-BMkdKO7t.es.js.map → rich-text-input-BDCm78yF.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-DCIpwH0R.cjs.js → rich-text-input-DA2GWw4Z.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-DCIpwH0R.cjs.js.map → rich-text-input-DA2GWw4Z.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-CTrxup69.cjs.js → scoped-search-input-B-2Q4e_S.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-CTrxup69.cjs.js.map → scoped-search-input-B-2Q4e_S.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DN0vmuYg.es.js → scoped-search-input-C5I8Q-Rw.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-DN0vmuYg.es.js.map → scoped-search-input-C5I8Q-Rw.es.js.map} +1 -1
- package/dist/chunks/{search-input-CrvckaAj.es.js → search-input-DW8rHoL6.es.js} +8 -8
- package/dist/chunks/{search-input-CrvckaAj.es.js.map → search-input-DW8rHoL6.es.js.map} +1 -1
- package/dist/chunks/{search-input-CxqdrNyB.cjs.js → search-input-c2zuWAmw.cjs.js} +2 -2
- package/dist/chunks/{search-input-CxqdrNyB.cjs.js.map → search-input-c2zuWAmw.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-Bjbtd2Q1.cjs.js → search-input-field-CKt5P2fW.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-Bjbtd2Q1.cjs.js.map → search-input-field-CKt5P2fW.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-DotWDBPo.es.js → search-input-field-Cbe1ViMR.es.js} +3 -3
- package/dist/chunks/{search-input-field-DotWDBPo.es.js.map → search-input-field-Cbe1ViMR.es.js.map} +1 -1
- package/dist/chunks/{select-Cg88ALta.cjs.js → select-CDzgGzlu.cjs.js} +2 -2
- package/dist/chunks/{select-Cg88ALta.cjs.js.map → select-CDzgGzlu.cjs.js.map} +1 -1
- package/dist/chunks/{select-DzHkNbNO.es.js → select-Cd_w-w3c.es.js} +15 -15
- package/dist/chunks/{select-DzHkNbNO.es.js.map → select-Cd_w-w3c.es.js.map} +1 -1
- package/dist/chunks/{separator-CX6ime34.es.js → separator-BpUozUZ9.es.js} +4 -4
- package/dist/chunks/{separator-CX6ime34.es.js.map → separator-BpUozUZ9.es.js.map} +1 -1
- package/dist/chunks/{separator-BbC96leb.cjs.js → separator-hX0giW7F.cjs.js} +2 -2
- package/dist/chunks/{separator-BbC96leb.cjs.js.map → separator-hX0giW7F.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-BtRQHBQO.es.js → split-button-BlXn1zig.es.js} +4 -4
- package/dist/chunks/{split-button-BtRQHBQO.es.js.map → split-button-BlXn1zig.es.js.map} +1 -1
- package/dist/chunks/{split-button-C1IoV6IJ.cjs.js → split-button-p2WBvGiG.cjs.js} +2 -2
- package/dist/chunks/{split-button-C1IoV6IJ.cjs.js.map → split-button-p2WBvGiG.cjs.js.map} +1 -1
- package/dist/chunks/{steps-CKxY0-Pt.es.js → steps-B07EtWhk.es.js} +2 -2
- package/dist/chunks/{steps-CKxY0-Pt.es.js.map → steps-B07EtWhk.es.js.map} +1 -1
- package/dist/chunks/{steps-WZE66Acc.cjs.js → steps-BmzCm-36.cjs.js} +2 -2
- package/dist/chunks/{steps-WZE66Acc.cjs.js.map → steps-BmzCm-36.cjs.js.map} +1 -1
- package/dist/chunks/{switch-Cka76JRB.cjs.js → switch-CHgcSQ7q.cjs.js} +2 -2
- package/dist/chunks/{switch-Cka76JRB.cjs.js.map → switch-CHgcSQ7q.cjs.js.map} +1 -1
- package/dist/chunks/{switch-wtPNc7un.es.js → switch-CStZ99EX.es.js} +6 -6
- package/dist/chunks/{switch-wtPNc7un.es.js.map → switch-CStZ99EX.es.js.map} +1 -1
- package/dist/chunks/{tab-nav-D6KyQebA.es.js → tab-nav-Bz8GBurR.es.js} +3 -3
- package/dist/chunks/{tab-nav-D6KyQebA.es.js.map → tab-nav-Bz8GBurR.es.js.map} +1 -1
- package/dist/chunks/{table-R4JyeVp2.es.js → table-CUNN3TBI.es.js} +2 -2
- package/dist/chunks/{table-R4JyeVp2.es.js.map → table-CUNN3TBI.es.js.map} +1 -1
- package/dist/chunks/{table-Dyxl5zlP.cjs.js → table-jUvZ_o07.cjs.js} +2 -2
- package/dist/chunks/{table-Dyxl5zlP.cjs.js.map → table-jUvZ_o07.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-o6hCf9Mt.es.js → tabs-BuYHA8KE.es.js} +9 -9
- package/dist/chunks/{tabs-o6hCf9Mt.es.js.map → tabs-BuYHA8KE.es.js.map} +1 -1
- package/dist/chunks/{tabs-wIeLZz5O.cjs.js → tabs-CvAZzZ9K.cjs.js} +2 -2
- package/dist/chunks/{tabs-wIeLZz5O.cjs.js.map → tabs-CvAZzZ9K.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-D8hKdjB9.es.js → tag-group-Ckow1PYY.es.js} +37 -43
- package/dist/chunks/{tag-group-D8hKdjB9.es.js.map → tag-group-Ckow1PYY.es.js.map} +1 -1
- package/dist/chunks/{tag-group-DbvU1O6E.cjs.js → tag-group-CwRzOTkl.cjs.js} +2 -2
- package/dist/chunks/{tag-group-DbvU1O6E.cjs.js.map → tag-group-CwRzOTkl.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-B5ZUhPwE.es.js → text-input-CXWRNuLo.es.js} +5 -5
- package/dist/chunks/{text-input-B5ZUhPwE.es.js.map → text-input-CXWRNuLo.es.js.map} +1 -1
- package/dist/chunks/{text-input-Bu83lbHX.cjs.js → text-input-DWuEIlWt.cjs.js} +2 -2
- package/dist/chunks/{text-input-Bu83lbHX.cjs.js.map → text-input-DWuEIlWt.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-CklMF7YY.es.js → text-input-field-BpR1i2C7.es.js} +3 -3
- package/dist/chunks/{text-input-field-CklMF7YY.es.js.map → text-input-field-BpR1i2C7.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-2kTe0yOk.cjs.js → text-input-field-dVzAZAez.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-2kTe0yOk.cjs.js.map → text-input-field-dVzAZAez.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-CrVLaoA0.cjs.js → time-input-DFEmB8Dd.cjs.js} +2 -2
- package/dist/chunks/{time-input-CrVLaoA0.cjs.js.map → time-input-DFEmB8Dd.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-DVHH_t4-.es.js → time-input-ZJNuKt9i.es.js} +4 -4
- package/dist/chunks/{time-input-DVHH_t4-.es.js.map → time-input-ZJNuKt9i.es.js.map} +1 -1
- package/dist/chunks/toast.manager-BNtzzS8_.es.js +166 -0
- package/dist/chunks/toast.manager-BNtzzS8_.es.js.map +1 -0
- package/dist/chunks/toast.manager-x7tNU0Ih.cjs.js +2 -0
- package/dist/chunks/toast.manager-x7tNU0Ih.cjs.js.map +1 -0
- package/dist/chunks/{toast.outlet-lUNd7uT5.cjs.js → toast.outlet-BfRwM71B.cjs.js} +2 -2
- package/dist/chunks/{toast.outlet-lUNd7uT5.cjs.js.map → toast.outlet-BfRwM71B.cjs.js.map} +1 -1
- package/dist/chunks/{toast.outlet-DJcmd-Lx.es.js → toast.outlet-Cs9C243e.es.js} +3 -3
- package/dist/chunks/{toast.outlet-DJcmd-Lx.es.js.map → toast.outlet-Cs9C243e.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-CoWhHGMF.cjs.js → toggle-button-C3ogfkeP.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-CoWhHGMF.cjs.js.map → toggle-button-C3ogfkeP.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-4sok_obo.es.js → toggle-button-Db4QN7G8.es.js} +4 -4
- package/dist/chunks/{toggle-button-4sok_obo.es.js.map → toggle-button-Db4QN7G8.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-70GS2Oxw.es.js → toggle-button-group-KPOZMpau.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-70GS2Oxw.es.js.map → toggle-button-group-KPOZMpau.es.js.map} +1 -1
- package/dist/chunks/{toolbar-CFdj7voU.cjs.js → toolbar-BNQ91K5F.cjs.js} +2 -2
- package/dist/chunks/{toolbar-CFdj7voU.cjs.js.map → toolbar-BNQ91K5F.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-BbbyUoeE.es.js → toolbar-C7_awmEu.es.js} +4 -4
- package/dist/chunks/{toolbar-BbbyUoeE.es.js.map → toolbar-C7_awmEu.es.js.map} +1 -1
- package/dist/chunks/{tooltip-Bx5ngdcy.es.js → tooltip-BCSTJUeB.es.js} +4 -4
- package/dist/chunks/{tooltip-Bx5ngdcy.es.js.map → tooltip-BCSTJUeB.es.js.map} +1 -1
- package/dist/chunks/use-inline-svg-BwpEJ6Fo.es.js +661 -0
- package/dist/chunks/use-inline-svg-BwpEJ6Fo.es.js.map +1 -0
- package/dist/chunks/use-inline-svg-C_9d8SVe.cjs.js +3 -0
- package/dist/chunks/use-inline-svg-C_9d8SVe.cjs.js.map +1 -0
- package/dist/chunks/{useButton-Bn8_4cDG.es.js → useButton-CvZJwQeR.es.js} +3 -3
- package/dist/chunks/{useButton-Bn8_4cDG.es.js.map → useButton-CvZJwQeR.es.js.map} +1 -1
- package/dist/chunks/{useCollection-BHV9RL7c.es.js → useCollection-RgQhRQUv.es.js} +11 -11
- package/dist/chunks/{useCollection-BHV9RL7c.es.js.map → useCollection-RgQhRQUv.es.js.map} +1 -1
- package/dist/chunks/{useDescription-Cs3XF2eh.es.js → useDescription-CUA6cnWB.es.js} +3 -3
- package/dist/chunks/{useDescription-Cs3XF2eh.es.js.map → useDescription-CUA6cnWB.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-2PACod61.es.js → useFocusRing-BjLV7S0I.es.js} +2 -2
- package/dist/chunks/{useFocusRing-2PACod61.es.js.map → useFocusRing-BjLV7S0I.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-DZMx0daa.es.js → useFocusVisible-DqC5JNzb.es.js} +3 -3
- package/dist/chunks/{useFocusVisible-DZMx0daa.es.js.map → useFocusVisible-DqC5JNzb.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Cd_G32KV.es.js → useFocusable-C_nr2Krq.es.js} +2 -2
- package/dist/chunks/{useFocusable-Cd_G32KV.es.js.map → useFocusable-C_nr2Krq.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-B4BrOn-T.es.js → useFormValidation-D9CgPyCr.es.js} +2 -2
- package/dist/chunks/{useFormValidation-B4BrOn-T.es.js.map → useFormValidation-D9CgPyCr.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-DK2Qg6fD.es.js → useGridListItem-nKFYPkff.es.js} +9 -9
- package/dist/chunks/{useGridListItem-DK2Qg6fD.es.js.map → useGridListItem-nKFYPkff.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-CwNEZI_G.es.js → useHasTabbableChild-Dbdf_KS-.es.js} +2 -2
- package/dist/chunks/{useHasTabbableChild-CwNEZI_G.es.js.map → useHasTabbableChild-Dbdf_KS-.es.js.map} +1 -1
- package/dist/chunks/{useLink-CozRsmDk.es.js → useLink-DSvTeBUk.es.js} +4 -4
- package/dist/chunks/{useLink-CozRsmDk.es.js.map → useLink-DSvTeBUk.es.js.map} +1 -1
- package/dist/chunks/{useListState-CCuYEVMA.es.js → useListState-ChE2yd3D.es.js} +4 -4
- package/dist/chunks/{useListState-CCuYEVMA.es.js.map → useListState-ChE2yd3D.es.js.map} +1 -1
- package/dist/chunks/{useOverlayTriggerState-BIEvXItV.es.js → useOverlayTriggerState-D7I9elYW.es.js} +2 -2
- package/dist/chunks/{useOverlayTriggerState-BIEvXItV.es.js.map → useOverlayTriggerState-D7I9elYW.es.js.map} +1 -1
- package/dist/chunks/{usePress-j9tEDUF8.es.js → usePress-Br1wieoZ.es.js} +3 -3
- package/dist/chunks/{usePress-j9tEDUF8.es.js.map → usePress-Br1wieoZ.es.js.map} +1 -1
- package/dist/chunks/{useTextField-DcRDkg3E.es.js → useTextField-CZhjyvc5.es.js} +3 -3
- package/dist/chunks/{useTextField-DcRDkg3E.es.js.map → useTextField-CZhjyvc5.es.js.map} +1 -1
- package/dist/chunks/{useToggle-CaC4NvDB.es.js → useToggle-BPDsTx1-.es.js} +3 -3
- package/dist/chunks/{useToggle-CaC4NvDB.es.js.map → useToggle-BPDsTx1-.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-CTHfREg3.es.js → useToolbar-BUiUE_wW.es.js} +2 -2
- package/dist/chunks/{useToolbar-CTHfREg3.es.js.map → useToolbar-BUiUE_wW.es.js.map} +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/actions.cjs +2 -0
- package/dist/components/actions.cjs.map +1 -0
- package/dist/components/actions.es.js +5 -0
- package/dist/components/actions.es.js.map +1 -0
- 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.d.ts +8 -1
- package/dist/components/avatar/avatar.i18n.d.ts +5 -0
- package/dist/components/avatar/avatar.messages.d.ts +1 -1
- package/dist/components/avatar/avatar.slots.d.ts +1 -1
- package/dist/components/avatar/avatar.types.d.ts +10 -4
- package/dist/components/avatar/intl/de.d.ts +1 -0
- package/dist/components/avatar/intl/en.d.ts +1 -0
- package/dist/components/avatar/intl/es.d.ts +1 -0
- package/dist/components/avatar/intl/fr-FR.d.ts +1 -0
- package/dist/components/avatar/intl/pt-BR.d.ts +1 -0
- package/dist/components/avatar/utils/get-full-name.d.ts +6 -0
- package/dist/components/avatar/utils/get-initials.d.ts +11 -0
- package/dist/components/avatar/utils/index.d.ts +2 -0
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge/badge.slots.d.ts +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/card.d.ts +38 -19
- package/dist/components/card/card.recipe.d.ts +39 -14
- package/dist/components/card/card.slots.d.ts +3 -2
- package/dist/components/card/card.types.d.ts +15 -10
- package/dist/components/card/components/card.body.d.ts +10 -0
- package/dist/components/card/components/card.footer.d.ts +10 -0
- package/dist/components/card/components/card.header.d.ts +1 -1
- package/dist/components/card/components/card.root.d.ts +7 -7
- package/dist/components/card/components/index.d.ts +2 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +5 -4
- 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.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/components/data-table.context.d.ts +15 -1
- package/dist/components/data-table/components/data-table.row.d.ts +11 -3
- package/dist/components/data-table/data-table.slots.d.ts +11 -11
- package/dist/components/data-table/data-table.types.d.ts +7 -0
- 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.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.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/default-page.cjs +1 -1
- package/dist/components/default-page.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/dialogs.cjs +2 -0
- package/dist/components/dialogs.cjs.map +1 -0
- package/dist/components/dialogs.es.js +5 -0
- package/dist/components/dialogs.es.js.map +1 -0
- package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer/drawer.slots.d.ts +10 -10
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +7 -7
- package/dist/components/form-action-bar.cjs +2 -0
- package/dist/components/form-action-bar.cjs.map +1 -0
- package/dist/components/form-action-bar.es.js +5 -0
- package/dist/components/form-action-bar.es.js.map +1 -0
- 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/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/info-dialog.cjs +2 -0
- package/dist/components/info-dialog.cjs.map +1 -0
- package/dist/components/info-dialog.es.js +5 -0
- package/dist/components/info-dialog.es.js.map +1 -0
- 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/link/link.slots.d.ts +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.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/modal-page.cjs +1 -1
- package/dist/components/modal-page.es.js +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/pagination.messages.d.ts +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 +18 -14
- package/dist/components/patterns.es.js.map +1 -1
- 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/scroll-area/scroll-area.types.d.ts +18 -6
- package/dist/components/scroll-area.cjs +1 -1
- package/dist/components/scroll-area.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/services.cjs +1 -1
- package/dist/components/services.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/steps/steps.slots.d.ts +12 -12
- package/dist/components/steps.cjs +1 -1
- package/dist/components/steps.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/tab-nav.es.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.es.js +1 -1
- 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/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/toast/toast.types.d.ts +0 -2
- package/dist/components/toast.cjs +1 -1
- package/dist/components/toast.es.js +2 -2
- 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/utils.cjs +1 -2
- package/dist/components/utils.cjs.map +1 -1
- package/dist/components/utils.es.js +7 -580
- package/dist/components/utils.es.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +514 -490
- package/dist/index.es.js.map +1 -1
- package/dist/patterns/actions/form-action-bar/form-action-bar.d.ts +24 -0
- package/dist/patterns/actions/form-action-bar/form-action-bar.i18n.d.ts +22 -0
- package/dist/patterns/actions/form-action-bar/form-action-bar.messages.d.ts +6 -0
- package/dist/patterns/actions/form-action-bar/form-action-bar.types.d.ts +80 -0
- package/dist/patterns/actions/form-action-bar/index.d.ts +2 -0
- package/dist/patterns/actions/form-action-bar/intl/de.d.ts +12 -0
- package/dist/patterns/actions/form-action-bar/intl/en.d.ts +12 -0
- package/dist/patterns/actions/form-action-bar/intl/es.d.ts +12 -0
- package/dist/patterns/actions/form-action-bar/intl/fr-FR.d.ts +12 -0
- package/dist/patterns/actions/form-action-bar/intl/pt-BR.d.ts +12 -0
- package/dist/patterns/actions/index.d.ts +1 -0
- package/dist/patterns/dialogs/index.d.ts +1 -0
- package/dist/patterns/dialogs/info-dialog/index.d.ts +2 -0
- package/dist/patterns/dialogs/info-dialog/info-dialog.d.ts +29 -0
- package/dist/patterns/dialogs/info-dialog/info-dialog.types.d.ts +65 -0
- package/dist/patterns/index.d.ts +2 -0
- package/dist/theme/slot-recipes/index.d.ts +39 -14
- package/package.json +24 -23
- package/dist/chunks/avatar-BZVVE8-z.cjs.js +0 -2
- package/dist/chunks/avatar-BZVVE8-z.cjs.js.map +0 -1
- package/dist/chunks/avatar-g0-w5BFv.es.js +0 -58
- package/dist/chunks/avatar-g0-w5BFv.es.js.map +0 -1
- package/dist/chunks/card-9_RuK9Zz.cjs.js +0 -2
- package/dist/chunks/card-9_RuK9Zz.cjs.js.map +0 -1
- package/dist/chunks/card-uXOOkYyy.es.js +0 -114
- package/dist/chunks/card-uXOOkYyy.es.js.map +0 -1
- package/dist/chunks/combobox-D57Kz3Nc.es.js +0 -1549
- package/dist/chunks/combobox-D57Kz3Nc.es.js.map +0 -1
- package/dist/chunks/combobox-DI91M7UN.cjs.js +0 -2
- package/dist/chunks/combobox-DI91M7UN.cjs.js.map +0 -1
- package/dist/chunks/data-table-DCpNE2Zx.cjs.js +0 -2
- package/dist/chunks/default-page-CRVgInf7.cjs.js +0 -2
- package/dist/chunks/default-page-CRVgInf7.cjs.js.map +0 -1
- package/dist/chunks/default-page-CkacXcz2.es.js.map +0 -1
- package/dist/chunks/dialog-CdRhZEAb.cjs.js +0 -2
- package/dist/chunks/dialog-CdRhZEAb.cjs.js.map +0 -1
- package/dist/chunks/dialog-yIDnbE41.es.js.map +0 -1
- package/dist/chunks/extract-padding-props-Cbwb9nEt.es.js +0 -71
- package/dist/chunks/extract-padding-props-Cbwb9nEt.es.js.map +0 -1
- package/dist/chunks/extract-padding-props-Ci-QKY45.cjs.js +0 -2
- package/dist/chunks/extract-padding-props-Ci-QKY45.cjs.js.map +0 -1
- package/dist/chunks/index-CTrsTsK6.es.js.map +0 -1
- package/dist/chunks/index-CiXhDFpN.cjs.js +0 -34
- package/dist/chunks/index-CiXhDFpN.cjs.js.map +0 -1
- package/dist/chunks/modal-page-7Mp-9hq7.es.js.map +0 -1
- package/dist/chunks/modal-page-hqz13F_k.cjs.js +0 -2
- package/dist/chunks/pagination-C95pC4Nv.cjs.js.map +0 -1
- package/dist/chunks/pagination-Ckqf7naU.es.js.map +0 -1
- package/dist/chunks/toast.manager-C-xQVs3Q.cjs.js +0 -2
- package/dist/chunks/toast.manager-C-xQVs3Q.cjs.js.map +0 -1
- package/dist/chunks/toast.manager-Dj0xhoar.es.js +0 -173
- package/dist/chunks/toast.manager-Dj0xhoar.es.js.map +0 -1
- package/dist/chunks/use-inline-svg-BRhR4qWr.cjs.js +0 -2
- package/dist/chunks/use-inline-svg-BRhR4qWr.cjs.js.map +0 -1
- package/dist/chunks/use-inline-svg-D-aaBVBt.es.js +0 -47
- package/dist/chunks/use-inline-svg-D-aaBVBt.es.js.map +0 -1
- package/dist/components/card/components/card.content.d.ts +0 -10
|
@@ -1,1549 +0,0 @@
|
|
|
1
|
-
import { jsx as g, jsxs as Se, Fragment as He } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as Qe, useReducer as wt, useRef as $, useEffect as Y, useMemo as ee, useContext as Re, useState as Z, useCallback as L, isValidElement as $t, cloneElement as Kt } from "react";
|
|
3
|
-
import { d as It } from "./getItemCount-BEy-gD1d.es.js";
|
|
4
|
-
import { $ as Xe, a as Bt, b as Mt, c as Tt, d as At } from "./ListBox-BQGvhjf1.es.js";
|
|
5
|
-
import { f as Ft, g as Ot } from "./CollectionBuilder-CbqLnlVI.es.js";
|
|
6
|
-
import { createSlotRecipeContext as Vt, useSlotRecipe as Et } from "@chakra-ui/react/styled-system";
|
|
7
|
-
import { Close as Lt, KeyboardArrowDown as Dt, Check as Rt } from "@commercetools/nimbus-icons";
|
|
8
|
-
import { e as pe } from "./extract-style-props-D86m_g63.es.js";
|
|
9
|
-
import { P as Pt } from "./popover-BBxctRr2.es.js";
|
|
10
|
-
import { I as Ue } from "./icon-button-COjLtd6N.es.js";
|
|
11
|
-
import { L as zt } from "./loading-spinner-DjYAzT9l.es.js";
|
|
12
|
-
import { $ as Me, a as Nt } from "./Input-BLulRm-m.es.js";
|
|
13
|
-
import { $ as Pe, T as Ee } from "./tag-group-D8hKdjB9.es.js";
|
|
14
|
-
import { $ as kt } from "./useListData-9OeguMQW.es.js";
|
|
15
|
-
import { a as Wt } from "./useListState-CCuYEVMA.es.js";
|
|
16
|
-
import { $ as Je } from "./mergeProps-Bcbq3GVJ.es.js";
|
|
17
|
-
import { $ as Gt } from "./Autocomplete-B1xvEyxv.es.js";
|
|
18
|
-
import { $ as Le } from "./Button-i3wfJjZy.es.js";
|
|
19
|
-
import { $ as qt, e as Ye } from "./utils-BBrLCz2b.es.js";
|
|
20
|
-
import { a as _t } from "./Group-MOzeoewy.es.js";
|
|
21
|
-
import { $ as jt } from "./Label-DVM33Itv.es.js";
|
|
22
|
-
import { h as Ht } from "./Dialog-Dwy2_Ptk.es.js";
|
|
23
|
-
import { $ as Ut } from "./Text-DOcU1ycg.es.js";
|
|
24
|
-
import { n as Ce, u as Jt } from "./normalize-messages-CeN1NEyM.es.js";
|
|
25
|
-
const Qt = /* @__PURE__ */ Qe(null);
|
|
26
|
-
function Xt(e, t) {
|
|
27
|
-
let r;
|
|
28
|
-
switch (e.state) {
|
|
29
|
-
case "idle":
|
|
30
|
-
case "error":
|
|
31
|
-
switch (t.type) {
|
|
32
|
-
case "loading":
|
|
33
|
-
case "loadingMore":
|
|
34
|
-
case "sorting":
|
|
35
|
-
case "filtering":
|
|
36
|
-
return {
|
|
37
|
-
...e,
|
|
38
|
-
filterText: t.filterText ?? e.filterText,
|
|
39
|
-
state: t.type,
|
|
40
|
-
// Reset items to an empty list if loading, but not when sorting.
|
|
41
|
-
items: t.type === "loading" ? [] : e.items,
|
|
42
|
-
sortDescriptor: t.sortDescriptor ?? e.sortDescriptor,
|
|
43
|
-
abortController: t.abortController
|
|
44
|
-
};
|
|
45
|
-
case "update":
|
|
46
|
-
return {
|
|
47
|
-
...e,
|
|
48
|
-
...t.updater?.(e)
|
|
49
|
-
};
|
|
50
|
-
case "success":
|
|
51
|
-
case "error":
|
|
52
|
-
return e;
|
|
53
|
-
default:
|
|
54
|
-
throw new Error(`Invalid action "${t.type}" in state "${e.state}"`);
|
|
55
|
-
}
|
|
56
|
-
case "loading":
|
|
57
|
-
case "sorting":
|
|
58
|
-
case "filtering":
|
|
59
|
-
switch (t.type) {
|
|
60
|
-
case "success":
|
|
61
|
-
return t.abortController !== e.abortController ? e : (r = t.selectedKeys ?? e.selectedKeys, {
|
|
62
|
-
...e,
|
|
63
|
-
filterText: t.filterText ?? e.filterText,
|
|
64
|
-
state: "idle",
|
|
65
|
-
items: [
|
|
66
|
-
...t.items ?? []
|
|
67
|
-
],
|
|
68
|
-
selectedKeys: r === "all" ? "all" : new Set(r),
|
|
69
|
-
sortDescriptor: t.sortDescriptor ?? e.sortDescriptor,
|
|
70
|
-
abortController: void 0,
|
|
71
|
-
cursor: t.cursor
|
|
72
|
-
});
|
|
73
|
-
case "error":
|
|
74
|
-
return t.abortController !== e.abortController ? e : {
|
|
75
|
-
...e,
|
|
76
|
-
state: "error",
|
|
77
|
-
error: t.error,
|
|
78
|
-
abortController: void 0
|
|
79
|
-
};
|
|
80
|
-
case "loading":
|
|
81
|
-
case "loadingMore":
|
|
82
|
-
case "sorting":
|
|
83
|
-
case "filtering":
|
|
84
|
-
return e.abortController?.abort("aborting current load and starting new one"), {
|
|
85
|
-
...e,
|
|
86
|
-
filterText: t.filterText ?? e.filterText,
|
|
87
|
-
state: t.type,
|
|
88
|
-
// Reset items to an empty list if loading, but not when sorting.
|
|
89
|
-
items: t.type === "loading" ? [] : e.items,
|
|
90
|
-
abortController: t.abortController
|
|
91
|
-
};
|
|
92
|
-
case "update":
|
|
93
|
-
return {
|
|
94
|
-
...e,
|
|
95
|
-
...t.updater?.(e)
|
|
96
|
-
};
|
|
97
|
-
default:
|
|
98
|
-
throw new Error(`Invalid action "${t.type}" in state "${e.state}"`);
|
|
99
|
-
}
|
|
100
|
-
case "loadingMore":
|
|
101
|
-
switch (t.type) {
|
|
102
|
-
case "success":
|
|
103
|
-
return r = e.selectedKeys === "all" || t.selectedKeys === "all" ? "all" : /* @__PURE__ */ new Set([
|
|
104
|
-
...e.selectedKeys,
|
|
105
|
-
...t.selectedKeys ?? []
|
|
106
|
-
]), {
|
|
107
|
-
...e,
|
|
108
|
-
state: "idle",
|
|
109
|
-
items: [
|
|
110
|
-
...e.items,
|
|
111
|
-
...t.items ?? []
|
|
112
|
-
],
|
|
113
|
-
selectedKeys: r,
|
|
114
|
-
sortDescriptor: t.sortDescriptor ?? e.sortDescriptor,
|
|
115
|
-
abortController: void 0,
|
|
116
|
-
cursor: t.cursor
|
|
117
|
-
};
|
|
118
|
-
case "error":
|
|
119
|
-
return t.abortController !== e.abortController ? e : {
|
|
120
|
-
...e,
|
|
121
|
-
state: "error",
|
|
122
|
-
error: t.error
|
|
123
|
-
};
|
|
124
|
-
case "loading":
|
|
125
|
-
case "sorting":
|
|
126
|
-
case "filtering":
|
|
127
|
-
return e.abortController?.abort(), {
|
|
128
|
-
...e,
|
|
129
|
-
filterText: t.filterText ?? e.filterText,
|
|
130
|
-
state: t.type,
|
|
131
|
-
// Reset items to an empty list if loading, but not when sorting.
|
|
132
|
-
items: t.type === "loading" ? [] : e.items,
|
|
133
|
-
abortController: t.abortController
|
|
134
|
-
};
|
|
135
|
-
case "loadingMore":
|
|
136
|
-
return t.abortController?.abort(), e;
|
|
137
|
-
case "update":
|
|
138
|
-
return {
|
|
139
|
-
...e,
|
|
140
|
-
...t.updater?.(e)
|
|
141
|
-
};
|
|
142
|
-
default:
|
|
143
|
-
throw new Error(`Invalid action "${t.type}" in state "${e.state}"`);
|
|
144
|
-
}
|
|
145
|
-
default:
|
|
146
|
-
throw new Error(`Invalid state "${e.state}"`);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function Yt(e) {
|
|
150
|
-
const { load: t, sort: r, initialSelectedKeys: n, initialSortDescriptor: o, getKey: l = (d) => d.id || d.key, initialFilterText: u = "" } = e;
|
|
151
|
-
let [i, a] = wt(Xt, {
|
|
152
|
-
state: "idle",
|
|
153
|
-
error: void 0,
|
|
154
|
-
items: [],
|
|
155
|
-
selectedKeys: n === "all" ? "all" : new Set(n),
|
|
156
|
-
sortDescriptor: o,
|
|
157
|
-
filterText: u
|
|
158
|
-
});
|
|
159
|
-
const y = async (d, I) => {
|
|
160
|
-
let p = new AbortController();
|
|
161
|
-
try {
|
|
162
|
-
a({
|
|
163
|
-
...d,
|
|
164
|
-
abortController: p
|
|
165
|
-
});
|
|
166
|
-
let B = d.filterText ?? i.filterText, D = await I({
|
|
167
|
-
items: i.items.slice(),
|
|
168
|
-
selectedKeys: i.selectedKeys,
|
|
169
|
-
sortDescriptor: d.sortDescriptor ?? i.sortDescriptor,
|
|
170
|
-
signal: p.signal,
|
|
171
|
-
cursor: d.type === "loadingMore" ? i.cursor : void 0,
|
|
172
|
-
filterText: B,
|
|
173
|
-
loadingState: i.state
|
|
174
|
-
}), A = D.filterText ?? B;
|
|
175
|
-
a({
|
|
176
|
-
type: "success",
|
|
177
|
-
...D,
|
|
178
|
-
abortController: p
|
|
179
|
-
}), A && A !== B && !p.signal.aborted && y({
|
|
180
|
-
type: "filtering",
|
|
181
|
-
filterText: A
|
|
182
|
-
}, t);
|
|
183
|
-
} catch (B) {
|
|
184
|
-
a({
|
|
185
|
-
type: "error",
|
|
186
|
-
error: B,
|
|
187
|
-
abortController: p
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
let h = $(!1);
|
|
192
|
-
return Y(() => {
|
|
193
|
-
h.current || (y({
|
|
194
|
-
type: "loading"
|
|
195
|
-
}, t), h.current = !0);
|
|
196
|
-
}, []), {
|
|
197
|
-
items: i.items,
|
|
198
|
-
selectedKeys: i.selectedKeys,
|
|
199
|
-
sortDescriptor: i.sortDescriptor,
|
|
200
|
-
isLoading: i.state === "loading" || i.state === "loadingMore" || i.state === "sorting" || i.state === "filtering",
|
|
201
|
-
loadingState: i.state,
|
|
202
|
-
error: i.error,
|
|
203
|
-
filterText: i.filterText,
|
|
204
|
-
getItem(d) {
|
|
205
|
-
return i.items.find((I) => l(I) === d);
|
|
206
|
-
},
|
|
207
|
-
reload() {
|
|
208
|
-
y({
|
|
209
|
-
type: "loading"
|
|
210
|
-
}, t);
|
|
211
|
-
},
|
|
212
|
-
loadMore() {
|
|
213
|
-
i.state === "loading" || i.state === "loadingMore" || i.state === "filtering" || i.cursor == null || y({
|
|
214
|
-
type: "loadingMore"
|
|
215
|
-
}, t);
|
|
216
|
-
},
|
|
217
|
-
sort(d) {
|
|
218
|
-
y({
|
|
219
|
-
type: "sorting",
|
|
220
|
-
sortDescriptor: d
|
|
221
|
-
}, r || t);
|
|
222
|
-
},
|
|
223
|
-
...kt({
|
|
224
|
-
...e,
|
|
225
|
-
getKey: l,
|
|
226
|
-
cursor: i.cursor
|
|
227
|
-
}, (d) => {
|
|
228
|
-
a({
|
|
229
|
-
type: "update",
|
|
230
|
-
updater: d
|
|
231
|
-
});
|
|
232
|
-
}),
|
|
233
|
-
setFilterText(d) {
|
|
234
|
-
y({
|
|
235
|
-
type: "filtering",
|
|
236
|
-
filterText: d
|
|
237
|
-
}, t);
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
function Zt(e, t, r, n) {
|
|
242
|
-
var o = this, l = $(null), u = $(0), i = $(0), a = $(null), y = $([]), h = $(), d = $(), I = $(e), p = $(!0), B = $(), D = $();
|
|
243
|
-
I.current = e;
|
|
244
|
-
var A = typeof window < "u", S = !t && t !== 0 && A;
|
|
245
|
-
if (typeof e != "function") throw new TypeError("Expected a function");
|
|
246
|
-
t = +t || 0;
|
|
247
|
-
var N = !!(r = r || {}).leading, F = !("trailing" in r) || !!r.trailing, U = !!r.flushOnExit && F, J = "maxWait" in r, j = "debounceOnServer" in r && !!r.debounceOnServer, Q = J ? Math.max(+r.maxWait || 0, t) : null, le = ee(function() {
|
|
248
|
-
var R = function(b) {
|
|
249
|
-
var M = y.current, P = h.current;
|
|
250
|
-
return y.current = h.current = null, u.current = b, i.current = i.current || b, d.current = I.current.apply(P, M);
|
|
251
|
-
}, X = function(b, M) {
|
|
252
|
-
S && cancelAnimationFrame(a.current), a.current = S ? requestAnimationFrame(b) : setTimeout(b, M);
|
|
253
|
-
}, ie = function(b) {
|
|
254
|
-
if (!p.current) return !1;
|
|
255
|
-
var M = b - l.current;
|
|
256
|
-
return !l.current || M >= t || M < 0 || J && b - u.current >= Q;
|
|
257
|
-
}, ce = function(b) {
|
|
258
|
-
return a.current = null, F && y.current ? R(b) : (y.current = h.current = null, d.current);
|
|
259
|
-
}, K = function b() {
|
|
260
|
-
var M = Date.now();
|
|
261
|
-
if (N && i.current === u.current && ge(), ie(M)) return ce(M);
|
|
262
|
-
if (p.current) {
|
|
263
|
-
var P = t - (M - l.current), H = J ? Math.min(P, Q - (M - u.current)) : P;
|
|
264
|
-
X(b, H);
|
|
265
|
-
}
|
|
266
|
-
}, ge = function() {
|
|
267
|
-
}, te = function() {
|
|
268
|
-
if (A || j) {
|
|
269
|
-
var b, M = Date.now(), P = ie(M);
|
|
270
|
-
if (y.current = [].slice.call(arguments), h.current = o, l.current = M, U && !B.current && (B.current = function() {
|
|
271
|
-
var H;
|
|
272
|
-
((H = global.document) == null ? void 0 : H.visibilityState) === "hidden" && D.current.flush();
|
|
273
|
-
}, (b = global.document) == null || b.addEventListener == null || b.addEventListener("visibilitychange", B.current)), P) {
|
|
274
|
-
if (!a.current && p.current) return u.current = l.current, X(K, t), N ? R(l.current) : d.current;
|
|
275
|
-
if (J) return X(K, t), R(l.current);
|
|
276
|
-
}
|
|
277
|
-
return a.current || X(K, t), d.current;
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
return te.cancel = function() {
|
|
281
|
-
var b = a.current;
|
|
282
|
-
b && (S ? cancelAnimationFrame(a.current) : clearTimeout(a.current)), u.current = 0, y.current = l.current = h.current = a.current = null;
|
|
283
|
-
}, te.isPending = function() {
|
|
284
|
-
return !!a.current;
|
|
285
|
-
}, te.flush = function() {
|
|
286
|
-
return a.current ? ce(Date.now()) : d.current;
|
|
287
|
-
}, te;
|
|
288
|
-
}, [N, J, t, Q, F, U, S, A, j, n]);
|
|
289
|
-
return D.current = le, Y(function() {
|
|
290
|
-
return p.current = !0, function() {
|
|
291
|
-
var R;
|
|
292
|
-
U && D.current.flush(), B.current && ((R = global.document) == null || R.removeEventListener == null || R.removeEventListener("visibilitychange", B.current), B.current = null), p.current = !1;
|
|
293
|
-
};
|
|
294
|
-
}, [U]), le;
|
|
295
|
-
}
|
|
296
|
-
const { withProvider: er, withContext: _ } = /* @__PURE__ */ Vt({
|
|
297
|
-
key: "nimbusCombobox"
|
|
298
|
-
}), tr = /* @__PURE__ */ er("div", "root"), rr = /* @__PURE__ */ _("div", "trigger"), or = /* @__PURE__ */ _("div", "leadingElement"), nr = /* @__PURE__ */ _("div", "content"), sr = /* @__PURE__ */ _("div", "tagGroup"), lr = /* @__PURE__ */ _("div", "input"), ir = /* @__PURE__ */ _("div", "popover"), cr = /* @__PURE__ */ _("div", "listBox"), ar = /* @__PURE__ */ _("div", "section"), ur = /* @__PURE__ */ _("div", "option"), fr = /* @__PURE__ */ _("div", "optionIndicator"), dr = /* @__PURE__ */ _("div", "optionContent"), mr = {
|
|
299
|
-
clearSelection: "Clear selection",
|
|
300
|
-
options: "Options menu",
|
|
301
|
-
selectedValues: "Selected values",
|
|
302
|
-
toggleOptions: "Toggle options"
|
|
303
|
-
}, pr = {
|
|
304
|
-
clearSelection: "Auswahl löschen",
|
|
305
|
-
options: "Optionsmenü",
|
|
306
|
-
selectedValues: "Ausgewählte Werte",
|
|
307
|
-
toggleOptions: "Optionen anzeigen/ verbergen"
|
|
308
|
-
}, gr = {
|
|
309
|
-
clearSelection: "Borrar selección",
|
|
310
|
-
options: "Menú de opciones",
|
|
311
|
-
selectedValues: "Valores seleccionados",
|
|
312
|
-
toggleOptions: "Opciones de conmutación"
|
|
313
|
-
}, yr = {
|
|
314
|
-
clearSelection: "Effacer la sélection",
|
|
315
|
-
options: "Menu d'options",
|
|
316
|
-
selectedValues: "Valeurs sélectionnées",
|
|
317
|
-
toggleOptions: "Basculer les options"
|
|
318
|
-
}, br = {
|
|
319
|
-
clearSelection: "Limpar seleção",
|
|
320
|
-
options: "Menu de opções",
|
|
321
|
-
selectedValues: "Selecionar valores",
|
|
322
|
-
toggleOptions: "Alternar opções"
|
|
323
|
-
}, hr = {
|
|
324
|
-
en: /* @__PURE__ */ Ce(mr),
|
|
325
|
-
de: /* @__PURE__ */ Ce(pr),
|
|
326
|
-
es: /* @__PURE__ */ Ce(gr),
|
|
327
|
-
"fr-FR": /* @__PURE__ */ Ce(yr),
|
|
328
|
-
"pt-BR": /* @__PURE__ */ Ce(br)
|
|
329
|
-
};
|
|
330
|
-
function Ze(e) {
|
|
331
|
-
if (typeof e == "string" || typeof e == "number")
|
|
332
|
-
return e;
|
|
333
|
-
if ("id" in e)
|
|
334
|
-
return e.id;
|
|
335
|
-
throw new Error(
|
|
336
|
-
"ComboBox - Item must have an 'id' property or provide getKey function"
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
function xr(e) {
|
|
340
|
-
if (typeof e == "string")
|
|
341
|
-
return e;
|
|
342
|
-
if ("name" in e)
|
|
343
|
-
return String(e.name);
|
|
344
|
-
if ("label" in e)
|
|
345
|
-
return String(e.label);
|
|
346
|
-
throw new Error(
|
|
347
|
-
"ComboBox - Item must have 'name' or 'label' property, or provide a getTextValue function"
|
|
348
|
-
);
|
|
349
|
-
}
|
|
350
|
-
function Cr(e) {
|
|
351
|
-
return {
|
|
352
|
-
id: e,
|
|
353
|
-
name: e
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
const Sr = (e) => e ? e instanceof Set ? e : new Set(Array.isArray(e) ? e : [e]) : /* @__PURE__ */ new Set(), vr = (e) => Array.from(e), De = /* @__PURE__ */ Qe(null), Te = () => {
|
|
357
|
-
const e = Re(De);
|
|
358
|
-
if (!e)
|
|
359
|
-
throw new Error(
|
|
360
|
-
"Nimbus - ComboBox components must be used within ComboBox.Root"
|
|
361
|
-
);
|
|
362
|
-
return e;
|
|
363
|
-
}, et = (e) => {
|
|
364
|
-
const {
|
|
365
|
-
name: t,
|
|
366
|
-
form: r,
|
|
367
|
-
selectedKeys: n,
|
|
368
|
-
selectionMode: o,
|
|
369
|
-
formValue: l,
|
|
370
|
-
allowsCustomOptions: u,
|
|
371
|
-
collection: i,
|
|
372
|
-
inputValue: a
|
|
373
|
-
} = e, y = ee(() => {
|
|
374
|
-
if (o === "single") {
|
|
375
|
-
const h = Array.from(n)[0];
|
|
376
|
-
return h ? l === "text" || u ? Array.from(i).find(
|
|
377
|
-
(I) => I.key === h
|
|
378
|
-
)?.textValue || a || "" : String(h) : "";
|
|
379
|
-
} else {
|
|
380
|
-
const h = Array.from(n);
|
|
381
|
-
return l === "text" || u ? h.map((d) => Array.from(i).find(
|
|
382
|
-
(p) => p.key === d
|
|
383
|
-
)?.textValue || "").filter(Boolean).join(",") : h.join(",");
|
|
384
|
-
}
|
|
385
|
-
}, [
|
|
386
|
-
o,
|
|
387
|
-
n,
|
|
388
|
-
l,
|
|
389
|
-
u,
|
|
390
|
-
i,
|
|
391
|
-
a
|
|
392
|
-
]);
|
|
393
|
-
return t ? /* @__PURE__ */ g(
|
|
394
|
-
"input",
|
|
395
|
-
{
|
|
396
|
-
type: "hidden",
|
|
397
|
-
name: t,
|
|
398
|
-
form: typeof r == "string" ? r : void 0,
|
|
399
|
-
value: y
|
|
400
|
-
}
|
|
401
|
-
) : null;
|
|
402
|
-
};
|
|
403
|
-
et.displayName = "ComboBoxHiddenInput";
|
|
404
|
-
function tt(e) {
|
|
405
|
-
let t;
|
|
406
|
-
[e, t] = qt(e, null, Qt);
|
|
407
|
-
const {
|
|
408
|
-
selectionMode: r = "single",
|
|
409
|
-
size: n = "md",
|
|
410
|
-
getKey: o = Ze,
|
|
411
|
-
getTextValue: l = xr,
|
|
412
|
-
children: u,
|
|
413
|
-
leadingElement: i,
|
|
414
|
-
inputValue: a,
|
|
415
|
-
onInputChange: y,
|
|
416
|
-
isLoading: h,
|
|
417
|
-
allowsEmptyMenu: d,
|
|
418
|
-
renderEmptyState: I,
|
|
419
|
-
async: p,
|
|
420
|
-
filter: B,
|
|
421
|
-
allowsCustomOptions: D = !1,
|
|
422
|
-
isDisabled: A = !1,
|
|
423
|
-
isInvalid: S = !1,
|
|
424
|
-
isRequired: N = !1,
|
|
425
|
-
isReadOnly: F = !1
|
|
426
|
-
} = e, U = Et({ key: "nimbusCombobox" }), [J, j] = U.splitVariantProps(e), [Q, le] = pe(j), R = $(null), X = $(null), [ie, ce] = Z([]), K = Yt({
|
|
427
|
-
getKey: o,
|
|
428
|
-
async load({ signal: w, filterText: q }) {
|
|
429
|
-
if (!p) return { items: [] };
|
|
430
|
-
const oe = p.minSearchLength ?? 0;
|
|
431
|
-
if (!q || q.length < oe)
|
|
432
|
-
return { items: [] };
|
|
433
|
-
try {
|
|
434
|
-
return { items: await p.load(q, w) };
|
|
435
|
-
} catch (ue) {
|
|
436
|
-
if (ue.name === "AbortError")
|
|
437
|
-
throw ue;
|
|
438
|
-
const x = ue;
|
|
439
|
-
return p.onError?.(x), { items: [] };
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}), [ge, te] = Z(a), [b, M] = Z(!1), [P, H] = Z([]), Ae = p?.debounce ?? 300, ve = Zt((w) => {
|
|
443
|
-
M(!1), K.setFilterText(w);
|
|
444
|
-
}, Ae), we = L(
|
|
445
|
-
(w) => {
|
|
446
|
-
te(w), M(!0), ve(w);
|
|
447
|
-
},
|
|
448
|
-
[ve]
|
|
449
|
-
), k = p ? ge : a, $e = p ? we : y, G = p ? b || K.loadingState === "loading" || K.loadingState === "loadingMore" || K.loadingState === "filtering" : h, ye = p || D ? !0 : d, Ke = L(() => G ? k?.length ? `loading results for "${k}"` : "loading results" : k?.length && p?.minSearchLength && k.length >= p.minSearchLength ? `no results for "${k}"` : p?.minSearchLength ? `enter at least ${p?.minSearchLength} characters` : "type to search", [p?.minSearchLength, G, k]), Ie = L(() => G ? k?.length ? `loading results for "${k}"` : "loading results" : 'hit "enter" to create an option', [G, k]), V = (D ? Ie : p ? Ke : void 0) ?? I, re = ee(() => {
|
|
450
|
-
const w = p ? Array.from(K.items) : e.items, q = w ? Array.from(w) : [], oe = new Set(q.map((T) => o(T)));
|
|
451
|
-
let x = [...ie.filter(
|
|
452
|
-
(T) => !oe.has(o(T))
|
|
453
|
-
), ...q];
|
|
454
|
-
if (p && r === "multiple" && P.length > 0) {
|
|
455
|
-
const T = new Set(x.map((he) => o(he)));
|
|
456
|
-
x = [...P.filter(
|
|
457
|
-
(he) => !T.has(o(he))
|
|
458
|
-
), ...x];
|
|
459
|
-
}
|
|
460
|
-
return x;
|
|
461
|
-
}, [
|
|
462
|
-
p,
|
|
463
|
-
K.items,
|
|
464
|
-
e.items,
|
|
465
|
-
ie,
|
|
466
|
-
P,
|
|
467
|
-
r,
|
|
468
|
-
o
|
|
469
|
-
]), ae = ee(
|
|
470
|
-
() => ({
|
|
471
|
-
selectionMode: r,
|
|
472
|
-
size: n,
|
|
473
|
-
getKey: o,
|
|
474
|
-
getTextValue: l,
|
|
475
|
-
leadingElement: i,
|
|
476
|
-
triggerRef: R,
|
|
477
|
-
inputRef: X,
|
|
478
|
-
isLoading: G,
|
|
479
|
-
isDisabled: A,
|
|
480
|
-
isRequired: N,
|
|
481
|
-
isInvalid: S,
|
|
482
|
-
isReadOnly: F
|
|
483
|
-
}),
|
|
484
|
-
[
|
|
485
|
-
r,
|
|
486
|
-
o,
|
|
487
|
-
l,
|
|
488
|
-
i,
|
|
489
|
-
R,
|
|
490
|
-
X,
|
|
491
|
-
G,
|
|
492
|
-
n,
|
|
493
|
-
A,
|
|
494
|
-
N,
|
|
495
|
-
S,
|
|
496
|
-
F
|
|
497
|
-
]
|
|
498
|
-
), be = ee(() => {
|
|
499
|
-
if (re)
|
|
500
|
-
return Array.from(re).map((w) => {
|
|
501
|
-
const q = "id" in w, oe = "textValue" in w;
|
|
502
|
-
return q && oe ? w : {
|
|
503
|
-
...w,
|
|
504
|
-
...q ? {} : { id: o(w) },
|
|
505
|
-
...oe ? {} : { textValue: l(w) }
|
|
506
|
-
};
|
|
507
|
-
});
|
|
508
|
-
}, [re, o, l]), Fe = ee(
|
|
509
|
-
() => /* @__PURE__ */ g(
|
|
510
|
-
De.Provider,
|
|
511
|
-
{
|
|
512
|
-
value: ae,
|
|
513
|
-
children: /* @__PURE__ */ g(Xe.Provider, { value: { items: be }, children: typeof u == "function" ? u({
|
|
514
|
-
isOpen: !1,
|
|
515
|
-
isDisabled: A,
|
|
516
|
-
isInvalid: S,
|
|
517
|
-
isRequired: N,
|
|
518
|
-
isReadOnly: F,
|
|
519
|
-
defaultChildren: null
|
|
520
|
-
}) : u })
|
|
521
|
-
}
|
|
522
|
-
),
|
|
523
|
-
[
|
|
524
|
-
u,
|
|
525
|
-
A,
|
|
526
|
-
S,
|
|
527
|
-
F,
|
|
528
|
-
N,
|
|
529
|
-
be,
|
|
530
|
-
ae
|
|
531
|
-
]
|
|
532
|
-
);
|
|
533
|
-
return /* @__PURE__ */ g(
|
|
534
|
-
Ye,
|
|
535
|
-
{
|
|
536
|
-
values: [
|
|
537
|
-
[Le, {}],
|
|
538
|
-
[Me, {}],
|
|
539
|
-
[Pe, {}]
|
|
540
|
-
],
|
|
541
|
-
children: /* @__PURE__ */ g(
|
|
542
|
-
De.Provider,
|
|
543
|
-
{
|
|
544
|
-
value: ae,
|
|
545
|
-
children: /* @__PURE__ */ g(
|
|
546
|
-
tr,
|
|
547
|
-
{
|
|
548
|
-
ref: t,
|
|
549
|
-
...J,
|
|
550
|
-
...Q,
|
|
551
|
-
size: n,
|
|
552
|
-
"data-disabled": A,
|
|
553
|
-
"data-invalid": S,
|
|
554
|
-
"data-required": N,
|
|
555
|
-
"data-readonly": F,
|
|
556
|
-
"data-open": e.isOpen,
|
|
557
|
-
role: "group",
|
|
558
|
-
children: /* @__PURE__ */ g(Ft, { content: Fe, children: (w) => (
|
|
559
|
-
// Pass the built collection to ComboBoxRootInner which handles all behavior
|
|
560
|
-
/* @__PURE__ */ g(
|
|
561
|
-
wr,
|
|
562
|
-
{
|
|
563
|
-
...le,
|
|
564
|
-
size: n,
|
|
565
|
-
filter: B,
|
|
566
|
-
selectionMode: r,
|
|
567
|
-
inputValue: k,
|
|
568
|
-
onInputChange: $e,
|
|
569
|
-
getKey: o,
|
|
570
|
-
getTextValue: l,
|
|
571
|
-
allowsEmptyMenu: ye,
|
|
572
|
-
renderEmptyState: V,
|
|
573
|
-
isDisabled: A,
|
|
574
|
-
isRequired: N,
|
|
575
|
-
isInvalid: S,
|
|
576
|
-
isReadOnly: F,
|
|
577
|
-
collection: w,
|
|
578
|
-
allowsCustomOptions: D,
|
|
579
|
-
asyncConfig: p,
|
|
580
|
-
onAsyncSelectedItemsChange: p && r === "multiple" ? H : void 0,
|
|
581
|
-
onAddCustomItem: ce,
|
|
582
|
-
onAddAsyncSelectedItem: H
|
|
583
|
-
}
|
|
584
|
-
)
|
|
585
|
-
) })
|
|
586
|
-
}
|
|
587
|
-
)
|
|
588
|
-
}
|
|
589
|
-
)
|
|
590
|
-
}
|
|
591
|
-
);
|
|
592
|
-
}
|
|
593
|
-
tt.displayName = "ComboBox.Root";
|
|
594
|
-
const wr = (e) => {
|
|
595
|
-
const t = Jt(hr), {
|
|
596
|
-
selectionMode: r = "single",
|
|
597
|
-
items: n,
|
|
598
|
-
collection: o,
|
|
599
|
-
getKey: l = Ze,
|
|
600
|
-
children: u,
|
|
601
|
-
selectedKeys: i = [],
|
|
602
|
-
onSelectionChange: a,
|
|
603
|
-
disabledKeys: y,
|
|
604
|
-
inputValue: h = "",
|
|
605
|
-
onInputChange: d,
|
|
606
|
-
filter: I,
|
|
607
|
-
placeholder: p,
|
|
608
|
-
menuTrigger: B = "input",
|
|
609
|
-
shouldCloseOnBlur: D = !0,
|
|
610
|
-
shouldCloseOnSelect: A = !0,
|
|
611
|
-
isOpen: S,
|
|
612
|
-
defaultOpen: N = !1,
|
|
613
|
-
onOpenChange: F,
|
|
614
|
-
allowsEmptyMenu: U = !1,
|
|
615
|
-
renderEmptyState: J,
|
|
616
|
-
allowsCustomOptions: j = !1,
|
|
617
|
-
isValidNewOption: Q,
|
|
618
|
-
getNewOptionData: le = Cr,
|
|
619
|
-
onCreateOption: R,
|
|
620
|
-
"aria-label": X,
|
|
621
|
-
"aria-labelledby": ie,
|
|
622
|
-
"aria-describedby": ce,
|
|
623
|
-
isDisabled: K = !1,
|
|
624
|
-
isRequired: ge = !1,
|
|
625
|
-
isInvalid: te = !1,
|
|
626
|
-
isReadOnly: b = !1,
|
|
627
|
-
shouldFocusWrap: M = !0,
|
|
628
|
-
autoFocus: P = !1,
|
|
629
|
-
name: H,
|
|
630
|
-
formValue: Ae,
|
|
631
|
-
validationBehavior: ve = "aria",
|
|
632
|
-
form: we,
|
|
633
|
-
validate: k,
|
|
634
|
-
isLoading: $e,
|
|
635
|
-
asyncConfig: G,
|
|
636
|
-
onAsyncSelectedItemsChange: ye,
|
|
637
|
-
onAddCustomItem: Ke,
|
|
638
|
-
onAddAsyncSelectedItem: Ie
|
|
639
|
-
} = e, { triggerRef: Be, inputRef: V } = Te(), re = Je(), ae = Je(), be = $(null), Fe = $(null), w = ee(
|
|
640
|
-
() => Sr(i),
|
|
641
|
-
[i]
|
|
642
|
-
), q = !!a, [oe, ue] = Z(
|
|
643
|
-
w
|
|
644
|
-
), x = q ? w : oe, T = d !== void 0, ze = () => {
|
|
645
|
-
if (h) return h;
|
|
646
|
-
if (T || r !== "single") return "";
|
|
647
|
-
const s = Array.from(x);
|
|
648
|
-
if (s.length === 0) return "";
|
|
649
|
-
const c = s[0];
|
|
650
|
-
return o.getItem(c)?.textValue ?? "";
|
|
651
|
-
}, [he, fe] = Z(
|
|
652
|
-
ze
|
|
653
|
-
), E = T ? h : he, ne = $(E), [ut, Ne] = Z(N), C = S ?? ut, [Oe, xe] = Z(
|
|
654
|
-
null
|
|
655
|
-
), O = L(
|
|
656
|
-
(s) => {
|
|
657
|
-
S === void 0 && Ne(s), F?.(s);
|
|
658
|
-
},
|
|
659
|
-
[S, F]
|
|
660
|
-
), ft = ee(() => {
|
|
661
|
-
if (E.trim() === "")
|
|
662
|
-
return o;
|
|
663
|
-
if (r === "single") {
|
|
664
|
-
const c = Array.from(x);
|
|
665
|
-
if (c.length > 0) {
|
|
666
|
-
const f = c[0];
|
|
667
|
-
if (o.getItem(f)?.textValue === E)
|
|
668
|
-
return o;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
if (I) {
|
|
672
|
-
const c = Array.from(o), f = Array.from(I(c, E)), v = new Set(f.map((se) => se.key));
|
|
673
|
-
return o.filter?.((se, Ve) => v.has(Ve.key)) ?? o;
|
|
674
|
-
}
|
|
675
|
-
const s = E.toLowerCase();
|
|
676
|
-
return o.filter?.((c) => c.toLowerCase().includes(s)) ?? o;
|
|
677
|
-
}, [o, E, I, r, x]), dt = ee(
|
|
678
|
-
() => r === "multiple" ? Array.from(x).map((s) => o.getItem(s)?.value).filter((s) => s !== void 0) : [],
|
|
679
|
-
[r, x, o]
|
|
680
|
-
), [mt, pt] = Z(null), gt = L(() => {
|
|
681
|
-
const s = S === void 0 ? !C : !S;
|
|
682
|
-
S === void 0 ? Ne((c) => !c) : F?.(!S), s && (V.current?.focus(), xe("first"));
|
|
683
|
-
}, [S, C, F, V]), yt = L(
|
|
684
|
-
(s) => {
|
|
685
|
-
T || fe(s), d?.(s), B === "input" && s !== ne.current && O(!0), ne.current = s;
|
|
686
|
-
},
|
|
687
|
-
[T, d, B, O]
|
|
688
|
-
), z = L(
|
|
689
|
-
(s, c) => {
|
|
690
|
-
let f = s === "all" ? new Set(Array.from(o).map((W) => W.key)) : s;
|
|
691
|
-
const v = c ?? x, se = f.size > 0 && Array.from(f).every((W) => v.has(W)) && f.size < v.size;
|
|
692
|
-
if (r === "multiple" && f.size === 1 && !se) {
|
|
693
|
-
const W = Array.from(f)[0], me = v.has(W), de = new Set(v);
|
|
694
|
-
me ? de.delete(W) : de.add(W), f = de;
|
|
695
|
-
}
|
|
696
|
-
const Ve = vr(f);
|
|
697
|
-
if (a ? a(Ve) : ue(f), G && r === "multiple" && ye) {
|
|
698
|
-
const W = Array.from(f).map((me) => o.getItem(me)?.value).filter((me) => me !== void 0);
|
|
699
|
-
ye(W);
|
|
700
|
-
}
|
|
701
|
-
if (r === "single") {
|
|
702
|
-
const W = Array.from(f)[0];
|
|
703
|
-
if (W !== null) {
|
|
704
|
-
const de = o.getItem(W)?.textValue ?? "";
|
|
705
|
-
T || (fe(de), ne.current = de), d?.(de);
|
|
706
|
-
}
|
|
707
|
-
A && O(!1);
|
|
708
|
-
}
|
|
709
|
-
},
|
|
710
|
-
[
|
|
711
|
-
o,
|
|
712
|
-
r,
|
|
713
|
-
x,
|
|
714
|
-
a,
|
|
715
|
-
d,
|
|
716
|
-
A,
|
|
717
|
-
O,
|
|
718
|
-
T,
|
|
719
|
-
G,
|
|
720
|
-
ye
|
|
721
|
-
]
|
|
722
|
-
), m = Wt({
|
|
723
|
-
selectionMode: r,
|
|
724
|
-
collection: ft,
|
|
725
|
-
selectedKeys: x,
|
|
726
|
-
onSelectionChange: z,
|
|
727
|
-
disabledKeys: y
|
|
728
|
-
}), bt = L(() => {
|
|
729
|
-
z(/* @__PURE__ */ new Set()), T || (fe(""), ne.current = ""), d?.(""), O(!0), requestAnimationFrame(() => {
|
|
730
|
-
V.current?.focus();
|
|
731
|
-
});
|
|
732
|
-
}, [
|
|
733
|
-
z,
|
|
734
|
-
T,
|
|
735
|
-
d,
|
|
736
|
-
O,
|
|
737
|
-
V
|
|
738
|
-
]), ke = L(
|
|
739
|
-
(s) => {
|
|
740
|
-
Ke?.((v) => [...v, s]), G && r === "multiple" && Ie?.((v) => [...v, s]);
|
|
741
|
-
const c = l(s), f = x;
|
|
742
|
-
if (r === "single")
|
|
743
|
-
z(/* @__PURE__ */ new Set([c]), f);
|
|
744
|
-
else {
|
|
745
|
-
const v = new Set(f);
|
|
746
|
-
v.add(c), z(v, f);
|
|
747
|
-
}
|
|
748
|
-
},
|
|
749
|
-
[
|
|
750
|
-
Ke,
|
|
751
|
-
G,
|
|
752
|
-
r,
|
|
753
|
-
Ie,
|
|
754
|
-
l,
|
|
755
|
-
x,
|
|
756
|
-
z
|
|
757
|
-
]
|
|
758
|
-
), We = L(() => {
|
|
759
|
-
if (!j) return !1;
|
|
760
|
-
const s = E.trim();
|
|
761
|
-
if (!s || Array.from(o).some(
|
|
762
|
-
(v) => v.textValue?.toLowerCase() === s.toLowerCase()
|
|
763
|
-
) || Q && !Q(s))
|
|
764
|
-
return !1;
|
|
765
|
-
const f = le(s);
|
|
766
|
-
return ke(f), r === "multiple" ? (T || (fe(""), ne.current = ""), d?.("")) : (T || (fe(s), ne.current = s), d?.(s)), R?.(f), !0;
|
|
767
|
-
}, [
|
|
768
|
-
j,
|
|
769
|
-
le,
|
|
770
|
-
Q,
|
|
771
|
-
E,
|
|
772
|
-
o,
|
|
773
|
-
r,
|
|
774
|
-
d,
|
|
775
|
-
R,
|
|
776
|
-
ke,
|
|
777
|
-
T,
|
|
778
|
-
fe,
|
|
779
|
-
ne
|
|
780
|
-
]), ht = L(
|
|
781
|
-
(s) => {
|
|
782
|
-
if (K || b) return;
|
|
783
|
-
const c = x, f = new Set(c);
|
|
784
|
-
s.forEach((v) => f.delete(v)), z(f, c), f.size === 0 && V.current?.focus();
|
|
785
|
-
},
|
|
786
|
-
[
|
|
787
|
-
x,
|
|
788
|
-
z,
|
|
789
|
-
K,
|
|
790
|
-
b,
|
|
791
|
-
V
|
|
792
|
-
]
|
|
793
|
-
), xt = L(
|
|
794
|
-
(s) => {
|
|
795
|
-
switch (s.key) {
|
|
796
|
-
case "ArrowDown":
|
|
797
|
-
if (s.preventDefault(), !C)
|
|
798
|
-
O(!0), xe("first");
|
|
799
|
-
else {
|
|
800
|
-
const c = m.selectionManager.focusedKey, f = c ? m.collection.getKeyAfter(c) : m.collection.getFirstKey();
|
|
801
|
-
m.selectionManager.setFocusedKey(
|
|
802
|
-
f ?? m.collection.getFirstKey()
|
|
803
|
-
);
|
|
804
|
-
}
|
|
805
|
-
break;
|
|
806
|
-
case "ArrowUp":
|
|
807
|
-
if (s.preventDefault(), !C)
|
|
808
|
-
O(!0), xe("last");
|
|
809
|
-
else {
|
|
810
|
-
const c = m.selectionManager.focusedKey, f = c ? m.collection.getKeyBefore(c) : m.collection.getLastKey();
|
|
811
|
-
m.selectionManager.setFocusedKey(
|
|
812
|
-
f ?? m.collection.getLastKey()
|
|
813
|
-
);
|
|
814
|
-
}
|
|
815
|
-
break;
|
|
816
|
-
case "Enter":
|
|
817
|
-
if (C && m.selectionManager.focusedKey) {
|
|
818
|
-
s.preventDefault();
|
|
819
|
-
const c = m.selectionManager.focusedKey;
|
|
820
|
-
if (r === "multiple") {
|
|
821
|
-
const f = new Set(x);
|
|
822
|
-
f.has(c) ? f.delete(c) : f.add(c), z(f);
|
|
823
|
-
} else
|
|
824
|
-
z(/* @__PURE__ */ new Set([c])), m.selectionManager.setFocusedKey(null);
|
|
825
|
-
} else C && !m.selectionManager.focusedKey && j && We() && s.preventDefault();
|
|
826
|
-
break;
|
|
827
|
-
case "Escape":
|
|
828
|
-
C && (s.preventDefault(), O(!1), m.selectionManager.setFocusedKey(null));
|
|
829
|
-
break;
|
|
830
|
-
case "Home":
|
|
831
|
-
if (C) {
|
|
832
|
-
s.preventDefault();
|
|
833
|
-
const c = m.collection.getFirstKey();
|
|
834
|
-
m.selectionManager.setFocusedKey(c);
|
|
835
|
-
}
|
|
836
|
-
break;
|
|
837
|
-
case "End":
|
|
838
|
-
if (C) {
|
|
839
|
-
s.preventDefault();
|
|
840
|
-
const c = m.collection.getLastKey();
|
|
841
|
-
m.selectionManager.setFocusedKey(c);
|
|
842
|
-
}
|
|
843
|
-
break;
|
|
844
|
-
case "Backspace":
|
|
845
|
-
if (E === "") {
|
|
846
|
-
const c = Array.from(x);
|
|
847
|
-
if (c.length > 0)
|
|
848
|
-
if (s.preventDefault(), r === "single")
|
|
849
|
-
z(/* @__PURE__ */ new Set());
|
|
850
|
-
else {
|
|
851
|
-
const f = new Set(c);
|
|
852
|
-
f.delete(c[c.length - 1]), z(f);
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
break;
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
|
-
[
|
|
859
|
-
C,
|
|
860
|
-
m.selectionManager,
|
|
861
|
-
m.collection,
|
|
862
|
-
z,
|
|
863
|
-
O,
|
|
864
|
-
xe,
|
|
865
|
-
r,
|
|
866
|
-
E,
|
|
867
|
-
x,
|
|
868
|
-
j,
|
|
869
|
-
We
|
|
870
|
-
]
|
|
871
|
-
), Ct = L(() => {
|
|
872
|
-
B === "focus" && !K && !b && O(!0), r === "single" && E && V.current && V.current.select();
|
|
873
|
-
}, [
|
|
874
|
-
B,
|
|
875
|
-
K,
|
|
876
|
-
b,
|
|
877
|
-
O,
|
|
878
|
-
r,
|
|
879
|
-
E,
|
|
880
|
-
V
|
|
881
|
-
]), St = L(
|
|
882
|
-
(s) => {
|
|
883
|
-
if (!D) return;
|
|
884
|
-
const c = s.currentTarget;
|
|
885
|
-
setTimeout(() => {
|
|
886
|
-
const f = document.activeElement;
|
|
887
|
-
c.contains(f) || O(!1);
|
|
888
|
-
}, 150);
|
|
889
|
-
},
|
|
890
|
-
[D, O]
|
|
891
|
-
), Ge = $(null), qe = $(!1);
|
|
892
|
-
Y(() => {
|
|
893
|
-
P && V.current && !K && V.current.focus();
|
|
894
|
-
}, [P, K, V]);
|
|
895
|
-
const _e = $(C);
|
|
896
|
-
Y(() => {
|
|
897
|
-
S === void 0 && _e.current !== C && (_e.current = C, F?.(C));
|
|
898
|
-
}, [C, S, F]), Y(() => {
|
|
899
|
-
if (r !== "single") return;
|
|
900
|
-
const s = Array.from(m.selectionManager.selectedKeys), c = s.length > 0 ? s[0] : null, f = c !== null ? m.collection.getItem(c) : null, v = f !== null;
|
|
901
|
-
if (c === Ge.current && (qe.current || c === null) || (Ge.current = c, qe.current = v, c !== null && !f))
|
|
902
|
-
return;
|
|
903
|
-
const se = f?.textValue ?? "";
|
|
904
|
-
T ? d?.(se) : (fe(se), ne.current = se);
|
|
905
|
-
}, [
|
|
906
|
-
r,
|
|
907
|
-
m.selectionManager.selectedKeys,
|
|
908
|
-
m.collection,
|
|
909
|
-
T,
|
|
910
|
-
d
|
|
911
|
-
]), Y(() => {
|
|
912
|
-
if (C && Oe) {
|
|
913
|
-
const s = Oe === "first" ? m.collection.getFirstKey() : m.collection.getLastKey();
|
|
914
|
-
m.selectionManager.setFocusedKey(s ?? null), xe(null);
|
|
915
|
-
}
|
|
916
|
-
}, [C, Oe, m.collection, m.selectionManager]), Y(() => {
|
|
917
|
-
C ? m.selectionManager.setFocused(!0) : (m.selectionManager.setFocused(!1), m.selectionManager.setFocusedKey(null));
|
|
918
|
-
}, [C, m.selectionManager]);
|
|
919
|
-
const je = $(!1);
|
|
920
|
-
m.collection.size > 0 && (je.current = !0), Y(() => {
|
|
921
|
-
if (!C || U || $e || !je.current) return;
|
|
922
|
-
m.collection.size > 0 || O(!1);
|
|
923
|
-
}, [
|
|
924
|
-
C,
|
|
925
|
-
U,
|
|
926
|
-
$e,
|
|
927
|
-
m.collection.size,
|
|
928
|
-
O,
|
|
929
|
-
E
|
|
930
|
-
]), Y(() => {
|
|
931
|
-
const s = Be.current;
|
|
932
|
-
if (!s) return;
|
|
933
|
-
const c = () => {
|
|
934
|
-
const v = s.offsetWidth;
|
|
935
|
-
pt(`${v}px`);
|
|
936
|
-
};
|
|
937
|
-
c();
|
|
938
|
-
const f = new ResizeObserver(c);
|
|
939
|
-
return f.observe(s), () => {
|
|
940
|
-
f.disconnect();
|
|
941
|
-
};
|
|
942
|
-
}, [Be]);
|
|
943
|
-
const vt = [
|
|
944
|
-
// InputContext: Props for ComboBox.Input component
|
|
945
|
-
// Configures the input field with ARIA attributes, event handlers, and validation
|
|
946
|
-
[
|
|
947
|
-
Me,
|
|
948
|
-
{
|
|
949
|
-
ref: V,
|
|
950
|
-
role: "combobox",
|
|
951
|
-
// ARIA role for autocomplete input
|
|
952
|
-
"aria-autocomplete": "list",
|
|
953
|
-
// Indicates suggestions are in a list
|
|
954
|
-
"aria-controls": r === "multiple" ? `${ae} ${re}` : re,
|
|
955
|
-
// Single-select: controls only listbox
|
|
956
|
-
"aria-expanded": C,
|
|
957
|
-
// Announces menu open/closed state
|
|
958
|
-
"aria-activedescendant": m.selectionManager.focusedKey ? `${re}-option-${m.selectionManager.focusedKey}` : void 0,
|
|
959
|
-
"aria-describedby": r === "multiple" ? `${ae} ${ce ?? ""}` : ce,
|
|
960
|
-
"aria-label": X,
|
|
961
|
-
"aria-labelledby": ie,
|
|
962
|
-
value: E,
|
|
963
|
-
onChange: (s) => yt(s.target.value),
|
|
964
|
-
onKeyDown: xt,
|
|
965
|
-
onFocus: Ct,
|
|
966
|
-
onBlur: St,
|
|
967
|
-
disabled: K,
|
|
968
|
-
readOnly: b,
|
|
969
|
-
required: ge,
|
|
970
|
-
"aria-invalid": te,
|
|
971
|
-
placeholder: p,
|
|
972
|
-
name: H,
|
|
973
|
-
form: we,
|
|
974
|
-
validationbehavior: ve,
|
|
975
|
-
validate: k
|
|
976
|
-
}
|
|
977
|
-
],
|
|
978
|
-
// TagGroupContext: Props for ComboBox.TagGroup component (multi-select only)
|
|
979
|
-
// Renders selected items as removable tags
|
|
980
|
-
[
|
|
981
|
-
Pe,
|
|
982
|
-
{
|
|
983
|
-
id: ae,
|
|
984
|
-
"aria-label": t.format("selectedValues"),
|
|
985
|
-
items: dt,
|
|
986
|
-
// Selected items to display as tags
|
|
987
|
-
onRemove: ht
|
|
988
|
-
// Handle tag removal
|
|
989
|
-
}
|
|
990
|
-
],
|
|
991
|
-
// ButtonContext: Props for toggle and clear buttons
|
|
992
|
-
// Uses "slots" pattern to configure multiple buttons via single context
|
|
993
|
-
[
|
|
994
|
-
Le,
|
|
995
|
-
{
|
|
996
|
-
slots: {
|
|
997
|
-
toggle: {
|
|
998
|
-
onPress: gt,
|
|
999
|
-
"aria-label": t.format("toggleOptions"),
|
|
1000
|
-
isDisabled: K || b,
|
|
1001
|
-
isPressed: C
|
|
1002
|
-
// Visual indicator that menu is open
|
|
1003
|
-
},
|
|
1004
|
-
clear: {
|
|
1005
|
-
onPress: bt,
|
|
1006
|
-
"aria-label": t.format("clearSelection"),
|
|
1007
|
-
style: x.size > 0 ? void 0 : { display: "none" },
|
|
1008
|
-
isDisabled: K || b || m.selectionManager.selectedKeys.size === 0
|
|
1009
|
-
// Disabled when nothing selected
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
],
|
|
1014
|
-
// PopoverContext: Props for ComboBox.Popover component
|
|
1015
|
-
// Controls menu positioning, portal rendering, and open/close behavior
|
|
1016
|
-
[
|
|
1017
|
-
Ht,
|
|
1018
|
-
{
|
|
1019
|
-
isOpen: C,
|
|
1020
|
-
// Allow React Aria to close the popover (e.g., on scroll, click outside)
|
|
1021
|
-
// but we still control opening via toggleOpen/setIsOpen
|
|
1022
|
-
onOpenChange: (s) => {
|
|
1023
|
-
s || O(!1);
|
|
1024
|
-
},
|
|
1025
|
-
ref: Fe,
|
|
1026
|
-
triggerRef: Be,
|
|
1027
|
-
// Popover positions relative to this element
|
|
1028
|
-
scrollRef: be,
|
|
1029
|
-
// Enables scroll-into-view for keyboard navigation
|
|
1030
|
-
isNonModal: !0,
|
|
1031
|
-
// Non-modal: doesn't trap focus, allows interaction outside
|
|
1032
|
-
trigger: "ComboBox",
|
|
1033
|
-
// Identifies this as a combobox popover (not tooltip, dialog, etc.)
|
|
1034
|
-
placement: "bottom start",
|
|
1035
|
-
// Default placement below trigger, aligned to start
|
|
1036
|
-
style: {
|
|
1037
|
-
"--nimbus-combobox-trigger-width": mt
|
|
1038
|
-
},
|
|
1039
|
-
// CSS custom property for menu width
|
|
1040
|
-
clearContexts: [
|
|
1041
|
-
// Clear these contexts so popover content doesn't inherit combobox contexts
|
|
1042
|
-
jt,
|
|
1043
|
-
Le,
|
|
1044
|
-
Me,
|
|
1045
|
-
_t,
|
|
1046
|
-
Ut
|
|
1047
|
-
]
|
|
1048
|
-
}
|
|
1049
|
-
],
|
|
1050
|
-
// SelectableCollectionContext: Enables virtual focus for keyboard navigation
|
|
1051
|
-
// Virtual focus uses aria-activedescendant instead of moving browser focus
|
|
1052
|
-
[Gt, { shouldUseVirtualFocus: !0 }],
|
|
1053
|
-
// ListBoxContext: Props for ComboBox.ListBox component
|
|
1054
|
-
// Configures the option list with items, ARIA attributes, and behaviors
|
|
1055
|
-
[
|
|
1056
|
-
Xe,
|
|
1057
|
-
{
|
|
1058
|
-
items: n,
|
|
1059
|
-
// Items to render (merged from outer component)
|
|
1060
|
-
id: re,
|
|
1061
|
-
// ID referenced by aria-controls on input
|
|
1062
|
-
ref: be,
|
|
1063
|
-
// Ref for scroll positioning
|
|
1064
|
-
renderEmptyState: J,
|
|
1065
|
-
// Custom empty state renderer
|
|
1066
|
-
shouldFocusWrap: M,
|
|
1067
|
-
// Whether to wrap focus from last to first item
|
|
1068
|
-
"aria-label": t.format("options")
|
|
1069
|
-
}
|
|
1070
|
-
],
|
|
1071
|
-
// ListStateContext: React Aria's collection state for managing selection and focus
|
|
1072
|
-
[Bt, m]
|
|
1073
|
-
];
|
|
1074
|
-
return /* @__PURE__ */ Se(
|
|
1075
|
-
Ye,
|
|
1076
|
-
{
|
|
1077
|
-
values: vt,
|
|
1078
|
-
children: [
|
|
1079
|
-
/* @__PURE__ */ g(
|
|
1080
|
-
et,
|
|
1081
|
-
{
|
|
1082
|
-
name: H,
|
|
1083
|
-
form: we,
|
|
1084
|
-
selectedKeys: x,
|
|
1085
|
-
selectionMode: r,
|
|
1086
|
-
formValue: Ae,
|
|
1087
|
-
allowsCustomOptions: j,
|
|
1088
|
-
collection: m.collection,
|
|
1089
|
-
inputValue: E
|
|
1090
|
-
}
|
|
1091
|
-
),
|
|
1092
|
-
u
|
|
1093
|
-
]
|
|
1094
|
-
}
|
|
1095
|
-
);
|
|
1096
|
-
}, rt = (e) => {
|
|
1097
|
-
const [t, r] = pe(e), n = Re(Me), { inputRef: o } = Te();
|
|
1098
|
-
let l = "", u = "";
|
|
1099
|
-
n && typeof n == "object" && "value" in n && (l = n.value || "", u = n.placeholder || "");
|
|
1100
|
-
const i = Math.max(l.length || u.length || 1, 1);
|
|
1101
|
-
return /* @__PURE__ */ g(lr, { asChild: !0, ...t, children: /* @__PURE__ */ g(
|
|
1102
|
-
Nt,
|
|
1103
|
-
{
|
|
1104
|
-
ref: o,
|
|
1105
|
-
...r,
|
|
1106
|
-
size: i,
|
|
1107
|
-
"data-empty": !(l.length || u.length)
|
|
1108
|
-
}
|
|
1109
|
-
) });
|
|
1110
|
-
};
|
|
1111
|
-
rt.displayName = "ComboBox.Input";
|
|
1112
|
-
const $r = ({
|
|
1113
|
-
children: e
|
|
1114
|
-
}) => /* @__PURE__ */ g(or, { children: e }), ot = (e) => {
|
|
1115
|
-
const { selectionMode: t, size: r, getKey: n, getTextValue: o, isDisabled: l, isReadOnly: u } = Te(), [i, a] = pe(e), y = Re(Pe), h = (y && "items" in y ? y.items : void 0) ?? [];
|
|
1116
|
-
return t !== "multiple" ? null : /* @__PURE__ */ g(sr, { ...i, ...a, asChild: !0, children: /* @__PURE__ */ g(Ee.Root, { size: r, children: /* @__PURE__ */ g(Ee.TagList, { items: h, display: "contents", children: (d) => {
|
|
1117
|
-
const I = n(d), p = o(d);
|
|
1118
|
-
return /* @__PURE__ */ g(
|
|
1119
|
-
Ee.Tag,
|
|
1120
|
-
{
|
|
1121
|
-
id: I,
|
|
1122
|
-
textValue: p,
|
|
1123
|
-
isDisabled: l || u,
|
|
1124
|
-
maxW: "100%",
|
|
1125
|
-
children: p
|
|
1126
|
-
}
|
|
1127
|
-
);
|
|
1128
|
-
} }) }) });
|
|
1129
|
-
};
|
|
1130
|
-
ot.displayName = "ComboBox.TagGroup";
|
|
1131
|
-
const nt = ({
|
|
1132
|
-
children: e,
|
|
1133
|
-
...t
|
|
1134
|
-
}) => {
|
|
1135
|
-
const { triggerRef: r, leadingElement: n, inputRef: o, isLoading: l, isDisabled: u } = Te();
|
|
1136
|
-
return /* @__PURE__ */ Se(rr, { ref: r, onClick: (a) => {
|
|
1137
|
-
!u && a.target instanceof HTMLElement && !a.target.closest("button") && o.current?.focus();
|
|
1138
|
-
}, ...t, children: [
|
|
1139
|
-
n && /* @__PURE__ */ g($r, { children: n }),
|
|
1140
|
-
/* @__PURE__ */ Se(nr, { children: [
|
|
1141
|
-
/* @__PURE__ */ g(ot, {}),
|
|
1142
|
-
/* @__PURE__ */ g(rt, {})
|
|
1143
|
-
] }),
|
|
1144
|
-
/* @__PURE__ */ g(
|
|
1145
|
-
Ue,
|
|
1146
|
-
{
|
|
1147
|
-
slot: "clear",
|
|
1148
|
-
size: "2xs",
|
|
1149
|
-
variant: "ghost",
|
|
1150
|
-
colorPalette: "primary",
|
|
1151
|
-
children: /* @__PURE__ */ g(Lt, {})
|
|
1152
|
-
}
|
|
1153
|
-
),
|
|
1154
|
-
/* @__PURE__ */ g(
|
|
1155
|
-
Ue,
|
|
1156
|
-
{
|
|
1157
|
-
slot: "toggle",
|
|
1158
|
-
size: "2xs",
|
|
1159
|
-
variant: "ghost",
|
|
1160
|
-
colorPalette: "neutral",
|
|
1161
|
-
excludeFromTabOrder: !0,
|
|
1162
|
-
children: l ? /* @__PURE__ */ g(zt, { size: "xs", margin: "50" }) : /* @__PURE__ */ g(Dt, {})
|
|
1163
|
-
}
|
|
1164
|
-
),
|
|
1165
|
-
e
|
|
1166
|
-
] });
|
|
1167
|
-
};
|
|
1168
|
-
nt.displayName = "ComboBox.Trigger";
|
|
1169
|
-
const st = ({
|
|
1170
|
-
children: e,
|
|
1171
|
-
ref: t,
|
|
1172
|
-
...r
|
|
1173
|
-
}) => {
|
|
1174
|
-
const [n, o] = pe(r);
|
|
1175
|
-
return /* @__PURE__ */ g(ir, { asChild: !0, ...n, children: /* @__PURE__ */ g(
|
|
1176
|
-
Pt,
|
|
1177
|
-
{
|
|
1178
|
-
ref: t,
|
|
1179
|
-
isNonModal: !0,
|
|
1180
|
-
autoFocus: !0,
|
|
1181
|
-
...o,
|
|
1182
|
-
children: e
|
|
1183
|
-
}
|
|
1184
|
-
) });
|
|
1185
|
-
};
|
|
1186
|
-
st.displayName = "ComboBox.Popover";
|
|
1187
|
-
function lt({
|
|
1188
|
-
children: e,
|
|
1189
|
-
ref: t,
|
|
1190
|
-
...r
|
|
1191
|
-
}) {
|
|
1192
|
-
const [n, o] = pe(r);
|
|
1193
|
-
return /* @__PURE__ */ g(cr, { ...n, ref: t, asChild: !0, children: /* @__PURE__ */ g(Mt, { ...o, children: typeof e == "function" ? (u) => {
|
|
1194
|
-
const i = e(u), a = u;
|
|
1195
|
-
return $t(i) && (a.id || a.textValue) ? Kt(
|
|
1196
|
-
i,
|
|
1197
|
-
{
|
|
1198
|
-
...i.props,
|
|
1199
|
-
...a.id ? { id: a.id } : {},
|
|
1200
|
-
...a.textValue ? { textValue: a.textValue } : {}
|
|
1201
|
-
}
|
|
1202
|
-
) : i;
|
|
1203
|
-
} : e }) });
|
|
1204
|
-
}
|
|
1205
|
-
lt.displayName = "ComboBox.ListBox";
|
|
1206
|
-
function it({
|
|
1207
|
-
children: e,
|
|
1208
|
-
ref: t,
|
|
1209
|
-
...r
|
|
1210
|
-
}) {
|
|
1211
|
-
const { textValue: n, ...o } = r, [l, u] = pe(o);
|
|
1212
|
-
return /* @__PURE__ */ g(ur, { ...l, asChild: !0, children: /* @__PURE__ */ g(Tt, { ref: t, ...u, textValue: n ?? (typeof e == "string" ? e : void 0), children: (a) => {
|
|
1213
|
-
const y = typeof e == "function" ? e({
|
|
1214
|
-
...a
|
|
1215
|
-
}) : e;
|
|
1216
|
-
return a.selectionMode === "multiple" ? /* @__PURE__ */ Se(He, { children: [
|
|
1217
|
-
/* @__PURE__ */ g(fr, { children: /* @__PURE__ */ g("span", { "data-selected": a.isSelected, children: a.isSelected && /* @__PURE__ */ g(Rt, {}) }) }),
|
|
1218
|
-
/* @__PURE__ */ g(dr, { children: y })
|
|
1219
|
-
] }) : /* @__PURE__ */ g(He, { children: y });
|
|
1220
|
-
} }) });
|
|
1221
|
-
}
|
|
1222
|
-
it.displayName = "ComboBox.Option";
|
|
1223
|
-
function ct({
|
|
1224
|
-
children: e,
|
|
1225
|
-
label: t,
|
|
1226
|
-
items: r,
|
|
1227
|
-
ref: n,
|
|
1228
|
-
...o
|
|
1229
|
-
}) {
|
|
1230
|
-
if (r && typeof e != "function")
|
|
1231
|
-
throw new Error(
|
|
1232
|
-
'ComboBox.Section: When "items" is provided, "children" must be a function'
|
|
1233
|
-
);
|
|
1234
|
-
return /* @__PURE__ */ Se(At, { ref: n, ...o, children: [
|
|
1235
|
-
t && /* @__PURE__ */ g(ar, { asChild: !0, children: /* @__PURE__ */ g(It, { children: t }) }),
|
|
1236
|
-
r ? /* @__PURE__ */ g(Ot, { items: r, children: (l) => typeof e == "function" ? e(l) : null }) : e
|
|
1237
|
-
] });
|
|
1238
|
-
}
|
|
1239
|
-
ct.displayName = "ComboBox.Section";
|
|
1240
|
-
function at(e, t) {
|
|
1241
|
-
if (!t.trim()) return e;
|
|
1242
|
-
const r = t.toLowerCase(), n = [];
|
|
1243
|
-
for (const o of e)
|
|
1244
|
-
o.textValue.toLowerCase().includes(r) && n.push(o);
|
|
1245
|
-
return n;
|
|
1246
|
-
}
|
|
1247
|
-
function Kr(e, t) {
|
|
1248
|
-
if (!t.trim()) return e;
|
|
1249
|
-
const r = t.toLowerCase(), n = [];
|
|
1250
|
-
for (const o of e)
|
|
1251
|
-
o.textValue.toLowerCase().startsWith(r) && n.push(o);
|
|
1252
|
-
return n;
|
|
1253
|
-
}
|
|
1254
|
-
function Ir(e, t) {
|
|
1255
|
-
if (!t.trim()) return e;
|
|
1256
|
-
const r = [];
|
|
1257
|
-
for (const n of e)
|
|
1258
|
-
n.textValue.includes(t) && r.push(n);
|
|
1259
|
-
return r;
|
|
1260
|
-
}
|
|
1261
|
-
function Br(e, t) {
|
|
1262
|
-
if (!t.trim()) return e;
|
|
1263
|
-
const r = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), n = new RegExp(`\\b${r}`, "i"), o = [];
|
|
1264
|
-
for (const l of e)
|
|
1265
|
-
n.test(l.textValue) && o.push(l);
|
|
1266
|
-
return o;
|
|
1267
|
-
}
|
|
1268
|
-
function Mr(e, t) {
|
|
1269
|
-
if (!t.trim()) return e;
|
|
1270
|
-
const r = t.toLowerCase(), n = [];
|
|
1271
|
-
for (const o of e) {
|
|
1272
|
-
const l = o.textValue.toLowerCase();
|
|
1273
|
-
let u = 0;
|
|
1274
|
-
for (let i = 0; i < l.length && u < r.length; i++)
|
|
1275
|
-
l[i] === r[u] && u++;
|
|
1276
|
-
u === r.length && n.push(o);
|
|
1277
|
-
}
|
|
1278
|
-
return n;
|
|
1279
|
-
}
|
|
1280
|
-
function Tr(e) {
|
|
1281
|
-
return (t, r) => {
|
|
1282
|
-
if (!r.trim()) return t;
|
|
1283
|
-
const n = r.toLowerCase(), o = [];
|
|
1284
|
-
for (const l of t) {
|
|
1285
|
-
const u = l.value;
|
|
1286
|
-
if (!u) continue;
|
|
1287
|
-
e.some((a) => {
|
|
1288
|
-
const y = a.split(".").reduce((d, I) => d && typeof d == "object" ? d[I] : void 0, u);
|
|
1289
|
-
return y == null ? !1 : String(y).toLowerCase().includes(n);
|
|
1290
|
-
}) && o.push(l);
|
|
1291
|
-
}
|
|
1292
|
-
return o;
|
|
1293
|
-
};
|
|
1294
|
-
}
|
|
1295
|
-
function Ar(e) {
|
|
1296
|
-
return (t, r) => {
|
|
1297
|
-
if (!r.trim()) return t;
|
|
1298
|
-
const n = [];
|
|
1299
|
-
for (const o of t) {
|
|
1300
|
-
const l = e(o, r);
|
|
1301
|
-
l > 0 && n.push({ node: o, score: l });
|
|
1302
|
-
}
|
|
1303
|
-
return n.sort((o, l) => l.score - o.score), n.map((o) => o.node);
|
|
1304
|
-
};
|
|
1305
|
-
}
|
|
1306
|
-
function Fr(e = at) {
|
|
1307
|
-
return (t, r) => {
|
|
1308
|
-
if (!r.trim()) return t;
|
|
1309
|
-
const n = r.split(/\s+/).filter((u) => u.length > 0);
|
|
1310
|
-
if (n.length === 0) return t;
|
|
1311
|
-
const o = /* @__PURE__ */ new Set();
|
|
1312
|
-
for (const u of n) {
|
|
1313
|
-
const i = e(t, u);
|
|
1314
|
-
for (const a of i)
|
|
1315
|
-
o.add(a.key);
|
|
1316
|
-
}
|
|
1317
|
-
const l = [];
|
|
1318
|
-
for (const u of t)
|
|
1319
|
-
o.has(u.key) && l.push(u);
|
|
1320
|
-
return l;
|
|
1321
|
-
};
|
|
1322
|
-
}
|
|
1323
|
-
function Or(e) {
|
|
1324
|
-
return (t, r) => {
|
|
1325
|
-
if (!r.trim()) return t;
|
|
1326
|
-
const n = [];
|
|
1327
|
-
let o = null;
|
|
1328
|
-
const l = [], u = () => {
|
|
1329
|
-
o && l.length > 0 && (n.push(o), n.push(...l)), l.length = 0;
|
|
1330
|
-
};
|
|
1331
|
-
for (const i of t)
|
|
1332
|
-
if (i.type === "section")
|
|
1333
|
-
u(), o = i;
|
|
1334
|
-
else {
|
|
1335
|
-
const a = Array.from(e([i], r));
|
|
1336
|
-
a.length > 0 && l.push(...a);
|
|
1337
|
-
}
|
|
1338
|
-
return u(), n;
|
|
1339
|
-
};
|
|
1340
|
-
}
|
|
1341
|
-
const oo = {
|
|
1342
|
-
/**
|
|
1343
|
-
* # ComboBox.Root
|
|
1344
|
-
*
|
|
1345
|
-
* The root component that provides state management and context for the combobox.
|
|
1346
|
-
* Handles selection state, input filtering, popover open/close, and keyboard navigation.
|
|
1347
|
-
*
|
|
1348
|
-
* @example
|
|
1349
|
-
* ```tsx
|
|
1350
|
-
* <ComboBox.Root items={items}>
|
|
1351
|
-
* <ComboBox.Trigger />
|
|
1352
|
-
* <ComboBox.Popover>
|
|
1353
|
-
* <ComboBox.ListBox>
|
|
1354
|
-
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
1355
|
-
* </ComboBox.ListBox>
|
|
1356
|
-
* </ComboBox.Popover>
|
|
1357
|
-
* </ComboBox.Root>
|
|
1358
|
-
* ```
|
|
1359
|
-
*/
|
|
1360
|
-
Root: tt,
|
|
1361
|
-
/**
|
|
1362
|
-
* # ComboBox.Trigger
|
|
1363
|
-
*
|
|
1364
|
-
* The trigger element that contains the input field and controls for the combobox.
|
|
1365
|
-
* Automatically renders tag group (multi-select), input field, toggle button, and clear button.
|
|
1366
|
-
*
|
|
1367
|
-
* @example
|
|
1368
|
-
* ```tsx
|
|
1369
|
-
* <ComboBox.Root items={items}>
|
|
1370
|
-
* <ComboBox.Trigger />
|
|
1371
|
-
* <ComboBox.Popover>...</ComboBox.Popover>
|
|
1372
|
-
* </ComboBox.Root>
|
|
1373
|
-
* ```
|
|
1374
|
-
*/
|
|
1375
|
-
Trigger: nt,
|
|
1376
|
-
/**
|
|
1377
|
-
* # ComboBox.Popover
|
|
1378
|
-
*
|
|
1379
|
-
* The popover container that displays the dropdown options list.
|
|
1380
|
-
* Renders in a React portal and handles positioning relative to the trigger.
|
|
1381
|
-
*
|
|
1382
|
-
* @example
|
|
1383
|
-
* ```tsx
|
|
1384
|
-
* <ComboBox.Popover>
|
|
1385
|
-
* <ComboBox.ListBox>
|
|
1386
|
-
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
1387
|
-
* </ComboBox.ListBox>
|
|
1388
|
-
* </ComboBox.Popover>
|
|
1389
|
-
* ```
|
|
1390
|
-
*/
|
|
1391
|
-
Popover: st,
|
|
1392
|
-
/**
|
|
1393
|
-
* # ComboBox.ListBox
|
|
1394
|
-
*
|
|
1395
|
-
* The container for dropdown options that displays filtered results.
|
|
1396
|
-
*
|
|
1397
|
-
* Use the render prop pattern - do **NOT** manually map over items as this is less performant.
|
|
1398
|
-
*
|
|
1399
|
-
* @example
|
|
1400
|
-
* ```tsx
|
|
1401
|
-
* <ComboBox.ListBox>
|
|
1402
|
-
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
1403
|
-
* </ComboBox.ListBox>
|
|
1404
|
-
* ```
|
|
1405
|
-
*/
|
|
1406
|
-
ListBox: lt,
|
|
1407
|
-
/**
|
|
1408
|
-
* # ComboBox.Option
|
|
1409
|
-
*
|
|
1410
|
-
* An individual selectable option within the listbox.
|
|
1411
|
-
* Displays a checkmark indicator for selected items in multi-select mode.
|
|
1412
|
-
*
|
|
1413
|
-
* @example
|
|
1414
|
-
* ```tsx
|
|
1415
|
-
* <ComboBox.Option>Option text</ComboBox.Option>
|
|
1416
|
-
* ```
|
|
1417
|
-
*
|
|
1418
|
-
* @example Render prop pattern
|
|
1419
|
-
* ```tsx
|
|
1420
|
-
* <ComboBox.Option>
|
|
1421
|
-
* {({ isSelected }) => (
|
|
1422
|
-
* <span>Option 1 {isSelected && "✓"}</span>
|
|
1423
|
-
* )}
|
|
1424
|
-
* </ComboBox.Option>
|
|
1425
|
-
* ```
|
|
1426
|
-
*/
|
|
1427
|
-
Option: it,
|
|
1428
|
-
/**
|
|
1429
|
-
* # ComboBox.Section
|
|
1430
|
-
*
|
|
1431
|
-
* Groups related options together with an optional heading.
|
|
1432
|
-
* Supports render prop pattern for dynamic option rendering within sections.
|
|
1433
|
-
*
|
|
1434
|
-
* @example
|
|
1435
|
-
* ```tsx
|
|
1436
|
-
* <ComboBox.Section label="Category Name">
|
|
1437
|
-
* <ComboBox.Option id="opt-1">Option 1</ComboBox.Option>
|
|
1438
|
-
* <ComboBox.Option id="opt-2">Option 2</ComboBox.Option>
|
|
1439
|
-
* </ComboBox.Section>
|
|
1440
|
-
* ```
|
|
1441
|
-
*
|
|
1442
|
-
* @example Render prop pattern
|
|
1443
|
-
* ```tsx
|
|
1444
|
-
* <ComboBox.Section items={categoryItems}>
|
|
1445
|
-
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
1446
|
-
* </ComboBox.Section>
|
|
1447
|
-
* ```
|
|
1448
|
-
*/
|
|
1449
|
-
Section: ct,
|
|
1450
|
-
/**
|
|
1451
|
-
* # ComboBox.filters
|
|
1452
|
-
*
|
|
1453
|
-
* Built-in filter functions and utilities for customizing ComboBox filtering behavior.
|
|
1454
|
-
* These filters can be passed to the `filter` prop on ComboBox.Root to control how options are filtered based on user input.
|
|
1455
|
-
*
|
|
1456
|
-
* **Available Filters:**
|
|
1457
|
-
* - `filterByText`: Default substring matching (case-insensitive)
|
|
1458
|
-
* - `filterByStartsWith`: Prefix matching
|
|
1459
|
-
* - `filterByCaseSensitive`: Exact case substring matching
|
|
1460
|
-
* - `filterByWordBoundary`: Word boundary matching
|
|
1461
|
-
* - `filterByFuzzy`: Fuzzy matching (characters in order)
|
|
1462
|
-
* - `createMultiPropertyFilter`: Search across multiple object properties
|
|
1463
|
-
* - `createRankedFilter`: Custom scoring/ranking logic
|
|
1464
|
-
* - `createMultiTermFilter`: OR logic for multiple search terms
|
|
1465
|
-
* - `createSectionAwareFilter`: Preserves section structure while filtering
|
|
1466
|
-
*
|
|
1467
|
-
* @example Basic filter usage
|
|
1468
|
-
* ```tsx
|
|
1469
|
-
* import { ComboBox } from '@commercetools/nimbus';
|
|
1470
|
-
*
|
|
1471
|
-
* function MyComponent() {
|
|
1472
|
-
* return (
|
|
1473
|
-
* <ComboBox.Root
|
|
1474
|
-
* items={items}
|
|
1475
|
-
* filter={ComboBox.filters.filterByStartsWith}
|
|
1476
|
-
* >
|
|
1477
|
-
* <ComboBox.Trigger />
|
|
1478
|
-
* <ComboBox.Popover>
|
|
1479
|
-
* <ComboBox.ListBox>
|
|
1480
|
-
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
1481
|
-
* </ComboBox.ListBox>
|
|
1482
|
-
* </ComboBox.Popover>
|
|
1483
|
-
* </ComboBox.Root>
|
|
1484
|
-
* );
|
|
1485
|
-
* }
|
|
1486
|
-
* ```
|
|
1487
|
-
*
|
|
1488
|
-
* @example Multi-property search
|
|
1489
|
-
* ```tsx
|
|
1490
|
-
* const productFilter = ComboBox.filters.createMultiPropertyFilter<Product>([
|
|
1491
|
-
* 'name',
|
|
1492
|
-
* 'category',
|
|
1493
|
-
* 'description'
|
|
1494
|
-
* ]);
|
|
1495
|
-
*
|
|
1496
|
-
* function ProductSearch() {
|
|
1497
|
-
* return (
|
|
1498
|
-
* <ComboBox.Root items={products} filter={productFilter}>
|
|
1499
|
-
* <ComboBox.Trigger />
|
|
1500
|
-
* <ComboBox.Popover>
|
|
1501
|
-
* <ComboBox.ListBox>
|
|
1502
|
-
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
1503
|
-
* </ComboBox.ListBox>
|
|
1504
|
-
* </ComboBox.Popover>
|
|
1505
|
-
* </ComboBox.Root>
|
|
1506
|
-
* );
|
|
1507
|
-
* }
|
|
1508
|
-
* ```
|
|
1509
|
-
*
|
|
1510
|
-
* @example Section-aware filtering
|
|
1511
|
-
* ```tsx
|
|
1512
|
-
* const sectionFilter = ComboBox.filters.createSectionAwareFilter(
|
|
1513
|
-
* ComboBox.filters.filterByFuzzy
|
|
1514
|
-
* );
|
|
1515
|
-
*
|
|
1516
|
-
* function SectionedSearch() {
|
|
1517
|
-
* return (
|
|
1518
|
-
* <ComboBox.Root items={sectionsWithItems} filter={sectionFilter}>
|
|
1519
|
-
* <ComboBox.Trigger />
|
|
1520
|
-
* <ComboBox.Popover>
|
|
1521
|
-
* <ComboBox.ListBox>
|
|
1522
|
-
* {(section) => (
|
|
1523
|
-
* <ComboBox.Section>
|
|
1524
|
-
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
1525
|
-
* </ComboBox.Section>
|
|
1526
|
-
* )}
|
|
1527
|
-
* </ComboBox.ListBox>
|
|
1528
|
-
* </ComboBox.Popover>
|
|
1529
|
-
* </ComboBox.Root>
|
|
1530
|
-
* );
|
|
1531
|
-
* }
|
|
1532
|
-
* ```
|
|
1533
|
-
*/
|
|
1534
|
-
filters: {
|
|
1535
|
-
filterByText: at,
|
|
1536
|
-
filterByStartsWith: Kr,
|
|
1537
|
-
filterByCaseSensitive: Ir,
|
|
1538
|
-
filterByWordBoundary: Br,
|
|
1539
|
-
filterByFuzzy: Mr,
|
|
1540
|
-
createMultiPropertyFilter: Tr,
|
|
1541
|
-
createRankedFilter: Ar,
|
|
1542
|
-
createMultiTermFilter: Fr,
|
|
1543
|
-
createSectionAwareFilter: Or
|
|
1544
|
-
}
|
|
1545
|
-
};
|
|
1546
|
-
export {
|
|
1547
|
-
oo as C
|
|
1548
|
-
};
|
|
1549
|
-
//# sourceMappingURL=combobox-D57Kz3Nc.es.js.map
|