@commercetools/nimbus 0.0.9-rc7 → 0.0.9-rc8
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-Dtn-lV5G.js → Button-BxcMDv2N.js} +7 -7
- package/dist/chunks/{Button-Dtn-lV5G.js.map → Button-BxcMDv2N.js.map} +1 -1
- package/dist/chunks/{Button-DOBmPkg6.js → Button-tPOlfQRd.js} +2 -2
- package/dist/chunks/{Button-DOBmPkg6.js.map → Button-tPOlfQRd.js.map} +1 -1
- package/dist/chunks/{DateField-C2G53tNO.js → DateField-CaR3Qeda.js} +24 -24
- package/dist/chunks/{DateField-C2G53tNO.js.map → DateField-CaR3Qeda.js.map} +1 -1
- package/dist/chunks/{DateField-D0hZjHMU.js → DateField-D3h6vCMK.js} +2 -2
- package/dist/chunks/{DateField-D0hZjHMU.js.map → DateField-D3h6vCMK.js.map} +1 -1
- package/dist/chunks/{Dialog-CFCn7n-k.js → Dialog-5VrXdl86.js} +2 -2
- package/dist/chunks/{Dialog-CFCn7n-k.js.map → Dialog-5VrXdl86.js.map} +1 -1
- package/dist/chunks/{Dialog-DsJ3jo2g.js → Dialog-DJv-Zg_L.js} +18 -18
- package/dist/chunks/{Dialog-DsJ3jo2g.js.map → Dialog-DJv-Zg_L.js.map} +1 -1
- package/dist/chunks/{FocusScope-B6O_mZ9T.js → FocusScope-CsXy0kJw.js} +6 -6
- package/dist/chunks/{FocusScope-B6O_mZ9T.js.map → FocusScope-CsXy0kJw.js.map} +1 -1
- package/dist/chunks/{FocusScope-Dz6kDOQY.js → FocusScope-Cysx7oI0.js} +2 -2
- package/dist/chunks/{FocusScope-Dz6kDOQY.js.map → FocusScope-Cysx7oI0.js.map} +1 -1
- package/dist/chunks/{Group-DR52Cv_h.js → Group-CTpcJZmt.js} +2 -2
- package/dist/chunks/{Group-DR52Cv_h.js.map → Group-CTpcJZmt.js.map} +1 -1
- package/dist/chunks/{Group-BMf2x0bV.js → Group-D3CaEDfr.js} +6 -6
- package/dist/chunks/{Group-BMf2x0bV.js.map → Group-D3CaEDfr.js.map} +1 -1
- package/dist/chunks/Hidden-CNJIJ63M.js +2 -0
- package/dist/chunks/{Hidden-BxRZGdEW.js.map → Hidden-CNJIJ63M.js.map} +1 -1
- package/dist/chunks/{Hidden-D6Lfpu1U.js → Hidden-CeBYiBUb.js} +1 -8
- package/dist/chunks/{Hidden-D6Lfpu1U.js.map → Hidden-CeBYiBUb.js.map} +1 -1
- package/dist/chunks/{Input-C6fX3A5E.js → Input-0vJb_5Js.js} +6 -6
- package/dist/chunks/{Input-C6fX3A5E.js.map → Input-0vJb_5Js.js.map} +1 -1
- package/dist/chunks/{Input-CRt1BJ4n.js → Input-rMOtwpe-.js} +2 -2
- package/dist/chunks/{Input-CRt1BJ4n.js.map → Input-rMOtwpe-.js.map} +1 -1
- package/dist/chunks/ListBox-Dmkou3Hm.js +18 -0
- package/dist/chunks/ListBox-Dmkou3Hm.js.map +1 -0
- package/dist/chunks/{ListBox-DH3lufv2.js → ListBox-Dss9OMcn.js} +676 -743
- package/dist/chunks/ListBox-Dss9OMcn.js.map +1 -0
- package/dist/chunks/{OverlayArrow-DsxKFiKE.js → OverlayArrow-Bs2caVoG.js} +2 -2
- package/dist/chunks/{OverlayArrow-DsxKFiKE.js.map → OverlayArrow-Bs2caVoG.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-B1kv2W8j.js → OverlayArrow-qjQZbu8u.js} +4 -4
- package/dist/chunks/{OverlayArrow-B1kv2W8j.js.map → OverlayArrow-qjQZbu8u.js.map} +1 -1
- package/dist/chunks/RSPContexts-AkhSBHGO.js +6 -0
- package/dist/chunks/{RSPContexts-CxXY5Uko.js.map → RSPContexts-AkhSBHGO.js.map} +1 -1
- package/dist/chunks/RSPContexts-CIAIlAKH.js +2 -0
- package/dist/chunks/{RSPContexts-qzadeFSO.js.map → RSPContexts-CIAIlAKH.js.map} +1 -1
- package/dist/chunks/{SSRProvider-D8lZ0o6A.js → SSRProvider-eIEwc-2s.js} +2 -2
- package/dist/chunks/{SSRProvider-D8lZ0o6A.js.map → SSRProvider-eIEwc-2s.js.map} +1 -1
- package/dist/chunks/{TextArea-Ud71sffr.js → TextArea-BfVV0_3h.js} +2 -2
- package/dist/chunks/{TextArea-Ud71sffr.js.map → TextArea-BfVV0_3h.js.map} +1 -1
- package/dist/chunks/{TextArea-D-S_3q08.js → TextArea-Q-NI2yW5.js} +5 -5
- package/dist/chunks/{TextArea-D-S_3q08.js.map → TextArea-Q-NI2yW5.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BpUTcba_.js → VisuallyHidden-2REhp9RT.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BpUTcba_.js.map → VisuallyHidden-2REhp9RT.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BxenYie4.js → VisuallyHidden-Cg0LJ1Dh.js} +2 -2
- package/dist/chunks/{VisuallyHidden-BxenYie4.js.map → VisuallyHidden-Cg0LJ1Dh.js.map} +1 -1
- package/dist/chunks/{accordion-Dc3IqP_d.js → accordion-D4Qqg89m.js} +12 -12
- package/dist/chunks/{accordion-Dc3IqP_d.js.map → accordion-D4Qqg89m.js.map} +1 -1
- package/dist/chunks/{accordion-8pelAIyn.js → accordion-vrKLW-re.js} +2 -2
- package/dist/chunks/{accordion-8pelAIyn.js.map → accordion-vrKLW-re.js.map} +1 -1
- package/dist/chunks/{alert-DxoCjJDr.js → alert-B738R1TJ.js} +2 -2
- package/dist/chunks/{alert-DxoCjJDr.js.map → alert-B738R1TJ.js.map} +1 -1
- package/dist/chunks/{alert-DSpVYhCa.js → alert-BX5IPnc_.js} +10 -10
- package/dist/chunks/{alert-DSpVYhCa.js.map → alert-BX5IPnc_.js.map} +1 -1
- package/dist/chunks/{avatar-p4QfPsxN.js → avatar-85FE_L0r.js} +3 -3
- package/dist/chunks/{avatar-p4QfPsxN.js.map → avatar-85FE_L0r.js.map} +1 -1
- package/dist/chunks/{avatar.recipe-BV5OkaPx.js → avatar.recipe-BSmmqvwQ.js} +2 -2
- package/dist/chunks/{avatar.recipe-BV5OkaPx.js.map → avatar.recipe-BSmmqvwQ.js.map} +1 -1
- package/dist/chunks/{badge-CbqLqIo9.js → badge-C1bFH3CB.js} +4 -4
- package/dist/chunks/{badge-CbqLqIo9.js.map → badge-C1bFH3CB.js.map} +1 -1
- package/dist/chunks/{button-vfAeHh1t.js → button-BLZONb0_.js} +2 -2
- package/dist/chunks/{button-vfAeHh1t.js.map → button-BLZONb0_.js.map} +1 -1
- package/dist/chunks/{button-Ckftvc2h.js → button-zSDA7FRw.js} +8 -8
- package/dist/chunks/{button-Ckftvc2h.js.map → button-zSDA7FRw.js.map} +1 -1
- package/dist/chunks/{button.recipe-DbFAOebT.js → button.recipe-DzOS_Bqm.js} +2 -2
- package/dist/chunks/{button.recipe-DbFAOebT.js.map → button.recipe-DzOS_Bqm.js.map} +1 -1
- package/dist/chunks/{calendar-Bz_gsrGo.js → calendar-BIB7Bqqn.js} +22 -22
- package/dist/chunks/{calendar-Bz_gsrGo.js.map → calendar-BIB7Bqqn.js.map} +1 -1
- package/dist/chunks/{calendar-Cs2rHplP.js → calendar-DRE_oZOp.js} +2 -2
- package/dist/chunks/{calendar-Cs2rHplP.js.map → calendar-DRE_oZOp.js.map} +1 -1
- package/dist/chunks/{calendar.recipe-RdPylgdo.js → calendar.recipe-B2sMokBn.js} +2 -2
- package/dist/chunks/{calendar.recipe-RdPylgdo.js.map → calendar.recipe-B2sMokBn.js.map} +1 -1
- package/dist/chunks/{card-B0BsL4ol.js → card-DAC7L3R0.js} +2 -2
- package/dist/chunks/{card-B0BsL4ol.js.map → card-DAC7L3R0.js.map} +1 -1
- package/dist/chunks/{card-CQwHrkIF.js → card-DSC-PYAU.js} +9 -9
- package/dist/chunks/{card-CQwHrkIF.js.map → card-DSC-PYAU.js.map} +1 -1
- package/dist/chunks/{checkbox-Cwb_QZjZ.js → checkbox-B1w8RLi0.js} +2 -2
- package/dist/chunks/{checkbox-Cwb_QZjZ.js.map → checkbox-B1w8RLi0.js.map} +1 -1
- package/dist/chunks/{checkbox-C5jtHkVZ.js → checkbox-CJQ1O9W5.js} +11 -11
- package/dist/chunks/{checkbox-C5jtHkVZ.js.map → checkbox-CJQ1O9W5.js.map} +1 -1
- package/dist/chunks/{combobox-BACFWgP3.js → combobox-DLABf790.js} +2 -2
- package/dist/chunks/{combobox-BACFWgP3.js.map → combobox-DLABf790.js.map} +1 -1
- package/dist/chunks/{combobox--lHdni2Z.js → combobox-ZcHPms3T.js} +23 -23
- package/dist/chunks/{combobox--lHdni2Z.js.map → combobox-ZcHPms3T.js.map} +1 -1
- package/dist/chunks/{combobox.recipe-KVsma6zb.js → combobox.recipe-BIn4O0NT.js} +43 -18
- package/dist/chunks/{combobox.recipe-KVsma6zb.js.map → combobox.recipe-BIn4O0NT.js.map} +1 -1
- package/dist/chunks/combobox.recipe-Da71Y6ye.js +2 -0
- package/dist/chunks/{combobox.recipe-BzaPWi66.js.map → combobox.recipe-Da71Y6ye.js.map} +1 -1
- package/dist/chunks/{context-CgP0qpkX.js → context-CI0Y3O6x.js} +4 -4
- package/dist/chunks/{context-CgP0qpkX.js.map → context-CI0Y3O6x.js.map} +1 -1
- package/dist/chunks/{date-input-9oZMESC7.js → date-input-DnjW061n.js} +2 -2
- package/dist/chunks/{date-input-9oZMESC7.js.map → date-input-DnjW061n.js.map} +1 -1
- package/dist/chunks/{date-input-DK9U-Nh8.js → date-input-tzOJ2b9K.js} +5 -5
- package/dist/chunks/{date-input-DK9U-Nh8.js.map → date-input-tzOJ2b9K.js.map} +1 -1
- package/dist/chunks/{date-input.recipe-BcsevQtW.js → date-input.recipe-BtWEmJGK.js} +2 -2
- package/dist/chunks/{date-input.recipe-BcsevQtW.js.map → date-input.recipe-BtWEmJGK.js.map} +1 -1
- package/dist/chunks/date-picker-BOJn_b_Y.js +2 -0
- package/dist/chunks/{date-picker-CwXGnIiO.js.map → date-picker-BOJn_b_Y.js.map} +1 -1
- package/dist/chunks/{date-picker-ShPOqwXi.js → date-picker-npElUeVw.js} +54 -58
- package/dist/chunks/{date-picker-ShPOqwXi.js.map → date-picker-npElUeVw.js.map} +1 -1
- package/dist/chunks/{date-picker.recipe-BJ79OJaw.js → date-picker.recipe-Dy6NmKHA.js} +2 -2
- package/dist/chunks/{date-picker.recipe-BJ79OJaw.js.map → date-picker.recipe-Dy6NmKHA.js.map} +1 -1
- package/dist/chunks/focusSafely-DKDcdc1Z.js +36 -0
- package/dist/chunks/{focusSafely-DuMeO0J4.js.map → focusSafely-DKDcdc1Z.js.map} +1 -1
- package/dist/chunks/focusSafely-DTxIMq-P.js +2 -0
- package/dist/chunks/{focusSafely-D_uW2Kp-.js.map → focusSafely-DTxIMq-P.js.map} +1 -1
- package/dist/chunks/{form-field-BUoO6HEy.js → form-field-CblzjGEw.js} +2 -2
- package/dist/chunks/{form-field-BUoO6HEy.js.map → form-field-CblzjGEw.js.map} +1 -1
- package/dist/chunks/{form-field-Dr8lL5SU.js → form-field-D_qT2LNU.js} +8 -8
- package/dist/chunks/{form-field-Dr8lL5SU.js.map → form-field-D_qT2LNU.js.map} +1 -1
- package/dist/chunks/{grid-CLVDMJAz.js → grid-CugcJxRP.js} +2 -2
- package/dist/chunks/{grid-CLVDMJAz.js.map → grid-CugcJxRP.js.map} +1 -1
- package/dist/chunks/{icon-CjRXcxB9.js → icon-BFNYuilh.js} +3 -3
- package/dist/chunks/{icon-CjRXcxB9.js.map → icon-BFNYuilh.js.map} +1 -1
- package/dist/chunks/{icon-button-1V59UrF-.js → icon-button-DVBfoOHT.js} +2 -2
- package/dist/chunks/{icon-button-1V59UrF-.js.map → icon-button-DVBfoOHT.js.map} +1 -1
- package/dist/chunks/{icon-button-CE-LnFNq.js → icon-button-Ds1Wzyc1.js} +2 -2
- package/dist/chunks/{icon-button-CE-LnFNq.js.map → icon-button-Ds1Wzyc1.js.map} +1 -1
- package/dist/chunks/{link-CCDnA-Z-.js → link-BfHXJGo9.js} +2 -2
- package/dist/chunks/{link-CCDnA-Z-.js.map → link-BfHXJGo9.js.map} +1 -1
- package/dist/chunks/{link-1lfvUDKX.js → link-CE73eHS0.js} +6 -6
- package/dist/chunks/{link-1lfvUDKX.js.map → link-CE73eHS0.js.map} +1 -1
- package/dist/chunks/{link.recipe-CbFF3IUG.js → link.recipe-Ba2by0OG.js} +2 -2
- package/dist/chunks/{link.recipe-CbFF3IUG.js.map → link.recipe-Ba2by0OG.js.map} +1 -1
- package/dist/chunks/{loading-spinner-CJh2luQX.js → loading-spinner-AhRrVHKd.js} +6 -6
- package/dist/chunks/{loading-spinner-CJh2luQX.js.map → loading-spinner-AhRrVHKd.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-urU2Yczu.js → make-element-focusable-_kgqlXGc.js} +4 -4
- package/dist/chunks/{make-element-focusable-urU2Yczu.js.map → make-element-focusable-_kgqlXGc.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-ByC0LOwU.js → make-element-focusable-ijZC9F3C.js} +2 -2
- package/dist/chunks/{make-element-focusable-ByC0LOwU.js.map → make-element-focusable-ijZC9F3C.js.map} +1 -1
- package/dist/chunks/{mergeProps-DAjoWNOq.js → mergeProps-tCFA9wZ1.js} +3 -3
- package/dist/chunks/{mergeProps-DAjoWNOq.js.map → mergeProps-tCFA9wZ1.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-B8v-mx89.js → multiline-text-input-C8yclL-x.js} +2 -2
- package/dist/chunks/{multiline-text-input-B8v-mx89.js.map → multiline-text-input-C8yclL-x.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BS9tsQnR.js → multiline-text-input-D6P_NVi6.js} +7 -7
- package/dist/chunks/{multiline-text-input-BS9tsQnR.js.map → multiline-text-input-D6P_NVi6.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-jZPLt7_j.js → nimbus-provider-CTg-F7UD.js} +2 -2
- package/dist/chunks/{nimbus-provider-jZPLt7_j.js.map → nimbus-provider-CTg-F7UD.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CFSRgGKt.js → nimbus-provider-h_Fu03Zk.js} +39 -39
- package/dist/chunks/{nimbus-provider-CFSRgGKt.js.map → nimbus-provider-h_Fu03Zk.js.map} +1 -1
- package/dist/chunks/{number-input-BFA-uYaI.js → number-input-BTbzj3aN.js} +16 -16
- package/dist/chunks/{number-input-BFA-uYaI.js.map → number-input-BTbzj3aN.js.map} +1 -1
- package/dist/chunks/{number-input-CDaEIN66.js → number-input-D7D2ahNb.js} +2 -2
- package/dist/chunks/{number-input-CDaEIN66.js.map → number-input-D7D2ahNb.js.map} +1 -1
- package/dist/chunks/{number-input.recipe-CbLyhXgE.js → number-input.recipe-8gbsGnLJ.js} +2 -2
- package/dist/chunks/{number-input.recipe-CbLyhXgE.js.map → number-input.recipe-8gbsGnLJ.js.map} +1 -1
- package/dist/chunks/{password-input-CYZ0QR0V.js → password-input-BD5GZKX7.js} +2 -2
- package/dist/chunks/{password-input-CYZ0QR0V.js.map → password-input-BD5GZKX7.js.map} +1 -1
- package/dist/chunks/{password-input-CEUQjqeT.js → password-input-fiypX-6w.js} +5 -5
- package/dist/chunks/{password-input-CEUQjqeT.js.map → password-input-fiypX-6w.js.map} +1 -1
- package/dist/chunks/{radio-input-cone4teU.js → radio-input-4v_6tT94.js} +18 -18
- package/dist/chunks/{radio-input-cone4teU.js.map → radio-input-4v_6tT94.js.map} +1 -1
- package/dist/chunks/{radio-input-5mFGE9qS.js → radio-input-B2IVmel0.js} +2 -2
- package/dist/chunks/{radio-input-5mFGE9qS.js.map → radio-input-B2IVmel0.js.map} +1 -1
- package/dist/chunks/{radio-input.recipe-QYiFg_Kf.js → radio-input.recipe-CM9R2ilP.js} +2 -2
- package/dist/chunks/{radio-input.recipe-QYiFg_Kf.js.map → radio-input.recipe-CM9R2ilP.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-Dtwi5Vrc.js → scrollIntoView-CXOsfZIS.js} +2 -2
- package/dist/chunks/{scrollIntoView-Dtwi5Vrc.js.map → scrollIntoView-CXOsfZIS.js.map} +1 -1
- package/dist/chunks/{select-CSp1HFJF.js → select-7cuL-dmI.js} +2 -2
- package/dist/chunks/{select-CSp1HFJF.js.map → select-7cuL-dmI.js.map} +1 -1
- package/dist/chunks/{select-BZ2LnuaW.js → select-DH4OUn_y.js} +22 -22
- package/dist/chunks/{select-BZ2LnuaW.js.map → select-DH4OUn_y.js.map} +1 -1
- package/dist/chunks/{select.recipe-DS5ZRkug.js → select.recipe-CXWsUldF.js} +2 -2
- package/dist/chunks/{select.recipe-DS5ZRkug.js.map → select.recipe-CXWsUldF.js.map} +1 -1
- package/dist/chunks/{simple-grid-D6PoDK0-.js → simple-grid-CFOP9g2P.js} +2 -2
- package/dist/chunks/{simple-grid-D6PoDK0-.js.map → simple-grid-CFOP9g2P.js.map} +1 -1
- package/dist/chunks/{switch-CZji_hBH.js → switch-CnbvTSF9.js} +2 -2
- package/dist/chunks/{switch-CZji_hBH.js.map → switch-CnbvTSF9.js.map} +1 -1
- package/dist/chunks/{switch-QvuLHJL-.js → switch-DdmbHa5R.js} +11 -11
- package/dist/chunks/{switch-QvuLHJL-.js.map → switch-DdmbHa5R.js.map} +1 -1
- package/dist/chunks/{switch.recipe-D3gb3Xj_.js → switch.recipe-CWOjEnIy.js} +2 -2
- package/dist/chunks/{switch.recipe-D3gb3Xj_.js.map → switch.recipe-CWOjEnIy.js.map} +1 -1
- package/dist/chunks/{tag-group-v87SYIPj.js → tag-group-B6w2MEyf.js} +2 -2
- package/dist/chunks/{tag-group-v87SYIPj.js.map → tag-group-B6w2MEyf.js.map} +1 -1
- package/dist/chunks/{tag-group-JxvggHdo.js → tag-group-CdLfw2gL.js} +21 -21
- package/dist/chunks/{tag-group-JxvggHdo.js.map → tag-group-CdLfw2gL.js.map} +1 -1
- package/dist/chunks/{text-BTD3oGaQ.js → text-MzQiG_1j.js} +2 -2
- package/dist/chunks/{text-BTD3oGaQ.js.map → text-MzQiG_1j.js.map} +1 -1
- package/dist/chunks/{text-input-Ov6DSJhs.js → text-input-CtJ2FHJ3.js} +2 -2
- package/dist/chunks/{text-input-Ov6DSJhs.js.map → text-input-CtJ2FHJ3.js.map} +1 -1
- package/dist/chunks/{text-input-CpABYE1g.js → text-input-SYXEV4sT.js} +5 -5
- package/dist/chunks/{text-input-CpABYE1g.js.map → text-input-SYXEV4sT.js.map} +1 -1
- package/dist/chunks/{text-input.recipe-CGpq33Pp.js → text-input.recipe-KNoUuq-g.js} +2 -2
- package/dist/chunks/{text-input.recipe-CGpq33Pp.js.map → text-input.recipe-KNoUuq-g.js.map} +1 -1
- package/dist/chunks/{time-input-DS6RgF12.js → time-input-DCJYjKRY.js} +5 -5
- package/dist/chunks/{time-input-DS6RgF12.js.map → time-input-DCJYjKRY.js.map} +1 -1
- package/dist/chunks/{time-input-BIUdp4gX.js → time-input-sjvN5iZ-.js} +2 -2
- package/dist/chunks/{time-input-BIUdp4gX.js.map → time-input-sjvN5iZ-.js.map} +1 -1
- package/dist/chunks/toggle-button-group-D-3UQLdL.js +2 -0
- package/dist/chunks/{toggle-button-group-BdLaFCWe.js.map → toggle-button-group-D-3UQLdL.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-0a-aeCiH.js → toggle-button-group-bjkXTCxu.js} +76 -66
- package/dist/chunks/{toggle-button-group-0a-aeCiH.js.map → toggle-button-group-bjkXTCxu.js.map} +1 -1
- package/dist/chunks/{tooltip-_9ZfCa2D.js → tooltip-C-K5iatf.js} +2 -2
- package/dist/chunks/{tooltip-_9ZfCa2D.js.map → tooltip-C-K5iatf.js.map} +1 -1
- package/dist/chunks/{tooltip-BdwdWMCL.js → tooltip-DvoZxHgo.js} +10 -10
- package/dist/chunks/{tooltip-BdwdWMCL.js.map → tooltip-DvoZxHgo.js.map} +1 -1
- package/dist/chunks/{tooltip.recipe-D9fYIQZz.js → tooltip.recipe-B9-7OFCi.js} +2 -2
- package/dist/chunks/{tooltip.recipe-D9fYIQZz.js.map → tooltip.recipe-B9-7OFCi.js.map} +1 -1
- package/dist/chunks/{useButton-BRqxk71F.js → useButton-BZrUUsJ0.js} +2 -2
- package/dist/chunks/{useButton-BRqxk71F.js.map → useButton-BZrUUsJ0.js.map} +1 -1
- package/dist/chunks/{useButton-CGSIlDH9.js → useButton-C5ATfvOf.js} +4 -4
- package/dist/chunks/{useButton-CGSIlDH9.js.map → useButton-C5ATfvOf.js.map} +1 -1
- package/dist/chunks/{useCollator-PO0ZNDFD.js → useCollator-BbJYfLGN.js} +2 -2
- package/dist/chunks/{useCollator-PO0ZNDFD.js.map → useCollator-BbJYfLGN.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-CZ3YJIiV.js → useDateFormatter-5Oe96jpR.js} +3 -3
- package/dist/chunks/{useDateFormatter-CZ3YJIiV.js.map → useDateFormatter-5Oe96jpR.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-BYTqyfPM.js → useDateFormatter-6FAMsnNT.js} +2 -2
- package/dist/chunks/{useDateFormatter-BYTqyfPM.js.map → useDateFormatter-6FAMsnNT.js.map} +1 -1
- package/dist/chunks/{useEvent-9hDa8zoA.js → useEvent-COOhq9E7.js} +2 -2
- package/dist/chunks/{useEvent-9hDa8zoA.js.map → useEvent-COOhq9E7.js.map} +1 -1
- package/dist/chunks/{useField-3jug3XBb.js → useField-BY58-2Ft.js} +3 -3
- package/dist/chunks/{useField-3jug3XBb.js.map → useField-BY58-2Ft.js.map} +1 -1
- package/dist/chunks/useFocus-C1BtlMbo.js +2 -0
- package/dist/chunks/{useFocus-CP2rlXSg.js.map → useFocus-C1BtlMbo.js.map} +1 -1
- package/dist/chunks/useFocus-CuXxpIRa.js +176 -0
- package/dist/chunks/{useFocus-mfjoACQ_.js.map → useFocus-CuXxpIRa.js.map} +1 -1
- package/dist/chunks/{useFocusRing-C4z9NtLP.js → useFocusRing-CYHdvund.js} +2 -2
- package/dist/chunks/{useFocusRing-C4z9NtLP.js.map → useFocusRing-CYHdvund.js.map} +1 -1
- package/dist/chunks/{useFocusRing-C8yOnkHj.js → useFocusRing-DNviWqC5.js} +3 -3
- package/dist/chunks/{useFocusRing-C8yOnkHj.js.map → useFocusRing-DNviWqC5.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-CLd9itwe.js → useFocusWithin-AKRo9mz0.js} +2 -2
- package/dist/chunks/{useFocusWithin-CLd9itwe.js.map → useFocusWithin-AKRo9mz0.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-BENrOz43.js → useFocusWithin-hB6WzPnG.js} +2 -2
- package/dist/chunks/{useFocusWithin-BENrOz43.js.map → useFocusWithin-hB6WzPnG.js.map} +1 -1
- package/dist/chunks/{useFocusable-IwGfkXQG.js → useFocusable-DBEQCS1T.js} +4 -4
- package/dist/chunks/{useFocusable-IwGfkXQG.js.map → useFocusable-DBEQCS1T.js.map} +1 -1
- package/dist/chunks/{useFocusable-C7jAQfqU.js → useFocusable-DbCayKl8.js} +2 -2
- package/dist/chunks/{useFocusable-C7jAQfqU.js.map → useFocusable-DbCayKl8.js.map} +1 -1
- package/dist/chunks/{useFormReset-CzGCrdxu.js → useFormReset-BgCb2h6r.js} +2 -2
- package/dist/chunks/{useFormReset-CzGCrdxu.js.map → useFormReset-BgCb2h6r.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BSXga2hX.js → useFormValidation-CbunG7dK.js} +2 -2
- package/dist/chunks/{useFormValidation-BSXga2hX.js.map → useFormValidation-CbunG7dK.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BcDTI6Mp.js → useFormValidation-DoG8pVu2.js} +4 -4
- package/dist/chunks/{useFormValidation-BcDTI6Mp.js.map → useFormValidation-DoG8pVu2.js.map} +1 -1
- package/dist/chunks/{useHover-CbdI4C89.js → useHover-3Zee5Ds5.js} +2 -2
- package/dist/chunks/{useHover-CbdI4C89.js.map → useHover-3Zee5Ds5.js.map} +1 -1
- package/dist/chunks/{useHover-ByIffPdS.js → useHover-BxTJz4Qm.js} +2 -2
- package/dist/chunks/{useHover-ByIffPdS.js.map → useHover-BxTJz4Qm.js.map} +1 -1
- package/dist/chunks/{useLabel-Dd6M1Y4b.js → useLabel-lLz9KH79.js} +3 -3
- package/dist/chunks/{useLabel-Dd6M1Y4b.js.map → useLabel-lLz9KH79.js.map} +1 -1
- package/dist/chunks/{useLabels-B1BLA0b7.js → useLabels-CrNu-inr.js} +2 -2
- package/dist/chunks/{useLabels-B1BLA0b7.js.map → useLabels-CrNu-inr.js.map} +1 -1
- package/dist/chunks/{useLocalizedStringFormatter-JGrQYmnh.js → useLocalizedStringFormatter-D1iIJE39.js} +3 -3
- package/dist/chunks/{useLocalizedStringFormatter-JGrQYmnh.js.map → useLocalizedStringFormatter-D1iIJE39.js.map} +1 -1
- package/dist/chunks/{useNumberFormatter-Dx-esBDc.js → useNumberFormatter-C8xwHQXb.js} +2 -2
- package/dist/chunks/{useNumberFormatter-Dx-esBDc.js.map → useNumberFormatter-C8xwHQXb.js.map} +1 -1
- package/dist/chunks/{usePress-C9YKhG_e.js → usePress-CGAMyl6q.js} +2 -2
- package/dist/chunks/{usePress-C9YKhG_e.js.map → usePress-CGAMyl6q.js.map} +1 -1
- package/dist/chunks/{usePress-dJvNd3G7.js → usePress-Dk0M2Js8.js} +7 -7
- package/dist/chunks/{usePress-dJvNd3G7.js.map → usePress-Dk0M2Js8.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-DovbyYzZ.js → useSingleSelectListState--jan8NiD.js} +6 -6
- package/dist/chunks/{useSingleSelectListState-DovbyYzZ.js.map → useSingleSelectListState--jan8NiD.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-CwUhrKQb.js → useSingleSelectListState-DqtAmt8K.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-CwUhrKQb.js.map → useSingleSelectListState-DqtAmt8K.js.map} +1 -1
- package/dist/chunks/{useSpinButton-UFcBxg8e.js → useSpinButton-CQ8U5KZS.js} +2 -2
- package/dist/chunks/{useSpinButton-UFcBxg8e.js.map → useSpinButton-CQ8U5KZS.js.map} +1 -1
- package/dist/chunks/{useSpinButton-D16epD7I.js → useSpinButton-DQzgsW5H.js} +5 -5
- package/dist/chunks/{useSpinButton-D16epD7I.js.map → useSpinButton-DQzgsW5H.js.map} +1 -1
- package/dist/chunks/{useTextField-DFfK-BZg.js → useTextField-CNy4kFwI.js} +7 -7
- package/dist/chunks/{useTextField-DFfK-BZg.js.map → useTextField-CNy4kFwI.js.map} +1 -1
- package/dist/chunks/{useTextField-lejiPfpS.js → useTextField-Dkkh1L-K.js} +2 -2
- package/dist/chunks/{useTextField-lejiPfpS.js.map → useTextField-Dkkh1L-K.js.map} +1 -1
- package/dist/chunks/{useToggle-BUU7amte.js → useToggle-BEYjmALQ.js} +2 -2
- package/dist/chunks/{useToggle-BUU7amte.js.map → useToggle-BEYjmALQ.js.map} +1 -1
- package/dist/chunks/{useToggle-Cp-w42gr.js → useToggle-Cf0OB-T-.js} +5 -5
- package/dist/chunks/{useToggle-Cp-w42gr.js.map → useToggle-Cf0OB-T-.js.map} +1 -1
- package/dist/chunks/{utils-DTmE9QvG.js → utils-7n9JR4ke.js} +3 -3
- package/dist/chunks/{utils-DTmE9QvG.js.map → utils-7n9JR4ke.js.map} +1 -1
- package/dist/chunks/{utils-BzPwFwlw.js → utils-D6ZV0jyp.js} +2 -2
- package/dist/chunks/{utils-BzPwFwlw.js.map → utils-D6ZV0jyp.js.map} +1 -1
- package/dist/chunks/{utils-wW2ZswvI.js → utils-DSssdw4e.js} +15 -17
- package/dist/chunks/{utils-wW2ZswvI.js.map → utils-DSssdw4e.js.map} +1 -1
- package/dist/chunks/{visually-hidden-T2B120j4.js → visually-hidden-7U4LGJiI.js} +2 -2
- package/dist/chunks/{visually-hidden-T2B120j4.js.map → visually-hidden-7U4LGJiI.js.map} +1 -1
- package/dist/chunks/{visually-hidden-Qd_t4hAG.js → visually-hidden-CRnniCks.js} +2 -2
- package/dist/chunks/{visually-hidden-Qd_t4hAG.js.map → visually-hidden-CRnniCks.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/box.cjs +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/code.cjs +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +33 -33
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/flex.cjs +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/grid.cjs +1 -1
- package/dist/components/grid.es.js +1 -1
- package/dist/components/heading.cjs +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/image.cjs +1 -1
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/simple-grid.cjs +1 -1
- package/dist/components/simple-grid.es.js +1 -1
- package/dist/components/stack.cjs +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.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.cjs +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.cjs +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +2 -2
- package/dist/components/visually-hidden.cjs +1 -1
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +84 -93
- package/dist/index.es.js.map +1 -1
- package/dist/setup-jsdom-polyfills.cjs +1 -1
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js +2 -22
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/package.json +4 -3
- package/dist/chunks/Hidden-BxRZGdEW.js +0 -2
- package/dist/chunks/ListBox-CHhUqc7T.js +0 -18
- package/dist/chunks/ListBox-CHhUqc7T.js.map +0 -1
- package/dist/chunks/ListBox-DH3lufv2.js.map +0 -1
- package/dist/chunks/RSPContexts-CxXY5Uko.js +0 -11
- package/dist/chunks/RSPContexts-qzadeFSO.js +0 -2
- package/dist/chunks/combobox.recipe-BzaPWi66.js +0 -2
- package/dist/chunks/date-picker-CwXGnIiO.js +0 -2
- package/dist/chunks/focusSafely-D_uW2Kp-.js +0 -58
- package/dist/chunks/focusSafely-DuMeO0J4.js +0 -2
- package/dist/chunks/toggle-button-group-BdLaFCWe.js +0 -2
- package/dist/chunks/useFocus-CP2rlXSg.js +0 -2
- package/dist/chunks/useFocus-mfjoACQ_.js +0 -184
|
@@ -4,8 +4,8 @@ import { defineSlotRecipe as w, createSlotRecipeContext as R } from "@chakra-ui/
|
|
|
4
4
|
import { B as y } from "./box-DD4jYgS7.js";
|
|
5
5
|
import { S as E } from "./stack-__ugxVHD.js";
|
|
6
6
|
import { CheckCircleOutline as I, WarningAmber as S, Info as $, ErrorOutline as k, Clear as j } from "@commercetools/nimbus-icons";
|
|
7
|
-
import { I as O } from "./icon-button-
|
|
8
|
-
const W = w({
|
|
7
|
+
import { I as O } from "./icon-button-DVBfoOHT.js";
|
|
8
|
+
const W = /* @__PURE__ */ w({
|
|
9
9
|
slots: ["root", "title", "description", "icon", "actions", "dismissButton"],
|
|
10
10
|
// Unique class name prefix for the component
|
|
11
11
|
className: "nimbus-alert",
|
|
@@ -60,21 +60,21 @@ const W = w({
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}), { withProvider: z, withContext: n } = R({
|
|
63
|
+
}), { withProvider: z, withContext: n } = /* @__PURE__ */ R({
|
|
64
64
|
recipe: W
|
|
65
|
-
}), F = z(
|
|
65
|
+
}), F = /* @__PURE__ */ z(
|
|
66
66
|
"div",
|
|
67
67
|
"root"
|
|
68
|
-
), M = n(
|
|
68
|
+
), M = /* @__PURE__ */ n(
|
|
69
69
|
"div",
|
|
70
70
|
"title"
|
|
71
|
-
), V = n("div", "description"), q = n(
|
|
71
|
+
), V = /* @__PURE__ */ n("div", "description"), q = /* @__PURE__ */ n(
|
|
72
72
|
"div",
|
|
73
73
|
"icon"
|
|
74
|
-
), G = n(
|
|
74
|
+
), G = /* @__PURE__ */ n(
|
|
75
75
|
"div",
|
|
76
76
|
"actions"
|
|
77
|
-
), H = n("div", "dismissButton"), J = (e) => {
|
|
77
|
+
), H = /* @__PURE__ */ n("div", "dismissButton"), J = (e) => {
|
|
78
78
|
switch (e) {
|
|
79
79
|
case "critical":
|
|
80
80
|
return /* @__PURE__ */ i(k, {});
|
|
@@ -87,7 +87,7 @@ const W = w({
|
|
|
87
87
|
default:
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
}, r = B(
|
|
90
|
+
}, r = /* @__PURE__ */ B(
|
|
91
91
|
void 0
|
|
92
92
|
), f = (e) => {
|
|
93
93
|
const { ref: o, children: t, ...s } = e, [h, d] = l(null), [P, m] = l(null), [b, p] = l(null), [C, A] = l(null), N = T(
|
|
@@ -183,4 +183,4 @@ export {
|
|
|
183
183
|
D as d,
|
|
184
184
|
g as e
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=alert-
|
|
186
|
+
//# sourceMappingURL=alert-BX5IPnc_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-DSpVYhCa.js","sources":["../../src/components/alert/alert.recipe.tsx","../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Alert component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const alertRecipe = defineSlotRecipe({\n slots: [\"root\", \"title\", \"description\", \"icon\", \"actions\", \"dismissButton\"],\n // Unique class name prefix for the component\n className: \"nimbus-alert\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n display: \"inline-flex\",\n flexDirection: \"row\",\n gap: \"200\",\n width: \"100%\",\n },\n icon: {\n marginTop: \"50\",\n \"& svg\": {\n width: \"500\",\n height: \"500\",\n color: \"colorPalette.11\",\n },\n },\n title: {\n color: \"colorPalette.11\",\n },\n description: {\n color: \"colorPalette.11\",\n },\n },\n\n variants: {\n tone: {\n critical: {\n root: { colorPalette: \"critical\" },\n },\n info: {\n root: { colorPalette: \"info\" },\n },\n warning: {\n root: { colorPalette: \"amber\" },\n },\n positive: {\n root: { colorPalette: \"positive\" },\n },\n },\n\n variant: {\n flat: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.5\",\n backgroundColor: \"colorPalette.2\",\n padding: \"200\",\n borderRadius: \"200\",\n },\n },\n },\n },\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport { alertRecipe } from \"./alert.recipe\";\nimport type {\n AlertActionsProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconProps,\n AlertRootProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: alertRecipe,\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport { Box } from \"../../box\";\nimport { Stack } from \"../../stack\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromTone = (tone: AlertProps[\"tone\"]) => {\n switch (tone) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\ntype AlertContextValue = {\n setTitle: (title: ReactNode) => void;\n setDescription: (description: ReactNode) => void;\n setActions: (actions: ReactNode) => void;\n setDismiss: (dismiss: ReactNode) => void;\n};\n\nexport const AlertContext = createContext<AlertContextValue | undefined>(\n undefined\n);\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n const [titleNode, setTitle] = useState<ReactNode>(null);\n const [descriptionNode, setDescription] = useState<ReactNode>(null);\n const [actionsNode, setActions] = useState<ReactNode>(null);\n const [dismissNode, setDismiss] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setTitle,\n setDescription,\n setActions,\n setDismiss,\n }),\n [setTitle, setDescription, setActions, setDismiss]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromTone(restProps.tone)}\n </AlertIcon>\n <Stack flex=\"1\" gap=\"200\">\n <Box>\n {titleNode}\n {descriptionNode}\n </Box>\n {actionsNode}\n </Stack>\n {dismissNode}\n\n {children}\n </AlertRootSlot>\n </AlertContext.Provider>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n // Register it with the parent\n context.setTitle(slotElement);\n\n // On unmount, remove it\n return () => context.setTitle(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>\n );\n // Register it with the parent\n context.setDescription(slotElement);\n\n // On unmount, remove it\n return () => context.setDescription(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertActionsSlot {...props}>{children}</AlertActionsSlot>\n );\n // Register it with the parent\n context.setActions(slotElement);\n\n // On unmount, remove it\n return () => context.setActions(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDismissButton = ({\n children,\n ...props\n}: AlertDismissButtonProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label=\"Dismiss\"\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n // Register it with the parent\n context.setDismiss(slotElement);\n\n // On unmount, remove it\n return () => context.setDismiss(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import { AlertTitle } from \"./components/alert.title\";\nimport { AlertDescription } from \"./components/alert.description\";\nimport { AlertActions } from \"./components/alert.actions\";\nimport { AlertDismissButton } from \"./components/alert.dismiss-button\";\nimport { AlertRoot } from \"./components/alert.root\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const Alert = {\n Root: AlertRoot,\n Title: AlertTitle,\n Description: AlertDescription,\n Actions: AlertActions,\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["alertRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromTone","tone","ErrorOutline","Info","WarningAmber","CheckCircleOutline","AlertContext","createContext","props","ref","children","restProps","titleNode","setTitle","useState","descriptionNode","setDescription","actionsNode","setActions","dismissNode","setDismiss","contextValue","useMemo","jsx","jsxs","AlertRootSlot","Stack","Box","context","useContext","useEffect","slotElement","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;;;AAMO,MAAMA,IAAcC,EAAiB;AAAA,EAC1C,OAAO,CAAC,QAAQ,SAAS,eAAe,QAAQ,WAAW,eAAe;AAAA;AAAA,EAE1E,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,I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B,EAAU,MAAM;AACd,QAAIF,GAAS;AACL,YAAAG,sBACHI,GACC,EAAA,UAAA,gBAAAZ;AAAA,QAACa;AAAA,QAAA;AAAA,UACC,cAAW;AAAA,UACV,GAAG5B;AAAA,UACJ,SAAQ;AAAA,UACR,MAAK;AAAA,UAEL,UAAA,gBAAAe,EAACc,GAAM,EAAA,MAAK,MAAM,CAAA;AAAA,QAAA;AAAA,MAAA,GAEtB;AAGF,aAAAT,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IAAA;AAAA,EACtC,GACC,CAAClB,GAAUF,CAAK,CAAC,GAEb;AACT;AAEAT,EAAmB,cAAc;AC3B1B,MAAMuC,IAAQ;AAAA,EACnB,MAAM5C;AAAA,EACN,OAAOC;AAAA,EACP,aAAaC;AAAA,EACb,SAASE;AAAA,EACT,eAAeC;AACjB;"}
|
|
1
|
+
{"version":3,"file":"alert-BX5IPnc_.js","sources":["../../src/components/alert/alert.recipe.tsx","../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Alert component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const alertRecipe = defineSlotRecipe({\n slots: [\"root\", \"title\", \"description\", \"icon\", \"actions\", \"dismissButton\"],\n // Unique class name prefix for the component\n className: \"nimbus-alert\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n display: \"inline-flex\",\n flexDirection: \"row\",\n gap: \"200\",\n width: \"100%\",\n },\n icon: {\n marginTop: \"50\",\n \"& svg\": {\n width: \"500\",\n height: \"500\",\n color: \"colorPalette.11\",\n },\n },\n title: {\n color: \"colorPalette.11\",\n },\n description: {\n color: \"colorPalette.11\",\n },\n },\n\n variants: {\n tone: {\n critical: {\n root: { colorPalette: \"critical\" },\n },\n info: {\n root: { colorPalette: \"info\" },\n },\n warning: {\n root: { colorPalette: \"amber\" },\n },\n positive: {\n root: { colorPalette: \"positive\" },\n },\n },\n\n variant: {\n flat: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.5\",\n backgroundColor: \"colorPalette.2\",\n padding: \"200\",\n borderRadius: \"200\",\n },\n },\n },\n },\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport { alertRecipe } from \"./alert.recipe\";\nimport type {\n AlertActionsProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconProps,\n AlertRootProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: alertRecipe,\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport { Box } from \"../../box\";\nimport { Stack } from \"../../stack\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromTone = (tone: AlertProps[\"tone\"]) => {\n switch (tone) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\ntype AlertContextValue = {\n setTitle: (title: ReactNode) => void;\n setDescription: (description: ReactNode) => void;\n setActions: (actions: ReactNode) => void;\n setDismiss: (dismiss: ReactNode) => void;\n};\n\nexport const AlertContext = createContext<AlertContextValue | undefined>(\n undefined\n);\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n const [titleNode, setTitle] = useState<ReactNode>(null);\n const [descriptionNode, setDescription] = useState<ReactNode>(null);\n const [actionsNode, setActions] = useState<ReactNode>(null);\n const [dismissNode, setDismiss] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setTitle,\n setDescription,\n setActions,\n setDismiss,\n }),\n [setTitle, setDescription, setActions, setDismiss]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromTone(restProps.tone)}\n </AlertIcon>\n <Stack flex=\"1\" gap=\"200\">\n <Box>\n {titleNode}\n {descriptionNode}\n </Box>\n {actionsNode}\n </Stack>\n {dismissNode}\n\n {children}\n </AlertRootSlot>\n </AlertContext.Provider>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n // Register it with the parent\n context.setTitle(slotElement);\n\n // On unmount, remove it\n return () => context.setTitle(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>\n );\n // Register it with the parent\n context.setDescription(slotElement);\n\n // On unmount, remove it\n return () => context.setDescription(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertActionsSlot {...props}>{children}</AlertActionsSlot>\n );\n // Register it with the parent\n context.setActions(slotElement);\n\n // On unmount, remove it\n return () => context.setActions(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDismissButton = ({\n children,\n ...props\n}: AlertDismissButtonProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label=\"Dismiss\"\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n // Register it with the parent\n context.setDismiss(slotElement);\n\n // On unmount, remove it\n return () => context.setDismiss(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import { AlertTitle } from \"./components/alert.title\";\nimport { AlertDescription } from \"./components/alert.description\";\nimport { AlertActions } from \"./components/alert.actions\";\nimport { AlertDismissButton } from \"./components/alert.dismiss-button\";\nimport { AlertRoot } from \"./components/alert.root\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const Alert = {\n Root: AlertRoot,\n Title: AlertTitle,\n Description: AlertDescription,\n Actions: AlertActions,\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["alertRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromTone","tone","ErrorOutline","Info","WarningAmber","CheckCircleOutline","AlertContext","createContext","props","ref","children","restProps","titleNode","setTitle","useState","descriptionNode","setDescription","actionsNode","setActions","dismissNode","setDismiss","contextValue","useMemo","jsx","jsxs","AlertRootSlot","Stack","Box","context","useContext","useEffect","slotElement","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;;;AAMO,MAAMA,IAAc,gBAAAC,EAAiB;AAAA,EAC1C,OAAO,CAAC,QAAQ,SAAS,eAAe,QAAQ,WAAW,eAAe;AAAA;AAAA,EAE1E,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ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,IAAUC,EAAWvB,CAAY;AAEvC,SAAAwB,EAAU,MAAM;AACd,QAAIF,GAAS;AACL,YAAAG,sBACHI,GACC,EAAA,UAAA,gBAAAZ;AAAA,QAACa;AAAA,QAAA;AAAA,UACC,cAAW;AAAA,UACV,GAAG5B;AAAA,UACJ,SAAQ;AAAA,UACR,MAAK;AAAA,UAEL,UAAA,gBAAAe,EAACc,GAAM,EAAA,MAAK,MAAM,CAAA;AAAA,QAAA;AAAA,MAAA,GAEtB;AAGF,aAAAT,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IAAA;AAAA,EACtC,GACC,CAAClB,GAAUF,CAAK,CAAC,GAEb;AACT;AAEAT,EAAmB,cAAc;AC3B1B,MAAMuC,IAAQ;AAAA,EACnB,MAAM5C;AAAA,EACN,OAAOC;AAAA,EACP,aAAaC;AAAA,EACb,SAASE;AAAA,EACT,eAAeC;AACjB;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as h, jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
3
|
import { createRecipeContext as v, Image as x } from "@chakra-ui/react";
|
|
4
|
-
import { a as A } from "./avatar.recipe-
|
|
5
|
-
const { withContext: C } = v({ recipe: A }), N = C("figure");
|
|
4
|
+
import { a as A } from "./avatar.recipe-BSmmqvwQ.js";
|
|
5
|
+
const { withContext: C } = /* @__PURE__ */ v({ recipe: A }), N = /* @__PURE__ */ C("figure");
|
|
6
6
|
function w(t, a) {
|
|
7
7
|
return t.split("")[0].toUpperCase() + a.split("")[0].toUpperCase();
|
|
8
8
|
}
|
|
@@ -34,4 +34,4 @@ E.displayName = "Avatar";
|
|
|
34
34
|
export {
|
|
35
35
|
E as A
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=avatar-
|
|
37
|
+
//# sourceMappingURL=avatar-85FE_L0r.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-
|
|
1
|
+
{"version":3,"file":"avatar-85FE_L0r.js","sources":["../../src/components/avatar/avatar.slots.tsx","../../src/components/avatar/avatar.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\nimport { avatarRecipe } from \"./avatar.recipe\";\n\ninterface AvatarRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface AvatarRootProps\n extends HTMLChakraProps<\"div\", AvatarRecipeProps> {}\nconst { withContext } = createRecipeContext({ recipe: avatarRecipe });\n\nexport const AvatarRoot = withContext<HTMLElement, AvatarRootProps>(\"figure\");\n","import { useState } from \"react\";\nimport { Image } from \"@chakra-ui/react\";\nimport { type AvatarProps } from \"./avatar.types\";\nimport { AvatarRoot } from \"./avatar.slots.tsx\";\n\nfunction getInitials(firstName: string, lastName: string) {\n return (\n firstName.split(\"\")[0].toUpperCase() + lastName.split(\"\")[0].toUpperCase()\n );\n}\n\nexport const Avatar = (props: AvatarProps) => {\n const { ref, firstName, lastName, src, alt, ...rest } = props;\n const [imageLoaded, setImageLoaded] = useState(false);\n const [imageError, setImageError] = useState(false);\n\n const fullName = `${firstName} ${lastName}`;\n\n const sharedProps = {\n \"aria-label\": `${fullName} avatar`,\n ref,\n ...rest,\n };\n\n const onLoad = () => {\n setImageLoaded(true);\n setImageError(false);\n };\n\n const onError = () => {\n setImageLoaded(false);\n setImageError(true);\n };\n\n // Show initials if no src provided, image hasn't loaded yet, or image failed\n const shouldShowInitials = !src || !imageLoaded || imageError;\n\n return (\n <AvatarRoot {...sharedProps}>\n {shouldShowInitials ? getInitials(firstName, lastName) : null}\n\n {src && (\n <Image\n src={src}\n alt={alt || fullName}\n onLoad={onLoad}\n onError={onError}\n display={imageLoaded && !imageError ? \"block\" : \"none\"}\n />\n )}\n </AvatarRoot>\n );\n};\n\nAvatar.displayName = \"Avatar\";\n"],"names":["withContext","createRecipeContext","avatarRecipe","AvatarRoot","getInitials","firstName","lastName","Avatar","props","ref","src","alt","rest","imageLoaded","setImageLoaded","useState","imageError","setImageError","fullName","sharedProps","onLoad","onError","jsxs","jsx","Image"],"mappings":";;;;AAaA,MAAM,EAAE,aAAAA,EAAY,IAAI,gBAAAC,EAAoB,EAAE,QAAQC,GAAc,GAEvDC,IAAa,gBAAAH,EAA0C,QAAQ;ACV5E,SAASI,EAAYC,GAAmBC,GAAkB;AACxD,SACED,EAAU,MAAM,EAAE,EAAE,CAAC,EAAE,gBAAgBC,EAAS,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY;AAE7E;AAEa,MAAAC,IAAS,CAACC,MAAuB;AACtC,QAAA,EAAE,KAAAC,GAAK,WAAAJ,GAAW,UAAAC,GAAU,KAAAI,GAAK,KAAAC,GAAK,GAAGC,MAASJ,GAClD,CAACK,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAC9C,CAACC,GAAYC,CAAa,IAAIF,EAAS,EAAK,GAE5CG,IAAW,GAAGb,CAAS,IAAIC,CAAQ,IAEnCa,IAAc;AAAA,IAClB,cAAc,GAAGD,CAAQ;AAAA,IACzB,KAAAT;AAAA,IACA,GAAGG;AAAA,EACL,GAEMQ,IAAS,MAAM;AACnB,IAAAN,EAAe,EAAI,GACnBG,EAAc,EAAK;AAAA,EACrB,GAEMI,IAAU,MAAM;AACpB,IAAAP,EAAe,EAAK,GACpBG,EAAc,EAAI;AAAA,EACpB;AAME,SAAA,gBAAAK,EAACnB,GAAY,EAAA,GAAGgB,GACb,UAAA;AAAA,IAJsB,CAACT,KAAO,CAACG,KAAeG,IAIzBZ,EAAYC,GAAWC,CAAQ,IAAI;AAAA,IAExDI,KACC,gBAAAa;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,KAAAd;AAAA,QACA,KAAKC,KAAOO;AAAA,QACZ,QAAAE;AAAA,QACA,SAAAC;AAAA,QACA,SAASR,KAAe,CAACG,IAAa,UAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAClD,GAEJ;AAEJ;AAEAT,EAAO,cAAc;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineRecipe as e } from "@chakra-ui/react";
|
|
2
|
-
const i = e({
|
|
2
|
+
const i = /* @__PURE__ */ e({
|
|
3
3
|
className: "avatar",
|
|
4
4
|
base: {
|
|
5
5
|
display: "inline-flex",
|
|
@@ -36,4 +36,4 @@ const i = e({
|
|
|
36
36
|
export {
|
|
37
37
|
i as a
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=avatar.recipe-
|
|
39
|
+
//# sourceMappingURL=avatar.recipe-BSmmqvwQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.recipe-
|
|
1
|
+
{"version":3,"file":"avatar.recipe-BSmmqvwQ.js","sources":["../../src/components/avatar/avatar.recipe.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const avatarRecipe = defineRecipe({\n className: \"avatar\",\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n verticalAlign: \"middle\",\n overflow: \"hidden\",\n userSelect: \"none\",\n borderRadius: \"full\",\n flexShrink: 0,\n fontWeight: \"600\",\n backgroundColor: \"colorPalette.3\",\n colorPalette: \"primary\",\n color: \"colorPalette.11\",\n focusVisibleRing: \"outside\",\n \"button&\": {\n cursor: \"button\",\n },\n _disabled: {\n layerStyle: \"disabled\",\n },\n },\n variants: {\n size: {\n md: { width: 1000, height: 1000, textStyle: \"sm\" },\n xs: { width: 800, height: 800, textStyle: \"xs\" },\n \"2xs\": { width: 600, height: 600, textStyle: \"xs\" },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n"],"names":["avatarRecipe","defineRecipe"],"mappings":";AAEO,MAAMA,IAAe,gBAAAC,EAAa;AAAA,EACvC,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,WAAW;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IACA,WAAW;AAAA,MACT,YAAY;AAAA,IAAA;AAAA,EAEhB;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI,EAAE,OAAO,KAAM,QAAQ,KAAM,WAAW,KAAK;AAAA,MACjD,IAAI,EAAE,OAAO,KAAK,QAAQ,KAAK,WAAW,KAAK;AAAA,MAC/C,OAAO,EAAE,OAAO,KAAK,QAAQ,KAAK,WAAW,KAAK;AAAA,IAAA;AAAA,EAEtD;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC;"}
|
|
@@ -2,8 +2,8 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as c } from "react";
|
|
3
3
|
import { defineRecipe as f, createRecipeContext as l, mergeRefs as p } from "@chakra-ui/react";
|
|
4
4
|
import { $ as d } from "./useObjectRef-CaJ5pgjX.js";
|
|
5
|
-
import { $ as h } from "./mergeProps-
|
|
6
|
-
const m = f({
|
|
5
|
+
import { $ as h } from "./mergeProps-tCFA9wZ1.js";
|
|
6
|
+
const m = /* @__PURE__ */ f({
|
|
7
7
|
className: "nimbus-badge",
|
|
8
8
|
// Base styles applied to all instances of the component
|
|
9
9
|
base: {
|
|
@@ -65,7 +65,7 @@ const m = f({
|
|
|
65
65
|
defaultVariants: {
|
|
66
66
|
size: "md"
|
|
67
67
|
}
|
|
68
|
-
}), { withContext: g } = l({ recipe: m }), x = g("span"), b = (e) => {
|
|
68
|
+
}), { withContext: g } = /* @__PURE__ */ l({ recipe: m }), x = /* @__PURE__ */ g("span"), b = (e) => {
|
|
69
69
|
const { ref: t, as: i, children: o, ...n } = e, a = c(null), r = d(p(a, t));
|
|
70
70
|
return /* @__PURE__ */ s(x, { as: i || "span", ...h(n, { ref: r }), children: o });
|
|
71
71
|
};
|
|
@@ -73,4 +73,4 @@ b.displayName = "Badge";
|
|
|
73
73
|
export {
|
|
74
74
|
b as B
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=badge-
|
|
76
|
+
//# sourceMappingURL=badge-C1bFH3CB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-
|
|
1
|
+
{"version":3,"file":"badge-C1bFH3CB.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * Badge\n * ============================================================\n * badge\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLSpanElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'sizes', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;AAMO,MAAMA,IAAc,gBAAAC,EAAa;AAAA,EACtC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,IAAI;AAAA,IACJ,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,GAAG;AAAA,IACH,YAAY;AA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"),m=require("react"),h=require("./Button-
|
|
2
|
-
//# sourceMappingURL=button-
|
|
1
|
+
"use strict";const f=require("react/jsx-runtime"),m=require("react"),h=require("./Button-tPOlfQRd.js"),g=require("./utils-XbOVivul.js"),o=require("@chakra-ui/react"),y=require("./button.recipe-DHk13lGU.js"),k=require("./useObjectRef-4v2MxSjQ.js"),b=require("./mergeProps-BeIu4MsM.js"),x=require("./useButton-BZrUUsJ0.js");function v(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var R=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,P=v(function(e){return R.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const{withContext:S}=o.createRecipeContext({recipe:y.buttonRecipe}),C=S("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const r=!(t!=null&&t.includes(e))&&!o.defaultSystem.isValidProperty(e);return P(e)&&r&&!e.includes("onPress")}}),s=e=>{const{ref:t,as:r,asChild:a,children:l,...c}=e,d=m.useRef(null),n=k.$df56164dff5785e2$export$4338b53315abf666(o.mergeRefs(d,t)),[i]=g.$64fa3d84918910a7$export$29f1550f4b0d4415(c,n,h.$d2b4bc8c273e7be6$export$24d547caef80ccd1),u=r||(a?"a":"button")||"button",{buttonProps:p}=x.$701a24aa0da5b062$export$ea18c227d4417cc3({...i,elementType:u},n);return f.jsx(C,{...b.$3ef42575df84b30b$export$9d1611c77c2fe928(i,p,{as:r,asChild:a,slot:i.slot||void 0}),ref:n,children:l})};s.displayName="Button";exports.Button=s;
|
|
2
|
+
//# sourceMappingURL=button-BLZONb0_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-vfAeHh1t.js","sources":["../../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n return (\n <ButtonRoot\n {...mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n })}\n ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["memoize","fn","cache","arg","reactPropsRegex","isPropValid","prop","withContext","createRecipeContext","buttonRecipe","ButtonRoot","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":"kUAAA,SAASA,EAAQC,EAAI,CACnB,IAAIC,EAAQ,OAAO,OAAO,IAAI,EAC9B,OAAO,SAAUC,EA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AL,EAAO,YAAc","x_google_ignoreList":[0,1]}
|
|
1
|
+
{"version":3,"file":"button-BLZONb0_.js","sources":["../../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n return (\n <ButtonRoot\n {...mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n })}\n ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["memoize","fn","cache","arg","reactPropsRegex","isPropValid","prop","withContext","createRecipeContext","buttonRecipe","ButtonRoot","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":"kUAAA,SAASA,EAAQC,EAAI,CACnB,IAAIC,EAAQ,OAAO,OAAO,IAAI,EAC9B,OAAO,SAAUC,EAAK,CACpB,OAAID,EAAMC,CAAG,IAAM,SAAWD,EAAMC,CAAG,EAAIF,EAAGE,CAAG,GAC1CD,EAAMC,CAAG,CACjB,CACH,CCHA,IAAIC,EAAkB,sgIAElBC,EAA6BL,EAAQ,SAAUM,EAAM,CACvD,OAAOF,EAAgB,KAAKE,CAAI,GAAKA,EAAK,WAAW,CAAC,IAAM,KAEzDA,EAAK,WAAW,CAAC,IAAM,KAEvBA,EAAK,WAAW,CAAC,EAAI,EAC1B,CAEA,ECeA,KAAM,CAAE,YAAAC,CAAY,EAAIC,sBAAoB,CAC1C,OAAQC,EAAAA,YACV,CAAC,EAMYC,EAAaH,EACxB,SACA,CACE,aAAc,CACZ,KAAM,QACR,EAEA,kBAAkBD,EAAMK,EAAa,CAC7B,MAAAC,EACJ,EAACD,GAAA,MAAAA,EAAa,SAASL,KAAS,CAACO,EAAAA,cAAc,gBAAgBP,CAAI,EACrE,OAAOQ,EAAkBR,CAAI,GAAKM,GAAa,CAACN,EAAK,SAAS,SAAS,CAAA,CACzE,CAEJ,EC1CaS,EAAUC,GAAuB,CACtC,KAAA,CAAE,IAAKC,EAAc,GAAAC,EAAI,QAAAC,EAAS,SAAAC,EAAU,GAAGC,GAASL,EAGxDM,EAAWC,SAA0B,IAAI,EAEzCC,EAAMC,EAAA,0CAAaC,EAAU,UAAAJ,EAAUL,CAAY,CAAC,EAGpD,CAACU,CAAY,EAAIC,EAAAA,0CAAgBP,EAAMG,EAAKK,EAAAA,yCAAa,EAKzDC,EAAcZ,IAAOC,EAAU,IAAM,WAAa,SAElD,CAAE,YAAAY,GAAgBC,EAAA,0CACtB,CACE,GAAGL,EACH,YAAAG,CACF,EACAN,CACF,EAGE,OAAAS,EAAA,IAACvB,EAAA,CACE,GAAGwB,EAAW,0CAAAP,EAAcI,EAAa,CACxC,GAAAb,EACA,QAAAC,EAMA,KAAMQ,EAAa,MAAQ,MAAA,CAC5B,EACD,IAAAH,EAEC,SAAAJ,CAAA,CACH,CAEJ,EAGAL,EAAO,YAAc","x_google_ignoreList":[0,1]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as u } from "react";
|
|
3
|
-
import { $ as m } from "./Button-
|
|
4
|
-
import { $ as f } from "./utils-
|
|
3
|
+
import { $ as m } from "./Button-BxcMDv2N.js";
|
|
4
|
+
import { $ as f } from "./utils-7n9JR4ke.js";
|
|
5
5
|
import { createRecipeContext as h, defaultSystem as g, mergeRefs as y } from "@chakra-ui/react";
|
|
6
|
-
import { b as k } from "./button.recipe-
|
|
6
|
+
import { b as k } from "./button.recipe-DzOS_Bqm.js";
|
|
7
7
|
import { $ as b } from "./useObjectRef-CaJ5pgjX.js";
|
|
8
|
-
import { $ as x } from "./mergeProps-
|
|
9
|
-
import { $ as v } from "./useButton-
|
|
8
|
+
import { $ as x } from "./mergeProps-tCFA9wZ1.js";
|
|
9
|
+
import { $ as v } from "./useButton-C5ATfvOf.js";
|
|
10
10
|
function P(e) {
|
|
11
11
|
var t = /* @__PURE__ */ Object.create(null);
|
|
12
12
|
return function(r) {
|
|
@@ -19,9 +19,9 @@ var R = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defa
|
|
|
19
19
|
}
|
|
20
20
|
/* Z+1 */
|
|
21
21
|
);
|
|
22
|
-
const { withContext: C } = h({
|
|
22
|
+
const { withContext: C } = /* @__PURE__ */ h({
|
|
23
23
|
recipe: k
|
|
24
|
-
}), T = C(
|
|
24
|
+
}), T = /* @__PURE__ */ C(
|
|
25
25
|
"button",
|
|
26
26
|
{
|
|
27
27
|
defaultProps: {
|
|
@@ -63,4 +63,4 @@ w.displayName = "Button";
|
|
|
63
63
|
export {
|
|
64
64
|
w as B
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=button-
|
|
66
|
+
//# sourceMappingURL=button-zSDA7FRw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-Ckftvc2h.js","sources":["../../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n return (\n <ButtonRoot\n {...mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n })}\n ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["memoize","fn","cache","arg","reactPropsRegex","isPropValid","prop","withContext","createRecipeContext","buttonRecipe","ButtonRoot","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":";;;;;;;;;AAAA,SAASA,EAAQC,GAAI;AACnB,MAAIC,IAAQ,uBAAO,OAAO,IAAI;AAC9B,SAAO,SAAUC,GAAK;AACpB,WAAID,EAAMC,CAAG,MAAM,WAAWD,EAAMC,CAAG,IAAIF,EAAGE,CAAG,IAC1CD,EAAMC,CAAG;AAAA,EACjB;AACH;ACHA,IAAIC,IAAkB,ugIAElBC,IAA6B,gBAAAL;AAAA,EAAQ,SAAUM,GAAM;AACvD,WAAOF,EAAgB,KAAKE,CAAI,KAAKA,EAAK,WAAW,CAAC,MAAM,OAEzDA,EAAK,WAAW,CAAC,MAAM,OAEvBA,EAAK,WAAW,CAAC,IAAI;AAAA,EAC1B;AAAA;AAEA;ACeA,MAAM,EAAE,aAAAC,EAAY,IAAIC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAaH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA;AAAA,IAEA,kBAAkBD,GAAMK,GAAa;AAC7B,YAAAC,IACJ,EAACD,KAAA,QAAAA,EAAa,SAASL,OAAS,CAACO,EAAc,gBAAgBP,CAAI;AACrE,aAAOQ,EAAkBR,CAAI,KAAKM,KAAa,CAACN,EAAK,SAAS,SAAS;AAAA,IAAA;AAAA,EACzE;AAEJ,GC1CaS,IAAS,CAACC,MAAuB;AACtC,QAAA,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAMC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGpD,CAACU,CAAY,IAAIC,EAAgBP,GAAMG,GAAKK,CAAa,GAKzDC,IAAcZ,MAAOC,IAAU,MAAM,aAAa,UAElD,EAAE,aAAAY,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGL;AAAA,MACH,aAAAG;AAAA,IACF;AAAA,IACAN;AAAA,EACF;AAGE,SAAA,gBAAAS;AAAA,IAACvB;AAAA,IAAA;AAAA,MACE,GAAGwB,EAAWP,GAAcI,GAAa;AAAA,QACxC,IAAAb;AAAA,QACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAMA,MAAMQ,EAAa,QAAQ;AAAA,MAAA,CAC5B;AAAA,MACD,KAAAH;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EACH;AAEJ;AAGAL,EAAO,cAAc;","x_google_ignoreList":[0,1]}
|
|
1
|
+
{"version":3,"file":"button-zSDA7FRw.js","sources":["../../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n return (\n <ButtonRoot\n {...mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n })}\n ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["memoize","fn","cache","arg","reactPropsRegex","isPropValid","prop","withContext","createRecipeContext","buttonRecipe","ButtonRoot","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":";;;;;;;;;AAAA,SAASA,EAAQC,GAAI;AACnB,MAAIC,IAAQ,uBAAO,OAAO,IAAI;AAC9B,SAAO,SAAUC,GAAK;AACpB,WAAID,EAAMC,CAAG,MAAM,WAAWD,EAAMC,CAAG,IAAIF,EAAGE,CAAG,IAC1CD,EAAMC,CAAG;AAAA,EACjB;AACH;ACHA,IAAIC,IAAkB,ugIAElBC,IAA6B,gBAAAL;AAAA,EAAQ,SAAUM,GAAM;AACvD,WAAOF,EAAgB,KAAKE,CAAI,KAAKA,EAAK,WAAW,CAAC,MAAM,OAEzDA,EAAK,WAAW,CAAC,MAAM,OAEvBA,EAAK,WAAW,CAAC,IAAI;AAAA,EAC1B;AAAA;AAEA;ACeA,MAAM,EAAE,aAAAC,EAA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
4
4
|
base: {
|
|
5
5
|
borderRadius: "200",
|
|
@@ -188,4 +188,4 @@ const t = e({
|
|
|
188
188
|
export {
|
|
189
189
|
t as b
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=button.recipe-
|
|
191
|
+
//# sourceMappingURL=button.recipe-DzOS_Bqm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.recipe-
|
|
1
|
+
{"version":3,"file":"button.recipe-DzOS_Bqm.js","sources":["../../src/components/button/button.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe"],"mappings":";AAE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AA,MAAA;AAAA,IAChB;AAAA,EAEJ;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC;"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as m, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { $ as ge } from "./Button-
|
|
3
|
-
import { $ as je, a as Me, e as Ke, b as de } from "./utils-
|
|
4
|
-
import { $ as Te } from "./RSPContexts-
|
|
2
|
+
import { $ as ge } from "./Button-BxcMDv2N.js";
|
|
3
|
+
import { $ as je, a as Me, e as Ke, b as de } from "./utils-7n9JR4ke.js";
|
|
4
|
+
import { $ as Te } from "./RSPContexts-AkhSBHGO.js";
|
|
5
5
|
import { $ as be } from "./Text-DOcU1ycg.js";
|
|
6
|
-
import { c as U, d as B, e as Ce, f as le, g as oe, h as ye, i as wa, j as za, k as Ia, l as Va, m as Oe, b as T, n as He, o as Na, $ as ja, p as L, q as Ma, r as Ka, s as Ta, t as Oa, u as Ha, v as La, w as Z } from "./useDateFormatter-
|
|
7
|
-
import { a as Za, $ as se } from "./mergeProps-
|
|
6
|
+
import { c as U, d as B, e as Ce, f as le, g as oe, h as ye, i as wa, j as za, k as Ia, l as Va, m as Oe, b as T, n as He, o as Na, $ as ja, p as L, q as Ma, r as Ka, s as Ta, t as Oa, u as Ha, v as La, w as Z } from "./useDateFormatter-5Oe96jpR.js";
|
|
7
|
+
import { a as Za, $ as se } from "./mergeProps-tCFA9wZ1.js";
|
|
8
8
|
import { $ as W } from "./filterDOMProps-D6KHYVBX.js";
|
|
9
9
|
import g, { useMemo as y, useState as X, useRef as re, useEffect as _a, forwardRef as O, createContext as ue, useContext as E } from "react";
|
|
10
|
-
import { $ as Y } from "./context-
|
|
10
|
+
import { $ as Y } from "./context-CI0Y3O6x.js";
|
|
11
11
|
import { $ as Pe } from "./useControlledState-u436Wbp1.js";
|
|
12
|
-
import { $ as ce } from "./useLocalizedStringFormatter-
|
|
12
|
+
import { $ as ce } from "./useLocalizedStringFormatter-D1iIJE39.js";
|
|
13
13
|
import { $ as Fe } from "./LiveAnnouncer-B6177m92.js";
|
|
14
|
-
import { $ as Le } from "./useLabels-
|
|
14
|
+
import { $ as Le } from "./useLabels-CrNu-inr.js";
|
|
15
15
|
import { $ as ke } from "./useUpdateEffect-CCDx8D4X.js";
|
|
16
|
-
import { i as Ua } from "./utils-
|
|
16
|
+
import { i as Ua } from "./utils-DSssdw4e.js";
|
|
17
17
|
import { a as Wa } from "./getScrollParent-DE66eQI-.js";
|
|
18
|
-
import { $ as Ga, a as qa } from "./scrollIntoView-
|
|
19
|
-
import { d as Ja } from "./useFocus-
|
|
20
|
-
import { $ as Qa } from "./usePress-
|
|
21
|
-
import { $ as Ae } from "./VisuallyHidden-
|
|
22
|
-
import { $ as Xa } from "./useHover-
|
|
23
|
-
import { $ as Ya } from "./useFocusRing-
|
|
18
|
+
import { $ as Ga, a as qa } from "./scrollIntoView-CXOsfZIS.js";
|
|
19
|
+
import { d as Ja } from "./useFocus-CuXxpIRa.js";
|
|
20
|
+
import { $ as Qa } from "./usePress-Dk0M2Js8.js";
|
|
21
|
+
import { $ as Ae } from "./VisuallyHidden-2REhp9RT.js";
|
|
22
|
+
import { $ as Xa } from "./useHover-3Zee5Ds5.js";
|
|
23
|
+
import { $ as Ya } from "./useFocusRing-DNviWqC5.js";
|
|
24
24
|
import { createSlotRecipeContext as et, Flex as at, useRecipe as tt } from "@chakra-ui/react";
|
|
25
25
|
import { B as Ze } from "./box-DD4jYgS7.js";
|
|
26
|
-
import { I as ne } from "./icon-button-
|
|
27
|
-
import { T as we } from "./text-
|
|
26
|
+
import { I as ne } from "./icon-button-DVBfoOHT.js";
|
|
27
|
+
import { T as we } from "./text-MzQiG_1j.js";
|
|
28
28
|
import { S as ze } from "./stack-__ugxVHD.js";
|
|
29
|
-
import { V as ut } from "./visually-hidden-
|
|
29
|
+
import { V as ut } from "./visually-hidden-7U4LGJiI.js";
|
|
30
30
|
import { KeyboardArrowLeft as Ie, KeyboardArrowRight as Ve } from "@commercetools/nimbus-icons";
|
|
31
|
-
import { c as it } from "./calendar.recipe-
|
|
31
|
+
import { c as it } from "./calendar.recipe-B2sMokBn.js";
|
|
32
32
|
import { e as nt } from "./extractStyleProps-CxgBrz3O.js";
|
|
33
33
|
var _e = {};
|
|
34
34
|
_e = {
|
|
@@ -1404,9 +1404,9 @@ const Pa = /* @__PURE__ */ O(vt), ht = /* @__PURE__ */ O(function({ date: a, ...
|
|
|
1404
1404
|
ref: i,
|
|
1405
1405
|
className: u ?? "react-aria-Heading"
|
|
1406
1406
|
}, t);
|
|
1407
|
-
}), { withProvider: Ct, withContext: V } = et({
|
|
1407
|
+
}), { withProvider: Ct, withContext: V } = /* @__PURE__ */ et({
|
|
1408
1408
|
key: "calendar"
|
|
1409
|
-
}), yt = Ct("div", "root"), Rt = V("div", "header"), St = V("div", "grids"), Et = V("div", "monthTitle"), Pt = V("table", "grid"), Ft = V("thead", "gridHeader"), kt = V("th", "headerCell"), At = V("tbody", "gridBody"), wt = V("td", "bodyCell"), zt = () => {
|
|
1409
|
+
}), yt = /* @__PURE__ */ Ct("div", "root"), Rt = /* @__PURE__ */ V("div", "header"), St = /* @__PURE__ */ V("div", "grids"), Et = /* @__PURE__ */ V("div", "monthTitle"), Pt = /* @__PURE__ */ V("table", "grid"), Ft = /* @__PURE__ */ V("thead", "gridHeader"), kt = /* @__PURE__ */ V("th", "headerCell"), At = /* @__PURE__ */ V("tbody", "gridBody"), wt = /* @__PURE__ */ V("td", "bodyCell"), zt = () => {
|
|
1410
1410
|
var n;
|
|
1411
1411
|
const { locale: e } = Y(), a = de(te), i = E(G), t = ((n = a == null ? void 0 : a.visibleDuration) == null ? void 0 : n.months) || 1, d = ye(Z()), u = t > 1;
|
|
1412
1412
|
return /* @__PURE__ */ m(St, { children: Array.from({ length: t }, (r, f) => {
|
|
@@ -1574,4 +1574,4 @@ export {
|
|
|
1574
1574
|
te as $,
|
|
1575
1575
|
mu as C
|
|
1576
1576
|
};
|
|
1577
|
-
//# sourceMappingURL=calendar-
|
|
1577
|
+
//# sourceMappingURL=calendar-BIB7Bqqn.js.map
|