@commercetools/nimbus 0.0.0-canary-20251110185506 → 0.0.0-canary-20251111082642
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Button-CmpJG0ec.es.js → Button-BjcDZ5eb.es.js} +7 -7
- package/dist/chunks/{Button-CmpJG0ec.es.js.map → Button-BjcDZ5eb.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-ksCQul85.es.js → CollectionBuilder-ZlIN4SR4.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-ksCQul85.es.js.map → CollectionBuilder-ZlIN4SR4.es.js.map} +1 -1
- package/dist/chunks/{DateField-Bpk0AwB2.es.js → DateField-C5JgBb30.es.js} +21 -21
- package/dist/chunks/{DateField-Bpk0AwB2.es.js.map → DateField-C5JgBb30.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-DqFQq16u.es.js → DatePicker-DeknOPX6.es.js} +17 -17
- package/dist/chunks/{DatePicker-DqFQq16u.es.js.map → DatePicker-DeknOPX6.es.js.map} +1 -1
- package/dist/chunks/{Dialog-hbq1ZZne.es.js → Dialog-DUbUCf4o.es.js} +24 -24
- package/dist/chunks/{Dialog-hbq1ZZne.es.js.map → Dialog-DUbUCf4o.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-bj_mamFe.es.js → FocusScope-CqEZq7sr.es.js} +36 -36
- package/dist/chunks/{FocusScope-bj_mamFe.es.js.map → FocusScope-CqEZq7sr.es.js.map} +1 -1
- package/dist/chunks/{Group-C9jsb9_m.es.js → Group-BQc9LuMT.es.js} +8 -8
- package/dist/chunks/{Group-C9jsb9_m.es.js.map → Group-BQc9LuMT.es.js.map} +1 -1
- package/dist/chunks/{Header-DOAbQymP.es.js → Header-Bvo6aMcQ.es.js} +5 -5
- package/dist/chunks/{Header-DOAbQymP.es.js.map → Header-Bvo6aMcQ.es.js.map} +1 -1
- package/dist/chunks/{Heading-D804NNml.es.js → Heading-D7Ut7eK3.es.js} +14 -14
- package/dist/chunks/{Heading-D804NNml.es.js.map → Heading-D7Ut7eK3.es.js.map} +1 -1
- package/dist/chunks/{Input-aKSXZBAh.es.js → Input-Cmg08oRP.es.js} +5 -5
- package/dist/chunks/{Input-aKSXZBAh.es.js.map → Input-Cmg08oRP.es.js.map} +1 -1
- package/dist/chunks/{Label-Bu5lTMzy.es.js → Label-DIseLESi.es.js} +2 -2
- package/dist/chunks/{Label-Bu5lTMzy.es.js.map → Label-DIseLESi.es.js.map} +1 -1
- package/dist/chunks/{ListBox-B43JPDJW.es.js → ListBox-C8TVMFFY.es.js} +15 -15
- package/dist/chunks/{ListBox-B43JPDJW.es.js.map → ListBox-C8TVMFFY.es.js.map} +1 -1
- package/dist/chunks/{Modal-BvkgbKlP.es.js → Modal-CMJEwrBs.es.js} +7 -7
- package/dist/chunks/{Modal-BvkgbKlP.es.js.map → Modal-CMJEwrBs.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js → OverlayArrow-BIjbCSXk.es.js} +2 -2
- package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js.map → OverlayArrow-BIjbCSXk.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DogfCeuX.es.js → ProgressBar-Dm2Ge45l.es.js} +5 -5
- package/dist/chunks/{ProgressBar-DogfCeuX.es.js.map → ProgressBar-Dm2Ge45l.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-D87OqHl3.es.js → SelectionManager-bgcDT3lR.es.js} +10 -10
- package/dist/chunks/{SelectionManager-D87OqHl3.es.js.map → SelectionManager-bgcDT3lR.es.js.map} +1 -1
- package/dist/chunks/{Separator-CAgJSVll.es.js → Separator-BmVimNX_.es.js} +4 -4
- package/dist/chunks/{Separator-CAgJSVll.es.js.map → Separator-BmVimNX_.es.js.map} +1 -1
- package/dist/chunks/{TextArea-JHqAZ7HD.es.js → TextArea-CXEdUjgW.es.js} +5 -5
- package/dist/chunks/{TextArea-JHqAZ7HD.es.js.map → TextArea-CXEdUjgW.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-B-feHlsu.es.js → ToggleButton-BqW-X6iJ.es.js} +7 -7
- package/dist/chunks/{ToggleButton-B-feHlsu.es.js.map → ToggleButton-BqW-X6iJ.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js → VisuallyHidden-BLRzeMsq.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js.map → VisuallyHidden-BLRzeMsq.es.js.map} +1 -1
- package/dist/chunks/{accordion-Cfb7Qnwj.cjs.js → accordion-Bmkm2nbw.cjs.js} +2 -2
- package/dist/chunks/{accordion-Cfb7Qnwj.cjs.js.map → accordion-Bmkm2nbw.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-DZYGCJr5.es.js → accordion-oCJP2WYv.es.js} +2 -2
- package/dist/chunks/{accordion-DZYGCJr5.es.js.map → accordion-oCJP2WYv.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-BsNTRE4w.es.js → accordion.content-DkAA0u4T.es.js} +23 -24
- package/dist/chunks/{accordion.content-BsNTRE4w.es.js.map → accordion.content-DkAA0u4T.es.js.map} +1 -1
- package/dist/chunks/accordion.content-bdvPXBBi.cjs.js +2 -0
- package/dist/chunks/{accordion.content-C_yQNE1-.cjs.js.map → accordion.content-bdvPXBBi.cjs.js.map} +1 -1
- package/dist/chunks/{alert-DuQUYhM5.es.js → alert-5Sp9Al-a.es.js} +2 -2
- package/dist/chunks/{alert-DuQUYhM5.es.js.map → alert-5Sp9Al-a.es.js.map} +1 -1
- package/dist/chunks/{alert-MwEtAoew.cjs.js → alert-B0d72S57.cjs.js} +2 -2
- package/dist/chunks/{alert-MwEtAoew.cjs.js.map → alert-B0d72S57.cjs.js.map} +1 -1
- package/dist/chunks/badge-CgYpum7D.es.js +17 -0
- package/dist/chunks/{badge-DUiqk6w9.es.js.map → badge-CgYpum7D.es.js.map} +1 -1
- package/dist/chunks/{button-CYvrqt64.es.js → button-DQwOngaA.es.js} +6 -6
- package/dist/chunks/{button-CYvrqt64.es.js.map → button-DQwOngaA.es.js.map} +1 -1
- package/dist/chunks/{button-0CeVMJjr.cjs.js → button-LU-xRd1V.cjs.js} +2 -2
- package/dist/chunks/{button-0CeVMJjr.cjs.js.map → button-LU-xRd1V.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-DxE9B9NF.cjs.js → calendar-CPvN85XQ.cjs.js} +2 -2
- package/dist/chunks/{calendar-DxE9B9NF.cjs.js.map → calendar-CPvN85XQ.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-D3acw4dp.es.js → calendar-DpN-92ho.es.js} +9 -9
- package/dist/chunks/{calendar-D3acw4dp.es.js.map → calendar-DpN-92ho.es.js.map} +1 -1
- package/dist/chunks/card-BDNwiSPj.cjs.js +2 -0
- package/dist/chunks/card-BDNwiSPj.cjs.js.map +1 -0
- package/dist/chunks/card-q1bqwXyw.es.js +115 -0
- package/dist/chunks/card-q1bqwXyw.es.js.map +1 -0
- package/dist/chunks/{checkbox-7xDO5Gat.es.js → checkbox-BaFXINPD.es.js} +10 -10
- package/dist/chunks/{checkbox-7xDO5Gat.es.js.map → checkbox-BaFXINPD.es.js.map} +1 -1
- package/dist/chunks/{checkbox-CLd7Abkr.cjs.js → checkbox-CoiLx2ew.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CLd7Abkr.cjs.js.map → checkbox-CoiLx2ew.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BlPOvbz8.es.js → collapsible-motion-CAgqktV6.es.js} +5 -5
- package/dist/chunks/{collapsible-motion-BlPOvbz8.es.js.map → collapsible-motion-CAgqktV6.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-DYfyhhxw.cjs.js → collapsible-motion-DOqpT4iH.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-DYfyhhxw.cjs.js.map → collapsible-motion-DOqpT4iH.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-9fiRVsKu.es.js → combobox-CPSCWfOs.es.js} +74 -74
- package/dist/chunks/{combobox-9fiRVsKu.es.js.map → combobox-CPSCWfOs.es.js.map} +1 -1
- package/dist/chunks/{combobox-gwYH9GXs.cjs.js → combobox-bxRaCE5H.cjs.js} +2 -2
- package/dist/chunks/{combobox-gwYH9GXs.cjs.js.map → combobox-bxRaCE5H.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-DYVJWtUX.cjs.js → data-table-Bnyb2iCU.cjs.js} +2 -2
- package/dist/chunks/{data-table-DYVJWtUX.cjs.js.map → data-table-Bnyb2iCU.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-D2cJv6bj.es.js → data-table-DPPPEZ6m.es.js} +37 -37
- package/dist/chunks/{data-table-D2cJv6bj.es.js.map → data-table-DPPPEZ6m.es.js.map} +1 -1
- package/dist/chunks/{date-input-0G7eQDUC.es.js → date-input-C7R-vUMT.es.js} +4 -4
- package/dist/chunks/{date-input-0G7eQDUC.es.js.map → date-input-C7R-vUMT.es.js.map} +1 -1
- package/dist/chunks/{date-input-BlI8T_1s.cjs.js → date-input-ERZmiI-d.cjs.js} +2 -2
- package/dist/chunks/{date-input-BlI8T_1s.cjs.js.map → date-input-ERZmiI-d.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-CXo8uL1x.es.js → date-picker-Cl4gt7kP.es.js} +14 -14
- package/dist/chunks/{date-picker-CXo8uL1x.es.js.map → date-picker-Cl4gt7kP.es.js.map} +1 -1
- package/dist/chunks/{date-picker-Bf0aI6OF.cjs.js → date-picker-DcxM3Obc.cjs.js} +2 -2
- package/dist/chunks/{date-picker-Bf0aI6OF.cjs.js.map → date-picker-DcxM3Obc.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-K-EiWG0t.cjs.js → date-range-picker-Cvks0C0_.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-K-EiWG0t.cjs.js.map → date-range-picker-Cvks0C0_.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BXpcsltk.es.js → date-range-picker-DtDG_vtK.es.js} +14 -14
- package/dist/chunks/{date-range-picker-BXpcsltk.es.js.map → date-range-picker-DtDG_vtK.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-BtipzRcn.cjs.js → date-range-picker-field-BkblvIa4.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-BtipzRcn.cjs.js.map → date-range-picker-field-BkblvIa4.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-BUwLjzWQ.es.js → date-range-picker-field-DY1MPYNy.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-BUwLjzWQ.es.js.map → date-range-picker-field-DY1MPYNy.es.js.map} +1 -1
- package/dist/chunks/{dialog-BtL_KMAX.es.js → dialog-BaWLvm34.es.js} +7 -7
- package/dist/chunks/{dialog-BtL_KMAX.es.js.map → dialog-BaWLvm34.es.js.map} +1 -1
- package/dist/chunks/{dialog-B0eZ3OQ9.cjs.js → dialog-C_Nlr8Ce.cjs.js} +2 -2
- package/dist/chunks/{dialog-B0eZ3OQ9.cjs.js.map → dialog-C_Nlr8Ce.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-CB6oUq0N.es.js → draggable-list-BKJUtt3D.es.js} +22 -22
- package/dist/chunks/{draggable-list-CB6oUq0N.es.js.map → draggable-list-BKJUtt3D.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-D1wMrcm3.cjs.js → draggable-list-CIODyBsA.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-D1wMrcm3.cjs.js.map → draggable-list-CIODyBsA.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-CrHEWlaq.es.js → drawer-BH30fCVf.es.js} +8 -8
- package/dist/chunks/{drawer-CrHEWlaq.es.js.map → drawer-BH30fCVf.es.js.map} +1 -1
- package/dist/chunks/{drawer-DUfoy-Mv.cjs.js → drawer-DJXDyhSM.cjs.js} +2 -2
- package/dist/chunks/{drawer-DUfoy-Mv.cjs.js.map → drawer-DJXDyhSM.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DP22ZhvT.cjs.js → extract-style-props-85ZscQNb.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-DP22ZhvT.cjs.js.map → extract-style-props-85ZscQNb.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-D8DMpwDa.es.js → extract-style-props-BtI5SsUL.es.js} +2 -2
- package/dist/chunks/{extract-style-props-D8DMpwDa.es.js.map → extract-style-props-BtI5SsUL.es.js.map} +1 -1
- package/dist/chunks/{focusSafely-RvsgqoUt.es.js → focusSafely-Cwb0Tyy6.es.js} +3 -3
- package/dist/chunks/{focusSafely-RvsgqoUt.es.js.map → focusSafely-Cwb0Tyy6.es.js.map} +1 -1
- package/dist/chunks/{form-field-DyZmtyiG.cjs.js → form-field-C9Kw8WTv.cjs.js} +2 -2
- package/dist/chunks/{form-field-DyZmtyiG.cjs.js.map → form-field-C9Kw8WTv.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-DDyBmOqR.es.js → form-field-eH2-P6Fd.es.js} +4 -4
- package/dist/chunks/{form-field-DDyBmOqR.es.js.map → form-field-eH2-P6Fd.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-DlqhSzBC.es.js → getScrollParent-MZgwmCKW.es.js} +2 -2
- package/dist/chunks/{getScrollParent-DlqhSzBC.es.js.map → getScrollParent-MZgwmCKW.es.js.map} +1 -1
- package/dist/chunks/{group-jGsHh1w7.es.js → group-CCBgdph2.es.js} +2 -2
- package/dist/chunks/{group-jGsHh1w7.es.js.map → group-CCBgdph2.es.js.map} +1 -1
- package/dist/chunks/{heading-CwsT9zp_.es.js → heading-nfjoR4vL.es.js} +2 -2
- package/dist/chunks/{heading-CwsT9zp_.es.js.map → heading-nfjoR4vL.es.js.map} +1 -1
- package/dist/chunks/{icon-button-DQM2rIIn.cjs.js → icon-button--OJkD9bD.cjs.js} +2 -2
- package/dist/chunks/{icon-button-DQM2rIIn.cjs.js.map → icon-button--OJkD9bD.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-Cb07r9LU.es.js → icon-button-BCUdS3Fs.es.js} +2 -2
- package/dist/chunks/{icon-button-Cb07r9LU.es.js.map → icon-button-BCUdS3Fs.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CDmATToO.es.js → icon-toggle-button-DzqicNGZ.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CDmATToO.es.js.map → icon-toggle-button-DzqicNGZ.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DPGRK4mQ.cjs.js → icon-toggle-button-fhAisdZY.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DPGRK4mQ.cjs.js.map → icon-toggle-button-fhAisdZY.cjs.js.map} +1 -1
- package/dist/chunks/{index-CFPzjVdo.es.js → index-eE96cgzU.es.js} +185 -185
- package/dist/chunks/index-eE96cgzU.es.js.map +1 -0
- package/dist/chunks/{index-C-LmCcq5.cjs.js → index-s_umMSpn.cjs.js} +3 -3
- package/dist/chunks/index-s_umMSpn.cjs.js.map +1 -0
- package/dist/chunks/{kbd-B11Qoo4k.es.js → kbd-Bl5Ncm2d.es.js} +2 -2
- package/dist/chunks/{kbd-B11Qoo4k.es.js.map → kbd-Bl5Ncm2d.es.js.map} +1 -1
- package/dist/chunks/{link-Db65JZE6.es.js → link-BMUyXcmC.es.js} +9 -9
- package/dist/chunks/{link-Db65JZE6.es.js.map → link-BMUyXcmC.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js → loading-spinner-DF6c3rBM.es.js} +3 -3
- package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js.map → loading-spinner-DF6c3rBM.es.js.map} +1 -1
- package/dist/chunks/{localized-field-6sdvNTE4.cjs.js → localized-field-6EPRbn_0.cjs.js} +2 -2
- package/dist/chunks/{localized-field-6sdvNTE4.cjs.js.map → localized-field-6EPRbn_0.cjs.js.map} +1 -1
- package/dist/chunks/{localized-field-C4a2hDBQ.es.js → localized-field-DhirKOrQ.es.js} +25 -25
- package/dist/chunks/{localized-field-C4a2hDBQ.es.js.map → localized-field-DhirKOrQ.es.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js → make-element-focusable-7-aXFtDJ.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js.map → make-element-focusable-7-aXFtDJ.es.js.map} +1 -1
- package/dist/chunks/{menu-Z9u3Wwbh.es.js → menu-DBHtKS_i.es.js} +6 -6
- package/dist/chunks/{menu-Z9u3Wwbh.es.js.map → menu-DBHtKS_i.es.js.map} +1 -1
- package/dist/chunks/{menu-D2Ee610m.cjs.js → menu-YPluQV_N.cjs.js} +2 -2
- package/dist/chunks/{menu-D2Ee610m.cjs.js.map → menu-YPluQV_N.cjs.js.map} +1 -1
- package/dist/chunks/{mergeProps-D1jjFfMs.es.js → mergeProps-Dsl8k3Ig.es.js} +6 -6
- package/dist/chunks/{mergeProps-D1jjFfMs.es.js.map → mergeProps-Dsl8k3Ig.es.js.map} +1 -1
- package/dist/chunks/{money-input-B7kQJ90L.cjs.js → money-input-Cx7Wyu1V.cjs.js} +2 -2
- package/dist/chunks/{money-input-B7kQJ90L.cjs.js.map → money-input-Cx7Wyu1V.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-D9FdCCIe.es.js → money-input-DqbiOQEz.es.js} +9 -9
- package/dist/chunks/{money-input-D9FdCCIe.es.js.map → money-input-DqbiOQEz.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-AM8ZDt4i.cjs.js → multiline-text-input-C5HzGu14.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-AM8ZDt4i.cjs.js.map → multiline-text-input-C5HzGu14.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-B3b2JF7k.es.js → multiline-text-input-CGZgK7Pp.es.js} +5 -5
- package/dist/chunks/{multiline-text-input-B3b2JF7k.es.js.map → multiline-text-input-CGZgK7Pp.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-dP941kWc.cjs.js → nimbus-provider-CAD14xrZ.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-dP941kWc.cjs.js.map → nimbus-provider-CAD14xrZ.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-H5a72o3E.es.js → nimbus-provider-DEQEz6SS.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-H5a72o3E.es.js.map → nimbus-provider-DEQEz6SS.es.js.map} +1 -1
- package/dist/chunks/{number-input-oywCb0VO.cjs.js → number-input-BZwowU2U.cjs.js} +2 -2
- package/dist/chunks/{number-input-oywCb0VO.cjs.js.map → number-input-BZwowU2U.cjs.js.map} +1 -1
- package/dist/chunks/{number-input--6xWX71G.es.js → number-input-Bcom6aAq.es.js} +14 -14
- package/dist/chunks/{number-input--6xWX71G.es.js.map → number-input-Bcom6aAq.es.js.map} +1 -1
- package/dist/chunks/{pagination-4ZOfHXS4.cjs.js → pagination-C8ecEFSU.cjs.js} +2 -2
- package/dist/chunks/{pagination-4ZOfHXS4.cjs.js.map → pagination-C8ecEFSU.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-BVjpcsN5.es.js → pagination-DNjofgaa.es.js} +5 -5
- package/dist/chunks/{pagination-BVjpcsN5.es.js.map → pagination-DNjofgaa.es.js.map} +1 -1
- package/dist/chunks/{password-input-DdHjkBel.es.js → password-input-D-lcB9_G.es.js} +4 -4
- package/dist/chunks/{password-input-DdHjkBel.es.js.map → password-input-D-lcB9_G.es.js.map} +1 -1
- package/dist/chunks/{password-input-Pp4Dz-er.cjs.js → password-input-D7JCB6Hs.cjs.js} +2 -2
- package/dist/chunks/{password-input-Pp4Dz-er.cjs.js.map → password-input-D7JCB6Hs.cjs.js.map} +1 -1
- package/dist/chunks/{popover-DM-6JZxY.es.js → popover-BAIwOPdC.es.js} +2 -2
- package/dist/chunks/{popover-DM-6JZxY.es.js.map → popover-BAIwOPdC.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-Dz_C2ugF.es.js → progress-bar-BUoXmic0.es.js} +4 -4
- package/dist/chunks/{progress-bar-Dz_C2ugF.es.js.map → progress-bar-BUoXmic0.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-DS_YYBsf.cjs.js → progress-bar-DEBKGglT.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-DS_YYBsf.cjs.js.map → progress-bar-DEBKGglT.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-CtYt3nGN.es.js → radio-input-6o09m8DU.es.js} +42 -42
- package/dist/chunks/{radio-input-CtYt3nGN.es.js.map → radio-input-6o09m8DU.es.js.map} +1 -1
- package/dist/chunks/{radio-input-DQUpYpdI.cjs.js → radio-input-DlCdIOVJ.cjs.js} +2 -2
- package/dist/chunks/{radio-input-DQUpYpdI.cjs.js.map → radio-input-DlCdIOVJ.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-Ds1qbvdh.es.js → range-calendar-2865NHSq.es.js} +10 -10
- package/dist/chunks/{range-calendar-Ds1qbvdh.es.js.map → range-calendar-2865NHSq.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-BN3NcuBL.cjs.js → range-calendar-B7-g9Ood.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-BN3NcuBL.cjs.js.map → range-calendar-B7-g9Ood.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-CQ4xw-LM.es.js → rich-text-input-BrIYJftQ.es.js} +13 -13
- package/dist/chunks/{rich-text-input-CQ4xw-LM.es.js.map → rich-text-input-BrIYJftQ.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BvTtvIX7.cjs.js → rich-text-input-GIcaZn-H.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-BvTtvIX7.cjs.js.map → rich-text-input-GIcaZn-H.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-NQA_sKCI.cjs.js → scoped-search-input-CMZE3Euj.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-NQA_sKCI.cjs.js.map → scoped-search-input-CMZE3Euj.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-koEM9r8z.es.js → scoped-search-input-k7nF9VQm.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-koEM9r8z.es.js.map → scoped-search-input-k7nF9VQm.es.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js → scrollIntoView-B7D07fJk.es.js} +5 -5
- package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js.map → scrollIntoView-B7D07fJk.es.js.map} +1 -1
- package/dist/chunks/{search-input-CoBElhl3.es.js → search-input-B80Je33d.es.js} +11 -11
- package/dist/chunks/{search-input-CoBElhl3.es.js.map → search-input-B80Je33d.es.js.map} +1 -1
- package/dist/chunks/{search-input-BBca20FV.cjs.js → search-input-CAvO7n3x.cjs.js} +2 -2
- package/dist/chunks/{search-input-BBca20FV.cjs.js.map → search-input-CAvO7n3x.cjs.js.map} +1 -1
- package/dist/chunks/{select-5pRCKEQY.es.js → select-CJ_xMgHW.es.js} +21 -21
- package/dist/chunks/{select-5pRCKEQY.es.js.map → select-CJ_xMgHW.es.js.map} +1 -1
- package/dist/chunks/{select-C4nUEJn5.cjs.js → select-CZTXUASq.cjs.js} +2 -2
- package/dist/chunks/{select-C4nUEJn5.cjs.js.map → select-CZTXUASq.cjs.js.map} +1 -1
- package/dist/chunks/{separator-DJXgVD7c.es.js → separator-4DaK6Cv1.es.js} +4 -4
- package/dist/chunks/{separator-DJXgVD7c.es.js.map → separator-4DaK6Cv1.es.js.map} +1 -1
- package/dist/chunks/{separator-BWAYyzxk.cjs.js → separator-Cfa7PcVN.cjs.js} +2 -2
- package/dist/chunks/{separator-BWAYyzxk.cjs.js.map → separator-Cfa7PcVN.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-CD1Ld4th.es.js → split-button-YVeg-RzQ.es.js} +4 -4
- package/dist/chunks/{split-button-CD1Ld4th.es.js.map → split-button-YVeg-RzQ.es.js.map} +1 -1
- package/dist/chunks/{split-button-DJndyWfu.cjs.js → split-button-tqGvvVvs.cjs.js} +2 -2
- package/dist/chunks/{split-button-DJndyWfu.cjs.js.map → split-button-tqGvvVvs.cjs.js.map} +1 -1
- package/dist/chunks/{switch-Cj_bslvz.cjs.js → switch-D4pQbeTI.cjs.js} +2 -2
- package/dist/chunks/{switch-Cj_bslvz.cjs.js.map → switch-D4pQbeTI.cjs.js.map} +1 -1
- package/dist/chunks/{switch-B-K--n0-.es.js → switch-DVMlpmJn.es.js} +7 -7
- package/dist/chunks/{switch-B-K--n0-.es.js.map → switch-DVMlpmJn.es.js.map} +1 -1
- package/dist/chunks/{tabs-XVa7eruV.es.js → tabs-C51R-l_K.es.js} +13 -13
- package/dist/chunks/{tabs-XVa7eruV.es.js.map → tabs-C51R-l_K.es.js.map} +1 -1
- package/dist/chunks/{tabs-Bu7zAr-o.cjs.js → tabs-C6jcG7lb.cjs.js} +2 -2
- package/dist/chunks/{tabs-Bu7zAr-o.cjs.js.map → tabs-C6jcG7lb.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-DCW_qMHU.es.js → tag-group-BVrkgr55.es.js} +19 -19
- package/dist/chunks/{tag-group-DCW_qMHU.es.js.map → tag-group-BVrkgr55.es.js.map} +1 -1
- package/dist/chunks/{tag-group-DR1xwRNk.cjs.js → tag-group-CiEG-gS2.cjs.js} +2 -2
- package/dist/chunks/{tag-group-DR1xwRNk.cjs.js.map → tag-group-CiEG-gS2.cjs.js.map} +1 -1
- package/dist/chunks/{text-DvqDjbwb.es.js → text-CIb_VDvO.es.js} +2 -2
- package/dist/chunks/{text-DvqDjbwb.es.js.map → text-CIb_VDvO.es.js.map} +1 -1
- package/dist/chunks/{text-input-CjmYZgq1.cjs.js → text-input-BL1bb7Bj.cjs.js} +2 -2
- package/dist/chunks/{text-input-CjmYZgq1.cjs.js.map → text-input-BL1bb7Bj.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-CuXUcgD_.es.js → text-input-DW8irxig.es.js} +7 -7
- package/dist/chunks/{text-input-CuXUcgD_.es.js.map → text-input-DW8irxig.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-Db27gnG3.cjs.js → text-input-field-B3m-_U5R.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-Db27gnG3.cjs.js.map → text-input-field-B3m-_U5R.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-D6MCqyAI.es.js → text-input-field-BFOo0X1p.es.js} +3 -3
- package/dist/chunks/{text-input-field-D6MCqyAI.es.js.map → text-input-field-BFOo0X1p.es.js.map} +1 -1
- package/dist/chunks/{time-input-DYoPUhnI.es.js → time-input-BdX4nclD.es.js} +4 -4
- package/dist/chunks/{time-input-DYoPUhnI.es.js.map → time-input-BdX4nclD.es.js.map} +1 -1
- package/dist/chunks/{time-input-0v8yP4ud.cjs.js → time-input-kKz7Wqeq.cjs.js} +2 -2
- package/dist/chunks/{time-input-0v8yP4ud.cjs.js.map → time-input-kKz7Wqeq.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-BkgeElsF.cjs.js → toggle-button-CGS2TXWE.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BkgeElsF.cjs.js.map → toggle-button-CGS2TXWE.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-ov4RSBry.es.js → toggle-button-Dg2dIgwx.es.js} +4 -4
- package/dist/chunks/{toggle-button-ov4RSBry.es.js.map → toggle-button-Dg2dIgwx.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js → toggle-button-group-BWpmMkEz.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js.map → toggle-button-group-BWpmMkEz.es.js.map} +1 -1
- package/dist/chunks/{toolbar-CZ-A-yv-.es.js → toolbar-Cop5pSX0.es.js} +6 -6
- package/dist/chunks/{toolbar-CZ-A-yv-.es.js.map → toolbar-Cop5pSX0.es.js.map} +1 -1
- package/dist/chunks/{toolbar-B3Bibe92.cjs.js → toolbar-DdjNKCJg.cjs.js} +2 -2
- package/dist/chunks/{toolbar-B3Bibe92.cjs.js.map → toolbar-DdjNKCJg.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-CzEuq_Qi.es.js → tooltip-D3QrrizN.es.js} +7 -7
- package/dist/chunks/{tooltip-CzEuq_Qi.es.js.map → tooltip-D3QrrizN.es.js.map} +1 -1
- package/dist/chunks/{useButton-B2TbwHSy.es.js → useButton-CiPiehgC.es.js} +4 -4
- package/dist/chunks/{useButton-B2TbwHSy.es.js.map → useButton-CiPiehgC.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-CO08GpLe.es.js → useDateFormatter-886GJ5w1.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-CO08GpLe.es.js.map → useDateFormatter-886GJ5w1.es.js.map} +1 -1
- package/dist/chunks/{useDisclosureState-BqxwXawT.es.js → useDisclosureState-CWZTR2xM.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-BqxwXawT.es.js.map → useDisclosureState-CWZTR2xM.es.js.map} +1 -1
- package/dist/chunks/{useEvent-D8bTsAyx.es.js → useEvent-CRo5BZDX.es.js} +6 -6
- package/dist/chunks/{useEvent-D8bTsAyx.es.js.map → useEvent-CRo5BZDX.es.js.map} +1 -1
- package/dist/chunks/{useField-BfW84CS4.es.js → useField-CHrpmkxe.es.js} +8 -8
- package/dist/chunks/{useField-BfW84CS4.es.js.map → useField-CHrpmkxe.es.js.map} +1 -1
- package/dist/chunks/{useFocus-TCNvrvTC.es.js → useFocus-CrgTusM3.es.js} +6 -6
- package/dist/chunks/{useFocus-TCNvrvTC.es.js.map → useFocus-CrgTusM3.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-oMAqzr3e.es.js → useFocusRing-FPt2Rwil.es.js} +4 -4
- package/dist/chunks/{useFocusRing-oMAqzr3e.es.js.map → useFocusRing-FPt2Rwil.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js → useFocusVisible-B3HmFL2Q.es.js} +6 -6
- package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js.map → useFocusVisible-B3HmFL2Q.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js → useFocusWithin-EFOG-Jn1.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js.map → useFocusWithin-EFOG-Jn1.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Bm-DQaak.es.js → useFocusable-Cs6i58WP.es.js} +5 -5
- package/dist/chunks/{useFocusable-Bm-DQaak.es.js.map → useFocusable-Cs6i58WP.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-C52dSDoe.es.js → useFormReset-BGuIA_u2.es.js} +2 -2
- package/dist/chunks/{useFormReset-C52dSDoe.es.js.map → useFormReset-BGuIA_u2.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-DxDV9X1M.es.js → useFormValidation-BCVLtR0U.es.js} +3 -3
- package/dist/chunks/{useFormValidation-DxDV9X1M.es.js.map → useFormValidation-BCVLtR0U.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-F3yPBTEW.es.js → useGridListItem-DAGp36bD.es.js} +10 -10
- package/dist/chunks/{useGridListItem-F3yPBTEW.es.js.map → useGridListItem-DAGp36bD.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js → useHasTabbableChild-DXq72IE3.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js.map → useHasTabbableChild-DXq72IE3.es.js.map} +1 -1
- package/dist/chunks/{useHover-BtRK9g2L.es.js → useHover-BQRSM3qT.es.js} +2 -2
- package/dist/chunks/{useHover-BtRK9g2L.es.js.map → useHover-BQRSM3qT.es.js.map} +1 -1
- package/dist/chunks/{useLabel-DfbcmKTa.es.js → useLabel-DQaRD22u.es.js} +5 -5
- package/dist/chunks/{useLabel-DfbcmKTa.es.js.map → useLabel-DQaRD22u.es.js.map} +1 -1
- package/dist/chunks/{useLabels-Gn8v9XZB.es.js → useLabels-BDqWMehi.es.js} +2 -2
- package/dist/chunks/{useLabels-Gn8v9XZB.es.js.map → useLabels-BDqWMehi.es.js.map} +1 -1
- package/dist/chunks/{useListState-BkVh9WsE.es.js → useListState-BHLGQlP3.es.js} +2 -2
- package/dist/chunks/{useListState-BkVh9WsE.es.js.map → useListState-BHLGQlP3.es.js.map} +1 -1
- package/dist/chunks/{usePress-C_IPaF8I.es.js → usePress-BuLomD_X.es.js} +6 -6
- package/dist/chunks/{usePress-C_IPaF8I.es.js.map → usePress-BuLomD_X.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar-DCj794Zv.es.js → useProgressBar--OvVKto2.es.js} +7 -7
- package/dist/chunks/{useProgressBar-DCj794Zv.es.js.map → useProgressBar--OvVKto2.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-BszJZd-K.es.js → useSingleSelectListState-B29G7the.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-BszJZd-K.es.js.map → useSingleSelectListState-B29G7the.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-BiQ20B5n.es.js → useSpinButton-YcV6vlPf.es.js} +15 -15
- package/dist/chunks/{useSpinButton-BiQ20B5n.es.js.map → useSpinButton-YcV6vlPf.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-DmY05o2G.es.js → useSyncRef-BpLviItW.es.js} +2 -2
- package/dist/chunks/{useSyncRef-DmY05o2G.es.js.map → useSyncRef-BpLviItW.es.js.map} +1 -1
- package/dist/chunks/{useTextField-9WuJfc9u.es.js → useTextField-yuaT8-G4.es.js} +7 -7
- package/dist/chunks/{useTextField-9WuJfc9u.es.js.map → useTextField-yuaT8-G4.es.js.map} +1 -1
- package/dist/chunks/{useToggle-BZPMewLP.es.js → useToggle-DKP3zVOY.es.js} +5 -5
- package/dist/chunks/{useToggle-BZPMewLP.es.js.map → useToggle-DKP3zVOY.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-C673xD3E.es.js → useToolbar-CbJkugif.es.js} +3 -3
- package/dist/chunks/{useToolbar-C673xD3E.es.js.map → useToolbar-CbJkugif.es.js.map} +1 -1
- package/dist/chunks/{utils-9vu7GUaz.es.js → utils-B6pV5ewr.es.js} +12 -12
- package/dist/chunks/{utils-9vu7GUaz.es.js.map → utils-B6pV5ewr.es.js.map} +1 -1
- package/dist/chunks/{utils-Bl-3nKLa.es.js → utils-oAGBWzI5.es.js} +14 -14
- package/dist/chunks/{utils-Bl-3nKLa.es.js.map → utils-oAGBWzI5.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-m5QY9YV7.es.js → visually-hidden-Dj5CT-u_.es.js} +2 -2
- package/dist/chunks/{visually-hidden-m5QY9YV7.es.js.map → visually-hidden-Dj5CT-u_.es.js.map} +1 -1
- package/dist/components/accordion/accordion.recipe.d.ts +1 -1
- package/dist/components/accordion/accordion.slots.d.ts +5 -5
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert/alert.recipe.d.ts +1 -1
- package/dist/components/alert/alert.slots.d.ts +3 -3
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.slots.d.ts +1 -1
- package/dist/components/badge/badge.slots.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.slots.d.ts +8 -8
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox/combobox.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 +2 -2
- 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.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.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.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.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 +2 -2
- 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.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 +59 -59
- package/dist/theme/slot-recipes/index.d.ts +8 -8
- package/package.json +5 -5
- package/dist/chunks/accordion.content-C_yQNE1-.cjs.js +0 -2
- package/dist/chunks/badge-DUiqk6w9.es.js +0 -17
- package/dist/chunks/card-Byt_wAJ_.cjs.js +0 -2
- package/dist/chunks/card-Byt_wAJ_.cjs.js.map +0 -1
- package/dist/chunks/card-CzLj1IFW.es.js +0 -120
- package/dist/chunks/card-CzLj1IFW.es.js.map +0 -1
- package/dist/chunks/index-C-LmCcq5.cjs.js.map +0 -1
- package/dist/chunks/index-CFPzjVdo.es.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-DxE9B9NF.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.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 CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\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(CalendarStateContext)!;\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 { 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 CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\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 <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\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 { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\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 </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"ytBAcM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,UACP,CAAC,EAEYC,EAGTH,EAAoD,MAAO,MAAM,EAExDI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,CAAmB,CAAA,CAAA,CACtB,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAEJ,EC1EaC,EAAYC,GAAoC,CAC3D,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,WAAY,EAC1C,CAACC,EAAaC,CAAc,EAAIH,EAAO,kBAAkBD,CAAK,EAC9D,CAACK,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACEvC,EAAAA,IAAC9B,EAAA,CAAkB,GAAGoE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAAxC,EAAAA,IAAC2C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAAC5D,EAAA,CACC,SAAA,CAAAmB,EAAAA,IAACwB,EAAA,EAAe,QACftB,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
|
|
1
|
+
{"version":3,"file":"calendar-CPvN85XQ.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.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 CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\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(CalendarStateContext)!;\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 { 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 CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\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 <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\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 { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\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 </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"ytBAcM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,UACP,CAAC,EAEYC,EAGTH,EAAoD,MAAO,MAAM,EAExDI,EAAqBH,EAGhC,MAAO,QAAQ,EAEJI,EAAoBJ,EAG/B,MAAO,OAAO,EAEHK,EAAyBL,EAGpC,MAAO,YAAY,EAERM,EAAmBN,EAG9B,QAAS,MAAM,EAEJO,EAAyBP,EAGpC,QAAS,YAAY,EAEVQ,EAAyBR,EAGpC,KAAM,YAAY,EAEPS,EAAuBT,EAGlC,QAAS,UAAU,EAERU,EAAmBV,EAG9B,KAAM,UAAU,EC3DLW,EAAWC,EAAAA,eAAe,CACrC,UAAW,CACT,GAAI,4BACJ,YAAa,8CACb,eAAgB,YAAA,EAElB,cAAe,CACb,GAAI,gCACJ,YAAa,kDACb,eAAgB,gBAAA,EAElB,SAAU,CACR,GAAI,2BACJ,YAAa,6CACb,eAAgB,WAAA,EAElB,aAAc,CACZ,GAAI,+BACJ,YAAa,iDACb,eAAgB,eAAA,CAEpB,CAAC,ECXYC,EAAwB,CAAC,CACpC,SAAAC,CACF,IAEM,CACJ,MAAMC,EAAOC,EAAAA,QAAA,EACP,CAAE,OAAAC,CAAA,EAAWC,4CAAA,EACbC,EAAgBC,EAAAA,WAAWC,2CAAa,EACxCC,EAAcF,EAAAA,WAAWG,2CAAW,EACp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AjC,EAAAA,IAACe,EAAAA,IAAA,CAAI,SAAS,GAAA,CAAI,EAClBD,EAAAA,KAACa,EAAAA,MAAA,CAAM,UAAU,MAAM,WAAW,SAEhC,SAAA,CAAA3B,EAAAA,IAAC8B,EAAAA,WAAA,CACC,KAAK,gBACL,KAAK,KACL,QAAQ,QACR,aAAa,UAEb,eAACC,EAAAA,kBAAA,CAAA,CAAkB,CAAA,CAAA,EAErB/B,EAAAA,IAACgC,EAAAA,KAAA,CACC,UAAU,KACV,WAAW,MACX,MAAM,aACN,MAAM,OACN,UAAU,SACV,cAAY,OACZ,KAAK,MAAA,CAAA,EAGPhC,EAAAA,IAAC8B,EAAAA,WAAA,CACC,KAAK,YACL,KAAK,KACL,QAAQ,QACR,aAAa,UAEb,eAACG,EAAAA,mBAAA,CAAA,CAAmB,CAAA,CAAA,CACtB,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAEJ,EC1EaC,EAAYC,GAAoC,CAC3D,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,WAAY,EAC1C,CAACC,EAAaC,CAAc,EAAIH,EAAO,kBAAkBD,CAAK,EAC9D,CAACK,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACEvC,EAAAA,IAAC9B,EAAA,CAAkB,GAAGoE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAAxC,EAAAA,IAAC2C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAAC5D,EAAA,CACC,SAAA,CAAAmB,EAAAA,IAACwB,EAAA,EAAe,QACftB,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { j as P, d as I, e as N, f as j, g as F, h as G, a as M, c as H, k as Y } from "./Heading-
|
|
2
|
+
import { j as P, d as I, e as N, f as j, g as F, h as G, a as M, c as H, k as Y } from "./Heading-D7Ut7eK3.es.js";
|
|
3
3
|
import { createSlotRecipeContext as k } from "@chakra-ui/react";
|
|
4
4
|
import { useSlotRecipe as A } from "@chakra-ui/react/styled-system";
|
|
5
|
-
import { e as B } from "./extract-style-props-
|
|
6
|
-
import { c as l, d as L } from "./useDateFormatter-
|
|
5
|
+
import { e as B } from "./extract-style-props-BtI5SsUL.es.js";
|
|
6
|
+
import { c as l, d as L } from "./useDateFormatter-886GJ5w1.es.js";
|
|
7
7
|
import { useContext as u } from "react";
|
|
8
|
-
import { $ } from "./Button-
|
|
9
|
-
import { e as z, c as w } from "./utils-
|
|
8
|
+
import { $ } from "./Button-BjcDZ5eb.es.js";
|
|
9
|
+
import { e as z, c as w } from "./utils-B6pV5ewr.es.js";
|
|
10
10
|
import { $ as g } from "./Text-DOcU1ycg.es.js";
|
|
11
11
|
import { defineMessages as V, useIntl as K } from "react-intl";
|
|
12
12
|
import { $ as D } from "./context-DW7UvQ8z.es.js";
|
|
13
13
|
import { KeyboardArrowLeft as v, KeyboardArrowRight as y } from "@commercetools/nimbus-icons";
|
|
14
14
|
import { S as C } from "./stack-CoNreM7B.es.js";
|
|
15
|
-
import { T as S } from "./text-
|
|
15
|
+
import { T as S } from "./text-CIb_VDvO.es.js";
|
|
16
16
|
import { Flex as W } from "@chakra-ui/react/flex";
|
|
17
|
-
import { V as _ } from "./visually-hidden-
|
|
18
|
-
import { I as h } from "./icon-button-
|
|
17
|
+
import { V as _ } from "./visually-hidden-Dj5CT-u_.es.js";
|
|
18
|
+
import { I as h } from "./icon-button-BCUdS3Fs.es.js";
|
|
19
19
|
import { B as R } from "./box-DuBoAZvq.es.js";
|
|
20
20
|
const { withProvider: q, withContext: s } = /* @__PURE__ */ k({
|
|
21
21
|
key: "calendar"
|
|
@@ -214,4 +214,4 @@ const { withProvider: q, withContext: s } = /* @__PURE__ */ k({
|
|
|
214
214
|
export {
|
|
215
215
|
Pe as C
|
|
216
216
|
};
|
|
217
|
-
//# sourceMappingURL=calendar-
|
|
217
|
+
//# sourceMappingURL=calendar-DpN-92ho.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-D3acw4dp.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.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 CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\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(CalendarStateContext)!;\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 { 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 CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\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 <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\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 { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\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 </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EA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GAAA,EAAY,GAAGF,GACd,4BAAC5D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACwB,IAAA,EAAe;AAAA,sBACftB,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"calendar-DpN-92ho.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.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 CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\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(CalendarStateContext)!;\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 { 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 CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\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 <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\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 { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\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 </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyle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EjE,SACE,gBAAAvC,EAAC9B,GAAA,EAAkB,GAAGoE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAAxC,EAAC2C,GAAA,EAAY,GAAGF,GACd,4BAAC5D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACwB,IAAA,EAAe;AAAA,sBACftB,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),e=require("react"),H=require("@chakra-ui/react"),v=require("@chakra-ui/react/styled-system"),j=require("./stack-CIN13EDn.cjs.js"),d=require("./extract-style-props-85ZscQNb.cjs.js"),{withProvider:q,withContext:P}=H.createSlotRecipeContext({key:"card"}),h=q("div","root"),N=P("div","header"),$=P("div","content"),l=e.createContext(void 0),i=({ref:o,children:s,...t})=>{const r=v.useSlotRecipe({key:"card"}),[n,c]=r.splitVariantProps(t),[y,S]=d.extractStyleProps(c),[R,p]=e.useState(null),[f,x]=e.useState(null),m=e.useMemo(()=>({setHeader:p,setContent:x}),[p,x]);return a.jsx(l.Provider,{value:m,children:a.jsxs(h,{ref:o,...n,...y,...S,children:[a.jsxs(j.Stack,{direction:"column",gap:"200",children:[R,f]}),s]})})};i.displayName="Card.Root";const u=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx(N,{...r,...n,children:o});return t.setHeader(c),()=>t.setHeader(null)}},[o,r,n,t]),null};u.displayName="Card.Header";const C=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx($,{...r,...n,children:o});return t.setContent(c),()=>t.setContent(null)}},[o,r,n,t]),null};C.displayName="Card.Content";const k={Root:i,Header:u,Content:C};exports.Card=k;exports.CardContent=C;exports.CardHeader=u;exports.CardRoot=i;
|
|
2
|
+
//# sourceMappingURL=card-BDNwiSPj.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-BDNwiSPj.cjs.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"uOAQM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,MACP,CAAC,EAMYC,EACXH,EAAgD,MAAO,MAAM,EAElDI,EACXH,EAAiD,MAAO,QAAQ,EAErDI,EACXJ,EAAkD,MAAO,SAAS,ECXvDK,EAAcC,EAAAA,cACzB,MACF,EAOaJ,EAAW,CAAC,CAAE,IAAAK,EAAK,SAAAC,EAAU,GAAGC,KAAuB,CAElE,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,OAAQ,EACtC,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAK,EAG/D,CAACK,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEjE,CAACI,EAAYC,CAAS,EAAIC,EAAAA,SAAoB,IAAI,EAClD,CAACC,EAAaC,CAAU,EAAIF,EAAAA,SAAoB,IAAI,EAGpDG,EAAeC,EAAAA,QACnB,KAAO,CACL,UAAAL,EACA,WAAAG,CAAA,GAEF,CAACH,EAAWG,CAAU,CAAA,EAGxB,OACEG,EAAAA,IAACnB,EAAY,SAAZ,CAAqB,MAAOiB,EAC3B,SAAAG,EAAAA,KAACC,EAAA,CACC,IAAAnB,EACC,GAAGK,EACH,GAAGE,EACH,GAAGC,EAGJ,SAAA,CAAAU,EAAAA,KAACE,EAAAA,MAAA,CAAM,UAAU,SAAS,IAAI,MAC3B,SAAA,CAAAV,EACAG,CAAA,EACH,EAGCZ,CAAA,CAAA,CAAA,EAEL,CAEJ,EAEAN,EAAS,YAAc,YCnDhB,MAAMC,EAAa,CAAC,CAAE,SAAAK,EAAU,GAAGC,KAA6B,CACrE,MAAMmB,EAAUC,EAAAA,WAAWxB,CAAW,EAGhC,CAACS,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBP,CAAK,EAE7DqB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJP,EAAAA,IAACQ,EAAA,CAAgB,GAAGlB,EAAa,GAAGC,EACjC,SAAAP,EACH,EAGF,OAAAoB,EAAQ,UAAUG,CAAW,EAGtB,IAAMH,EAAQ,UAAU,IAAI,CACrC,CACF,EAAG,CAACpB,EAAUM,EAAYC,EAAiBa,CAAO,CAAC,EAE5C,IACT,EACAzB,EAAW,YAAc,cCvBlB,MAAMC,EAAc,CAAC,CAAE,SAAAI,EAAU,GAAGC,KAA8B,CACvE,MAAMmB,EAAUC,EAAAA,WAAWxB,CAAW,EAGhC,CAACS,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBP,CAAK,EAE7DqB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJP,EAAAA,IAACS,EAAA,CAAiB,GAAGnB,EAAa,GAAGC,EAClC,SAAAP,EACH,EAGF,OAAAoB,EAAQ,WAAWG,CAAW,EAGvB,IAAMH,EAAQ,WAAW,IAAI,CACtC,CACF,EAAG,CAACpB,EAAUM,EAAYC,EAAiBa,CAAO,CAAC,EAE5C,IACT,EAEAxB,EAAY,YAAc,eChBnB,MAAM8B,EAAO,CAgBlB,KAAMhC,EAgBN,OAAQC,EAkBR,QAASC,CACX"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as N, useState as C, useMemo as k, useContext as u, useEffect as m } from "react";
|
|
3
|
+
import { createSlotRecipeContext as E } from "@chakra-ui/react";
|
|
4
|
+
import { useSlotRecipe as $ } from "@chakra-ui/react/styled-system";
|
|
5
|
+
import { S as j } from "./stack-CoNreM7B.es.js";
|
|
6
|
+
import { e as c } from "./extract-style-props-BtI5SsUL.es.js";
|
|
7
|
+
const { withProvider: w, withContext: f } = /* @__PURE__ */ E({
|
|
8
|
+
key: "card"
|
|
9
|
+
}), V = /* @__PURE__ */ w("div", "root"), b = /* @__PURE__ */ f("div", "header"), g = /* @__PURE__ */ f("div", "content"), d = /* @__PURE__ */ N(
|
|
10
|
+
void 0
|
|
11
|
+
), x = ({ ref: e, children: r, ...t }) => {
|
|
12
|
+
const o = $({ key: "card" }), [n, s] = o.splitVariantProps(t), [v, H] = c(s), [R, l] = C(null), [S, i] = C(null), h = k(
|
|
13
|
+
() => ({
|
|
14
|
+
setHeader: l,
|
|
15
|
+
setContent: i
|
|
16
|
+
}),
|
|
17
|
+
[l, i]
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ a(d.Provider, { value: h, children: /* @__PURE__ */ p(
|
|
20
|
+
V,
|
|
21
|
+
{
|
|
22
|
+
ref: e,
|
|
23
|
+
...n,
|
|
24
|
+
...v,
|
|
25
|
+
...H,
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ p(j, { direction: "column", gap: "200", children: [
|
|
28
|
+
R,
|
|
29
|
+
S
|
|
30
|
+
] }),
|
|
31
|
+
r
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
};
|
|
36
|
+
x.displayName = "Card.Root";
|
|
37
|
+
const P = ({ children: e, ...r }) => {
|
|
38
|
+
const t = u(d), [o, n] = c(r);
|
|
39
|
+
return m(() => {
|
|
40
|
+
if (t) {
|
|
41
|
+
const s = /* @__PURE__ */ a(b, { ...o, ...n, children: e });
|
|
42
|
+
return t.setHeader(s), () => t.setHeader(null);
|
|
43
|
+
}
|
|
44
|
+
}, [e, o, n, t]), null;
|
|
45
|
+
};
|
|
46
|
+
P.displayName = "Card.Header";
|
|
47
|
+
const y = ({ children: e, ...r }) => {
|
|
48
|
+
const t = u(d), [o, n] = c(r);
|
|
49
|
+
return m(() => {
|
|
50
|
+
if (t) {
|
|
51
|
+
const s = /* @__PURE__ */ a(g, { ...o, ...n, children: e });
|
|
52
|
+
return t.setContent(s), () => t.setContent(null);
|
|
53
|
+
}
|
|
54
|
+
}, [e, o, n, t]), null;
|
|
55
|
+
};
|
|
56
|
+
y.displayName = "Card.Content";
|
|
57
|
+
const F = {
|
|
58
|
+
/**
|
|
59
|
+
* # Card.Root
|
|
60
|
+
*
|
|
61
|
+
* The root component that provides context and styling for the card.
|
|
62
|
+
* Must wrap all card parts (Header, Content) to coordinate their behavior.
|
|
63
|
+
* Accepts styling variants for padding, border, elevation, and background.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```tsx
|
|
67
|
+
* <Card.Root cardPadding="md" borderStyle="outlined" elevation="elevated">
|
|
68
|
+
* <Card.Header>Title</Card.Header>
|
|
69
|
+
* <Card.Content>Content</Card.Content>
|
|
70
|
+
* </Card.Root>
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
Root: x,
|
|
74
|
+
/**
|
|
75
|
+
* # Card.Header
|
|
76
|
+
*
|
|
77
|
+
* The header section of the card, typically containing the card title
|
|
78
|
+
* or primary heading. Automatically positioned above the card content
|
|
79
|
+
* in a consistent layout.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```tsx
|
|
83
|
+
* <Card.Root>
|
|
84
|
+
* <Card.Header>Card Title</Card.Header>
|
|
85
|
+
* <Card.Content>Content here</Card.Content>
|
|
86
|
+
* </Card.Root>
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
Header: P,
|
|
90
|
+
/**
|
|
91
|
+
* # Card.Content
|
|
92
|
+
*
|
|
93
|
+
* The main content area of the card. Contains the primary information,
|
|
94
|
+
* body text, or interactive elements. Automatically positioned below
|
|
95
|
+
* the card header in a consistent layout.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```tsx
|
|
99
|
+
* <Card.Root>
|
|
100
|
+
* <Card.Header>Title</Card.Header>
|
|
101
|
+
* <Card.Content>
|
|
102
|
+
* <Text>This is the main card content.</Text>
|
|
103
|
+
* </Card.Content>
|
|
104
|
+
* </Card.Root>
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
Content: y
|
|
108
|
+
};
|
|
109
|
+
export {
|
|
110
|
+
F as C,
|
|
111
|
+
x as a,
|
|
112
|
+
P as b,
|
|
113
|
+
y as c
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=card-q1bqwXyw.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-q1bqwXyw.es.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;AAQA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IACX,gBAAAH,EAAgD,OAAO,MAAM,GAElDI,IACX,gBAAAH,EAAiD,OAAO,QAAQ,GAErDI,IACX,gBAAAJ,EAAkD,OAAO,SAAS,GCXvDK,IAAc,gBAAAC;AAAA,EACzB;AACF,GAOaJ,IAAW,CAAC,EAAE,KAAAK,GAAK,UAAAC,GAAU,GAAGC,QAAuB;AAElE,QAAMC,IAASC,EAAc,EAAE,KAAK,QAAQ,GACtC,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAK,GAG/D,CAACK,GAAYC,CAAe,IAAIC,EAAkBH,CAAe,GAEjE,CAACI,GAAYC,CAAS,IAAIC,EAAoB,IAAI,GAClD,CAACC,GAAaC,CAAU,IAAIF,EAAoB,IAAI,GAGpDG,IAAeC;AAAA,IACn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AAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACpB,GAAUM,GAAYC,GAAiBa,CAAO,CAAC,GAE5C;AACT;AAEAxB,EAAY,cAAc;AChBnB,MAAM8B,IAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBlB,MAAMhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBN,QAAQC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBR,SAASC;AACX;"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as P, jsxs as D, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { useSlotRecipe as H } from "@chakra-ui/react/styled-system";
|
|
3
3
|
import { Check as N, Remove as L } from "@commercetools/nimbus-icons";
|
|
4
|
-
import { e as T } from "./extract-style-props-
|
|
4
|
+
import { e as T } from "./extract-style-props-BtI5SsUL.es.js";
|
|
5
5
|
import { createSlotRecipeContext as W } from "@chakra-ui/react";
|
|
6
6
|
import { a as z } from "./RSPContexts-DLgb84PF.es.js";
|
|
7
|
-
import { $ as A, c as G, d as J, f as S, a as K } from "./utils-
|
|
7
|
+
import { $ as A, c as G, d as J, f as S, a as K } from "./utils-B6pV5ewr.es.js";
|
|
8
8
|
import { $ as Q } from "./Form-CXcEMuBf.es.js";
|
|
9
|
-
import {
|
|
9
|
+
import { $ as V } from "./mergeProps-Dsl8k3Ig.es.js";
|
|
10
10
|
import { $ as U } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
11
11
|
import { $ as X } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
12
12
|
import R, { useEffect as k, useMemo as B, useRef as Y, forwardRef as Z, useContext as ee, createContext as ie } from "react";
|
|
13
|
-
import { $ as g, a as ae, b as O, c as de } from "./useFormValidation-
|
|
14
|
-
import { $ as te } from "./usePress-
|
|
15
|
-
import { $ as le } from "./useToggle-
|
|
13
|
+
import { $ as g, a as ae, b as O, c as de } from "./useFormValidation-BCVLtR0U.es.js";
|
|
14
|
+
import { $ as te } from "./usePress-BuLomD_X.es.js";
|
|
15
|
+
import { $ as le } from "./useToggle-DKP3zVOY.es.js";
|
|
16
16
|
import { $ as q } from "./useToggleState-Uh0wTgdI.es.js";
|
|
17
|
-
import { $ as oe } from "./useFocusRing-
|
|
18
|
-
import { $ as ne } from "./useHover-
|
|
19
|
-
import { $ as re } from "./VisuallyHidden-
|
|
17
|
+
import { $ as oe } from "./useFocusRing-FPt2Rwil.es.js";
|
|
18
|
+
import { $ as ne } from "./useHover-BQRSM3qT.es.js";
|
|
19
|
+
import { $ as re } from "./VisuallyHidden-BLRzeMsq.es.js";
|
|
20
20
|
function _(i, e, a) {
|
|
21
21
|
let o = g({
|
|
22
22
|
...i,
|
|
@@ -218,4 +218,4 @@ he.displayName = "Checkbox";
|
|
|
218
218
|
export {
|
|
219
219
|
he as C
|
|
220
220
|
};
|
|
221
|
-
//# sourceMappingURL=checkbox-
|
|
221
|
+
//# sourceMappingURL=checkbox-BaFXINPD.es.js.map
|