@commercetools/nimbus 0.0.0-canary-20260114153122 → 0.0.0-canary-20260116085607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Button-CmpJG0ec.es.js → Button-BjcDZ5eb.es.js} +7 -7
- package/dist/chunks/{Button-CmpJG0ec.es.js.map → Button-BjcDZ5eb.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-BqQjeKfi.es.js → CollectionBuilder-BnYe2z4W.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-BqQjeKfi.es.js.map → CollectionBuilder-BnYe2z4W.es.js.map} +1 -1
- package/dist/chunks/{DateField-Bpk0AwB2.es.js → DateField-DMHI1uyM.es.js} +672 -642
- package/dist/chunks/DateField-DMHI1uyM.es.js.map +1 -0
- package/dist/chunks/DateField-D_ywBfBB.cjs.js +2 -0
- package/dist/chunks/DateField-D_ywBfBB.cjs.js.map +1 -0
- package/dist/chunks/{DatePicker-BGFu7oAQ.cjs.js → DatePicker-DdoSCY92.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-BGFu7oAQ.cjs.js.map → DatePicker-DdoSCY92.cjs.js.map} +1 -1
- package/dist/chunks/{DatePicker-CUW1A5A8.es.js → DatePicker-VyVWP-2-.es.js} +17 -17
- package/dist/chunks/{DatePicker-CUW1A5A8.es.js.map → DatePicker-VyVWP-2-.es.js.map} +1 -1
- package/dist/chunks/{Dialog-BYVU-i0Y.es.js → Dialog-BZs_dKan.es.js} +24 -24
- package/dist/chunks/{Dialog-BYVU-i0Y.es.js.map → Dialog-BZs_dKan.es.js.map} +1 -1
- package/dist/chunks/{Dialog-flHBRP1h.cjs.js → Dialog-DilDtCFc.cjs.js} +2 -2
- package/dist/chunks/{Dialog-flHBRP1h.cjs.js.map → Dialog-DilDtCFc.cjs.js.map} +1 -1
- package/dist/chunks/{FocusScope-bj_mamFe.es.js → FocusScope-CqEZq7sr.es.js} +36 -36
- package/dist/chunks/{FocusScope-bj_mamFe.es.js.map → FocusScope-CqEZq7sr.es.js.map} +1 -1
- package/dist/chunks/{Group-C9jsb9_m.es.js → Group-BQc9LuMT.es.js} +8 -8
- package/dist/chunks/{Group-C9jsb9_m.es.js.map → Group-BQc9LuMT.es.js.map} +1 -1
- package/dist/chunks/{Header-CNoClAau.es.js → Header-2KETI4X9.es.js} +5 -5
- package/dist/chunks/{Header-CNoClAau.es.js.map → Header-2KETI4X9.es.js.map} +1 -1
- package/dist/chunks/{Header-CyskU0rw.cjs.js → Header-BXEPjypM.cjs.js} +2 -2
- package/dist/chunks/{Header-CyskU0rw.cjs.js.map → Header-BXEPjypM.cjs.js.map} +1 -1
- package/dist/chunks/{Heading-D804NNml.es.js → Heading-DDEPjNlF.es.js} +14 -14
- package/dist/chunks/{Heading-D804NNml.es.js.map → Heading-DDEPjNlF.es.js.map} +1 -1
- package/dist/chunks/{Heading-kcnZ-PKv.cjs.js → Heading-UZcOiBkN.cjs.js} +2 -2
- package/dist/chunks/{Heading-kcnZ-PKv.cjs.js.map → Heading-UZcOiBkN.cjs.js.map} +1 -1
- package/dist/chunks/{Input-aKSXZBAh.es.js → Input-Cmg08oRP.es.js} +5 -5
- package/dist/chunks/{Input-aKSXZBAh.es.js.map → Input-Cmg08oRP.es.js.map} +1 -1
- package/dist/chunks/{Label-Bu5lTMzy.es.js → Label-DIseLESi.es.js} +2 -2
- package/dist/chunks/{Label-Bu5lTMzy.es.js.map → Label-DIseLESi.es.js.map} +1 -1
- package/dist/chunks/{ListBox-DYbGAoet.es.js → ListBox-DkaySjTS.es.js} +42 -44
- package/dist/chunks/{ListBox-DYbGAoet.es.js.map → ListBox-DkaySjTS.es.js.map} +1 -1
- package/dist/chunks/{ListBox-BjV-0DWh.cjs.js → ListBox-rm_vuzPg.cjs.js} +2 -2
- package/dist/chunks/{ListBox-BjV-0DWh.cjs.js.map → ListBox-rm_vuzPg.cjs.js.map} +1 -1
- package/dist/chunks/{Modal-mFYEMNT-.cjs.js → Modal-CSjx-pPv.cjs.js} +2 -2
- package/dist/chunks/{Modal-mFYEMNT-.cjs.js.map → Modal-CSjx-pPv.cjs.js.map} +1 -1
- package/dist/chunks/{Modal-2TttSPy4.es.js → Modal-DcbaiE5l.es.js} +7 -7
- package/dist/chunks/{Modal-2TttSPy4.es.js.map → Modal-DcbaiE5l.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js → OverlayArrow-BIjbCSXk.es.js} +2 -2
- package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js.map → OverlayArrow-BIjbCSXk.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DogfCeuX.es.js → ProgressBar-Dm2Ge45l.es.js} +5 -5
- package/dist/chunks/{ProgressBar-DogfCeuX.es.js.map → ProgressBar-Dm2Ge45l.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-D9tuw16C.cjs.js → SelectionManager-5YkuhVau.cjs.js} +2 -2
- package/dist/chunks/{SelectionManager-D9tuw16C.cjs.js.map → SelectionManager-5YkuhVau.cjs.js.map} +1 -1
- package/dist/chunks/{SelectionManager-CXicxYqF.es.js → SelectionManager-XpKaZHOS.es.js} +29 -36
- package/dist/chunks/{SelectionManager-CXicxYqF.es.js.map → SelectionManager-XpKaZHOS.es.js.map} +1 -1
- package/dist/chunks/{Separator-WCa1iR4U.es.js → Separator-DP89PKAS.es.js} +4 -4
- package/dist/chunks/{Separator-WCa1iR4U.es.js.map → Separator-DP89PKAS.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-B-feHlsu.es.js → ToggleButton-BqW-X6iJ.es.js} +7 -7
- package/dist/chunks/{ToggleButton-B-feHlsu.es.js.map → ToggleButton-BqW-X6iJ.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js → VisuallyHidden-BLRzeMsq.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js.map → VisuallyHidden-BLRzeMsq.es.js.map} +1 -1
- package/dist/chunks/{accordion-DyT6wHaS.es.js → accordion-C0MESyjK.es.js} +2 -2
- package/dist/chunks/{accordion-DyT6wHaS.es.js.map → accordion-C0MESyjK.es.js.map} +1 -1
- package/dist/chunks/{accordion-DC6-b7zR.cjs.js → accordion-CVpg-FdJ.cjs.js} +2 -2
- package/dist/chunks/{accordion-DC6-b7zR.cjs.js.map → accordion-CVpg-FdJ.cjs.js.map} +1 -1
- package/dist/chunks/accordion.content-Cqet9SQ-.cjs.js +2 -0
- package/dist/chunks/{accordion.content-FJHilptY.cjs.js.map → accordion.content-Cqet9SQ-.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-DGmcqSw2.es.js → accordion.content-DxOsZTFV.es.js} +23 -24
- package/dist/chunks/{accordion.content-DGmcqSw2.es.js.map → accordion.content-DxOsZTFV.es.js.map} +1 -1
- package/dist/chunks/{alert-Xo-ZelFk.cjs.js → alert-D4tX-OcR.cjs.js} +2 -2
- package/dist/chunks/{alert-Xo-ZelFk.cjs.js.map → alert-D4tX-OcR.cjs.js.map} +1 -1
- package/dist/chunks/{alert-Ct33v894.es.js → alert-DVNh9ZZh.es.js} +2 -2
- package/dist/chunks/{alert-Ct33v894.es.js.map → alert-DVNh9ZZh.es.js.map} +1 -1
- package/dist/chunks/badge-CgYpum7D.es.js +17 -0
- package/dist/chunks/{badge-DUiqk6w9.es.js.map → badge-CgYpum7D.es.js.map} +1 -1
- package/dist/chunks/{button-Dsn0E1zm.cjs.js → button-BR4fvcmi.cjs.js} +2 -2
- package/dist/chunks/{button-Dsn0E1zm.cjs.js.map → button-BR4fvcmi.cjs.js.map} +1 -1
- package/dist/chunks/{button-BZh9bW4s.es.js → button-CGhRXrYT.es.js} +6 -6
- package/dist/chunks/{button-BZh9bW4s.es.js.map → button-CGhRXrYT.es.js.map} +1 -1
- package/dist/chunks/{calendar-BdCLSYto.es.js → calendar-B8v5EUVK.es.js} +9 -9
- package/dist/chunks/calendar-B8v5EUVK.es.js.map +1 -0
- package/dist/chunks/{calendar-DDnw9kFK.cjs.js → calendar-CiVIhTnF.cjs.js} +2 -2
- package/dist/chunks/{calendar-DDnw9kFK.cjs.js.map → calendar-CiVIhTnF.cjs.js.map} +1 -1
- package/dist/chunks/{card-7NQQgazK.es.js → card-BClQfyiK.es.js} +2 -2
- package/dist/chunks/{card-7NQQgazK.es.js.map → card-BClQfyiK.es.js.map} +1 -1
- package/dist/chunks/{card-E0UakdVy.cjs.js → card-Bk3xHlo2.cjs.js} +2 -2
- package/dist/chunks/{card-E0UakdVy.cjs.js.map → card-Bk3xHlo2.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-liOQ38Lq.cjs.js → checkbox-BJANm94D.cjs.js} +2 -2
- package/dist/chunks/{checkbox-liOQ38Lq.cjs.js.map → checkbox-BJANm94D.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-CbC44pzl.es.js → checkbox-C714rIb1.es.js} +10 -10
- package/dist/chunks/{checkbox-CbC44pzl.es.js.map → checkbox-C714rIb1.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BvDqvpXr.cjs.js → collapsible-motion-Biq0QGUr.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-BvDqvpXr.cjs.js.map → collapsible-motion-Biq0QGUr.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-AqWVXx14.es.js → collapsible-motion-CfzVnfFa.es.js} +5 -5
- package/dist/chunks/{collapsible-motion-AqWVXx14.es.js.map → collapsible-motion-CfzVnfFa.es.js.map} +1 -1
- package/dist/chunks/combobox-B_Qx3gRo.es.js +1539 -0
- package/dist/chunks/combobox-B_Qx3gRo.es.js.map +1 -0
- package/dist/chunks/combobox-DInM9yq3.cjs.js +2 -0
- package/dist/chunks/combobox-DInM9yq3.cjs.js.map +1 -0
- package/dist/chunks/{data-table-gIAF1X6S.es.js → data-table-4Q4HP9cz.es.js} +37 -37
- package/dist/chunks/{data-table-gIAF1X6S.es.js.map → data-table-4Q4HP9cz.es.js.map} +1 -1
- package/dist/chunks/{data-table-C-ZzSV8h.cjs.js → data-table-BIRJ5k7_.cjs.js} +2 -2
- package/dist/chunks/{data-table-C-ZzSV8h.cjs.js.map → data-table-BIRJ5k7_.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-Bedz2W6o.es.js → date-input-BYwVUYj2.es.js} +4 -4
- package/dist/chunks/{date-input-Bedz2W6o.es.js.map → date-input-BYwVUYj2.es.js.map} +1 -1
- package/dist/chunks/{date-input-CTqenZT8.cjs.js → date-input-DnFinTEI.cjs.js} +2 -2
- package/dist/chunks/{date-input-CTqenZT8.cjs.js.map → date-input-DnFinTEI.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-DfrGHG9E.es.js → date-picker-BpjiOuWS.es.js} +14 -14
- package/dist/chunks/{date-picker-DfrGHG9E.es.js.map → date-picker-BpjiOuWS.es.js.map} +1 -1
- package/dist/chunks/{date-picker-C3LVP_As.cjs.js → date-picker-Dut8OHjl.cjs.js} +2 -2
- package/dist/chunks/{date-picker-C3LVP_As.cjs.js.map → date-picker-Dut8OHjl.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-DETK48Pc.cjs.js → date-range-picker-CHZHQHZe.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-DETK48Pc.cjs.js.map → date-range-picker-CHZHQHZe.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-Ksk-z9HJ.es.js → date-range-picker-f-_fag4t.es.js} +14 -14
- package/dist/chunks/{date-range-picker-Ksk-z9HJ.es.js.map → date-range-picker-f-_fag4t.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-BIdB2by0.es.js → date-range-picker-field-DDfKxFxE.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-BIdB2by0.es.js.map → date-range-picker-field-DDfKxFxE.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-svri_Owt.cjs.js → date-range-picker-field-EKBwiCfz.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-svri_Owt.cjs.js.map → date-range-picker-field-EKBwiCfz.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-CXr8CpSH.cjs.js → dialog-CJIPm3PE.cjs.js} +2 -2
- package/dist/chunks/{dialog-CXr8CpSH.cjs.js.map → dialog-CJIPm3PE.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-BoFaWn1d.es.js → dialog-D70n2Z4v.es.js} +7 -7
- package/dist/chunks/{dialog-BoFaWn1d.es.js.map → dialog-D70n2Z4v.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-QBq9crbo.es.js → draggable-list-C5rPnMr8.es.js} +1419 -1624
- package/dist/chunks/{draggable-list-D0DFEUg2.cjs.js.map → draggable-list-C5rPnMr8.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-D0DFEUg2.cjs.js → draggable-list-hEe1Td1r.cjs.js} +3 -3
- package/dist/chunks/draggable-list-hEe1Td1r.cjs.js.map +1 -0
- package/dist/chunks/{drawer-Bbhab1KW.cjs.js → drawer-Bl0M98va.cjs.js} +2 -2
- package/dist/chunks/{drawer-Bbhab1KW.cjs.js.map → drawer-Bl0M98va.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-BlBu2Y5A.es.js → drawer-CyVQICgN.es.js} +8 -8
- package/dist/chunks/{drawer-BlBu2Y5A.es.js.map → drawer-CyVQICgN.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-BlWe3cXY.cjs.js → extract-style-props-B4hqila-.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-BlWe3cXY.cjs.js.map → extract-style-props-B4hqila-.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-BHk9sqwi.es.js → extract-style-props-BUbbGs7l.es.js} +2 -2
- package/dist/chunks/{extract-style-props-BHk9sqwi.es.js.map → extract-style-props-BUbbGs7l.es.js.map} +1 -1
- package/dist/chunks/{focusSafely-RvsgqoUt.es.js → focusSafely-Cwb0Tyy6.es.js} +3 -3
- package/dist/chunks/{focusSafely-RvsgqoUt.es.js.map → focusSafely-Cwb0Tyy6.es.js.map} +1 -1
- package/dist/chunks/{form-field-JXnTuPmY.cjs.js → form-field-Cjpw2GQw.cjs.js} +2 -2
- package/dist/chunks/{form-field-JXnTuPmY.cjs.js.map → form-field-Cjpw2GQw.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-WwYTknYs.es.js → form-field-m9PmNrgJ.es.js} +4 -4
- package/dist/chunks/{form-field-WwYTknYs.es.js.map → form-field-m9PmNrgJ.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-DlqhSzBC.es.js → getScrollParent-MZgwmCKW.es.js} +2 -2
- package/dist/chunks/{getScrollParent-DlqhSzBC.es.js.map → getScrollParent-MZgwmCKW.es.js.map} +1 -1
- package/dist/chunks/{group-jGsHh1w7.es.js → group-CCBgdph2.es.js} +2 -2
- package/dist/chunks/{group-jGsHh1w7.es.js.map → group-CCBgdph2.es.js.map} +1 -1
- package/dist/chunks/{heading-CwsT9zp_.es.js → heading-nfjoR4vL.es.js} +2 -2
- package/dist/chunks/{heading-CwsT9zp_.es.js.map → heading-nfjoR4vL.es.js.map} +1 -1
- 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-CXRvSNxO.es.js +28 -0
- package/dist/chunks/icon-button-CXRvSNxO.es.js.map +1 -0
- package/dist/chunks/icon-button-CeB8_Yyr.cjs.js +2 -0
- package/dist/chunks/icon-button-CeB8_Yyr.cjs.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-CbPnVXev.es.js → icon-toggle-button-BhzKiS9U.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CbPnVXev.es.js.map → icon-toggle-button-BhzKiS9U.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CC2TWXzm.cjs.js → icon-toggle-button-C4Tnlt4t.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CC2TWXzm.cjs.js.map → icon-toggle-button-C4Tnlt4t.cjs.js.map} +1 -1
- package/dist/chunks/index-CVXB9mwf.cjs.js +34 -0
- package/dist/chunks/index-CVXB9mwf.cjs.js.map +1 -0
- package/dist/chunks/{index-2XcTax28.es.js → index-UVW-kSPu.es.js} +597 -540
- package/dist/chunks/index-UVW-kSPu.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/{kbd-B11Qoo4k.es.js → kbd-Bl5Ncm2d.es.js} +2 -2
- package/dist/chunks/{kbd-B11Qoo4k.es.js.map → kbd-Bl5Ncm2d.es.js.map} +1 -1
- package/dist/chunks/{link-Db65JZE6.es.js → link-BMUyXcmC.es.js} +9 -9
- package/dist/chunks/{link-Db65JZE6.es.js.map → link-BMUyXcmC.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js → loading-spinner-DF6c3rBM.es.js} +3 -3
- package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js.map → loading-spinner-DF6c3rBM.es.js.map} +1 -1
- package/dist/chunks/{localized-field-OBNwBbsI.es.js → localized-field-B1qPoFn3.es.js} +26 -26
- package/dist/chunks/{localized-field-OBNwBbsI.es.js.map → localized-field-B1qPoFn3.es.js.map} +1 -1
- package/dist/chunks/{localized-field-rzqXotTu.cjs.js → localized-field-DYJRI5TY.cjs.js} +2 -2
- package/dist/chunks/{localized-field-rzqXotTu.cjs.js.map → localized-field-DYJRI5TY.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js → make-element-focusable-7-aXFtDJ.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js.map → make-element-focusable-7-aXFtDJ.es.js.map} +1 -1
- package/dist/chunks/{menu-C5pCTTl8.es.js → menu-BMnaUtPU.es.js} +7 -7
- package/dist/chunks/{menu-C5pCTTl8.es.js.map → menu-BMnaUtPU.es.js.map} +1 -1
- package/dist/chunks/{menu-Bm87G7Za.cjs.js → menu-Bb7wAuM8.cjs.js} +2 -2
- package/dist/chunks/{menu-Bm87G7Za.cjs.js.map → menu-Bb7wAuM8.cjs.js.map} +1 -1
- package/dist/chunks/{mergeProps-D1jjFfMs.es.js → mergeProps-Dsl8k3Ig.es.js} +6 -6
- package/dist/chunks/{mergeProps-D1jjFfMs.es.js.map → mergeProps-Dsl8k3Ig.es.js.map} +1 -1
- package/dist/chunks/{money-input-DIYFuPZg.cjs.js → money-input-0nJup2NP.cjs.js} +2 -2
- package/dist/chunks/{money-input-DIYFuPZg.cjs.js.map → money-input-0nJup2NP.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-YKD1mp8v.es.js → money-input-D876xwrm.es.js} +9 -9
- package/dist/chunks/{money-input-YKD1mp8v.es.js.map → money-input-D876xwrm.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-D6rxX9mh.cjs.js → money-input-field-CkUVFul7.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-D6rxX9mh.cjs.js.map → money-input-field-CkUVFul7.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-field-D8qRDhJ2.es.js → money-input-field-DsnyL34_.es.js} +3 -3
- package/dist/chunks/{money-input-field-D8qRDhJ2.es.js.map → money-input-field-DsnyL34_.es.js.map} +1 -1
- package/dist/chunks/multiline-text-input-CHtsHJ-Y.es.js +98 -0
- package/dist/chunks/multiline-text-input-CHtsHJ-Y.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-CULLuZBp.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-CULLuZBp.cjs.js.map +1 -0
- package/dist/chunks/{multiline-text-input-field-CjrL0nA5.cjs.js → multiline-text-input-field-Czy-oJel.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-CjrL0nA5.cjs.js.map → multiline-text-input-field-Czy-oJel.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-D09mUQTX.es.js → multiline-text-input-field-D5goi-7i.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-D09mUQTX.es.js.map → multiline-text-input-field-D5goi-7i.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DaQ9Tjdj.es.js → nimbus-provider-CRTp8MQ2.es.js} +8 -8
- package/dist/chunks/nimbus-provider-CRTp8MQ2.es.js.map +1 -0
- package/dist/chunks/{nimbus-provider-D7gI8pm5.cjs.js → nimbus-provider-pE_RwP9a.cjs.js} +2 -2
- package/dist/chunks/nimbus-provider-pE_RwP9a.cjs.js.map +1 -0
- package/dist/chunks/{number-input--QENxBN_.es.js → number-input-BVq6t7j1.es.js} +14 -14
- package/dist/chunks/{number-input--QENxBN_.es.js.map → number-input-BVq6t7j1.es.js.map} +1 -1
- package/dist/chunks/{number-input-CERwiTkq.cjs.js → number-input-ClPH8jSw.cjs.js} +2 -2
- package/dist/chunks/{number-input-CERwiTkq.cjs.js.map → number-input-ClPH8jSw.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-Kh2oHBGm.es.js → number-input-field-BqBsmhZg.es.js} +3 -3
- package/dist/chunks/{number-input-field-Kh2oHBGm.es.js.map → number-input-field-BqBsmhZg.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-BIyVUWc7.cjs.js → number-input-field-D8feRNKH.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-BIyVUWc7.cjs.js.map → number-input-field-D8feRNKH.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-DPwMY8Tk.es.js → pagination-BxHJknCr.es.js} +5 -5
- package/dist/chunks/{pagination-DPwMY8Tk.es.js.map → pagination-BxHJknCr.es.js.map} +1 -1
- package/dist/chunks/{pagination-BrdiYc5r.cjs.js → pagination-DCC0XyhX.cjs.js} +2 -2
- package/dist/chunks/{pagination-BrdiYc5r.cjs.js.map → pagination-DCC0XyhX.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-COyTHC2W.cjs.js → password-input-DSv5pS26.cjs.js} +2 -2
- package/dist/chunks/{password-input-COyTHC2W.cjs.js.map → password-input-DSv5pS26.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-CaaBngSh.es.js → password-input-NQVqLKTo.es.js} +4 -4
- package/dist/chunks/{password-input-CaaBngSh.es.js.map → password-input-NQVqLKTo.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-C2iW_Kwy.cjs.js → password-input-field-2myF6wdP.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-C2iW_Kwy.cjs.js.map → password-input-field-2myF6wdP.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-DJqYN-q2.es.js → password-input-field-CgkfaI7E.es.js} +3 -3
- package/dist/chunks/{password-input-field-DJqYN-q2.es.js.map → password-input-field-CgkfaI7E.es.js.map} +1 -1
- package/dist/chunks/popover-2KxMEf0s.cjs.js +2 -0
- package/dist/chunks/popover-2KxMEf0s.cjs.js.map +1 -0
- package/dist/chunks/popover-MW_SlCEP.es.js +11 -0
- package/dist/chunks/popover-MW_SlCEP.es.js.map +1 -0
- package/dist/chunks/{progress-bar-xZ8tG7GQ.es.js → progress-bar-QL-876RP.es.js} +4 -4
- package/dist/chunks/{progress-bar-xZ8tG7GQ.es.js.map → progress-bar-QL-876RP.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-BR9Ny1-I.cjs.js → progress-bar-dRKyuT1-.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-BR9Ny1-I.cjs.js.map → progress-bar-dRKyuT1-.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-BTRq7sSa.cjs.js → radio-input-BecbxXcF.cjs.js} +2 -2
- package/dist/chunks/{radio-input-BTRq7sSa.cjs.js.map → radio-input-BecbxXcF.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-DlR-OTvl.es.js → radio-input-CjJwVVHd.es.js} +42 -42
- package/dist/chunks/{radio-input-DlR-OTvl.es.js.map → radio-input-CjJwVVHd.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-B3RLxyiG.es.js → range-calendar-BybIyx-9.es.js} +10 -10
- package/dist/chunks/range-calendar-BybIyx-9.es.js.map +1 -0
- package/dist/chunks/{range-calendar-1kY30zRJ.cjs.js → range-calendar-DFs8cfYP.cjs.js} +2 -2
- package/dist/chunks/range-calendar-DFs8cfYP.cjs.js.map +1 -0
- package/dist/chunks/{rich-text-input-BiO1nbH7.cjs.js → rich-text-input-CJuQruOT.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-BiO1nbH7.cjs.js.map → rich-text-input-CJuQruOT.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-Br7atu-e.es.js → rich-text-input-DTaul6rg.es.js} +13 -13
- package/dist/chunks/{rich-text-input-Br7atu-e.es.js.map → rich-text-input-DTaul6rg.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DyHgXV1D.es.js → scoped-search-input-C87JBFtg.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-DyHgXV1D.es.js.map → scoped-search-input-C87JBFtg.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DGQbvgcz.cjs.js → scoped-search-input-Ck7qrfBS.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-DGQbvgcz.cjs.js.map → scoped-search-input-Ck7qrfBS.cjs.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js → scrollIntoView-B7D07fJk.es.js} +5 -5
- package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js.map → scrollIntoView-B7D07fJk.es.js.map} +1 -1
- package/dist/chunks/{search-input-0zxtnjP2.es.js → search-input-CdiPpvIA.es.js} +11 -11
- package/dist/chunks/{search-input-0zxtnjP2.es.js.map → search-input-CdiPpvIA.es.js.map} +1 -1
- package/dist/chunks/{search-input-CiJJlG9i.cjs.js → search-input-CkVlnfvh.cjs.js} +2 -2
- package/dist/chunks/{search-input-CiJJlG9i.cjs.js.map → search-input-CkVlnfvh.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-DKwiJus7.cjs.js → search-input-field-CBzwVEI3.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-DKwiJus7.cjs.js.map → search-input-field-CBzwVEI3.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-DCrpO97A.es.js → search-input-field-CxbiRQfV.es.js} +3 -3
- package/dist/chunks/{search-input-field-DCrpO97A.es.js.map → search-input-field-CxbiRQfV.es.js.map} +1 -1
- package/dist/chunks/{select-BU2kFBJK.cjs.js → select-DqTNXz4B.cjs.js} +2 -2
- package/dist/chunks/{select-BU2kFBJK.cjs.js.map → select-DqTNXz4B.cjs.js.map} +1 -1
- package/dist/chunks/{select-BauqJFhh.es.js → select-DrkplYbs.es.js} +60 -60
- package/dist/chunks/{select-BauqJFhh.es.js.map → select-DrkplYbs.es.js.map} +1 -1
- package/dist/chunks/{separator-IzE3lT8Q.es.js → separator-CN_ly_kW.es.js} +4 -4
- package/dist/chunks/{separator-IzE3lT8Q.es.js.map → separator-CN_ly_kW.es.js.map} +1 -1
- package/dist/chunks/{separator-Cw6rbNsq.cjs.js → separator-u_4por07.cjs.js} +2 -2
- package/dist/chunks/{separator-Cw6rbNsq.cjs.js.map → separator-u_4por07.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-B0B7FCVO.es.js → split-button--8mZUaqB.es.js} +5 -5
- package/dist/chunks/{split-button-B0B7FCVO.es.js.map → split-button--8mZUaqB.es.js.map} +1 -1
- package/dist/chunks/{split-button-CfSM5KIV.cjs.js → split-button-CN_kydZc.cjs.js} +2 -2
- package/dist/chunks/{split-button-CfSM5KIV.cjs.js.map → split-button-CN_kydZc.cjs.js.map} +1 -1
- package/dist/chunks/{switch-8VXS3kFt.es.js → switch-B_xUN9Bs.es.js} +7 -7
- package/dist/chunks/{switch-8VXS3kFt.es.js.map → switch-B_xUN9Bs.es.js.map} +1 -1
- package/dist/chunks/{switch-Di9AZR-u.cjs.js → switch-CsiG41ZR.cjs.js} +2 -2
- package/dist/chunks/{switch-Di9AZR-u.cjs.js.map → switch-CsiG41ZR.cjs.js.map} +1 -1
- package/dist/chunks/tabs-CkZr6Jmu.es.js +516 -0
- package/dist/chunks/tabs-CkZr6Jmu.es.js.map +1 -0
- package/dist/chunks/tabs-iV08OTqG.cjs.js +2 -0
- package/dist/chunks/tabs-iV08OTqG.cjs.js.map +1 -0
- package/dist/chunks/{tag-group-DEGYH-Lz.cjs.js → tag-group-CVLufmbd.cjs.js} +2 -2
- package/dist/chunks/{tag-group-DEGYH-Lz.cjs.js.map → tag-group-CVLufmbd.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-CtLuJHpW.es.js → tag-group-DrXuPS-n.es.js} +23 -22
- package/dist/chunks/{tag-group-CtLuJHpW.es.js.map → tag-group-DrXuPS-n.es.js.map} +1 -1
- package/dist/chunks/{text-DvqDjbwb.es.js → text-CIb_VDvO.es.js} +2 -2
- package/dist/chunks/{text-DvqDjbwb.es.js.map → text-CIb_VDvO.es.js.map} +1 -1
- package/dist/chunks/{text-input-C1doUdAX.es.js → text-input-BJzS6xDD.es.js} +7 -7
- package/dist/chunks/{text-input-C1doUdAX.es.js.map → text-input-BJzS6xDD.es.js.map} +1 -1
- package/dist/chunks/{text-input-CJEMSrIO.cjs.js → text-input-BlxK2Naj.cjs.js} +2 -2
- package/dist/chunks/{text-input-CJEMSrIO.cjs.js.map → text-input-BlxK2Naj.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-BO3rTUes.es.js → text-input-field-D5-C6-_a.es.js} +3 -3
- package/dist/chunks/{text-input-field-BO3rTUes.es.js.map → text-input-field-D5-C6-_a.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-CzlUoiBa.cjs.js → text-input-field-ecy-VdRB.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-CzlUoiBa.cjs.js.map → text-input-field-ecy-VdRB.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-B2JTtH-9.es.js → time-input-DbWrpALN.es.js} +4 -4
- package/dist/chunks/{time-input-B2JTtH-9.es.js.map → time-input-DbWrpALN.es.js.map} +1 -1
- package/dist/chunks/{time-input-DV0sPwso.cjs.js → time-input-v2Tg1CRp.cjs.js} +2 -2
- package/dist/chunks/{time-input-DV0sPwso.cjs.js.map → time-input-v2Tg1CRp.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-BIY7H2mB.es.js → toggle-button-DsGaTWXb.es.js} +4 -4
- package/dist/chunks/{toggle-button-BIY7H2mB.es.js.map → toggle-button-DsGaTWXb.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-DenoF2YI.cjs.js → toggle-button-L7i1XaWg.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-DenoF2YI.cjs.js.map → toggle-button-L7i1XaWg.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js → toggle-button-group-BWpmMkEz.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js.map → toggle-button-group-BWpmMkEz.es.js.map} +1 -1
- package/dist/chunks/{toolbar-CLCqv15v.es.js → toolbar-CyVt8Wsi.es.js} +6 -6
- package/dist/chunks/{toolbar-CLCqv15v.es.js.map → toolbar-CyVt8Wsi.es.js.map} +1 -1
- package/dist/chunks/{toolbar-Cxdz7FMq.cjs.js → toolbar-D4fLFiSb.cjs.js} +2 -2
- package/dist/chunks/{toolbar-Cxdz7FMq.cjs.js.map → toolbar-D4fLFiSb.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-CzEuq_Qi.es.js → tooltip-D3QrrizN.es.js} +7 -7
- package/dist/chunks/{tooltip-CzEuq_Qi.es.js.map → tooltip-D3QrrizN.es.js.map} +1 -1
- package/dist/chunks/{useButton-B2TbwHSy.es.js → useButton-CiPiehgC.es.js} +4 -4
- package/dist/chunks/{useButton-B2TbwHSy.es.js.map → useButton-CiPiehgC.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-CO08GpLe.es.js → useDateFormatter-9juUpmrj.es.js} +247 -245
- 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/{useDisclosureState-BqxwXawT.es.js → useDisclosureState-CWZTR2xM.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-BqxwXawT.es.js.map → useDisclosureState-CWZTR2xM.es.js.map} +1 -1
- package/dist/chunks/{useEvent-D8bTsAyx.es.js → useEvent-CRo5BZDX.es.js} +6 -6
- package/dist/chunks/{useEvent-D8bTsAyx.es.js.map → useEvent-CRo5BZDX.es.js.map} +1 -1
- package/dist/chunks/{useField-BfW84CS4.es.js → useField-CHrpmkxe.es.js} +8 -8
- package/dist/chunks/{useField-BfW84CS4.es.js.map → useField-CHrpmkxe.es.js.map} +1 -1
- package/dist/chunks/{useFocus-TCNvrvTC.es.js → useFocus-CrgTusM3.es.js} +6 -6
- package/dist/chunks/{useFocus-TCNvrvTC.es.js.map → useFocus-CrgTusM3.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-oMAqzr3e.es.js → useFocusRing-FPt2Rwil.es.js} +4 -4
- package/dist/chunks/{useFocusRing-oMAqzr3e.es.js.map → useFocusRing-FPt2Rwil.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js → useFocusVisible-B3HmFL2Q.es.js} +6 -6
- package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js.map → useFocusVisible-B3HmFL2Q.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js → useFocusWithin-EFOG-Jn1.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js.map → useFocusWithin-EFOG-Jn1.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Bm-DQaak.es.js → useFocusable-Cs6i58WP.es.js} +5 -5
- package/dist/chunks/{useFocusable-Bm-DQaak.es.js.map → useFocusable-Cs6i58WP.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-C52dSDoe.es.js → useFormReset-BGuIA_u2.es.js} +2 -2
- package/dist/chunks/{useFormReset-C52dSDoe.es.js.map → useFormReset-BGuIA_u2.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-DxDV9X1M.es.js → useFormValidation-BCVLtR0U.es.js} +3 -3
- package/dist/chunks/{useFormValidation-DxDV9X1M.es.js.map → useFormValidation-BCVLtR0U.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-DTjO497o.es.js → useGridListItem-BghCdwwN.es.js} +10 -10
- package/dist/chunks/{useGridListItem-DTjO497o.es.js.map → useGridListItem-BghCdwwN.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-Ck5JPksV.cjs.js → useGridListItem-CoQB2TMS.cjs.js} +2 -2
- package/dist/chunks/{useGridListItem-Ck5JPksV.cjs.js.map → useGridListItem-CoQB2TMS.cjs.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js → useHasTabbableChild-DXq72IE3.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js.map → useHasTabbableChild-DXq72IE3.es.js.map} +1 -1
- package/dist/chunks/{useHover-BtRK9g2L.es.js → useHover-BQRSM3qT.es.js} +2 -2
- package/dist/chunks/{useHover-BtRK9g2L.es.js.map → useHover-BQRSM3qT.es.js.map} +1 -1
- package/dist/chunks/{useLabel-DfbcmKTa.es.js → useLabel-DQaRD22u.es.js} +5 -5
- package/dist/chunks/{useLabel-DfbcmKTa.es.js.map → useLabel-DQaRD22u.es.js.map} +1 -1
- package/dist/chunks/{useLabels-Gn8v9XZB.es.js → useLabels-BDqWMehi.es.js} +2 -2
- package/dist/chunks/{useLabels-Gn8v9XZB.es.js.map → useLabels-BDqWMehi.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-D9k6HiWm.es.js → useListState-6ejgSjM7.es.js} +17 -18
- package/dist/chunks/{useListState-D9k6HiWm.es.js.map → useListState-6ejgSjM7.es.js.map} +1 -1
- package/dist/chunks/useListState-BjCb6LLO.cjs.js +2 -0
- package/dist/chunks/{useListState-BSrUXH20.cjs.js.map → useListState-BjCb6LLO.cjs.js.map} +1 -1
- package/dist/chunks/{usePress-C_IPaF8I.es.js → usePress-BuLomD_X.es.js} +6 -6
- package/dist/chunks/{usePress-C_IPaF8I.es.js.map → usePress-BuLomD_X.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar-DCj794Zv.es.js → useProgressBar--OvVKto2.es.js} +7 -7
- package/dist/chunks/{useProgressBar-DCj794Zv.es.js.map → useProgressBar--OvVKto2.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-BiQ20B5n.es.js → useSpinButton-YcV6vlPf.es.js} +15 -15
- package/dist/chunks/{useSpinButton-BiQ20B5n.es.js.map → useSpinButton-YcV6vlPf.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-DmY05o2G.es.js → useSyncRef-BpLviItW.es.js} +2 -2
- package/dist/chunks/{useSyncRef-DmY05o2G.es.js.map → useSyncRef-BpLviItW.es.js.map} +1 -1
- package/dist/chunks/{useTextField-9WuJfc9u.es.js → useTextField-yuaT8-G4.es.js} +7 -7
- package/dist/chunks/{useTextField-9WuJfc9u.es.js.map → useTextField-yuaT8-G4.es.js.map} +1 -1
- package/dist/chunks/{useToggle-BZPMewLP.es.js → useToggle-DKP3zVOY.es.js} +5 -5
- package/dist/chunks/{useToggle-BZPMewLP.es.js.map → useToggle-DKP3zVOY.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-C673xD3E.es.js → useToolbar-CbJkugif.es.js} +3 -3
- package/dist/chunks/{useToolbar-C673xD3E.es.js.map → useToolbar-CbJkugif.es.js.map} +1 -1
- package/dist/chunks/{utils-9vu7GUaz.es.js → utils-B6pV5ewr.es.js} +12 -12
- package/dist/chunks/{utils-9vu7GUaz.es.js.map → utils-B6pV5ewr.es.js.map} +1 -1
- package/dist/chunks/{utils-Bl-3nKLa.es.js → utils-oAGBWzI5.es.js} +14 -14
- package/dist/chunks/{utils-Bl-3nKLa.es.js.map → utils-oAGBWzI5.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-m5QY9YV7.es.js → visually-hidden-Dj5CT-u_.es.js} +2 -2
- package/dist/chunks/{visually-hidden-m5QY9YV7.es.js.map → visually-hidden-Dj5CT-u_.es.js.map} +1 -1
- package/dist/components/accordion/accordion.recipe.d.ts +1 -1
- package/dist/components/accordion/accordion.slots.d.ts +5 -5
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert/alert.recipe.d.ts +1 -1
- package/dist/components/alert/alert.slots.d.ts +3 -3
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.slots.d.ts +1 -1
- package/dist/components/badge/badge.slots.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.slots.d.ts +8 -8
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox/combobox.d.ts +203 -27
- package/dist/components/combobox/combobox.i18n.d.ts +3 -13
- package/dist/components/combobox/combobox.recipe.d.ts +18 -17
- package/dist/components/combobox/combobox.slots.d.ts +15 -29
- 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/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/data-table.d.ts +3 -3
- package/dist/components/data-table/data-table.slots.d.ts +12 -12
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input/date-input.slots.d.ts +5 -5
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker/date-picker.recipe.d.ts +1 -1
- package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.slots.d.ts +8 -8
- package/dist/components/date-range-picker-field.cjs +1 -1
- package/dist/components/date-range-picker-field.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog/dialog.slots.d.ts +9 -9
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer/drawer.slots.d.ts +10 -10
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +7 -7
- package/dist/components/form-field/form-field.recipe.d.ts +1 -1
- package/dist/components/form-field/form-field.slots.d.ts +2 -2
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/heading.es.js +1 -1
- package/dist/components/icon-button/icon-button.types.d.ts +14 -2
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/inline-svg/inline-svg.slots.d.ts +1 -1
- package/dist/components/inline-svg.cjs +1 -1
- package/dist/components/inline-svg.es.js +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link/link.slots.d.ts +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/menu/menu.recipe.d.ts +1 -1
- package/dist/components/money-input/money-input.slots.d.ts +6 -6
- package/dist/components/money-input-field.cjs +1 -1
- package/dist/components/money-input-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
- package/dist/components/multiline-text-input-field.cjs +1 -1
- package/dist/components/multiline-text-input-field.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input/number-input.slots.d.ts +6 -6
- package/dist/components/number-input-field.cjs +1 -1
- package/dist/components/number-input-field.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input-field.cjs +1 -1
- package/dist/components/password-input-field.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +7 -7
- package/dist/components/popover/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/progress-bar.slots.d.ts +4 -4
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input/radio-input.slots.d.ts +2 -2
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/rich-text-input.slots.d.ts +2 -2
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input-field.cjs +1 -1
- package/dist/components/search-input-field.es.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.slots.d.ts +7 -7
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/split-button.slots.d.ts +3 -3
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch/switch.slots.d.ts +3 -3
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +1 -1
- package/dist/components/tabs/tabs.slots.d.ts +3 -3
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input-field.cjs +1 -1
- package/dist/components/text-input-field.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input/time-input.slots.d.ts +5 -5
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.es.js +2 -2
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +66 -66
- package/dist/theme/slot-recipes/index.d.ts +26 -25
- package/package.json +21 -19
- package/dist/chunks/DateField-B5u8QZFY.cjs.js +0 -2
- package/dist/chunks/DateField-B5u8QZFY.cjs.js.map +0 -1
- package/dist/chunks/DateField-Bpk0AwB2.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-JHqAZ7HD.es.js +0 -42
- package/dist/chunks/TextArea-JHqAZ7HD.es.js.map +0 -1
- package/dist/chunks/accordion.content-FJHilptY.cjs.js +0 -2
- package/dist/chunks/badge-DUiqk6w9.es.js +0 -17
- package/dist/chunks/calendar-BdCLSYto.es.js.map +0 -1
- package/dist/chunks/combobox-BL-yt5AS.cjs.js +0 -2
- package/dist/chunks/combobox-BL-yt5AS.cjs.js.map +0 -1
- package/dist/chunks/combobox-YXYH4TBY.es.js +0 -2497
- package/dist/chunks/combobox-YXYH4TBY.es.js.map +0 -1
- package/dist/chunks/draggable-list-QBq9crbo.es.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-CHDxKs9d.cjs.js +0 -2
- package/dist/chunks/icon-button-CHDxKs9d.cjs.js.map +0 -1
- package/dist/chunks/icon-button-ColKoTiY.es.js +0 -14
- package/dist/chunks/icon-button-ColKoTiY.es.js.map +0 -1
- package/dist/chunks/index-2XcTax28.es.js.map +0 -1
- package/dist/chunks/index-Bg-QoBZW.cjs.js +0 -34
- package/dist/chunks/index-Bg-QoBZW.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/multiline-text-input-CrI5ej-8.cjs.js +0 -2
- package/dist/chunks/multiline-text-input-CrI5ej-8.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-D3vZmjQ_.es.js +0 -64
- package/dist/chunks/multiline-text-input-D3vZmjQ_.es.js.map +0 -1
- package/dist/chunks/nimbus-provider-D7gI8pm5.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-DaQ9Tjdj.es.js.map +0 -1
- package/dist/chunks/popover-B1aRr1CU.es.js +0 -14
- package/dist/chunks/popover-B1aRr1CU.es.js.map +0 -1
- package/dist/chunks/popover-DHeke7qU.cjs.js +0 -2
- package/dist/chunks/popover-DHeke7qU.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-1kY30zRJ.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-B3RLxyiG.es.js.map +0 -1
- package/dist/chunks/tabs-Bj_4uX0M.cjs.js +0 -2
- package/dist/chunks/tabs-Bj_4uX0M.cjs.js.map +0 -1
- package/dist/chunks/tabs-Cog1Axaa.es.js +0 -488
- package/dist/chunks/tabs-Cog1Axaa.es.js.map +0 -1
- package/dist/chunks/useDateFormatter-CO08GpLe.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-BSrUXH20.cjs.js +0 -2
- package/dist/chunks/useSingleSelectListState-C_tE7a5E.es.js +0 -35
- package/dist/chunks/useSingleSelectListState-C_tE7a5E.es.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-DnlbcBEG.cjs.js +0 -2
- package/dist/chunks/useSingleSelectListState-DnlbcBEG.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-input-DlR-OTvl.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+radio@3.12.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/radio/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/radio/dist/useRadio.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/radio/dist/useRadioGroup.mjs","../../../../node_modules/.pnpm/@react-stately+radio@3.11.2_react@19.2.0/node_modules/@react-stately/radio/dist/useRadioGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/RadioGroup.mjs","../../src/components/radio-input/radio-input.slots.tsx","../../src/components/radio-input/components/radio-input.root.tsx","../../src/components/radio-input/components/radio-input.option.tsx","../../src/components/radio-input/radio-input.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $884aeceb3d67f00f$export$37b65e5b5444d35c = new WeakMap();\n\n\nexport {$884aeceb3d67f00f$export$37b65e5b5444d35c as radioGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {mergeProps as $5jJ3f$mergeProps, filterDOMProps as $5jJ3f$filterDOMProps, useFormReset as $5jJ3f$useFormReset} from \"@react-aria/utils\";\nimport {useMemo as $5jJ3f$useMemo} from \"react\";\nimport {usePress as $5jJ3f$usePress, useFocusable as $5jJ3f$useFocusable} from \"@react-aria/interactions\";\nimport {useFormValidation as $5jJ3f$useFormValidation} from \"@react-aria/form\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {\n let { value: value, children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressChange: onPressChange, onPress: onPress, onPressUp: onPressUp, onClick: onClick } = props;\n const isDisabled = props.isDisabled || state.isDisabled;\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n let checked = state.selectedValue === value;\n let onChange = (e)=>{\n e.stopPropagation();\n state.setSelectedValue(value);\n };\n // Handle press state for keyboard interactions and cases where labelProps is not used.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled\n });\n // Handle press state on the label.\n let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n onPress (e) {\n var _ref_current;\n onPress === null || onPress === void 0 ? void 0 : onPress(e);\n state.setSelectedValue(value);\n (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();\n }\n });\n let { focusableProps: focusableProps } = (0, $5jJ3f$useFocusable)((0, $5jJ3f$mergeProps)(props, {\n onFocus: ()=>state.setLastFocusedValue(value)\n }), ref);\n let interactions = (0, $5jJ3f$mergeProps)(pressProps, focusableProps);\n let domProps = (0, $5jJ3f$filterDOMProps)(props, {\n labelable: true\n });\n let tabIndex = -1;\n if (state.selectedValue != null) {\n if (state.selectedValue === value) tabIndex = 0;\n } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;\n if (isDisabled) tabIndex = undefined;\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).get(state);\n (0, $5jJ3f$useFormReset)(ref, state.defaultSelectedValue, state.setSelectedValue);\n (0, $5jJ3f$useFormValidation)({\n validationBehavior: validationBehavior\n }, state, ref);\n return {\n labelProps: (0, $5jJ3f$mergeProps)(labelProps, (0, $5jJ3f$useMemo)(()=>({\n onClick: (e)=>e.preventDefault(),\n // Prevent label from being focused when mouse down on it.\n // Note, this does not prevent the input from being focused in the `click` event.\n onMouseDown: (e)=>e.preventDefault()\n }), [])),\n inputProps: (0, $5jJ3f$mergeProps)(domProps, {\n ...interactions,\n type: 'radio',\n name: name,\n form: form,\n tabIndex: tabIndex,\n disabled: isDisabled,\n required: state.isRequired && validationBehavior === 'native',\n checked: checked,\n value: value,\n onChange: onChange,\n 'aria-describedby': [\n props['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }),\n isDisabled: isDisabled,\n isSelected: checked,\n isPressed: isPressed || isLabelPressed\n };\n}\n\n\nexport {$0d5c49892c1215da$export$37b0961d2f4751e2 as useRadio};\n//# sourceMappingURL=useRadio.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {filterDOMProps as $czmJy$filterDOMProps, getOwnerWindow as $czmJy$getOwnerWindow, useId as $czmJy$useId, mergeProps as $czmJy$mergeProps} from \"@react-aria/utils\";\nimport {getFocusableTreeWalker as $czmJy$getFocusableTreeWalker} from \"@react-aria/focus\";\nimport {useField as $czmJy$useField} from \"@react-aria/label\";\nimport {useFocusWithin as $czmJy$useFocusWithin} from \"@react-aria/interactions\";\nimport {useLocale as $czmJy$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {\n let { name: name, form: form, isReadOnly: isReadOnly, isRequired: isRequired, isDisabled: isDisabled, orientation: orientation = 'vertical', validationBehavior: validationBehavior = 'aria' } = props;\n let { direction: direction } = (0, $czmJy$useLocale)();\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $czmJy$useField)({\n ...props,\n // Radio group is not an HTML input element so it\n // shouldn't be labeled by a <label> element.\n labelElementType: 'span',\n isInvalid: state.isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n let domProps = (0, $czmJy$filterDOMProps)(props, {\n labelable: true\n });\n // When the radio group loses focus, reset the focusable radio to null if\n // there is no selection. This allows tabbing into the group from either\n // direction to go to the first or last radio.\n let { focusWithinProps: focusWithinProps } = (0, $czmJy$useFocusWithin)({\n onBlurWithin (e) {\n var _props_onBlur;\n (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);\n if (!state.selectedValue) state.setLastFocusedValue(null);\n },\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n let onKeyDown = (e)=>{\n let nextDir;\n switch(e.key){\n case 'ArrowRight':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'prev';\n else nextDir = 'next';\n break;\n case 'ArrowLeft':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'next';\n else nextDir = 'prev';\n break;\n case 'ArrowDown':\n nextDir = 'next';\n break;\n case 'ArrowUp':\n nextDir = 'prev';\n break;\n default:\n return;\n }\n e.preventDefault();\n let walker = (0, $czmJy$getFocusableTreeWalker)(e.currentTarget, {\n from: e.target,\n accept: (node)=>node instanceof (0, $czmJy$getOwnerWindow)(node).HTMLInputElement && node.type === 'radio'\n });\n let nextElem;\n if (nextDir === 'next') {\n nextElem = walker.nextNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.firstChild();\n }\n } else {\n nextElem = walker.previousNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.lastChild();\n }\n }\n if (nextElem) {\n // Call focus on nextElem so that keyboard navigation scrolls the radio into view\n nextElem.focus();\n state.setSelectedValue(nextElem.value);\n }\n };\n let groupName = (0, $czmJy$useId)(name);\n (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).set(state, {\n name: groupName,\n form: form,\n descriptionId: descriptionProps.id,\n errorMessageId: errorMessageProps.id,\n validationBehavior: validationBehavior\n });\n return {\n radioGroupProps: (0, $czmJy$mergeProps)(domProps, {\n // https://www.w3.org/TR/wai-aria-1.2/#radiogroup\n role: 'radiogroup',\n onKeyDown: onKeyDown,\n 'aria-invalid': state.isInvalid || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-readonly': isReadOnly || undefined,\n 'aria-required': isRequired || undefined,\n 'aria-disabled': isDisabled || undefined,\n 'aria-orientation': orientation,\n ...fieldProps,\n ...focusWithinProps\n }),\n labelProps: labelProps,\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$430f30ed08ec25fa$export$62b9571f283ff5c2 as useRadioGroup};\n//# sourceMappingURL=useRadioGroup.module.js.map\n","import {useFormValidationState as $l55kx$useFormValidationState} from \"@react-stately/form\";\nimport {useControlledState as $l55kx$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $l55kx$useMemo, useState as $l55kx$useState} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nlet $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 10000000000);\nlet $a54cdc5c1942b639$var$i = 0;\nfunction $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {\n // Preserved here for backward compatibility. React Aria now generates the name instead of stately.\n let name = (0, $l55kx$useMemo)(()=>props.name || `radio-group-${$a54cdc5c1942b639$var$instance}-${++$a54cdc5c1942b639$var$i}`, [\n props.name\n ]);\n var _props_defaultValue;\n let [selectedValue, setSelected] = (0, $l55kx$useControlledState)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);\n let [initialValue] = (0, $l55kx$useState)(selectedValue);\n let [lastFocusedValue, setLastFocusedValue] = (0, $l55kx$useState)(null);\n let validation = (0, $l55kx$useFormValidationState)({\n ...props,\n value: selectedValue\n });\n let setSelectedValue = (value)=>{\n if (!props.isReadOnly && !props.isDisabled) {\n setSelected(value);\n validation.commitValidation();\n }\n };\n let isInvalid = validation.displayValidation.isInvalid;\n var _props_defaultValue1;\n return {\n ...validation,\n name: name,\n selectedValue: selectedValue,\n defaultSelectedValue: props.value !== undefined ? initialValue : (_props_defaultValue1 = props.defaultValue) !== null && _props_defaultValue1 !== void 0 ? _props_defaultValue1 : null,\n setSelectedValue: setSelectedValue,\n lastFocusedValue: lastFocusedValue,\n setLastFocusedValue: setLastFocusedValue,\n isDisabled: props.isDisabled || false,\n isReadOnly: props.isReadOnly || false,\n isRequired: props.isRequired || false,\n validationState: props.validationState || (isInvalid ? 'invalid' : null),\n isInvalid: isInvalid\n };\n}\n\n\nexport {$a54cdc5c1942b639$export$bca9d026f8e704eb as useRadioGroupState};\n//# sourceMappingURL=useRadioGroupState.module.js.map\n","import {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {SelectionIndicatorContext as $1d5b8b8664671ef2$export$c9549807523555e0} from \"./SelectionIndicator.mjs\";\nimport {SharedElementTransition as $c8a5a149f625efcf$export$758399f318e6385a} from \"./SharedElementTransition.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useRadioGroup as $3sixo$useRadioGroup, useRadio as $3sixo$useRadio, useFocusRing as $3sixo$useFocusRing, useHover as $3sixo$useHover, VisuallyHidden as $3sixo$VisuallyHidden} from \"react-aria\";\nimport {filterDOMProps as $3sixo$filterDOMProps, mergeProps as $3sixo$mergeProps, useObjectRef as $3sixo$useObjectRef, mergeRefs as $3sixo$mergeRefs} from \"@react-aria/utils\";\nimport {useRadioGroupState as $3sixo$useRadioGroupState} from \"react-stately\";\nimport $3sixo$react, {createContext as $3sixo$createContext, forwardRef as $3sixo$forwardRef, useMemo as $3sixo$useMemo} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\nconst $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$b118023277d4a5c3 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$29d84393af70866c = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function RadioGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let state = (0, $3sixo$useRadioGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { radioGroupProps: radioGroupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $3sixo$useRadioGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'vertical',\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: state.isRequired,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-RadioGroup'\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"div\", {\n ...(0, $3sixo$mergeProps)(DOMProps, renderProps, radioGroupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'vertical',\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": state.isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $b6c3ddc6086f204d$export$29d84393af70866c,\n state\n ],\n [\n (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $c8a5a149f625efcf$export$758399f318e6385a), null, renderProps.children)));\n});\nconst $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function Radio(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);\n let state = (0, $3sixo$react).useContext($b6c3ddc6086f204d$export$29d84393af70866c);\n let inputRef = (0, $3sixo$useObjectRef)((0, $3sixo$useMemo)(()=>(0, $3sixo$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isPressed: isPressed } = (0, $3sixo$useRadio)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, state, inputRef);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $3sixo$useFocusRing)();\n let interactionDisabled = isDisabled || state.isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $3sixo$useHover)({\n ...props,\n isDisabled: interactionDisabled\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Radio',\n values: {\n isSelected: isSelected,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: state.isReadOnly,\n isInvalid: state.isInvalid,\n isRequired: state.isRequired\n }\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"label\", {\n ...(0, $3sixo$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n \"data-selected\": isSelected || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $3sixo$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $3sixo$react).createElement(\"input\", {\n ...(0, $3sixo$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), /*#__PURE__*/ (0, $3sixo$react).createElement((0, $1d5b8b8664671ef2$export$c9549807523555e0).Provider, {\n value: {\n isSelected: isSelected\n }\n }, renderProps.children));\n});\n\n\nexport {$b6c3ddc6086f204d$export$a79eda4ff50e30b6 as RadioGroupContext, $b6c3ddc6086f204d$export$b118023277d4a5c3 as RadioContext, $b6c3ddc6086f204d$export$29d84393af70866c as RadioGroupStateContext, $b6c3ddc6086f204d$export$a98f0dcb43a68a25 as RadioGroup, $b6c3ddc6086f204d$export$d7b12c4107be0d61 as Radio};\n//# sourceMappingURL=RadioGroup.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n RadioInputOptionSlotProps,\n RadioInputRootSlotProps,\n} from \"./radio-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"radioInput\",\n});\n\nexport const RadioInputRootSlot = withProvider<\n HTMLDivElement,\n RadioInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const RadioInputOptionSlot = withContext<\n HTMLSpanElement,\n RadioInputOptionSlotProps\n>(\"span\", \"option\");\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { radioInputSlotRecipe } from \"../radio-input.recipe\";\nimport { RadioGroup as RaRadioGroup } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { RadioInputRootProps } from \"../radio-input.types\";\nimport { RadioInputRootSlot } from \"../radio-input.slots\";\n\n/**\n * # RadioInput.Root\n *\n * A set of closely related, mutually exclusive or complementary actions that are important enough to be displayed directly in the interface for quick access.\n *\n * @supportsStyleProps\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/radio-input}\n */\nexport const RadioInputRoot = (props: RadioInputRootProps) => {\n const recipe = useSlotRecipe({ recipe: radioInputSlotRecipe });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n const [styleProps, restProps] = extractStyleProps(restRecipeProps);\n\n return (\n <RadioInputRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRadioGroup {...restProps}>{props.children}</RaRadioGroup>\n </RadioInputRootSlot>\n );\n};\n\nRadioInputRoot.displayName = \"RadioInput.Root\";\n","import { Radio as RaRadio } from \"react-aria-components\";\nimport {\n RadioButtonChecked,\n RadioButtonUnchecked,\n} from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { RadioInputOptionProps } from \"../radio-input.types\";\nimport { RadioInputOptionSlot } from \"../radio-input.slots\";\nimport { useFocusRing } from \"react-aria\";\n\n/**\n * # RadioInput.Option\n *\n * An individual radio option within a RadioInput group that can be selected.\n * Provides visual feedback for selection state and supports keyboard interaction.\n *\n * @supportsStyleProps\n */\nexport const RadioInputOption = ({\n children,\n value,\n ...rest\n}: RadioInputOptionProps) => {\n const [styleProps, restProps] = extractStyleProps(rest);\n const { isFocused, focusProps } = useFocusRing();\n\n return (\n <RadioInputOptionSlot\n {...styleProps}\n {...focusProps}\n data-focus={isFocused || undefined}\n asChild\n >\n <RaRadio value={value} {...restProps}>\n {(renderProps) => {\n const content =\n typeof children === \"function\"\n ? children({\n ...renderProps,\n })\n : children;\n return (\n <>\n {renderProps.isSelected ? (\n <RadioButtonChecked />\n ) : (\n <RadioButtonUnchecked />\n )}\n {content}\n </>\n );\n }}\n </RaRadio>\n </RadioInputOptionSlot>\n );\n};\n\nRadioInputOption.displayName = \"RadioInput.Option\";\n","import { RadioInputRoot, RadioInputOption } from \"./components\";\n\nexport const RadioInput = {\n /**\n * # RadioInput.Root\n *\n * The root container for a radio input group that manages the selection state and provides context for radio options.\n * Handles keyboard navigation, accessibility attributes, and mutually exclusive selection behavior.\n *\n * @example\n * ```tsx\n * <RadioInput.Root name=\"selection\" defaultValue=\"option1\">\n * <RadioInput.Option value=\"option1\">First Choice</RadioInput.Option>\n * <RadioInput.Option value=\"option2\">Second Choice</RadioInput.Option>\n * </RadioInput.Root>\n * ```\n */\n Root: RadioInputRoot,\n\n /**\n * # RadioInput.Option\n *\n * An individual radio option within a RadioInput group that can be selected.\n * Provides visual feedback for selection state and supports keyboard interaction.\n *\n * @example\n * ```tsx\n * <RadioInput.Root name=\"choice\">\n * <RadioInput.Option value=\"yes\">Yes</RadioInput.Option>\n * <RadioInput.Option value=\"no\">No</RadioInput.Option>\n * </RadioInput.Root>\n * ```\n */\n Option: RadioInputOption,\n};\n"],"names":["$884aeceb3d67f00f$export$37b65e5b5444d35c","$0d5c49892c1215da$export$37b0961d2f4751e2","props","state","ref","value","children","ariaLabel","ariaLabelledby","onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick","isDisabled","hasChildren","hasAriaLabel","checked","onChange","e","pressProps","isPressed","$5jJ3f$usePress","labelProps","isLabelPressed","_ref_current","focusableProps","$5jJ3f$useFocusable","$5jJ3f$mergeProps","interactions","domProps","$5jJ3f$filterDOMProps","tabIndex","name","form","descriptionId","errorMessageId","validationBehavior","$5jJ3f$useFormReset","$5jJ3f$useFormValidation","$5jJ3f$useMemo","$430f30ed08ec25fa$export$62b9571f283ff5c2","isReadOnly","isRequired","orientation","direction","$czmJy$useLocale","isInvalid","validationErrors","validationDetails","fieldProps","descriptionProps","errorMessageProps","$czmJy$useField","$czmJy$filterDOMProps","focusWithinProps","$czmJy$useFocusWithin","_props_onBlur","onKeyDown","nextDir","walker","$czmJy$getFocusableTreeWalker","node","$czmJy$getOwnerWindow","nextElem","groupName","$czmJy$useId","$czmJy$mergeProps","$a54cdc5c1942b639$var$instance","$a54cdc5c1942b639$var$i","$a54cdc5c1942b639$export$bca9d026f8e704eb","$l55kx$useMemo","_props_defaultValue","selectedValue","setSelected","$l55kx$useControlledState","initialValue","$l55kx$useState","lastFocusedValue","setLastFocusedValue","validation","$l55kx$useFormValidationState","setSelectedValue","_props_defaultValue1","$b6c3ddc6086f204d$export$a79eda4ff50e30b6","$3sixo$createContext","$b6c3ddc6086f204d$export$b118023277d4a5c3","$b6c3ddc6086f204d$export$29d84393af70866c","$b6c3ddc6086f204d$export$a98f0dcb43a68a25","$3sixo$forwardRef","$64fa3d84918910a7$export$29f1550f4b0d4415","formValidationBehavior","$64fa3d84918910a7$export$fabf2dc03a41866e","$d3e0e05bdfcf66bd$export$c24727297075ec6a","_props_validationBehavior","_ref","$3sixo$useRadioGroupState","labelRef","label","$64fa3d84918910a7$export$9d4c57ee4c6ffdd8","radioGroupProps","$3sixo$useRadioGroup","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$3sixo$filterDOMProps","$3sixo$react","$3sixo$mergeProps","$64fa3d84918910a7$export$2881499e37b75b9a","$01b77f81d0f07f68$export$75b6ee27786ba447","$514c0188e459b4c0$export$9afb8bc826b033ea","$ee014567cb39d3f0$export$ff05c3ac10437e03","$c8a5a149f625efcf$export$758399f318e6385a","$b6c3ddc6086f204d$export$d7b12c4107be0d61","userProvidedInputRef","otherProps","inputRef","$3sixo$useObjectRef","$3sixo$useMemo","$3sixo$mergeRefs","inputProps","isSelected","$3sixo$useRadio","$64fa3d84918910a7$export$ef03459518577ad4","isFocused","isFocusVisible","focusProps","$3sixo$useFocusRing","interactionDisabled","hoverProps","isHovered","$3sixo$useHover","$3sixo$VisuallyHidden","$1d5b8b8664671ef2$export$c9549807523555e0","withProvider","withContext","createSlotRecipeContext","RadioInputRootSlot","RadioInputOptionSlot","RadioInputRoot","recipe","useSlotRecipe","radioInputSlotRecipe","recipeProps","restRecipeProps","styleProps","restProps","extractStyleProps","jsx","RaRadioGroup","RadioInputOption","rest","useFocusRing","RaRadio","content","jsxs","Fragment","RadioButtonChecked","RadioButtonUnchecked","RadioInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUI,MAAMA,IAA4C,oBAAI,QAAO;ACWjE,SAASC,GAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,OAAOC,GAAO,UAAUC,GAAU,cAAcC,GAAW,mBAAmBC,GAAgB,cAAcC,GAAc,YAAYC,GAAY,eAAeC,GAAe,SAASC,GAAS,WAAWC,GAAW,SAASC,EAAO,IAAKZ;AACnP,QAAMa,IAAab,EAAM,cAAcC,EAAM;AAC7C,MAAIa,IAAcV,KAAY,MAC1BW,IAAeV,KAAa,QAAQC,KAAkB;AAC1D,EAAI,CAACQ,KAAe,CAACC,KAAgB,QAAQ,IAAI,aAAa,gBAAc,QAAQ,KAAK,kFAAkF;AAC3K,MAAIC,IAAUf,EAAM,kBAAkBE,GAClCc,IAAW,CAACC,MAAI;AAChB,IAAAA,EAAE,gBAAe,GACjBjB,EAAM,iBAAiBE,CAAK;AAAA,EAChC,GAEI,EAAE,YAAYgB,GAAY,WAAWC,EAAS,IAASC,EAAiB;AAAA,IACxE,cAAcd;AAAA,IACd,YAAYC;AAAA,IACZ,eAAeC;AAAA,IACf,SAASC;AAAA,IACT,WAAWC;AAAA,IACX,SAASC;AAAA,IACT,YAAYC;AAAA,EACpB,CAAK,GAEG,EAAE,YAAYS,GAAY,WAAWC,EAAc,IAASF,EAAiB;AAAA,IAC7E,cAAcd;AAAA,IACd,YAAYC;AAAA,IACZ,eAAeC;AAAA,IACf,WAAWE;AAAA,IACX,SAASC;AAAA,IACT,YAAYC;AAAA,IACZ,QAASK,GAAG;AACR,UAAIM;AACJ,MAAkDd,IAAQQ,CAAC,GAC3DjB,EAAM,iBAAiBE,CAAK,IAC3BqB,IAAetB,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WAAC5C,MAAgB;AAChB,cAAMoD,IACJ,OAAOrJ,KAAa,aAChBA,EAAS;AAAA,UACP,GAAGiG;AAAA,QAAA,CACJ,IACDjG;AACN,eACE,gBAAAsJ,EAAAC,GAAA,EACG,UAAA;AAAA,UAAAtD,EAAY,aACX,gBAAA8C,EAACS,IAAA,CAAA,CAAmB,sBAEnBC,IAAA,EAAqB;AAAA,UAEvBJ;AAAA,QAAA,GACH;AAAA,MAEJ,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAJ,EAAiB,cAAc;ACvDxB,MAAMS,KAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAexB,MAAMpB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBN,QAAQW;AACV;","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"radio-input-CjJwVVHd.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+radio@3.12.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/radio/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/radio/dist/useRadio.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/radio/dist/useRadioGroup.mjs","../../../../node_modules/.pnpm/@react-stately+radio@3.11.2_react@19.2.0/node_modules/@react-stately/radio/dist/useRadioGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/RadioGroup.mjs","../../src/components/radio-input/radio-input.slots.tsx","../../src/components/radio-input/components/radio-input.root.tsx","../../src/components/radio-input/components/radio-input.option.tsx","../../src/components/radio-input/radio-input.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $884aeceb3d67f00f$export$37b65e5b5444d35c = new WeakMap();\n\n\nexport {$884aeceb3d67f00f$export$37b65e5b5444d35c as radioGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {mergeProps as $5jJ3f$mergeProps, filterDOMProps as $5jJ3f$filterDOMProps, useFormReset as $5jJ3f$useFormReset} from \"@react-aria/utils\";\nimport {useMemo as $5jJ3f$useMemo} from \"react\";\nimport {usePress as $5jJ3f$usePress, useFocusable as $5jJ3f$useFocusable} from \"@react-aria/interactions\";\nimport {useFormValidation as $5jJ3f$useFormValidation} from \"@react-aria/form\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {\n let { value: value, children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressChange: onPressChange, onPress: onPress, onPressUp: onPressUp, onClick: onClick } = props;\n const isDisabled = props.isDisabled || state.isDisabled;\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n let checked = state.selectedValue === value;\n let onChange = (e)=>{\n e.stopPropagation();\n state.setSelectedValue(value);\n };\n // Handle press state for keyboard interactions and cases where labelProps is not used.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled\n });\n // Handle press state on the label.\n let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n onPress (e) {\n var _ref_current;\n onPress === null || onPress === void 0 ? void 0 : onPress(e);\n state.setSelectedValue(value);\n (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();\n }\n });\n let { focusableProps: focusableProps } = (0, $5jJ3f$useFocusable)((0, $5jJ3f$mergeProps)(props, {\n onFocus: ()=>state.setLastFocusedValue(value)\n }), ref);\n let interactions = (0, $5jJ3f$mergeProps)(pressProps, focusableProps);\n let domProps = (0, $5jJ3f$filterDOMProps)(props, {\n labelable: true\n });\n let tabIndex = -1;\n if (state.selectedValue != null) {\n if (state.selectedValue === value) tabIndex = 0;\n } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;\n if (isDisabled) tabIndex = undefined;\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).get(state);\n (0, $5jJ3f$useFormReset)(ref, state.defaultSelectedValue, state.setSelectedValue);\n (0, $5jJ3f$useFormValidation)({\n validationBehavior: validationBehavior\n }, state, ref);\n return {\n labelProps: (0, $5jJ3f$mergeProps)(labelProps, (0, $5jJ3f$useMemo)(()=>({\n onClick: (e)=>e.preventDefault(),\n // Prevent label from being focused when mouse down on it.\n // Note, this does not prevent the input from being focused in the `click` event.\n onMouseDown: (e)=>e.preventDefault()\n }), [])),\n inputProps: (0, $5jJ3f$mergeProps)(domProps, {\n ...interactions,\n type: 'radio',\n name: name,\n form: form,\n tabIndex: tabIndex,\n disabled: isDisabled,\n required: state.isRequired && validationBehavior === 'native',\n checked: checked,\n value: value,\n onChange: onChange,\n 'aria-describedby': [\n props['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }),\n isDisabled: isDisabled,\n isSelected: checked,\n isPressed: isPressed || isLabelPressed\n };\n}\n\n\nexport {$0d5c49892c1215da$export$37b0961d2f4751e2 as useRadio};\n//# sourceMappingURL=useRadio.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {filterDOMProps as $czmJy$filterDOMProps, getOwnerWindow as $czmJy$getOwnerWindow, useId as $czmJy$useId, mergeProps as $czmJy$mergeProps} from \"@react-aria/utils\";\nimport {getFocusableTreeWalker as $czmJy$getFocusableTreeWalker} from \"@react-aria/focus\";\nimport {useField as $czmJy$useField} from \"@react-aria/label\";\nimport {useFocusWithin as $czmJy$useFocusWithin} from \"@react-aria/interactions\";\nimport {useLocale as $czmJy$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {\n let { name: name, form: form, isReadOnly: isReadOnly, isRequired: isRequired, isDisabled: isDisabled, orientation: orientation = 'vertical', validationBehavior: validationBehavior = 'aria' } = props;\n let { direction: direction } = (0, $czmJy$useLocale)();\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $czmJy$useField)({\n ...props,\n // Radio group is not an HTML input element so it\n // shouldn't be labeled by a <label> element.\n labelElementType: 'span',\n isInvalid: state.isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n let domProps = (0, $czmJy$filterDOMProps)(props, {\n labelable: true\n });\n // When the radio group loses focus, reset the focusable radio to null if\n // there is no selection. This allows tabbing into the group from either\n // direction to go to the first or last radio.\n let { focusWithinProps: focusWithinProps } = (0, $czmJy$useFocusWithin)({\n onBlurWithin (e) {\n var _props_onBlur;\n (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);\n if (!state.selectedValue) state.setLastFocusedValue(null);\n },\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n let onKeyDown = (e)=>{\n let nextDir;\n switch(e.key){\n case 'ArrowRight':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'prev';\n else nextDir = 'next';\n break;\n case 'ArrowLeft':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'next';\n else nextDir = 'prev';\n break;\n case 'ArrowDown':\n nextDir = 'next';\n break;\n case 'ArrowUp':\n nextDir = 'prev';\n break;\n default:\n return;\n }\n e.preventDefault();\n let walker = (0, $czmJy$getFocusableTreeWalker)(e.currentTarget, {\n from: e.target,\n accept: (node)=>node instanceof (0, $czmJy$getOwnerWindow)(node).HTMLInputElement && node.type === 'radio'\n });\n let nextElem;\n if (nextDir === 'next') {\n nextElem = walker.nextNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.firstChild();\n }\n } else {\n nextElem = walker.previousNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.lastChild();\n }\n }\n if (nextElem) {\n // Call focus on nextElem so that keyboard navigation scrolls the radio into view\n nextElem.focus();\n state.setSelectedValue(nextElem.value);\n }\n };\n let groupName = (0, $czmJy$useId)(name);\n (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).set(state, {\n name: groupName,\n form: form,\n descriptionId: descriptionProps.id,\n errorMessageId: errorMessageProps.id,\n validationBehavior: validationBehavior\n });\n return {\n radioGroupProps: (0, $czmJy$mergeProps)(domProps, {\n // https://www.w3.org/TR/wai-aria-1.2/#radiogroup\n role: 'radiogroup',\n onKeyDown: onKeyDown,\n 'aria-invalid': state.isInvalid || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-readonly': isReadOnly || undefined,\n 'aria-required': isRequired || undefined,\n 'aria-disabled': isDisabled || undefined,\n 'aria-orientation': orientation,\n ...fieldProps,\n ...focusWithinProps\n }),\n labelProps: labelProps,\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$430f30ed08ec25fa$export$62b9571f283ff5c2 as useRadioGroup};\n//# sourceMappingURL=useRadioGroup.module.js.map\n","import {useFormValidationState as $l55kx$useFormValidationState} from \"@react-stately/form\";\nimport {useControlledState as $l55kx$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $l55kx$useMemo, useState as $l55kx$useState} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nlet $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 10000000000);\nlet $a54cdc5c1942b639$var$i = 0;\nfunction $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {\n // Preserved here for backward compatibility. React Aria now generates the name instead of stately.\n let name = (0, $l55kx$useMemo)(()=>props.name || `radio-group-${$a54cdc5c1942b639$var$instance}-${++$a54cdc5c1942b639$var$i}`, [\n props.name\n ]);\n var _props_defaultValue;\n let [selectedValue, setSelected] = (0, $l55kx$useControlledState)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);\n let [initialValue] = (0, $l55kx$useState)(selectedValue);\n let [lastFocusedValue, setLastFocusedValue] = (0, $l55kx$useState)(null);\n let validation = (0, $l55kx$useFormValidationState)({\n ...props,\n value: selectedValue\n });\n let setSelectedValue = (value)=>{\n if (!props.isReadOnly && !props.isDisabled) {\n setSelected(value);\n validation.commitValidation();\n }\n };\n let isInvalid = validation.displayValidation.isInvalid;\n var _props_defaultValue1;\n return {\n ...validation,\n name: name,\n selectedValue: selectedValue,\n defaultSelectedValue: props.value !== undefined ? initialValue : (_props_defaultValue1 = props.defaultValue) !== null && _props_defaultValue1 !== void 0 ? _props_defaultValue1 : null,\n setSelectedValue: setSelectedValue,\n lastFocusedValue: lastFocusedValue,\n setLastFocusedValue: setLastFocusedValue,\n isDisabled: props.isDisabled || false,\n isReadOnly: props.isReadOnly || false,\n isRequired: props.isRequired || false,\n validationState: props.validationState || (isInvalid ? 'invalid' : null),\n isInvalid: isInvalid\n };\n}\n\n\nexport {$a54cdc5c1942b639$export$bca9d026f8e704eb as useRadioGroupState};\n//# sourceMappingURL=useRadioGroupState.module.js.map\n","import {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {SelectionIndicatorContext as $1d5b8b8664671ef2$export$c9549807523555e0} from \"./SelectionIndicator.mjs\";\nimport {SharedElementTransition as $c8a5a149f625efcf$export$758399f318e6385a} from \"./SharedElementTransition.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useRadioGroup as $3sixo$useRadioGroup, useRadio as $3sixo$useRadio, useFocusRing as $3sixo$useFocusRing, useHover as $3sixo$useHover, VisuallyHidden as $3sixo$VisuallyHidden} from \"react-aria\";\nimport {filterDOMProps as $3sixo$filterDOMProps, mergeProps as $3sixo$mergeProps, useObjectRef as $3sixo$useObjectRef, mergeRefs as $3sixo$mergeRefs} from \"@react-aria/utils\";\nimport {useRadioGroupState as $3sixo$useRadioGroupState} from \"react-stately\";\nimport $3sixo$react, {createContext as $3sixo$createContext, forwardRef as $3sixo$forwardRef, useMemo as $3sixo$useMemo} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\nconst $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$b118023277d4a5c3 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$29d84393af70866c = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function RadioGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let state = (0, $3sixo$useRadioGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { radioGroupProps: radioGroupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $3sixo$useRadioGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'vertical',\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: state.isRequired,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-RadioGroup'\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"div\", {\n ...(0, $3sixo$mergeProps)(DOMProps, renderProps, radioGroupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'vertical',\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": state.isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $b6c3ddc6086f204d$export$29d84393af70866c,\n state\n ],\n [\n (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $c8a5a149f625efcf$export$758399f318e6385a), null, renderProps.children)));\n});\nconst $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function Radio(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);\n let state = (0, $3sixo$react).useContext($b6c3ddc6086f204d$export$29d84393af70866c);\n let inputRef = (0, $3sixo$useObjectRef)((0, $3sixo$useMemo)(()=>(0, $3sixo$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isPressed: isPressed } = (0, $3sixo$useRadio)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, state, inputRef);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $3sixo$useFocusRing)();\n let interactionDisabled = isDisabled || state.isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $3sixo$useHover)({\n ...props,\n isDisabled: interactionDisabled\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Radio',\n values: {\n isSelected: isSelected,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: state.isReadOnly,\n isInvalid: state.isInvalid,\n isRequired: state.isRequired\n }\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"label\", {\n ...(0, $3sixo$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n \"data-selected\": isSelected || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $3sixo$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $3sixo$react).createElement(\"input\", {\n ...(0, $3sixo$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), /*#__PURE__*/ (0, $3sixo$react).createElement((0, $1d5b8b8664671ef2$export$c9549807523555e0).Provider, {\n value: {\n isSelected: isSelected\n }\n }, renderProps.children));\n});\n\n\nexport {$b6c3ddc6086f204d$export$a79eda4ff50e30b6 as RadioGroupContext, $b6c3ddc6086f204d$export$b118023277d4a5c3 as RadioContext, $b6c3ddc6086f204d$export$29d84393af70866c as RadioGroupStateContext, $b6c3ddc6086f204d$export$a98f0dcb43a68a25 as RadioGroup, $b6c3ddc6086f204d$export$d7b12c4107be0d61 as Radio};\n//# sourceMappingURL=RadioGroup.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n RadioInputOptionSlotProps,\n RadioInputRootSlotProps,\n} from \"./radio-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"radioInput\",\n});\n\nexport const RadioInputRootSlot = withProvider<\n HTMLDivElement,\n RadioInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const RadioInputOptionSlot = withContext<\n HTMLSpanElement,\n RadioInputOptionSlotProps\n>(\"span\", \"option\");\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { radioInputSlotRecipe } from \"../radio-input.recipe\";\nimport { RadioGroup as RaRadioGroup } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { RadioInputRootProps } from \"../radio-input.types\";\nimport { RadioInputRootSlot } from \"../radio-input.slots\";\n\n/**\n * # RadioInput.Root\n *\n * A set of closely related, mutually exclusive or complementary actions that are important enough to be displayed directly in the interface for quick access.\n *\n * @supportsStyleProps\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/radio-input}\n */\nexport const RadioInputRoot = (props: RadioInputRootProps) => {\n const recipe = useSlotRecipe({ recipe: radioInputSlotRecipe });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n const [styleProps, restProps] = extractStyleProps(restRecipeProps);\n\n return (\n <RadioInputRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRadioGroup {...restProps}>{props.children}</RaRadioGroup>\n </RadioInputRootSlot>\n );\n};\n\nRadioInputRoot.displayName = \"RadioInput.Root\";\n","import { Radio as RaRadio } from \"react-aria-components\";\nimport {\n RadioButtonChecked,\n RadioButtonUnchecked,\n} from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { RadioInputOptionProps } from \"../radio-input.types\";\nimport { RadioInputOptionSlot } from \"../radio-input.slots\";\nimport { useFocusRing } from \"react-aria\";\n\n/**\n * # RadioInput.Option\n *\n * An individual radio option within a RadioInput group that can be selected.\n * Provides visual feedback for selection state and supports keyboard interaction.\n *\n * @supportsStyleProps\n */\nexport const RadioInputOption = ({\n children,\n value,\n ...rest\n}: RadioInputOptionProps) => {\n const [styleProps, restProps] = extractStyleProps(rest);\n const { isFocused, focusProps } = useFocusRing();\n\n return (\n <RadioInputOptionSlot\n {...styleProps}\n {...focusProps}\n data-focus={isFocused || undefined}\n asChild\n >\n <RaRadio value={value} {...restProps}>\n {(renderProps) => {\n const content =\n typeof children === \"function\"\n ? children({\n ...renderProps,\n })\n : children;\n return (\n <>\n {renderProps.isSelected ? (\n <RadioButtonChecked />\n ) : (\n <RadioButtonUnchecked />\n )}\n {content}\n </>\n );\n }}\n </RaRadio>\n </RadioInputOptionSlot>\n );\n};\n\nRadioInputOption.displayName = \"RadioInput.Option\";\n","import { RadioInputRoot, RadioInputOption } from \"./components\";\n\nexport const RadioInput = {\n /**\n * # RadioInput.Root\n *\n * The root container for a radio input group that manages the selection state and provides context for radio options.\n * Handles keyboard navigation, accessibility attributes, and mutually exclusive selection behavior.\n *\n * @example\n * ```tsx\n * <RadioInput.Root name=\"selection\" defaultValue=\"option1\">\n * <RadioInput.Option value=\"option1\">First Choice</RadioInput.Option>\n * <RadioInput.Option value=\"option2\">Second Choice</RadioInput.Option>\n * </RadioInput.Root>\n * ```\n */\n Root: RadioInputRoot,\n\n /**\n * # RadioInput.Option\n *\n * An individual radio option within a RadioInput group that can be selected.\n * Provides visual feedback for selection state and supports keyboard interaction.\n *\n * @example\n * ```tsx\n * <RadioInput.Root name=\"choice\">\n * <RadioInput.Option value=\"yes\">Yes</RadioInput.Option>\n * <RadioInput.Option value=\"no\">No</RadioInput.Option>\n * </RadioInput.Root>\n * ```\n */\n Option: RadioInputOption,\n};\n"],"names":["$884aeceb3d67f00f$export$37b65e5b5444d35c","$0d5c49892c1215da$export$37b0961d2f4751e2","props","state","ref","value","children","ariaLabel","ariaLabelledby","onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick","isDisabled","hasChildren","hasAriaLabel","checked","onChange","e","pressProps","isPressed","$5jJ3f$usePress","labelProps","isLabelPressed","_ref_current","focusableProps","$5jJ3f$useFocusable","$5jJ3f$mergeProps","interactions","domProps","$5jJ3f$filterDOMProps","tabIndex","name","form","descriptionId","errorMessageId","validationBehavior","$5jJ3f$useFormReset","$5jJ3f$useFormValidation","$5jJ3f$useMemo","$430f30ed08ec25fa$export$62b9571f283ff5c2","isReadOnly","isRequired","orientation","direction","$czmJy$useLocale","isInvalid","validationErrors","validationDetails","fieldProps","descriptionProps","errorMessageProps","$czmJy$useField","$czmJy$filterDOMProps","focusWithinProps","$czmJy$useFocusWithin","_props_onBlur","onKeyDown","nextDir","walker","$czmJy$getFocusableTreeWalker","node","$czmJy$getOwnerWindow","nextElem","groupName","$czmJy$useId","$czmJy$mergeProps","$a54cdc5c1942b639$var$instance","$a54cdc5c1942b639$var$i","$a54cdc5c1942b639$export$bca9d026f8e704eb","$l55kx$useMemo","_props_defaultValue","selectedValue","setSelected","$l55kx$useControlledState","initialValue","$l55kx$useState","lastFocusedValue","setLastFocusedValue","validation","$l55kx$useFormValidationState","setSelectedValue","_props_defaultValue1","$b6c3ddc6086f204d$export$a79eda4ff50e30b6","$3sixo$createContext","$b6c3ddc6086f204d$export$b118023277d4a5c3","$b6c3ddc6086f204d$export$29d84393af70866c","$b6c3ddc6086f204d$export$a98f0dcb43a68a25","$3sixo$forwardRef","$64fa3d84918910a7$export$29f1550f4b0d4415","formValidationBehavior","$64fa3d84918910a7$export$fabf2dc03a41866e","$d3e0e05bdfcf66bd$export$c24727297075ec6a","_props_validationBehavior","_ref","$3sixo$useRadioGroupState","labelRef","label","$64fa3d84918910a7$export$9d4c57ee4c6ffdd8","radioGroupProps","$3sixo$useRadioGroup","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$3sixo$filterDOMProps","$3sixo$react","$3sixo$mergeProps","$64fa3d84918910a7$export$2881499e37b75b9a","$01b77f81d0f07f68$export$75b6ee27786ba447","$514c0188e459b4c0$export$9afb8bc826b033ea","$ee014567cb39d3f0$export$ff05c3ac10437e03","$c8a5a149f625efcf$export$758399f318e6385a","$b6c3ddc6086f204d$export$d7b12c4107be0d61","userProvidedInputRef","otherProps","inputRef","$3sixo$useObjectRef","$3sixo$useMemo","$3sixo$mergeRefs","inputProps","isSelected","$3sixo$useRadio","$64fa3d84918910a7$export$ef03459518577ad4","isFocused","isFocusVisible","focusProps","$3sixo$useFocusRing","interactionDisabled","hoverProps","isHovered","$3sixo$useHover","$3sixo$VisuallyHidden","$1d5b8b8664671ef2$export$c9549807523555e0","withProvider","withContext","createSlotRecipeContext","RadioInputRootSlot","RadioInputOptionSlot","RadioInputRoot","recipe","useSlotRecipe","radioInputSlotRecipe","recipeProps","restRecipeProps","styleProps","restProps","extractStyleProps","jsx","RaRadioGroup","RadioInputOption","rest","useFocusRing","RaRadio","content","jsxs","Fragment","RadioButtonChecked","RadioButtonUnchecked","RadioInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUI,MAAMA,IAA4C,oBAAI,QAAO;ACWjE,SAASC,GAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,OAAOC,GAAO,UAAUC,GAAU,cAAcC,GAAW,mBAAmBC,GAAgB,cAAcC,GAAc,YAAYC,GAAY,eAAeC,GAAe,SAASC,GAAS,WAAWC,GAAW,SAASC,EAAO,IAAKZ;AACnP,QAAMa,IAAab,EAAM,cAAcC,EAAM;AAC7C,MAAIa,IAAcV,KAAY,MAC1BW,IAAeV,KAAa,QAAQC,KAAkB;AAC1D,EAAI,CAACQ,KAAe,CAACC,KAAgB,QAAQ,IAAI,aAAa,gBAAc,QAAQ,KAAK,kFAAkF;AAC3K,MAAIC,IAAUf,EAAM,kBAAkBE,GAClCc,IAAW,CAACC,MAAI;AAChB,IAAAA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as I, $ as P, d as N, e as F, f as G, g as H, h as Y, i as j } from "./Heading-
|
|
2
|
+
import { b as S, c as I, $ as P, d as N, e as F, f as G, g as H, h as Y, i as j } from "./Heading-DDEPjNlF.es.js";
|
|
3
3
|
import { createSlotRecipeContext as A } from "@chakra-ui/react";
|
|
4
|
-
import { r as B } from "./index-
|
|
4
|
+
import { r as B } from "./index-UVW-kSPu.es.js";
|
|
5
5
|
import { useRecipe as L } from "@chakra-ui/react/styled-system";
|
|
6
|
-
import { e as z } from "./extract-style-props-
|
|
7
|
-
import { c as d, d as k } from "./useDateFormatter-
|
|
6
|
+
import { e as z } from "./extract-style-props-BUbbGs7l.es.js";
|
|
7
|
+
import { c as d, d as k } from "./useDateFormatter-9juUpmrj.es.js";
|
|
8
8
|
import { useContext as u } from "react";
|
|
9
|
-
import { $ as x } from "./Button-
|
|
10
|
-
import { e as V, c as M } from "./utils-
|
|
9
|
+
import { $ as x } from "./Button-BjcDZ5eb.es.js";
|
|
10
|
+
import { e as V, c as M } from "./utils-B6pV5ewr.es.js";
|
|
11
11
|
import { $ } from "./Text-DOcU1ycg.es.js";
|
|
12
12
|
import { defineMessages as K, useIntl as W } from "react-intl";
|
|
13
13
|
import { $ as w } from "./context-DW7UvQ8z.es.js";
|
|
14
14
|
import { KeyboardArrowLeft as C, KeyboardArrowRight as v } from "@commercetools/nimbus-icons";
|
|
15
15
|
import { Flex as _ } from "@chakra-ui/react/flex";
|
|
16
16
|
import { S as y } from "./stack-CoNreM7B.es.js";
|
|
17
|
-
import { V as q } from "./visually-hidden-
|
|
18
|
-
import { I as h } from "./icon-button-
|
|
19
|
-
import { T as R } from "./text-
|
|
17
|
+
import { V as q } from "./visually-hidden-Dj5CT-u_.es.js";
|
|
18
|
+
import { I as h } from "./icon-button-CXRvSNxO.es.js";
|
|
19
|
+
import { T as R } from "./text-CIb_VDvO.es.js";
|
|
20
20
|
import { B as D } from "./box-DuBoAZvq.es.js";
|
|
21
21
|
const { withProvider: E, withContext: s } = /* @__PURE__ */ A({
|
|
22
22
|
key: "rangeCalendar"
|
|
@@ -216,4 +216,4 @@ se.displayName = "RangeCalendar";
|
|
|
216
216
|
export {
|
|
217
217
|
se as R
|
|
218
218
|
};
|
|
219
|
-
//# sourceMappingURL=range-calendar-
|
|
219
|
+
//# sourceMappingURL=range-calendar-BybIyx-9.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-calendar-BybIyx-9.es.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/range-calendar.i18n.ts","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n RangeCalendarRootSlotProps,\n RangeCalendarHeaderSlotProps,\n RangeCalendarGridsSlotProps,\n RangeCalendarMonthTitleSlotProps,\n RangeCalendarGridSlotProps,\n RangeCalendarGridHeaderSlotProps,\n RangeCalendarHeaderCellSlotProps,\n RangeCalendarGridBodySlotProps,\n RangeCalendarCellSlotProps,\n} from \"./range-calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport const RangeCalendarRootSlot: SlotComponent<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n> = withProvider<HTMLDivElement, RangeCalendarRootSlotProps>(\"div\", \"root\");\n\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.RangeCalendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.RangeCalendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.RangeCalendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.RangeCalendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\n },\n});\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../range-calendar.i18n\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\n/**\n * RangeCalendarHeader - Header component for the RangeCalendar\n *\n * Displays navigation controls for month and year selection with proper\n * internationalization and accessibility support.\n */\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\n/**\n * RangeCalendarGrids - Grid container component for the RangeCalendar\n *\n * Renders calendar grids for one or more months with proper date cells,\n * weekday headers, and internationalization support.\n */\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport {\n RangeCalendarCustomContext,\n RangeCalendarHeader,\n RangeCalendarGrids,\n} from \"./components\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * RangeCalendar\n * ============================================================\n * Calendar component that displays a grid of days in one or more months\n * and allows users to select a range of dates. Built with React Aria\n * Components for accessibility and WCAG 2.1 AA compliance.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/rangecalendar}\n *\n * @supportsStylePropsx\n */\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n\nRangeCalendar.displayName = \"RangeCalendar\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","messages","defineMessages","RangeCalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","RangeCalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","RangeCalendarHeader","showRangeLabel","useSlottedContext","RangeCalendarContext","jsxs","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Box","RangeCalendarGrids","context","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAyD,OAAO,MAAM,GAE7DI,IAA0B,gBAAAH,EAGrC,OAAO,QAAQ,GAEJI,IAAyB,gBAAAJ,EAGpC,OAAO,OAAO,GAEHK,IAA8B,gBAAAL,EAGzC,OAAO,YAAY,GAERM,IAAwB,gBAAAN,EAGnC,SAAS,MAAM,GAEJO,IAA8B,gBAAAP,EAGzC,SAAS,YAAY,GAEVQ,KAA8B,gBAAAR,EAGzC,MAAM,YAAY,GAEPS,KAA4B,gBAAAT,EAGvC,SAAS,UAAU,GAERU,KAAwB,gBAAAV,EAGnC,MAAM,UAAU,GC3DLW,IAAW,gBAAAC,EAAe;AAAA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6B,GAAA,EAAsB,UAAAD,EAAA,CAAI,GAC7B,GAEJ,EAAA,CACF;AAAA,8BACCnD,IAAA,EAA0B,SAAO,IAChC,UAAA,gBAAAuB,EAAC8B,GAAA,EACE,WAACC,MAAS;AACT,oBAAMC,IAAUD,EAAK,QAAQZ,CAAS,MAAM;AAC5C,qBACE,gBAAAnB,EAACtB,MAAsB,SAAO,IAAC,cAAYsD,GACzC,UAAA,gBAAAhC,EAACiC,GAAA,EAAe,MAAAF,EAAA,CAAY,EAAA,CAC9B;AAAA,YAEJ,GACF,EAAA,CACF;AAAA,UAAA,EAAA,CACF,EAAA,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,MAhCKN;AAAA,IAAA;AAAA,EAmCX,CAAC,EAAA,CACH;AAEJ,GClEaS,KAAgB,CAACC,MAAyC;AACrE,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAyB,GACtD,CAACC,GAAaC,CAAc,IAAIJ,EAAO,kBAAkBD,CAAK,GAC9D,CAACM,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAAxC,EAAC9B,GAAA,EAAuB,GAAGqE,GAAc,GAAGE,GAAY,SAAO,IAC7D,UAAA,gBAAAzC,EAAC4C,GAAA,EAAiB,GAAGF,GACnB,4BAAC7D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACE,IAAA,EAAoB;AAAA,sBACpBc,IAAA,CAAA,CAAmB;AAAA,EAAA,EAAA,CACtB,GACF,GACF;AAEJ;AAEAkB,GAAc,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("./Heading-
|
|
2
|
-
//# sourceMappingURL=range-calendar-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("./Heading-UZcOiBkN.cjs.js"),M=require("@chakra-ui/react"),D=require("./index-CVXB9mwf.cjs.js"),I=require("@chakra-ui/react/styled-system"),T=require("./extract-style-props-B4hqila-.cjs.js"),c=require("./useDateFormatter-Bq98mt4A.cjs.js"),$=require("react"),C=require("./Button-DLCecw8f.cjs.js"),p=require("./utils-DVb3jcp5.cjs.js"),y=require("./Text-BWSfeB9p.cjs.js"),R=require("react-intl"),S=require("./context-CyT9C4U4.cjs.js"),u=require("@commercetools/nimbus-icons"),B=require("@chakra-ui/react/flex"),j=require("./stack-CIN13EDn.cjs.js"),N=require("./visually-hidden-BjtXUoFK.cjs.js"),h=require("./icon-button-CeB8_Yyr.cjs.js"),v=require("./text-BtRhIklG.cjs.js"),P=require("./box-CWni3A32.cjs.js"),{withProvider:H,withContext:i}=M.createSlotRecipeContext({key:"rangeCalendar"}),A=H("div","root"),F=i("div","header"),G=i("div","grids"),L=i("div","monthTitle"),Y=i("table","grid"),k=i("thead","gridHeader"),z=i("th","headerCell"),K=i("tbody","gridBody"),V=i("td","bodyCell"),b=R.defineMessages({nextMonth:{id:"Nimbus.RangeCalendar.nextMonth",description:"aria-label for next month navigation button",defaultMessage:"Next month"},previousMonth:{id:"Nimbus.RangeCalendar.previousMonth",description:"aria-label for previous month navigation button",defaultMessage:"Previous month"},nextYear:{id:"Nimbus.RangeCalendar.nextYear",description:"aria-label for next year navigation button",defaultMessage:"Next year"},previousYear:{id:"Nimbus.RangeCalendar.previousYear",description:"aria-label for previous year navigation button",defaultMessage:"Previous year"}}),W=({children:d})=>{const n=R.useIntl(),{locale:t}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=$.useContext(C.$d2b4bc8c273e7be6$export$24d547caef80ccd1),s=$.useContext(y.$514c0188e459b4c0$export$9afb8bc826b033ea),a=$.useContext(r.$dfd62f934fc76fed$export$5e0fc348c00f87a0),m={"next-month":{onPress:()=>a.focusNextSection(),"aria-label":n.formatMessage(b.nextMonth)},"previous-month":{onPress:()=>a.focusPreviousSection(),"aria-label":n.formatMessage(b.previousMonth)},"next-year":{onPress:()=>a.focusNextSection(!0),"aria-label":n.formatMessage(b.nextYear)},"previous-year":{onPress:()=>a.focusPreviousSection(!0),"aria-label":n.formatMessage(b.previousYear)}},f=new Intl.DateTimeFormat(t,{month:"long"}).format(a.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),g=[new Intl.DateTimeFormat(t,{month:"long"}).format(a.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(t,{month:"long"}).format(a.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),x=new Intl.DateTimeFormat(t,{year:"numeric"}).format(a.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l={month:{children:f},monthRange:{children:g},year:{children:x}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...o,slots:{...o&&typeof o=="object"&&"slots"in o?o.slots:{},...m}}],[y.$514c0188e459b4c0$export$9afb8bc826b033ea,{...s,slots:{...s&&typeof s=="object"&&"slots"in s?s.slots:{},...l}}]],children:d})},_=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(r.$dfd62f934fc76fed$export$233dd9682e1ad64b)?.visibleDuration?.months||1)>1;return e.jsx(F,{children:e.jsxs(B.Flex,{children:[e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx(N.VisuallyHidden,{children:e.jsx(r.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(v.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(P.Box,{flexGrow:"1"}),e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(v.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},E=()=>{const{locale:d}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(r.$dfd62f934fc76fed$export$233dd9682e1ad64b),t=$.useContext(r.$dfd62f934fc76fed$export$5e0fc348c00f87a0),o=n?.visibleDuration?.months||1,s=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),a=o>1;return e.jsx(G,{children:Array.from({length:o},(m,f)=>{const g=t.visibleRange.start.add({months:f}),x=new Intl.DateTimeFormat(d,{month:"long"}).format(g.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(P.Box,{width:o==1?"full":"auto",children:[a&&e.jsx(L,{children:x}),e.jsx(Y,{asChild:!0,children:e.jsxs(r.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:f},weekdayStyle:"short",children:[e.jsx(k,{asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:l=>e.jsx(z,{asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:l})})})}),e.jsx(K,{asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:l=>{const w=l.compare(s)===0;return e.jsx(V,{asChild:!0,"data-today":w,children:e.jsx(r.$dfd62f934fc76fed$export$5d847498420df57b,{date:l})})}})})]})})]},x)})})},q=d=>{const n=I.useRecipe({recipe:D.rangeCalendarSlotRecipe}),[t,o]=n.splitVariantProps(d),[s,a]=T.extractStyleProps(o);return e.jsx(A,{...t,...s,asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$a4f5c8b89d277a8d,{...a,children:e.jsxs(W,{children:[e.jsx(_,{}),e.jsx(E,{})]})})})};q.displayName="RangeCalendar";exports.RangeCalendar=q;
|
|
2
|
+
//# sourceMappingURL=range-calendar-DFs8cfYP.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-calendar-DFs8cfYP.cjs.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/range-calendar.i18n.ts","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n RangeCalendarRootSlotProps,\n RangeCalendarHeaderSlotProps,\n RangeCalendarGridsSlotProps,\n RangeCalendarMonthTitleSlotProps,\n RangeCalendarGridSlotProps,\n RangeCalendarGridHeaderSlotProps,\n RangeCalendarHeaderCellSlotProps,\n RangeCalendarGridBodySlotProps,\n RangeCalendarCellSlotProps,\n} from \"./range-calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport const RangeCalendarRootSlot: SlotComponent<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n> = withProvider<HTMLDivElement, RangeCalendarRootSlotProps>(\"div\", \"root\");\n\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.RangeCalendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.RangeCalendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.RangeCalendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.RangeCalendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\n },\n});\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../range-calendar.i18n\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\n/**\n * RangeCalendarHeader - Header component for the RangeCalendar\n *\n * Displays navigation controls for month and year selection with proper\n * internationalization and accessibility support.\n */\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\n/**\n * RangeCalendarGrids - Grid container component for the RangeCalendar\n *\n * Renders calendar grids for one or more months with proper date cells,\n * weekday headers, and internationalization support.\n */\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport {\n RangeCalendarCustomContext,\n RangeCalendarHeader,\n RangeCalendarGrids,\n} from \"./components\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * RangeCalendar\n * ============================================================\n * Calendar component that displays a grid of days in one or more months\n * and allows users to select a range of dates. Built with React Aria\n * Components for accessibility and WCAG 2.1 AA compliance.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/rangecalendar}\n *\n * @supportsStylePropsx\n */\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n\nRangeCalendar.displayName = \"RangeCalendar\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","messages","defineMessages","RangeCalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","RangeCalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","RangeCalendarHeader","showRangeLabel","useSlottedContext","RangeCalendarContext","jsxs","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Box","RangeCalendarGrids","context","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":"8vBAcM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,eACP,CAAC,EAEYC,EAGTH,EAAyD,MAAO,MAAM,EAE7DI,EAA0BH,EAGrC,MAAO,QAAQ,EAEJI,EAAyBJ,EAGpC,MAAO,OAAO,EAEHK,EAA8BL,EAGzC,MAAO,YAAY,EAERM,EAAwBN,EAGnC,QAAS,MAAM,EAEJO,EAA8BP,EAGzC,QAAS,YAAY,EAEVQ,EAA8BR,EAGzC,KAAM,YAAY,EAEPS,EAA4BT,EAGvC,QAAS,UAAU,EAERU,EAAwBV,EAGnC,KAAM,UAAU,EC3DLW,EAAWC,EAAAA,eAAe,CACrC,UAAW,CACT,GAAI,iCACJ,YAAa,8CACb,eAAgB,YAAA,EAElB,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CAAiB,GAAGF,EACnB,gBAAC7D,EAAA,CACC,SAAA,CAAAmB,EAAAA,IAACE,EAAA,EAAoB,QACpBc,EAAA,CAAA,CAAmB,CAAA,CAAA,CACtB,EACF,EACF,CAEJ,EAEAkB,EAAc,YAAc"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),f=require("react"),te=require("@chakra-ui/react"),we=require("./extract-style-props-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),f=require("react"),te=require("@chakra-ui/react"),we=require("./extract-style-props-B4hqila-.cjs.js"),Ee=require("./index-CVXB9mwf.cjs.js"),c=require("slate"),I=require("slate-react"),Ie=require("slate-history"),Ce=require("./useObjectRef-4v2MxSjQ.cjs.js"),re=require("react-intl"),$=require("./icon-toggle-button-C4Tnlt4t.cjs.js"),ne=require("./group-Cjq5lNQD.cjs.js"),w=require("@commercetools/nimbus-icons"),E=require("./menu-Bb7wAuM8.cjs.js"),b=require("./tooltip-Bv-QlJ1O.cjs.js"),Z=require("./icon-button-CeB8_Yyr.cjs.js"),O=require("./box-CWni3A32.cjs.js"),A=require("./text-BtRhIklG.cjs.js"),ve=require("./toolbar-D4fLFiSb.cjs.js"),oe=require("./separator-u_4por07.cjs.js"),ie=require("./toggle-button-group-Lfn3zYmC.cjs.js"),V=require("./visually-hidden-BjtXUoFK.cjs.js");function se(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const{withProvider:Ne,withContext:ge}=te.createSlotRecipeContext({key:"richTextInput"}),Ae=Ne("div","root"),De=ge("div","toolbar"),Fe=ge("div","editable"),me=t=>f.useCallback(e=>()=>{const{selection:r}=t;e(),r&&!t.selection&&c.Transforms.select(t,r),I.ReactEditor.isFocused(t)||I.ReactEditor.focus(t)},[t]),ae={"mod+b":"bold","mod+i":"italic","mod+u":"underline","mod+`":"code"},U={placeholder:"Start typing...",isDisabled:!1,isReadOnly:!1,autoFocus:!1},le={blockquote:"block-quote",p:"paragraph",pre:"code",h1:"heading-one",h2:"heading-two",h3:"heading-three",h4:"heading-four",h5:"heading-five",ul:"bulleted-list",ol:"numbered-list",li:"list-item",a:"link"},ce={strong:"bold",b:"bold",em:"italic",i:"italic",u:"underline",code:"code",sup:"superscript",sub:"subscript",del:"strikethrough",s:"strikethrough"},W={STRIKETHROUGH:"strikethrough",CODE:"code",SUPERSCRIPT:"superscript",SUBSCRIPT:"subscript"},He=[W.STRIKETHROUGH,W.CODE],Le=[W.SUPERSCRIPT,W.SUBSCRIPT],u=re.defineMessages({textFormatting:{id:"Nimbus.RichTextInput.textFormatting",description:"aria-label for the text formatting toolbar",defaultMessage:"Text formatting"},textStyleMenu:{id:"Nimbus.RichTextInput.textStyleMenu",description:"aria-label for the text style menu trigger button",defaultMessage:"Text style menu"},textStyle:{id:"Nimbus.RichTextInput.textStyle",description:"tooltip text for the text style menu",defaultMessage:"Text style"},bold:{id:"Nimbus.RichTextInput.bold",description:"aria-label and tooltip for the bold formatting button",defaultMessage:"Bold"},italic:{id:"Nimbus.RichTextInput.italic",description:"aria-label and tooltip for the italic formatting button",defaultMessage:"Italic"},underline:{id:"Nimbus.RichTextInput.underline",description:"aria-label and tooltip for the underline formatting button",defaultMessage:"Underline"},listFormatting:{id:"Nimbus.RichTextInput.listFormatting",description:"aria-label for the list formatting toggle group",defaultMessage:"List formatting"},bulletedList:{id:"Nimbus.RichTextInput.bulletedList",description:"aria-label for the bulleted list button",defaultMessage:"Bulleted list"},numberedList:{id:"Nimbus.RichTextInput.numberedList",description:"aria-label for the numbered list button",defaultMessage:"Numbered list"},undo:{id:"Nimbus.RichTextInput.undo",description:"aria-label and tooltip for the undo button",defaultMessage:"Undo"},redo:{id:"Nimbus.RichTextInput.redo",description:"aria-label and tooltip for the redo button",defaultMessage:"Redo"},moreFormattingOptions:{id:"Nimbus.RichTextInput.moreFormattingOptions",description:"aria-label for the more formatting options menu button",defaultMessage:"More formatting options"},moreStyles:{id:"Nimbus.RichTextInput.moreStyles",description:"tooltip text for the more formatting options menu",defaultMessage:"More styles"},strikethrough:{id:"Nimbus.RichTextInput.strikethrough",description:"label for the strikethrough menu item",defaultMessage:"Strikethrough"},code:{id:"Nimbus.RichTextInput.code",description:"label for the code formatting menu item",defaultMessage:"Code"},superscript:{id:"Nimbus.RichTextInput.superscript",description:"label for the superscript formatting menu item",defaultMessage:"Superscript"},subscript:{id:"Nimbus.RichTextInput.subscript",description:"label for the subscript formatting menu item",defaultMessage:"Subscript"},paragraph:{id:"Nimbus.RichTextInput.paragraph",description:"label for paragraph text style",defaultMessage:"Paragraph"},headingOne:{id:"Nimbus.RichTextInput.headingOne",description:"label for heading 1 text style",defaultMessage:"Heading 1"},headingTwo:{id:"Nimbus.RichTextInput.headingTwo",description:"label for heading 2 text style",defaultMessage:"Heading 2"},headingThree:{id:"Nimbus.RichTextInput.headingThree",description:"label for heading 3 text style",defaultMessage:"Heading 3"},headingFour:{id:"Nimbus.RichTextInput.headingFour",description:"label for heading 4 text style",defaultMessage:"Heading 4"},headingFive:{id:"Nimbus.RichTextInput.headingFive",description:"label for heading 5 text style",defaultMessage:"Heading 5"},quote:{id:"Nimbus.RichTextInput.quote",description:"label for block quote text style",defaultMessage:"Quote"}}),Ke=t=>[{id:"paragraph",label:t.formatMessage(u.paragraph),props:{textStyle:"md",fontWeight:"500"}},{id:"heading-one",label:t.formatMessage(u.headingOne),props:{textStyle:"2xl",fontWeight:"500"}},{id:"heading-two",label:t.formatMessage(u.headingTwo),props:{textStyle:"xl",fontWeight:"500"}},{id:"heading-three",label:t.formatMessage(u.headingThree),props:{textStyle:"lg",fontWeight:"500"}},{id:"heading-four",label:t.formatMessage(u.headingFour),props:{textStyle:"md",fontWeight:"500"}},{id:"heading-five",label:t.formatMessage(u.headingFive),props:{textStyle:"xs",fontWeight:"500"}},{id:"block-quote",label:t.formatMessage(u.quote),props:{textStyle:"md",fontWeight:"400"}}],qe=["heading-one","heading-two","heading-three","heading-four","heading-five","block-quote"];var Y,ue;function Oe(){if(ue)return Y;ue=1;var t=/["'&<>]/;Y=e;function e(r){var o=""+r,n=t.exec(o);if(!n)return o;var l,d="",p=0,h=0;for(p=n.index;p<o.length;p++){switch(o.charCodeAt(p)){case 34:l=""";break;case 38:l="&";break;case 39:l="'";break;case 60:l="<";break;case 62:l=">";break;default:continue}h!==p&&(d+=o.substring(h,p)),h=p+1,d+=l}return h!==p?d+o.substring(h,p):d}return Y}var Be=Oe();const G=se(Be),xe=`
|
|
2
2
|
`,H=()=>[{type:"paragraph",children:[{text:""}]}],Pe=t=>t.map(be).join(""),be=t=>{if(c.Text.isText(t)){const o=t;let n=G(o.text);return o.bold&&(n=`<strong>${n}</strong>`),o.code&&(n=`<code>${n}</code>`),o.italic&&(n=`<em>${n}</em>`),o.underline&&(n=`<u>${n}</u>`),o.superscript&&(n=`<sup>${n}</sup>`),o.subscript&&(n=`<sub>${n}</sub>`),o.strikethrough&&(n=`<del>${n}</del>`),n=n.replace(new RegExp(xe,"g"),"<br>"),n}const e=t.children.map(be).join(""),r=t;switch(r.type){case"block-quote":return`<blockquote>${e}</blockquote>`;case"paragraph":return`<p>${e}</p>`;case"code":return`<pre><code>${e}</code></pre>`;case"bulleted-list":return`<ul>${e}</ul>`;case"numbered-list":return`<ol>${e}</ol>`;case"list-item":return`<li>${e}</li>`;case"heading-one":return`<h1>${e}</h1>`;case"heading-two":return`<h2>${e}</h2>`;case"heading-three":return`<h3>${e}</h3>`;case"heading-four":return`<h4>${e}</h4>`;case"heading-five":return`<h5>${e}</h5>`;case"link":{let o="";if(r.url){const l=Ve(r.url);o=` href="${G(l)}"`}let n="";if(r.htmlAttributes&&typeof r.htmlAttributes=="object")for(const[l,d]of Object.entries(r.htmlAttributes))l.toLowerCase().startsWith("on")||(n+=` ${G(l)}="${G(String(d))}"`);return`<a${o}${n}>${e}</a>`}default:return e}},ee=t=>{if(!t||t.trim()==="")return H();try{if(t.includes("<p>")||t.includes("<h")||t.includes("<div>")||t.includes("<blockquote>")||t.includes("<ul>")||t.includes("<ol>")){const r=new DOMParser().parseFromString(t,"text/html").body,o=Array.from(r.childNodes).map(ye).filter(Boolean);return Me(o)}else return[{type:"paragraph",children:[{text:t}]}]}catch(e){return console.warn("Failed to parse HTML:",e),H()}},ye=t=>{if(t.nodeType===Node.TEXT_NODE)return(t.textContent||"").replace(/<br\s*\/?>/gi,xe);if(t.nodeType!==Node.ELEMENT_NODE)return null;const e=t,r=e.tagName.toLowerCase(),o=Array.from(e.childNodes).map(ye).filter(Boolean);if(r in le){const l=le[r],d={type:l,children:[]};if(l==="link"){const p=e.getAttribute("href");p&&(d.url=p);const h={};Array.from(e.attributes).forEach(m=>{m.name!=="href"&&!m.name.toLowerCase().startsWith("on")&&(h[m.name]=m.value)}),Object.keys(h).length>0&&(d.htmlAttributes=h)}return d.children=$e(o),d}if(r in ce){const l=ce[r];return{text:Q(o),[l]:!0}}return r==="span"?{text:Q(o)}:{text:Q(o)}},$e=t=>{const e=[];for(const r of t)typeof r=="string"?r.trim()&&e.push({text:r}):(r&&c.Text.isText(r)||r&&c.Element.isElement(r))&&e.push(r);return e.length===0&&e.push({text:""}),e},Te=t=>t.children.map(e=>c.Text.isText(e)?e.text:c.Element.isElement(e)?Te(e):"").join(""),Q=t=>t.filter(Boolean).map(e=>typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?e.text:e&&typeof e=="object"&&"children"in e?Te(e):String(e||"")).join(""),Ve=t=>{const e=String(t).trim().toLowerCase();return e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:")?"#":String(t)},Me=t=>!Array.isArray(t)||t.length===0?H():t.map(e=>c.Element.isElement(e)?!e.children||e.children.length===0?{...e,children:[{text:""}]}:e:{type:"paragraph",children:[{text:String(e)}]}),de=t=>{try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}},pe=["bulleted-list","numbered-list"],_e=["bold","code","italic","underline","superscript","subscript","strikethrough"],_=t=>_e.includes(t),ze=(t,e)=>_(e)?t[e]===!0:!1,D=(t,e)=>{const{selection:r}=t;if(!r||c.Range.isCollapsed(r)){const o=c.Editor.marks(t);if(o&&_(e))return o[e]===!0;if(!r&&t.children.length>0){const n=t.children[0];if(n.children&&n.children.length>0){const l=n.children[0];if(c.Text.isText(l)&&_(e))return l[e]===!0}}return!1}try{const o=Array.from(c.Editor.nodes(t,{at:r,match:n=>c.Text.isText(n)}));if(o.length===0){const n=c.Editor.marks(t);return!n||!_(e)?!1:n[e]===!0}return o.every(([n])=>ze(n,e))}catch{const o=c.Editor.marks(t);return!o||!_(e)?!1:o[e]===!0}},q=(t,e)=>{const{selection:r}=t;if(r){const[o]=Array.from(c.Editor.nodes(t,{at:c.Editor.unhangRange(t,r),match:n=>!c.Editor.isEditor(n)&&c.Element.isElement(n)&&n.type===e}));return!!o}return t.children.length>0?t.children[0].type===e:!1},F=(t,e)=>{D(t,e)?c.Editor.removeMark(t,e):c.Editor.addMark(t,e,!0)},J=(t,e)=>{const r=q(t,e),o=pe.includes(e);c.Transforms.unwrapNodes(t,{match:l=>!c.Editor.isEditor(l)&&c.Element.isElement(l)&&pe.includes(l.type),split:!0});let n;if(r?n={type:"paragraph"}:o?n={type:"list-item"}:n={type:e},c.Transforms.setNodes(t,n),!r&&o){const l={type:e,children:[]};c.Transforms.wrapNodes(t,l)}},Ue=t=>{I.ReactEditor.focus(t)},Ge=(t,e)=>{const r=ee(e);c.Transforms.delete(t,{at:{anchor:c.Editor.start(t,[]),focus:c.Editor.end(t,[])}}),c.Transforms.insertNodes(t,r),c.Transforms.select(t,c.Editor.start(t,[]))},We=t=>{const{insertData:e,insertText:r,isInline:o}=t;return t.isInline=n=>n.type==="link"?!0:o(n),t.insertText=n=>{n&&de(n)?he(t,n):r(n)},t.insertData=n=>{const l=n.getData("text/plain");l&&de(l)?he(t,l):e(n)},t},Xe=t=>{c.Transforms.unwrapNodes(t,{match:e=>!c.Editor.isEditor(e)&&c.Element.isElement(e)&&e.type==="link"})},he=(t,e)=>{q(t,"link")&&Xe(t);const{selection:r}=t,o=r&&c.Range.isCollapsed(r),n={type:"link",url:e,children:o?[{text:e}]:[]};o?c.Transforms.insertNodes(t,n):(c.Transforms.wrapNodes(t,n,{split:!0}),c.Transforms.collapse(t,{edge:"end"}))},Ye=({attributes:t,children:e,element:r})=>{const o=r,n={textAlign:o.align};switch(o.type){case"block-quote":return s.jsx("blockquote",{style:n,...t,children:e});case"bulleted-list":return s.jsx("ul",{style:n,...t,children:e});case"heading-one":return s.jsx("h1",{style:n,...t,children:e});case"heading-two":return s.jsx("h2",{style:n,...t,children:e});case"heading-three":return s.jsx("h3",{style:n,...t,children:e});case"heading-four":return s.jsx("h4",{style:n,...t,children:e});case"heading-five":return s.jsx("h5",{style:n,...t,children:e});case"list-item":return s.jsx("li",{style:n,...t,children:e});case"numbered-list":return s.jsx("ol",{style:n,...t,children:e});case"link":return s.jsx("a",{...t,href:o.url,rel:"noopener noreferrer",style:n,children:e});default:return s.jsx("p",{style:n,...t,children:e})}},Qe=({attributes:t,children:e,leaf:r})=>{const o=r;return o.bold&&(e=s.jsx("strong",{children:e})),o.code&&(e=s.jsx("code",{children:e})),o.italic&&(e=s.jsx("em",{children:e})),o.underline&&(e=s.jsx("u",{children:e})),o.strikethrough&&(e=s.jsx("del",{children:e})),o.superscript&&(e=s.jsx("sup",{children:e})),o.subscript&&(e=s.jsx("sub",{children:e})),s.jsx("span",{...t,children:e})},Je={placeholderCharacter:`
|
|
3
3
|
`},Ze=({withPreservedSelection:t})=>{const e=I.useSlate(),r=f.useMemo(()=>{const d=[];return He.forEach(p=>{D(e,p)&&d.push(p)}),new Set(d)},[e.selection,e.children,c.Editor.marks(e)]),o=f.useMemo(()=>{const d=[];return Le.forEach(p=>{D(e,p)&&d.push(p)}),new Set(d)},[e.selection,e.children,c.Editor.marks(e)]),n=f.useMemo(()=>new Set([...Array.from(r),...Array.from(o)]),[r,o]),l=f.useCallback(d=>{if(d==="all")return;const p=Array.from(d),h=Array.from(n),m=p.filter(g=>!h.includes(g)),j=h.filter(g=>!p.includes(g));[...m,...j].forEach(g=>{g==="superscript"||g==="subscript"?t(()=>{const a=D(e,"superscript")?"superscript":D(e,"subscript")?"subscript":null;m.includes(g)&&a&&a!==g&&F(e,a),F(e,g)})():t(()=>F(e,g))()})},[e,n,t]);return{selectedKeys:r,selectedScriptKeys:o,allSelectedKeys:n,handleAllSelectionChange:l}},et=({isDisabled:t=!1})=>{const e=re.useIntl(),r=I.useSlate(),o=me(r),{allSelectedKeys:n,handleAllSelectionChange:l}=Ze({withPreservedSelection:o});return s.jsxs(E.Menu.Root,{selectionMode:"multiple",selectedKeys:n,onSelectionChange:l,children:[s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsx(E.Menu.Trigger,{asChild:!0,children:s.jsx(Z.IconButton,{size:"xs",variant:"ghost","aria-label":e.formatMessage(u.moreFormattingOptions),isDisabled:t,onMouseDown:d=>d.preventDefault(),children:s.jsx(w.MoreHoriz,{})})}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.moreStyles)})]}),s.jsxs(E.Menu.Content,{children:[s.jsx(E.Menu.Item,{id:"strikethrough",children:s.jsxs(O.Box,{slot:"label",display:"flex",alignItems:"center",gap:"200",children:[s.jsx(w.FormatStrikethrough,{}),s.jsx(A.Text,{textStyle:"sm",children:e.formatMessage(u.strikethrough)})]})}),s.jsx(E.Menu.Item,{id:"code",children:s.jsxs(O.Box,{slot:"label",display:"flex",alignItems:"center",gap:"200",children:[s.jsx(w.Code,{}),s.jsx(A.Text,{textStyle:"sm",children:e.formatMessage(u.code)})]})}),s.jsx(E.Menu.Item,{id:"superscript",children:s.jsxs(O.Box,{slot:"label",display:"flex",alignItems:"center",gap:"200",children:[s.jsx(A.Text,{children:"X²"}),s.jsx(A.Text,{textStyle:"sm",children:e.formatMessage(u.superscript)})]})}),s.jsx(E.Menu.Item,{id:"subscript",children:s.jsxs(O.Box,{slot:"label",display:"flex",alignItems:"center",gap:"200",children:[s.jsx(A.Text,{children:"X₂"}),s.jsx(A.Text,{textStyle:"sm",children:e.formatMessage(u.subscript)})]})})]})]})};var k={},fe;function tt(){if(fe)return k;fe=1,Object.defineProperty(k,"__esModule",{value:!0});for(var t=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),e={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:t?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},o={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},n=1;n<20;n++)o["f"+n]=111+n;function l(a,i,y){i&&!("byKey"in i)&&(y=i,i=null),Array.isArray(a)||(a=[a]);var T=a.map(function(N){return h(N,i)}),M=function(C){return T.some(function(v){return m(v,C)})},L=y==null?M:M(y);return L}function d(a,i){return l(a,i)}function p(a,i){return l(a,{byKey:!0},i)}function h(a,i){var y=i&&i.byKey,T={};a=a.replace("++","+add");var M=a.split("+"),L=M.length;for(var N in e)T[e[N]]=!1;var C=!0,v=!1,x=void 0;try{for(var B=M[Symbol.iterator](),z;!(C=(z=B.next()).done);C=!0){var R=z.value,X=R.endsWith("?")&&R.length>1;X&&(R=R.slice(0,-1));var P=g(R),S=e[P];if(R.length>1&&!S&&!r[R]&&!o[P])throw new TypeError('Unknown modifier: "'+R+'"');(L===1||!S)&&(y?T.key=P:T.which=j(R)),S&&(T[S]=X?null:!0)}}catch(K){v=!0,x=K}finally{try{!C&&B.return&&B.return()}finally{if(v)throw x}}return T}function m(a,i){for(var y in a){var T=a[y],M=void 0;if(T!=null&&(y==="key"&&i.key!=null?M=i.key.toLowerCase():y==="which"?M=T===91&&i.which===93?91:i.which:M=i[y],!(M==null&&T===!1)&&M!==T))return!1}return!0}function j(a){a=g(a);var i=o[a]||a.toUpperCase().charCodeAt(0);return i}function g(a){return a=a.toLowerCase(),a=r[a]||a,a}return k.default=l,k.isHotkey=l,k.isCodeHotkey=d,k.isKeyHotkey=p,k.parseHotkey=h,k.compareHotkey=m,k.toKeyCode=j,k.toKeyName=g,k}var rt=tt();const st=se(rt),nt=({editor:t})=>({handleKeyDown:f.useCallback(r=>{if((r.metaKey||r.ctrlKey)&&r.key==="z"){r.preventDefault(),r.shiftKey?t.redo():t.undo();return}for(const o in ae)if(st(o,r)){r.preventDefault();const n=ae[o];F(t,n);return}if(r.shiftKey&&r.key==="Enter"){r.preventDefault(),t.insertText(Je.placeholderCharacter);return}},[t])}),je=function({ref:e,value:r,onChange:o,onFocus:n,onBlur:l,placeholder:d=U.placeholder,isDisabled:p=U.isDisabled,isReadOnly:h=U.isReadOnly,autoFocus:m=U.autoFocus,toolbar:j}){const g=f.useRef(null),a=Ce.$df56164dff5785e2$export$4338b53315abf666(te.mergeRefs(g,e)),i=f.useMemo(()=>{const x=c.createEditor();return We(Ie.withHistory(I.withReact(x)))},[]),{handleKeyDown:y}=nt({editor:i}),T=f.useCallback(x=>{n&&n(x)},[n]),M=f.useCallback(x=>{l&&l(x)},[l]);f.useImperativeHandle(a,()=>({focus:()=>Ue(i),resetValue:x=>Ge(i,x)}),[i]);const L=f.useCallback(x=>s.jsx(Ye,{...x}),[]),N=f.useCallback(x=>s.jsx(Qe,{...x}),[]),C=H(),v=Array.isArray(r)&&r.length>0?r:C;return s.jsxs(I.Slate,{editor:i,value:v,onChange:o,children:[j&&s.jsx(De,{children:j}),s.jsx(Fe,{asChild:!0,children:s.jsx(I.Editable,{renderElement:L,renderLeaf:N,placeholder:d,autoFocus:m,readOnly:h||p,onKeyDown:y,onFocus:T,onBlur:M,"aria-label":"Rich text editor",role:"textbox","aria-multiline":"true"})})]})};je.displayName="RichTextEditor";const ot=({withPreservedSelection:t,textStyles:e})=>{const r=I.useSlate(),o=f.useMemo(()=>qe.find(a=>q(r,a))||"paragraph",[r.selection,r.children]),n=e.find(a=>a.id===o),l=n?.label||"",d=f.useCallback(a=>{t(()=>{J(r,a)})()},[r,t]),p=f.useCallback(a=>{t(()=>{const i=Array.from(a)[0],y=q(r,"bulleted-list")?"bulleted-list":q(r,"numbered-list")?"numbered-list":null;i?J(r,i):y&&J(r,y)})()},[r,t]),h=f.useMemo(()=>{const a=[];return D(r,"bold")&&a.push("bold"),D(r,"italic")&&a.push("italic"),D(r,"underline")&&a.push("underline"),new Set(a)},[r.selection,r.children,c.Editor.marks(r)]),m=f.useMemo(()=>{const a=[];return q(r,"bulleted-list")&&a.push("bulleted-list"),q(r,"numbered-list")&&a.push("numbered-list"),new Set(a)},[r.selection,r.children]),j=f.useMemo(()=>r.history&&r.history.undos.length>0,[r.selection,r.children]),g=f.useMemo(()=>r.history&&r.history.redos.length>0,[r.selection,r.children]);return{currentTextStyle:o,selectedTextStyle:n,selectedTextStyleLabel:l,handleTextStyleChange:d,handleListToggle:p,selectedFormatKeys:h,selectedListKeys:m,hasUndos:j,hasRedos:g}},Se=({isDisabled:t=!1})=>{const e=re.useIntl(),r=I.useSlate(),o=me(r),n=Ke(e),{currentTextStyle:l,selectedTextStyleLabel:d,handleTextStyleChange:p,handleListToggle:h,selectedFormatKeys:m,selectedListKeys:j,hasUndos:g,hasRedos:a}=ot({withPreservedSelection:o,textStyles:n});return s.jsxs(ve.Toolbar,{orientation:"horizontal","aria-label":e.formatMessage(u.textFormatting),width:"full",overflow:"hidden",size:"xs",children:[s.jsx(ne.Group,{children:s.jsxs(E.Menu.Root,{onAction:i=>p(String(i)),children:[s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsx(E.Menu.Trigger,{height:"800",width:"4000",bg:"primary.1",borderRadius:"200",_hover:{bg:"primary.2"},isDisabled:t,onMouseDown:i=>i.preventDefault(),"aria-label":e.formatMessage(u.textStyleMenu),children:s.jsxs(O.Box,{display:"flex",alignItems:"center",gap:"200",px:"200",children:[s.jsx(O.Box,{display:"flex",alignItems:"center",gap:"200",flexGrow:"1",children:s.jsx(A.Text,{my:"auto",textStyle:"sm",fontWeight:"500",children:d})}),s.jsx(w.KeyboardArrowDown,{})]})}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.textStyle)})]}),s.jsx(E.Menu.Content,{children:n.map(i=>s.jsx(E.Menu.Item,{id:i.id,...l===i.id&&{"data-state":"checked"},children:s.jsx(A.Text,{...i.props,children:i.label})},i.id))})]})}),s.jsx(oe.Separator,{orientation:"vertical"}),s.jsxs(ie.ToggleButtonGroup.Root,{selectionMode:"multiple",selectedKeys:m,isDisabled:t,children:[s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsxs($.IconToggleButton,{id:"bold",size:"xs",variant:"ghost","aria-label":e.formatMessage(u.bold),isDisabled:t,onMouseDown:i=>i.preventDefault(),onPress:o(()=>F(r,"bold")),children:[s.jsx(w.FormatBold,{}),s.jsx(V.VisuallyHidden,{children:e.formatMessage(u.bold)})]}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.bold)})]}),s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsxs($.IconToggleButton,{id:"italic",size:"xs",variant:"ghost","aria-label":e.formatMessage(u.italic),isDisabled:t,onMouseDown:i=>i.preventDefault(),onPress:o(()=>F(r,"italic")),children:[s.jsx(w.FormatItalic,{}),s.jsx(V.VisuallyHidden,{children:e.formatMessage(u.italic)})]}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.italic)})]}),s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsxs($.IconToggleButton,{id:"underline",size:"xs",variant:"ghost","aria-label":e.formatMessage(u.underline),isDisabled:t,onMouseDown:i=>i.preventDefault(),onPress:o(()=>F(r,"underline")),children:[s.jsx(w.FormatUnderlined,{}),s.jsx(V.VisuallyHidden,{children:e.formatMessage(u.underline)})]}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.underline)})]})]}),s.jsx(et,{isDisabled:t}),s.jsx(oe.Separator,{orientation:"vertical"}),s.jsxs(ie.ToggleButtonGroup.Root,{selectionMode:"single",selectedKeys:j,onSelectionChange:h,"aria-label":e.formatMessage(u.listFormatting),isDisabled:t,children:[s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsx($.IconToggleButton,{id:"bulleted-list",size:"xs",variant:"ghost","aria-label":e.formatMessage(u.bulletedList),isDisabled:t,onMouseDown:i=>i.preventDefault(),children:s.jsx(w.FormatListBulleted,{})}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.bulletedList)})]}),s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsx($.IconToggleButton,{id:"numbered-list",size:"xs",variant:"ghost","aria-label":e.formatMessage(u.numberedList),isDisabled:t,onMouseDown:i=>i.preventDefault(),children:s.jsx(w.FormatListNumbered,{})}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.numberedList)})]})]}),s.jsx(O.Box,{flexGrow:"1"}),s.jsxs(ne.Group,{children:[s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsxs(Z.IconButton,{size:"xs",variant:"ghost","aria-label":e.formatMessage(u.undo),isDisabled:!g||t,onPress:o(()=>r.undo()),onMouseDown:i=>i.preventDefault(),children:[s.jsx(w.Undo,{}),s.jsx(V.VisuallyHidden,{children:e.formatMessage(u.undo)})]}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.undo)})]}),s.jsxs(b.Tooltip.Root,{delay:0,closeDelay:0,children:[s.jsxs(Z.IconButton,{size:"xs",variant:"ghost","aria-label":e.formatMessage(u.redo),isDisabled:!a||t,onPress:o(()=>r.redo()),onMouseDown:i=>i.preventDefault(),children:[s.jsx(w.Redo,{}),s.jsx(V.VisuallyHidden,{children:e.formatMessage(u.redo)})]}),s.jsx(b.Tooltip.Content,{placement:"top",children:e.formatMessage(u.redo)})]})]})]})};Se.displayName="RichTextToolbar";const Re=t=>{const{ref:e,value:r,defaultValue:o,onChange:n,onFocus:l,onBlur:d,placeholder:p="",isDisabled:h=!1,isReadOnly:m=!1,isInvalid:j=!1,autoFocus:g=!1,...a}=t,i=te.useSlotRecipe({recipe:Ee.richTextInputRecipe}),[y,T]=i.splitVariantProps({...a}),[M,L]=we.extractStyleProps(T),N={"data-disabled":h?"true":void 0,"data-invalid":j?"true":void 0,"data-readonly":m?"true":void 0},[C,v]=f.useState(()=>{const S=r??o??"";try{return S?ee(S):H()}catch(K){return console.warn("Failed to parse initial HTML, using empty value:",K),H()}}),[x,B]=f.useState(()=>r??o??""),z=f.useRef(null);f.useEffect(()=>{if(r!==void 0&&r!==x){const S=r?ee(r):H();v(S),B(r)}},[r,x]);const R=f.useCallback(S=>{const K=Pe(S),ke=K!==x;v(S),B(K),ke&&n&&n(K)},[x,n]),P=Me(C);return s.jsx(Ae,{role:"group",...y,...M,...L,...N,ref:e,children:s.jsx(je,{ref:z,value:P,onChange:R,onFocus:l,onBlur:d,placeholder:p,isDisabled:h,isReadOnly:m,autoFocus:g,toolbar:m?null:s.jsx(Se,{isDisabled:h})})})};Re.displayName="RichTextInput";exports.RichTextInput=Re;exports.getDefaultExportFromCjs=se;
|
|
4
|
-
//# sourceMappingURL=rich-text-input-
|
|
4
|
+
//# sourceMappingURL=rich-text-input-CJuQruOT.cjs.js.map
|