@commercetools/nimbus 2.1.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/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-Bu9iEN-Z.es.js → accordion-Cwy8ywRo.es.js} +2 -2
- package/dist/chunks/{accordion-Bu9iEN-Z.es.js.map → accordion-Cwy8ywRo.es.js.map} +1 -1
- package/dist/chunks/{accordion-AupzDJ2i.cjs.js → accordion-DvftRW7J.cjs.js} +2 -2
- package/dist/chunks/{accordion-AupzDJ2i.cjs.js.map → accordion-DvftRW7J.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js → accordion.content-DBBMLq5x.cjs.js} +2 -2
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js.map → accordion.content-DBBMLq5x.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js → accordion.content-DR_1dtdK.es.js} +2 -2
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js.map → accordion.content-DR_1dtdK.es.js.map} +1 -1
- package/dist/chunks/alert-D5SDMEKA.cjs.js +2 -0
- package/dist/chunks/alert-D5SDMEKA.cjs.js.map +1 -0
- package/dist/chunks/alert-WiLa3ap4.es.js +158 -0
- package/dist/chunks/alert-WiLa3ap4.es.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-DF_RV6pd.cjs.js → button-Bz1hc0LL.cjs.js} +2 -2
- package/dist/chunks/{button-DF_RV6pd.cjs.js.map → button-Bz1hc0LL.cjs.js.map} +1 -1
- package/dist/chunks/{button-czddlTvJ.es.js → button-CANeXX_D.es.js} +2 -2
- package/dist/chunks/{button-czddlTvJ.es.js.map → button-CANeXX_D.es.js.map} +1 -1
- package/dist/chunks/calendar-Bnw0u0vz.es.js +227 -0
- package/dist/chunks/calendar-Bnw0u0vz.es.js.map +1 -0
- package/dist/chunks/calendar-D0OrT88Y.cjs.js +2 -0
- package/dist/chunks/calendar-D0OrT88Y.cjs.js.map +1 -0
- package/dist/chunks/card-BHw7lWYe.es.js +115 -0
- package/dist/chunks/card-BHw7lWYe.es.js.map +1 -0
- package/dist/chunks/card-CgBcH7Zm.cjs.js +2 -0
- package/dist/chunks/card-CgBcH7Zm.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js → checkbox-BYBGaSV9.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js.map → checkbox-BYBGaSV9.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js → checkbox-UATxAVti.es.js} +2 -2
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js.map → checkbox-UATxAVti.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js → collapsible-motion-BsyuKtxS.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js.map → collapsible-motion-BsyuKtxS.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js → collapsible-motion-Cj6ESwsR.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js.map → collapsible-motion-Cj6ESwsR.cjs.js.map} +1 -1
- package/dist/chunks/combobox-B30crY-T.es.js +1563 -0
- 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-C0rC7Jgu.es.js → data-table-B7orK0Y6.es.js} +1715 -1670
- package/dist/chunks/data-table-B7orK0Y6.es.js.map +1 -0
- package/dist/chunks/data-table-Cg75JPdu.cjs.js +2 -0
- package/dist/chunks/data-table-Cg75JPdu.cjs.js.map +1 -0
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js → date-input-BL7owE4Q.cjs.js} +2 -2
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js.map → date-input-BL7owE4Q.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-Cnlg-VXW.es.js → date-input-Ba6r9wMb.es.js} +4 -4
- package/dist/chunks/{date-input-Cnlg-VXW.es.js.map → date-input-Ba6r9wMb.es.js.map} +1 -1
- package/dist/chunks/date-picker-Bm6DjFOx.cjs.js +2 -0
- package/dist/chunks/date-picker-Bm6DjFOx.cjs.js.map +1 -0
- package/dist/chunks/date-picker-DwQ1WWNP.es.js +228 -0
- package/dist/chunks/date-picker-DwQ1WWNP.es.js.map +1 -0
- package/dist/chunks/date-range-picker-DaSUwkke.cjs.js +2 -0
- package/dist/chunks/date-range-picker-DaSUwkke.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-dw7c9idV.es.js +364 -0
- package/dist/chunks/date-range-picker-dw7c9idV.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-D3tLPzMb.es.js → date-range-picker-field-D-kCkHEF.es.js} +4 -4
- package/dist/chunks/date-range-picker-field-D-kCkHEF.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-DipL5QZq.cjs.js → date-range-picker-field-J2b1-A1l.cjs.js} +2 -2
- package/dist/chunks/date-range-picker-field-J2b1-A1l.cjs.js.map +1 -0
- package/dist/chunks/dialog-ByHd6RlA.cjs.js +2 -0
- package/dist/chunks/dialog-ByHd6RlA.cjs.js.map +1 -0
- package/dist/chunks/{dialog-z8EM12xr.es.js → dialog-vnnSNnUC.es.js} +89 -89
- package/dist/chunks/dialog-vnnSNnUC.es.js.map +1 -0
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js → draggable-list-CGpLzk-D.cjs.js} +3 -3
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js.map → draggable-list-CGpLzk-D.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js → draggable-list-DR-559Qk.es.js} +1406 -1601
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js.map → draggable-list-DR-559Qk.es.js.map} +1 -1
- package/dist/chunks/{drawer-BZBluK-I.es.js → drawer-CasegOAE.es.js} +96 -88
- 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-BilMyFTD.cjs.js → extract-style-props-BvvBKXOu.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js.map → extract-style-props-BvvBKXOu.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DChosa6I.es.js → extract-style-props-CM4QZGaE.es.js} +2 -2
- package/dist/chunks/{extract-style-props-DChosa6I.es.js.map → extract-style-props-CM4QZGaE.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-52--hhlj.cjs.js +2 -0
- package/dist/chunks/form-field-52--hhlj.cjs.js.map +1 -0
- package/dist/chunks/{form-field-BqlkPY29.es.js → form-field-DCWDyNJx.es.js} +16 -16
- package/dist/chunks/form-field-DCWDyNJx.es.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-5pYAEokc.cjs.js +2 -0
- package/dist/chunks/icon-button-5pYAEokc.cjs.js.map +1 -0
- package/dist/chunks/icon-button-DhHKxd27.es.js +28 -0
- package/dist/chunks/icon-button-DhHKxd27.es.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-D3spgxe2.cjs.js → icon-toggle-button-BsQzSrKe.cjs.js} +2 -2
- package/dist/chunks/icon-toggle-button-BsQzSrKe.cjs.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-BKmjmlZt.es.js → icon-toggle-button-C7HZUXh5.es.js} +2 -2
- package/dist/chunks/icon-toggle-button-C7HZUXh5.es.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-CBRmb4jF.cjs.js +34 -0
- package/dist/chunks/index-CBRmb4jF.cjs.js.map +1 -0
- package/dist/chunks/{index-BEgCT-l6.es.js → index-D3KlpJA5.es.js} +673 -559
- package/dist/chunks/index-D3KlpJA5.es.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-BJTWKclB.cjs.js +2 -0
- package/dist/chunks/localized-field-BJTWKclB.cjs.js.map +1 -0
- package/dist/chunks/localized-field-CHXN7Zf1.es.js +483 -0
- package/dist/chunks/localized-field-CHXN7Zf1.es.js.map +1 -0
- package/dist/chunks/{menu-Vj3cVc_v.cjs.js → menu-Cu7gIVGQ.cjs.js} +2 -2
- package/dist/chunks/menu-Cu7gIVGQ.cjs.js.map +1 -0
- package/dist/chunks/{menu-C3Ovi5Mr.es.js → menu-SxqgiwJf.es.js} +6 -6
- package/dist/chunks/menu-SxqgiwJf.es.js.map +1 -0
- package/dist/chunks/{money-input-BEek-VSq.es.js → money-input-B5kFhLR0.es.js} +116 -106
- package/dist/chunks/money-input-B5kFhLR0.es.js.map +1 -0
- package/dist/chunks/money-input-CBKb1D73.cjs.js +2 -0
- package/dist/chunks/money-input-CBKb1D73.cjs.js.map +1 -0
- package/dist/chunks/money-input-field-0vXOOTvx.es.js +51 -0
- package/dist/chunks/money-input-field-0vXOOTvx.es.js.map +1 -0
- package/dist/chunks/money-input-field-DjpKPCGo.cjs.js +2 -0
- package/dist/chunks/money-input-field-DjpKPCGo.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-DkruVK6m.es.js +98 -0
- package/dist/chunks/multiline-text-input-DkruVK6m.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js +56 -0
- package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-4H3HucGg.es.js +101 -0
- package/dist/chunks/nimbus-provider-4H3HucGg.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-CbD64J_V.cjs.js +2 -0
- package/dist/chunks/nimbus-provider-CbD64J_V.cjs.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-B29DJ2_U.cjs.js +2 -0
- package/dist/chunks/number-input-B29DJ2_U.cjs.js.map +1 -0
- package/dist/chunks/{number-input-DrhSvm6o.es.js → number-input-BVTqEzzS.es.js} +224 -229
- package/dist/chunks/number-input-BVTqEzzS.es.js.map +1 -0
- package/dist/chunks/number-input-field-DHBy_GKG.cjs.js +2 -0
- package/dist/chunks/number-input-field-DHBy_GKG.cjs.js.map +1 -0
- package/dist/chunks/number-input-field-DenXeCQQ.es.js +51 -0
- package/dist/chunks/number-input-field-DenXeCQQ.es.js.map +1 -0
- package/dist/chunks/pagination-BjUXs0hd.es.js +226 -0
- package/dist/chunks/pagination-BjUXs0hd.es.js.map +1 -0
- package/dist/chunks/pagination-D8Tn2HGh.cjs.js +2 -0
- package/dist/chunks/pagination-D8Tn2HGh.cjs.js.map +1 -0
- package/dist/chunks/password-input-DQM-caak.cjs.js +2 -0
- package/dist/chunks/password-input-DQM-caak.cjs.js.map +1 -0
- package/dist/chunks/password-input-field-CNLpabCL.es.js +56 -0
- package/dist/chunks/password-input-field-CNLpabCL.es.js.map +1 -0
- package/dist/chunks/password-input-field-CgQEW15R.cjs.js +2 -0
- package/dist/chunks/password-input-field-CgQEW15R.cjs.js.map +1 -0
- package/dist/chunks/password-input-vu3kFdzW.es.js +47 -0
- package/dist/chunks/password-input-vu3kFdzW.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-NAFgbTy5.cjs.js → progress-bar-CMRmoNou.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js.map → progress-bar-CMRmoNou.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-vRz1k6ol.es.js → progress-bar-D99U1mF3.es.js} +2 -2
- package/dist/chunks/{progress-bar-vRz1k6ol.es.js.map → progress-bar-D99U1mF3.es.js.map} +1 -1
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js → radio-input-B91hQHjX.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js.map → radio-input-B91hQHjX.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-C2lCxDiv.es.js → radio-input-S4OwAttR.es.js} +8 -8
- package/dist/chunks/{radio-input-C2lCxDiv.es.js.map → radio-input-S4OwAttR.es.js.map} +1 -1
- package/dist/chunks/range-calendar-qoiJRxsH.es.js +229 -0
- package/dist/chunks/range-calendar-qoiJRxsH.es.js.map +1 -0
- package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js +2 -0
- package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js.map +1 -0
- package/dist/chunks/rich-text-input-COjV3y9x.es.js +1200 -0
- package/dist/chunks/rich-text-input-COjV3y9x.es.js.map +1 -0
- package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js +4 -0
- package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js.map +1 -0
- 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-CMrPbAUI.es.js → search-input-Ba7KSi4m.es.js} +147 -147
- package/dist/chunks/search-input-Ba7KSi4m.es.js.map +1 -0
- package/dist/chunks/search-input-DrTdsAJB.cjs.js +2 -0
- package/dist/chunks/search-input-DrTdsAJB.cjs.js.map +1 -0
- package/dist/chunks/search-input-field-Dan6FtWD.cjs.js +2 -0
- package/dist/chunks/search-input-field-Dan6FtWD.cjs.js.map +1 -0
- package/dist/chunks/search-input-field-G080Ti8W.es.js +51 -0
- package/dist/chunks/search-input-field-G080Ti8W.es.js.map +1 -0
- package/dist/chunks/{select-DG6qOekv.es.js → select-B3w10lhg.es.js} +229 -229
- package/dist/chunks/select-B3w10lhg.es.js.map +1 -0
- package/dist/chunks/select-DzHoPh1S.cjs.js +2 -0
- package/dist/chunks/select-DzHoPh1S.cjs.js.map +1 -0
- package/dist/chunks/{separator-DYCn6JPo.cjs.js → separator-D0uGdP2M.cjs.js} +2 -2
- package/dist/chunks/{separator-DYCn6JPo.cjs.js.map → separator-D0uGdP2M.cjs.js.map} +1 -1
- package/dist/chunks/{separator-B-ibkWW-.es.js → separator-DX_ZJMkp.es.js} +4 -4
- package/dist/chunks/{separator-B-ibkWW-.es.js.map → separator-DX_ZJMkp.es.js.map} +1 -1
- package/dist/chunks/split-button-BGDUOZcq.es.js +106 -0
- package/dist/chunks/split-button-BGDUOZcq.es.js.map +1 -0
- package/dist/chunks/split-button-Cu7MwPgo.cjs.js +2 -0
- package/dist/chunks/split-button-Cu7MwPgo.cjs.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-_TfZ37Nm.es.js → switch-GD8BjCPZ.es.js} +3 -3
- package/dist/chunks/{switch-_TfZ37Nm.es.js.map → switch-GD8BjCPZ.es.js.map} +1 -1
- package/dist/chunks/{switch-BzYS9qlr.cjs.js → switch-dDLFRsag.cjs.js} +2 -2
- package/dist/chunks/{switch-BzYS9qlr.cjs.js.map → switch-dDLFRsag.cjs.js.map} +1 -1
- package/dist/chunks/tabs-Dh_AK8jc.es.js +521 -0
- package/dist/chunks/tabs-Dh_AK8jc.es.js.map +1 -0
- package/dist/chunks/tabs-Dxwwd4jH.cjs.js +2 -0
- package/dist/chunks/tabs-Dxwwd4jH.cjs.js.map +1 -0
- package/dist/chunks/{tag-group-Aa30DcsU.es.js → tag-group-CMfyCIc3.es.js} +209 -208
- package/dist/chunks/tag-group-CMfyCIc3.es.js.map +1 -0
- package/dist/chunks/tag-group-rbUwxsaP.cjs.js +2 -0
- package/dist/chunks/tag-group-rbUwxsaP.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-DOTYCJyJ.es.js → text-input-UaixbZjE.es.js} +3 -3
- package/dist/chunks/{text-input-DOTYCJyJ.es.js.map → text-input-UaixbZjE.es.js.map} +1 -1
- package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js +2 -0
- package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js.map +1 -0
- package/dist/chunks/text-input-field-ChGQsEAJ.es.js +58 -0
- package/dist/chunks/text-input-field-ChGQsEAJ.es.js.map +1 -0
- package/dist/chunks/{text-input-D3KWm-NF.cjs.js → text-input-n7jUFat6.cjs.js} +2 -2
- package/dist/chunks/{text-input-D3KWm-NF.cjs.js.map → text-input-n7jUFat6.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js → time-input-G64QnJLm.cjs.js} +2 -2
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js.map → time-input-G64QnJLm.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-KrO-X3uW.es.js → time-input-T4jAE9kM.es.js} +4 -4
- package/dist/chunks/{time-input-KrO-X3uW.es.js.map → time-input-T4jAE9kM.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-C03AKN2I.es.js → toggle-button-J0Vys1xC.es.js} +3 -3
- package/dist/chunks/{toggle-button-C03AKN2I.es.js.map → toggle-button-J0Vys1xC.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js → toggle-button-aX7Gr-Ib.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js.map → toggle-button-aX7Gr-Ib.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js → toolbar-Bw9mLuBU.cjs.js} +2 -2
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js.map → toolbar-Bw9mLuBU.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-D0WjTxz2.es.js → toolbar-QZSD0kko.es.js} +3 -3
- package/dist/chunks/{toolbar-D0WjTxz2.es.js.map → toolbar-QZSD0kko.es.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.body.d.ts +1 -1
- package/dist/components/data-table/components/data-table.context.d.ts +3 -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/components/index.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 +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 +40 -0
- package/dist/components/data-table/intl/en.d.ts +40 -0
- package/dist/components/data-table/intl/es.d.ts +40 -0
- package/dist/components/data-table/intl/fr-FR.d.ts +40 -0
- package/dist/components/data-table/intl/pt-BR.d.ts +40 -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 +14 -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/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/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,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),m=require("@chakra-ui/react"),n=require("./DateField-
|
|
2
|
-
//# sourceMappingURL=date-input-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),m=require("@chakra-ui/react"),n=require("./DateField-BxXzaXAv.cjs.js"),h=require("@chakra-ui/react/styled-system"),S=require("./index-CBRmb4jF.cjs.js"),g=require("./extract-style-props-BvvBKXOu.cjs.js"),{withProvider:j,withContext:t}=m.createSlotRecipeContext({key:"dateInput"}),I=j("div","root"),D=t("div","leadingElement"),$=t("div","trailingElement"),f=t("div","segmentGroup"),P=t("div","segment"),s=c=>{const o=h.useRecipe({recipe:S.dateInputSlotRecipe}),{leadingElement:r,trailingElement:i,...l}=c,[a,d]=o.splitVariantProps({...l}),[p,u]=g.extractStyleProps(d);return e.jsx(I,{...a,...p,asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$d9781c7894a82487,{...u,children:e.jsxs(e.Fragment,{children:[r&&e.jsx(D,{children:r}),e.jsx(f,{asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$7edc06cf1783b30f,{children:x=>e.jsx(P,{asChild:!0,children:e.jsx(n.$40825cdb76e74f70$export$336ab7fa954c4b5f,{segment:x})})})}),i&&e.jsx($,{children:i})]})})})};s.displayName="DateInput";exports.DateInput=s;
|
|
2
|
+
//# sourceMappingURL=date-input-BL7owE4Q.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-input-
|
|
1
|
+
{"version":3,"file":"date-input-BL7owE4Q.cjs.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { DateInputRootSlotProps } from \"./date-input.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"dateInput\",\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const DateInputLeadingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"leadingElement\");\n\nexport const DateInputTrailingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputLeadingElementSlot,\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n DateInputTrailingElementSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # DateInput\n *\n * allows entering a date\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/dateinput}\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <>\n {leadingElement && (\n <DateInputLeadingElementSlot>\n {leadingElement}\n </DateInputLeadingElementSlot>\n )}\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n {trailingElement && (\n <DateInputTrailingElementSlot>\n {trailingElement}\n </DateInputTrailingElementSlot>\n )}\n </>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","DateInputRootSlot","DateInputLeadingElementSlot","DateInputTrailingElementSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","dateInputSlotRecipe","leadingElement","trailingElement","rest","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","jsxs","Fragment","DateInputField","segment","DateSegment"],"mappings":"6PAOM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,WACP,CAAC,EAMYC,EAAoBH,EAG/B,MAAO,MAAM,EAEFI,EAA8BH,EAGzC,MAAO,gBAAgB,EAEZI,EAA+BJ,EAG1C,MAAO,iBAAiB,EAKbK,EAA4BL,EAGvC,MAAO,cAAc,EAKVM,EAAuBN,EAGlC,MAAO,SAAS,ECnBLO,EAAaC,GAA0B,CAClD,MAAMC,EAASC,EAAAA,UAAU,CAAE,OAAQC,EAAAA,oBAAqB,EAClD,CAAE,eAAAC,EAAgB,gBAAAC,EAAiB,GAAGC,GAASN,EAC/C,CAACO,EAAaC,CAAe,EAAIP,EAAO,kBAAkB,CAAE,GAAGK,EAAM,EACrE,CAACG,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEvE,OACEI,EAAAA,IAAClB,EAAA,CAAmB,GAAGa,EAAc,GAAGE,EAAY,QAAO,GACzD,SAAAG,EAAAA,IAACC,EAAAA,0CAAA,CAAW,GAAGH,EACb,SAAAI,OAAAC,EAAAA,SAAA,CACG,SAAA,CAAAX,GACCQ,EAAAA,IAACjB,GACE,SAAAS,CAAA,CACH,QAEDP,EAAA,CAA0B,QAAO,GAChC,SAAAe,EAAAA,IAACI,6CACE,SAACC,GACAL,EAAAA,IAACd,EAAA,CAAqB,QAAO,GAC3B,SAAAc,EAAAA,IAACM,6CAAY,QAAAD,CAAA,CAAkB,EACjC,EAEJ,CAAA,CACF,EACCZ,GACCO,EAAAA,IAAChB,EAAA,CACE,SAAAS,CAAA,CACH,CAAA,CAAA,CAEJ,EACF,EACF,CAEJ,EAEAN,EAAU,YAAc"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import { createSlotRecipeContext as f } from "@chakra-ui/react";
|
|
3
|
-
import { $ as h, a as g, b as S } from "./DateField-
|
|
3
|
+
import { $ as h, a as g, b as S } from "./DateField-DCWy1Ysp.es.js";
|
|
4
4
|
import { useRecipe as $ } from "@chakra-ui/react/styled-system";
|
|
5
|
-
import { d as x } from "./index-
|
|
6
|
-
import { e as I } from "./extract-style-props-
|
|
5
|
+
import { d as x } from "./index-D3KlpJA5.es.js";
|
|
6
|
+
import { e as I } from "./extract-style-props-CM4QZGaE.es.js";
|
|
7
7
|
const { withProvider: D, withContext: t } = /* @__PURE__ */ f({
|
|
8
8
|
key: "dateInput"
|
|
9
9
|
}), b = /* @__PURE__ */ D("div", "root"), P = /* @__PURE__ */ t("div", "leadingElement"), v = /* @__PURE__ */ t("div", "trailingElement"), E = /* @__PURE__ */ t("div", "segmentGroup"), C = /* @__PURE__ */ t("div", "segment"), y = (o) => {
|
|
@@ -18,4 +18,4 @@ y.displayName = "DateInput";
|
|
|
18
18
|
export {
|
|
19
19
|
y as D
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=date-input-
|
|
21
|
+
//# sourceMappingURL=date-input-Ba6r9wMb.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-input-
|
|
1
|
+
{"version":3,"file":"date-input-Ba6r9wMb.es.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { DateInputRootSlotProps } from \"./date-input.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"dateInput\",\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const DateInputLeadingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"leadingElement\");\n\nexport const DateInputTrailingElementSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputLeadingElementSlot,\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n DateInputTrailingElementSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # DateInput\n *\n * allows entering a date\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/dateinput}\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <>\n {leadingElement && (\n <DateInputLeadingElementSlot>\n {leadingElement}\n </DateInputLeadingElementSlot>\n )}\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n {trailingElement && (\n <DateInputTrailingElementSlot>\n {trailingElement}\n </DateInputTrailingElementSlot>\n )}\n </>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","DateInputRootSlot","DateInputLeadingElementSlot","DateInputTrailingElementSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","dateInputSlotRecipe","leadingElement","trailingElement","rest","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","jsxs","Fragment","DateInputField","segment","DateSegment"],"mappings":";;;;;;AAOA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IAAoB,gBAAAH,EAG/B,OAAO,MAAM,GAEFI,IAA8B,gBAAAH,EAGzC,OAAO,gBAAgB,GAEZI,IAA+B,gBAAAJ,EAG1C,OAAO,iBAAiB,GAKbK,IAA4B,gBAAAL,EAGvC,OAAO,cAAc,GAKVM,IAAuB,gBAAAN,EAGlC,OAAO,SAAS,GCnBLO,IAAY,CAACC,MAA0B;AAClD,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAqB,GAClD,EAAE,gBAAAC,GAAgB,iBAAAC,GAAiB,GAAGC,MAASN,GAC/C,CAACO,GAAaC,CAAe,IAAIP,EAAO,kBAAkB,EAAE,GAAGK,GAAM,GACrE,CAACG,GAAYC,CAAe,IAAIC,EAAkBH,CAAe;AAEvE,SACE,gBAAAI,EAAClB,GAAA,EAAmB,GAAGa,GAAc,GAAGE,GAAY,SAAO,IACzD,UAAA,gBAAAG,EAACC,GAAA,EAAW,GAAGH,GACb,UAAA,gBAAAI,EAAAC,GAAA,EACG,UAAA;AAAA,IAAAX,KACC,gBAAAQ,EAACjB,KACE,UAAAS,EAAA,CACH;AAAA,sBAEDP,GAAA,EAA0B,SAAO,IAChC,UAAA,gBAAAe,EAACI,KACE,UAAA,CAACC,MACA,gBAAAL,EAACd,GAAA,EAAqB,SAAO,IAC3B,UAAA,gBAAAc,EAACM,KAAY,SAAAD,EAAA,CAAkB,GACjC,GAEJ,EAAA,CACF;AAAA,IACCZ,KACC,gBAAAO,EAAChB,GAAA,EACE,UAAAS,EAAA,CACH;AAAA,EAAA,EAAA,CAEJ,GACF,GACF;AAEJ;AAEAN,EAAU,cAAc;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),y=require("@chakra-ui/react"),g=require("@commercetools/nimbus-icons"),x=require("./DatePicker-NWRDzwUt.cjs.js"),S=require("./Dialog-CSr6lHSd.cjs.js"),j=require("./Group-1nWkximy.cjs.js"),k=require("@chakra-ui/react/styled-system"),q=require("./index-CBRmb4jF.cjs.js"),C=require("./extract-style-props-BvvBKXOu.cjs.js"),h=require("react"),$=require("./Button-DLCecw8f.cjs.js"),P=require("./utils-DVb3jcp5.cjs.js"),H=require("./DateField-BxXzaXAv.cjs.js"),d=require("./normalize-messages-CaDzkuUm.cjs.js"),D=require("./date-input-BL7owE4Q.cjs.js"),z=require("./calendar-D0OrT88Y.cjs.js"),E=require("./time-input-G64QnJLm.cjs.js"),R=require("@chakra-ui/react/flex"),B=require("./text-BtRhIklG.cjs.js"),F=require("./box-CWni3A32.cjs.js"),I=require("./icon-button-5pYAEokc.cjs.js"),{withProvider:V,withContext:f}=y.createSlotRecipeContext({key:"datePicker"}),w=V("div","root"),Z=f("div","group"),_=f("div","popover"),L=f("div","calendar"),G={"Time.enterTime":"Enter time","Time.enterTimeHour":"Enter time (hour)","Time.enterTimeHourMinute":"Enter time (hour and minute)","Time.enterTimeHourMinuteSecond":"Enter time (hour, minute, and second)","Time.startTime":"Start time",clearInput:"Clear input value"},A={"Time.enterTime":"Zeit eingeben","Time.enterTimeHour":"Zeit eingeben (Stunde)","Time.enterTimeHourMinute":"Zeit eingeben (Stunde und Minute)","Time.enterTimeHourMinuteSecond":"Zeit eingeben (Stunde, Minute und Sekunde)","Time.startTime":"Startzeit",clearInput:"Eingabewert löschen"},O={"Time.enterTime":"Indicar tiempo","Time.enterTimeHour":"Indicar tiempo (hora)","Time.enterTimeHourMinute":"Indicar tiempo (hora y minuto)","Time.enterTimeHourMinuteSecond":"Indicar tiempo (hora, minuto y segundo)","Time.startTime":"Iniciar tiempo",clearInput:"Eliminar valor de entrada"},N={"Time.enterTime":"Saisir l'heure","Time.enterTimeHour":"Saisir l'heure (heure)","Time.enterTimeHourMinute":"Saisir l'heure (heure et minute)","Time.enterTimeHourMinuteSecond":"Saisir l'heure (heure, minute et seconde)","Time.startTime":"Heure de début",clearInput:"Effacer la valeur saisie"},W={"Time.enterTime":"Inserir hora","Time.enterTimeHour":"Inserir hora (hora)","Time.enterTimeHourMinute":"Inserir hora (hora e minutos)","Time.enterTimeHourMinuteSecond":"Inserir hora (hora, minutos e segundos)","Time.startTime":"Hora de início",clearInput:"Limpar valores inseridos"},M={en:d.normalizeMessages(G),de:d.normalizeMessages(A),es:d.normalizeMessages(O),"fr-FR":d.normalizeMessages(N),"pt-BR":d.normalizeMessages(W)},J=({children:n})=>{const t=d.useLocalizedStringFormatter(M),o=P.$64fa3d84918910a7$export$fabf2dc03a41866e($.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},s=h.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),a=s?.dateValue===null,{timeValue:r,setTimeValue:m,granularity:i}=s,c=o?.isDisabled,u=()=>{switch(i){case"hour":return t.format("Time.enterTimeHour");case"minute":return t.format("Time.enterTimeHourMinute");case"second":return t.format("Time.enterTimeHourMinuteSecond");default:return t.format("Time.enterTime")}},T={calendarToggle:{...o,onPress:l=>{const b=document?.activeElement;b&&b.blur(),o.onPress?.(l)}},clear:{onPress:()=>s?.setValue(null),"aria-label":t.format("clearInput"),isDisabled:c,style:a?{display:"none"}:void 0,"aria-hidden":a?!0:void 0}},p={timeInput:{value:r,onChange:l=>{l!==null&&m(l)},granularity:i==="day"?void 0:i,"aria-label":u()}};return e.jsx(P.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[$.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:T}],[H.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:p}]],children:n})},K=({hideTimeZone:n,hourCycle:t})=>{const o=d.useLocalizedStringFormatter(M),s=h.useContext(x.$06d5b8ec9ee5d538$export$50a10c048fdcdee9),{granularity:a,dateValue:r}=s,m=h.useRef(null),i=h.useRef(r);return a==="day"?null:(h.useEffect(()=>{let c;if(r&&i.current?.compare(r)!==0){const u=m.current,T=document.activeElement;u?.contains(T)&&T?.getAttribute("role")==="spinbutton"||(c=setTimeout(()=>{u&&u.querySelector('[role="spinbutton"]')?.focus()},50))}return i.current=r,()=>{c&&clearTimeout(c)}},[r]),e.jsxs(R.Flex,{ref:m,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsx(B.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",children:o.format("Time.startTime")}),e.jsx(E.TimeInput,{slot:"timeInput",variant:"ghost",size:"sm",hideTimeZone:n,hourCycle:t})]}))},v=n=>{const{size:t="md",variant:o,granularity:s="day",hideTimeZone:a,hourCycle:r}=n,m=k.useSlotRecipe({recipe:q.datePickerSlotRecipe}),[i,c]=m.splitVariantProps(n),[u,T]=C.extractStyleProps(c),p=t==="md"?"xs":"2xs",l=s==="day"?n.shouldCloseOnSelect:!1;return e.jsx(w,{...i,...u,asChild:!0,children:e.jsx(x.$06d5b8ec9ee5d538$export$5109c6dd95d8fb00,{...T,shouldCloseOnSelect:l,children:e.jsxs(J,{children:[e.jsx(Z,{asChild:!0,children:e.jsx(j.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:e.jsx(D.DateInput,{size:t,variant:o,width:"full",hideTimeZone:a,hourCycle:r,trailingElement:e.jsxs(F.Box,{children:[e.jsx(I.IconButton,{variant:"ghost",size:p,slot:"clear",children:e.jsx(g.Close,{})}),e.jsx(I.IconButton,{variant:"ghost",size:p,slot:"calendarToggle",children:e.jsx(g.CalendarMonth,{})})]})})})}),e.jsx(_,{asChild:!0,children:e.jsx(S.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs(S.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(L,{children:e.jsx(z.Calendar,{})}),e.jsx(K,{hideTimeZone:a,hourCycle:r})]})})})]})})})};v.displayName="DatePicker";exports.DatePicker=v;
|
|
2
|
+
//# sourceMappingURL=date-picker-Bm6DjFOx.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker-Bm6DjFOx.cjs.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/intl/en.ts","../../src/components/date-picker/intl/de.ts","../../src/components/date-picker/intl/es.ts","../../src/components/date-picker/intl/fr-FR.ts","../../src/components/date-picker/intl/pt-BR.ts","../../src/components/date-picker/date-picker.messages.ts","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { DatePickerRootSlotProps } from \"./date-picker.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"datePicker\",\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootSlotProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","/**\n * Pre-compiled en messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Enter time`,\n \"Time.enterTimeHour\": `Enter time (hour)`,\n \"Time.enterTimeHourMinute\": `Enter time (hour and minute)`,\n \"Time.enterTimeHourMinuteSecond\": `Enter time (hour, minute, and second)`,\n \"Time.startTime\": `Start time`,\n clearInput: `Clear input value`,\n};\n","/**\n * Pre-compiled de messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Zeit eingeben`,\n \"Time.enterTimeHour\": `Zeit eingeben (Stunde)`,\n \"Time.enterTimeHourMinute\": `Zeit eingeben (Stunde und Minute)`,\n \"Time.enterTimeHourMinuteSecond\": `Zeit eingeben (Stunde, Minute und Sekunde)`,\n \"Time.startTime\": `Startzeit`,\n clearInput: `Eingabewert löschen`,\n};\n","/**\n * Pre-compiled es messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Indicar tiempo`,\n \"Time.enterTimeHour\": `Indicar tiempo (hora)`,\n \"Time.enterTimeHourMinute\": `Indicar tiempo (hora y minuto)`,\n \"Time.enterTimeHourMinuteSecond\": `Indicar tiempo (hora, minuto y segundo)`,\n \"Time.startTime\": `Iniciar tiempo`,\n clearInput: `Eliminar valor de entrada`,\n};\n","/**\n * Pre-compiled fr-FR messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Saisir l'heure`,\n \"Time.enterTimeHour\": `Saisir l'heure (heure)`,\n \"Time.enterTimeHourMinute\": `Saisir l'heure (heure et minute)`,\n \"Time.enterTimeHourMinuteSecond\": `Saisir l'heure (heure, minute et seconde)`,\n \"Time.startTime\": `Heure de début`,\n clearInput: `Effacer la valeur saisie`,\n};\n","/**\n * Pre-compiled pt-BR messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Inserir hora`,\n \"Time.enterTimeHour\": `Inserir hora (hora)`,\n \"Time.enterTimeHourMinute\": `Inserir hora (hora e minutos)`,\n \"Time.enterTimeHourMinuteSecond\": `Inserir hora (hora, minutos e segundos)`,\n \"Time.startTime\": `Hora de início`,\n clearInput: `Limpar valores inseridos`,\n};\n","/**\n * Pre-compiled localized messages for DatePicker 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 datePickerMessages_en from \"./intl/en\";\nimport datePickerMessages_de from \"./intl/de\";\nimport datePickerMessages_es from \"./intl/es\";\nimport datePickerMessages_fr from \"./intl/fr-FR\";\nimport datePickerMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const datePickerMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(datePickerMessages_en),\n de: normalizeMessages(datePickerMessages_de),\n es: normalizeMessages(datePickerMessages_es),\n \"fr-FR\": normalizeMessages(datePickerMessages_fr),\n \"pt-BR\": normalizeMessages(datePickerMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for DatePicker component\n */\nexport type DatePickerMessageKey =\n | \"Time.enterTime\"\n | \"Time.enterTimeHour\"\n | \"Time.enterTimeHourMinute\"\n | \"Time.enterTimeHourMinuteSecond\"\n | \"Time.startTime\"\n | \"clearInput\";\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { datePickerMessagesStrings } from \"../date-picker.messages\";\n\n/**\n * DatePickerCustomContext - Custom context provider for DatePicker\n *\n * Provides React Aria context overrides for button and time input slots,\n * enabling coordinated behavior between DatePicker parts.\n */\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const msg = useLocalizedStringFormatter(datePickerMessagesStrings);\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return msg.format(\"Time.enterTimeHour\");\n case \"minute\":\n return msg.format(\"Time.enterTimeHourMinute\");\n case \"second\":\n return msg.format(\"Time.enterTimeHourMinuteSecond\");\n default:\n return msg.format(\"Time.enterTime\");\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": msg.format(\"clearInput\"),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { datePickerMessagesStrings } from \"../date-picker.messages\";\n\n/**\n * DatePickerTimeInput - Time input component displayed in DatePicker popover footer\n *\n * Only renders when granularity requires time selection (hour, minute, second).\n * Automatically focuses when user selects a date from the calendar.\n *\n * @supportsStyleProps\n */\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const msg = useLocalizedStringFormatter(datePickerMessagesStrings);\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n {msg.format(\"Time.startTime\")}\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput, DatePickerCustomContext } from \"./components\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","datePickerMessages_en","datePickerMessages_de","datePickerMessages_es","datePickerMessages_fr","datePickerMessages_pt","datePickerMessagesStrings","normalizeMessages","DatePickerCustomContext","children","msg","useLocalizedStringFormatter","buttonContext","useSlottedContext","ButtonContext","datePickerState","useContext","DatePickerStateContext","noInputValue","timeValue","setTimeValue","granularity","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","activeElement","timeInputSlots","value","jsx","Provider","TimeFieldContext","DatePickerTimeInput","hideTimeZone","hourCycle","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","jsxs","Flex","Text","TimeInput","DatePicker","props","size","variant","recipe","useSlotRecipe","datePickerSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":"4zBAOM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,YACP,CAAC,EAMYC,EAAqBH,EAGhC,MAAO,MAAM,EAKFI,EAAsBH,EAGjC,MAAO,OAAO,EAKHI,EAAwBJ,EAGnC,MAAO,SAAS,EAKLK,EAAyBL,EAGpC,MAAO,UAAU,ECpCnBM,EAAe,CACb,iBAAkB,aAClB,qBAAsB,oBACtB,2BAA4B,+BAC5B,iCAAkC,wCAClC,iBAAkB,aAClB,WAAY,mBACd,ECPAC,EAAe,CACb,iBAAkB,gBAClB,qBAAsB,yBACtB,2BAA4B,oCAC5B,iCAAkC,6C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AM,CAAA,CAAA,EAETpC,EAAAA,IAACmC,EAAAA,WAAA,CACC,QAAQ,QACR,KAAMN,EACN,KAAK,iBAEL,eAACQ,EAAAA,cAAA,CAAA,CAAc,CAAA,CAAA,CACjB,CAAA,CACF,CAAA,CAAA,EAGN,CAAA,CACF,EACArC,EAAAA,IAAC9B,GAAsB,QAAO,GAC5B,eAACoE,EAAAA,0CAAA,CAAQ,UAAU,aACjB,SAAAzB,EAAAA,KAAC0B,EAAAA,0CAAA,CACC,SAAA,CAAAvC,EAAAA,IAAC7B,EAAA,CACC,SAAA6B,EAAAA,IAACwC,EAAAA,SAAA,CAAA,CAAS,EACZ,EACAxC,EAAAA,IAACG,EAAA,CACC,aAAAC,EACA,UAAAC,CAAA,CAAA,CACF,CAAA,CACF,EACF,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EAEJ,CAEJ,EAEAY,EAAW,YAAc"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { createSlotRecipeContext as k } from "@chakra-ui/react";
|
|
3
|
+
import { Close as y, CalendarMonth as C } from "@commercetools/nimbus-icons";
|
|
4
|
+
import { b as $, c as M } from "./DatePicker-CL72jbDo.es.js";
|
|
5
|
+
import { $ as H, k as D } from "./Dialog-B0BQfdQa.es.js";
|
|
6
|
+
import { $ as E } from "./Group-BQc9LuMT.es.js";
|
|
7
|
+
import { useSlotRecipe as R } from "@chakra-ui/react/styled-system";
|
|
8
|
+
import { h as z } from "./index-D3KlpJA5.es.js";
|
|
9
|
+
import { e as V } from "./extract-style-props-CM4QZGaE.es.js";
|
|
10
|
+
import { useContext as I, useRef as g, useEffect as w } from "react";
|
|
11
|
+
import { $ as S } from "./Button-BjcDZ5eb.es.js";
|
|
12
|
+
import { c as B, e as F } from "./utils-B6pV5ewr.es.js";
|
|
13
|
+
import { o as Z } from "./DateField-DCWy1Ysp.es.js";
|
|
14
|
+
import { n as T, u as x } from "./normalize-messages-D5T4I93D.es.js";
|
|
15
|
+
import { D as _ } from "./date-input-Ba6r9wMb.es.js";
|
|
16
|
+
import { C as j } from "./calendar-Bnw0u0vz.es.js";
|
|
17
|
+
import { T as L } from "./time-input-T4jAE9kM.es.js";
|
|
18
|
+
import { Flex as A } from "@chakra-ui/react/flex";
|
|
19
|
+
import { T as G } from "./text-CIb_VDvO.es.js";
|
|
20
|
+
import { B as O } from "./box-DuBoAZvq.es.js";
|
|
21
|
+
import { I as P } from "./icon-button-DhHKxd27.es.js";
|
|
22
|
+
const { withProvider: q, withContext: h } = /* @__PURE__ */ k({
|
|
23
|
+
key: "datePicker"
|
|
24
|
+
}), N = /* @__PURE__ */ q("div", "root"), W = /* @__PURE__ */ h("div", "group"), J = /* @__PURE__ */ h("div", "popover"), K = /* @__PURE__ */ h("div", "calendar"), Q = {
|
|
25
|
+
"Time.enterTime": "Enter time",
|
|
26
|
+
"Time.enterTimeHour": "Enter time (hour)",
|
|
27
|
+
"Time.enterTimeHourMinute": "Enter time (hour and minute)",
|
|
28
|
+
"Time.enterTimeHourMinuteSecond": "Enter time (hour, minute, and second)",
|
|
29
|
+
"Time.startTime": "Start time",
|
|
30
|
+
clearInput: "Clear input value"
|
|
31
|
+
}, U = {
|
|
32
|
+
"Time.enterTime": "Zeit eingeben",
|
|
33
|
+
"Time.enterTimeHour": "Zeit eingeben (Stunde)",
|
|
34
|
+
"Time.enterTimeHourMinute": "Zeit eingeben (Stunde und Minute)",
|
|
35
|
+
"Time.enterTimeHourMinuteSecond": "Zeit eingeben (Stunde, Minute und Sekunde)",
|
|
36
|
+
"Time.startTime": "Startzeit",
|
|
37
|
+
clearInput: "Eingabewert löschen"
|
|
38
|
+
}, X = {
|
|
39
|
+
"Time.enterTime": "Indicar tiempo",
|
|
40
|
+
"Time.enterTimeHour": "Indicar tiempo (hora)",
|
|
41
|
+
"Time.enterTimeHourMinute": "Indicar tiempo (hora y minuto)",
|
|
42
|
+
"Time.enterTimeHourMinuteSecond": "Indicar tiempo (hora, minuto y segundo)",
|
|
43
|
+
"Time.startTime": "Iniciar tiempo",
|
|
44
|
+
clearInput: "Eliminar valor de entrada"
|
|
45
|
+
}, Y = {
|
|
46
|
+
"Time.enterTime": "Saisir l'heure",
|
|
47
|
+
"Time.enterTimeHour": "Saisir l'heure (heure)",
|
|
48
|
+
"Time.enterTimeHourMinute": "Saisir l'heure (heure et minute)",
|
|
49
|
+
"Time.enterTimeHourMinuteSecond": "Saisir l'heure (heure, minute et seconde)",
|
|
50
|
+
"Time.startTime": "Heure de début",
|
|
51
|
+
clearInput: "Effacer la valeur saisie"
|
|
52
|
+
}, ee = {
|
|
53
|
+
"Time.enterTime": "Inserir hora",
|
|
54
|
+
"Time.enterTimeHour": "Inserir hora (hora)",
|
|
55
|
+
"Time.enterTimeHourMinute": "Inserir hora (hora e minutos)",
|
|
56
|
+
"Time.enterTimeHourMinuteSecond": "Inserir hora (hora, minutos e segundos)",
|
|
57
|
+
"Time.startTime": "Hora de início",
|
|
58
|
+
clearInput: "Limpar valores inseridos"
|
|
59
|
+
}, v = {
|
|
60
|
+
en: /* @__PURE__ */ T(Q),
|
|
61
|
+
de: /* @__PURE__ */ T(U),
|
|
62
|
+
es: /* @__PURE__ */ T(X),
|
|
63
|
+
"fr-FR": /* @__PURE__ */ T(Y),
|
|
64
|
+
"pt-BR": /* @__PURE__ */ T(ee)
|
|
65
|
+
}, te = ({
|
|
66
|
+
children: n
|
|
67
|
+
}) => {
|
|
68
|
+
const t = x(v), o = B(S) || {}, a = I($), s = a?.dateValue === null, { timeValue: r, setTimeValue: l, granularity: i } = a, m = o?.isDisabled, c = () => {
|
|
69
|
+
switch (i) {
|
|
70
|
+
case "hour":
|
|
71
|
+
return t.format("Time.enterTimeHour");
|
|
72
|
+
case "minute":
|
|
73
|
+
return t.format("Time.enterTimeHourMinute");
|
|
74
|
+
case "second":
|
|
75
|
+
return t.format("Time.enterTimeHourMinuteSecond");
|
|
76
|
+
default:
|
|
77
|
+
return t.format("Time.enterTime");
|
|
78
|
+
}
|
|
79
|
+
}, d = {
|
|
80
|
+
/** toggles the calendar popover */
|
|
81
|
+
calendarToggle: {
|
|
82
|
+
...o,
|
|
83
|
+
onPress: (u) => {
|
|
84
|
+
const b = document?.activeElement;
|
|
85
|
+
b && b.blur(), o.onPress?.(u);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
/** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */
|
|
89
|
+
clear: {
|
|
90
|
+
onPress: () => a?.setValue(null),
|
|
91
|
+
"aria-label": t.format("clearInput"),
|
|
92
|
+
isDisabled: m,
|
|
93
|
+
// Hide the button when there's no value
|
|
94
|
+
style: s ? { display: "none" } : void 0,
|
|
95
|
+
"aria-hidden": s ? !0 : void 0
|
|
96
|
+
}
|
|
97
|
+
}, p = {
|
|
98
|
+
timeInput: {
|
|
99
|
+
value: r,
|
|
100
|
+
onChange: (u) => {
|
|
101
|
+
u !== null && l(u);
|
|
102
|
+
},
|
|
103
|
+
granularity: i === "day" ? void 0 : i,
|
|
104
|
+
"aria-label": c()
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
return /* @__PURE__ */ e(
|
|
108
|
+
F,
|
|
109
|
+
{
|
|
110
|
+
values: [
|
|
111
|
+
[
|
|
112
|
+
S,
|
|
113
|
+
{
|
|
114
|
+
slots: d
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
[Z, { slots: p }]
|
|
118
|
+
],
|
|
119
|
+
children: n
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}, re = ({
|
|
123
|
+
hideTimeZone: n,
|
|
124
|
+
hourCycle: t
|
|
125
|
+
}) => {
|
|
126
|
+
const o = x(v), a = I($), { granularity: s, dateValue: r } = a, l = g(null), i = g(r);
|
|
127
|
+
return s === "day" ? null : (w(() => {
|
|
128
|
+
let m;
|
|
129
|
+
if (r && i.current?.compare(r) !== 0) {
|
|
130
|
+
const c = l.current, d = document.activeElement;
|
|
131
|
+
c?.contains(d) && d?.getAttribute("role") === "spinbutton" || (m = setTimeout(() => {
|
|
132
|
+
c && c.querySelector(
|
|
133
|
+
'[role="spinbutton"]'
|
|
134
|
+
)?.focus();
|
|
135
|
+
}, 50));
|
|
136
|
+
}
|
|
137
|
+
return i.current = r, () => {
|
|
138
|
+
m && clearTimeout(m);
|
|
139
|
+
};
|
|
140
|
+
}, [r]), /* @__PURE__ */ f(
|
|
141
|
+
A,
|
|
142
|
+
{
|
|
143
|
+
ref: l,
|
|
144
|
+
borderTop: "solid-25",
|
|
145
|
+
borderColor: "neutral.3",
|
|
146
|
+
py: "300",
|
|
147
|
+
px: "400",
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
justifyContent: "center",
|
|
150
|
+
gap: "200",
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ e(G, { textStyle: "xs", fontWeight: "500", color: "neutral.12", children: o.format("Time.startTime") }),
|
|
153
|
+
/* @__PURE__ */ e(
|
|
154
|
+
L,
|
|
155
|
+
{
|
|
156
|
+
slot: "timeInput",
|
|
157
|
+
variant: "ghost",
|
|
158
|
+
size: "sm",
|
|
159
|
+
hideTimeZone: n,
|
|
160
|
+
hourCycle: t
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
));
|
|
166
|
+
}, ie = (n) => {
|
|
167
|
+
const {
|
|
168
|
+
size: t = "md",
|
|
169
|
+
variant: o,
|
|
170
|
+
granularity: a = "day",
|
|
171
|
+
hideTimeZone: s,
|
|
172
|
+
hourCycle: r
|
|
173
|
+
} = n, l = R({ recipe: z }), [i, m] = l.splitVariantProps(n), [c, d] = V(m), p = t === "md" ? "xs" : "2xs", u = a === "day" ? n.shouldCloseOnSelect : !1;
|
|
174
|
+
return /* @__PURE__ */ e(N, { ...i, ...c, asChild: !0, children: /* @__PURE__ */ e(
|
|
175
|
+
M,
|
|
176
|
+
{
|
|
177
|
+
...d,
|
|
178
|
+
shouldCloseOnSelect: u,
|
|
179
|
+
children: /* @__PURE__ */ f(te, { children: [
|
|
180
|
+
/* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
181
|
+
_,
|
|
182
|
+
{
|
|
183
|
+
size: t,
|
|
184
|
+
variant: o,
|
|
185
|
+
width: "full",
|
|
186
|
+
hideTimeZone: s,
|
|
187
|
+
hourCycle: r,
|
|
188
|
+
trailingElement: /* @__PURE__ */ f(O, { children: [
|
|
189
|
+
/* @__PURE__ */ e(
|
|
190
|
+
P,
|
|
191
|
+
{
|
|
192
|
+
variant: "ghost",
|
|
193
|
+
size: p,
|
|
194
|
+
slot: "clear",
|
|
195
|
+
children: /* @__PURE__ */ e(y, {})
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ e(
|
|
199
|
+
P,
|
|
200
|
+
{
|
|
201
|
+
variant: "ghost",
|
|
202
|
+
size: p,
|
|
203
|
+
slot: "calendarToggle",
|
|
204
|
+
children: /* @__PURE__ */ e(C, {})
|
|
205
|
+
}
|
|
206
|
+
)
|
|
207
|
+
] })
|
|
208
|
+
}
|
|
209
|
+
) }) }),
|
|
210
|
+
/* @__PURE__ */ e(J, { asChild: !0, children: /* @__PURE__ */ e(H, { placement: "bottom end", children: /* @__PURE__ */ f(D, { children: [
|
|
211
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(j, {}) }),
|
|
212
|
+
/* @__PURE__ */ e(
|
|
213
|
+
re,
|
|
214
|
+
{
|
|
215
|
+
hideTimeZone: s,
|
|
216
|
+
hourCycle: r
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
] }) }) })
|
|
220
|
+
] })
|
|
221
|
+
}
|
|
222
|
+
) });
|
|
223
|
+
};
|
|
224
|
+
ie.displayName = "DatePicker";
|
|
225
|
+
export {
|
|
226
|
+
ie as D
|
|
227
|
+
};
|
|
228
|
+
//# sourceMappingURL=date-picker-DwQ1WWNP.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker-DwQ1WWNP.es.js","sources":["../../src/components/date-picker/date-picker.slots.tsx","../../src/components/date-picker/intl/en.ts","../../src/components/date-picker/intl/de.ts","../../src/components/date-picker/intl/es.ts","../../src/components/date-picker/intl/fr-FR.ts","../../src/components/date-picker/intl/pt-BR.ts","../../src/components/date-picker/date-picker.messages.ts","../../src/components/date-picker/components/date-picker.custom-context.tsx","../../src/components/date-picker/components/date-picker.time-input.tsx","../../src/components/date-picker/date-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { DatePickerRootSlotProps } from \"./date-picker.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"datePicker\",\n});\n\n/**\n * Root component that provides the styling context for the DatePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DatePickerRootSlot = withProvider<\n HTMLDivElement,\n DatePickerRootSlotProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput.\n */\nexport const DatePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DatePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DatePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DatePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DatePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DatePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","/**\n * Pre-compiled en messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Enter time`,\n \"Time.enterTimeHour\": `Enter time (hour)`,\n \"Time.enterTimeHourMinute\": `Enter time (hour and minute)`,\n \"Time.enterTimeHourMinuteSecond\": `Enter time (hour, minute, and second)`,\n \"Time.startTime\": `Start time`,\n clearInput: `Clear input value`,\n};\n","/**\n * Pre-compiled de messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Zeit eingeben`,\n \"Time.enterTimeHour\": `Zeit eingeben (Stunde)`,\n \"Time.enterTimeHourMinute\": `Zeit eingeben (Stunde und Minute)`,\n \"Time.enterTimeHourMinuteSecond\": `Zeit eingeben (Stunde, Minute und Sekunde)`,\n \"Time.startTime\": `Startzeit`,\n clearInput: `Eingabewert löschen`,\n};\n","/**\n * Pre-compiled es messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Indicar tiempo`,\n \"Time.enterTimeHour\": `Indicar tiempo (hora)`,\n \"Time.enterTimeHourMinute\": `Indicar tiempo (hora y minuto)`,\n \"Time.enterTimeHourMinuteSecond\": `Indicar tiempo (hora, minuto y segundo)`,\n \"Time.startTime\": `Iniciar tiempo`,\n clearInput: `Eliminar valor de entrada`,\n};\n","/**\n * Pre-compiled fr-FR messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Saisir l'heure`,\n \"Time.enterTimeHour\": `Saisir l'heure (heure)`,\n \"Time.enterTimeHourMinute\": `Saisir l'heure (heure et minute)`,\n \"Time.enterTimeHourMinuteSecond\": `Saisir l'heure (heure, minute et seconde)`,\n \"Time.startTime\": `Heure de début`,\n clearInput: `Effacer la valeur saisie`,\n};\n","/**\n * Pre-compiled pt-BR messages for DatePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n \"Time.enterTime\": `Inserir hora`,\n \"Time.enterTimeHour\": `Inserir hora (hora)`,\n \"Time.enterTimeHourMinute\": `Inserir hora (hora e minutos)`,\n \"Time.enterTimeHourMinuteSecond\": `Inserir hora (hora, minutos e segundos)`,\n \"Time.startTime\": `Hora de início`,\n clearInput: `Limpar valores inseridos`,\n};\n","/**\n * Pre-compiled localized messages for DatePicker 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 datePickerMessages_en from \"./intl/en\";\nimport datePickerMessages_de from \"./intl/de\";\nimport datePickerMessages_es from \"./intl/es\";\nimport datePickerMessages_fr from \"./intl/fr-FR\";\nimport datePickerMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const datePickerMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(datePickerMessages_en),\n de: normalizeMessages(datePickerMessages_de),\n es: normalizeMessages(datePickerMessages_es),\n \"fr-FR\": normalizeMessages(datePickerMessages_fr),\n \"pt-BR\": normalizeMessages(datePickerMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for DatePicker component\n */\nexport type DatePickerMessageKey =\n | \"Time.enterTime\"\n | \"Time.enterTimeHour\"\n | \"Time.enterTimeHourMinute\"\n | \"Time.enterTimeHourMinuteSecond\"\n | \"Time.startTime\"\n | \"clearInput\";\n","import { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DatePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { datePickerMessagesStrings } from \"../date-picker.messages\";\n\n/**\n * DatePickerCustomContext - Custom context provider for DatePicker\n *\n * Provides React Aria context overrides for button and time input slots,\n * enabling coordinated behavior between DatePicker parts.\n */\nexport const DatePickerCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const msg = useLocalizedStringFormatter(datePickerMessagesStrings);\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const datePickerState = useContext(DatePickerStateContext);\n const noInputValue = datePickerState?.dateValue === null;\n\n const { timeValue, setTimeValue, granularity } = datePickerState!;\n\n // Try to get disabled state from the button context\n const isDatePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = () => {\n switch (granularity) {\n case \"hour\":\n return msg.format(\"Time.enterTimeHour\");\n case \"minute\":\n return msg.format(\"Time.enterTimeHourMinute\");\n case \"second\":\n return msg.format(\"Time.enterTimeHourMinuteSecond\");\n default:\n return msg.format(\"Time.enterTime\");\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n onPress: () => datePickerState?.setValue(null),\n \"aria-label\": msg.format(\"clearInput\"),\n isDisabled: isDatePickerDisabled,\n // Hide the button when there's no value\n style: noInputValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": noInputValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n const timeInputSlots = {\n timeInput: {\n value: timeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null) {\n setTimeValue(value);\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DatePickerStateContext } from \"react-aria-components\";\nimport type { DatePickerTimeInputProps } from \"../date-picker.types\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { datePickerMessagesStrings } from \"../date-picker.messages\";\n\n/**\n * DatePickerTimeInput - Time input component displayed in DatePicker popover footer\n *\n * Only renders when granularity requires time selection (hour, minute, second).\n * Automatically focuses when user selects a date from the calendar.\n *\n * @supportsStyleProps\n */\nexport const DatePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DatePickerTimeInputProps) => {\n const msg = useLocalizedStringFormatter(datePickerMessagesStrings);\n const datePickerState = useContext(DatePickerStateContext);\n const { granularity, dateValue } = datePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousDateRef = useRef(dateValue);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date changes (user selects a date from calendar)\n useEffect(() => {\n // Check if date changed\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n if (dateValue && previousDateRef.current?.compare(dateValue) !== 0) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n firstSegment?.focus();\n }\n }, 50);\n }\n }\n\n previousDateRef.current = dateValue;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [dateValue]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n <Text textStyle=\"xs\" fontWeight=\"500\" color=\"neutral.12\">\n {msg.format(\"Time.startTime\")}\n </Text>\n <TimeInput\n slot=\"timeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n );\n};\n","import {\n DatePickerRootSlot,\n DatePickerGroupSlot,\n DatePickerPopoverSlot,\n DatePickerCalendarSlot,\n} from \"./date-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DatePicker as ReactAriaDatePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { datePickerSlotRecipe } from \"./date-picker.recipe\";\nimport type { DatePickerProps } from \"./date-picker.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { DateInput, Calendar, IconButton, Box } from \"@/components\";\nimport { DatePickerTimeInput, DatePickerCustomContext } from \"./components\";\n\n/**\n * # DatePicker\n *\n * a UI component for users to enter or select a specific calendar date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/datepicker}\n */\nexport const DatePicker = (props: DatePickerProps) => {\n const {\n size = \"md\",\n variant,\n granularity = \"day\",\n hideTimeZone,\n hourCycle,\n } = props;\n const recipe = useSlotRecipe({ recipe: datePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DatePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDatePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DatePickerCustomContext>\n <DatePickerGroupSlot asChild>\n <Group>\n <DateInput\n size={size}\n variant={variant}\n width=\"full\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n trailingElement={\n <Box>\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </Box>\n }\n />\n </Group>\n </DatePickerGroupSlot>\n <DatePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DatePickerCalendarSlot>\n <Calendar />\n </DatePickerCalendarSlot>\n <DatePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DatePickerPopoverSlot>\n </DatePickerCustomContext>\n </ReactAriaDatePicker>\n </DatePickerRootSlot>\n );\n};\n\nDatePicker.displayName = \"DatePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","DatePickerRootSlot","DatePickerGroupSlot","DatePickerPopoverSlot","DatePickerCalendarSlot","datePickerMessages_en","datePickerMessages_de","datePickerMessages_es","datePickerMessages_fr","datePickerMessages_pt","datePickerMessagesStrings","normalizeMessages","DatePickerCustomContext","children","msg","useLocalizedStringFormatter","buttonContext","useSlottedContext","ButtonContext","datePickerState","useContext","DatePickerStateContext","noInputValue","timeValue","setTimeValue","granularity","isDatePickerDisabled","getDefaultTimeInputAriaLabel","buttonSlots","event","activeElement","timeInputSlots","value","jsx","Provider","TimeFieldContext","DatePickerTimeInput","hideTimeZone","hourCycle","dateValue","timeInputRef","useRef","previousDateRef","useEffect","timeoutId","container","jsxs","Flex","Text","TimeInput","DatePicker","props","size","variant","recipe","useSlotRecipe","datePickerSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","overlayButtonSize","shouldCloseOnSelect","ReactAriaDatePicker","Group","DateInput","Box","IconButton","Close","CalendarMonth","Popover","Dialog","Calendar"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IAAqB,gBAAAH,EAGhC,OAAO,MAAM,GAKFI,IAAsB,gBAAAH,EAGjC,OAAO,OAAO,GAKHI,IAAwB,gBAAAJ,EAGnC,OAAO,SAAS,GAKLK,IAAyB,gBAAAL,EAGpC,OAAO,UAAU,GCpCnBM,IAAe;AAAA,EACb,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kBAAkB;AAAA,EAClB,YAAY;AACd,GCPAC,IAAe;AAAA,EACb,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kBAAkB;AAAA,EAClB,YAAY;AACd,GCPAC,IAAe;AAAA,EACb,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kBAAkB;AAAA,EAClB,YAAY;AACd,GCPAC,IAAe;AAAA,EACb,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kBAAkB;AAAA,EAClB,Y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UAAA,gBAAA+B,EAACgC,GAAA,EACC,UAAA,gBAAAhC;AAAA,UAACiC;AAAA,UAAA;AAAA,YACC,MAAAd;AAAA,YACA,SAAAC;AAAA,YACA,OAAM;AAAA,YACN,cAAAhB;AAAA,YACA,WAAAC;AAAA,YACA,mCACG6B,GAAA,EACC,UAAA;AAAA,cAAA,gBAAAlC;AAAA,gBAACmC;AAAA,gBAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,MAAMN;AAAA,kBACN,MAAK;AAAA,kBAEL,4BAACO,GAAA,CAAA,CAAM;AAAA,gBAAA;AAAA,cAAA;AAAA,cAET,gBAAApC;AAAA,gBAACmC;AAAA,gBAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,MAAMN;AAAA,kBACN,MAAK;AAAA,kBAEL,4BAACQ,GAAA,CAAA,CAAc;AAAA,gBAAA;AAAA,cAAA;AAAA,YACjB,EAAA,CACF;AAAA,UAAA;AAAA,QAAA,GAGN,EAAA,CACF;AAAA,QACA,gBAAArC,EAAC9B,KAAsB,SAAO,IAC5B,4BAACoE,GAAA,EAAQ,WAAU,cACjB,UAAA,gBAAAzB,EAAC0B,GAAA,EACC,UAAA;AAAA,UAAA,gBAAAvC,EAAC7B,GAAA,EACC,UAAA,gBAAA6B,EAACwC,GAAA,CAAA,CAAS,GACZ;AAAA,UACA,gBAAAxC;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,cAAAC;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,EAAA,CACF,GACF,EAAA,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEAY,GAAW,cAAc;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),q=require("@chakra-ui/react"),z=require("@commercetools/nimbus-icons"),$=require("./DatePicker-NWRDzwUt.cjs.js"),P=require("./Dialog-CSr6lHSd.cjs.js"),E=require("./Group-1nWkximy.cjs.js"),L=require("@chakra-ui/react/styled-system"),F=require("./index-CBRmb4jF.cjs.js"),V=require("./extract-style-props-BvvBKXOu.cjs.js"),f=require("react"),l=require("./normalize-messages-CaDzkuUm.cjs.js"),v=require("@chakra-ui/react/flex"),M=require("./text-BtRhIklG.cjs.js"),C=require("./time-input-G64QnJLm.cjs.js"),I=require("./Button-DLCecw8f.cjs.js"),y=require("./utils-DVb3jcp5.cjs.js"),w=require("./DateField-BxXzaXAv.cjs.js"),B=require("./range-calendar-tLrCZyTQ.cjs.js"),j=require("./date-input-BL7owE4Q.cjs.js"),D=require("./icon-button-5pYAEokc.cjs.js"),{withProvider:_,withContext:x}=q.createSlotRecipeContext({key:"dateRangePicker"}),A=_("div","root"),O=x("div","group"),W=x("div","trigger"),G=x("div","popover"),K=x("div","calendar"),N={clearInput:"Clear input value",clearSelection:"Clear date range",endTime:"End time",endTimeHour:"End time (hour)",endTimeHourMinute:"End time (hour and minute)",endTimeHourMinuteSecond:"End time (hour, minute, and second)",endTimeLabel:"End time",openCalendar:"Open calendar",startTime:"Start time",startTimeHour:"Start time (hour)",startTimeHourMinute:"Start time (hour and minute)",startTimeHourMinuteSecond:"Start time (hour, minute, and second)",startTimeLabel:"Start time"},J={clearInput:"Eingabewert löschen",clearSelection:"Datumsbereich löschen",endTime:"Endzeit",endTimeHour:"Endzeit (Stunde)",endTimeHourMinute:"Endzeit (Stunde und Minute)",endTimeHourMinuteSecond:"Endzeit (Stunde, Minute und Sekunde)",endTimeLabel:"Endzeit",openCalendar:"Kalender öffnen",startTime:"Startzeit",startTimeHour:"Startzeit (Stunde)",startTimeHourMinute:"Startzeit (Stunde und Minute)",startTimeHourMinuteSecond:"Startzeit (Stunde, Minute und Sekunde)",startTimeLabel:"Startzeit"},Q={clearInput:"Eliminar valor de entrada",clearSelection:"Borrar rango de fechas",endTime:"Finalizar tiempo",endTimeHour:"Finalizar tiempo (hora)",endTimeHourMinute:"Finalizar tiempo (hora y minuto)",endTimeHourMinuteSecond:"Finalizar tiempo (hora, minuto, segundo)",endTimeLabel:"Finalizar tiempo",openCalendar:"Abrir calendario",startTime:"Iniciar tiempo",startTimeHour:"Iniciar tiempo (hora)",startTimeHourMinute:"Iniciar tiempo (hora y minuto)",startTimeHourMinuteSecond:"Iniciar tiempo (hora, minuto y segundo)",startTimeLabel:"Iniciar tiempo"},U={clearInput:"Effacer la valeur saisie",clearSelection:"Effacer la plage de dates",endTime:"Heure de fin",endTimeHour:"Heure de fin (heure)",endTimeHourMinute:"Heure de fin (heure et minute)",endTimeHourMinuteSecond:" Heure de fin (heure, minute et seconde)",endTimeLabel:"Heure de fin",openCalendar:"Ouvrir le calendrier",startTime:"Heure de début",startTimeHour:"Heure de début (heure)",startTimeHourMinute:"Heure de début (heure et minute)",startTimeHourMinuteSecond:"Heure de début (heure, minute et seconde)",startTimeLabel:"Heure de début"},X={clearInput:"Limpar valores inseridos",clearSelection:"Limpar intervalo de datas",endTime:"Hora de término",endTimeHour:"Hora de término (hora)",endTimeHourMinute:"Hora de término (hora e minutos)",endTimeHourMinuteSecond:"Hora de término (hora, minutos e segundos)",endTimeLabel:"Hora de término",openCalendar:"Abrir agenda",startTime:"Hora de início",startTimeHour:"Hora de início (hora)",startTimeHourMinute:"Hora de início (hora e minutos)",startTimeHourMinuteSecond:"Hora de início (hora, minutos e segundos)",startTimeLabel:"Hora de início"},R={en:l.normalizeMessages(N),de:l.normalizeMessages(J),es:l.normalizeMessages(Q),"fr-FR":l.normalizeMessages(U),"pt-BR":l.normalizeMessages(X)},Y=({hideTimeZone:s,hourCycle:i})=>{const u=l.useLocalizedStringFormatter(R),t=f.useContext($.$06d5b8ec9ee5d538$export$80d7ae1f804790be),{granularity:d,value:a}=t,o=f.useRef(null),m=f.useRef(a);return d==="day"?null:(f.useEffect(()=>{let g;if(a?.start&&m.current?.start?.compare(a.start)!==0||a?.end&&m.current?.end?.compare(a.end)!==0){const c=o.current,h=document.activeElement;c?.contains(h)&&h?.getAttribute("role")==="spinbutton"||(g=setTimeout(()=>{if(c){const n=c.querySelector('[role="spinbutton"]');n&&n.focus()}},50))}return m.current=a,()=>{g&&clearTimeout(g)}},[a]),e.jsxs(v.Flex,{ref:o,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[e.jsxs(v.Flex,{alignItems:"center",gap:"200",children:[e.jsx(M.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",minWidth:"fit-content",children:u.format("startTimeLabel")}),e.jsx(C.TimeInput,{slot:"startTimeInput",variant:"ghost",size:"sm",hideTimeZone:s,hourCycle:i})]}),e.jsxs(v.Flex,{alignItems:"center",gap:"200",children:[e.jsx(M.Text,{textStyle:"xs",fontWeight:"500",color:"neutral.12",minWidth:"fit-content",children:u.format("endTimeLabel")}),e.jsx(C.TimeInput,{slot:"endTimeInput",variant:"ghost",size:"sm",hideTimeZone:s,hourCycle:i})]})]}))},Z=({children:s})=>{const i=l.useLocalizedStringFormatter(R),u=y.$64fa3d84918910a7$export$fabf2dc03a41866e(I.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},t=f.useContext($.$06d5b8ec9ee5d538$export$80d7ae1f804790be),d=n=>n?.day&&n?.month&&n?.year,a=!t?.value||!d(t.value.start)||!d(t.value.end),{granularity:o}=t,m=t?.value?.start&&"hour"in t.value.start?t.value.start:null,g=t?.value?.end&&"hour"in t.value.end?t.value.end:null,b=u?.isDisabled,c=n=>{const r=n==="start"?"start":"end";switch(o){case"hour":return i.format(`${r}TimeHour`);case"minute":return i.format(`${r}TimeHourMinute`);case"second":return i.format(`${r}TimeHourMinuteSecond`);default:return i.format(`${r}Time`)}},h={calendarToggle:{...u,onPress:n=>{const r=document?.activeElement;r&&r.blur(),u.onPress?.(n)}},clear:{onPress:()=>t?.setValue(null),"aria-label":i.format("clearInput"),isDisabled:b,style:a?{display:"none"}:void 0,"aria-hidden":a?!0:void 0}},S={startTimeInput:{value:m,onChange:n=>{if(n!==null&&t?.value?.start){const r=t.value,p=r.start,T=r.end;if(p&&T){const H=p.set({hour:n.hour,minute:n.minute||0,second:n.second||0,millisecond:n.millisecond||0});t.setValue({start:H,end:T})}}},granularity:o==="day"?void 0:o,"aria-label":c("start")},endTimeInput:{value:g,onChange:n=>{if(n!==null&&t?.value?.end){const r=t.value,p=r.start,T=r.end;if(p&&T){const H=T.set({hour:n.hour,minute:n.minute||0,second:n.second||0,millisecond:n.millisecond||0});t.setValue({start:p,end:H})}}},granularity:o==="day"?void 0:o,"aria-label":c("end")}};return e.jsx(y.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[I.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:h}],[w.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:S}]],children:s})},k=s=>{const i=l.useLocalizedStringFormatter(R),{granularity:u="day",hideTimeZone:t,hourCycle:d}=s,a=L.useSlotRecipe({recipe:F.dateRangePickerSlotRecipe}),[o,m]=a.splitVariantProps(s),[g,b]=V.extractStyleProps(m),{size:c="md"}=o,h=c==="md"?"xs":"2xs",S=u==="day"?s.shouldCloseOnSelect:!1;return e.jsx(A,{...o,...g,asChild:!0,children:e.jsx($.$06d5b8ec9ee5d538$export$17334619f3ac2224,{...b,shouldCloseOnSelect:S,children:e.jsxs(Z,{children:[e.jsx(O,{asChild:!0,children:e.jsxs(E.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:[e.jsx(j.DateInput,{slot:"start",size:s.size,variant:"plain",width:"auto",hideTimeZone:t,hourCycle:d}),e.jsx(M.Text,{as:"span",px:"150",color:"neutral.11",userSelect:"none","aria-hidden":"true",slot:null,children:"–"}),e.jsx(j.DateInput,{slot:"end",size:s.size,variant:"plain",width:"auto",hideTimeZone:t,hourCycle:d}),e.jsxs(W,{children:[e.jsx(D.IconButton,{variant:"ghost",size:h,slot:"clear","aria-label":i.format("clearSelection"),children:e.jsx(z.Close,{})}),e.jsx(D.IconButton,{variant:"ghost",size:h,slot:"calendarToggle","aria-label":i.format("openCalendar"),children:e.jsx(z.CalendarMonth,{})})]})]})}),e.jsx(G,{asChild:!0,children:e.jsx(P.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:e.jsxs(P.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[e.jsx(K,{children:e.jsx(B.RangeCalendar,{})}),e.jsx(Y,{hideTimeZone:t,hourCycle:d})]})})})]})})})};k.displayName="DateRangePicker";exports.DateRangePicker=k;
|
|
2
|
+
//# sourceMappingURL=date-range-picker-DaSUwkke.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-picker-DaSUwkke.cjs.js","sources":["../../src/components/date-range-picker/date-range-picker.slots.tsx","../../src/components/date-range-picker/intl/en.ts","../../src/components/date-range-picker/intl/de.ts","../../src/components/date-range-picker/intl/es.ts","../../src/components/date-range-picker/intl/fr-FR.ts","../../src/components/date-range-picker/intl/pt-BR.ts","../../src/components/date-range-picker/date-range-picker.messages.ts","../../src/components/date-range-picker/components/date-range-picker.time-input.tsx","../../src/components/date-range-picker/components/date-range-picker.custom-context.tsx","../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { DateRangePickerRootSlotProps } from \"./date-range-picker.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"dateRangePicker\",\n});\n\n/**\n * Root component that provides the styling context for the DateRangePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateRangePickerRootSlot = withProvider<\n HTMLDivElement,\n DateRangePickerRootSlotProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DateRangePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the trigger button that opens the calendar popover.\n */\nexport const DateRangePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DateRangePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DateRangePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DateRangePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DateRangePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DateRangePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","/**\n * Pre-compiled en messages for DateRangePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n clearInput: `Clear input value`,\n clearSelection: `Clear date range`,\n endTime: `End time`,\n endTimeHour: `End time (hour)`,\n endTimeHourMinute: `End time (hour and minute)`,\n endTimeHourMinuteSecond: `End time (hour, minute, and second)`,\n endTimeLabel: `End time`,\n openCalendar: `Open calendar`,\n startTime: `Start time`,\n startTimeHour: `Start time (hour)`,\n startTimeHourMinute: `Start time (hour and minute)`,\n startTimeHourMinuteSecond: `Start time (hour, minute, and second)`,\n startTimeLabel: `Start time`,\n};\n","/**\n * Pre-compiled de messages for DateRangePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n clearInput: `Eingabewert löschen`,\n clearSelection: `Datumsbereich löschen`,\n endTime: `Endzeit`,\n endTimeHour: `Endzeit (Stunde)`,\n endTimeHourMinute: `Endzeit (Stunde und Minute)`,\n endTimeHourMinuteSecond: `Endzeit (Stunde, Minute und Sekunde)`,\n endTimeLabel: `Endzeit`,\n openCalendar: `Kalender öffnen`,\n startTime: `Startzeit`,\n startTimeHour: `Startzeit (Stunde)`,\n startTimeHourMinute: `Startzeit (Stunde und Minute)`,\n startTimeHourMinuteSecond: `Startzeit (Stunde, Minute und Sekunde)`,\n startTimeLabel: `Startzeit`,\n};\n","/**\n * Pre-compiled es messages for DateRangePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n clearInput: `Eliminar valor de entrada`,\n clearSelection: `Borrar rango de fechas`,\n endTime: `Finalizar tiempo`,\n endTimeHour: `Finalizar tiempo (hora)`,\n endTimeHourMinute: `Finalizar tiempo (hora y minuto)`,\n endTimeHourMinuteSecond: `Finalizar tiempo (hora, minuto, segundo)`,\n endTimeLabel: `Finalizar tiempo`,\n openCalendar: `Abrir calendario`,\n startTime: `Iniciar tiempo`,\n startTimeHour: `Iniciar tiempo (hora)`,\n startTimeHourMinute: `Iniciar tiempo (hora y minuto)`,\n startTimeHourMinuteSecond: `Iniciar tiempo (hora, minuto y segundo)`,\n startTimeLabel: `Iniciar tiempo`,\n};\n","/**\n * Pre-compiled fr-FR messages for DateRangePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n clearInput: `Effacer la valeur saisie`,\n clearSelection: `Effacer la plage de dates`,\n endTime: `Heure de fin`,\n endTimeHour: `Heure de fin (heure)`,\n endTimeHourMinute: `Heure de fin (heure et minute)`,\n endTimeHourMinuteSecond: ` Heure de fin (heure, minute et seconde)`,\n endTimeLabel: `Heure de fin`,\n openCalendar: `Ouvrir le calendrier`,\n startTime: `Heure de début`,\n startTimeHour: `Heure de début (heure)`,\n startTimeHourMinute: `Heure de début (heure et minute)`,\n startTimeHourMinuteSecond: `Heure de début (heure, minute et seconde)`,\n startTimeLabel: `Heure de début`,\n};\n","/**\n * Pre-compiled pt-BR messages for DateRangePicker\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n clearInput: `Limpar valores inseridos`,\n clearSelection: `Limpar intervalo de datas`,\n endTime: `Hora de término`,\n endTimeHour: `Hora de término (hora)`,\n endTimeHourMinute: `Hora de término (hora e minutos)`,\n endTimeHourMinuteSecond: `Hora de término (hora, minutos e segundos)`,\n endTimeLabel: `Hora de término`,\n openCalendar: `Abrir agenda`,\n startTime: `Hora de início`,\n startTimeHour: `Hora de início (hora)`,\n startTimeHourMinute: `Hora de início (hora e minutos)`,\n startTimeHourMinuteSecond: `Hora de início (hora, minutos e segundos)`,\n startTimeLabel: `Hora de início`,\n};\n","/**\n * Pre-compiled localized messages for DateRangePicker 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 dateRangePickerMessages_en from \"./intl/en\";\nimport dateRangePickerMessages_de from \"./intl/de\";\nimport dateRangePickerMessages_es from \"./intl/es\";\nimport dateRangePickerMessages_fr from \"./intl/fr-FR\";\nimport dateRangePickerMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const dateRangePickerMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(dateRangePickerMessages_en),\n de: normalizeMessages(dateRangePickerMessages_de),\n es: normalizeMessages(dateRangePickerMessages_es),\n \"fr-FR\": normalizeMessages(dateRangePickerMessages_fr),\n \"pt-BR\": normalizeMessages(dateRangePickerMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for DateRangePicker component\n */\nexport type DateRangePickerMessageKey =\n | \"clearInput\"\n | \"clearSelection\"\n | \"endTime\"\n | \"endTimeHour\"\n | \"endTimeHourMinute\"\n | \"endTimeHourMinuteSecond\"\n | \"endTimeLabel\"\n | \"openCalendar\"\n | \"startTime\"\n | \"startTimeHour\"\n | \"startTimeHourMinute\"\n | \"startTimeHourMinuteSecond\"\n | \"startTimeLabel\";\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { DateRangePickerStateContext } from \"react-aria-components\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { dateRangePickerMessagesStrings } from \"../date-range-picker.messages\";\nimport type { DateRangePickerTimeInputProps } from \"../date-range-picker.types\";\n\nexport const DateRangePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DateRangePickerTimeInputProps) => {\n const msg = useLocalizedStringFormatter(dateRangePickerMessagesStrings);\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n const { granularity, value } = dateRangePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousValueRef = useRef(value);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date range changes (user selects dates from calendar)\n useEffect(() => {\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n // Check if date range changed by comparing start and end dates\n const hasValueChanged =\n (value?.start &&\n previousValueRef.current?.start?.compare(value.start) !== 0) ||\n (value?.end && previousValueRef.current?.end?.compare(value.end) !== 0);\n\n if (hasValueChanged) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n\n if (firstSegment) {\n firstSegment.focus();\n }\n }\n }, 50);\n }\n }\n\n previousValueRef.current = value;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [value]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n {/* Start DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n {msg.format(\"startTimeLabel\")}\n </Text>\n <TimeInput\n slot=\"startTimeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n\n {/* End DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n {msg.format(\"endTimeLabel\")}\n </Text>\n <TimeInput\n slot=\"endTimeInput\"\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n </Flex>\n );\n};\n","import { useContext, type ReactNode } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DateRangePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { dateRangePickerMessagesStrings } from \"../date-range-picker.messages\";\n\nexport const DateRangePickerCustomContext = ({\n children,\n}: {\n children: ReactNode;\n}) => {\n const msg = useLocalizedStringFormatter(dateRangePickerMessagesStrings);\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n\n // Check if all 6 segments (start: day, month, year; end: day, month, year) have values\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const hasCompleteRangeDate = (date: any) =>\n date?.day && date?.month && date?.year;\n\n const incompleteValue =\n !dateRangePickerState?.value ||\n !hasCompleteRangeDate(dateRangePickerState.value.start) ||\n !hasCompleteRangeDate(dateRangePickerState.value.end);\n\n const { granularity } = dateRangePickerState!;\n\n // Extract time values from start and end dates separately\n const startTimeValue =\n dateRangePickerState?.value?.start &&\n \"hour\" in dateRangePickerState.value.start\n ? dateRangePickerState.value.start\n : null;\n const endTimeValue =\n dateRangePickerState?.value?.end && \"hour\" in dateRangePickerState.value.end\n ? dateRangePickerState.value.end\n : null;\n\n // Try to get disabled state from the button context\n const isDateRangePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = (type: \"start\" | \"end\") => {\n const messageKey = type === \"start\" ? \"start\" : \"end\";\n switch (granularity) {\n case \"hour\":\n return msg.format(\n `${messageKey}TimeHour` as \"startTimeHour\" | \"endTimeHour\"\n );\n case \"minute\":\n return msg.format(\n `${messageKey}TimeHourMinute` as\n | \"startTimeHourMinute\"\n | \"endTimeHourMinute\"\n );\n case \"second\":\n return msg.format(\n `${messageKey}TimeHourMinuteSecond` as\n | \"startTimeHourMinuteSecond\"\n | \"endTimeHourMinuteSecond\"\n );\n default:\n return msg.format(`${messageKey}Time` as \"startTime\" | \"endTime\");\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n // Clear both start and end values\n onPress: () => dateRangePickerState?.setValue(null),\n \"aria-label\": msg.format(\"clearInput\"),\n isDisabled: isDateRangePickerDisabled,\n // Hide the button when there's no value\n style: incompleteValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": incompleteValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n // Separate time input slots for start and end times\n const timeInputSlots = {\n startTimeInput: {\n value: startTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.start) {\n // Update the start date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newStartDate = startDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: newStartDate,\n end: endDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"start\"),\n },\n endTimeInput: {\n value: endTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.end) {\n // Update the end date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newEndDate = endDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: startDate,\n end: newEndDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"end\"),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DateRangePickerRootSlot,\n DateRangePickerGroupSlot,\n DateRangePickerTriggerSlot,\n DateRangePickerPopoverSlot,\n DateRangePickerCalendarSlot,\n} from \"./date-range-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DateRangePicker as ReactAriaDateRangePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\nimport type { DateRangePickerProps } from \"./date-range-picker.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { DateInput, RangeCalendar, IconButton, Text } from \"@/components\";\nimport { DateRangePickerTimeInput } from \"./components/date-range-picker.time-input\";\nimport { DateRangePickerCustomContext } from \"./components/date-range-picker.custom-context\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { dateRangePickerMessagesStrings } from \"./date-range-picker.messages\";\n\n/**\n * DateRangePicker\n * ============================================================\n * Combines a DateInput with a RangeCalendar popover for date range selection.\n * Users can either type a date range directly or select from the calendar.\n *\n * @supportsStyleProps\n */\nexport const DateRangePicker = (props: DateRangePickerProps) => {\n const msg = useLocalizedStringFormatter(dateRangePickerMessagesStrings);\n\n // Forward hideTimeZone and hourCycle to child components (footer time inputs)\n const { granularity = \"day\", hideTimeZone, hourCycle } = props;\n const recipe = useSlotRecipe({ recipe: dateRangePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // Extract size and variant from recipe props to pass to DateInputs\n const { size = \"md\" } = recipeProps;\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DateRangePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDateRangePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DateRangePickerCustomContext>\n <DateRangePickerGroupSlot asChild>\n <Group>\n <DateInput\n slot=\"start\"\n size={props.size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <Text\n as=\"span\"\n px=\"150\"\n color=\"neutral.11\"\n userSelect=\"none\"\n aria-hidden=\"true\"\n slot={null}\n >\n –\n </Text>\n <DateInput\n slot=\"end\"\n size={props.size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DateRangePickerTriggerSlot>\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n aria-label={msg.format(\"clearSelection\")}\n >\n <Close />\n </IconButton>\n <IconButton\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n aria-label={msg.format(\"openCalendar\")}\n >\n <CalendarMonth />\n </IconButton>\n </DateRangePickerTriggerSlot>\n </Group>\n </DateRangePickerGroupSlot>\n <DateRangePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DateRangePickerCalendarSlot>\n <RangeCalendar />\n </DateRangePickerCalendarSlot>\n <DateRangePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DateRangePickerPopoverSlot>\n </DateRangePickerCustomContext>\n </ReactAriaDateRangePicker>\n </DateRangePickerRootSlot>\n );\n};\n\nDateRangePicker.displayName = \"DateRangePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","DateRangePickerRootSlot","DateRangePickerGroupSlot","DateRangePickerTriggerSlot","DateRangePickerPopoverSlot","DateRangePickerCalendarSlot","dateRangePickerMessages_en","dateRangePickerMessages_de","dateRangePickerMessages_es","dateRangePickerMessages_fr","dateRangePickerMessages_pt","dateRangePickerMessagesStrings","normalizeMessages","DateRangePickerTimeInput","hideTimeZone","hourCycle","msg","useLocalizedStringFormatter","dateRangePickerState","useContext","DateRangePickerStateContext","granularity","value","timeInputRef","useRef","previousValueRef","useEffect","timeoutId","container","activeElement","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DateRangePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","hasCompleteRangeDate","date","incompleteValue","startTimeValue","endTimeValue","isDateRangePickerDisabled","getDefaultTimeInputAriaLabel","type","messageKey","buttonSlots","event","timeInputSlots","currentValue","startDate","endDate","newStartDate","newEndDate","Provider","TimeFieldContext","DateRangePicker","props","recipe","useSlotRecipe","dateRangePickerSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","size","overlayButtonSize","shouldCloseOnSelect","ReactAriaDateRangePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","RangeCalendar"],"mappings":"+xBAOM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,iBACP,CAAC,EAMYC,EAA0BH,EAGrC,MAAO,MAAM,EAKFI,EAA2BH,EAGtC,MAAO,OAAO,EAKHI,EAA6BJ,EAGxC,MAAO,SAAS,EAKLK,EAA6BL,EAGxC,MAAO,SAAS,EAKLM,EAA8BN,EAGzC,MAAO,UAAU,EC5CnBO,EAAe,CACb,WAAY,oBACZ,eAAgB,mBAChB,QAAS,WACT,YAAa,kBACb,kBAAmB,6BACnB,wBAAyB,sCACzB,aAAc,WACd,aAAc,gBACd,UAAW,aACX,cAAe,oBACf,oBAAqB,+BACrB,0BAA2B,wCAC3B,eAAgB,YAClB,ECdAC,EAAe,CACb,WAAY,sBACZ,eAAgB,wBAChB,QAAS,UACT,YAAa,mBACb,kBAAmB,8BACnB,wBAAyB,uCACzB,aAAc,UACd,aAAc,kBACd,UAAW,YACX,cAAe,qBACf,oBAAqB,gCACrB,0BAA2B,yCAC3B,eAAgB,WAClB,ECdAC,EAAe,CACb,WAAY,4BACZ,eAAgB,yBAChB,QAAS,mBACT,YAAa,0BACb,kBAAmB,mCACnB,wBAAyB,2CACzB,aAAc,mBACd,aAAc,mBACd,UAAW,iBACX,cAAe,wBACf,oBAAqB,iCACrB,0BAA2B,0CAC3B,eAAgB,gBAClB,ECdAC,EAAe,CACb,WAAY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