@commercetools/nimbus 0.0.0-canary-20251204164506 → 0.0.0-canary-20251204203333
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-BjcDZ5eb.es.js → Button-CmpJG0ec.es.js} +7 -7
- package/dist/chunks/{Button-BjcDZ5eb.es.js.map → Button-CmpJG0ec.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js → CollectionBuilder-BqQjeKfi.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js.map → CollectionBuilder-BqQjeKfi.es.js.map} +1 -1
- package/dist/chunks/{DateField-C5JgBb30.es.js → DateField-Bpk0AwB2.es.js} +21 -21
- package/dist/chunks/{DateField-C5JgBb30.es.js.map → DateField-Bpk0AwB2.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-9m2POezC.es.js → DatePicker-CUW1A5A8.es.js} +17 -17
- package/dist/chunks/{DatePicker-9m2POezC.es.js.map → DatePicker-CUW1A5A8.es.js.map} +1 -1
- package/dist/chunks/{Dialog-DcnmO0xr.es.js → Dialog-BYVU-i0Y.es.js} +24 -24
- package/dist/chunks/{Dialog-DcnmO0xr.es.js.map → Dialog-BYVU-i0Y.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-CqEZq7sr.es.js → FocusScope-bj_mamFe.es.js} +36 -36
- package/dist/chunks/{FocusScope-CqEZq7sr.es.js.map → FocusScope-bj_mamFe.es.js.map} +1 -1
- package/dist/chunks/{Group-BQc9LuMT.es.js → Group-C9jsb9_m.es.js} +8 -8
- package/dist/chunks/{Group-BQc9LuMT.es.js.map → Group-C9jsb9_m.es.js.map} +1 -1
- package/dist/chunks/{Header-CliQVNVa.es.js → Header-CNoClAau.es.js} +5 -5
- package/dist/chunks/{Header-CliQVNVa.es.js.map → Header-CNoClAau.es.js.map} +1 -1
- package/dist/chunks/{Heading-D7Ut7eK3.es.js → Heading-D804NNml.es.js} +14 -14
- package/dist/chunks/{Heading-D7Ut7eK3.es.js.map → Heading-D804NNml.es.js.map} +1 -1
- package/dist/chunks/{Input-Cmg08oRP.es.js → Input-aKSXZBAh.es.js} +5 -5
- package/dist/chunks/{Input-Cmg08oRP.es.js.map → Input-aKSXZBAh.es.js.map} +1 -1
- package/dist/chunks/{Label-DIseLESi.es.js → Label-Bu5lTMzy.es.js} +2 -2
- package/dist/chunks/{Label-DIseLESi.es.js.map → Label-Bu5lTMzy.es.js.map} +1 -1
- package/dist/chunks/{ListBox-CcSs4yTw.es.js → ListBox-DYbGAoet.es.js} +15 -15
- package/dist/chunks/{ListBox-CcSs4yTw.es.js.map → ListBox-DYbGAoet.es.js.map} +1 -1
- package/dist/chunks/{Modal-3QPNDzpi.es.js → Modal-2TttSPy4.es.js} +7 -7
- package/dist/chunks/{Modal-3QPNDzpi.es.js.map → Modal-2TttSPy4.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js → OverlayArrow-qm-lnjhS.es.js} +2 -2
- package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js.map → OverlayArrow-qm-lnjhS.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js → ProgressBar-DogfCeuX.es.js} +5 -5
- package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js.map → ProgressBar-DogfCeuX.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-B0Cb1kHW.es.js → SelectionManager-CXicxYqF.es.js} +10 -10
- package/dist/chunks/{SelectionManager-B0Cb1kHW.es.js.map → SelectionManager-CXicxYqF.es.js.map} +1 -1
- package/dist/chunks/{Separator-DP89PKAS.es.js → Separator-WCa1iR4U.es.js} +4 -4
- package/dist/chunks/{Separator-DP89PKAS.es.js.map → Separator-WCa1iR4U.es.js.map} +1 -1
- package/dist/chunks/{TextArea-CXEdUjgW.es.js → TextArea-JHqAZ7HD.es.js} +5 -5
- package/dist/chunks/{TextArea-CXEdUjgW.es.js.map → TextArea-JHqAZ7HD.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js → ToggleButton-B-feHlsu.es.js} +7 -7
- package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js.map → ToggleButton-B-feHlsu.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js → VisuallyHidden-BIA5VRNP.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js.map → VisuallyHidden-BIA5VRNP.es.js.map} +1 -1
- package/dist/chunks/{accordion-qzbckNub.cjs.js → accordion-B978Ssd8.cjs.js} +2 -2
- package/dist/chunks/{accordion-qzbckNub.cjs.js.map → accordion-B978Ssd8.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-BacJkt5n.es.js → accordion-_4Vtr930.es.js} +2 -2
- package/dist/chunks/{accordion-BacJkt5n.es.js.map → accordion-_4Vtr930.es.js.map} +1 -1
- package/dist/chunks/accordion.content-Bd2PESBz.cjs.js +2 -0
- package/dist/chunks/{accordion.content-Cslx-S6p.cjs.js.map → accordion.content-Bd2PESBz.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-SFS_lHjk.es.js → accordion.content-YkB30Nl0.es.js} +24 -23
- package/dist/chunks/{accordion.content-SFS_lHjk.es.js.map → accordion.content-YkB30Nl0.es.js.map} +1 -1
- package/dist/chunks/{alert-D6ENEy8f.cjs.js → alert-55tm3vfU.cjs.js} +2 -2
- package/dist/chunks/{alert-D6ENEy8f.cjs.js.map → alert-55tm3vfU.cjs.js.map} +1 -1
- package/dist/chunks/{alert-CoJ8asOZ.es.js → alert-_J_dHFj_.es.js} +2 -2
- package/dist/chunks/{alert-CoJ8asOZ.es.js.map → alert-_J_dHFj_.es.js.map} +1 -1
- package/dist/chunks/badge-DUiqk6w9.es.js +17 -0
- package/dist/chunks/{badge-CgYpum7D.es.js.map → badge-DUiqk6w9.es.js.map} +1 -1
- package/dist/chunks/{button-CxL9YuuF.cjs.js → button-CvWz8q1N.cjs.js} +2 -2
- package/dist/chunks/{button-CxL9YuuF.cjs.js.map → button-CvWz8q1N.cjs.js.map} +1 -1
- package/dist/chunks/{button-DZew_Si4.es.js → button-DTxnOPiN.es.js} +6 -6
- package/dist/chunks/{button-DZew_Si4.es.js.map → button-DTxnOPiN.es.js.map} +1 -1
- package/dist/chunks/{calendar-CDVjB0zo.es.js → calendar-C0WVsTa4.es.js} +9 -9
- package/dist/chunks/{calendar-CDVjB0zo.es.js.map → calendar-C0WVsTa4.es.js.map} +1 -1
- package/dist/chunks/{calendar-Dx5LLOml.cjs.js → calendar-CMCE8As1.cjs.js} +2 -2
- package/dist/chunks/{calendar-Dx5LLOml.cjs.js.map → calendar-CMCE8As1.cjs.js.map} +1 -1
- package/dist/chunks/{card-DB6gUcAw.cjs.js → card-D9xReN37.cjs.js} +2 -2
- package/dist/chunks/{card-DB6gUcAw.cjs.js.map → card-D9xReN37.cjs.js.map} +1 -1
- package/dist/chunks/{card-ydiSozha.es.js → card-DSxEwCmQ.es.js} +2 -2
- package/dist/chunks/{card-ydiSozha.es.js.map → card-DSxEwCmQ.es.js.map} +1 -1
- package/dist/chunks/{checkbox-fwmjQ4Uk.cjs.js → checkbox-CdXKptM4.cjs.js} +2 -2
- package/dist/chunks/{checkbox-fwmjQ4Uk.cjs.js.map → checkbox-CdXKptM4.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-DuPKJsWQ.es.js → checkbox-DMpI_oaX.es.js} +10 -10
- package/dist/chunks/{checkbox-DuPKJsWQ.es.js.map → checkbox-DMpI_oaX.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BiF9lLAN.cjs.js → collapsible-motion-CA8uQuKZ.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-BiF9lLAN.cjs.js.map → collapsible-motion-CA8uQuKZ.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-B5YFRwO4.es.js → collapsible-motion-Dw8EugiR.es.js} +5 -5
- package/dist/chunks/{collapsible-motion-B5YFRwO4.es.js.map → collapsible-motion-Dw8EugiR.es.js.map} +1 -1
- package/dist/chunks/{combobox-BobLAXh8.es.js → combobox-BMpAKWKs.es.js} +74 -74
- package/dist/chunks/{combobox-BobLAXh8.es.js.map → combobox-BMpAKWKs.es.js.map} +1 -1
- package/dist/chunks/{combobox-CEyLEi9S.cjs.js → combobox-DPZmJZJF.cjs.js} +2 -2
- package/dist/chunks/{combobox-CEyLEi9S.cjs.js.map → combobox-DPZmJZJF.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-DpRmr71N.cjs.js → data-table-B5tlvmbJ.cjs.js} +2 -2
- package/dist/chunks/{data-table-DpRmr71N.cjs.js.map → data-table-B5tlvmbJ.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-uvxFiIVK.es.js → data-table-Ch0tFro2.es.js} +37 -37
- package/dist/chunks/{data-table-uvxFiIVK.es.js.map → data-table-Ch0tFro2.es.js.map} +1 -1
- package/dist/chunks/{date-input-C_dX1XXD.es.js → date-input-COUAItnm.es.js} +4 -4
- package/dist/chunks/{date-input-C_dX1XXD.es.js.map → date-input-COUAItnm.es.js.map} +1 -1
- package/dist/chunks/{date-input-BDkIVUEJ.cjs.js → date-input-lsbLlxie.cjs.js} +2 -2
- package/dist/chunks/{date-input-BDkIVUEJ.cjs.js.map → date-input-lsbLlxie.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-Cq8qD5Ff.es.js → date-picker-B5ZR0GJ3.es.js} +14 -14
- package/dist/chunks/{date-picker-Cq8qD5Ff.es.js.map → date-picker-B5ZR0GJ3.es.js.map} +1 -1
- package/dist/chunks/{date-picker-DODeu1jH.cjs.js → date-picker-JA1Mh2WY.cjs.js} +2 -2
- package/dist/chunks/{date-picker-DODeu1jH.cjs.js.map → date-picker-JA1Mh2WY.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-Bf14iS4A.es.js → date-range-picker-CMhOBPtp.es.js} +14 -14
- package/dist/chunks/{date-range-picker-Bf14iS4A.es.js.map → date-range-picker-CMhOBPtp.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-CqG7wwZc.es.js → date-range-picker-field-DaoP69E2.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-CqG7wwZc.es.js.map → date-range-picker-field-DaoP69E2.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-Bvvmu7oL.cjs.js → date-range-picker-field-UFUo2JuI.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-Bvvmu7oL.cjs.js.map → date-range-picker-field-UFUo2JuI.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-D1gUgq_6.cjs.js → date-range-picker-yzo8osGE.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-D1gUgq_6.cjs.js.map → date-range-picker-yzo8osGE.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-CS8h46ov.cjs.js → dialog-DNl_apyv.cjs.js} +2 -2
- package/dist/chunks/{dialog-CS8h46ov.cjs.js.map → dialog-DNl_apyv.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-DUZOjwNj.es.js → dialog-cV8_ifAL.es.js} +7 -7
- package/dist/chunks/{dialog-DUZOjwNj.es.js.map → dialog-cV8_ifAL.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-CUcHb55R.cjs.js → draggable-list-4w8RgF1w.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-CUcHb55R.cjs.js.map → draggable-list-4w8RgF1w.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-LtLBvlhK.es.js → draggable-list-B6YVD64W.es.js} +22 -22
- package/dist/chunks/{draggable-list-LtLBvlhK.es.js.map → draggable-list-B6YVD64W.es.js.map} +1 -1
- package/dist/chunks/{drawer-DZt4nA9C.cjs.js → drawer-BcgvPugV.cjs.js} +2 -2
- package/dist/chunks/{drawer-DZt4nA9C.cjs.js.map → drawer-BcgvPugV.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-YCoDb7TU.es.js → drawer-ByFci-Lp.es.js} +8 -8
- package/dist/chunks/{drawer-YCoDb7TU.es.js.map → drawer-ByFci-Lp.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CIoUvqFb.es.js → extract-style-props-CJjpdqym.es.js} +2 -2
- package/dist/chunks/{extract-style-props-CIoUvqFb.es.js.map → extract-style-props-CJjpdqym.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DGdckd6P.cjs.js → extract-style-props-DL4zPQSN.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-DGdckd6P.cjs.js.map → extract-style-props-DL4zPQSN.cjs.js.map} +1 -1
- package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js → focusSafely-RvsgqoUt.es.js} +3 -3
- package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js.map → focusSafely-RvsgqoUt.es.js.map} +1 -1
- package/dist/chunks/{form-field-CozKmli4.cjs.js → form-field-D36wdkEj.cjs.js} +2 -2
- package/dist/chunks/{form-field-CozKmli4.cjs.js.map → form-field-D36wdkEj.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-Df4_JmSU.es.js → form-field-Po_Y_5wQ.es.js} +4 -4
- package/dist/chunks/{form-field-Df4_JmSU.es.js.map → form-field-Po_Y_5wQ.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-MZgwmCKW.es.js → getScrollParent-DlqhSzBC.es.js} +2 -2
- package/dist/chunks/{getScrollParent-MZgwmCKW.es.js.map → getScrollParent-DlqhSzBC.es.js.map} +1 -1
- package/dist/chunks/{group-CCBgdph2.es.js → group-jGsHh1w7.es.js} +2 -2
- package/dist/chunks/{group-CCBgdph2.es.js.map → group-jGsHh1w7.es.js.map} +1 -1
- package/dist/chunks/{heading-nfjoR4vL.es.js → heading-CwsT9zp_.es.js} +2 -2
- package/dist/chunks/{heading-nfjoR4vL.es.js.map → heading-CwsT9zp_.es.js.map} +1 -1
- package/dist/chunks/{icon-button-BPzrehNJ.cjs.js → icon-button-ClTyaPhB.cjs.js} +2 -2
- package/dist/chunks/{icon-button-BPzrehNJ.cjs.js.map → icon-button-ClTyaPhB.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-hZxuTfRy.es.js → icon-button-Cnas4bnJ.es.js} +2 -2
- package/dist/chunks/{icon-button-hZxuTfRy.es.js.map → icon-button-Cnas4bnJ.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BtyMh4Ys.es.js → icon-toggle-button-3hAIS1Mt.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BtyMh4Ys.es.js.map → icon-toggle-button-3hAIS1Mt.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DzoifEyi.cjs.js → icon-toggle-button-B8ycCaqk.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DzoifEyi.cjs.js.map → icon-toggle-button-B8ycCaqk.cjs.js.map} +1 -1
- package/dist/chunks/{index-CqOsUykV.es.js → index-CmfW40Im.es.js} +185 -185
- package/dist/chunks/index-CmfW40Im.es.js.map +1 -0
- package/dist/chunks/{index-DdyUbTzB.cjs.js → index-DIQn6o2R.cjs.js} +3 -3
- package/dist/chunks/index-DIQn6o2R.cjs.js.map +1 -0
- package/dist/chunks/{kbd-Bl5Ncm2d.es.js → kbd-B11Qoo4k.es.js} +2 -2
- package/dist/chunks/{kbd-Bl5Ncm2d.es.js.map → kbd-B11Qoo4k.es.js.map} +1 -1
- package/dist/chunks/{link-BMUyXcmC.es.js → link-Db65JZE6.es.js} +9 -9
- package/dist/chunks/{link-BMUyXcmC.es.js.map → link-Db65JZE6.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-DF6c3rBM.es.js → loading-spinner-FBgHlqXQ.es.js} +3 -3
- package/dist/chunks/{loading-spinner-DF6c3rBM.es.js.map → loading-spinner-FBgHlqXQ.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BTtMYX2e.es.js → localized-field-BqedmRuV.es.js} +25 -25
- package/dist/chunks/{localized-field-BTtMYX2e.es.js.map → localized-field-BqedmRuV.es.js.map} +1 -1
- package/dist/chunks/{localized-field-CKzOQS8a.cjs.js → localized-field-BudXks_7.cjs.js} +2 -2
- package/dist/chunks/{localized-field-CKzOQS8a.cjs.js.map → localized-field-BudXks_7.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js → make-element-focusable-DVfaQntJ.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js.map → make-element-focusable-DVfaQntJ.es.js.map} +1 -1
- package/dist/chunks/{menu-DbUVggzL.cjs.js → menu-DGuxJIC6.cjs.js} +2 -2
- package/dist/chunks/{menu-DbUVggzL.cjs.js.map → menu-DGuxJIC6.cjs.js.map} +1 -1
- package/dist/chunks/{menu-9gmr8hQj.es.js → menu-DMtIo54m.es.js} +6 -6
- package/dist/chunks/{menu-9gmr8hQj.es.js.map → menu-DMtIo54m.es.js.map} +1 -1
- package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js → mergeProps-D1jjFfMs.es.js} +6 -6
- package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js.map → mergeProps-D1jjFfMs.es.js.map} +1 -1
- package/dist/chunks/{money-input-BelTJgi2.cjs.js → money-input-B3fxVHDJ.cjs.js} +2 -2
- package/dist/chunks/{money-input-BelTJgi2.cjs.js.map → money-input-B3fxVHDJ.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-DiuaCRAq.es.js → money-input-BHveN9w0.es.js} +9 -9
- package/dist/chunks/{money-input-DiuaCRAq.es.js.map → money-input-BHveN9w0.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-B8gMfNW7.es.js → money-input-field-CsChyLci.es.js} +3 -3
- package/dist/chunks/{money-input-field-B8gMfNW7.es.js.map → money-input-field-CsChyLci.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-tgZ_nN7r.cjs.js → money-input-field-FVpMq6tJ.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-tgZ_nN7r.cjs.js.map → money-input-field-FVpMq6tJ.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DJeOCh8z.cjs.js → multiline-text-input-C5pMVuYM.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-DJeOCh8z.cjs.js.map → multiline-text-input-C5pMVuYM.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-fb-1IzTw.es.js → multiline-text-input-CTop15Kc.es.js} +5 -5
- package/dist/chunks/{multiline-text-input-fb-1IzTw.es.js.map → multiline-text-input-CTop15Kc.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-EiZALVr9.cjs.js → multiline-text-input-field-B3eQzuAg.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-EiZALVr9.cjs.js.map → multiline-text-input-field-B3eQzuAg.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-DIjx7INz.es.js → multiline-text-input-field-D_M3z9GG.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-DIjx7INz.es.js.map → multiline-text-input-field-D_M3z9GG.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-XoinDagw.es.js → nimbus-provider-BZuDgONW.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-XoinDagw.es.js.map → nimbus-provider-BZuDgONW.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-BZ1AjgyS.cjs.js → nimbus-provider-COP-MGlb.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-BZ1AjgyS.cjs.js.map → nimbus-provider-COP-MGlb.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-DKGtPqlr.es.js → number-input-CLoBlpiD.es.js} +14 -14
- package/dist/chunks/{number-input-DKGtPqlr.es.js.map → number-input-CLoBlpiD.es.js.map} +1 -1
- package/dist/chunks/{number-input-BY8SeNuT.cjs.js → number-input-Dj9jPceO.cjs.js} +2 -2
- package/dist/chunks/{number-input-BY8SeNuT.cjs.js.map → number-input-Dj9jPceO.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-DnIN5wjh.es.js → number-input-field-BKxrwzEz.es.js} +3 -3
- package/dist/chunks/{number-input-field-DnIN5wjh.es.js.map → number-input-field-BKxrwzEz.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-l6_xjbpB.cjs.js → number-input-field-DYJa53Un.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-l6_xjbpB.cjs.js.map → number-input-field-DYJa53Un.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-Cks7-saP.cjs.js → pagination-DNTHTYbV.cjs.js} +2 -2
- package/dist/chunks/{pagination-Cks7-saP.cjs.js.map → pagination-DNTHTYbV.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-DAPyY6Zk.es.js → pagination-WCa7N8As.es.js} +5 -5
- package/dist/chunks/{pagination-DAPyY6Zk.es.js.map → pagination-WCa7N8As.es.js.map} +1 -1
- package/dist/chunks/{password-input-BXrS2-3k.es.js → password-input-B1aemp6U.es.js} +4 -4
- package/dist/chunks/{password-input-BXrS2-3k.es.js.map → password-input-B1aemp6U.es.js.map} +1 -1
- package/dist/chunks/{password-input-DG0_r6H_.cjs.js → password-input-CWPQT3AJ.cjs.js} +2 -2
- package/dist/chunks/{password-input-DG0_r6H_.cjs.js.map → password-input-CWPQT3AJ.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-DMQAWO16.cjs.js → password-input-field-C3ct8JqT.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-DMQAWO16.cjs.js.map → password-input-field-C3ct8JqT.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-BIH25kaL.es.js → password-input-field-DGjkta8d.es.js} +3 -3
- package/dist/chunks/{password-input-field-BIH25kaL.es.js.map → password-input-field-DGjkta8d.es.js.map} +1 -1
- package/dist/chunks/{popover-zNeVW5hN.es.js → popover-B1aRr1CU.es.js} +2 -2
- package/dist/chunks/{popover-zNeVW5hN.es.js.map → popover-B1aRr1CU.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-DG9JB9bR.cjs.js → progress-bar-Dny28r_G.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-DG9JB9bR.cjs.js.map → progress-bar-Dny28r_G.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-DYbU-4Vi.es.js → progress-bar-VQAbvri1.es.js} +4 -4
- package/dist/chunks/{progress-bar-DYbU-4Vi.es.js.map → progress-bar-VQAbvri1.es.js.map} +1 -1
- package/dist/chunks/{radio-input-tsryyQ63.es.js → radio-input-6FtNHf0N.es.js} +42 -42
- package/dist/chunks/{radio-input-tsryyQ63.es.js.map → radio-input-6FtNHf0N.es.js.map} +1 -1
- package/dist/chunks/{radio-input-CA4Y8LF8.cjs.js → radio-input-CIqZ2V6i.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CA4Y8LF8.cjs.js.map → radio-input-CIqZ2V6i.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-CFfa_h1A.cjs.js → range-calendar-Bjst1nRD.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-CFfa_h1A.cjs.js.map → range-calendar-Bjst1nRD.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-CCKqVOdF.es.js → range-calendar-Cumbca_6.es.js} +10 -10
- package/dist/chunks/{range-calendar-CCKqVOdF.es.js.map → range-calendar-Cumbca_6.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-CoIBknUh.es.js → rich-text-input-C7jglLdt.es.js} +13 -13
- package/dist/chunks/{rich-text-input-CoIBknUh.es.js.map → rich-text-input-C7jglLdt.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-D7zyqfNG.cjs.js → rich-text-input-CpQVkFRl.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-D7zyqfNG.cjs.js.map → rich-text-input-CpQVkFRl.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DM_clkPu.es.js → scoped-search-input-C3N9xhiG.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-DM_clkPu.es.js.map → scoped-search-input-C3N9xhiG.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-B7lz2Odg.cjs.js → scoped-search-input-CIUdBb04.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-B7lz2Odg.cjs.js.map → scoped-search-input-CIUdBb04.cjs.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-B7D07fJk.es.js → scrollIntoView-CQMm8-SR.es.js} +5 -5
- package/dist/chunks/{scrollIntoView-B7D07fJk.es.js.map → scrollIntoView-CQMm8-SR.es.js.map} +1 -1
- package/dist/chunks/{search-input-Cq5nPtbF.cjs.js → search-input-B2eu94HO.cjs.js} +2 -2
- package/dist/chunks/{search-input-Cq5nPtbF.cjs.js.map → search-input-B2eu94HO.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-zzVNsLn3.es.js → search-input-field-Bt94J1Xu.es.js} +3 -3
- package/dist/chunks/{search-input-field-zzVNsLn3.es.js.map → search-input-field-Bt94J1Xu.es.js.map} +1 -1
- package/dist/chunks/{search-input-field-4wVwDFiQ.cjs.js → search-input-field-CiEbfoqx.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-4wVwDFiQ.cjs.js.map → search-input-field-CiEbfoqx.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-CaJyfxW-.es.js → search-input-xfX98rpy.es.js} +11 -11
- package/dist/chunks/{search-input-CaJyfxW-.es.js.map → search-input-xfX98rpy.es.js.map} +1 -1
- package/dist/chunks/{select-C4gMn8gq.es.js → select-6rfY6mk9.es.js} +21 -21
- package/dist/chunks/{select-C4gMn8gq.es.js.map → select-6rfY6mk9.es.js.map} +1 -1
- package/dist/chunks/{select-AaF9VDYS.cjs.js → select-OOmONm5T.cjs.js} +2 -2
- package/dist/chunks/{select-AaF9VDYS.cjs.js.map → select-OOmONm5T.cjs.js.map} +1 -1
- package/dist/chunks/{separator-Bc2_grIr.es.js → separator-ByExde_2.es.js} +4 -4
- package/dist/chunks/{separator-Bc2_grIr.es.js.map → separator-ByExde_2.es.js.map} +1 -1
- package/dist/chunks/{separator-BadgCkrO.cjs.js → separator-DoOgit09.cjs.js} +2 -2
- package/dist/chunks/{separator-BadgCkrO.cjs.js.map → separator-DoOgit09.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-DT1Anaq1.es.js → split-button-CcfdSUWT.es.js} +4 -4
- package/dist/chunks/{split-button-DT1Anaq1.es.js.map → split-button-CcfdSUWT.es.js.map} +1 -1
- package/dist/chunks/{split-button-CbGHEymu.cjs.js → split-button-DtNcxPjS.cjs.js} +2 -2
- package/dist/chunks/{split-button-CbGHEymu.cjs.js.map → split-button-DtNcxPjS.cjs.js.map} +1 -1
- package/dist/chunks/{switch-BxR5TD9Q.cjs.js → switch-Bttbn3oV.cjs.js} +2 -2
- package/dist/chunks/{switch-BxR5TD9Q.cjs.js.map → switch-Bttbn3oV.cjs.js.map} +1 -1
- package/dist/chunks/{switch-1tLtDt7M.es.js → switch-ZhX47Ufo.es.js} +7 -7
- package/dist/chunks/{switch-1tLtDt7M.es.js.map → switch-ZhX47Ufo.es.js.map} +1 -1
- package/dist/chunks/{tabs-CgoUJCIx.es.js → tabs-B7qKxKnI.es.js} +13 -13
- package/dist/chunks/{tabs-CgoUJCIx.es.js.map → tabs-B7qKxKnI.es.js.map} +1 -1
- package/dist/chunks/{tabs-C4EfvdVt.cjs.js → tabs-DWMVR5Mq.cjs.js} +2 -2
- package/dist/chunks/{tabs-C4EfvdVt.cjs.js.map → tabs-DWMVR5Mq.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-DauMcIZX.es.js → tag-group-7rUsjnet.es.js} +19 -19
- package/dist/chunks/{tag-group-DauMcIZX.es.js.map → tag-group-7rUsjnet.es.js.map} +1 -1
- package/dist/chunks/{tag-group-Bu4IPJY2.cjs.js → tag-group-BkoC3DAk.cjs.js} +2 -2
- package/dist/chunks/{tag-group-Bu4IPJY2.cjs.js.map → tag-group-BkoC3DAk.cjs.js.map} +1 -1
- package/dist/chunks/{text-CIb_VDvO.es.js → text-DvqDjbwb.es.js} +2 -2
- package/dist/chunks/{text-CIb_VDvO.es.js.map → text-DvqDjbwb.es.js.map} +1 -1
- package/dist/chunks/{text-input-BpdFm4J-.es.js → text-input-D_3g3kxm.es.js} +7 -7
- package/dist/chunks/{text-input-BpdFm4J-.es.js.map → text-input-D_3g3kxm.es.js.map} +1 -1
- package/dist/chunks/{text-input-YkL8bx31.cjs.js → text-input-Dv2HkOIG.cjs.js} +2 -2
- package/dist/chunks/{text-input-YkL8bx31.cjs.js.map → text-input-Dv2HkOIG.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-B0WhjD0U.es.js → text-input-field-DWpejDcH.es.js} +3 -3
- package/dist/chunks/{text-input-field-B0WhjD0U.es.js.map → text-input-field-DWpejDcH.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-CPLVnqlr.cjs.js → text-input-field-vYxpIFXm.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-CPLVnqlr.cjs.js.map → text-input-field-vYxpIFXm.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-m8zeR_8L.cjs.js → time-input-CMAP5QkL.cjs.js} +2 -2
- package/dist/chunks/{time-input-m8zeR_8L.cjs.js.map → time-input-CMAP5QkL.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-DMyhDH5j.es.js → time-input-CZWkAErU.es.js} +4 -4
- package/dist/chunks/{time-input-DMyhDH5j.es.js.map → time-input-CZWkAErU.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-CHZm868U.cjs.js → toggle-button-BnDf2yfy.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-CHZm868U.cjs.js.map → toggle-button-BnDf2yfy.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-B2uXtvzj.es.js → toggle-button-QMUjECJO.es.js} +4 -4
- package/dist/chunks/{toggle-button-B2uXtvzj.es.js.map → toggle-button-QMUjECJO.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js → toggle-button-group-P0oS-q6h.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js.map → toggle-button-group-P0oS-q6h.es.js.map} +1 -1
- package/dist/chunks/{toolbar-BAETJxml.cjs.js → toolbar-Bg2OUmFi.cjs.js} +2 -2
- package/dist/chunks/{toolbar-BAETJxml.cjs.js.map → toolbar-Bg2OUmFi.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-BnS73QeG.es.js → toolbar-C3GiZF_9.es.js} +6 -6
- package/dist/chunks/{toolbar-BnS73QeG.es.js.map → toolbar-C3GiZF_9.es.js.map} +1 -1
- package/dist/chunks/{tooltip-D3QrrizN.es.js → tooltip-CzEuq_Qi.es.js} +7 -7
- package/dist/chunks/{tooltip-D3QrrizN.es.js.map → tooltip-CzEuq_Qi.es.js.map} +1 -1
- package/dist/chunks/{useButton-CiPiehgC.es.js → useButton-B2TbwHSy.es.js} +4 -4
- package/dist/chunks/{useButton-CiPiehgC.es.js.map → useButton-B2TbwHSy.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-886GJ5w1.es.js → useDateFormatter-CO08GpLe.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-886GJ5w1.es.js.map → useDateFormatter-CO08GpLe.es.js.map} +1 -1
- package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js → useDisclosureState-BqxwXawT.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js.map → useDisclosureState-BqxwXawT.es.js.map} +1 -1
- package/dist/chunks/{useEvent-CRo5BZDX.es.js → useEvent-D8bTsAyx.es.js} +6 -6
- package/dist/chunks/{useEvent-CRo5BZDX.es.js.map → useEvent-D8bTsAyx.es.js.map} +1 -1
- package/dist/chunks/{useField-CHrpmkxe.es.js → useField-BfW84CS4.es.js} +8 -8
- package/dist/chunks/{useField-CHrpmkxe.es.js.map → useField-BfW84CS4.es.js.map} +1 -1
- package/dist/chunks/{useFocus-CrgTusM3.es.js → useFocus-TCNvrvTC.es.js} +6 -6
- package/dist/chunks/{useFocus-CrgTusM3.es.js.map → useFocus-TCNvrvTC.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-FPt2Rwil.es.js → useFocusRing-oMAqzr3e.es.js} +4 -4
- package/dist/chunks/{useFocusRing-FPt2Rwil.es.js.map → useFocusRing-oMAqzr3e.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js → useFocusVisible-Uw6yFmFY.es.js} +6 -6
- package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js.map → useFocusVisible-Uw6yFmFY.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js → useFocusWithin-nAsP7Ru3.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js.map → useFocusWithin-nAsP7Ru3.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Cs6i58WP.es.js → useFocusable-Bm-DQaak.es.js} +5 -5
- package/dist/chunks/{useFocusable-Cs6i58WP.es.js.map → useFocusable-Bm-DQaak.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-BGuIA_u2.es.js → useFormReset-C52dSDoe.es.js} +2 -2
- package/dist/chunks/{useFormReset-BGuIA_u2.es.js.map → useFormReset-C52dSDoe.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BCVLtR0U.es.js → useFormValidation-DxDV9X1M.es.js} +3 -3
- package/dist/chunks/{useFormValidation-BCVLtR0U.es.js.map → useFormValidation-DxDV9X1M.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-CjGTTOtc.es.js → useGridListItem-DTjO497o.es.js} +10 -10
- package/dist/chunks/{useGridListItem-CjGTTOtc.es.js.map → useGridListItem-DTjO497o.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js → useHasTabbableChild-DemFbZRn.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js.map → useHasTabbableChild-DemFbZRn.es.js.map} +1 -1
- package/dist/chunks/{useHover-BQRSM3qT.es.js → useHover-BtRK9g2L.es.js} +2 -2
- package/dist/chunks/{useHover-BQRSM3qT.es.js.map → useHover-BtRK9g2L.es.js.map} +1 -1
- package/dist/chunks/{useLabel-DQaRD22u.es.js → useLabel-DfbcmKTa.es.js} +5 -5
- package/dist/chunks/{useLabel-DQaRD22u.es.js.map → useLabel-DfbcmKTa.es.js.map} +1 -1
- package/dist/chunks/{useLabels-BDqWMehi.es.js → useLabels-Gn8v9XZB.es.js} +2 -2
- package/dist/chunks/{useLabels-BDqWMehi.es.js.map → useLabels-Gn8v9XZB.es.js.map} +1 -1
- package/dist/chunks/{useListState-CRfmjiWx.es.js → useListState-D9k6HiWm.es.js} +2 -2
- package/dist/chunks/{useListState-CRfmjiWx.es.js.map → useListState-D9k6HiWm.es.js.map} +1 -1
- package/dist/chunks/{usePress-BuLomD_X.es.js → usePress-C_IPaF8I.es.js} +6 -6
- package/dist/chunks/{usePress-BuLomD_X.es.js.map → usePress-C_IPaF8I.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar--OvVKto2.es.js → useProgressBar-DCj794Zv.es.js} +7 -7
- package/dist/chunks/{useProgressBar--OvVKto2.es.js.map → useProgressBar-DCj794Zv.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-DFR33TSw.es.js → useSingleSelectListState-C_tE7a5E.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-DFR33TSw.es.js.map → useSingleSelectListState-C_tE7a5E.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-BiQ20B5n.es.js} +15 -15
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-BiQ20B5n.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-BpLviItW.es.js → useSyncRef-DmY05o2G.es.js} +2 -2
- package/dist/chunks/{useSyncRef-BpLviItW.es.js.map → useSyncRef-DmY05o2G.es.js.map} +1 -1
- package/dist/chunks/{useTextField-yuaT8-G4.es.js → useTextField-9WuJfc9u.es.js} +7 -7
- package/dist/chunks/{useTextField-yuaT8-G4.es.js.map → useTextField-9WuJfc9u.es.js.map} +1 -1
- package/dist/chunks/{useToggle-DKP3zVOY.es.js → useToggle-BZPMewLP.es.js} +5 -5
- package/dist/chunks/{useToggle-DKP3zVOY.es.js.map → useToggle-BZPMewLP.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-CbJkugif.es.js → useToolbar-C673xD3E.es.js} +3 -3
- package/dist/chunks/{useToolbar-CbJkugif.es.js.map → useToolbar-C673xD3E.es.js.map} +1 -1
- package/dist/chunks/{utils-B6pV5ewr.es.js → utils-9vu7GUaz.es.js} +12 -12
- package/dist/chunks/{utils-B6pV5ewr.es.js.map → utils-9vu7GUaz.es.js.map} +1 -1
- package/dist/chunks/{utils-oAGBWzI5.es.js → utils-Bl-3nKLa.es.js} +14 -14
- package/dist/chunks/{utils-oAGBWzI5.es.js.map → utils-Bl-3nKLa.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js → visually-hidden-m5QY9YV7.es.js} +2 -2
- package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js.map → visually-hidden-m5QY9YV7.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.recipe.d.ts +1 -1
- package/dist/components/combobox/combobox.slots.d.ts +9 -9
- 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.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/inline-svg/inline-svg.slots.d.ts +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.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.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 +64 -64
- package/dist/theme/slot-recipes/index.d.ts +8 -8
- package/package.json +5 -5
- package/dist/chunks/accordion.content-Cslx-S6p.cjs.js +0 -2
- package/dist/chunks/badge-CgYpum7D.es.js +0 -17
- package/dist/chunks/index-CqOsUykV.es.js.map +0 -1
- package/dist/chunks/index-DdyUbTzB.cjs.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-input-CA4Y8LF8.cjs.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":"+rCAUUA,EAA4C,IAAI,QCW1D,SAASC,GAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,MAAOC,EAAO,SAAUC,EAAU,aAAcC,EAAW,kBAAmBC,EAAgB,aAAcC,EAAc,WAAYC,EAAY,cAAeC,EAAe,QAASC,EAAS,UAAWC,EAAW,QAASC,CAAO,EAAKZ,EACnP,MAAMa,EAAab,EAAM,YAAcC,EAAM,WAC7C,IAAIa,EAAcV,GAAY,KAC1BW,EAAeV,GAAa,MAAQC,GAAkB,KACtD,CAACQ,GAAe,CAACC,GAAgB,QAAQ,IAAI,WAAa,cAAc,QAAQ,KAAK,kFAAkF,EAC3K,IAAIC,EAAUf,EAAM,gBAAkBE,EAClCc,EAAYC,GAAI,CAChBA,EAAE,gBAAe,EACjBjB,EAAM,iBAAiBE,CAAK,CAChC,EAEI,CAAE,WAAYgB,EAAY,UAAWC,CAAS,EAASC,4CAAiB,CACxE,aAAcd,EACd,WAAYC,EACZ,cAAeC,EACf,QAASC,EACT,UAAWC,EACX,QAASC,EACT,WAAYC,CACpB,CAAK,EAEG,CAAE,WAAYS,EAAY,UAAWC,CAAc,EAASF,4CAAiB,CAC7E,aAAcd,EACd,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AAA,kBAAkBI,CAAI,EAChD,CAAE,UAAA3B,EAAW,WAAAE,CAAA,EAAe0B,4CAAA,EAElC,OACEJ,EAAAA,IAACV,GAAA,CACE,GAAGO,EACH,GAAGnB,EACJ,aAAYF,GAAa,OACzB,QAAO,GAEP,eAAC6B,GAAA,CAAQ,MAAArJ,EAAe,GAAG8I,EACxB,SAAC5C,GAAgB,CAChB,MAAMoD,EACJ,OAAOrJ,GAAa,WAChBA,EAAS,CACP,GAAGiG,CAAA,CACJ,EACDjG,EACN,OACEsJ,EAAAA,KAAAC,WAAA,CACG,SAAA,CAAAtD,EAAY,WACX8C,EAAAA,IAACS,EAAAA,mBAAA,CAAA,CAAmB,QAEnBC,EAAAA,qBAAA,EAAqB,EAEvBJ,CAAA,EACH,CAEJ,CAAA,CACF,CAAA,CAAA,CAGN,EAEAJ,EAAiB,YAAc,oBCvDxB,MAAMS,GAAa,CAexB,KAAMpB,EAgBN,OAAQW,CACV","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"radio-input-CIqZ2V6i.cjs.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":"+rCAUUA,EAA4C,IAAI,QCW1D,SAASC,GAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,MAAOC,EAAO,SAAUC,EAAU,aAAcC,EAAW,kBAAmBC,EAAgB,aAAcC,EAAc,WAAYC,EAAY,cAAeC,EAAe,QAASC,EAAS,UAAWC,EAAW,QAASC,CAAO,EAAKZ,EACnP,MAAMa,EAAab,EAAM,YAAcC,EAAM,WAC7C,IAAIa,EAAcV,GAAY,KAC1BW,EAAeV,GAAa,MAAQC,GAAkB,KACtD,CAACQ,GAAe,CAACC,GAAgB,QAAQ,IAAI,WAAa,cAAc,QAAQ,KAAK,kFAAkF,EAC3K,IAAIC,EAAUf,EAAM,gBAAkBE,EAClCc,EAAYC,GAAI,CAChBA,EAAE,gBAAe,EACjBjB,EAAM,iBAAiBE,CAAK,CAChC,E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EAAAA,IAACC,GAAA,CAAc,GAAGH,EAAY,SAAAjJ,EAAM,SAAS,EAC/C,CAEJ,EAEA0I,EAAe,YAAc,kBCTtB,MAAMW,EAAmB,CAAC,CAC/B,SAAAjJ,EACA,MAAAD,EACA,GAAGmJ,CACL,IAA6B,CAC3B,KAAM,CAACN,EAAYC,CAAS,EAAIC,EAAAA,kBAAkBI,CAAI,EAChD,CAAE,UAAA3B,EAAW,WAAAE,CAAA,EAAe0B,4CAAA,EAElC,OACEJ,EAAAA,IAACV,GAAA,CACE,GAAGO,EACH,GAAGnB,EACJ,aAAYF,GAAa,OACzB,QAAO,GAEP,eAAC6B,GAAA,CAAQ,MAAArJ,EAAe,GAAG8I,EACxB,SAAC5C,GAAgB,CAChB,MAAMoD,EACJ,OAAOrJ,GAAa,WAChBA,EAAS,CACP,GAAGiG,CAAA,CACJ,EACDjG,EACN,OACEsJ,EAAAA,KAAAC,WAAA,CACG,SAAA,CAAAtD,EAAY,WACX8C,EAAAA,IAACS,EAAAA,mBAAA,CAAA,CAAmB,QAEnBC,EAAAA,qBAAA,EAAqB,EAEvBJ,CAAA,EACH,CAEJ,CAAA,CACF,CAAA,CAAA,CAGN,EAEAJ,EAAiB,YAAc,oBCvDxB,MAAMS,GAAa,CAexB,KAAMpB,EAgBN,OAAQW,CACV","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("./Heading-kcnZ-PKv.cjs.js"),M=require("@chakra-ui/react"),D=require("./index-
|
|
2
|
-
//# sourceMappingURL=range-calendar-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("./Heading-kcnZ-PKv.cjs.js"),M=require("@chakra-ui/react"),D=require("./index-DIQn6o2R.cjs.js"),I=require("@chakra-ui/react/styled-system"),T=require("./extract-style-props-DL4zPQSN.cjs.js"),c=require("./useDateFormatter-WCaFojul.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-ClTyaPhB.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-Bjst1nRD.cjs.js.map
|
package/dist/chunks/{range-calendar-CFfa_h1A.cjs.js.map → range-calendar-Bjst1nRD.cjs.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range-calendar-CFfa_h1A.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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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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AAK,EAC9D,CAACM,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACExC,EAAAA,IAAC9B,EAAA,CAAuB,GAAGqE,EAAc,GAAGE,EAAY,QAAO,GAC7D,SAAAzC,EAAAA,IAAC4C,EAAAA,0CAAA,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
|
+
{"version":3,"file":"range-calendar-Bjst1nRD.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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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,QAA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wBAAyB,EACtD,CAACC,EAAaC,CAAc,EAAIJ,EAAO,kBAAkBD,CAAK,EAC9D,CAACM,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACExC,EAAAA,IAAC9B,EAAA,CAAuB,GAAGqE,EAAc,GAAGE,EAAY,QAAO,GAC7D,SAAAzC,EAAAA,IAAC4C,EAAAA,0CAAA,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,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
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-
|
|
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-D804NNml.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-CmfW40Im.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-CJjpdqym.es.js";
|
|
7
|
+
import { c as d, d as k } from "./useDateFormatter-CO08GpLe.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-CmpJG0ec.es.js";
|
|
10
|
+
import { e as V, c as M } from "./utils-9vu7GUaz.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-m5QY9YV7.es.js";
|
|
18
|
+
import { I as h } from "./icon-button-Cnas4bnJ.es.js";
|
|
19
|
+
import { T as R } from "./text-DvqDjbwb.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-Cumbca_6.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range-calendar-CCKqVOdF.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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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,EACrC,WAAW;AAAA,IACT,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,UAAU;AAAA,IACR,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCXYC,KAA6B,CAAC;AAAA,EACzC,UAAAC;AACF,MAEM;AACJ,QAAMC,IAAOC,EAAA,GACP,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAgBC,EAAWC,CAAa,GACxCC,IAAcF,EAAWG,CAAW,GACpCC,IAAgBJ,EAAWK,CAAyB,GAMpDC,IAAc;AAAA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AAaC,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
|
+
{"version":3,"file":"range-calendar-Cumbca_6.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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\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,GAEJ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A,CACtB,GACF,GACF;AAEJ;AAEAkB,GAAc,cAAc;"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as o, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback as C, useMemo as A, useRef as ye, useImperativeHandle as De, useState as ie, useEffect as Le } from "react";
|
|
3
3
|
import { createSlotRecipeContext as Fe, mergeRefs as Ke, useSlotRecipe as He } from "@chakra-ui/react";
|
|
4
|
-
import { e as Oe } from "./extract-style-props-
|
|
5
|
-
import { n as $e } from "./index-
|
|
4
|
+
import { e as Oe } from "./extract-style-props-CJjpdqym.es.js";
|
|
5
|
+
import { n as $e } from "./index-CmfW40Im.es.js";
|
|
6
6
|
import { Transforms as I, Text as W, Element as q, Editor as x, Range as xe, createEditor as Pe } from "slate";
|
|
7
7
|
import { ReactEditor as ne, useSlate as J, withReact as Be, Slate as _e, Editable as qe } from "slate-react";
|
|
8
8
|
import { withHistory as ze } from "slate-history";
|
|
9
9
|
import { $ as Ue } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
10
10
|
import { defineMessages as Ve, useIntl as Te } from "react-intl";
|
|
11
|
-
import { I as U } from "./icon-toggle-button-
|
|
12
|
-
import { G as ae } from "./group-
|
|
11
|
+
import { I as U } from "./icon-toggle-button-3hAIS1Mt.es.js";
|
|
12
|
+
import { G as ae } from "./group-jGsHh1w7.es.js";
|
|
13
13
|
import { MoreHoriz as je, FormatStrikethrough as We, Code as Ge, KeyboardArrowDown as Xe, FormatBold as Ye, FormatItalic as Qe, FormatUnderlined as Je, FormatListBulleted as Ze, FormatListNumbered as et, Undo as tt, Redo as rt } from "@commercetools/nimbus-icons";
|
|
14
|
-
import { M as v } from "./menu-
|
|
15
|
-
import { T as b } from "./tooltip-
|
|
16
|
-
import { I as se } from "./icon-button-
|
|
14
|
+
import { M as v } from "./menu-DMtIo54m.es.js";
|
|
15
|
+
import { T as b } from "./tooltip-CzEuq_Qi.es.js";
|
|
16
|
+
import { I as se } from "./icon-button-Cnas4bnJ.es.js";
|
|
17
17
|
import { B } from "./box-DuBoAZvq.es.js";
|
|
18
|
-
import { T as L } from "./text-
|
|
19
|
-
import { T as nt } from "./toolbar-
|
|
20
|
-
import { S as le } from "./separator-
|
|
21
|
-
import { T as ce } from "./toggle-button-group-
|
|
22
|
-
import { V } from "./visually-hidden-
|
|
18
|
+
import { T as L } from "./text-DvqDjbwb.es.js";
|
|
19
|
+
import { T as nt } from "./toolbar-C3GiZF_9.es.js";
|
|
20
|
+
import { S as le } from "./separator-ByExde_2.es.js";
|
|
21
|
+
import { T as ce } from "./toggle-button-group-P0oS-q6h.es.js";
|
|
22
|
+
import { V } from "./visually-hidden-m5QY9YV7.es.js";
|
|
23
23
|
function Me(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
25
|
}
|
|
@@ -1190,4 +1190,4 @@ export {
|
|
|
1190
1190
|
Lt as R,
|
|
1191
1191
|
Me as g
|
|
1192
1192
|
};
|
|
1193
|
-
//# sourceMappingURL=rich-text-input-
|
|
1193
|
+
//# sourceMappingURL=rich-text-input-C7jglLdt.es.js.map
|