@commercetools/nimbus 2.2.0 → 2.3.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/{accordion-Dh0RVlNx.es.js → accordion-Cwy8ywRo.es.js} +2 -2
- package/dist/chunks/{accordion-Dh0RVlNx.es.js.map → accordion-Cwy8ywRo.es.js.map} +1 -1
- package/dist/chunks/{accordion-CVpg-FdJ.cjs.js → accordion-DvftRW7J.cjs.js} +2 -2
- package/dist/chunks/{accordion-CVpg-FdJ.cjs.js.map → accordion-DvftRW7J.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-Cqet9SQ-.cjs.js → accordion.content-DBBMLq5x.cjs.js} +2 -2
- package/dist/chunks/{accordion.content-Cqet9SQ-.cjs.js.map → accordion.content-DBBMLq5x.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-GGayEeqD.es.js → accordion.content-DR_1dtdK.es.js} +2 -2
- package/dist/chunks/{accordion.content-GGayEeqD.es.js.map → accordion.content-DR_1dtdK.es.js.map} +1 -1
- package/dist/chunks/{alert-pPmN9CXZ.cjs.js → alert-D5SDMEKA.cjs.js} +2 -2
- package/dist/chunks/{alert-pPmN9CXZ.cjs.js.map → alert-D5SDMEKA.cjs.js.map} +1 -1
- package/dist/chunks/{alert-DCgWOaY2.es.js → alert-WiLa3ap4.es.js} +2 -2
- package/dist/chunks/{alert-DCgWOaY2.es.js.map → alert-WiLa3ap4.es.js.map} +1 -1
- package/dist/chunks/{button-BR4fvcmi.cjs.js → button-Bz1hc0LL.cjs.js} +2 -2
- package/dist/chunks/{button-BR4fvcmi.cjs.js.map → button-Bz1hc0LL.cjs.js.map} +1 -1
- package/dist/chunks/{button-BEJnxXsL.es.js → button-CANeXX_D.es.js} +2 -2
- package/dist/chunks/{button-BEJnxXsL.es.js.map → button-CANeXX_D.es.js.map} +1 -1
- package/dist/chunks/{calendar-lSoXK-yt.es.js → calendar-Bnw0u0vz.es.js} +3 -3
- package/dist/chunks/{calendar-lSoXK-yt.es.js.map → calendar-Bnw0u0vz.es.js.map} +1 -1
- package/dist/chunks/{calendar-B01Vti5k.cjs.js → calendar-D0OrT88Y.cjs.js} +2 -2
- package/dist/chunks/{calendar-B01Vti5k.cjs.js.map → calendar-D0OrT88Y.cjs.js.map} +1 -1
- package/dist/chunks/{card-q5i119kB.es.js → card-BHw7lWYe.es.js} +2 -2
- package/dist/chunks/{card-q5i119kB.es.js.map → card-BHw7lWYe.es.js.map} +1 -1
- package/dist/chunks/{card-Bk3xHlo2.cjs.js → card-CgBcH7Zm.cjs.js} +2 -2
- package/dist/chunks/{card-Bk3xHlo2.cjs.js.map → card-CgBcH7Zm.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BJANm94D.cjs.js → checkbox-BYBGaSV9.cjs.js} +2 -2
- package/dist/chunks/{checkbox-BJANm94D.cjs.js.map → checkbox-BYBGaSV9.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-CputcCVr.es.js → checkbox-UATxAVti.es.js} +2 -2
- package/dist/chunks/{checkbox-CputcCVr.es.js.map → checkbox-UATxAVti.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-DvtUDuxb.es.js → collapsible-motion-BsyuKtxS.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-DvtUDuxb.es.js.map → collapsible-motion-BsyuKtxS.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-Biq0QGUr.cjs.js → collapsible-motion-Cj6ESwsR.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-Biq0QGUr.cjs.js.map → collapsible-motion-Cj6ESwsR.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-vjauyzlS.es.js → combobox-B30crY-T.es.js} +356 -344
- package/dist/chunks/combobox-B30crY-T.es.js.map +1 -0
- package/dist/chunks/combobox-D_L2EmTy.cjs.js +2 -0
- package/dist/chunks/combobox-D_L2EmTy.cjs.js.map +1 -0
- package/dist/chunks/{data-table-DA4SdIgU.es.js → data-table-B7orK0Y6.es.js} +953 -933
- package/dist/chunks/{data-table-DA4SdIgU.es.js.map → data-table-B7orK0Y6.es.js.map} +1 -1
- package/dist/chunks/data-table-Cg75JPdu.cjs.js +2 -0
- package/dist/chunks/{data-table-CBZLbe9h.cjs.js.map → data-table-Cg75JPdu.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-DkYcGwBy.cjs.js → date-input-BL7owE4Q.cjs.js} +2 -2
- package/dist/chunks/{date-input-DkYcGwBy.cjs.js.map → date-input-BL7owE4Q.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-Cd9q4qBj.es.js → date-input-Ba6r9wMb.es.js} +3 -3
- package/dist/chunks/{date-input-Cd9q4qBj.es.js.map → date-input-Ba6r9wMb.es.js.map} +1 -1
- package/dist/chunks/{date-picker-DQ5IZcRe.cjs.js → date-picker-Bm6DjFOx.cjs.js} +2 -2
- package/dist/chunks/{date-picker-DQ5IZcRe.cjs.js.map → date-picker-Bm6DjFOx.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-B8VVNXU3.es.js → date-picker-DwQ1WWNP.es.js} +7 -7
- package/dist/chunks/{date-picker-B8VVNXU3.es.js.map → date-picker-DwQ1WWNP.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-CO2HH0mY.cjs.js → date-range-picker-DaSUwkke.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-CO2HH0mY.cjs.js.map → date-range-picker-DaSUwkke.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BnbKgO1E.es.js → date-range-picker-dw7c9idV.es.js} +7 -7
- package/dist/chunks/{date-range-picker-BnbKgO1E.es.js.map → date-range-picker-dw7c9idV.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-BuI6eLMY.es.js → date-range-picker-field-D-kCkHEF.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-BuI6eLMY.es.js.map → date-range-picker-field-D-kCkHEF.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-DcIo1YzI.cjs.js → date-range-picker-field-J2b1-A1l.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-DcIo1YzI.cjs.js.map → date-range-picker-field-J2b1-A1l.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-gyrFT8w0.cjs.js → dialog-ByHd6RlA.cjs.js} +2 -2
- package/dist/chunks/{dialog-gyrFT8w0.cjs.js.map → dialog-ByHd6RlA.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-DuS3dXVi.es.js → dialog-vnnSNnUC.es.js} +3 -3
- package/dist/chunks/{dialog-DuS3dXVi.es.js.map → dialog-vnnSNnUC.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-fvTG-VYt.cjs.js → draggable-list-CGpLzk-D.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-fvTG-VYt.cjs.js.map → draggable-list-CGpLzk-D.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-z7a7tu_F.es.js → draggable-list-DR-559Qk.es.js} +5 -5
- package/dist/chunks/{draggable-list-z7a7tu_F.es.js.map → draggable-list-DR-559Qk.es.js.map} +1 -1
- package/dist/chunks/{drawer-BPcEUbUt.es.js → drawer-CasegOAE.es.js} +49 -49
- package/dist/chunks/drawer-CasegOAE.es.js.map +1 -0
- package/dist/chunks/drawer-CmxHDgtW.cjs.js +2 -0
- package/dist/chunks/drawer-CmxHDgtW.cjs.js.map +1 -0
- package/dist/chunks/{extract-style-props-B4hqila-.cjs.js → extract-style-props-BvvBKXOu.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-B4hqila-.cjs.js.map → extract-style-props-BvvBKXOu.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-BdibuNZ7.es.js → extract-style-props-CM4QZGaE.es.js} +2 -2
- package/dist/chunks/{extract-style-props-BdibuNZ7.es.js.map → extract-style-props-CM4QZGaE.es.js.map} +1 -1
- package/dist/chunks/{form-field-FdRNl2bZ.cjs.js → form-field-52--hhlj.cjs.js} +2 -2
- package/dist/chunks/{form-field-FdRNl2bZ.cjs.js.map → form-field-52--hhlj.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-BfDU18h3.es.js → form-field-DCWDyNJx.es.js} +2 -2
- package/dist/chunks/{form-field-BfDU18h3.es.js.map → form-field-DCWDyNJx.es.js.map} +1 -1
- package/dist/chunks/{icon-button-CeB8_Yyr.cjs.js → icon-button-5pYAEokc.cjs.js} +2 -2
- package/dist/chunks/{icon-button-CeB8_Yyr.cjs.js.map → icon-button-5pYAEokc.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-CosIm3oY.es.js → icon-button-DhHKxd27.es.js} +2 -2
- package/dist/chunks/{icon-button-CosIm3oY.es.js.map → icon-button-DhHKxd27.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-C4Tnlt4t.cjs.js → icon-toggle-button-BsQzSrKe.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-C4Tnlt4t.cjs.js.map → icon-toggle-button-BsQzSrKe.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-8fX8JAXp.es.js → icon-toggle-button-C7HZUXh5.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-8fX8JAXp.es.js.map → icon-toggle-button-C7HZUXh5.es.js.map} +1 -1
- package/dist/chunks/{index-CVXB9mwf.cjs.js → index-CBRmb4jF.cjs.js} +2 -2
- package/dist/chunks/index-CBRmb4jF.cjs.js.map +1 -0
- package/dist/chunks/{index-C2qW4ynb.es.js → index-D3KlpJA5.es.js} +3 -3
- package/dist/chunks/index-D3KlpJA5.es.js.map +1 -0
- package/dist/chunks/{localized-field-D78l88ux.cjs.js → localized-field-BJTWKclB.cjs.js} +2 -2
- package/dist/chunks/{localized-field-D78l88ux.cjs.js.map → localized-field-BJTWKclB.cjs.js.map} +1 -1
- package/dist/chunks/{localized-field-DdeHzXdh.es.js → localized-field-CHXN7Zf1.es.js} +8 -8
- package/dist/chunks/{localized-field-DdeHzXdh.es.js.map → localized-field-CHXN7Zf1.es.js.map} +1 -1
- package/dist/chunks/{menu-Dno8yFDE.cjs.js → menu-Cu7gIVGQ.cjs.js} +2 -2
- package/dist/chunks/{menu-Dno8yFDE.cjs.js.map → menu-Cu7gIVGQ.cjs.js.map} +1 -1
- package/dist/chunks/{menu-Zlnps1eW.es.js → menu-SxqgiwJf.es.js} +2 -2
- package/dist/chunks/{menu-Zlnps1eW.es.js.map → menu-SxqgiwJf.es.js.map} +1 -1
- package/dist/chunks/{money-input-D65vrUj4.es.js → money-input-B5kFhLR0.es.js} +15 -15
- package/dist/chunks/{money-input-D65vrUj4.es.js.map → money-input-B5kFhLR0.es.js.map} +1 -1
- package/dist/chunks/{money-input-C9eVmgeL.cjs.js → money-input-CBKb1D73.cjs.js} +2 -2
- package/dist/chunks/{money-input-C9eVmgeL.cjs.js.map → money-input-CBKb1D73.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-field-CSnaaDk-.es.js → money-input-field-0vXOOTvx.es.js} +3 -3
- package/dist/chunks/{money-input-field-CSnaaDk-.es.js.map → money-input-field-0vXOOTvx.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-BGZ_9HKh.cjs.js → money-input-field-DjpKPCGo.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-BGZ_9HKh.cjs.js.map → money-input-field-DjpKPCGo.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-CULLuZBp.cjs.js → multiline-text-input-DN9yF7Di.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-CULLuZBp.cjs.js.map → multiline-text-input-DN9yF7Di.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-CrDTYrM3.es.js → multiline-text-input-DkruVK6m.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-CrDTYrM3.es.js.map → multiline-text-input-DkruVK6m.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-BX-w2v1Y.cjs.js → multiline-text-input-field-QLmo_I6Q.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-BX-w2v1Y.cjs.js.map → multiline-text-input-field-QLmo_I6Q.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-C6UTl_c8.es.js → multiline-text-input-field-ipwTTNg6.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-C6UTl_c8.es.js.map → multiline-text-input-field-ipwTTNg6.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-S02SpkpM.es.js → nimbus-provider-4H3HucGg.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-S02SpkpM.es.js.map → nimbus-provider-4H3HucGg.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-Dnu5ohMR.cjs.js → nimbus-provider-CbD64J_V.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-Dnu5ohMR.cjs.js.map → nimbus-provider-CbD64J_V.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CR1hdy-B.cjs.js → number-input-B29DJ2_U.cjs.js} +2 -2
- package/dist/chunks/{number-input-CR1hdy-B.cjs.js.map → number-input-B29DJ2_U.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-Dp13Mn-8.es.js → number-input-BVTqEzzS.es.js} +3 -3
- package/dist/chunks/{number-input-Dp13Mn-8.es.js.map → number-input-BVTqEzzS.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-BDNpAP6t.cjs.js → number-input-field-DHBy_GKG.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-BDNpAP6t.cjs.js.map → number-input-field-DHBy_GKG.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-C90uFO4e.es.js → number-input-field-DenXeCQQ.es.js} +3 -3
- package/dist/chunks/{number-input-field-C90uFO4e.es.js.map → number-input-field-DenXeCQQ.es.js.map} +1 -1
- package/dist/chunks/{pagination-BlrGdyD5.es.js → pagination-BjUXs0hd.es.js} +4 -4
- package/dist/chunks/{pagination-BlrGdyD5.es.js.map → pagination-BjUXs0hd.es.js.map} +1 -1
- package/dist/chunks/{pagination-BIxlGft7.cjs.js → pagination-D8Tn2HGh.cjs.js} +2 -2
- package/dist/chunks/{pagination-BIxlGft7.cjs.js.map → pagination-D8Tn2HGh.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-BVbQ42NG.cjs.js → password-input-DQM-caak.cjs.js} +2 -2
- package/dist/chunks/{password-input-BVbQ42NG.cjs.js.map → password-input-DQM-caak.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-XXaNUALk.es.js → password-input-field-CNLpabCL.es.js} +3 -3
- package/dist/chunks/{password-input-field-XXaNUALk.es.js.map → password-input-field-CNLpabCL.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-B5lWzWAQ.cjs.js → password-input-field-CgQEW15R.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-B5lWzWAQ.cjs.js.map → password-input-field-CgQEW15R.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-8bkpGOIX.es.js → password-input-vu3kFdzW.es.js} +3 -3
- package/dist/chunks/{password-input-8bkpGOIX.es.js.map → password-input-vu3kFdzW.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-dRKyuT1-.cjs.js → progress-bar-CMRmoNou.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-dRKyuT1-.cjs.js.map → progress-bar-CMRmoNou.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-C2ZnGdLv.es.js → progress-bar-D99U1mF3.es.js} +2 -2
- package/dist/chunks/{progress-bar-C2ZnGdLv.es.js.map → progress-bar-D99U1mF3.es.js.map} +1 -1
- package/dist/chunks/{radio-input-BecbxXcF.cjs.js → radio-input-B91hQHjX.cjs.js} +2 -2
- package/dist/chunks/{radio-input-BecbxXcF.cjs.js.map → radio-input-B91hQHjX.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-DV-hhL4S.es.js → radio-input-S4OwAttR.es.js} +3 -3
- package/dist/chunks/{radio-input-DV-hhL4S.es.js.map → radio-input-S4OwAttR.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-CEIaa08T.es.js → range-calendar-qoiJRxsH.es.js} +4 -4
- package/dist/chunks/{range-calendar-CEIaa08T.es.js.map → range-calendar-qoiJRxsH.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-Dq5Gtsb6.cjs.js → range-calendar-tLrCZyTQ.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-Dq5Gtsb6.cjs.js.map → range-calendar-tLrCZyTQ.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-CRGUa5d2.es.js → rich-text-input-COjV3y9x.es.js} +8 -8
- package/dist/chunks/{rich-text-input-CRGUa5d2.es.js.map → rich-text-input-COjV3y9x.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-Dml5F7pU.cjs.js → rich-text-input-Cx9u2DDm.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-Dml5F7pU.cjs.js.map → rich-text-input-Cx9u2DDm.cjs.js.map} +1 -1
- package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js +2 -0
- package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js.map +1 -0
- package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js +151 -0
- package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js.map +1 -0
- package/dist/chunks/{search-input-BDUJ48BC.es.js → search-input-Ba7KSi4m.es.js} +4 -4
- package/dist/chunks/{search-input-BDUJ48BC.es.js.map → search-input-Ba7KSi4m.es.js.map} +1 -1
- package/dist/chunks/{search-input-BNXlpYtP.cjs.js → search-input-DrTdsAJB.cjs.js} +2 -2
- package/dist/chunks/{search-input-BNXlpYtP.cjs.js.map → search-input-DrTdsAJB.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-v60x1oiw.cjs.js → search-input-field-Dan6FtWD.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-v60x1oiw.cjs.js.map → search-input-field-Dan6FtWD.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-CEemw2P1.es.js → search-input-field-G080Ti8W.es.js} +3 -3
- package/dist/chunks/{search-input-field-CEemw2P1.es.js.map → search-input-field-G080Ti8W.es.js.map} +1 -1
- package/dist/chunks/{select-D9yYDW0d.es.js → select-B3w10lhg.es.js} +4 -4
- package/dist/chunks/{select-D9yYDW0d.es.js.map → select-B3w10lhg.es.js.map} +1 -1
- package/dist/chunks/{select-Dq_6o0BB.cjs.js → select-DzHoPh1S.cjs.js} +2 -2
- package/dist/chunks/{select-Dq_6o0BB.cjs.js.map → select-DzHoPh1S.cjs.js.map} +1 -1
- package/dist/chunks/{separator-u_4por07.cjs.js → separator-D0uGdP2M.cjs.js} +2 -2
- package/dist/chunks/{separator-u_4por07.cjs.js.map → separator-D0uGdP2M.cjs.js.map} +1 -1
- package/dist/chunks/{separator-BJ9k_D4l.es.js → separator-DX_ZJMkp.es.js} +3 -3
- package/dist/chunks/{separator-BJ9k_D4l.es.js.map → separator-DX_ZJMkp.es.js.map} +1 -1
- package/dist/chunks/{split-button-C94SY3qF.es.js → split-button-BGDUOZcq.es.js} +4 -4
- package/dist/chunks/{split-button-C94SY3qF.es.js.map → split-button-BGDUOZcq.es.js.map} +1 -1
- package/dist/chunks/{split-button-B4gVhpP9.cjs.js → split-button-Cu7MwPgo.cjs.js} +2 -2
- package/dist/chunks/{split-button-B4gVhpP9.cjs.js.map → split-button-Cu7MwPgo.cjs.js.map} +1 -1
- package/dist/chunks/{switch-Nn1Fbk5O.es.js → switch-GD8BjCPZ.es.js} +3 -3
- package/dist/chunks/{switch-Nn1Fbk5O.es.js.map → switch-GD8BjCPZ.es.js.map} +1 -1
- package/dist/chunks/{switch-CsiG41ZR.cjs.js → switch-dDLFRsag.cjs.js} +2 -2
- package/dist/chunks/{switch-CsiG41ZR.cjs.js.map → switch-dDLFRsag.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-D0OPeQ_J.es.js → tabs-Dh_AK8jc.es.js} +38 -33
- package/dist/chunks/{tabs-D0OPeQ_J.es.js.map → tabs-Dh_AK8jc.es.js.map} +1 -1
- package/dist/chunks/tabs-Dxwwd4jH.cjs.js +2 -0
- package/dist/chunks/{tabs-iV08OTqG.cjs.js.map → tabs-Dxwwd4jH.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-BE8d6xcP.es.js → tag-group-CMfyCIc3.es.js} +2 -2
- package/dist/chunks/{tag-group-BE8d6xcP.es.js.map → tag-group-CMfyCIc3.es.js.map} +1 -1
- package/dist/chunks/{tag-group-BI8_32rM.cjs.js → tag-group-rbUwxsaP.cjs.js} +2 -2
- package/dist/chunks/{tag-group-BI8_32rM.cjs.js.map → tag-group-rbUwxsaP.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-CCiZeQad.es.js → text-input-UaixbZjE.es.js} +3 -3
- package/dist/chunks/{text-input-CCiZeQad.es.js.map → text-input-UaixbZjE.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-Cmht3hDK.cjs.js → text-input-field-C_Ykb6V3.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-Cmht3hDK.cjs.js.map → text-input-field-C_Ykb6V3.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-6Cj35cYL.es.js → text-input-field-ChGQsEAJ.es.js} +3 -3
- package/dist/chunks/{text-input-field-6Cj35cYL.es.js.map → text-input-field-ChGQsEAJ.es.js.map} +1 -1
- package/dist/chunks/{text-input-BlxK2Naj.cjs.js → text-input-n7jUFat6.cjs.js} +2 -2
- package/dist/chunks/{text-input-BlxK2Naj.cjs.js.map → text-input-n7jUFat6.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-9Q5vV4UD.cjs.js → time-input-G64QnJLm.cjs.js} +2 -2
- package/dist/chunks/{time-input-9Q5vV4UD.cjs.js.map → time-input-G64QnJLm.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-CCuIFoY2.es.js → time-input-T4jAE9kM.es.js} +3 -3
- package/dist/chunks/{time-input-CCuIFoY2.es.js.map → time-input-T4jAE9kM.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-UcXy5q2C.es.js → toggle-button-J0Vys1xC.es.js} +3 -3
- package/dist/chunks/{toggle-button-UcXy5q2C.es.js.map → toggle-button-J0Vys1xC.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-L7i1XaWg.cjs.js → toggle-button-aX7Gr-Ib.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-L7i1XaWg.cjs.js.map → toggle-button-aX7Gr-Ib.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-D4fLFiSb.cjs.js → toolbar-Bw9mLuBU.cjs.js} +2 -2
- package/dist/chunks/{toolbar-D4fLFiSb.cjs.js.map → toolbar-Bw9mLuBU.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-C7-6gqba.es.js → toolbar-QZSD0kko.es.js} +3 -3
- package/dist/chunks/{toolbar-C7-6gqba.es.js.map → toolbar-QZSD0kko.es.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- 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.body.d.ts +1 -1
- package/dist/components/data-table/components/data-table.header.d.ts +1 -1
- package/dist/components/data-table/components/data-table.table.d.ts +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -3
- package/dist/components/data-table/data-table.i18n.d.ts +5 -0
- package/dist/components/data-table/data-table.messages.d.ts +1 -1
- package/dist/components/data-table/intl/de.d.ts +1 -0
- package/dist/components/data-table/intl/en.d.ts +1 -0
- package/dist/components/data-table/intl/es.d.ts +1 -0
- package/dist/components/data-table/intl/fr-FR.d.ts +1 -0
- package/dist/components/data-table/intl/pt-BR.d.ts +1 -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.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- 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.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +7 -7
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.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/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- 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-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-field.cjs +1 -1
- package/dist/components/number-input-field.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input-field.cjs +1 -1
- package/dist/components/password-input-field.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +7 -7
- package/dist/components/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.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input-field.cjs +1 -1
- package/dist/components/search-input-field.es.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select.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.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- 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.types.d.ts +5 -0
- 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.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/index.cjs +1 -1
- package/dist/index.es.js +53 -53
- package/dist/setup-jsdom-polyfills.cjs +1 -1
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js +17 -0
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunks/combobox-B7ck7gxL.cjs.js +0 -2
- package/dist/chunks/combobox-B7ck7gxL.cjs.js.map +0 -1
- package/dist/chunks/combobox-vjauyzlS.es.js.map +0 -1
- package/dist/chunks/data-table-CBZLbe9h.cjs.js +0 -2
- package/dist/chunks/drawer-BPcEUbUt.es.js.map +0 -1
- package/dist/chunks/drawer-DbSJSCl_.cjs.js +0 -2
- package/dist/chunks/drawer-DbSJSCl_.cjs.js.map +0 -1
- package/dist/chunks/index-C2qW4ynb.es.js.map +0 -1
- package/dist/chunks/index-CVXB9mwf.cjs.js.map +0 -1
- package/dist/chunks/scoped-search-input-CSpFefUJ.es.js +0 -147
- package/dist/chunks/scoped-search-input-CSpFefUJ.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js +0 -2
- package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js.map +0 -1
- package/dist/chunks/tabs-iV08OTqG.cjs.js +0 -2
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as w } from "react/jsx-runtime";
|
|
2
|
-
import { useId as H, useRef as J, useCallback as d } from "react";
|
|
3
|
-
import { useSlotRecipe as Q } from "@chakra-ui/react/styled-system";
|
|
4
|
-
import { S as o } from "./select-D9yYDW0d.es.js";
|
|
5
|
-
import { S as U } from "./search-input-BDUJ48BC.es.js";
|
|
6
|
-
import { e as X } from "./extract-style-props-BdibuNZ7.es.js";
|
|
7
|
-
import { f as Y } from "./index-C2qW4ynb.es.js";
|
|
8
|
-
import { createSlotRecipeContext as Z } from "@chakra-ui/react";
|
|
9
|
-
import { n as c, u as ee } from "./normalize-messages-D5T4I93D.es.js";
|
|
10
|
-
const { withProvider: ae, withContext: S } = /* @__PURE__ */ Z({
|
|
11
|
-
key: "scopedSearchInput"
|
|
12
|
-
}), re = /* @__PURE__ */ ae("div", "root"), te = /* @__PURE__ */ S(
|
|
13
|
-
"div",
|
|
14
|
-
"container"
|
|
15
|
-
), se = /* @__PURE__ */ S(
|
|
16
|
-
"div",
|
|
17
|
-
"selectWrapper"
|
|
18
|
-
), oe = /* @__PURE__ */ S(
|
|
19
|
-
"div",
|
|
20
|
-
"searchWrapper"
|
|
21
|
-
), ce = (s) => !s.text || s.text.trim().length === 0, le = { searchLabel: "Search", selectLabel: "Filter by" }, ne = { searchLabel: "Suche", selectLabel: "Filtern nach" }, ie = { searchLabel: "Buscar", selectLabel: "Filtrar por" }, pe = { searchLabel: "Rechercher", selectLabel: "Filtrer par" }, de = { searchLabel: "Pesquisa", selectLabel: "Filtrar por" }, he = {
|
|
22
|
-
en: /* @__PURE__ */ c(le),
|
|
23
|
-
de: /* @__PURE__ */ c(ne),
|
|
24
|
-
es: /* @__PURE__ */ c(ie),
|
|
25
|
-
"fr-FR": /* @__PURE__ */ c(pe),
|
|
26
|
-
"pt-BR": /* @__PURE__ */ c(de)
|
|
27
|
-
}, F = (s) => {
|
|
28
|
-
const {
|
|
29
|
-
value: r,
|
|
30
|
-
onValueChange: l,
|
|
31
|
-
onTextChange: m,
|
|
32
|
-
onOptionChange: g,
|
|
33
|
-
onSubmit: f,
|
|
34
|
-
onReset: I,
|
|
35
|
-
options: M,
|
|
36
|
-
selectPlaceholder: D,
|
|
37
|
-
searchPlaceholder: O,
|
|
38
|
-
selectAriaLabel: _,
|
|
39
|
-
searchAriaLabel: W,
|
|
40
|
-
isClearable: z = !0,
|
|
41
|
-
isDisabled: n,
|
|
42
|
-
isReadOnly: i,
|
|
43
|
-
isInvalid: j,
|
|
44
|
-
isRequired: y,
|
|
45
|
-
id: k,
|
|
46
|
-
"aria-describedby": C,
|
|
47
|
-
"aria-labelledby": L,
|
|
48
|
-
size: R
|
|
49
|
-
} = s, v = ee(he), q = Q({ recipe: Y }), [A, B] = q.splitVariantProps(s), [E, T] = X(B), V = H(), x = k || V, $ = `${x}-select`, P = `${x}-search`, h = J(null), u = d(
|
|
50
|
-
(e) => {
|
|
51
|
-
m?.(e), l?.({ ...r, text: e });
|
|
52
|
-
},
|
|
53
|
-
[r, m, l]
|
|
54
|
-
), G = d(
|
|
55
|
-
(e) => {
|
|
56
|
-
if (e === null) return;
|
|
57
|
-
const t = String(e);
|
|
58
|
-
g?.(t), l?.({ ...r, option: t }), h.current && !n && !i && setTimeout(() => {
|
|
59
|
-
h.current?.focus();
|
|
60
|
-
}, 0);
|
|
61
|
-
},
|
|
62
|
-
[r, g, l, n, i]
|
|
63
|
-
), K = d(() => {
|
|
64
|
-
f(r);
|
|
65
|
-
}, [r, f]), N = d(() => {
|
|
66
|
-
I?.(), u("");
|
|
67
|
-
}, [I, u]);
|
|
68
|
-
return /* @__PURE__ */ a(
|
|
69
|
-
re,
|
|
70
|
-
{
|
|
71
|
-
...A,
|
|
72
|
-
...E,
|
|
73
|
-
...T,
|
|
74
|
-
children: /* @__PURE__ */ w(te, { children: [
|
|
75
|
-
/* @__PURE__ */ a(se, { asChild: !0, children: /* @__PURE__ */ a(
|
|
76
|
-
o.Root,
|
|
77
|
-
{
|
|
78
|
-
id: $,
|
|
79
|
-
selectedKey: r.option,
|
|
80
|
-
onSelectionChange: i ? void 0 : G,
|
|
81
|
-
placeholder: D,
|
|
82
|
-
"aria-label": _ || v.format("selectLabel"),
|
|
83
|
-
"aria-controls": P,
|
|
84
|
-
"aria-describedby": C,
|
|
85
|
-
"aria-labelledby": L,
|
|
86
|
-
size: R,
|
|
87
|
-
isClearable: !1,
|
|
88
|
-
isDisabled: n,
|
|
89
|
-
isRequired: y,
|
|
90
|
-
children: /* @__PURE__ */ a(o.Options, { children: M.map(
|
|
91
|
-
(e) => {
|
|
92
|
-
if ("options" in e) {
|
|
93
|
-
const b = e;
|
|
94
|
-
return /* @__PURE__ */ a(o.OptionGroup, { label: b.label, children: b.options.map((p) => /* @__PURE__ */ a(
|
|
95
|
-
o.Option,
|
|
96
|
-
{
|
|
97
|
-
id: p.value,
|
|
98
|
-
isDisabled: p.isDisabled,
|
|
99
|
-
children: p.label
|
|
100
|
-
},
|
|
101
|
-
p.value
|
|
102
|
-
)) }, b.label);
|
|
103
|
-
}
|
|
104
|
-
const t = e;
|
|
105
|
-
return /* @__PURE__ */ a(
|
|
106
|
-
o.Option,
|
|
107
|
-
{
|
|
108
|
-
id: t.value,
|
|
109
|
-
isDisabled: t.isDisabled,
|
|
110
|
-
children: t.label
|
|
111
|
-
},
|
|
112
|
-
t.value
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
) })
|
|
116
|
-
}
|
|
117
|
-
) }),
|
|
118
|
-
/* @__PURE__ */ a(oe, { asChild: !0, children: /* @__PURE__ */ a(
|
|
119
|
-
U,
|
|
120
|
-
{
|
|
121
|
-
ref: h,
|
|
122
|
-
id: P,
|
|
123
|
-
value: r.text,
|
|
124
|
-
onChange: u,
|
|
125
|
-
onSubmit: K,
|
|
126
|
-
onClear: z ? N : void 0,
|
|
127
|
-
placeholder: O,
|
|
128
|
-
"aria-label": W || v.format("searchLabel"),
|
|
129
|
-
"aria-describedby": C,
|
|
130
|
-
"aria-labelledby": L,
|
|
131
|
-
size: R,
|
|
132
|
-
isDisabled: n,
|
|
133
|
-
isReadOnly: i,
|
|
134
|
-
isInvalid: j,
|
|
135
|
-
isRequired: y
|
|
136
|
-
}
|
|
137
|
-
) })
|
|
138
|
-
] })
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
};
|
|
142
|
-
F.isEmpty = ce;
|
|
143
|
-
F.displayName = "ScopedSearchInput";
|
|
144
|
-
export {
|
|
145
|
-
F as S
|
|
146
|
-
};
|
|
147
|
-
//# sourceMappingURL=scoped-search-input-CSpFefUJ.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-search-input-CSpFefUJ.es.js","sources":["../../src/components/scoped-search-input/scoped-search-input.slots.tsx","../../src/components/scoped-search-input/utils/helpers.ts","../../src/components/scoped-search-input/intl/en.ts","../../src/components/scoped-search-input/intl/de.ts","../../src/components/scoped-search-input/intl/es.ts","../../src/components/scoped-search-input/intl/fr-FR.ts","../../src/components/scoped-search-input/intl/pt-BR.ts","../../src/components/scoped-search-input/scoped-search-input.messages.ts","../../src/components/scoped-search-input/scoped-search-input.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n ScopedSearchInputRootSlotProps,\n ScopedSearchInputContainerSlotProps,\n ScopedSearchInputSelectWrapperSlotProps,\n ScopedSearchInputSearchWrapperSlotProps,\n} from \"./scoped-search-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"scopedSearchInput\",\n});\n\nexport const ScopedSearchInputRootSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputRootSlotProps\n> = withProvider<HTMLDivElement, ScopedSearchInputRootSlotProps>(\"div\", \"root\");\n\nexport const ScopedSearchInputContainerSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputContainerSlotProps\n> = withContext<HTMLDivElement, ScopedSearchInputContainerSlotProps>(\n \"div\",\n \"container\"\n);\n\nexport const ScopedSearchInputSelectWrapperSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputSelectWrapperSlotProps\n> = withContext<HTMLDivElement, ScopedSearchInputSelectWrapperSlotProps>(\n \"div\",\n \"selectWrapper\"\n);\n\nexport const ScopedSearchInputSearchWrapperSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputSearchWrapperSlotProps\n> = withContext<HTMLDivElement, ScopedSearchInputSearchWrapperSlotProps>(\n \"div\",\n \"searchWrapper\"\n);\n","import type { ScopedSearchInputValue } from \"../scoped-search-input.types\";\n\n/**\n * Check if the search text is empty or only whitespace\n */\nexport const isEmpty = (value: ScopedSearchInputValue): boolean => {\n return !value.text || value.text.trim().length === 0;\n};\n","/**\n * Pre-compiled en messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Search`, selectLabel: `Filter by` };\n","/**\n * Pre-compiled de messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Suche`, selectLabel: `Filtern nach` };\n","/**\n * Pre-compiled es messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Buscar`, selectLabel: `Filtrar por` };\n","/**\n * Pre-compiled fr-FR messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Rechercher`, selectLabel: `Filtrer par` };\n","/**\n * Pre-compiled pt-BR messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Pesquisa`, selectLabel: `Filtrar por` };\n","/**\n * Pre-compiled localized messages for ScopedSearchInput component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport scopedSearchInputMessages_en from \"./intl/en\";\nimport scopedSearchInputMessages_de from \"./intl/de\";\nimport scopedSearchInputMessages_es from \"./intl/es\";\nimport scopedSearchInputMessages_fr from \"./intl/fr-FR\";\nimport scopedSearchInputMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const scopedSearchInputMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(scopedSearchInputMessages_en),\n de: normalizeMessages(scopedSearchInputMessages_de),\n es: normalizeMessages(scopedSearchInputMessages_es),\n \"fr-FR\": normalizeMessages(scopedSearchInputMessages_fr),\n \"pt-BR\": normalizeMessages(scopedSearchInputMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for ScopedSearchInput component\n */\nexport type ScopedSearchInputMessageKey = \"searchLabel\" | \"selectLabel\";\n","import { useCallback, useId, useRef } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { Select } from \"@/components/select/select\";\nimport { SearchInput } from \"@/components/search-input/search-input\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { scopedSearchInputSlotRecipe } from \"./scoped-search-input.recipe\";\nimport {\n ScopedSearchInputRootSlot,\n ScopedSearchInputContainerSlot,\n ScopedSearchInputSelectWrapperSlot,\n ScopedSearchInputSearchWrapperSlot,\n} from \"./scoped-search-input.slots\";\nimport type {\n ScopedSearchInputProps,\n ScopedSearchInputOption,\n ScopedSearchInputOptionGroup,\n} from \"./scoped-search-input.types\";\nimport { isEmpty } from \"./utils/helpers\";\nimport { scopedSearchInputMessagesStrings } from \"./scoped-search-input.messages\";\n\n/**\n * ScopedSearchInput\n * ============================================================\n * A combined input component that integrates a select dropdown with a search input field,\n * enabling users to filter search by category or field type.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/scoped-search-input}\n *\n * @supportsStyleProps\n */\nexport const ScopedSearchInput = (props: ScopedSearchInputProps) => {\n const {\n value,\n onValueChange,\n onTextChange,\n onOptionChange,\n onSubmit,\n onReset,\n options,\n selectPlaceholder,\n searchPlaceholder,\n selectAriaLabel,\n searchAriaLabel,\n isClearable = true,\n isDisabled,\n isReadOnly,\n isInvalid,\n isRequired,\n id,\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n size,\n } = props;\n\n const msg = useLocalizedStringFormatter(scopedSearchInputMessagesStrings);\n\n // Split recipe props\n const recipe = useSlotRecipe({ recipe: scopedSearchInputSlotRecipe });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Extract style props\n const [styleProps, remainingProps] = extractStyleProps(restRecipeProps);\n\n // Generate unique IDs for ARIA relationships\n const generatedId = useId();\n const componentId = id || generatedId;\n const selectId = `${componentId}-select`;\n const searchId = `${componentId}-search`;\n\n // Ref for search input to enable auto-focus on option selection\n const searchInputRef = useRef<HTMLInputElement>(null);\n\n // Event handlers that coordinate state\n const handleTextChange = useCallback(\n (newText: string) => {\n onTextChange?.(newText);\n onValueChange?.({ ...value, text: newText });\n },\n [value, onTextChange, onValueChange]\n );\n\n const handleOptionChange = useCallback(\n (newOption: React.Key | null) => {\n if (newOption === null) return;\n const optionString = String(newOption);\n onOptionChange?.(optionString);\n onValueChange?.({ ...value, option: optionString });\n\n // Auto-focus search input after option selection (unless disabled/readonly)\n if (searchInputRef.current && !isDisabled && !isReadOnly) {\n // Use setTimeout to ensure focus happens after React Aria's state updates\n setTimeout(() => {\n searchInputRef.current?.focus();\n }, 0);\n }\n },\n [value, onOptionChange, onValueChange, isDisabled, isReadOnly]\n );\n\n const handleSubmit = useCallback(() => {\n onSubmit(value);\n }, [value, onSubmit]);\n\n const handleReset = useCallback(() => {\n onReset?.();\n // Clear text but keep selected option\n handleTextChange(\"\");\n }, [onReset, handleTextChange]);\n\n return (\n <ScopedSearchInputRootSlot\n {...recipeProps}\n {...styleProps}\n {...remainingProps}\n >\n <ScopedSearchInputContainerSlot>\n {/* Select Dropdown (Left) */}\n <ScopedSearchInputSelectWrapperSlot asChild>\n <Select.Root\n id={selectId}\n selectedKey={value.option}\n onSelectionChange={isReadOnly ? undefined : handleOptionChange}\n placeholder={selectPlaceholder}\n aria-label={selectAriaLabel || msg.format(\"selectLabel\")}\n aria-controls={searchId}\n aria-describedby={ariaDescribedby}\n aria-labelledby={ariaLabelledby}\n size={size}\n isClearable={false}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n <Select.Options>\n {options.map(\n (\n item: ScopedSearchInputOption | ScopedSearchInputOptionGroup\n ) => {\n // Check if it's an option group\n if (\"options\" in item) {\n const group = item as ScopedSearchInputOptionGroup;\n return (\n <Select.OptionGroup key={group.label} label={group.label}>\n {group.options.map((opt: ScopedSearchInputOption) => (\n <Select.Option\n key={opt.value}\n id={opt.value}\n isDisabled={opt.isDisabled}\n >\n {opt.label}\n </Select.Option>\n ))}\n </Select.OptionGroup>\n );\n }\n // Regular option\n const option = item as ScopedSearchInputOption;\n return (\n <Select.Option\n key={option.value}\n id={option.value}\n isDisabled={option.isDisabled}\n >\n {option.label}\n </Select.Option>\n );\n }\n )}\n </Select.Options>\n </Select.Root>\n </ScopedSearchInputSelectWrapperSlot>\n\n {/* Search Input (Right) */}\n <ScopedSearchInputSearchWrapperSlot asChild>\n <SearchInput\n ref={searchInputRef}\n id={searchId}\n value={value.text}\n onChange={handleTextChange}\n onSubmit={handleSubmit}\n onClear={isClearable ? handleReset : undefined}\n placeholder={searchPlaceholder}\n aria-label={searchAriaLabel || msg.format(\"searchLabel\")}\n aria-describedby={ariaDescribedby}\n aria-labelledby={ariaLabelledby}\n size={size}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={isInvalid}\n isRequired={isRequired}\n />\n </ScopedSearchInputSearchWrapperSlot>\n </ScopedSearchInputContainerSlot>\n </ScopedSearchInputRootSlot>\n );\n};\n\n// Static methods\nScopedSearchInput.isEmpty = isEmpty;\n\n// Display name\nScopedSearchInput.displayName = \"ScopedSearchInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","ScopedSearchInputRootSlot","ScopedSearchInputContainerSlot","ScopedSearchInputSelectWrapperSlot","ScopedSearchInputSearchWrapperSlot","isEmpty","value","scopedSearchInputMessages_en","scopedSearchInputMessages_de","scopedSearchInputMessages_es","scopedSearchInputMessages_fr","scopedSearchInputMessages_pt","scopedSearchInputMessagesStrings","normalizeMessages","ScopedSearchInput","props","onValueChange","onTextChange","onOptionChange","onSubmit","onReset","options","selectPlaceholder","searchPlaceholder","selectAriaLabel","searchAriaLabel","isClearable","isDisabled","isReadOnly","isInvalid","isRequired","id","ariaDescribedby","ariaLabelledby","size","msg","useLocalizedStringFormatter","recipe","useSlotRecipe","scopedSearchInputSlotRecipe","recipeProps","restRecipeProps","styleProps","remainingProps","extractStyleProps","generatedId","useId","componentId","selectId","searchId","searchInputRef","useRef","handleTextChange","useCallback","newText","handleOptionChange","newOption","optionString","handleSubmit","handleReset","jsx","Select","item","group","opt","option","SearchInput"],"mappings":";;;;;;;;;AASA,MAAM,EAAE,cAAAA,IAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,KAGT,gBAAAH,GAA6D,OAAO,MAAM,GAEjEI,KAGT,gBAAAH;AAAA,EACF;AAAA,EACA;AACF,GAEaI,KAGT,gBAAAJ;AAAA,EACF;AAAA,EACA;AACF,GAEaK,KAGT,gBAAAL;AAAA,EACF;AAAA,EACA;AACF,GCnCaM,KAAU,CAACC,MACf,CAACA,EAAM,QAAQA,EAAM,KAAK,KAAA,EAAO,WAAW,GCArDC,KAAe,EAAE,aAAa,UAAU,aAAa,YAAA,GCArDC,KAAe,EAAE,aAAa,SAAS,aAAa,eAAA,GCApDC,KAAe,EAAE,aAAa,UAAU,aAAa,cAAA,GCArDC,KAAe,EAAE,aAAa,cAAc,aAAa,cAAA,GCAzDC,KAAe,EAAE,aAAa,YAAY,aAAa,cAAA,GCiB1CC,KAGT;AAAA,EACF,IAAI,gBAAAC,EAAkBN,EAA4B;AAAA,EAClD,IAAI,gBAAAM,EAAkBL,EAA4B;AAAA,EAClD,IAAI,gBAAAK,EAAkBJ,EAA4B;AAAA,EAClD,SAAS,gBAAAI,EAAkBH,EAA4B;AAAA,EACvD,SAAS,gBAAAG,EAAkBF,EAA4B;AACzD,GCDaG,IAAoB,CAACC,MAAkC;AAClE,QAAM;AAAA,IACJ,OAAAT;AAAA,IACA,eAAAU;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,IAAAC;AAAA,IACA,oBAAoBC;AAAA,IACpB,mBAAmBC;AAAA,IACnB,MAAAC;AAAA,EAAA,IACEnB,GAEEoB,IAAMC,GAA4BxB,EAAgC,GAGlEyB,IAASC,EAAc,EAAE,QAAQC,GAA6B,GAC9D,CAACC,GAAaC,CAAe,IAAIJ,EAAO,kBAAkBtB,CAAK,GAG/D,CAAC2B,GAAYC,CAAc,IAAIC,EAAkBH,CAAe,GAGhEI,IAAcC,EAAA,GACdC,IAAchB,KAAMc,GACpBG,IAAW,GAAGD,CAAW,WACzBE,IAAW,GAAGF,CAAW,WAGzBG,IAAiBC,EAAyB,IAAI,GAG9CC,IAAmBC;AAAA,IACvB,CAACC,MAAoB;AACnB,MAAArC,IAAeqC,CAAO,GACtBtC,IAAgB,EAAE,GAAGV,GAAO,MAAMgD,GAAS;AAAA,IAC7C;AAAA,IACA,CAAChD,GAAOW,GAAcD,CAAa;AAAA,EAAA,GAG/BuC,IAAqBF;AAAA,IACzB,CAACG,MAAgC;AAC/B,UAAIA,MAAc,KAAM;AACxB,YAAMC,IAAe,OAAOD,CAAS;AACrC,MAAAtC,IAAiBuC,CAAY,GAC7BzC,IAAgB,EAAE,GAAGV,GAAO,QAAQmD,GAAc,GAG9CP,EAAe,WAAW,CAACvB,KAAc,CAACC,KAE5C,WAAW,MAAM;AACf,QAAAsB,EAAe,SAAS,MAAA;AAAA,MAC1B,GAAG,CAAC;AAAA,IAER;AAAA,IACA,CAAC5C,GAAOY,GAAgBF,GAAeW,GAAYC,CAAU;AAAA,EAAA,GAGzD8B,IAAeL,EAAY,MAAM;AACrC,IAAAlC,EAASb,CAAK;AAAA,EAChB,GAAG,CAACA,GAAOa,CAAQ,CAAC,GAEdwC,IAAcN,EAAY,MAAM;AACpC,IAAAjC,IAAA,GAEAgC,EAAiB,EAAE;AAAA,EACrB,GAAG,CAAChC,GAASgC,CAAgB,CAAC;AAE9B,SACE,gBAAAQ;AAAA,IAAC3D;AAAA,IAAA;AAAA,MACE,GAAGuC;AAAA,MACH,GAAGE;AAAA,MACH,GAAGC;AAAA,MAEJ,4BAACzC,IAAA,EAEC,UAAA;AAAA,QAAA,gBAAA0D,EAACzD,IAAA,EAAmC,SAAO,IACzC,UAAA,gBAAAyD;AAAA,UAACC,EAAO;AAAA,UAAP;AAAA,YACC,IAAIb;AAAA,YACJ,aAAa1C,EAAM;AAAA,YACnB,mBAAmBsB,IAAa,SAAY2B;AAAA,YAC5C,aAAajC;AAAA,YACb,cAAYE,KAAmBW,EAAI,OAAO,aAAa;AAAA,YACvD,iBAAec;AAAA,YACf,oBAAkBjB;AAAA,YAClB,mBAAiBC;AAAA,YACjB,MAAAC;AAAA,YACA,aAAa;AAAA,YACb,YAAAP;AAAA,YACA,YAAAG;AAAA,YAEA,UAAA,gBAAA8B,EAACC,EAAO,SAAP,EACE,UAAAxC,EAAQ;AAAA,cACP,CACEyC,MACG;AAEH,oBAAI,aAAaA,GAAM;AACrB,wBAAMC,IAAQD;AACd,yBACE,gBAAAF,EAACC,EAAO,aAAP,EAAqC,OAAOE,EAAM,OAChD,UAAAA,EAAM,QAAQ,IAAI,CAACC,MAClB,gBAAAJ;AAAA,oBAACC,EAAO;AAAA,oBAAP;AAAA,sBAEC,IAAIG,EAAI;AAAA,sBACR,YAAYA,EAAI;AAAA,sBAEf,UAAAA,EAAI;AAAA,oBAAA;AAAA,oBAJAA,EAAI;AAAA,kBAAA,CAMZ,EAAA,GATsBD,EAAM,KAU/B;AAAA,gBAEJ;AAEA,sBAAME,IAASH;AACf,uBACE,gBAAAF;AAAA,kBAACC,EAAO;AAAA,kBAAP;AAAA,oBAEC,IAAII,EAAO;AAAA,oBACX,YAAYA,EAAO;AAAA,oBAElB,UAAAA,EAAO;AAAA,kBAAA;AAAA,kBAJHA,EAAO;AAAA,gBAAA;AAAA,cAOlB;AAAA,YAAA,EACF,CACF;AAAA,UAAA;AAAA,QAAA,GAEJ;AAAA,QAGA,gBAAAL,EAACxD,IAAA,EAAmC,SAAO,IACzC,UAAA,gBAAAwD;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,KAAKhB;AAAA,YACL,IAAID;AAAA,YACJ,OAAO3C,EAAM;AAAA,YACb,UAAU8C;AAAA,YACV,UAAUM;AAAA,YACV,SAAShC,IAAciC,IAAc;AAAA,YACrC,aAAapC;AAAA,YACb,cAAYE,KAAmBU,EAAI,OAAO,aAAa;AAAA,YACvD,oBAAkBH;AAAA,YAClB,mBAAiBC;AAAA,YACjB,MAAAC;AAAA,YACA,YAAAP;AAAA,YACA,YAAAC;AAAA,YACA,WAAAC;AAAA,YACA,YAAAC;AAAA,UAAA;AAAA,QAAA,EACF,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAGAhB,EAAkB,UAAUT;AAG5BS,EAAkB,cAAc;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("react"),w=require("@chakra-ui/react/styled-system"),n=require("./select-Dq_6o0BB.cjs.js"),H=require("./search-input-BNXlpYtP.cjs.js"),J=require("./extract-style-props-B4hqila-.cjs.js"),Q=require("./index-CVXB9mwf.cjs.js"),U=require("@chakra-ui/react"),c=require("./normalize-messages-CaDzkuUm.cjs.js"),{withProvider:X,withContext:S}=U.createSlotRecipeContext({key:"scopedSearchInput"}),Y=X("div","root"),Z=S("div","container"),ee=S("div","selectWrapper"),se=S("div","searchWrapper"),ae=l=>!l.text||l.text.trim().length===0,te={searchLabel:"Search",selectLabel:"Filter by"},re={searchLabel:"Suche",selectLabel:"Filtern nach"},ce={searchLabel:"Buscar",selectLabel:"Filtrar por"},le={searchLabel:"Rechercher",selectLabel:"Filtrer par"},ne={searchLabel:"Pesquisa",selectLabel:"Filtrar por"},oe={en:c.normalizeMessages(te),de:c.normalizeMessages(re),es:c.normalizeMessages(ce),"fr-FR":c.normalizeMessages(le),"pt-BR":c.normalizeMessages(ne)},g=l=>{const{value:a,onValueChange:o,onTextChange:I,onOptionChange:m,onSubmit:x,onReset:y,options:q,selectPlaceholder:P,searchPlaceholder:z,selectAriaLabel:F,searchAriaLabel:D,isClearable:O=!0,isDisabled:i,isReadOnly:d,isInvalid:k,isRequired:C,id:_,"aria-describedby":R,"aria-labelledby":L,size:v}=l,f=c.useLocalizedStringFormatter(oe),W=w.useSlotRecipe({recipe:Q.scopedSearchInputSlotRecipe}),[$,A]=W.splitVariantProps(l),[B,E]=J.extractStyleProps(A),T=r.useId(),M=_||T,V=`${M}-select`,j=`${M}-search`,u=r.useRef(null),h=r.useCallback(s=>{I?.(s),o?.({...a,text:s})},[a,I,o]),G=r.useCallback(s=>{if(s===null)return;const t=String(s);m?.(t),o?.({...a,option:t}),u.current&&!i&&!d&&setTimeout(()=>{u.current?.focus()},0)},[a,m,o,i,d]),K=r.useCallback(()=>{x(a)},[a,x]),N=r.useCallback(()=>{y?.(),h("")},[y,h]);return e.jsx(Y,{...$,...B,...E,children:e.jsxs(Z,{children:[e.jsx(ee,{asChild:!0,children:e.jsx(n.Select.Root,{id:V,selectedKey:a.option,onSelectionChange:d?void 0:G,placeholder:P,"aria-label":F||f.format("selectLabel"),"aria-controls":j,"aria-describedby":R,"aria-labelledby":L,size:v,isClearable:!1,isDisabled:i,isRequired:C,children:e.jsx(n.Select.Options,{children:q.map(s=>{if("options"in s){const b=s;return e.jsx(n.Select.OptionGroup,{label:b.label,children:b.options.map(p=>e.jsx(n.Select.Option,{id:p.value,isDisabled:p.isDisabled,children:p.label},p.value))},b.label)}const t=s;return e.jsx(n.Select.Option,{id:t.value,isDisabled:t.isDisabled,children:t.label},t.value)})})})}),e.jsx(se,{asChild:!0,children:e.jsx(H.SearchInput,{ref:u,id:j,value:a.text,onChange:h,onSubmit:K,onClear:O?N:void 0,placeholder:z,"aria-label":D||f.format("searchLabel"),"aria-describedby":R,"aria-labelledby":L,size:v,isDisabled:i,isReadOnly:d,isInvalid:k,isRequired:C})})]})})};g.isEmpty=ae;g.displayName="ScopedSearchInput";exports.ScopedSearchInput=g;
|
|
2
|
-
//# sourceMappingURL=scoped-search-input-DKCK7idN.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-search-input-DKCK7idN.cjs.js","sources":["../../src/components/scoped-search-input/scoped-search-input.slots.tsx","../../src/components/scoped-search-input/utils/helpers.ts","../../src/components/scoped-search-input/intl/en.ts","../../src/components/scoped-search-input/intl/de.ts","../../src/components/scoped-search-input/intl/es.ts","../../src/components/scoped-search-input/intl/fr-FR.ts","../../src/components/scoped-search-input/intl/pt-BR.ts","../../src/components/scoped-search-input/scoped-search-input.messages.ts","../../src/components/scoped-search-input/scoped-search-input.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n ScopedSearchInputRootSlotProps,\n ScopedSearchInputContainerSlotProps,\n ScopedSearchInputSelectWrapperSlotProps,\n ScopedSearchInputSearchWrapperSlotProps,\n} from \"./scoped-search-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"scopedSearchInput\",\n});\n\nexport const ScopedSearchInputRootSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputRootSlotProps\n> = withProvider<HTMLDivElement, ScopedSearchInputRootSlotProps>(\"div\", \"root\");\n\nexport const ScopedSearchInputContainerSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputContainerSlotProps\n> = withContext<HTMLDivElement, ScopedSearchInputContainerSlotProps>(\n \"div\",\n \"container\"\n);\n\nexport const ScopedSearchInputSelectWrapperSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputSelectWrapperSlotProps\n> = withContext<HTMLDivElement, ScopedSearchInputSelectWrapperSlotProps>(\n \"div\",\n \"selectWrapper\"\n);\n\nexport const ScopedSearchInputSearchWrapperSlot: SlotComponent<\n HTMLDivElement,\n ScopedSearchInputSearchWrapperSlotProps\n> = withContext<HTMLDivElement, ScopedSearchInputSearchWrapperSlotProps>(\n \"div\",\n \"searchWrapper\"\n);\n","import type { ScopedSearchInputValue } from \"../scoped-search-input.types\";\n\n/**\n * Check if the search text is empty or only whitespace\n */\nexport const isEmpty = (value: ScopedSearchInputValue): boolean => {\n return !value.text || value.text.trim().length === 0;\n};\n","/**\n * Pre-compiled en messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Search`, selectLabel: `Filter by` };\n","/**\n * Pre-compiled de messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Suche`, selectLabel: `Filtern nach` };\n","/**\n * Pre-compiled es messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Buscar`, selectLabel: `Filtrar por` };\n","/**\n * Pre-compiled fr-FR messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Rechercher`, selectLabel: `Filtrer par` };\n","/**\n * Pre-compiled pt-BR messages for ScopedSearchInput\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default { searchLabel: `Pesquisa`, selectLabel: `Filtrar por` };\n","/**\n * Pre-compiled localized messages for ScopedSearchInput component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport scopedSearchInputMessages_en from \"./intl/en\";\nimport scopedSearchInputMessages_de from \"./intl/de\";\nimport scopedSearchInputMessages_es from \"./intl/es\";\nimport scopedSearchInputMessages_fr from \"./intl/fr-FR\";\nimport scopedSearchInputMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const scopedSearchInputMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(scopedSearchInputMessages_en),\n de: normalizeMessages(scopedSearchInputMessages_de),\n es: normalizeMessages(scopedSearchInputMessages_es),\n \"fr-FR\": normalizeMessages(scopedSearchInputMessages_fr),\n \"pt-BR\": normalizeMessages(scopedSearchInputMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for ScopedSearchInput component\n */\nexport type ScopedSearchInputMessageKey = \"searchLabel\" | \"selectLabel\";\n","import { useCallback, useId, useRef } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { Select } from \"@/components/select/select\";\nimport { SearchInput } from \"@/components/search-input/search-input\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { scopedSearchInputSlotRecipe } from \"./scoped-search-input.recipe\";\nimport {\n ScopedSearchInputRootSlot,\n ScopedSearchInputContainerSlot,\n ScopedSearchInputSelectWrapperSlot,\n ScopedSearchInputSearchWrapperSlot,\n} from \"./scoped-search-input.slots\";\nimport type {\n ScopedSearchInputProps,\n ScopedSearchInputOption,\n ScopedSearchInputOptionGroup,\n} from \"./scoped-search-input.types\";\nimport { isEmpty } from \"./utils/helpers\";\nimport { scopedSearchInputMessagesStrings } from \"./scoped-search-input.messages\";\n\n/**\n * ScopedSearchInput\n * ============================================================\n * A combined input component that integrates a select dropdown with a search input field,\n * enabling users to filter search by category or field type.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/scoped-search-input}\n *\n * @supportsStyleProps\n */\nexport const ScopedSearchInput = (props: ScopedSearchInputProps) => {\n const {\n value,\n onValueChange,\n onTextChange,\n onOptionChange,\n onSubmit,\n onReset,\n options,\n selectPlaceholder,\n searchPlaceholder,\n selectAriaLabel,\n searchAriaLabel,\n isClearable = true,\n isDisabled,\n isReadOnly,\n isInvalid,\n isRequired,\n id,\n \"aria-describedby\": ariaDescribedby,\n \"aria-labelledby\": ariaLabelledby,\n size,\n } = props;\n\n const msg = useLocalizedStringFormatter(scopedSearchInputMessagesStrings);\n\n // Split recipe props\n const recipe = useSlotRecipe({ recipe: scopedSearchInputSlotRecipe });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Extract style props\n const [styleProps, remainingProps] = extractStyleProps(restRecipeProps);\n\n // Generate unique IDs for ARIA relationships\n const generatedId = useId();\n const componentId = id || generatedId;\n const selectId = `${componentId}-select`;\n const searchId = `${componentId}-search`;\n\n // Ref for search input to enable auto-focus on option selection\n const searchInputRef = useRef<HTMLInputElement>(null);\n\n // Event handlers that coordinate state\n const handleTextChange = useCallback(\n (newText: string) => {\n onTextChange?.(newText);\n onValueChange?.({ ...value, text: newText });\n },\n [value, onTextChange, onValueChange]\n );\n\n const handleOptionChange = useCallback(\n (newOption: React.Key | null) => {\n if (newOption === null) return;\n const optionString = String(newOption);\n onOptionChange?.(optionString);\n onValueChange?.({ ...value, option: optionString });\n\n // Auto-focus search input after option selection (unless disabled/readonly)\n if (searchInputRef.current && !isDisabled && !isReadOnly) {\n // Use setTimeout to ensure focus happens after React Aria's state updates\n setTimeout(() => {\n searchInputRef.current?.focus();\n }, 0);\n }\n },\n [value, onOptionChange, onValueChange, isDisabled, isReadOnly]\n );\n\n const handleSubmit = useCallback(() => {\n onSubmit(value);\n }, [value, onSubmit]);\n\n const handleReset = useCallback(() => {\n onReset?.();\n // Clear text but keep selected option\n handleTextChange(\"\");\n }, [onReset, handleTextChange]);\n\n return (\n <ScopedSearchInputRootSlot\n {...recipeProps}\n {...styleProps}\n {...remainingProps}\n >\n <ScopedSearchInputContainerSlot>\n {/* Select Dropdown (Left) */}\n <ScopedSearchInputSelectWrapperSlot asChild>\n <Select.Root\n id={selectId}\n selectedKey={value.option}\n onSelectionChange={isReadOnly ? undefined : handleOptionChange}\n placeholder={selectPlaceholder}\n aria-label={selectAriaLabel || msg.format(\"selectLabel\")}\n aria-controls={searchId}\n aria-describedby={ariaDescribedby}\n aria-labelledby={ariaLabelledby}\n size={size}\n isClearable={false}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n <Select.Options>\n {options.map(\n (\n item: ScopedSearchInputOption | ScopedSearchInputOptionGroup\n ) => {\n // Check if it's an option group\n if (\"options\" in item) {\n const group = item as ScopedSearchInputOptionGroup;\n return (\n <Select.OptionGroup key={group.label} label={group.label}>\n {group.options.map((opt: ScopedSearchInputOption) => (\n <Select.Option\n key={opt.value}\n id={opt.value}\n isDisabled={opt.isDisabled}\n >\n {opt.label}\n </Select.Option>\n ))}\n </Select.OptionGroup>\n );\n }\n // Regular option\n const option = item as ScopedSearchInputOption;\n return (\n <Select.Option\n key={option.value}\n id={option.value}\n isDisabled={option.isDisabled}\n >\n {option.label}\n </Select.Option>\n );\n }\n )}\n </Select.Options>\n </Select.Root>\n </ScopedSearchInputSelectWrapperSlot>\n\n {/* Search Input (Right) */}\n <ScopedSearchInputSearchWrapperSlot asChild>\n <SearchInput\n ref={searchInputRef}\n id={searchId}\n value={value.text}\n onChange={handleTextChange}\n onSubmit={handleSubmit}\n onClear={isClearable ? handleReset : undefined}\n placeholder={searchPlaceholder}\n aria-label={searchAriaLabel || msg.format(\"searchLabel\")}\n aria-describedby={ariaDescribedby}\n aria-labelledby={ariaLabelledby}\n size={size}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={isInvalid}\n isRequired={isRequired}\n />\n </ScopedSearchInputSearchWrapperSlot>\n </ScopedSearchInputContainerSlot>\n </ScopedSearchInputRootSlot>\n );\n};\n\n// Static methods\nScopedSearchInput.isEmpty = isEmpty;\n\n// Display name\nScopedSearchInput.displayName = \"ScopedSearchInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","ScopedSearchInputRootSlot","ScopedSearchInputContainerSlot","ScopedSearchInputSelectWrapperSlot","ScopedSearchInputSearchWrapperSlot","isEmpty","value","scopedSearchInputMessages_en","scopedSearchInputMessages_de","scopedSearchInputMessages_es","scopedSearchInputMessages_fr","scopedSearchInputMessages_pt","scopedSearchInputMessagesStrings","normalizeMessages","ScopedSearchInput","props","onValueChange","onTextChange","onOptionChange","onSubmit","onReset","options","selectPlaceholder","searchPlaceholder","selectAriaLabel","searchAriaLabel","isClearable","isDisabled","isReadOnly","isInvalid","isRequired","id","ariaDescribedby","ariaLabelledby","size","msg","useLocalizedStringFormatter","recipe","useSlotRecipe","scopedSearchInputSlotRecipe","recipeProps","restRecipeProps","styleProps","remainingProps","extractStyleProps","generatedId","useId","componentId","selectId","searchId","searchInputRef","useRef","handleTextChange","useCallback","newText","handleOptionChange","newOption","optionString","handleSubmit","handleReset","jsx","Select","item","group","opt","option","SearchInput"],"mappings":"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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const b=require("react/jsx-runtime"),o=require("react"),g=require("./SelectionManager-5YkuhVau.cjs.js"),x=require("./utils-DVb3jcp5.cjs.js"),N=require("./SelectionIndicator-Du7-bvy3.cjs.js"),m=require("./CollectionBuilder-DjRx57vm.cjs.js"),U=require("./Hidden-CNJIJ63M.cjs.js"),h=require("./mergeProps-CxnHrnow.cjs.js"),S=require("./filterDOMProps-WUskt27c.cjs.js"),M=require("./useObjectRef-4v2MxSjQ.cjs.js"),L=require("./useListState-BjCb6LLO.cjs.js"),O=require("./useLabels-C_UIaxmz.cjs.js"),W=require("./useHasTabbableChild-ytnnMmC_.cjs.js"),_=require("./openLink-DkCJYbzq.cjs.js"),G=require("./useFocusable-C7VjcJHL.cjs.js"),J=require("./context-CyT9C4U4.cjs.js"),q=require("./useFocusRing-B7_ogYbr.cjs.js"),Q=require("./useHover-xrdh1GG9.cjs.js"),X=require("./useControlledState-D0L6S_5r.cjs.js"),Y=require("@chakra-ui/react"),V=require("./extract-style-props-B4hqila-.cjs.js"),j=require("@chakra-ui/react/styled-system"),H=new WeakMap;function T(i,e,t){if(!i)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let a=H.get(i);return process.env.NODE_ENV!=="production"&&!a&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${a}-${t}-${e}`}function Z(i,e,t){let{key:a,isDisabled:s,shouldSelectOnPressUp:l}=i,{selectionManager:r,selectedKey:c}=e,d=a===c,n=s||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:u,isPressed:f}=g.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:r,key:a,ref:t,isDisabled:n,shouldSelectOnPressUp:l,linkBehavior:"selection"}),$=T(e,a,"tab"),y=T(e,a,"tabpanel"),{tabIndex:v}=u,p=e.collection.getItem(a),P=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(p?.props,{labelable:!0});delete P.id;let A=_.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(p?.props),{focusableProps:B}=G.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:n},t);return{tabProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(P,B,A,u,{id:$,"aria-selected":d,"aria-disabled":n||void 0,"aria-controls":d?y:void 0,tabIndex:n?void 0:v,role:"tab"}),isSelected:d,isDisabled:n,isPressed:f}}function ee(i,e,t){let a=W.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var s;const l=T(e,(s=i.id)!==null&&s!==void 0?s:e?.selectedKey,"tabpanel"),r=O.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:l,"aria-labelledby":T(e,e?.selectedKey,"tab")});return{tabPanelProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class te{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,a,s=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=s,this.tabDirection=a==="horizontal"}}function ie(i,e,t){let{orientation:a="horizontal",keyboardActivation:s="automatic"}=i,{collection:l,selectionManager:r,disabledKeys:c}=e,{direction:d}=J.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=o.useMemo(()=>new te(l,d,a,c),[l,c,a,d]),{collectionProps:u}=g.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:r,keyboardDelegate:n,selectOnFocus:s==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),f=h.$bdb11010cef70236$export$f680877a34711e37();H.set(e,f);let $=O.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:f});return{tabListProps:{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(u,$),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function ae(i){var e;let[t,a]=X.$458b0a5536c1a7cf$export$40bfa8c7b0832715(i.selectedKey,(e=i.defaultSelectedKey)!==null&&e!==void 0?e:null,i.onSelectionChange),s=o.useMemo(()=>t!=null?[t]:[],[t]),{collection:l,disabledKeys:r,selectionManager:c}=L.$e72dd72e1c76a225$export$2f645645f7bca764({...i,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:n=>{if(n==="all")return;var u;let f=(u=n.values().next().value)!==null&&u!==void 0?u:null;f===t&&i.onSelectionChange&&i.onSelectionChange(f),a(f)}}),d=t!=null?l.getItem(t):null;return{collection:l,disabledKeys:r,selectionManager:c,selectedKey:t,setSelectedKey:a,selectedItem:d}}function se(i){var e,t;let a=ae({...i,onSelectionChange:i.onSelectionChange?d=>{var n;d!=null&&((n=i.onSelectionChange)===null||n===void 0||n.call(i,d))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:I(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:s,collection:l,selectedKey:r}=a,c=o.useRef(r);return o.useEffect(()=>{let d=r;i.selectedKey==null&&(s.isEmpty||d==null||!l.getItem(d))&&(d=I(l,a.disabledKeys),d!=null&&s.setSelectedKeys([d])),(d!=null&&s.focusedKey==null||!s.isFocused&&d!==c.current)&&s.setFocusedKey(d),c.current=d}),{...a,isDisabled:i.isDisabled||!1}}function I(i,e){let t=null;if(i){var a,s,l,r;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((s=i.getItem(t))===null||s===void 0||(a=s.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((r=i.getItem(t))===null||r===void 0||(l=r.props)===null||l===void 0)&&l.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const D=o.createContext(null),K=o.createContext(null),le=o.forwardRef(function(e,t){[e,t]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,D);let{children:a,orientation:s="horizontal"}=e;return a=o.useMemo(()=>typeof a=="function"?a({orientation:s,defaultChildren:null}):a,[a,s]),o.createElement(m.$e1995378a142960e$export$bf788dd355e3a401,{content:a},l=>o.createElement(de,{props:e,collection:l,tabsRef:t}))});function de({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,s=se({...i,collection:t,children:void 0}),{focusProps:l,isFocused:r,isFocusVisible:c}=q.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),d=o.useMemo(()=>({orientation:a,isFocusWithin:r,isFocusVisible:c}),[a,r,c]),n=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:d}),u=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return o.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(u,n,l),ref:e,slot:i.slot||void 0,"data-focused":r||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":s.isDisabled||void 0},o.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,i],[K,s]]},n.children))}const oe=o.forwardRef(function(e,t){return o.useContext(K)?o.createElement(re,{props:e,forwardedRef:t}):o.createElement(m.$e1995378a142960e$export$fb8073518f34e6ec,e)});function re({props:i,forwardedRef:e}){let t=o.useContext(K),{CollectionRoot:a}=o.useContext(g.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:s="horizontal",keyboardActivation:l="automatic"}=x.$64fa3d84918910a7$export$fabf2dc03a41866e(D),r=M.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=ie({...i,orientation:s,keyboardActivation:l},t,r),d=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:s,state:t}}),n=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete n.id,o.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(n,d,c),ref:r,"data-orientation":s||void 0},o.createElement(N.$c8a5a149f625efcf$export$758399f318e6385a,null,o.createElement(a,{collection:t.collection,persistedKeys:g.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)})))}class z extends m.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{}z.type="item";const ne=m.$e1995378a142960e$export$18af5c7a9e9b3664(z,(i,e,t)=>{let a=o.useContext(K),s=M.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:l,isSelected:r,isDisabled:c,isPressed:d}=Z({key:t.key,...i},a,s),{focusProps:n,isFocused:u,isFocusVisible:f}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:$,isHovered:y}=Q.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),v=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:r,isDisabled:c,isFocused:u,isFocusVisible:f,isPressed:d,isHovered:y}}),p=t.props.href?"a":"div",P=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete P.id,delete P.onClick,o.createElement(p,{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(P,v,l,n,$),ref:s,"data-selected":r||void 0,"data-disabled":c||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":d||void 0,"data-hovered":y||void 0},o.createElement(N.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:r}},v.children))}),ce=U.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=o.useContext(K);let s=M.$df56164dff5785e2$export$4338b53315abf666(t),{id:l,...r}=e,{tabPanelProps:c}=ee(e,a,s),{focusProps:d,isFocused:n,isFocusVisible:u}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),f=a.selectedKey===e.id,$=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:n,isFocusVisible:u,isInert:L.$cdc5a6778b766db2$export$a9d04c5684123369(!f),state:a}});if(!f&&!e.shouldForceMount)return null;let y=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(r,{global:!0});delete y.id;let v=f?h.$3ef42575df84b30b$export$9d1611c77c2fe928(y,c,d,$):$;return o.createElement("div",{...v,ref:s,"data-focused":n||void 0,"data-focus-visible":u||void 0,inert:L.$cdc5a6778b766db2$export$a9d04c5684123369(!f||e.inert),"data-inert":f?void 0:"true"},o.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,null],[K,null]]},o.createElement(g.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:g.$7135fc7d473fd974$export$a164736487e3f0ae},$.children)))}),{withProvider:fe,withContext:C}=Y.createSlotRecipeContext({key:"tabs"}),ue=fe("div","root"),be=C("div","list"),$e=C("button","tab"),pe=C("div","panels"),xe=C("div","panel"),F=({children:i,isDisabled:e,...t})=>b.jsx($e,{asChild:!0,...t,children:b.jsx(ne,{isDisabled:e,children:i})});F.displayName="Tabs.Tab";const E=({tabs:i,children:e,...t})=>{const[a,s]=V.extractStyleProps(t);if(!i&&!e)throw new Error('Tabs.List: Either provide "tabs" prop or "children" must be provided');return b.jsx(be,{...a,asChild:!0,children:b.jsx(oe,{items:i,...s,children:i?l=>b.jsx(F,{id:l.id,isDisabled:l.isDisabled,children:l.tabLabel},l.id):e})})};E.displayName="Tabs.List";const w=o.forwardRef(({children:i,...e},t)=>{if(!i)throw new Error("Tabs.Panel: children prop is required");return b.jsx(xe,{asChild:!0,ref:t,...e,children:b.jsx(ce,{children:i})})});w.displayName="Tabs.Panel";const R=({tabs:i,children:e,...t})=>{if(!i&&!e)throw new Error('Tabs.Panels: Either provide "items" prop or "children" must be provided');return b.jsx(pe,{...t,children:i?b.jsx(m.$e1995378a142960e$export$fb8073518f34e6ec,{items:i,children:a=>b.jsx(w,{id:a.id,children:a.panelContent},a.id)}):e})};R.displayName="Tabs.Panels";const k=({children:i,tabs:e,...t})=>{const a=j.useChakraContext(),s=j.useSlotRecipe({key:"tabs"}),[l,r]=s.splitVariantProps(t),[c,d]=V.extractStyleProps(r),n=a.normalizeValue(l.orientation);return b.jsx(ue,{asChild:!0,...l,...c,children:b.jsx(le,{...d,orientation:n,children:i||b.jsxs(b.Fragment,{children:[b.jsx(E,{tabs:e}),b.jsx(R,{tabs:e})]})})})};k.displayName="Tabs.Root";const he={Root:k,List:E,Tab:F,Panels:R,Panel:w};exports.Tabs=he;exports.TabsList=E;exports.TabsPanel=w;exports.TabsPanels=R;exports.TabsRoot=k;exports.TabsTab=F;
|
|
2
|
-
//# sourceMappingURL=tabs-iV08OTqG.cjs.js.map
|