@commercetools/nimbus 2.1.0 → 2.2.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/README.md +87 -21
- package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js → CollectionBuilder-BOe312C_.es.js} +6 -24
- package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js.map → CollectionBuilder-BOe312C_.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js → CollectionBuilder-DjRx57vm.cjs.js} +2 -18
- package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js.map → CollectionBuilder-DjRx57vm.cjs.js.map} +1 -1
- package/dist/chunks/DateField-BxXzaXAv.cjs.js +2 -0
- package/dist/chunks/DateField-BxXzaXAv.cjs.js.map +1 -0
- package/dist/chunks/{DateField-C5JgBb30.es.js → DateField-DCWy1Ysp.es.js} +662 -631
- package/dist/chunks/DateField-DCWy1Ysp.es.js.map +1 -0
- package/dist/chunks/{DatePicker-DeknOPX6.es.js → DatePicker-CL72jbDo.es.js} +6 -6
- package/dist/chunks/{DatePicker-DeknOPX6.es.js.map → DatePicker-CL72jbDo.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js → DatePicker-NWRDzwUt.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js.map → DatePicker-NWRDzwUt.cjs.js.map} +1 -1
- package/dist/chunks/{Dialog-DUbUCf4o.es.js → Dialog-B0BQfdQa.es.js} +58 -58
- package/dist/chunks/{Dialog-DUbUCf4o.es.js.map → Dialog-B0BQfdQa.es.js.map} +1 -1
- package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js → Dialog-CSr6lHSd.cjs.js} +2 -2
- package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js.map → Dialog-CSr6lHSd.cjs.js.map} +1 -1
- package/dist/chunks/{Header-Bvl-gjeR.cjs.js → Header-BXEPjypM.cjs.js} +2 -2
- package/dist/chunks/{Header-Bvl-gjeR.cjs.js.map → Header-BXEPjypM.cjs.js.map} +1 -1
- package/dist/chunks/{Header-Bvo6aMcQ.es.js → Header-CiYtrnTw.es.js} +3 -3
- package/dist/chunks/{Header-Bvo6aMcQ.es.js.map → Header-CiYtrnTw.es.js.map} +1 -1
- package/dist/chunks/{Heading-D7Ut7eK3.es.js → Heading-BMsylHxq.es.js} +3 -3
- package/dist/chunks/{Heading-D7Ut7eK3.es.js.map → Heading-BMsylHxq.es.js.map} +1 -1
- package/dist/chunks/{Heading-kcnZ-PKv.cjs.js → Heading-C7J8IDnn.cjs.js} +2 -2
- package/dist/chunks/{Heading-kcnZ-PKv.cjs.js.map → Heading-C7J8IDnn.cjs.js.map} +1 -1
- package/dist/chunks/{ListBox-C8TVMFFY.es.js → ListBox-RrHJjnuq.es.js} +34 -36
- package/dist/chunks/{ListBox-C8TVMFFY.es.js.map → ListBox-RrHJjnuq.es.js.map} +1 -1
- package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js → ListBox-rm_vuzPg.cjs.js} +2 -2
- package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js.map → ListBox-rm_vuzPg.cjs.js.map} +1 -1
- package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js +2 -0
- package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js.map +1 -0
- package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js +48 -0
- package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js.map +1 -0
- package/dist/chunks/{Modal-CMJEwrBs.es.js → Modal-K4JEy19g.es.js} +3 -3
- package/dist/chunks/{Modal-CMJEwrBs.es.js.map → Modal-K4JEy19g.es.js.map} +1 -1
- package/dist/chunks/{Modal-DjOIA2BE.cjs.js → Modal-u97jKK9t.cjs.js} +2 -2
- package/dist/chunks/{Modal-DjOIA2BE.cjs.js.map → Modal-u97jKK9t.cjs.js.map} +1 -1
- package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js → SelectionManager-5YkuhVau.cjs.js} +2 -2
- package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js.map → SelectionManager-5YkuhVau.cjs.js.map} +1 -1
- package/dist/chunks/{SelectionManager-bgcDT3lR.es.js → SelectionManager-CX9btso_.es.js} +24 -31
- package/dist/chunks/{SelectionManager-bgcDT3lR.es.js.map → SelectionManager-CX9btso_.es.js.map} +1 -1
- package/dist/chunks/{Separator-DyU2njbj.cjs.js → Separator-BvA4UGuq.cjs.js} +2 -2
- package/dist/chunks/{Separator-DyU2njbj.cjs.js.map → Separator-BvA4UGuq.cjs.js.map} +1 -1
- package/dist/chunks/{Separator-BmVimNX_.es.js → Separator-x6wk4JUe.es.js} +2 -2
- package/dist/chunks/{Separator-BmVimNX_.es.js.map → Separator-x6wk4JUe.es.js.map} +1 -1
- package/dist/chunks/{accordion-AupzDJ2i.cjs.js → accordion-CVpg-FdJ.cjs.js} +2 -2
- package/dist/chunks/{accordion-AupzDJ2i.cjs.js.map → accordion-CVpg-FdJ.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-Bu9iEN-Z.es.js → accordion-Dh0RVlNx.es.js} +2 -2
- package/dist/chunks/{accordion-Bu9iEN-Z.es.js.map → accordion-Dh0RVlNx.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js → accordion.content-Cqet9SQ-.cjs.js} +2 -2
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js.map → accordion.content-Cqet9SQ-.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js → accordion.content-GGayEeqD.es.js} +2 -2
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js.map → accordion.content-GGayEeqD.es.js.map} +1 -1
- package/dist/chunks/alert-DCgWOaY2.es.js +158 -0
- package/dist/chunks/alert-DCgWOaY2.es.js.map +1 -0
- package/dist/chunks/alert-pPmN9CXZ.cjs.js +2 -0
- package/dist/chunks/alert-pPmN9CXZ.cjs.js.map +1 -0
- package/dist/chunks/avatar-1Y7cLjZT.es.js +59 -0
- package/dist/chunks/avatar-1Y7cLjZT.es.js.map +1 -0
- package/dist/chunks/avatar-BVQ91Ccd.cjs.js +2 -0
- package/dist/chunks/avatar-BVQ91Ccd.cjs.js.map +1 -0
- package/dist/chunks/box-CWni3A32.cjs.js.map +1 -1
- package/dist/chunks/box-DuBoAZvq.es.js.map +1 -1
- package/dist/chunks/{button-czddlTvJ.es.js → button-BEJnxXsL.es.js} +2 -2
- package/dist/chunks/{button-czddlTvJ.es.js.map → button-BEJnxXsL.es.js.map} +1 -1
- package/dist/chunks/{button-DF_RV6pd.cjs.js → button-BR4fvcmi.cjs.js} +2 -2
- package/dist/chunks/{button-DF_RV6pd.cjs.js.map → button-BR4fvcmi.cjs.js.map} +1 -1
- package/dist/chunks/calendar-B01Vti5k.cjs.js +2 -0
- package/dist/chunks/calendar-B01Vti5k.cjs.js.map +1 -0
- package/dist/chunks/calendar-lSoXK-yt.es.js +227 -0
- package/dist/chunks/calendar-lSoXK-yt.es.js.map +1 -0
- package/dist/chunks/card-Bk3xHlo2.cjs.js +2 -0
- package/dist/chunks/card-Bk3xHlo2.cjs.js.map +1 -0
- package/dist/chunks/card-q5i119kB.es.js +115 -0
- package/dist/chunks/card-q5i119kB.es.js.map +1 -0
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js → checkbox-BJANm94D.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js.map → checkbox-BJANm94D.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js → checkbox-CputcCVr.es.js} +2 -2
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js.map → checkbox-CputcCVr.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js → collapsible-motion-Biq0QGUr.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js.map → collapsible-motion-Biq0QGUr.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js → collapsible-motion-DvtUDuxb.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js.map → collapsible-motion-DvtUDuxb.es.js.map} +1 -1
- package/dist/chunks/combobox-B7ck7gxL.cjs.js +2 -0
- package/dist/chunks/combobox-B7ck7gxL.cjs.js.map +1 -0
- package/dist/chunks/combobox-vjauyzlS.es.js +1551 -0
- package/dist/chunks/combobox-vjauyzlS.es.js.map +1 -0
- package/dist/chunks/data-table-CBZLbe9h.cjs.js +2 -0
- package/dist/chunks/data-table-CBZLbe9h.cjs.js.map +1 -0
- package/dist/chunks/{data-table-C0rC7Jgu.es.js → data-table-DA4SdIgU.es.js} +1448 -1423
- package/dist/chunks/data-table-DA4SdIgU.es.js.map +1 -0
- package/dist/chunks/{date-input-Cnlg-VXW.es.js → date-input-Cd9q4qBj.es.js} +4 -4
- package/dist/chunks/{date-input-Cnlg-VXW.es.js.map → date-input-Cd9q4qBj.es.js.map} +1 -1
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js → date-input-DkYcGwBy.cjs.js} +2 -2
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js.map → date-input-DkYcGwBy.cjs.js.map} +1 -1
- package/dist/chunks/date-picker-B8VVNXU3.es.js +228 -0
- package/dist/chunks/date-picker-B8VVNXU3.es.js.map +1 -0
- package/dist/chunks/date-picker-DQ5IZcRe.cjs.js +2 -0
- package/dist/chunks/date-picker-DQ5IZcRe.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-BnbKgO1E.es.js +364 -0
- package/dist/chunks/date-range-picker-BnbKgO1E.es.js.map +1 -0
- package/dist/chunks/date-range-picker-CO2HH0mY.cjs.js +2 -0
- package/dist/chunks/date-range-picker-CO2HH0mY.cjs.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-D3tLPzMb.es.js → date-range-picker-field-BuI6eLMY.es.js} +4 -4
- package/dist/chunks/date-range-picker-field-BuI6eLMY.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-DipL5QZq.cjs.js → date-range-picker-field-DcIo1YzI.cjs.js} +2 -2
- package/dist/chunks/date-range-picker-field-DcIo1YzI.cjs.js.map +1 -0
- package/dist/chunks/{dialog-z8EM12xr.es.js → dialog-DuS3dXVi.es.js} +89 -89
- package/dist/chunks/dialog-DuS3dXVi.es.js.map +1 -0
- package/dist/chunks/dialog-gyrFT8w0.cjs.js +2 -0
- package/dist/chunks/dialog-gyrFT8w0.cjs.js.map +1 -0
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js → draggable-list-fvTG-VYt.cjs.js} +3 -3
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js.map → draggable-list-fvTG-VYt.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js → draggable-list-z7a7tu_F.es.js} +1406 -1601
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js.map → draggable-list-z7a7tu_F.es.js.map} +1 -1
- package/dist/chunks/{drawer-BZBluK-I.es.js → drawer-BPcEUbUt.es.js} +94 -86
- package/dist/chunks/drawer-BPcEUbUt.es.js.map +1 -0
- package/dist/chunks/drawer-DbSJSCl_.cjs.js +2 -0
- package/dist/chunks/drawer-DbSJSCl_.cjs.js.map +1 -0
- package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js → extract-style-props-B4hqila-.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js.map → extract-style-props-B4hqila-.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DChosa6I.es.js → extract-style-props-BdibuNZ7.es.js} +2 -2
- package/dist/chunks/{extract-style-props-DChosa6I.es.js.map → extract-style-props-BdibuNZ7.es.js.map} +1 -1
- package/dist/chunks/field-errors-D1BQvoYg.es.js +219 -0
- package/dist/chunks/field-errors-D1BQvoYg.es.js.map +1 -0
- package/dist/chunks/field-errors-aqrV93vp.cjs.js +2 -0
- package/dist/chunks/field-errors-aqrV93vp.cjs.js.map +1 -0
- package/dist/chunks/{form-field-BqlkPY29.es.js → form-field-BfDU18h3.es.js} +16 -16
- package/dist/chunks/form-field-BfDU18h3.es.js.map +1 -0
- package/dist/chunks/form-field-FdRNl2bZ.cjs.js +2 -0
- package/dist/chunks/form-field-FdRNl2bZ.cjs.js.map +1 -0
- package/dist/chunks/icon-DJsVh7VR.es.js +19 -0
- package/dist/chunks/{icon-CenxuChf.es.js.map → icon-DJsVh7VR.es.js.map} +1 -1
- package/dist/chunks/icon-RyFjTAmU.cjs.js +2 -0
- package/dist/chunks/{icon-D39U--jA.cjs.js.map → icon-RyFjTAmU.cjs.js.map} +1 -1
- package/dist/chunks/icon-button-CeB8_Yyr.cjs.js +2 -0
- package/dist/chunks/icon-button-CeB8_Yyr.cjs.js.map +1 -0
- package/dist/chunks/icon-button-CosIm3oY.es.js +28 -0
- package/dist/chunks/icon-button-CosIm3oY.es.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-BKmjmlZt.es.js → icon-toggle-button-8fX8JAXp.es.js} +2 -2
- package/dist/chunks/icon-toggle-button-8fX8JAXp.es.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-D3spgxe2.cjs.js → icon-toggle-button-C4Tnlt4t.cjs.js} +2 -2
- package/dist/chunks/icon-toggle-button-C4Tnlt4t.cjs.js.map +1 -0
- package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -1
- package/dist/chunks/image-DRigLU80.es.js.map +1 -1
- package/dist/chunks/{index-BEgCT-l6.es.js → index-C2qW4ynb.es.js} +671 -557
- package/dist/chunks/index-C2qW4ynb.es.js.map +1 -0
- package/dist/chunks/index-CVXB9mwf.cjs.js +34 -0
- package/dist/chunks/index-CVXB9mwf.cjs.js.map +1 -0
- package/dist/chunks/inline-svg-BzzKpbrB.cjs.js +2 -0
- package/dist/chunks/{inline-svg-Yb2OyzRw.cjs.js.map → inline-svg-BzzKpbrB.cjs.js.map} +1 -1
- package/dist/chunks/inline-svg-Cwl9dFvu.es.js +21 -0
- package/dist/chunks/{inline-svg-CbSC6O5X.es.js.map → inline-svg-Cwl9dFvu.es.js.map} +1 -1
- package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -1
- package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -1
- package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js +2 -0
- package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js.map +1 -0
- package/dist/chunks/loading-spinner-gf62wtm3.es.js +53 -0
- package/dist/chunks/loading-spinner-gf62wtm3.es.js.map +1 -0
- package/dist/chunks/localized-field-D78l88ux.cjs.js +2 -0
- package/dist/chunks/localized-field-D78l88ux.cjs.js.map +1 -0
- package/dist/chunks/localized-field-DdeHzXdh.es.js +483 -0
- package/dist/chunks/localized-field-DdeHzXdh.es.js.map +1 -0
- package/dist/chunks/{menu-Vj3cVc_v.cjs.js → menu-Dno8yFDE.cjs.js} +2 -2
- package/dist/chunks/menu-Dno8yFDE.cjs.js.map +1 -0
- package/dist/chunks/{menu-C3Ovi5Mr.es.js → menu-Zlnps1eW.es.js} +6 -6
- package/dist/chunks/menu-Zlnps1eW.es.js.map +1 -0
- package/dist/chunks/money-input-C9eVmgeL.cjs.js +2 -0
- package/dist/chunks/money-input-C9eVmgeL.cjs.js.map +1 -0
- package/dist/chunks/{money-input-BEek-VSq.es.js → money-input-D65vrUj4.es.js} +119 -109
- package/dist/chunks/money-input-D65vrUj4.es.js.map +1 -0
- package/dist/chunks/money-input-field-BGZ_9HKh.cjs.js +2 -0
- package/dist/chunks/money-input-field-BGZ_9HKh.cjs.js.map +1 -0
- package/dist/chunks/money-input-field-CSnaaDk-.es.js +51 -0
- package/dist/chunks/money-input-field-CSnaaDk-.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-CULLuZBp.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-CULLuZBp.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-CrDTYrM3.es.js +98 -0
- package/dist/chunks/multiline-text-input-CrDTYrM3.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-BX-w2v1Y.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-field-BX-w2v1Y.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-C6UTl_c8.es.js +56 -0
- package/dist/chunks/multiline-text-input-field-C6UTl_c8.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-Dnu5ohMR.cjs.js +2 -0
- package/dist/chunks/nimbus-provider-Dnu5ohMR.cjs.js.map +1 -0
- package/dist/chunks/nimbus-provider-S02SpkpM.es.js +101 -0
- package/dist/chunks/nimbus-provider-S02SpkpM.es.js.map +1 -0
- package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js +2 -0
- package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js.map +1 -0
- package/dist/chunks/normalize-messages-D5T4I93D.es.js +52 -0
- package/dist/chunks/normalize-messages-D5T4I93D.es.js.map +1 -0
- package/dist/chunks/number-input-CR1hdy-B.cjs.js +2 -0
- package/dist/chunks/number-input-CR1hdy-B.cjs.js.map +1 -0
- package/dist/chunks/{number-input-DrhSvm6o.es.js → number-input-Dp13Mn-8.es.js} +224 -229
- package/dist/chunks/number-input-Dp13Mn-8.es.js.map +1 -0
- package/dist/chunks/number-input-field-BDNpAP6t.cjs.js +2 -0
- package/dist/chunks/number-input-field-BDNpAP6t.cjs.js.map +1 -0
- package/dist/chunks/number-input-field-C90uFO4e.es.js +51 -0
- package/dist/chunks/number-input-field-C90uFO4e.es.js.map +1 -0
- package/dist/chunks/pagination-BIxlGft7.cjs.js +2 -0
- package/dist/chunks/pagination-BIxlGft7.cjs.js.map +1 -0
- package/dist/chunks/pagination-BlrGdyD5.es.js +226 -0
- package/dist/chunks/pagination-BlrGdyD5.es.js.map +1 -0
- package/dist/chunks/password-input-8bkpGOIX.es.js +47 -0
- package/dist/chunks/password-input-8bkpGOIX.es.js.map +1 -0
- package/dist/chunks/password-input-BVbQ42NG.cjs.js +2 -0
- package/dist/chunks/password-input-BVbQ42NG.cjs.js.map +1 -0
- package/dist/chunks/password-input-field-B5lWzWAQ.cjs.js +2 -0
- package/dist/chunks/password-input-field-B5lWzWAQ.cjs.js.map +1 -0
- package/dist/chunks/password-input-field-XXaNUALk.es.js +56 -0
- package/dist/chunks/password-input-field-XXaNUALk.es.js.map +1 -0
- package/dist/chunks/popover-CuA9VugH.es.js +11 -0
- package/dist/chunks/popover-CuA9VugH.es.js.map +1 -0
- package/dist/chunks/popover-Dhg--8YC.cjs.js +2 -0
- package/dist/chunks/popover-Dhg--8YC.cjs.js.map +1 -0
- package/dist/chunks/{progress-bar-vRz1k6ol.es.js → progress-bar-C2ZnGdLv.es.js} +2 -2
- package/dist/chunks/{progress-bar-vRz1k6ol.es.js.map → progress-bar-C2ZnGdLv.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js → progress-bar-dRKyuT1-.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js.map → progress-bar-dRKyuT1-.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js → radio-input-BecbxXcF.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js.map → radio-input-BecbxXcF.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-C2lCxDiv.es.js → radio-input-DV-hhL4S.es.js} +8 -8
- package/dist/chunks/{radio-input-C2lCxDiv.es.js.map → radio-input-DV-hhL4S.es.js.map} +1 -1
- package/dist/chunks/range-calendar-CEIaa08T.es.js +229 -0
- package/dist/chunks/range-calendar-CEIaa08T.es.js.map +1 -0
- package/dist/chunks/range-calendar-Dq5Gtsb6.cjs.js +2 -0
- package/dist/chunks/range-calendar-Dq5Gtsb6.cjs.js.map +1 -0
- package/dist/chunks/rich-text-input-CRGUa5d2.es.js +1200 -0
- package/dist/chunks/rich-text-input-CRGUa5d2.es.js.map +1 -0
- package/dist/chunks/rich-text-input-Dml5F7pU.cjs.js +4 -0
- package/dist/chunks/rich-text-input-Dml5F7pU.cjs.js.map +1 -0
- package/dist/chunks/scoped-search-input-CSpFefUJ.es.js +147 -0
- package/dist/chunks/scoped-search-input-CSpFefUJ.es.js.map +1 -0
- package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js +2 -0
- package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js.map +1 -0
- package/dist/chunks/{search-input-CMrPbAUI.es.js → search-input-BDUJ48BC.es.js} +147 -147
- package/dist/chunks/search-input-BDUJ48BC.es.js.map +1 -0
- package/dist/chunks/search-input-BNXlpYtP.cjs.js +2 -0
- package/dist/chunks/search-input-BNXlpYtP.cjs.js.map +1 -0
- package/dist/chunks/search-input-field-CEemw2P1.es.js +51 -0
- package/dist/chunks/search-input-field-CEemw2P1.es.js.map +1 -0
- package/dist/chunks/search-input-field-v60x1oiw.cjs.js +2 -0
- package/dist/chunks/search-input-field-v60x1oiw.cjs.js.map +1 -0
- package/dist/chunks/{select-DG6qOekv.es.js → select-D9yYDW0d.es.js} +229 -229
- package/dist/chunks/select-D9yYDW0d.es.js.map +1 -0
- package/dist/chunks/select-Dq_6o0BB.cjs.js +2 -0
- package/dist/chunks/select-Dq_6o0BB.cjs.js.map +1 -0
- package/dist/chunks/{separator-B-ibkWW-.es.js → separator-BJ9k_D4l.es.js} +4 -4
- package/dist/chunks/{separator-B-ibkWW-.es.js.map → separator-BJ9k_D4l.es.js.map} +1 -1
- package/dist/chunks/{separator-DYCn6JPo.cjs.js → separator-u_4por07.cjs.js} +2 -2
- package/dist/chunks/{separator-DYCn6JPo.cjs.js.map → separator-u_4por07.cjs.js.map} +1 -1
- package/dist/chunks/split-button-B4gVhpP9.cjs.js +2 -0
- package/dist/chunks/split-button-B4gVhpP9.cjs.js.map +1 -0
- package/dist/chunks/split-button-C94SY3qF.es.js +106 -0
- package/dist/chunks/split-button-C94SY3qF.es.js.map +1 -0
- package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -1
- package/dist/chunks/stack-CoNreM7B.es.js.map +1 -1
- package/dist/chunks/{switch-BzYS9qlr.cjs.js → switch-CsiG41ZR.cjs.js} +2 -2
- package/dist/chunks/{switch-BzYS9qlr.cjs.js.map → switch-CsiG41ZR.cjs.js.map} +1 -1
- package/dist/chunks/{switch-_TfZ37Nm.es.js → switch-Nn1Fbk5O.es.js} +3 -3
- package/dist/chunks/{switch-_TfZ37Nm.es.js.map → switch-Nn1Fbk5O.es.js.map} +1 -1
- package/dist/chunks/tabs-D0OPeQ_J.es.js +516 -0
- package/dist/chunks/tabs-D0OPeQ_J.es.js.map +1 -0
- package/dist/chunks/tabs-iV08OTqG.cjs.js +2 -0
- package/dist/chunks/tabs-iV08OTqG.cjs.js.map +1 -0
- package/dist/chunks/{tag-group-Aa30DcsU.es.js → tag-group-BE8d6xcP.es.js} +209 -208
- package/dist/chunks/tag-group-BE8d6xcP.es.js.map +1 -0
- package/dist/chunks/tag-group-BI8_32rM.cjs.js +2 -0
- package/dist/chunks/tag-group-BI8_32rM.cjs.js.map +1 -0
- package/dist/chunks/text-BtRhIklG.cjs.js.map +1 -1
- package/dist/chunks/text-CIb_VDvO.es.js.map +1 -1
- package/dist/chunks/{text-input-D3KWm-NF.cjs.js → text-input-BlxK2Naj.cjs.js} +2 -2
- package/dist/chunks/{text-input-D3KWm-NF.cjs.js.map → text-input-BlxK2Naj.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-DOTYCJyJ.es.js → text-input-CCiZeQad.es.js} +3 -3
- package/dist/chunks/{text-input-DOTYCJyJ.es.js.map → text-input-CCiZeQad.es.js.map} +1 -1
- package/dist/chunks/text-input-field-6Cj35cYL.es.js +58 -0
- package/dist/chunks/text-input-field-6Cj35cYL.es.js.map +1 -0
- package/dist/chunks/text-input-field-Cmht3hDK.cjs.js +2 -0
- package/dist/chunks/text-input-field-Cmht3hDK.cjs.js.map +1 -0
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js → time-input-9Q5vV4UD.cjs.js} +2 -2
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js.map → time-input-9Q5vV4UD.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-KrO-X3uW.es.js → time-input-CCuIFoY2.es.js} +4 -4
- package/dist/chunks/{time-input-KrO-X3uW.es.js.map → time-input-CCuIFoY2.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js → toggle-button-L7i1XaWg.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js.map → toggle-button-L7i1XaWg.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-C03AKN2I.es.js → toggle-button-UcXy5q2C.es.js} +3 -3
- package/dist/chunks/{toggle-button-C03AKN2I.es.js.map → toggle-button-UcXy5q2C.es.js.map} +1 -1
- package/dist/chunks/{toolbar-D0WjTxz2.es.js → toolbar-C7-6gqba.es.js} +3 -3
- package/dist/chunks/{toolbar-D0WjTxz2.es.js.map → toolbar-C7-6gqba.es.js.map} +1 -1
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js → toolbar-D4fLFiSb.cjs.js} +2 -2
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js.map → toolbar-D4fLFiSb.cjs.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-886GJ5w1.es.js → useDateFormatter-9juUpmrj.es.js} +246 -244
- package/dist/chunks/useDateFormatter-9juUpmrj.es.js.map +1 -0
- package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js +2 -0
- package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js.map +1 -0
- package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js → useGridListItem-Bjqm2KGe.cjs.js} +2 -2
- package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js.map → useGridListItem-Bjqm2KGe.cjs.js.map} +1 -1
- package/dist/chunks/{useGridListItem-DAGp36bD.es.js → useGridListItem-CJrr2QNO.es.js} +4 -4
- package/dist/chunks/{useGridListItem-DAGp36bD.es.js.map → useGridListItem-CJrr2QNO.es.js.map} +1 -1
- package/dist/chunks/useListData-BGzhnkuO.cjs.js +2 -0
- package/dist/chunks/useListData-BGzhnkuO.cjs.js.map +1 -0
- package/dist/chunks/useListData-CX8_NxJv.es.js +211 -0
- package/dist/chunks/useListData-CX8_NxJv.es.js.map +1 -0
- package/dist/chunks/useListState-BjCb6LLO.cjs.js +2 -0
- package/dist/chunks/{useListState-QQtJHpsQ.cjs.js.map → useListState-BjCb6LLO.cjs.js.map} +1 -1
- package/dist/chunks/{useListState-BHLGQlP3.es.js → useListState-Dd0Mtev3.es.js} +17 -18
- package/dist/chunks/{useListState-BHLGQlP3.es.js.map → useListState-Dd0Mtev3.es.js.map} +1 -1
- package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js +2 -0
- package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js +53 -0
- package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js.map +1 -0
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-D8B_x4uj.es.js} +2 -2
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-D8B_x4uj.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js → useSpinButton-RB0J1fiP.cjs.js} +2 -2
- package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js.map → useSpinButton-RB0J1fiP.cjs.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert/alert.d.ts +4 -4
- package/dist/components/alert/alert.messages.d.ts +6 -0
- package/dist/components/alert/alert.types.d.ts +2 -2
- package/dist/components/alert/components/alert.actions.d.ts +1 -1
- package/dist/components/alert/components/alert.description.d.ts +1 -1
- package/dist/components/alert/components/alert.dismiss-button.d.ts +1 -1
- package/dist/components/alert/components/alert.root.d.ts +0 -9
- package/dist/components/alert/components/alert.title.d.ts +1 -1
- package/dist/components/alert/intl/de.d.ts +9 -0
- package/dist/components/alert/intl/en.d.ts +9 -0
- package/dist/components/alert/intl/es.d.ts +9 -0
- package/dist/components/alert/intl/fr-FR.d.ts +9 -0
- package/dist/components/alert/intl/pt-BR.d.ts +9 -0
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.messages.d.ts +6 -0
- package/dist/components/avatar/intl/de.d.ts +9 -0
- package/dist/components/avatar/intl/en.d.ts +9 -0
- package/dist/components/avatar/intl/es.d.ts +9 -0
- package/dist/components/avatar/intl/fr-FR.d.ts +9 -0
- package/dist/components/avatar/intl/pt-BR.d.ts +9 -0
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/box/box.d.ts +2 -0
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.messages.d.ts +6 -0
- package/dist/components/calendar/intl/de.d.ts +12 -0
- package/dist/components/calendar/intl/en.d.ts +12 -0
- package/dist/components/calendar/intl/es.d.ts +12 -0
- package/dist/components/calendar/intl/fr-FR.d.ts +12 -0
- package/dist/components/calendar/intl/pt-BR.d.ts +12 -0
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card/card.recipe.d.ts +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combo-box/combo-box.messages.d.ts +6 -0
- package/dist/components/combo-box/intl/de.d.ts +12 -0
- package/dist/components/combo-box/intl/en.d.ts +12 -0
- package/dist/components/combo-box/intl/es.d.ts +12 -0
- package/dist/components/combo-box/intl/fr-FR.d.ts +12 -0
- package/dist/components/combo-box/intl/pt-BR.d.ts +12 -0
- package/dist/components/combobox/combobox.d.ts +203 -27
- package/dist/components/combobox/combobox.i18n.d.ts +3 -13
- package/dist/components/combobox/combobox.messages.d.ts +6 -0
- package/dist/components/combobox/combobox.recipe.d.ts +18 -17
- package/dist/components/combobox/combobox.slots.d.ts +14 -28
- package/dist/components/combobox/combobox.types.d.ts +704 -105
- package/dist/components/combobox/components/combobox.hidden-input.d.ts +17 -0
- package/dist/components/combobox/components/combobox.input.d.ts +20 -0
- package/dist/components/combobox/components/combobox.leading-element.d.ts +5 -5
- package/dist/components/combobox/components/combobox.listbox.d.ts +27 -0
- package/dist/components/combobox/components/combobox.option.d.ts +29 -5
- package/dist/components/combobox/components/combobox.popover.d.ts +27 -0
- package/dist/components/combobox/components/combobox.root-context.d.ts +13 -0
- package/dist/components/combobox/components/combobox.root.d.ts +26 -6
- package/dist/components/combobox/components/combobox.section.d.ts +32 -0
- package/dist/components/combobox/components/combobox.tag-group.d.ts +26 -0
- package/dist/components/combobox/components/combobox.trigger.d.ts +26 -0
- package/dist/components/combobox/components/index.d.ts +4 -9
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/intl/de.d.ts +12 -0
- package/dist/components/combobox/intl/en.d.ts +12 -0
- package/dist/components/combobox/intl/es.d.ts +12 -0
- package/dist/components/combobox/intl/fr-FR.d.ts +12 -0
- package/dist/components/combobox/intl/pt-BR.d.ts +12 -0
- package/dist/components/combobox/utils/collection.d.ts +13 -0
- package/dist/components/combobox/utils/filters.d.ts +339 -0
- package/dist/components/combobox/utils/selection.d.ts +10 -0
- package/dist/components/combobox/utils/test-data.d.ts +6 -0
- package/dist/components/combobox/utils/test-utils.d.ts +30 -0
- 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 +3 -1
- package/dist/components/data-table/components/index.d.ts +1 -1
- package/dist/components/data-table/data-table.messages.d.ts +6 -0
- package/dist/components/data-table/data-table.recipe.d.ts +1 -1
- package/dist/components/data-table/data-table.types.d.ts +11 -2
- package/dist/components/data-table/intl/de.d.ts +39 -0
- package/dist/components/data-table/intl/en.d.ts +39 -0
- package/dist/components/data-table/intl/es.d.ts +39 -0
- package/dist/components/data-table/intl/fr-FR.d.ts +39 -0
- package/dist/components/data-table/intl/pt-BR.d.ts +39 -0
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker/date-picker.messages.d.ts +6 -0
- package/dist/components/date-picker/date-picker.types.d.ts +1 -1
- package/dist/components/date-picker/intl/de.d.ts +14 -0
- package/dist/components/date-picker/intl/en.d.ts +14 -0
- package/dist/components/date-picker/intl/es.d.ts +14 -0
- package/dist/components/date-picker/intl/fr-FR.d.ts +14 -0
- package/dist/components/date-picker/intl/pt-BR.d.ts +14 -0
- 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.messages.d.ts +6 -0
- package/dist/components/date-range-picker/intl/de.d.ts +21 -0
- package/dist/components/date-range-picker/intl/en.d.ts +21 -0
- package/dist/components/date-range-picker/intl/es.d.ts +21 -0
- package/dist/components/date-range-picker/intl/fr-FR.d.ts +21 -0
- package/dist/components/date-range-picker/intl/pt-BR.d.ts +21 -0
- package/dist/components/date-range-picker-field.cjs +1 -1
- package/dist/components/date-range-picker-field.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog/dialog.messages.d.ts +6 -0
- package/dist/components/dialog/dialog.types.d.ts +2 -2
- package/dist/components/dialog/intl/de.d.ts +9 -0
- package/dist/components/dialog/intl/en.d.ts +9 -0
- package/dist/components/dialog/intl/es.d.ts +9 -0
- package/dist/components/dialog/intl/fr-FR.d.ts +9 -0
- package/dist/components/dialog/intl/pt-BR.d.ts +9 -0
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list/draggable-list.messages.d.ts +6 -0
- package/dist/components/draggable-list/intl/de.d.ts +10 -0
- package/dist/components/draggable-list/intl/en.d.ts +10 -0
- package/dist/components/draggable-list/intl/es.d.ts +10 -0
- package/dist/components/draggable-list/intl/fr-FR.d.ts +10 -0
- package/dist/components/draggable-list/intl/pt-BR.d.ts +10 -0
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer/components/drawer.context.d.ts +8 -2
- package/dist/components/drawer/drawer.messages.d.ts +6 -0
- package/dist/components/drawer/drawer.types.d.ts +2 -2
- package/dist/components/drawer/intl/de.d.ts +9 -0
- package/dist/components/drawer/intl/en.d.ts +9 -0
- package/dist/components/drawer/intl/es.d.ts +9 -0
- package/dist/components/drawer/intl/fr-FR.d.ts +9 -0
- package/dist/components/drawer/intl/pt-BR.d.ts +9 -0
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/field-errors/field-errors.d.ts +1 -1
- package/dist/components/field-errors/field-errors.messages.d.ts +6 -0
- package/dist/components/field-errors/field-errors.types.d.ts +1 -1
- package/dist/components/field-errors/intl/de.d.ts +23 -0
- package/dist/components/field-errors/intl/en.d.ts +23 -0
- package/dist/components/field-errors/intl/es.d.ts +23 -0
- package/dist/components/field-errors/intl/fr-FR.d.ts +23 -0
- package/dist/components/field-errors/intl/pt-BR.d.ts +23 -0
- package/dist/components/field-errors.cjs +1 -1
- package/dist/components/field-errors.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +13 -3
- package/dist/components/fields.es.js.map +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/icon-button/icon-button.types.d.ts +15 -3
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button/icon-toggle-button.types.d.ts +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/image/image.d.ts +2 -0
- package/dist/components/inline-svg.cjs +1 -1
- package/dist/components/inline-svg.es.js +1 -1
- package/dist/components/list/components/index.d.ts +3 -0
- package/dist/components/list/components/list.indicator.d.ts +19 -0
- package/dist/components/list/components/list.item.d.ts +15 -0
- package/dist/components/list/components/list.root.d.ts +25 -0
- package/dist/components/list/list.d.ts +3 -6
- package/dist/components/loading-spinner/intl/de.d.ts +9 -0
- package/dist/components/loading-spinner/intl/en.d.ts +9 -0
- package/dist/components/loading-spinner/intl/es.d.ts +9 -0
- package/dist/components/loading-spinner/intl/fr-FR.d.ts +9 -0
- package/dist/components/loading-spinner/intl/pt-BR.d.ts +9 -0
- package/dist/components/loading-spinner/loading-spinner.messages.d.ts +6 -0
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field/intl/de.d.ts +14 -0
- package/dist/components/localized-field/intl/en.d.ts +14 -0
- package/dist/components/localized-field/intl/es.d.ts +14 -0
- package/dist/components/localized-field/intl/fr-FR.d.ts +14 -0
- package/dist/components/localized-field/intl/pt-BR.d.ts +14 -0
- package/dist/components/localized-field/localized-field.messages.d.ts +6 -0
- package/dist/components/localized-field/localized-field.types.d.ts +1 -1
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input/intl/de.d.ts +11 -0
- package/dist/components/money-input/intl/en.d.ts +11 -0
- package/dist/components/money-input/intl/es.d.ts +11 -0
- package/dist/components/money-input/intl/fr-FR.d.ts +11 -0
- package/dist/components/money-input/intl/pt-BR.d.ts +11 -0
- package/dist/components/money-input/money-input.messages.d.ts +6 -0
- package/dist/components/money-input/money-input.recipe.d.ts +1 -1
- package/dist/components/money-input-field.cjs +2 -0
- package/dist/components/money-input-field.cjs.map +1 -0
- package/dist/components/money-input-field.es.js +5 -0
- package/dist/components/money-input-field.es.js.map +1 -0
- 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.types.d.ts +1 -1
- package/dist/components/multiline-text-input-field.cjs +2 -0
- package/dist/components/multiline-text-input-field.cjs.map +1 -0
- package/dist/components/multiline-text-input-field.es.js +5 -0
- package/dist/components/multiline-text-input-field.es.js.map +1 -0
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider/index.d.ts +0 -1
- package/dist/components/nimbus-provider/nimbus-provider.d.ts +1 -0
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -3
- package/dist/components/nimbus-provider.es.js.map +1 -1
- package/dist/components/number-input/intl/de.d.ts +10 -0
- package/dist/components/number-input/intl/en.d.ts +10 -0
- package/dist/components/number-input/intl/es.d.ts +10 -0
- package/dist/components/number-input/intl/fr-FR.d.ts +10 -0
- package/dist/components/number-input/intl/pt-BR.d.ts +10 -0
- package/dist/components/number-input/number-input.messages.d.ts +6 -0
- package/dist/components/number-input-field.cjs +2 -0
- package/dist/components/number-input-field.cjs.map +1 -0
- package/dist/components/number-input-field.es.js +5 -0
- package/dist/components/number-input-field.es.js.map +1 -0
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination/intl/de.d.ts +16 -0
- package/dist/components/pagination/intl/en.d.ts +16 -0
- package/dist/components/pagination/intl/es.d.ts +16 -0
- package/dist/components/pagination/intl/fr-FR.d.ts +16 -0
- package/dist/components/pagination/intl/pt-BR.d.ts +16 -0
- package/dist/components/pagination/pagination.messages.d.ts +6 -0
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input/intl/de.d.ts +10 -0
- package/dist/components/password-input/intl/en.d.ts +10 -0
- package/dist/components/password-input/intl/es.d.ts +10 -0
- package/dist/components/password-input/intl/fr-FR.d.ts +10 -0
- package/dist/components/password-input/intl/pt-BR.d.ts +10 -0
- package/dist/components/password-input/password-input.messages.d.ts +6 -0
- package/dist/components/password-input-field.cjs +2 -0
- package/dist/components/password-input-field.cjs.map +1 -0
- package/dist/components/password-input-field.es.js +5 -0
- package/dist/components/password-input-field.es.js.map +1 -0
- 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 +13 -3
- package/dist/components/patterns.es.js.map +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.slots.d.ts +2 -4
- package/dist/components/popover/popover.types.d.ts +12 -2
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar/intl/de.d.ts +12 -0
- package/dist/components/range-calendar/intl/en.d.ts +12 -0
- package/dist/components/range-calendar/intl/es.d.ts +12 -0
- package/dist/components/range-calendar/intl/fr-FR.d.ts +12 -0
- package/dist/components/range-calendar/intl/pt-BR.d.ts +12 -0
- package/dist/components/range-calendar/range-calendar.messages.d.ts +6 -0
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/constants/text-styles.d.ts +2 -3
- package/dist/components/rich-text-input/intl/de.d.ts +32 -0
- package/dist/components/rich-text-input/intl/en.d.ts +32 -0
- package/dist/components/rich-text-input/intl/es.d.ts +32 -0
- package/dist/components/rich-text-input/intl/fr-FR.d.ts +32 -0
- package/dist/components/rich-text-input/intl/pt-BR.d.ts +32 -0
- package/dist/components/rich-text-input/rich-text-input.messages.d.ts +6 -0
- 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/intl/de.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/en.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/es.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/fr-FR.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/pt-BR.d.ts +10 -0
- package/dist/components/scoped-search-input/scoped-search-input.messages.d.ts +6 -0
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input/intl/de.d.ts +9 -0
- package/dist/components/search-input/intl/en.d.ts +9 -0
- package/dist/components/search-input/intl/es.d.ts +9 -0
- package/dist/components/search-input/intl/fr-FR.d.ts +9 -0
- package/dist/components/search-input/intl/pt-BR.d.ts +9 -0
- package/dist/components/search-input/search-input.messages.d.ts +6 -0
- package/dist/components/search-input-field.cjs +2 -0
- package/dist/components/search-input-field.cjs.map +1 -0
- package/dist/components/search-input-field.es.js +5 -0
- package/dist/components/search-input-field.es.js.map +1 -0
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/components/select.root.d.ts +2 -2
- package/dist/components/select/intl/de.d.ts +9 -0
- package/dist/components/select/intl/en.d.ts +9 -0
- package/dist/components/select/intl/es.d.ts +9 -0
- package/dist/components/select/intl/fr-FR.d.ts +9 -0
- package/dist/components/select/intl/pt-BR.d.ts +9 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.messages.d.ts +6 -0
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.types.d.ts +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/intl/de.d.ts +9 -0
- package/dist/components/split-button/intl/en.d.ts +9 -0
- package/dist/components/split-button/intl/es.d.ts +9 -0
- package/dist/components/split-button/intl/fr-FR.d.ts +9 -0
- package/dist/components/split-button/intl/pt-BR.d.ts +9 -0
- package/dist/components/split-button/split-button.messages.d.ts +6 -0
- package/dist/components/split-button/split-button.types.d.ts +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/stack/index.d.ts +2 -1
- package/dist/components/stack/stack.d.ts +3 -5
- package/dist/components/stack/stack.types.d.ts +33 -0
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs/components/tabs.root.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +12 -11
- package/dist/components/tabs/tabs.slots.d.ts +10 -0
- package/dist/components/tabs/tabs.types.d.ts +9 -0
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group/intl/de.d.ts +9 -0
- package/dist/components/tag-group/intl/en.d.ts +9 -0
- package/dist/components/tag-group/intl/es.d.ts +9 -0
- package/dist/components/tag-group/intl/fr-FR.d.ts +9 -0
- package/dist/components/tag-group/intl/pt-BR.d.ts +9 -0
- package/dist/components/tag-group/tag-group.messages.d.ts +6 -0
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text/text.d.ts +2 -0
- 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.cjs +1 -1
- package/dist/components/time-input.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/utils.cjs +2 -2
- package/dist/components/utils.cjs.map +1 -1
- package/dist/components/utils.es.js +121 -122
- package/dist/components/utils.es.js.map +1 -1
- package/dist/constants/color-palettes.d.ts +24 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-localized-string-formatter/index.d.ts +1 -0
- package/dist/hooks/use-localized-string-formatter/use-localized-string-formatter.d.ts +56 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +278 -268
- package/dist/index.es.js.map +1 -1
- package/dist/patterns/fields/date-range-picker-field/date-range-picker-field.types.d.ts +12 -14
- package/dist/patterns/fields/index.d.ts +5 -0
- package/dist/patterns/fields/money-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/money-input-field/money-input-field.d.ts +32 -0
- package/dist/patterns/fields/money-input-field/money-input-field.types.d.ts +56 -0
- package/dist/patterns/fields/multiline-text-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.d.ts +30 -0
- package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.types.d.ts +44 -0
- package/dist/patterns/fields/number-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/number-input-field/number-input-field.d.ts +31 -0
- package/dist/patterns/fields/number-input-field/number-input-field.types.d.ts +52 -0
- package/dist/patterns/fields/password-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/password-input-field/password-input-field.d.ts +28 -0
- package/dist/patterns/fields/password-input-field/password-input-field.types.d.ts +43 -0
- package/dist/patterns/fields/search-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/search-input-field/search-input-field.d.ts +30 -0
- package/dist/patterns/fields/search-input-field/search-input-field.types.d.ts +50 -0
- package/dist/patterns/fields/text-input-field/text-input-field.d.ts +1 -1
- package/dist/patterns/fields/text-input-field/text-input-field.types.d.ts +8 -3
- package/dist/theme/semantic-tokens/colors.d.ts +2 -8
- package/dist/theme/semantic-tokens/index.d.ts +1 -4
- package/dist/theme/slot-recipes/index.d.ts +34 -32
- package/dist/type-utils/shared-types.d.ts +12 -4
- package/dist/utils/display-color-palettes.d.ts +39 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/normalize-messages.d.ts +10 -0
- package/package.json +32 -28
- package/dist/chunks/DateField-B5u8QZFY.cjs.js +0 -2
- package/dist/chunks/DateField-B5u8QZFY.cjs.js.map +0 -1
- package/dist/chunks/DateField-C5JgBb30.es.js.map +0 -1
- package/dist/chunks/TextArea-2QJpeMJq.cjs.js +0 -2
- package/dist/chunks/TextArea-2QJpeMJq.cjs.js.map +0 -1
- package/dist/chunks/TextArea-CXEdUjgW.es.js +0 -42
- package/dist/chunks/TextArea-CXEdUjgW.es.js.map +0 -1
- package/dist/chunks/alert-ByKnzJtr.cjs.js +0 -2
- package/dist/chunks/alert-ByKnzJtr.cjs.js.map +0 -1
- package/dist/chunks/alert-Cb8WoJYV.es.js +0 -211
- package/dist/chunks/alert-Cb8WoJYV.es.js.map +0 -1
- package/dist/chunks/avatar-Dx_Cda2J.es.js +0 -47
- package/dist/chunks/avatar-Dx_Cda2J.es.js.map +0 -1
- package/dist/chunks/avatar-wRR1leVi.cjs.js +0 -2
- package/dist/chunks/avatar-wRR1leVi.cjs.js.map +0 -1
- package/dist/chunks/calendar-B--ZxTlQ.es.js +0 -217
- package/dist/chunks/calendar-B--ZxTlQ.es.js.map +0 -1
- package/dist/chunks/calendar-DLSOwy_e.cjs.js +0 -2
- package/dist/chunks/calendar-DLSOwy_e.cjs.js.map +0 -1
- package/dist/chunks/card-B2TxE_Ez.cjs.js +0 -2
- package/dist/chunks/card-B2TxE_Ez.cjs.js.map +0 -1
- package/dist/chunks/card-CEfEgF48.es.js +0 -120
- package/dist/chunks/card-CEfEgF48.es.js.map +0 -1
- package/dist/chunks/combobox-B2nkVE2H.cjs.js +0 -2
- package/dist/chunks/combobox-B2nkVE2H.cjs.js.map +0 -1
- package/dist/chunks/combobox-COyroO64.es.js +0 -2497
- package/dist/chunks/combobox-COyroO64.es.js.map +0 -1
- package/dist/chunks/data-table-BzY3lLyR.cjs.js +0 -2
- package/dist/chunks/data-table-BzY3lLyR.cjs.js.map +0 -1
- package/dist/chunks/data-table-C0rC7Jgu.es.js.map +0 -1
- package/dist/chunks/date-picker-8kdn6Ih5.es.js +0 -218
- package/dist/chunks/date-picker-8kdn6Ih5.es.js.map +0 -1
- package/dist/chunks/date-picker-CxJ6zMkz.cjs.js +0 -2
- package/dist/chunks/date-picker-CxJ6zMkz.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js +0 -2
- package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-Di9p8cKs.es.js +0 -356
- package/dist/chunks/date-range-picker-Di9p8cKs.es.js.map +0 -1
- package/dist/chunks/date-range-picker-field-D3tLPzMb.es.js.map +0 -1
- package/dist/chunks/date-range-picker-field-DipL5QZq.cjs.js.map +0 -1
- package/dist/chunks/dialog-qw6IMWj3.cjs.js +0 -2
- package/dist/chunks/dialog-qw6IMWj3.cjs.js.map +0 -1
- package/dist/chunks/dialog-z8EM12xr.es.js.map +0 -1
- package/dist/chunks/drawer-BZBluK-I.es.js.map +0 -1
- package/dist/chunks/drawer-DfJY_5pD.cjs.js +0 -2
- package/dist/chunks/drawer-DfJY_5pD.cjs.js.map +0 -1
- package/dist/chunks/field-errors-ClQprmQz.es.js +0 -213
- package/dist/chunks/field-errors-ClQprmQz.es.js.map +0 -1
- package/dist/chunks/field-errors-D2re_C_c.cjs.js +0 -2
- package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +0 -1
- package/dist/chunks/form-field-BqlkPY29.es.js.map +0 -1
- package/dist/chunks/form-field-lALRYL6D.cjs.js +0 -2
- package/dist/chunks/form-field-lALRYL6D.cjs.js.map +0 -1
- package/dist/chunks/icon-CenxuChf.es.js +0 -11
- package/dist/chunks/icon-D39U--jA.cjs.js +0 -2
- package/dist/chunks/icon-button-BUmqYcIF.cjs.js +0 -2
- package/dist/chunks/icon-button-BUmqYcIF.cjs.js.map +0 -1
- package/dist/chunks/icon-button-DgL7XNUZ.es.js +0 -14
- package/dist/chunks/icon-button-DgL7XNUZ.es.js.map +0 -1
- package/dist/chunks/icon-toggle-button-BKmjmlZt.es.js.map +0 -1
- package/dist/chunks/icon-toggle-button-D3spgxe2.cjs.js.map +0 -1
- package/dist/chunks/index-BEgCT-l6.es.js.map +0 -1
- package/dist/chunks/index-DzRjEtIu.cjs.js +0 -34
- package/dist/chunks/index-DzRjEtIu.cjs.js.map +0 -1
- package/dist/chunks/inline-svg-CbSC6O5X.es.js +0 -21
- package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js +0 -2
- package/dist/chunks/loading-spinner-DF6c3rBM.es.js +0 -59
- package/dist/chunks/loading-spinner-DF6c3rBM.es.js.map +0 -1
- package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js +0 -2
- package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +0 -1
- package/dist/chunks/localized-field-CtLqzEnl.cjs.js +0 -2
- package/dist/chunks/localized-field-CtLqzEnl.cjs.js.map +0 -1
- package/dist/chunks/localized-field-XLDcWlU1.es.js +0 -470
- package/dist/chunks/localized-field-XLDcWlU1.es.js.map +0 -1
- package/dist/chunks/menu-C3Ovi5Mr.es.js.map +0 -1
- package/dist/chunks/menu-Vj3cVc_v.cjs.js.map +0 -1
- package/dist/chunks/money-input-B2tSXXU9.cjs.js +0 -2
- package/dist/chunks/money-input-B2tSXXU9.cjs.js.map +0 -1
- package/dist/chunks/money-input-BEek-VSq.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-D5vbZHyU.es.js +0 -64
- package/dist/chunks/multiline-text-input-D5vbZHyU.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js +0 -2
- package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js +0 -102
- package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js.map +0 -1
- package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js +0 -2
- package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js.map +0 -1
- package/dist/chunks/number-input-CwrgDAWw.cjs.js +0 -2
- package/dist/chunks/number-input-CwrgDAWw.cjs.js.map +0 -1
- package/dist/chunks/number-input-DrhSvm6o.es.js.map +0 -1
- package/dist/chunks/pagination-C6OYOaIl.cjs.js +0 -2
- package/dist/chunks/pagination-C6OYOaIl.cjs.js.map +0 -1
- package/dist/chunks/pagination-aj1F0182.es.js +0 -210
- package/dist/chunks/pagination-aj1F0182.es.js.map +0 -1
- package/dist/chunks/password-input-BILx_1d0.cjs.js +0 -2
- package/dist/chunks/password-input-BILx_1d0.cjs.js.map +0 -1
- package/dist/chunks/password-input-DTPr52a3.es.js +0 -54
- package/dist/chunks/password-input-DTPr52a3.es.js.map +0 -1
- package/dist/chunks/popover-BAIwOPdC.es.js +0 -14
- package/dist/chunks/popover-BAIwOPdC.es.js.map +0 -1
- package/dist/chunks/popover-DY7ASSCU.cjs.js +0 -2
- package/dist/chunks/popover-DY7ASSCU.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-BagHIF-Y.es.js +0 -219
- package/dist/chunks/range-calendar-BagHIF-Y.es.js.map +0 -1
- package/dist/chunks/range-calendar-sHWelH3C.cjs.js +0 -2
- package/dist/chunks/range-calendar-sHWelH3C.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js +0 -10
- package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-CZqXRWdM.es.js +0 -1200
- package/dist/chunks/rich-text-input-CZqXRWdM.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js +0 -2
- package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js.map +0 -1
- package/dist/chunks/scoped-search-input-DY4w22Ki.es.js +0 -152
- package/dist/chunks/scoped-search-input-DY4w22Ki.es.js.map +0 -1
- package/dist/chunks/search-input-Bl0EswfK.cjs.js +0 -2
- package/dist/chunks/search-input-Bl0EswfK.cjs.js.map +0 -1
- package/dist/chunks/search-input-CMrPbAUI.es.js.map +0 -1
- package/dist/chunks/select-B2MAR-fq.cjs.js +0 -2
- package/dist/chunks/select-B2MAR-fq.cjs.js.map +0 -1
- package/dist/chunks/select-DG6qOekv.es.js.map +0 -1
- package/dist/chunks/split-button-BpZ8jMvw.es.js +0 -106
- package/dist/chunks/split-button-BpZ8jMvw.es.js.map +0 -1
- package/dist/chunks/split-button-C99oShiQ.cjs.js +0 -2
- package/dist/chunks/split-button-C99oShiQ.cjs.js.map +0 -1
- package/dist/chunks/tabs-HOHhoLn5.es.js +0 -502
- package/dist/chunks/tabs-HOHhoLn5.es.js.map +0 -1
- package/dist/chunks/tabs-gitNliDG.cjs.js +0 -2
- package/dist/chunks/tabs-gitNliDG.cjs.js.map +0 -1
- package/dist/chunks/tag-group-Aa30DcsU.es.js.map +0 -1
- package/dist/chunks/tag-group-Ci_H89V0.cjs.js +0 -2
- package/dist/chunks/tag-group-Ci_H89V0.cjs.js.map +0 -1
- package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js +0 -2
- package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js.map +0 -1
- package/dist/chunks/text-input-field-CkcoMrv2.es.js +0 -55
- package/dist/chunks/text-input-field-CkcoMrv2.es.js.map +0 -1
- package/dist/chunks/useDateFormatter-886GJ5w1.es.js.map +0 -1
- package/dist/chunks/useDateFormatter-WCaFojul.cjs.js +0 -2
- package/dist/chunks/useDateFormatter-WCaFojul.cjs.js.map +0 -1
- package/dist/chunks/useFilter-BgT0isJK.es.js +0 -36
- package/dist/chunks/useFilter-BgT0isJK.es.js.map +0 -1
- package/dist/chunks/useFilter-CAVKltBB.cjs.js +0 -2
- package/dist/chunks/useFilter-CAVKltBB.cjs.js.map +0 -1
- package/dist/chunks/useListState-QQtJHpsQ.cjs.js +0 -2
- package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js +0 -97
- package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js.map +0 -1
- package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js +0 -2
- package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-B29G7the.es.js +0 -35
- package/dist/chunks/useSingleSelectListState-B29G7the.es.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js +0 -2
- package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js.map +0 -1
- package/dist/components/combobox/components/combobox.multi-select-button-group.d.ts +0 -7
- package/dist/components/combobox/components/combobox.multi-select-root.d.ts +0 -7
- package/dist/components/combobox/components/combobox.multi-select-tag-group.d.ts +0 -7
- package/dist/components/combobox/components/combobox.option-group.d.ts +0 -11
- package/dist/components/combobox/components/combobox.options.d.ts +0 -10
- package/dist/components/combobox/components/combobox.single-select-button-group.d.ts +0 -7
- package/dist/components/combobox/components/combobox.single-select-input.d.ts +0 -7
- package/dist/components/combobox/components/combobox.single-select-root.d.ts +0 -7
|
@@ -1,153 +1,752 @@
|
|
|
1
|
-
import { ReactNode, Ref
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
import { Node, Key, Collection } from 'react-stately';
|
|
3
|
+
import { ComboBoxRenderProps, InputProps as RaInputProps, ListBoxProps as RaListBoxProps, ListBoxItemProps as RaListBoxItemProps, ListBoxSectionProps as RaListBoxSectionProps } from 'react-aria-components';
|
|
4
|
+
import { HTMLChakraProps, SlotRecipeProps, UnstyledProp } from '@chakra-ui/react';
|
|
5
|
+
import { TagGroupProps as NimbusTagGroupProps } from '../tag-group/tag-group.types';
|
|
6
|
+
import { PopoverProps as NimbusPopoverProps } from '../popover/popover.types';
|
|
4
7
|
import { OmitInternalProps } from '../../type-utils/omit-props';
|
|
5
|
-
type
|
|
8
|
+
type ComboBoxRecipeProps = {
|
|
6
9
|
/**
|
|
7
|
-
* Size variant of
|
|
10
|
+
* Size variant of combobox
|
|
8
11
|
* @default "md"
|
|
9
12
|
*/
|
|
10
13
|
size?: SlotRecipeProps<"combobox">["size"];
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
15
|
+
* Variant of combobox
|
|
13
16
|
* @default "solid"
|
|
14
17
|
*/
|
|
15
18
|
variant?: SlotRecipeProps<"combobox">["variant"];
|
|
19
|
+
} & UnstyledProp;
|
|
20
|
+
export type ComboBoxRootSlotProps = HTMLChakraProps<"div", ComboBoxRecipeProps>;
|
|
21
|
+
export type ComboBoxTriggerSlotProps = HTMLChakraProps<"div">;
|
|
22
|
+
export type ComboBoxLeadingElementSlotProps = HTMLChakraProps<"div">;
|
|
23
|
+
export type ComboBoxContentSlotProps = HTMLChakraProps<"div">;
|
|
24
|
+
export type ComboBoxTagGroupSlotProps = HTMLChakraProps<"div">;
|
|
25
|
+
export type ComboBoxInputSlotProps = HTMLChakraProps<"div">;
|
|
26
|
+
export type ComboBoxPopoverSlotProps = HTMLChakraProps<"div">;
|
|
27
|
+
export type ComboBoxListBoxSlotProps = HTMLChakraProps<"div">;
|
|
28
|
+
export type ComboBoxOptionSlotProps = HTMLChakraProps<"div">;
|
|
29
|
+
export type ComboBoxOptionIndicatorSlotProps = HTMLChakraProps<"div">;
|
|
30
|
+
export type ComboBoxOptionContentSlotProps = HTMLChakraProps<"div">;
|
|
31
|
+
export type ComboBoxSectionSlotProps = HTMLChakraProps<"div">;
|
|
32
|
+
/**
|
|
33
|
+
* Filter function for collection items
|
|
34
|
+
*
|
|
35
|
+
* @param nodes - Collection nodes to filter (includes sections and items)
|
|
36
|
+
* @param inputValue - Current filter text from input
|
|
37
|
+
* @returns Filtered collection nodes
|
|
38
|
+
*/
|
|
39
|
+
export type ComboBoxFilter<T extends object> = (nodes: Iterable<Node<T>>, inputValue: string) => Iterable<Node<T>>;
|
|
40
|
+
/**
|
|
41
|
+
* Async configuration for ComboBox with built-in useAsyncList integration
|
|
42
|
+
*
|
|
43
|
+
* @template T - Type for item data returned by the load function
|
|
44
|
+
*/
|
|
45
|
+
export type ComboBoxAsyncConfig<T extends object> = {
|
|
16
46
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
47
|
+
* Async function to load items based on filter text.
|
|
48
|
+
* Automatically receives an AbortSignal for request cancellation.
|
|
49
|
+
*
|
|
50
|
+
* @param filterText - Current input value to filter by
|
|
51
|
+
* @param signal - AbortSignal for cancelling the request
|
|
52
|
+
* @returns Promise resolving to array of items
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* async: {{
|
|
57
|
+
* load: async (filterText, signal) => {
|
|
58
|
+
* const response = await fetch(
|
|
59
|
+
* `/api/search?q=${encodeURIComponent(filterText)}`,
|
|
60
|
+
* { signal }
|
|
61
|
+
* );
|
|
62
|
+
* const data = await response.json();
|
|
63
|
+
* return data.results;
|
|
64
|
+
* }
|
|
65
|
+
* }}
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
load: (filterText: string, signal: AbortSignal) => Promise<T[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Minimum number of characters required before triggering a load.
|
|
71
|
+
* Prevents unnecessary API calls for very short queries.
|
|
72
|
+
*
|
|
73
|
+
* @default 0
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```tsx
|
|
77
|
+
* async: {{ load, minSearchLength: 2 }} // Only search after typing 2+ chars
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
minSearchLength?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Debounce delay in milliseconds before triggering load.
|
|
83
|
+
* Prevents excessive API calls while user is typing.
|
|
84
|
+
*
|
|
85
|
+
* @default 300
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```tsx
|
|
89
|
+
* async: {{ load, debounce: 500 }} // Wait 500ms after typing stops
|
|
90
|
+
* ```
|
|
19
91
|
*/
|
|
20
|
-
|
|
92
|
+
debounce?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Callback when an error occurs during loading.
|
|
95
|
+
* Receives the error object for custom error handling.
|
|
96
|
+
*
|
|
97
|
+
* @param error - The error that occurred
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```tsx
|
|
101
|
+
* async: {{
|
|
102
|
+
* load,
|
|
103
|
+
* onError: (error) => {
|
|
104
|
+
* console.error('Failed to load:', error);
|
|
105
|
+
* toast.error('Search failed. Please try again.');
|
|
106
|
+
* }
|
|
107
|
+
* }}
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
onError?: (error: Error) => void;
|
|
21
111
|
};
|
|
22
|
-
export type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
112
|
+
export type ComboBoxRootContextValue<T> = {
|
|
113
|
+
/** Selection mode determines single vs multi-select behavior */
|
|
114
|
+
selectionMode: "single" | "multiple";
|
|
115
|
+
/** variant size */
|
|
116
|
+
size?: SlotRecipeProps<"combobox">["size"];
|
|
117
|
+
/** Extract key from item for TagGroup */
|
|
118
|
+
getKey: (item: T) => Key;
|
|
119
|
+
/** Extract text value from item for TagGroup */
|
|
120
|
+
getTextValue: (item: T) => string;
|
|
121
|
+
/** Leading visual element (e.g., search icon) rendered before the input */
|
|
122
|
+
leadingElement?: ReactNode;
|
|
123
|
+
/** Ref to trigger element (for popover positioning) */
|
|
124
|
+
triggerRef: React.RefObject<HTMLDivElement | null>;
|
|
125
|
+
/** Ref to input element (for programmatic focus) */
|
|
126
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
127
|
+
/** Whether component is disabled */
|
|
128
|
+
isDisabled: boolean;
|
|
129
|
+
/** Whether component is required */
|
|
130
|
+
isRequired: boolean;
|
|
131
|
+
/** Whether component is invalid */
|
|
132
|
+
isInvalid: boolean;
|
|
133
|
+
/** Whether component is read-only */
|
|
134
|
+
isReadOnly: boolean;
|
|
135
|
+
/** Loading state */
|
|
40
136
|
isLoading?: boolean;
|
|
41
|
-
children: ReactNode | ((item: T) => React.ReactNode);
|
|
42
|
-
ref?: Ref<HTMLDivElement>;
|
|
43
137
|
};
|
|
44
138
|
/**
|
|
45
|
-
*
|
|
139
|
+
* Root component props for unified ComboBox
|
|
140
|
+
*
|
|
141
|
+
* @template T - Type for item data displayed in the combobox menu. Items array type is `T[]`.
|
|
46
142
|
*/
|
|
47
|
-
export type
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
143
|
+
export type ComboBoxRootProps<T extends object> = Omit<ComboBoxRootSlotProps, "children"> & {
|
|
144
|
+
/**
|
|
145
|
+
* Render function for each item, or static JSX children.
|
|
146
|
+
* Must be React Aria collection elements (Section/Item components).
|
|
147
|
+
*/
|
|
148
|
+
children?: ReactNode | ((values: T & {
|
|
149
|
+
defaultChildren: ReactNode | undefined;
|
|
150
|
+
} & ComboBoxRenderProps) => ReactNode);
|
|
151
|
+
/**
|
|
152
|
+
* Selection mode - determines single vs multi-select behavior
|
|
153
|
+
* @default "single"
|
|
154
|
+
*/
|
|
155
|
+
selectionMode?: "single" | "multiple";
|
|
156
|
+
/**
|
|
157
|
+
* Collection items to display.
|
|
158
|
+
* If `children` is not provided, each item will be rendered using `getTextValue`.
|
|
159
|
+
*
|
|
160
|
+
* When `allowsCustomOptions` is enabled:
|
|
161
|
+
* - New items created via Enter key are automatically added to the collection
|
|
162
|
+
* - Both the items array and selection state are managed internally
|
|
163
|
+
* - Use `onCreateOption` callback for side effects (API calls, notifications, etc.)
|
|
164
|
+
*/
|
|
165
|
+
items?: Iterable<T>;
|
|
166
|
+
/**
|
|
167
|
+
* Function to extract unique key from each item when items do not have a `key` or `id` field.
|
|
168
|
+
* Defaults to using `item.key` or `item.id`.
|
|
169
|
+
*
|
|
170
|
+
* **Important:** Wrap this function in `useCallback` to prevent unnecessary
|
|
171
|
+
* re-synchronization of the list state.
|
|
172
|
+
*
|
|
173
|
+
* @param item - The item to extract the key from
|
|
174
|
+
* @returns The unique key for the item
|
|
175
|
+
* @default useCallback((item) => (item.key ?? item.id), [])
|
|
176
|
+
* @example
|
|
177
|
+
* ```tsx
|
|
178
|
+
* // ✅ Good: Memoized with useCallback
|
|
179
|
+
* const getKey = useCallback((item) => item.productId, []);
|
|
180
|
+
* <ComboBox.Root items={items} getKey={getKey} />
|
|
181
|
+
*
|
|
182
|
+
* // ❌ Bad: Inline function creates new identity on every render
|
|
183
|
+
* <ComboBox.Root items={items} getKey={(item) => item.productId} />
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
getKey?: (item: T) => Key;
|
|
187
|
+
/**
|
|
188
|
+
* Function to extract display text from each item when `children` is not provided.
|
|
189
|
+
* Used for both rendering and filtering.
|
|
190
|
+
* Defaults to `item.label ?? item.name ?? String(item)`.
|
|
191
|
+
*
|
|
192
|
+
* **Important:** Wrap this function in `useCallback` for optimal performance.
|
|
193
|
+
*
|
|
194
|
+
* @param item - The item to extract text from
|
|
195
|
+
* @returns The display text for the item
|
|
196
|
+
* @default useCallback((item) => item.label ?? item.name ?? String(item), [])
|
|
197
|
+
* @example
|
|
198
|
+
* ```tsx
|
|
199
|
+
* // ✅ Good: Memoized with useCallback
|
|
200
|
+
* const getTextValue = useCallback((item) => item.displayName, []);
|
|
201
|
+
* <ComboBox.Root items={items} getTextValue={getTextValue} />
|
|
202
|
+
*
|
|
203
|
+
* // ❌ Bad: Inline function creates new identity on every render
|
|
204
|
+
* <ComboBox.Root items={items} getTextValue={(item) => item.displayName} />
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
getTextValue?: (item: T) => string;
|
|
208
|
+
/**
|
|
209
|
+
* Controlled selected keys (unified for single/multi)
|
|
210
|
+
* Single-select: pass a Key
|
|
211
|
+
* Multi-select: pass a Key[]
|
|
212
|
+
*
|
|
213
|
+
* Internally normalized to Set<Key> for React Stately
|
|
214
|
+
*/
|
|
215
|
+
selectedKeys?: Key[];
|
|
216
|
+
/**
|
|
217
|
+
* Callback when selection changes
|
|
218
|
+
* Always receives an array of keys regardless of selection mode:
|
|
219
|
+
* - Single-select: `[selectedKey]` or `[]` if nothing selected
|
|
220
|
+
* - Multi-select: `[key1, key2, ...]` or `[]` if nothing selected
|
|
221
|
+
*/
|
|
222
|
+
onSelectionChange?: (keys: Key[]) => void;
|
|
223
|
+
/**
|
|
224
|
+
* Keys of items that should be disabled and not selectable.
|
|
225
|
+
* Disabled items are still visible but cannot be selected or focused.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* ```tsx
|
|
229
|
+
* <ComboBox.Root
|
|
230
|
+
* items={items}
|
|
231
|
+
* disabledKeys={['item-2', 'item-5']}
|
|
232
|
+
* />
|
|
233
|
+
* ```
|
|
234
|
+
*/
|
|
235
|
+
disabledKeys?: Iterable<Key>;
|
|
236
|
+
/**
|
|
237
|
+
* Input value for controlled mode
|
|
238
|
+
*
|
|
239
|
+
* **Controlled Mode:** When `onInputChange` is provided, you manage the input value.
|
|
240
|
+
* You **MUST** update this prop in response to `onInputChange` for changes to be visible:
|
|
241
|
+
* - User typing in the input
|
|
242
|
+
* - Automatic sync on selection changes (single-select mode)
|
|
243
|
+
* - Input clearing after selection (multi-select mode)
|
|
244
|
+
*
|
|
245
|
+
* **Uncontrolled Mode:** When `onInputChange` is NOT provided, the component manages
|
|
246
|
+
* the input value internally. You can still pass `inputValue` to set the initial value.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```tsx
|
|
250
|
+
* // ✅ Controlled: Update inputValue in response to onInputChange
|
|
251
|
+
* const [inputValue, setInputValue] = useState("");
|
|
252
|
+
* <ComboBox.Root
|
|
253
|
+
* inputValue={inputValue}
|
|
254
|
+
* onInputChange={setInputValue}
|
|
255
|
+
* />
|
|
256
|
+
*
|
|
257
|
+
* // ✅ Uncontrolled: Component manages input internally
|
|
258
|
+
* <ComboBox.Root
|
|
259
|
+
* inputValue="initial search text"
|
|
260
|
+
* // No onInputChange - component handles updates
|
|
261
|
+
* />
|
|
262
|
+
*
|
|
263
|
+
* // ❌ Wrong: Controlled prop but never updated
|
|
264
|
+
* <ComboBox.Root
|
|
265
|
+
* inputValue="fixed"
|
|
266
|
+
* onInputChange={(v) => console.log(v)} // Input will be frozen
|
|
267
|
+
* />
|
|
268
|
+
* ```
|
|
269
|
+
*/
|
|
270
|
+
inputValue?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Callback when input value changes
|
|
273
|
+
*
|
|
274
|
+
* **When provided:** Enables controlled input mode. You must update `inputValue` prop
|
|
275
|
+
* in this callback for the input to update.
|
|
276
|
+
*
|
|
277
|
+
* **When NOT provided:** Component uses uncontrolled input mode and manages value internally.
|
|
278
|
+
*
|
|
279
|
+
* Called when:
|
|
280
|
+
* - User types in the input
|
|
281
|
+
* - Selection changes in single-select mode (input syncs to selected item's text)
|
|
282
|
+
* - Option selected in multi-select mode (input clears)
|
|
283
|
+
*
|
|
284
|
+
* @param value - The new input value
|
|
285
|
+
*/
|
|
286
|
+
onInputChange?: (value: string) => void;
|
|
287
|
+
/**
|
|
288
|
+
* Custom filter function for collection.
|
|
289
|
+
* If not provided, uses default text-based filter.
|
|
290
|
+
*
|
|
291
|
+
* **Important:** Wrap this function in `useCallback` to prevent
|
|
292
|
+
* unnecessary re-filtering of the collection on every render.
|
|
293
|
+
*
|
|
294
|
+
* @param nodes - Collection nodes to filter (includes sections and items)
|
|
295
|
+
* @param inputValue - Current filter text from input
|
|
296
|
+
* @returns Filtered collection nodes
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* ```tsx
|
|
300
|
+
* // ✅ Good: Memoized with useCallback
|
|
301
|
+
* const customFilter = useCallback((nodes, inputValue) => {
|
|
302
|
+
* if (!inputValue) return nodes;
|
|
303
|
+
* return Array.from(nodes).filter(node =>
|
|
304
|
+
* node.textValue?.toLowerCase().includes(inputValue.toLowerCase())
|
|
305
|
+
* );
|
|
306
|
+
* }, []);
|
|
307
|
+
*
|
|
308
|
+
* <ComboBox.Root items={items} filter={customFilter} />
|
|
309
|
+
*
|
|
310
|
+
* // ❌ Bad: Inline function creates new identity on every render
|
|
311
|
+
* <ComboBox.Root
|
|
312
|
+
* items={items}
|
|
313
|
+
* filter={(nodes, input) => ...} // Will cause re-filtering on every render
|
|
314
|
+
* />
|
|
315
|
+
* ```
|
|
316
|
+
*
|
|
317
|
+
* **Built-in Utilities:** For common patterns, use the exported filter utilities:
|
|
318
|
+
* - `filterByTextWithSections` - Section-aware filtering
|
|
319
|
+
* - `createSectionAwareFilter` - Factory for custom section-aware filters
|
|
320
|
+
* - `createMultiPropertyFilter` - Multi-property search filtering
|
|
321
|
+
*/
|
|
322
|
+
filter?: ComboBoxFilter<T>;
|
|
323
|
+
/**
|
|
324
|
+
* Placeholder text for input
|
|
325
|
+
*/
|
|
326
|
+
placeholder?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Controls when the menu opens.
|
|
329
|
+
* - "focus": Opens when input receives focus
|
|
330
|
+
* - "input": Opens when user types (input value changes)
|
|
331
|
+
* - "manual": Only opens via button click or arrow down key
|
|
332
|
+
* @default "input"
|
|
333
|
+
*/
|
|
334
|
+
menuTrigger?: "focus" | "input" | "manual";
|
|
335
|
+
/**
|
|
336
|
+
* Whether the menu should close when the combobox loses focus.
|
|
337
|
+
* Set to false to keep menu open when clicking outside.
|
|
338
|
+
* @default true
|
|
339
|
+
*/
|
|
340
|
+
shouldCloseOnBlur?: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* Whether to close the menu after an item is selected (single-select only).
|
|
343
|
+
* Multi-select always keeps menu open after selection.
|
|
344
|
+
* @default true
|
|
345
|
+
*/
|
|
346
|
+
shouldCloseOnSelect?: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Controlled open state of the menu
|
|
349
|
+
*/
|
|
350
|
+
isOpen?: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Default open state for uncontrolled mode
|
|
353
|
+
* @default false
|
|
354
|
+
*/
|
|
355
|
+
defaultOpen?: boolean;
|
|
356
|
+
/**
|
|
357
|
+
* Callback when menu open state changes
|
|
358
|
+
*/
|
|
359
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
360
|
+
/**
|
|
361
|
+
* Whether to keep the menu open when the filtered collection is empty.
|
|
362
|
+
* When false (default), the menu automatically closes when no items match the filter.
|
|
363
|
+
* When true, the menu stays open and can show empty state content.
|
|
364
|
+
* @default false
|
|
365
|
+
*/
|
|
366
|
+
allowsEmptyMenu?: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Custom render function for empty state when no items match the filter.
|
|
369
|
+
* Only shown when `allowsEmptyMenu` is true and collection is empty.
|
|
370
|
+
* Passed through to React Aria's ListBox renderEmptyState prop.
|
|
371
|
+
* @example
|
|
372
|
+
* ```tsx
|
|
373
|
+
* <ComboBox.Root
|
|
374
|
+
* allowsEmptyMenu={true}
|
|
375
|
+
* renderEmptyState={() => (
|
|
376
|
+
* <Box padding="400" textAlign="center">
|
|
377
|
+
* <Text color="fg.muted">No results found</Text>
|
|
378
|
+
* </Box>
|
|
379
|
+
* )}
|
|
380
|
+
* />
|
|
381
|
+
* ```
|
|
382
|
+
*/
|
|
383
|
+
renderEmptyState?: () => ReactNode;
|
|
384
|
+
/**
|
|
385
|
+
* External loading state for displaying loading indicators.
|
|
386
|
+
* Useful when managing async data loading externally with React Stately's useAsyncList.
|
|
387
|
+
*
|
|
388
|
+
* **Note:** When using the built-in `async` prop, loading state is managed automatically.
|
|
389
|
+
* This prop is only needed for external async management.
|
|
390
|
+
*
|
|
391
|
+
* @example
|
|
392
|
+
* ```tsx
|
|
393
|
+
* // External async control with useAsyncList
|
|
394
|
+
* const asyncList = useAsyncList({
|
|
395
|
+
* async load({ filterText, signal }) {
|
|
396
|
+
* const res = await fetch(`/api/search?q=${filterText}`, { signal });
|
|
397
|
+
* return { items: await res.json() };
|
|
398
|
+
* }
|
|
399
|
+
* });
|
|
400
|
+
*
|
|
401
|
+
* <ComboBox.Root
|
|
402
|
+
* items={asyncList.items}
|
|
403
|
+
* isLoading={asyncList.loadingState === 'loading'}
|
|
404
|
+
* inputValue={asyncList.filterText}
|
|
405
|
+
* onInputChange={(value) => asyncList.setFilterText(value)}
|
|
406
|
+
* >
|
|
407
|
+
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
408
|
+
* </ComboBox.Root>
|
|
409
|
+
* ```
|
|
410
|
+
*/
|
|
56
411
|
isLoading?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Built-in async loading configuration with automatic state management.
|
|
414
|
+
*
|
|
415
|
+
* When provided, ComboBox automatically handles:
|
|
416
|
+
* - Loading state management
|
|
417
|
+
* - Request debouncing (300ms default)
|
|
418
|
+
* - Request cancellation on input changes
|
|
419
|
+
* - Automatic filter bypass (since API handles filtering)
|
|
420
|
+
* - Minimum search length validation
|
|
421
|
+
* - Error handling with optional callback
|
|
422
|
+
*
|
|
423
|
+
* **Important:** When using `async`, do NOT provide `items`, `isLoading`, `inputValue`, or `onInputChange`.
|
|
424
|
+
* These are managed automatically by the internal useAsyncList integration.
|
|
425
|
+
*
|
|
426
|
+
* @example
|
|
427
|
+
* ```tsx
|
|
428
|
+
* // Simple async search
|
|
429
|
+
* <ComboBox.Root
|
|
430
|
+
* async={{
|
|
431
|
+
* load: async (filterText, signal) => {
|
|
432
|
+
* const response = await fetch(
|
|
433
|
+
* `/api/search?q=${encodeURIComponent(filterText)}`,
|
|
434
|
+
* { signal }
|
|
435
|
+
* );
|
|
436
|
+
* return response.json();
|
|
437
|
+
* }
|
|
438
|
+
* }}
|
|
439
|
+
* >
|
|
440
|
+
* {(item: SearchResult) => (
|
|
441
|
+
* <ComboBox.Option>{item.name}</ComboBox.Option>
|
|
442
|
+
* )}
|
|
443
|
+
* </ComboBox.Root>
|
|
444
|
+
*
|
|
445
|
+
* // With configuration and error handling
|
|
446
|
+
* <ComboBox.Root
|
|
447
|
+
* async={{
|
|
448
|
+
* load: async (filterText, signal) => {
|
|
449
|
+
* const response = await fetch(`/api/search?q=${filterText}`, { signal });
|
|
450
|
+
* const data = await response.json();
|
|
451
|
+
* return data.results;
|
|
452
|
+
* },
|
|
453
|
+
* minSearchLength: 2,
|
|
454
|
+
* debounce: 500,
|
|
455
|
+
* onError: (error) => {
|
|
456
|
+
* console.error('Search failed:', error);
|
|
457
|
+
* toast.error('Failed to load results');
|
|
458
|
+
* }
|
|
459
|
+
* }}
|
|
460
|
+
* />
|
|
461
|
+
* ```
|
|
462
|
+
*/
|
|
463
|
+
async?: ComboBoxAsyncConfig<T>;
|
|
464
|
+
/**
|
|
465
|
+
* Whether to allow creating custom options that don't exist in the items collection.
|
|
466
|
+
* When enabled and input doesn't match any existing option, pressing Enter will create
|
|
467
|
+
* a new option using `getNewOptionData`.
|
|
468
|
+
*
|
|
469
|
+
* Requires providing `getNewOptionData` to transform input value into item object.
|
|
470
|
+
* @default false
|
|
471
|
+
* @example
|
|
472
|
+
* ```tsx
|
|
473
|
+
* <ComboBox.Root
|
|
474
|
+
* items={tags}
|
|
475
|
+
* allowsCustomOptions={true}
|
|
476
|
+
* getNewOptionData={(inputValue) => ({
|
|
477
|
+
* id: `tag-${Date.now()}`,
|
|
478
|
+
* label: inputValue,
|
|
479
|
+
* })}
|
|
480
|
+
* onCreateOption={(inputValue) => {
|
|
481
|
+
* console.log('Created new tag:', inputValue);
|
|
482
|
+
* }}
|
|
483
|
+
* />
|
|
484
|
+
* ```
|
|
485
|
+
*/
|
|
486
|
+
allowsCustomOptions?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Function to validate whether the current input value is valid for creating a new option.
|
|
489
|
+
* If not provided, any non-empty input that doesn't match an existing option is valid.
|
|
490
|
+
*
|
|
491
|
+
* Based on react-select's isValidNewOption API.
|
|
492
|
+
* @param inputValue - The current input value
|
|
493
|
+
* @returns True if the input is valid for creating a new option
|
|
494
|
+
* @example
|
|
495
|
+
* ```tsx
|
|
496
|
+
* // Only allow creating tags that start with '#'
|
|
497
|
+
* isValidNewOption={(inputValue) => {
|
|
498
|
+
* return inputValue.startsWith('#') && inputValue.length > 1;
|
|
499
|
+
* }}
|
|
500
|
+
*
|
|
501
|
+
* // Only allow email addresses
|
|
502
|
+
* isValidNewOption={(inputValue) => {
|
|
503
|
+
* return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(inputValue);
|
|
504
|
+
* }}
|
|
505
|
+
* ```
|
|
506
|
+
*/
|
|
507
|
+
isValidNewOption?: (inputValue: string) => boolean;
|
|
508
|
+
/**
|
|
509
|
+
* Function to transform the input value into a new item object when creating a custom option.
|
|
510
|
+
* Required when `allowsCustomValue` is true.
|
|
511
|
+
*
|
|
512
|
+
* The returned item must be compatible with your items type and have properties
|
|
513
|
+
* that `getKey` and `getTextValue` can extract.
|
|
514
|
+
*
|
|
515
|
+
* Based on react-select's getNewOptionData API.
|
|
516
|
+
* @param inputValue - The input value to transform
|
|
517
|
+
* @returns A new item object to add to the collection
|
|
518
|
+
* @example
|
|
519
|
+
* ```tsx
|
|
520
|
+
* // Simple tag creation
|
|
521
|
+
* getNewOptionData={(inputValue) => ({
|
|
522
|
+
* id: `tag-${Date.now()}`,
|
|
523
|
+
* label: inputValue,
|
|
524
|
+
* })}
|
|
525
|
+
*
|
|
526
|
+
* // Product creation with additional fields
|
|
527
|
+
* getNewOptionData={(inputValue) => ({
|
|
528
|
+
* id: `product-${Date.now()}`,
|
|
529
|
+
* name: inputValue,
|
|
530
|
+
* category: 'uncategorized',
|
|
531
|
+
* createdAt: new Date(),
|
|
532
|
+
* })}
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
535
|
+
getNewOptionData?: (inputValue: string) => T;
|
|
536
|
+
/**
|
|
537
|
+
* Callback when a new option is created via Enter key on valid input.
|
|
538
|
+
* Called after the item is added to the collection and selected.
|
|
539
|
+
*
|
|
540
|
+
* Use this for side effects like API calls, analytics, or notifications.
|
|
541
|
+
*
|
|
542
|
+
* Based on react-select's onCreateOption API.
|
|
543
|
+
* Note: Unlike react-select, selection changes are still handled by `onSelectionChange`.
|
|
544
|
+
* @param newOption - The option that was created
|
|
545
|
+
* @example
|
|
546
|
+
* ```tsx
|
|
547
|
+
* onCreateOption={async (newOption) => {
|
|
548
|
+
* // Make API call to persist
|
|
549
|
+
* await createTagAPI(newOption);
|
|
550
|
+
*
|
|
551
|
+
* // Show notification
|
|
552
|
+
* toast.success(`Created tag: ${newOption.value}`);
|
|
553
|
+
* }}
|
|
554
|
+
* ```
|
|
555
|
+
*/
|
|
556
|
+
onCreateOption?: (newOption: T) => void;
|
|
557
|
+
/**
|
|
558
|
+
* Accessible label for the combobox (when no visible label exists)
|
|
559
|
+
* @example "Select a product"
|
|
560
|
+
*/
|
|
561
|
+
"aria-label"?: string;
|
|
562
|
+
/**
|
|
563
|
+
* ID of external label element (typically from FormField)
|
|
564
|
+
* Use this when the combobox is wrapped in a FormField component
|
|
565
|
+
* @example "product-combobox-label"
|
|
566
|
+
*/
|
|
567
|
+
"aria-labelledby"?: string;
|
|
568
|
+
/**
|
|
569
|
+
* Leading visual element rendered before the input
|
|
570
|
+
* Common use cases: search icon, category indicator
|
|
571
|
+
*
|
|
572
|
+
* **Accessibility**: Ensure decorative elements have aria-hidden="true".
|
|
573
|
+
* If the element is functional (clickable), it needs its own aria-label.
|
|
574
|
+
*
|
|
575
|
+
* @example
|
|
576
|
+
* ```tsx
|
|
577
|
+
* // Decorative icon (recommended)
|
|
578
|
+
* <ComboBox.Root leadingElement={<Icons.Search aria-hidden="true" />} />
|
|
579
|
+
*
|
|
580
|
+
* // Functional element (needs aria-label)
|
|
581
|
+
* <ComboBox.Root leadingElement={<Button aria-label="Clear search"><Icons.Close /></Button>} />
|
|
582
|
+
* ```
|
|
583
|
+
*/
|
|
584
|
+
leadingElement?: ReactNode;
|
|
585
|
+
/**
|
|
586
|
+
* Whether component is disabled
|
|
587
|
+
* @default false
|
|
588
|
+
*/
|
|
57
589
|
isDisabled?: boolean;
|
|
58
|
-
|
|
590
|
+
/**
|
|
591
|
+
* Whether component is required
|
|
592
|
+
* @default false
|
|
593
|
+
*/
|
|
59
594
|
isRequired?: boolean;
|
|
595
|
+
/**
|
|
596
|
+
* Whether component is invalid
|
|
597
|
+
* @default false
|
|
598
|
+
*/
|
|
60
599
|
isInvalid?: boolean;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
600
|
+
/**
|
|
601
|
+
* Whether component is read-only
|
|
602
|
+
* @default false
|
|
603
|
+
*/
|
|
604
|
+
isReadOnly?: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Whether keyboard focus should wrap around when navigating through options.
|
|
607
|
+
* When true, pressing ArrowDown on the last option moves focus to the first option,
|
|
608
|
+
* and pressing ArrowUp on the first option moves focus to the last option.
|
|
609
|
+
* @default true
|
|
610
|
+
*/
|
|
611
|
+
shouldFocusWrap?: boolean;
|
|
612
|
+
/**
|
|
613
|
+
* Whether to automatically focus the input when the component mounts.
|
|
614
|
+
* @default false
|
|
615
|
+
*/
|
|
616
|
+
autoFocus?: boolean;
|
|
617
|
+
/**
|
|
618
|
+
* The name of the input element, used when submitting an HTML form.
|
|
619
|
+
* @see https://react-spectrum.adobe.com/react-aria/forms.html
|
|
620
|
+
*/
|
|
621
|
+
name?: string;
|
|
622
|
+
/**
|
|
623
|
+
* The current value of the hidden input element for form submission.
|
|
624
|
+
* By default, the selected key is submitted. Use this to customize the submitted value.
|
|
625
|
+
* @see https://react-spectrum.adobe.com/react-aria/forms.html
|
|
626
|
+
*/
|
|
627
|
+
formValue?: "key" | "text";
|
|
628
|
+
/**
|
|
629
|
+
* Whether to use native HTML form validation to prevent form submission
|
|
630
|
+
* when the value is missing or invalid, or mark the field as required
|
|
631
|
+
* or invalid via ARIA.
|
|
632
|
+
* @default 'aria'
|
|
633
|
+
*/
|
|
634
|
+
validationBehavior?: "aria" | "native";
|
|
635
|
+
/**
|
|
636
|
+
* The form element to associate the input with.
|
|
637
|
+
* Accepts either an HTML form element or the id of a form element.
|
|
638
|
+
*/
|
|
639
|
+
form?: string | HTMLFormElement;
|
|
640
|
+
/**
|
|
641
|
+
* A function that validates the current value and returns an error message if invalid.
|
|
642
|
+
* Called when the value changes and on form submission.
|
|
643
|
+
* @see https://react-spectrum.adobe.com/react-aria/forms.html#validation
|
|
644
|
+
*/
|
|
645
|
+
validate?: (value: string | null) => string | string[] | null | undefined;
|
|
646
|
+
/**
|
|
647
|
+
* Ref to the root element
|
|
648
|
+
*/
|
|
64
649
|
ref?: Ref<HTMLDivElement>;
|
|
65
|
-
leadingElement?: ReactNode;
|
|
66
|
-
size?: ComboBoxRecipeVariantProps["size"];
|
|
67
650
|
};
|
|
68
651
|
/**
|
|
69
|
-
* Props for
|
|
652
|
+
* Props for ComboBox.Trigger component
|
|
653
|
+
* Wrapper for the input trigger area (contains Input, TagGroup, and IconButtons)
|
|
70
654
|
*/
|
|
71
|
-
export type
|
|
72
|
-
ref?: Ref<HTMLDivElement>;
|
|
655
|
+
export type ComboBoxTriggerProps = ComboBoxTriggerSlotProps & {
|
|
73
656
|
/**
|
|
74
|
-
*
|
|
75
|
-
* Will respect text direction (left in LTR, right in RTL)
|
|
657
|
+
* Children should be ComboBox.Input, ComboBox.TagGroup, and IconButton components
|
|
76
658
|
*/
|
|
77
|
-
|
|
659
|
+
children?: ReactNode;
|
|
78
660
|
};
|
|
79
661
|
/**
|
|
80
|
-
* Props for
|
|
662
|
+
* Props for ComboBox.TagGroup component
|
|
663
|
+
* Displays selected items as tags (multi-select only)
|
|
664
|
+
* Gets props from TagGroupContext provided by Nimbus context
|
|
81
665
|
*/
|
|
82
|
-
export type
|
|
83
|
-
ref?: Ref<HTMLDivElement>;
|
|
84
|
-
};
|
|
666
|
+
export type ComboBoxTagGroupProps = ComboBoxTagGroupSlotProps & NimbusTagGroupProps;
|
|
85
667
|
/**
|
|
86
|
-
*
|
|
668
|
+
* Props for ComboBox.Input component
|
|
669
|
+
* Text input field for filtering and typing
|
|
670
|
+
* Gets props from InputContext provided by Nimbus context
|
|
87
671
|
*/
|
|
88
|
-
export type
|
|
672
|
+
export type ComboBoxInputProps = ComboBoxInputSlotProps & RaInputProps;
|
|
89
673
|
/**
|
|
90
|
-
* Props for
|
|
674
|
+
* Props for ComboBox.Popover component
|
|
675
|
+
* Popover wrapper for options list
|
|
676
|
+
* Gets props from PopoverContext provided by Nimbus context
|
|
91
677
|
*/
|
|
92
|
-
export type
|
|
93
|
-
items: ComboBoxMultiSelectRootProps<T>["items"];
|
|
94
|
-
itemId: ComboBoxMultiSelectRootProps<T>["itemId"];
|
|
95
|
-
itemValue: ComboBoxMultiSelectRootProps<T>["itemValue"];
|
|
96
|
-
selectedKeys: ComboBoxMultiSelectRootProps<T>["selectedKeys"];
|
|
97
|
-
onSelectionChange: ComboBoxMultiSelectRootProps<T>["onSelectionChange"];
|
|
98
|
-
placeholder?: string;
|
|
99
|
-
isDisabled?: boolean;
|
|
100
|
-
isReadOnly?: boolean;
|
|
101
|
-
ref?: Ref<HTMLDivElement>;
|
|
102
|
-
containerRef?: RefObject<HTMLDivElement | null>;
|
|
103
|
-
size?: ComboBoxRecipeVariantProps["size"];
|
|
104
|
-
/**
|
|
105
|
-
* Optional element to display at the start of the input
|
|
106
|
-
* Will respect text direction (left in LTR, right in RTL)
|
|
107
|
-
*/
|
|
108
|
-
leadingElement?: ReactNode;
|
|
109
|
-
};
|
|
678
|
+
export type ComboBoxPopoverProps = NimbusPopoverProps & Omit<ComboBoxPopoverSlotProps, keyof NimbusPopoverProps>;
|
|
110
679
|
/**
|
|
111
|
-
* Props for
|
|
680
|
+
* Props for ComboBox.ListBox component
|
|
681
|
+
* Container for options
|
|
682
|
+
* Gets props from ListBoxContext provided by Nimbus context
|
|
683
|
+
*
|
|
684
|
+
* @template T - Type for item data displayed in the list. Items array type is `T[]`.
|
|
685
|
+
*
|
|
686
|
+
* **Type Inference Limitation:**
|
|
687
|
+
* Due to TypeScript limitations with generic types in compound components,
|
|
688
|
+
* the item type cannot be automatically inferred from ComboBox.Root.
|
|
689
|
+
* When using a render function, you may need to explicitly type the item parameter:
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* ```tsx
|
|
693
|
+
* // ✅ Explicit typing (recommended for type safety)
|
|
694
|
+
* <ComboBox.ListBox>
|
|
695
|
+
* {(item: MyItemType) => <ComboBox.Option>{item.name}</ComboBox.Option>}
|
|
696
|
+
* </ComboBox.ListBox>
|
|
697
|
+
*
|
|
698
|
+
* // ⚠️ Without explicit typing, TypeScript defaults to 'object'
|
|
699
|
+
* <ComboBox.ListBox>
|
|
700
|
+
* {(item) => <ComboBox.Option>{item.name}</ComboBox.Option>} // Type error on item.name
|
|
701
|
+
* </ComboBox.ListBox>
|
|
702
|
+
* ```
|
|
112
703
|
*/
|
|
113
|
-
export type
|
|
114
|
-
|
|
115
|
-
onSelectionChange?: ComboBoxMultiSelectRootProps<object>["onSelectionChange"];
|
|
116
|
-
onInputChange?: ComboBoxMultiSelectRootProps<object>["onInputChange"];
|
|
117
|
-
onOpenChange?: ComboBoxSingleSelectRootProps<object>["onOpenChange"];
|
|
118
|
-
containerRef?: RefObject<HTMLDivElement | null>;
|
|
119
|
-
isOpen?: boolean;
|
|
120
|
-
isLoading?: boolean;
|
|
121
|
-
isDisabled?: boolean;
|
|
122
|
-
isReadOnly?: boolean;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Props for the internal single select input component.
|
|
126
|
-
*/
|
|
127
|
-
export type SingleSelectInputProps = {
|
|
128
|
-
placeholder?: string;
|
|
129
|
-
inputValue?: string;
|
|
130
|
-
allowsCustomValue?: boolean;
|
|
131
|
-
onSubmitCustomValue?: (value: string) => void;
|
|
132
|
-
onInputChange?: (value: string) => void;
|
|
133
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
704
|
+
export type ComboBoxListBoxProps<T extends object> = RaListBoxProps<T> & Omit<ComboBoxListBoxSlotProps, keyof RaListBoxProps<T>> & {
|
|
705
|
+
ref?: Ref<HTMLDivElement>;
|
|
134
706
|
};
|
|
135
707
|
/**
|
|
136
|
-
* Props for
|
|
708
|
+
* Props for ComboBox.Option component
|
|
709
|
+
* Individual option within the combobox listbox
|
|
710
|
+
* Supports both static children and render prop pattern
|
|
711
|
+
*
|
|
712
|
+
* @template T - Type for item data displayed in the option. Items array type is `T[]`.
|
|
137
713
|
*/
|
|
138
|
-
export type
|
|
714
|
+
export type ComboBoxOptionProps<T extends object> = RaListBoxItemProps<T> & OmitInternalProps<ComboBoxOptionSlotProps, keyof RaListBoxItemProps<T>> & {
|
|
139
715
|
ref?: Ref<HTMLDivElement>;
|
|
140
716
|
};
|
|
141
717
|
/**
|
|
142
|
-
* Props for
|
|
718
|
+
* Props for ComboBox.Section component
|
|
719
|
+
* Groups related options together
|
|
720
|
+
* Supports both static children and collection rendering
|
|
721
|
+
*
|
|
722
|
+
* @template T - Type for item data displayed in the section. Items array type is `T[]`.
|
|
143
723
|
*/
|
|
144
|
-
export type
|
|
724
|
+
export type ComboBoxSectionProps<T extends object> = RaListBoxSectionProps<T> & Omit<ComboBoxSectionSlotProps, keyof RaListBoxSectionProps<T>> & {
|
|
725
|
+
/**
|
|
726
|
+
* Section label displayed as header
|
|
727
|
+
*/
|
|
145
728
|
label?: ReactNode;
|
|
729
|
+
ref?: Ref<HTMLDivElement>;
|
|
146
730
|
};
|
|
147
731
|
/**
|
|
148
|
-
* Props for the
|
|
732
|
+
* Props for the ComboBoxHiddenInput component
|
|
149
733
|
*/
|
|
150
|
-
export type
|
|
151
|
-
|
|
734
|
+
export type ComboBoxHiddenInputProps<T extends object> = {
|
|
735
|
+
/** Name attribute for form submission */
|
|
736
|
+
name?: string;
|
|
737
|
+
/** Form element to associate with */
|
|
738
|
+
form?: string | HTMLFormElement;
|
|
739
|
+
/** Selected keys from state */
|
|
740
|
+
selectedKeys: Set<Key>;
|
|
741
|
+
/** Selection mode (single or multiple) */
|
|
742
|
+
selectionMode: "single" | "multiple";
|
|
743
|
+
/** What to submit: "key" (default) or "text" */
|
|
744
|
+
formValue?: "key" | "text";
|
|
745
|
+
/** Whether custom options are allowed (affects default formValue behavior) */
|
|
746
|
+
allowsCustomOptions?: boolean;
|
|
747
|
+
/** Collection of items */
|
|
748
|
+
collection: Collection<Node<T>>;
|
|
749
|
+
/** Current input value (used as fallback for custom options) */
|
|
750
|
+
inputValue: string;
|
|
152
751
|
};
|
|
153
752
|
export {};
|