@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineSlotRecipe as
|
|
2
|
-
import { s as
|
|
3
|
-
const
|
|
1
|
+
import { defineSlotRecipe as i } from "@chakra-ui/react";
|
|
2
|
+
import { s as e } from "./select.recipe-CXWsUldF.js";
|
|
3
|
+
const o = /* @__PURE__ */ i({
|
|
4
4
|
slots: ["root", "label", "indicator"],
|
|
5
5
|
// Unique class name prefix for the component
|
|
6
6
|
className: "nimbus-checkbox",
|
|
@@ -98,9 +98,7 @@ const e = p({
|
|
|
98
98
|
defaultVariants: {
|
|
99
99
|
size: "md"
|
|
100
100
|
}
|
|
101
|
-
})
|
|
102
|
-
var o, i, r, a, l, n, s, d, c;
|
|
103
|
-
const g = p({
|
|
101
|
+
}), l = /* @__PURE__ */ i({
|
|
104
102
|
slots: [
|
|
105
103
|
"root",
|
|
106
104
|
"value",
|
|
@@ -206,14 +204,23 @@ const g = p({
|
|
|
206
204
|
}
|
|
207
205
|
},
|
|
208
206
|
options: {
|
|
209
|
-
|
|
207
|
+
.../* @__PURE__ */ (() => {
|
|
208
|
+
var t;
|
|
209
|
+
return (t = e.base) == null ? void 0 : t.options;
|
|
210
|
+
})(),
|
|
210
211
|
gap: "100"
|
|
211
212
|
},
|
|
212
213
|
optionGroup: {
|
|
213
|
-
|
|
214
|
+
.../* @__PURE__ */ (() => {
|
|
215
|
+
var t;
|
|
216
|
+
return (t = e.base) == null ? void 0 : t.optionGroup;
|
|
217
|
+
})()
|
|
214
218
|
},
|
|
215
219
|
option: {
|
|
216
|
-
|
|
220
|
+
.../* @__PURE__ */ (() => {
|
|
221
|
+
var t;
|
|
222
|
+
return (t = e.base) == null ? void 0 : t.option;
|
|
223
|
+
})(),
|
|
217
224
|
whiteSpace: "wrap"
|
|
218
225
|
},
|
|
219
226
|
optionIndicator: {
|
|
@@ -223,12 +230,21 @@ const g = p({
|
|
|
223
230
|
display: "flex",
|
|
224
231
|
alignItems: "center",
|
|
225
232
|
"& span[data-selected]": {
|
|
226
|
-
|
|
227
|
-
|
|
233
|
+
.../* @__PURE__ */ (() => {
|
|
234
|
+
var t;
|
|
235
|
+
return (t = o.base) == null ? void 0 : t.indicator;
|
|
236
|
+
})(),
|
|
237
|
+
.../* @__PURE__ */ (() => {
|
|
238
|
+
var t;
|
|
239
|
+
return (t = o.variants) == null ? void 0 : t.size.md.indicator;
|
|
240
|
+
})()
|
|
228
241
|
}
|
|
229
242
|
},
|
|
230
243
|
optionContent: {
|
|
231
|
-
|
|
244
|
+
.../* @__PURE__ */ (() => {
|
|
245
|
+
var t;
|
|
246
|
+
return (t = o.base) == null ? void 0 : t.label;
|
|
247
|
+
})(),
|
|
232
248
|
whiteSpace: "wrap",
|
|
233
249
|
width: "calc(100% - {sizes.600})",
|
|
234
250
|
display: "inline-block"
|
|
@@ -261,17 +277,26 @@ const g = p({
|
|
|
261
277
|
bg: "primary.1"
|
|
262
278
|
},
|
|
263
279
|
value: {
|
|
264
|
-
|
|
280
|
+
.../* @__PURE__ */ (() => {
|
|
281
|
+
var t;
|
|
282
|
+
return (t = e.variants) == null ? void 0 : t.variant.outline.trigger;
|
|
283
|
+
})(),
|
|
265
284
|
width: "100%"
|
|
266
285
|
}
|
|
267
286
|
},
|
|
268
287
|
ghost: {
|
|
269
288
|
root: {
|
|
270
|
-
|
|
289
|
+
.../* @__PURE__ */ (() => {
|
|
290
|
+
var t;
|
|
291
|
+
return (t = e.variants) == null ? void 0 : t.variant.ghost.root;
|
|
292
|
+
})(),
|
|
271
293
|
maxW: "7200"
|
|
272
294
|
},
|
|
273
295
|
value: {
|
|
274
|
-
|
|
296
|
+
.../* @__PURE__ */ (() => {
|
|
297
|
+
var t;
|
|
298
|
+
return (t = e.variants) == null ? void 0 : t.variant.ghost.trigger;
|
|
299
|
+
})(),
|
|
275
300
|
bg: "transparent"
|
|
276
301
|
}
|
|
277
302
|
}
|
|
@@ -376,7 +401,7 @@ const g = p({
|
|
|
376
401
|
}
|
|
377
402
|
});
|
|
378
403
|
export {
|
|
379
|
-
|
|
380
|
-
|
|
404
|
+
o as a,
|
|
405
|
+
l as c
|
|
381
406
|
};
|
|
382
|
-
//# sourceMappingURL=combobox.recipe-
|
|
407
|
+
//# sourceMappingURL=combobox.recipe-BIn4O0NT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.recipe-KVsma6zb.js","sources":["../../src/components/checkbox/checkbox.recipe.tsx","../../src/components/combobox/combobox.recipe.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Checkbox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const checkboxSlotRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"indicator\"],\n // Unique class name prefix for the component\n className: \"nimbus-checkbox\",\n\n base: {\n root: {\n colorPalette: \"primary\",\n display: \"inline-flex\",\n gap: \"200\",\n alignItems: \"center\",\n verticalAlign: \"top\",\n minWidth: \"600\",\n minHeight: \"600\",\n\n [\"&[data-disabled='true']\"]: {\n layerStyle: \"disabled\",\n },\n },\n label: {\n flexShrink: 0,\n userSelect: \"none\",\n color: \"neutral.12\",\n\n [\"&[data-invalid='true']\"]: {\n color: \"critical.11\",\n },\n },\n indicator: {\n position: \"relative\",\n display: \"flex\",\n flexShrink: 0,\n alignItems: \"center\",\n justifyContent: \"center\",\n border: \"solid-50\",\n borderRadius: \"50\",\n focusRing: \"outside\",\n borderColor: \"neutral.9\",\n bg: \"transparent\",\n color: \"neutral.11\",\n\n _icon: {\n w: \"350\",\n h: \"350\",\n },\n\n \"&:hover\": {\n borderColor: \"neutral.10\",\n },\n\n [\"&[data-invalid='true']\"]: {\n bg: \"transparent\",\n borderColor: \"critical.9\",\n color: \"critical.11\",\n\n \"&:hover\": {\n borderColor: \"critical.10\",\n },\n },\n\n [\"&[data-selected='true'], &[data-indeterminate='true']\"]: {\n bg: \"colorPalette.9\",\n borderColor: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n\n \"&:hover\": {\n bg: \"colorPalette.10\",\n borderColor: \"colorPalette.10\",\n },\n\n \"&[data-invalid='true']\": {\n bg: \"critical.9\",\n borderColor: \"critical.9\",\n color: \"critical.contrast\",\n\n \"&:hover\": {\n bg: \"critical.10\",\n borderColor: \"critical.10\",\n },\n },\n },\n },\n },\n variants: {\n size: {\n md: {\n label: {\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n },\n indicator: {\n w: \"400\",\n h: \"400\",\n zIndex: 1,\n _after: {\n position: \"absolute\",\n content: \"''\",\n width: \"600\",\n height: \"600\",\n zIndex: 0,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { defineSlotRecipe } from \"@chakra-ui/react\";\nimport { selectSlotRecipe } from \"../select/select.recipe\";\nimport { checkboxSlotRecipe } from \"../checkbox/checkbox.recipe\";\n\n/**\n * Recipe configuration for the Combobox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const comboBoxSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"value\",\n \"buttonGroup\",\n \"popover\",\n \"multiSelectInput\",\n \"options\",\n \"optionGroup\",\n \"option\",\n \"optionIndicator\",\n \"optionContent\",\n ],\n // Unique class name prefix for the component\n className: \"nimbus-combobox\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n colorPalette: \"primary\",\n focusRing: \"outside\",\n display: \"inline-flex\",\n position: \"relative\",\n alignSelf: \"flex-start\",\n maxWidth: \"100%\",\n borderRadius: \"200\",\n _hover: {\n bg: \"primary.2\",\n },\n \"&[data-disabled]\": {\n layerStyle: \"disabled\",\n focusRing: \"none\",\n \"& input, & button\": {\n // if you set 'pointer-events: none' on an element, it does not display a cursor,\n // so in order to display `cursor: not-allowed`, we must set pointerEvents: none on the interactive children\n pointerEvents: \"none!\",\n },\n },\n \"& input\": {\n cursor: \"text\",\n _hover: {\n bg: \"primary.2\",\n },\n _placeholder: { opacity: 0.5 },\n },\n \"& [data-placeholder]\": {\n opacity: 0.5,\n },\n },\n value: {\n display: \"flex\",\n focusRing: \"outside\",\n alignItems: \"flex-start\",\n pr: \"1600\",\n pl: \"400\",\n py: \"100\",\n borderRadius: \"200\",\n color: \"neutral.12\",\n maxWidth: \"100%\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n _disabled: { pointerEvents: \"none\" },\n '[data-invalid=\"true\"] &': {\n \"--border-width\": \"sizes.50\",\n \"--border-color\": \"colors.critical.7\",\n color: \"critical.11\",\n },\n '& button[slot=\"remove\"]': {\n _expanded: {\n bg: \"colorPalette.3\",\n },\n },\n },\n buttonGroup: {\n position: \"absolute\",\n display: \"inline-flex\",\n top: 0,\n bottom: 0,\n right: 300,\n my: \"auto\",\n },\n popover: {\n bg: \"bg\",\n borderRadius: \"200\",\n boxShadow: \"5\",\n },\n multiSelectInput: {\n \"& input\": {\n py: \"300\",\n px: \"400\",\n focusRing: \"none\",\n borderBottom: \"solid 1px\",\n borderBottomColor: \"neutral.3\",\n bg: \"transparent\",\n w: \"100%\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n _placeholder: { opacity: 0.5 },\n },\n },\n options: {\n ...selectSlotRecipe.base?.options,\n gap: \"100\",\n },\n optionGroup: {\n ...selectSlotRecipe.base?.optionGroup,\n },\n option: {\n ...selectSlotRecipe.base?.option,\n whiteSpace: \"wrap\",\n },\n optionIndicator: {\n // make sure option is aligned with the first line of text (using lh units)\n height: \"max(1lh, {sizes.600})\",\n width: \"max(1lh, {sizes.600})\",\n display: \"flex\",\n alignItems: \"center\",\n \"& span[data-selected]\": {\n ...checkboxSlotRecipe.base?.indicator,\n ...checkboxSlotRecipe.variants?.size.md.indicator,\n },\n },\n optionContent: {\n ...checkboxSlotRecipe.base?.label,\n whiteSpace: \"wrap\",\n width: \"calc(100% - {sizes.600})\",\n display: \"inline-block\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n // Size variants from smallest to largest\n size: {\n // Small\n sm: {\n value: {\n minH: \"800\",\n textStyle: \"sm\",\n },\n },\n // Medium\n md: {\n value: {\n minH: \"1000\",\n textStyle: \"md\",\n },\n },\n },\n // Visual style variants\n variant: {\n solid: {\n root: {\n width: \"7200\",\n bg: \"primary.1\",\n },\n value: {\n ...selectSlotRecipe.variants?.variant.outline.trigger,\n width: \"100%\",\n },\n },\n ghost: {\n root: {\n ...selectSlotRecipe.variants?.variant.ghost.root,\n maxW: \"7200\",\n },\n\n value: {\n ...selectSlotRecipe.variants?.variant.ghost.trigger,\n bg: \"transparent\",\n },\n },\n },\n selectionMode: {\n multiple: {\n options: {\n boxShadow: \"none\",\n px: \"200\",\n my: \"200\",\n minW: \"unset\",\n \"& section:first-of-type > header\": {\n mt: 0,\n },\n },\n option: {\n colorPalette: \"primary\",\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n position: \"relative\",\n cursor: \"pointer\",\n gap: \"200\",\n mb: \"var(--focus-ring-width)\",\n \"&:last-of-type\": {\n mb: 0,\n },\n '&[aria-selected=\"true\"]': {\n bg: \"unset\",\n },\n '&[data-focused=\"true\"]': {\n // TODO: can't use focusRing prop, find other solution (helper, util, etc.)\n outlineWidth: \"var(--focus-ring-width)\",\n outlineColor: \"var(--focus-ring-color)\",\n outlineStyle: \"var(--focus-ring-style)\",\n bg: \"unset\",\n },\n _hover: {\n bg: \"primary.2\",\n },\n },\n },\n single: {},\n none: {},\n },\n },\n compoundVariants: [\n {\n variant: \"solid\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"solid\",\n selectionMode: \"single\",\n css: {\n root: {\n \"&:has(button:hover)\": {\n \"& input\": {\n bg: \"primary.2\",\n },\n },\n },\n options: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"single\",\n css: {\n value: {\n flex: \"1 1 auto\",\n },\n options: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n ],\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n variant: \"solid\",\n selectionMode: \"single\",\n },\n});\n"],"names":["checkboxSlotRecipe","defineSlotRecipe","comboBoxSlotRecipe","_a","selectSlotRecipe","_b","_c","_d","_e","_f","_g","_h","_i"],"mappings":";;AAMO,MAAMA,IAAqBC,EAAiB;AAAA,EACjD,OAAO,CAAC,QAAQ,SAAS,WAAW;AAAA;AAAA,EAEpC,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;AAAA,MACd,SAAS;AAAA,MACT,KAAK;AAAA,MACL,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,UAAU;AAAA,MACV,WAAW;AAAA,MAEV,2BAA4B;AAAA,QAC3B,YAAY;AAAA,MAAA;AAAA,IAEhB;AAAA,IACA,OAAO;AAAA,MACL,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,OAAO;AAAA,MAEN,0BAA2B;AAAA,QAC1B,OAAO;AAAA,MAAA;AAAA,IAEX;AAAA,IACA,WAAW;AAAA,MACT,UAAU;AAAA,MACV,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,QAAQ;AAAA,MACR,cAA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EX;AAAA,EACA,kBAAkB;AAAA,IAChB;AAAA,MACE,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK;AAAA,QACH,SAAS;AAAA,UACP,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IAEJ;AAAA,IACA;AAAA,MACE,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK;AAAA,QACH,MAAM;AAAA,UACJ,uBAAuB;AAAA,YACrB,WAAW;AAAA,cACT,IAAI;AAAA,YAAA;AAAA,UACN;AAAA,QAEJ;AAAA,QACA,SAAS;AAAA,UACP,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IAEJ;AAAA,IACA;AAAA,MACE,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK;AAAA,QACH,SAAS;AAAA,UACP,MAAM;AAAA,UACN,MAAM;AAAA,QAAA;AAAA,MACR;AAAA,IAEJ;AAAA,IACA;AAAA,MACE,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK;AAAA,QACH,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,SAAS;AAAA,UACP,MAAM;AAAA,UACN,MAAM;AAAA,QAAA;AAAA,MACR;AAAA,IACF;AAAA,EAEJ;AAAA;AAAA,EAEA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,IACT,eAAe;AAAA,EAAA;AAEnB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"combobox.recipe-BIn4O0NT.js","sources":["../../src/components/checkbox/checkbox.recipe.tsx","../../src/components/combobox/combobox.recipe.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Checkbox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const checkboxSlotRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"indicator\"],\n // Unique class name prefix for the component\n className: \"nimbus-checkbox\",\n\n base: {\n root: {\n colorPalette: \"primary\",\n display: \"inline-flex\",\n gap: \"200\",\n alignItems: \"center\",\n verticalAlign: \"top\",\n minWidth: \"600\",\n minHeight: \"600\",\n\n [\"&[data-disabled='true']\"]: {\n layerStyle: \"disabled\",\n },\n },\n label: {\n flexShrink: 0,\n userSelect: \"none\",\n color: \"neutral.12\",\n\n [\"&[data-invalid='true']\"]: {\n color: \"critical.11\",\n },\n },\n indicator: {\n position: \"relative\",\n display: \"flex\",\n flexShrink: 0,\n alignItems: \"center\",\n justifyContent: \"center\",\n border: \"solid-50\",\n borderRadius: \"50\",\n focusRing: \"outside\",\n borderColor: \"neutral.9\",\n bg: \"transparent\",\n color: \"neutral.11\",\n\n _icon: {\n w: \"350\",\n h: \"350\",\n },\n\n \"&:hover\": {\n borderColor: \"neutral.10\",\n },\n\n [\"&[data-invalid='true']\"]: {\n bg: \"transparent\",\n borderColor: \"critical.9\",\n color: \"critical.11\",\n\n \"&:hover\": {\n borderColor: \"critical.10\",\n },\n },\n\n [\"&[data-selected='true'], &[data-indeterminate='true']\"]: {\n bg: \"colorPalette.9\",\n borderColor: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n\n \"&:hover\": {\n bg: \"colorPalette.10\",\n borderColor: \"colorPalette.10\",\n },\n\n \"&[data-invalid='true']\": {\n bg: \"critical.9\",\n borderColor: \"critical.9\",\n color: \"critical.contrast\",\n\n \"&:hover\": {\n bg: \"critical.10\",\n borderColor: \"critical.10\",\n },\n },\n },\n },\n },\n variants: {\n size: {\n md: {\n label: {\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n },\n indicator: {\n w: \"400\",\n h: \"400\",\n zIndex: 1,\n _after: {\n position: \"absolute\",\n content: \"''\",\n width: \"600\",\n height: \"600\",\n zIndex: 0,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { defineSlotRecipe } from \"@chakra-ui/react\";\nimport { selectSlotRecipe } from \"../select/select.recipe\";\nimport { checkboxSlotRecipe } from \"../checkbox/checkbox.recipe\";\n\n/**\n * Recipe configuration for the Combobox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const comboBoxSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"value\",\n \"buttonGroup\",\n \"popover\",\n \"multiSelectInput\",\n \"options\",\n \"optionGroup\",\n \"option\",\n \"optionIndicator\",\n \"optionContent\",\n ],\n // Unique class name prefix for the component\n className: \"nimbus-combobox\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n colorPalette: \"primary\",\n focusRing: \"outside\",\n display: \"inline-flex\",\n position: \"relative\",\n alignSelf: \"flex-start\",\n maxWidth: \"100%\",\n borderRadius: \"200\",\n _hover: {\n bg: \"primary.2\",\n },\n \"&[data-disabled]\": {\n layerStyle: \"disabled\",\n focusRing: \"none\",\n \"& input, & button\": {\n // if you set 'pointer-events: none' on an element, it does not display a cursor,\n // so in order to display `cursor: not-allowed`, we must set pointerEvents: none on the interactive children\n pointerEvents: \"none!\",\n },\n },\n \"& input\": {\n cursor: \"text\",\n _hover: {\n bg: \"primary.2\",\n },\n _placeholder: { opacity: 0.5 },\n },\n \"& [data-placeholder]\": {\n opacity: 0.5,\n },\n },\n value: {\n display: \"flex\",\n focusRing: \"outside\",\n alignItems: \"flex-start\",\n pr: \"1600\",\n pl: \"400\",\n py: \"100\",\n borderRadius: \"200\",\n color: \"neutral.12\",\n maxWidth: \"100%\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n _disabled: { pointerEvents: \"none\" },\n '[data-invalid=\"true\"] &': {\n \"--border-width\": \"sizes.50\",\n \"--border-color\": \"colors.critical.7\",\n color: \"critical.11\",\n },\n '& button[slot=\"remove\"]': {\n _expanded: {\n bg: \"colorPalette.3\",\n },\n },\n },\n buttonGroup: {\n position: \"absolute\",\n display: \"inline-flex\",\n top: 0,\n bottom: 0,\n right: 300,\n my: \"auto\",\n },\n popover: {\n bg: \"bg\",\n borderRadius: \"200\",\n boxShadow: \"5\",\n },\n multiSelectInput: {\n \"& input\": {\n py: \"300\",\n px: \"400\",\n focusRing: \"none\",\n borderBottom: \"solid 1px\",\n borderBottomColor: \"neutral.3\",\n bg: \"transparent\",\n w: \"100%\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n _placeholder: { opacity: 0.5 },\n },\n },\n options: {\n ...selectSlotRecipe.base?.options,\n gap: \"100\",\n },\n optionGroup: {\n ...selectSlotRecipe.base?.optionGroup,\n },\n option: {\n ...selectSlotRecipe.base?.option,\n whiteSpace: \"wrap\",\n },\n optionIndicator: {\n // make sure option is aligned with the first line of text (using lh units)\n height: \"max(1lh, {sizes.600})\",\n width: \"max(1lh, {sizes.600})\",\n display: \"flex\",\n alignItems: \"center\",\n \"& span[data-selected]\": {\n ...checkboxSlotRecipe.base?.indicator,\n ...checkboxSlotRecipe.variants?.size.md.indicator,\n },\n },\n optionContent: {\n ...checkboxSlotRecipe.base?.label,\n whiteSpace: \"wrap\",\n width: \"calc(100% - {sizes.600})\",\n display: \"inline-block\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n // Size variants from smallest to largest\n size: {\n // Small\n sm: {\n value: {\n minH: \"800\",\n textStyle: \"sm\",\n },\n },\n // Medium\n md: {\n value: {\n minH: \"1000\",\n textStyle: \"md\",\n },\n },\n },\n // Visual style variants\n variant: {\n solid: {\n root: {\n width: \"7200\",\n bg: \"primary.1\",\n },\n value: {\n ...selectSlotRecipe.variants?.variant.outline.trigger,\n width: \"100%\",\n },\n },\n ghost: {\n root: {\n ...selectSlotRecipe.variants?.variant.ghost.root,\n maxW: \"7200\",\n },\n\n value: {\n ...selectSlotRecipe.variants?.variant.ghost.trigger,\n bg: \"transparent\",\n },\n },\n },\n selectionMode: {\n multiple: {\n options: {\n boxShadow: \"none\",\n px: \"200\",\n my: \"200\",\n minW: \"unset\",\n \"& section:first-of-type > header\": {\n mt: 0,\n },\n },\n option: {\n colorPalette: \"primary\",\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n position: \"relative\",\n cursor: \"pointer\",\n gap: \"200\",\n mb: \"var(--focus-ring-width)\",\n \"&:last-of-type\": {\n mb: 0,\n },\n '&[aria-selected=\"true\"]': {\n bg: \"unset\",\n },\n '&[data-focused=\"true\"]': {\n // TODO: can't use focusRing prop, find other solution (helper, util, etc.)\n outlineWidth: \"var(--focus-ring-width)\",\n outlineColor: \"var(--focus-ring-color)\",\n outlineStyle: \"var(--focus-ring-style)\",\n bg: \"unset\",\n },\n _hover: {\n bg: \"primary.2\",\n },\n },\n },\n single: {},\n none: {},\n },\n },\n compoundVariants: [\n {\n variant: \"solid\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"solid\",\n selectionMode: \"single\",\n css: {\n root: {\n \"&:has(button:hover)\": {\n \"& input\": {\n bg: \"primary.2\",\n },\n },\n },\n options: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"single\",\n css: {\n value: {\n flex: \"1 1 auto\",\n },\n options: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n ],\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n variant: \"solid\",\n selectionMode: \"single\",\n },\n});\n"],"names":["checkboxSlotRecipe","defineSlotRecipe","comboBoxSlotRecipe","_a","selectSlotRecipe"],"mappings":";;AAMO,MAAMA,IAAqB,gBAAAC,EAAiB;AAAA,EACjD,OAAO,CAAC,QAAQ,SAAS,WAAW;AAAA;AAAA,EAEpC,WAAW;AAAA,EAEX,MAAM;A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AS;AAAA,UACP,MAAM;AAAA,UACN,MAAM;AAAA,QAAA;AAAA,MACR;AAAA,IAEJ;AAAA,IACA;AAAA,MACE,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK;AAAA,QACH,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,SAAS;AAAA,UACP,MAAM;AAAA,UACN,MAAM;AAAA,QAAA;AAAA,MACR;AAAA,IACF;AAAA,EAEJ;AAAA;AAAA,EAEA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,IACT,eAAe;AAAA,EAAA;AAEnB,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("@chakra-ui/react"),t=require("./select.recipe-DUHFWlQt.js"),o=i.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.12","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),r=i.defineSlotRecipe({slots:["root","value","buttonGroup","popover","multiSelectInput","options","optionGroup","option","optionIndicator","optionContent"],className:"nimbus-combobox",base:{root:{colorPalette:"primary",focusRing:"outside",display:"inline-flex",position:"relative",alignSelf:"flex-start",maxWidth:"100%",borderRadius:"200",_hover:{bg:"primary.2"},"&[data-disabled]":{layerStyle:"disabled",focusRing:"none","& input, & button":{pointerEvents:"none!"}},"& input":{cursor:"text",_hover:{bg:"primary.2"},_placeholder:{opacity:.5}},"& [data-placeholder]":{opacity:.5}},value:{display:"flex",focusRing:"outside",alignItems:"flex-start",pr:"1600",pl:"400",py:"100",borderRadius:"200",color:"neutral.12",maxWidth:"100%",textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_disabled:{pointerEvents:"none"},'[data-invalid="true"] &':{"--border-width":"sizes.50","--border-color":"colors.critical.7",color:"critical.11"},'& button[slot="remove"]':{_expanded:{bg:"colorPalette.3"}}},buttonGroup:{position:"absolute",display:"inline-flex",top:0,bottom:0,right:300,my:"auto"},popover:{bg:"bg",borderRadius:"200",boxShadow:"5"},multiSelectInput:{"& input":{py:"300",px:"400",focusRing:"none",borderBottom:"solid 1px",borderBottomColor:"neutral.3",bg:"transparent",w:"100%",overflow:"hidden",textOverflow:"ellipsis",fontSize:"350",fontWeight:"400",lineHeight:"400",_placeholder:{opacity:.5}}},options:{...(()=>{var e;return(e=t.selectSlotRecipe.base)==null?void 0:e.options})(),gap:"100"},optionGroup:{...(()=>{var e;return(e=t.selectSlotRecipe.base)==null?void 0:e.optionGroup})()},option:{...(()=>{var e;return(e=t.selectSlotRecipe.base)==null?void 0:e.option})(),whiteSpace:"wrap"},optionIndicator:{height:"max(1lh, {sizes.600})",width:"max(1lh, {sizes.600})",display:"flex",alignItems:"center","& span[data-selected]":{...(()=>{var e;return(e=o.base)==null?void 0:e.indicator})(),...(()=>{var e;return(e=o.variants)==null?void 0:e.size.md.indicator})()}},optionContent:{...(()=>{var e;return(e=o.base)==null?void 0:e.label})(),whiteSpace:"wrap",width:"calc(100% - {sizes.600})",display:"inline-block"}},variants:{size:{sm:{value:{minH:"800",textStyle:"sm"}},md:{value:{minH:"1000",textStyle:"md"}}},variant:{solid:{root:{width:"7200",bg:"primary.1"},value:{...(()=>{var e;return(e=t.selectSlotRecipe.variants)==null?void 0:e.variant.outline.trigger})(),width:"100%"}},ghost:{root:{...(()=>{var e;return(e=t.selectSlotRecipe.variants)==null?void 0:e.variant.ghost.root})(),maxW:"7200"},value:{...(()=>{var e;return(e=t.selectSlotRecipe.variants)==null?void 0:e.variant.ghost.trigger})(),bg:"transparent"}}},selectionMode:{multiple:{options:{boxShadow:"none",px:"200",my:"200",minW:"unset","& section:first-of-type > header":{mt:0}},option:{colorPalette:"primary",display:"flex",alignItems:"flex-start",justifyContent:"center",position:"relative",cursor:"pointer",gap:"200",mb:"var(--focus-ring-width)","&:last-of-type":{mb:0},'&[aria-selected="true"]':{bg:"unset"},'&[data-focused="true"]':{outlineWidth:"var(--focus-ring-width)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style)",bg:"unset"},_hover:{bg:"primary.2"}}},single:{},none:{}}},compoundVariants:[{variant:"solid",selectionMode:"multiple",css:{popover:{width:"var(--trigger-width)"}}},{variant:"solid",selectionMode:"single",css:{root:{"&:has(button:hover)":{"& input":{bg:"primary.2"}}},options:{width:"var(--trigger-width)"}}},{variant:"ghost",selectionMode:"multiple",css:{popover:{minW:"max(var(--trigger-width), {sizes.2000})",maxW:"max(var(--trigger-width), {sizes.7200})"}}},{variant:"ghost",selectionMode:"single",css:{value:{flex:"1 1 auto"},options:{minW:"max(var(--trigger-width), {sizes.2000})",maxW:"max(var(--trigger-width), {sizes.7200})"}}}],defaultVariants:{size:"md",variant:"solid",selectionMode:"single"}});exports.checkboxSlotRecipe=o;exports.comboBoxSlotRecipe=r;
|
|
2
|
+
//# sourceMappingURL=combobox.recipe-Da71Y6ye.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.recipe-BzaPWi66.js","sources":["../../src/components/checkbox/checkbox.recipe.tsx","../../src/components/combobox/combobox.recipe.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Checkbox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const checkboxSlotRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"indicator\"],\n // Unique class name prefix for the component\n className: \"nimbus-checkbox\",\n\n base: {\n root: {\n colorPalette: \"primary\",\n display: \"inline-flex\",\n gap: \"200\",\n alignItems: \"center\",\n verticalAlign: \"top\",\n minWidth: \"600\",\n minHeight: \"600\",\n\n [\"&[data-disabled='true']\"]: {\n layerStyle: \"disabled\",\n },\n },\n label: {\n flexShrink: 0,\n userSelect: \"none\",\n color: \"neutral.12\",\n\n [\"&[data-invalid='true']\"]: {\n color: \"critical.11\",\n },\n },\n indicator: {\n position: \"relative\",\n display: \"flex\",\n flexShrink: 0,\n alignItems: \"center\",\n justifyContent: \"center\",\n border: \"solid-50\",\n borderRadius: \"50\",\n focusRing: \"outside\",\n borderColor: \"neutral.9\",\n bg: \"transparent\",\n color: \"neutral.11\",\n\n _icon: {\n w: \"350\",\n h: \"350\",\n },\n\n \"&:hover\": {\n borderColor: \"neutral.10\",\n },\n\n [\"&[data-invalid='true']\"]: {\n bg: \"transparent\",\n borderColor: \"critical.9\",\n color: \"critical.11\",\n\n \"&:hover\": {\n borderColor: \"critical.10\",\n },\n },\n\n [\"&[data-selected='true'], &[data-indeterminate='true']\"]: {\n bg: \"colorPalette.9\",\n borderColor: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n\n \"&:hover\": {\n bg: \"colorPalette.10\",\n borderColor: \"colorPalette.10\",\n },\n\n \"&[data-invalid='true']\": {\n bg: \"critical.9\",\n borderColor: \"critical.9\",\n color: \"critical.contrast\",\n\n \"&:hover\": {\n bg: \"critical.10\",\n borderColor: \"critical.10\",\n },\n },\n },\n },\n },\n variants: {\n size: {\n md: {\n label: {\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n },\n indicator: {\n w: \"400\",\n h: \"400\",\n zIndex: 1,\n _after: {\n position: \"absolute\",\n content: \"''\",\n width: \"600\",\n height: \"600\",\n zIndex: 0,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { defineSlotRecipe } from \"@chakra-ui/react\";\nimport { selectSlotRecipe } from \"../select/select.recipe\";\nimport { checkboxSlotRecipe } from \"../checkbox/checkbox.recipe\";\n\n/**\n * Recipe configuration for the Combobox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const comboBoxSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"value\",\n \"buttonGroup\",\n \"popover\",\n \"multiSelectInput\",\n \"options\",\n \"optionGroup\",\n \"option\",\n \"optionIndicator\",\n \"optionContent\",\n ],\n // Unique class name prefix for the component\n className: \"nimbus-combobox\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n colorPalette: \"primary\",\n focusRing: \"outside\",\n display: \"inline-flex\",\n position: \"relative\",\n alignSelf: \"flex-start\",\n maxWidth: \"100%\",\n borderRadius: \"200\",\n _hover: {\n bg: \"primary.2\",\n },\n \"&[data-disabled]\": {\n layerStyle: \"disabled\",\n focusRing: \"none\",\n \"& input, & button\": {\n // if you set 'pointer-events: none' on an element, it does not display a cursor,\n // so in order to display `cursor: not-allowed`, we must set pointerEvents: none on the interactive children\n pointerEvents: \"none!\",\n },\n },\n \"& input\": {\n cursor: \"text\",\n _hover: {\n bg: \"primary.2\",\n },\n _placeholder: { opacity: 0.5 },\n },\n \"& [data-placeholder]\": {\n opacity: 0.5,\n },\n },\n value: {\n display: \"flex\",\n focusRing: \"outside\",\n alignItems: \"flex-start\",\n pr: \"1600\",\n pl: \"400\",\n py: \"100\",\n borderRadius: \"200\",\n color: \"neutral.12\",\n maxWidth: \"100%\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n _disabled: { pointerEvents: \"none\" },\n '[data-invalid=\"true\"] &': {\n \"--border-width\": \"sizes.50\",\n \"--border-color\": \"colors.critical.7\",\n color: \"critical.11\",\n },\n '& button[slot=\"remove\"]': {\n _expanded: {\n bg: \"colorPalette.3\",\n },\n },\n },\n buttonGroup: {\n position: \"absolute\",\n display: \"inline-flex\",\n top: 0,\n bottom: 0,\n right: 300,\n my: \"auto\",\n },\n popover: {\n bg: \"bg\",\n borderRadius: \"200\",\n boxShadow: \"5\",\n },\n multiSelectInput: {\n \"& input\": {\n py: \"300\",\n px: \"400\",\n focusRing: \"none\",\n borderBottom: \"solid 1px\",\n borderBottomColor: \"neutral.3\",\n bg: \"transparent\",\n w: \"100%\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n _placeholder: { opacity: 0.5 },\n },\n },\n options: {\n ...selectSlotRecipe.base?.options,\n gap: \"100\",\n },\n optionGroup: {\n ...selectSlotRecipe.base?.optionGroup,\n },\n option: {\n ...selectSlotRecipe.base?.option,\n whiteSpace: \"wrap\",\n },\n optionIndicator: {\n // make sure option is aligned with the first line of text (using lh units)\n height: \"max(1lh, {sizes.600})\",\n width: \"max(1lh, {sizes.600})\",\n display: \"flex\",\n alignItems: \"center\",\n \"& span[data-selected]\": {\n ...checkboxSlotRecipe.base?.indicator,\n ...checkboxSlotRecipe.variants?.size.md.indicator,\n },\n },\n optionContent: {\n ...checkboxSlotRecipe.base?.label,\n whiteSpace: \"wrap\",\n width: \"calc(100% - {sizes.600})\",\n display: \"inline-block\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n // Size variants from smallest to largest\n size: {\n // Small\n sm: {\n value: {\n minH: \"800\",\n textStyle: \"sm\",\n },\n },\n // Medium\n md: {\n value: {\n minH: \"1000\",\n textStyle: \"md\",\n },\n },\n },\n // Visual style variants\n variant: {\n solid: {\n root: {\n width: \"7200\",\n bg: \"primary.1\",\n },\n value: {\n ...selectSlotRecipe.variants?.variant.outline.trigger,\n width: \"100%\",\n },\n },\n ghost: {\n root: {\n ...selectSlotRecipe.variants?.variant.ghost.root,\n maxW: \"7200\",\n },\n\n value: {\n ...selectSlotRecipe.variants?.variant.ghost.trigger,\n bg: \"transparent\",\n },\n },\n },\n selectionMode: {\n multiple: {\n options: {\n boxShadow: \"none\",\n px: \"200\",\n my: \"200\",\n minW: \"unset\",\n \"& section:first-of-type > header\": {\n mt: 0,\n },\n },\n option: {\n colorPalette: \"primary\",\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n position: \"relative\",\n cursor: \"pointer\",\n gap: \"200\",\n mb: \"var(--focus-ring-width)\",\n \"&:last-of-type\": {\n mb: 0,\n },\n '&[aria-selected=\"true\"]': {\n bg: \"unset\",\n },\n '&[data-focused=\"true\"]': {\n // TODO: can't use focusRing prop, find other solution (helper, util, etc.)\n outlineWidth: \"var(--focus-ring-width)\",\n outlineColor: \"var(--focus-ring-color)\",\n outlineStyle: \"var(--focus-ring-style)\",\n bg: \"unset\",\n },\n _hover: {\n bg: \"primary.2\",\n },\n },\n },\n single: {},\n none: {},\n },\n },\n compoundVariants: [\n {\n variant: \"solid\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"solid\",\n selectionMode: \"single\",\n css: {\n root: {\n \"&:has(button:hover)\": {\n \"& input\": {\n bg: \"primary.2\",\n },\n },\n },\n options: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"single\",\n css: {\n value: {\n flex: \"1 1 auto\",\n },\n options: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n ],\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n variant: \"solid\",\n selectionMode: \"single\",\n },\n});\n"],"names":["checkboxSlotRecipe","defineSlotRecipe","comboBoxSlotRecipe","selectSlotRecipe","_d","_e","_f"],"mappings":"0FAMaA,EAAqBC,EAAAA,iBAAiB,CACjD,MAAO,CAAC,OAAQ,QAAS,WAAW,EAEpC,UAAW,kBAEX,KAAM,CACJ,KAAM,CACJ,aAAc,UACd,QAAS,cACT,IAAK,MACL,WAAY,SACZ,cAAe,MACf,SAAU,MACV,UAAW,MAEV,0BAA4B,CAC3B,WAAY,UAAA,CAEhB,EACA,MAAO,CACL,WAAY,EACZ,WAAY,OACZ,MAAO,aAEN,yBAA2B,CAC1B,MAAO,aAAA,CAEX,EACA,UAAW,CACT,SAAU,WACV,QAAS,OACT,WAAY,EACZ,WAAY,SACZ,eAAgB,SAChB,OAAQ,WACR,aAAc,KACd,UAAW,UACX,YAAa,YACb,GAAI,cACJ,MAAO,aAEP,MAAO,CACL,EAAG,MACH,EAAG,KACL,EAEA,UAAW,CACT,YAAa,YACf,EAEC,yBAA2B,CAC1B,GAAI,cACJ,YAAa,aACb,MAAO,cAEP,UAAW,CACT,YAAa,aAAA,CAEjB,EAEC,wDAA0D,CACzD,GAAI,iBACJ,YAAa,iBACb,MAAO,wBAEP,UAAW,CACT,GAAI,kBACJ,YAAa,iBACf,EAEA,yBAA0B,CACxB,GAAI,aACJ,YAAa,aACb,MAAO,oBAEP,UAAW,CACT,GAAI,cACJ,YAAa,aAAA,CACf,CACF,CACF,CAEJ,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CACF,MAAO,CACL,SAAU,MACV,WAAY,MACZ,WAAY,KACd,EACA,UAAW,CACT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EACA,OAAQ,CACN,aAAc,UACd,QAAS,OACT,WAAY,aACZ,eAAgB,SAChB,SAAU,WACV,OAAQ,UACR,IAAK,MACL,GAAI,0BACJ,iBAAkB,CAChB,GAAI,CACN,EACA,0BAA2B,CACzB,GAAI,OACN,EACA,yBAA0B,CAExB,aAAc,0BACd,aAAc,0BACd,aAAc,0BACd,GAAI,OACN,EACA,OAAQ,CACN,GAAI,WAAA,CACN,CAEJ,EACA,OAAQ,CAAC,EACT,KAAM,CAAA,CAAC,CAEX,EACA,iBAAkB,CAChB,CACE,QAAS,QACT,cAAe,WACf,IAAK,CACH,QAAS,CACP,MAAO,sBAAA,CACT,CAEJ,EACA,CACE,QAAS,QACT,cAAe,SACf,IAAK,CACH,KAAM,CACJ,sBAAuB,CACrB,UAAW,CACT,GAAI,WAAA,CACN,CAEJ,EACA,QAAS,CACP,MAAO,sBAAA,CACT,CAEJ,EACA,CACE,QAAS,QACT,cAAe,WACf,IAAK,CACH,QAAS,CACP,KAAM,0CACN,KAAM,yCAAA,CACR,CAEJ,EACA,CACE,QAAS,QACT,cAAe,SACf,IAAK,CACH,MAAO,CACL,KAAM,UACR,EACA,QAAS,CACP,KAAM,0CACN,KAAM,yCAAA,CACR,CACF,CAEJ,EAEA,gBAAiB,CACf,KAAM,KACN,QAAS,QACT,cAAe,QAAA,CAEnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"combobox.recipe-Da71Y6ye.js","sources":["../../src/components/checkbox/checkbox.recipe.tsx","../../src/components/combobox/combobox.recipe.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Checkbox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const checkboxSlotRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"indicator\"],\n // Unique class name prefix for the component\n className: \"nimbus-checkbox\",\n\n base: {\n root: {\n colorPalette: \"primary\",\n display: \"inline-flex\",\n gap: \"200\",\n alignItems: \"center\",\n verticalAlign: \"top\",\n minWidth: \"600\",\n minHeight: \"600\",\n\n [\"&[data-disabled='true']\"]: {\n layerStyle: \"disabled\",\n },\n },\n label: {\n flexShrink: 0,\n userSelect: \"none\",\n color: \"neutral.12\",\n\n [\"&[data-invalid='true']\"]: {\n color: \"critical.11\",\n },\n },\n indicator: {\n position: \"relative\",\n display: \"flex\",\n flexShrink: 0,\n alignItems: \"center\",\n justifyContent: \"center\",\n border: \"solid-50\",\n borderRadius: \"50\",\n focusRing: \"outside\",\n borderColor: \"neutral.9\",\n bg: \"transparent\",\n color: \"neutral.11\",\n\n _icon: {\n w: \"350\",\n h: \"350\",\n },\n\n \"&:hover\": {\n borderColor: \"neutral.10\",\n },\n\n [\"&[data-invalid='true']\"]: {\n bg: \"transparent\",\n borderColor: \"critical.9\",\n color: \"critical.11\",\n\n \"&:hover\": {\n borderColor: \"critical.10\",\n },\n },\n\n [\"&[data-selected='true'], &[data-indeterminate='true']\"]: {\n bg: \"colorPalette.9\",\n borderColor: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n\n \"&:hover\": {\n bg: \"colorPalette.10\",\n borderColor: \"colorPalette.10\",\n },\n\n \"&[data-invalid='true']\": {\n bg: \"critical.9\",\n borderColor: \"critical.9\",\n color: \"critical.contrast\",\n\n \"&:hover\": {\n bg: \"critical.10\",\n borderColor: \"critical.10\",\n },\n },\n },\n },\n },\n variants: {\n size: {\n md: {\n label: {\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n },\n indicator: {\n w: \"400\",\n h: \"400\",\n zIndex: 1,\n _after: {\n position: \"absolute\",\n content: \"''\",\n width: \"600\",\n height: \"600\",\n zIndex: 0,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { defineSlotRecipe } from \"@chakra-ui/react\";\nimport { selectSlotRecipe } from \"../select/select.recipe\";\nimport { checkboxSlotRecipe } from \"../checkbox/checkbox.recipe\";\n\n/**\n * Recipe configuration for the Combobox component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const comboBoxSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"value\",\n \"buttonGroup\",\n \"popover\",\n \"multiSelectInput\",\n \"options\",\n \"optionGroup\",\n \"option\",\n \"optionIndicator\",\n \"optionContent\",\n ],\n // Unique class name prefix for the component\n className: \"nimbus-combobox\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n colorPalette: \"primary\",\n focusRing: \"outside\",\n display: \"inline-flex\",\n position: \"relative\",\n alignSelf: \"flex-start\",\n maxWidth: \"100%\",\n borderRadius: \"200\",\n _hover: {\n bg: \"primary.2\",\n },\n \"&[data-disabled]\": {\n layerStyle: \"disabled\",\n focusRing: \"none\",\n \"& input, & button\": {\n // if you set 'pointer-events: none' on an element, it does not display a cursor,\n // so in order to display `cursor: not-allowed`, we must set pointerEvents: none on the interactive children\n pointerEvents: \"none!\",\n },\n },\n \"& input\": {\n cursor: \"text\",\n _hover: {\n bg: \"primary.2\",\n },\n _placeholder: { opacity: 0.5 },\n },\n \"& [data-placeholder]\": {\n opacity: 0.5,\n },\n },\n value: {\n display: \"flex\",\n focusRing: \"outside\",\n alignItems: \"flex-start\",\n pr: \"1600\",\n pl: \"400\",\n py: \"100\",\n borderRadius: \"200\",\n color: \"neutral.12\",\n maxWidth: \"100%\",\n textAlign: \"left\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n _disabled: { pointerEvents: \"none\" },\n '[data-invalid=\"true\"] &': {\n \"--border-width\": \"sizes.50\",\n \"--border-color\": \"colors.critical.7\",\n color: \"critical.11\",\n },\n '& button[slot=\"remove\"]': {\n _expanded: {\n bg: \"colorPalette.3\",\n },\n },\n },\n buttonGroup: {\n position: \"absolute\",\n display: \"inline-flex\",\n top: 0,\n bottom: 0,\n right: 300,\n my: \"auto\",\n },\n popover: {\n bg: \"bg\",\n borderRadius: \"200\",\n boxShadow: \"5\",\n },\n multiSelectInput: {\n \"& input\": {\n py: \"300\",\n px: \"400\",\n focusRing: \"none\",\n borderBottom: \"solid 1px\",\n borderBottomColor: \"neutral.3\",\n bg: \"transparent\",\n w: \"100%\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n fontSize: \"350\",\n fontWeight: \"400\",\n lineHeight: \"400\",\n _placeholder: { opacity: 0.5 },\n },\n },\n options: {\n ...selectSlotRecipe.base?.options,\n gap: \"100\",\n },\n optionGroup: {\n ...selectSlotRecipe.base?.optionGroup,\n },\n option: {\n ...selectSlotRecipe.base?.option,\n whiteSpace: \"wrap\",\n },\n optionIndicator: {\n // make sure option is aligned with the first line of text (using lh units)\n height: \"max(1lh, {sizes.600})\",\n width: \"max(1lh, {sizes.600})\",\n display: \"flex\",\n alignItems: \"center\",\n \"& span[data-selected]\": {\n ...checkboxSlotRecipe.base?.indicator,\n ...checkboxSlotRecipe.variants?.size.md.indicator,\n },\n },\n optionContent: {\n ...checkboxSlotRecipe.base?.label,\n whiteSpace: \"wrap\",\n width: \"calc(100% - {sizes.600})\",\n display: \"inline-block\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n // Size variants from smallest to largest\n size: {\n // Small\n sm: {\n value: {\n minH: \"800\",\n textStyle: \"sm\",\n },\n },\n // Medium\n md: {\n value: {\n minH: \"1000\",\n textStyle: \"md\",\n },\n },\n },\n // Visual style variants\n variant: {\n solid: {\n root: {\n width: \"7200\",\n bg: \"primary.1\",\n },\n value: {\n ...selectSlotRecipe.variants?.variant.outline.trigger,\n width: \"100%\",\n },\n },\n ghost: {\n root: {\n ...selectSlotRecipe.variants?.variant.ghost.root,\n maxW: \"7200\",\n },\n\n value: {\n ...selectSlotRecipe.variants?.variant.ghost.trigger,\n bg: \"transparent\",\n },\n },\n },\n selectionMode: {\n multiple: {\n options: {\n boxShadow: \"none\",\n px: \"200\",\n my: \"200\",\n minW: \"unset\",\n \"& section:first-of-type > header\": {\n mt: 0,\n },\n },\n option: {\n colorPalette: \"primary\",\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n position: \"relative\",\n cursor: \"pointer\",\n gap: \"200\",\n mb: \"var(--focus-ring-width)\",\n \"&:last-of-type\": {\n mb: 0,\n },\n '&[aria-selected=\"true\"]': {\n bg: \"unset\",\n },\n '&[data-focused=\"true\"]': {\n // TODO: can't use focusRing prop, find other solution (helper, util, etc.)\n outlineWidth: \"var(--focus-ring-width)\",\n outlineColor: \"var(--focus-ring-color)\",\n outlineStyle: \"var(--focus-ring-style)\",\n bg: \"unset\",\n },\n _hover: {\n bg: \"primary.2\",\n },\n },\n },\n single: {},\n none: {},\n },\n },\n compoundVariants: [\n {\n variant: \"solid\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"solid\",\n selectionMode: \"single\",\n css: {\n root: {\n \"&:has(button:hover)\": {\n \"& input\": {\n bg: \"primary.2\",\n },\n },\n },\n options: {\n width: \"var(--trigger-width)\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"multiple\",\n css: {\n popover: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n {\n variant: \"ghost\",\n selectionMode: \"single\",\n css: {\n value: {\n flex: \"1 1 auto\",\n },\n options: {\n minW: \"max(var(--trigger-width), {sizes.2000})\",\n maxW: \"max(var(--trigger-width), {sizes.7200})\",\n },\n },\n },\n ],\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n variant: \"solid\",\n selectionMode: \"single\",\n },\n});\n"],"names":["checkboxSlotRecipe","defineSlotRecipe","comboBoxSlotRecipe","selectSlotRecipe","_a"],"mappings":"0FAMaA,EAAqBC,EAAAA,iBAAiB,CACjD,MAAO,CAAC,OAAQ,QAAS,WAAW,EAEpC,UAAW,kBAEX,KAAM,CACJ,KAAM,CACJ,aAAc,UACd,QAAS,cACT,IAA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N,GAAI,WAAA,CACN,CAEJ,EACA,OAAQ,CAAC,EACT,KAAM,CAAA,CAAC,CAEX,EACA,iBAAkB,CAChB,CACE,QAAS,QACT,cAAe,WACf,IAAK,CACH,QAAS,CACP,MAAO,sBAAA,CACT,CAEJ,EACA,CACE,QAAS,QACT,cAAe,SACf,IAAK,CACH,KAAM,CACJ,sBAAuB,CACrB,UAAW,CACT,GAAI,WAAA,CACN,CAEJ,EACA,QAAS,CACP,MAAO,sBAAA,CACT,CAEJ,EACA,CACE,QAAS,QACT,cAAe,WACf,IAAK,CACH,QAAS,CACP,KAAM,0CACN,KAAM,yCAAA,CACR,CAEJ,EACA,CACE,QAAS,QACT,cAAe,SACf,IAAK,CACH,MAAO,CACL,KAAM,UACR,EACA,QAAS,CACP,KAAM,0CACN,KAAM,yCAAA,CACR,CACF,CAEJ,EAEA,gBAAiB,CACf,KAAM,KACN,QAAS,QACT,cAAe,QAAA,CAEnB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o, { useState as s, useEffect as b, useContext as p } from "react";
|
|
2
|
-
import { $ as g } from "./SSRProvider-
|
|
2
|
+
import { $ as g } from "./SSRProvider-eIEwc-2s.js";
|
|
3
3
|
const v = /* @__PURE__ */ new Set([
|
|
4
4
|
"Arab",
|
|
5
5
|
"Syrc",
|
|
@@ -41,7 +41,7 @@ function c(e) {
|
|
|
41
41
|
let a = e.split("-")[0];
|
|
42
42
|
return x.has(a);
|
|
43
43
|
}
|
|
44
|
-
const m = Symbol.for("react-aria.i18n.locale");
|
|
44
|
+
const m = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale");
|
|
45
45
|
function i() {
|
|
46
46
|
let e = typeof window < "u" && window[m] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
47
47
|
try {
|
|
@@ -56,7 +56,7 @@ function i() {
|
|
|
56
56
|
direction: c(e) ? "rtl" : "ltr"
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
let l = i(), r = /* @__PURE__ */ new Set();
|
|
59
|
+
let l = /* @__PURE__ */ i(), r = /* @__PURE__ */ new Set();
|
|
60
60
|
function f() {
|
|
61
61
|
l = i();
|
|
62
62
|
for (let e of r) e(l);
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
h as $,
|
|
92
92
|
w as a
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=context-
|
|
94
|
+
//# sourceMappingURL=context-CI0Y3O6x.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-CgP0qpkX.js","sources":["../../../../node_modules/.pnpm/@react-aria+i18n@3.12.10_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/i18n/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+i18n@3.12.10_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs","../../../../node_modules/.pnpm/@react-aria+i18n@3.12.10_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/i18n/dist/context.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // https://en.wikipedia.org/wiki/Right-to-left\nconst $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([\n 'Arab',\n 'Syrc',\n 'Samr',\n 'Mand',\n 'Thaa',\n 'Mend',\n 'Nkoo',\n 'Adlm',\n 'Rohg',\n 'Hebr'\n]);\nconst $148a7a147e38ea7f$var$RTL_LANGS = new Set([\n 'ae',\n 'ar',\n 'arc',\n 'bcc',\n 'bqi',\n 'ckb',\n 'dv',\n 'fa',\n 'glk',\n 'he',\n 'ku',\n 'mzn',\n 'nqo',\n 'pnb',\n 'ps',\n 'sd',\n 'ug',\n 'ur',\n 'yi'\n]);\nfunction $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {\n // If the Intl.Locale API is available, use it to get the locale's text direction.\n if (Intl.Locale) {\n let locale = new Intl.Locale(localeString).maximize();\n // Use the text info object to get the direction if possible.\n // @ts-ignore - this was implemented as a property by some browsers before it was standardized as a function.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo\n let textInfo = typeof locale.getTextInfo === 'function' ? locale.getTextInfo() : locale.textInfo;\n if (textInfo) return textInfo.direction === 'rtl';\n // Fallback: guess using the script.\n // This is more accurate than guessing by language, since languages can be written in multiple scripts.\n if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);\n }\n // If not, just guess by the language (first part of the locale)\n let lang = localeString.split('-')[0];\n return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);\n}\n\n\nexport {$148a7a147e38ea7f$export$702d680b21cbd764 as isRTL};\n//# sourceMappingURL=utils.module.js.map\n","import {isRTL as $148a7a147e38ea7f$export$702d680b21cbd764} from \"./utils.mjs\";\nimport {useState as $ffhGL$useState, useEffect as $ffhGL$useEffect} from \"react\";\nimport {useIsSSR as $ffhGL$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n// Locale passed from server by PackageLocalizationProvider.\nconst $1e5a04cdaf7d1af8$var$localeSymbol = Symbol.for('react-aria.i18n.locale');\nfunction $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {\n let locale = typeof window !== 'undefined' && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator !== 'undefined' && (navigator.language || navigator.userLanguage) || 'en-US';\n try {\n Intl.DateTimeFormat.supportedLocalesOf([\n locale\n ]);\n } catch {\n locale = 'en-US';\n }\n return {\n locale: locale,\n direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr'\n };\n}\nlet $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();\nlet $1e5a04cdaf7d1af8$var$listeners = new Set();\nfunction $1e5a04cdaf7d1af8$var$updateLocale() {\n $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();\n for (let listener of $1e5a04cdaf7d1af8$var$listeners)listener($1e5a04cdaf7d1af8$var$currentLocale);\n}\nfunction $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {\n let isSSR = (0, $ffhGL$useIsSSR)();\n let [defaultLocale, setDefaultLocale] = (0, $ffhGL$useState)($1e5a04cdaf7d1af8$var$currentLocale);\n (0, $ffhGL$useEffect)(()=>{\n if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);\n $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);\n return ()=>{\n $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);\n if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);\n };\n }, []);\n // We cannot determine the browser's language on the server, so default to\n // en-US. This will be updated after hydration on the client to the correct value.\n if (isSSR) return {\n locale: 'en-US',\n direction: 'ltr'\n };\n return defaultLocale;\n}\n\n\nexport {$1e5a04cdaf7d1af8$export$f09106e7c6677ec5 as getDefaultLocale, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a as useDefaultLocale};\n//# sourceMappingURL=useDefaultLocale.module.js.map\n","import {isRTL as $148a7a147e38ea7f$export$702d680b21cbd764} from \"./utils.mjs\";\nimport {useDefaultLocale as $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a} from \"./useDefaultLocale.mjs\";\nimport $h9FiU$react, {useContext as $h9FiU$useContext} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $18f2051aff69b9bf$var$I18nContext = /*#__PURE__*/ (0, $h9FiU$react).createContext(null);\nfunction $18f2051aff69b9bf$export$a54013f0d02a8f82(props) {\n let { locale: locale, children: children } = props;\n let defaultLocale = (0, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();\n let value = (0, $h9FiU$react).useMemo(()=>{\n if (!locale) return defaultLocale;\n return {\n locale: locale,\n direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr'\n };\n }, [\n defaultLocale,\n locale\n ]);\n return /*#__PURE__*/ (0, $h9FiU$react).createElement($18f2051aff69b9bf$var$I18nContext.Provider, {\n value: value\n }, children);\n}\nfunction $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {\n let defaultLocale = (0, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();\n let context = (0, $h9FiU$useContext)($18f2051aff69b9bf$var$I18nContext);\n return context || defaultLocale;\n}\n\n\nexport {$18f2051aff69b9bf$export$a54013f0d02a8f82 as I18nProvider, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as useLocale};\n//# sourceMappingURL=context.module.js.map\n"],"names":["$148a7a147e38ea7f$var$RTL_SCRIPTS","$148a7a147e38ea7f$var$RTL_LANGS","$148a7a147e38ea7f$export$702d680b21cbd764","localeString","locale","textInfo","lang","$1e5a04cdaf7d1af8$var$localeSymbol","$1e5a04cdaf7d1af8$export$f09106e7c6677ec5","$1e5a04cdaf7d1af8$var$currentLocale","$1e5a04cdaf7d1af8$var$listeners","$1e5a04cdaf7d1af8$var$updateLocale","listener","$1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a","isSSR","$ffhGL$useIsSSR","defaultLocale","setDefaultLocale","$ffhGL$useState","$ffhGL$useEffect","$18f2051aff69b9bf$var$I18nContext","$h9FiU$react","$18f2051aff69b9bf$export$a54013f0d02a8f82","props","children","value","$18f2051aff69b9bf$export$43bb16f9c6d9e3f7","$h9FiU$useContext"],"mappings":";;AAWA,MAAMA,IAAoC,oBAAI,IAAI;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC,GACKC,IAAkC,oBAAI,IAAI;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AACD,SAASC,EAA0CC,GAAc;AAE7D,MAAI,KAAK,QAAQ;AACb,QAAIC,IAAS,IAAI,KAAK,OAAOD,CAAY,EAAE,SAAU,GAIjDE,IAAW,OAAOD,EAAO,eAAgB,aAAaA,EAAO,gBAAgBA,EAAO;AACxF,QAAIC,EAAU,QAAOA,EAAS,cAAc;AAG5C,QAAID,EAAO,OAAQ,QAAOJ,EAAkC,IAAII,EAAO,MAAM;AAAA,EACrF;AAEI,MAAIE,IA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IACR,WAAeF,EAA2CE,CAAM,IAAI,QAAQ;AAAA,EAC/E,IAJmBY,GAKrB;AAAA,IACCA;AAAA,IACAZ;AAAA,EACR,CAAK;AACD,SAAyBiB,gBAAAA,EAAc,cAAcD,EAAkC,UAAU;AAAA,IAC7F,OAAOK;AAAA,EACV,GAAED,CAAQ;AACf;AACA,SAASE,IAA4C;AACjD,MAAIV,IAAoBH,EAA4C;AAEpE,SADkBc,EAAmBP,CAAiC,KACpDJ;AACtB;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"context-CI0Y3O6x.js","sources":["../../../../node_modules/.pnpm/@react-aria+i18n@3.12.10_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/i18n/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+i18n@3.12.10_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs","../../../../node_modules/.pnpm/@react-aria+i18n@3.12.10_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/i18n/dist/context.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // https://en.wikipedia.org/wiki/Right-to-left\nconst $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([\n 'Arab',\n 'Syrc',\n 'Samr',\n 'Mand',\n 'Thaa',\n 'Mend',\n 'Nkoo',\n 'Adlm',\n 'Rohg',\n 'Hebr'\n]);\nconst $148a7a147e38ea7f$var$RTL_LANGS = new Set([\n 'ae',\n 'ar',\n 'arc',\n 'bcc',\n 'bqi',\n 'ckb',\n 'dv',\n 'fa',\n 'glk',\n 'he',\n 'ku',\n 'mzn',\n 'nqo',\n 'pnb',\n 'ps',\n 'sd',\n 'ug',\n 'ur',\n 'yi'\n]);\nfunction $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {\n // If the Intl.Locale API is available, use it to get the locale's text direction.\n if (Intl.Locale) {\n let locale = new Intl.Locale(localeString).maximize();\n // Use the text info object to get the direction if possible.\n // @ts-ignore - this was implemented as a property by some browsers before it was standardized as a function.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo\n let textInfo = typeof locale.getTextInfo === 'function' ? locale.getTextInfo() : locale.textInfo;\n if (textInfo) return textInfo.direction === 'rtl';\n // Fallback: guess using the script.\n // This is more accurate than guessing by language, since languages can be written in multiple scripts.\n if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);\n }\n // If not, just guess by the language (first part of the locale)\n let lang = localeString.split('-')[0];\n return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);\n}\n\n\nexport {$148a7a147e38ea7f$export$702d680b21cbd764 as isRTL};\n//# sourceMappingURL=utils.module.js.map\n","import {isRTL as $148a7a147e38ea7f$export$702d680b21cbd764} from \"./utils.mjs\";\nimport {useState as $ffhGL$useState, useEffect as $ffhGL$useEffect} from \"react\";\nimport {useIsSSR as $ffhGL$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n// Locale passed from server by PackageLocalizationProvider.\nconst $1e5a04cdaf7d1af8$var$localeSymbol = Symbol.for('react-aria.i18n.locale');\nfunction $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {\n let locale = typeof window !== 'undefined' && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator !== 'undefined' && (navigator.language || navigator.userLanguage) || 'en-US';\n try {\n Intl.DateTimeFormat.supportedLocalesOf([\n locale\n ]);\n } catch {\n locale = 'en-US';\n }\n return {\n locale: locale,\n direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr'\n };\n}\nlet $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();\nlet $1e5a04cdaf7d1af8$var$listeners = new Set();\nfunction $1e5a04cdaf7d1af8$var$updateLocale() {\n $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();\n for (let listener of $1e5a04cdaf7d1af8$var$listeners)listener($1e5a04cdaf7d1af8$var$currentLocale);\n}\nfunction $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {\n let isSSR = (0, $ffhGL$useIsSSR)();\n let [defaultLocale, setDefaultLocale] = (0, $ffhGL$useState)($1e5a04cdaf7d1af8$var$currentLocale);\n (0, $ffhGL$useEffect)(()=>{\n if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);\n $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);\n return ()=>{\n $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);\n if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);\n };\n }, []);\n // We cannot determine the browser's language on the server, so default to\n // en-US. This will be updated after hydration on the client to the correct value.\n if (isSSR) return {\n locale: 'en-US',\n direction: 'ltr'\n };\n return defaultLocale;\n}\n\n\nexport {$1e5a04cdaf7d1af8$export$f09106e7c6677ec5 as getDefaultLocale, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a as useDefaultLocale};\n//# sourceMappingURL=useDefaultLocale.module.js.map\n","import {isRTL as $148a7a147e38ea7f$export$702d680b21cbd764} from \"./utils.mjs\";\nimport {useDefaultLocale as $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a} from \"./useDefaultLocale.mjs\";\nimport $h9FiU$react, {useContext as $h9FiU$useContext} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $18f2051aff69b9bf$var$I18nContext = /*#__PURE__*/ (0, $h9FiU$react).createContext(null);\nfunction $18f2051aff69b9bf$export$a54013f0d02a8f82(props) {\n let { locale: locale, children: children } = props;\n let defaultLocale = (0, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();\n let value = (0, $h9FiU$react).useMemo(()=>{\n if (!locale) return defaultLocale;\n return {\n locale: locale,\n direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr'\n };\n }, [\n defaultLocale,\n locale\n ]);\n return /*#__PURE__*/ (0, $h9FiU$react).createElement($18f2051aff69b9bf$var$I18nContext.Provider, {\n value: value\n }, children);\n}\nfunction $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {\n let defaultLocale = (0, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();\n let context = (0, $h9FiU$useContext)($18f2051aff69b9bf$var$I18nContext);\n return context || defaultLocale;\n}\n\n\nexport {$18f2051aff69b9bf$export$a54013f0d02a8f82 as I18nProvider, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as useLocale};\n//# sourceMappingURL=context.module.js.map\n"],"names":["$148a7a147e38ea7f$var$RTL_SCRIPTS","$148a7a147e38ea7f$var$RTL_LANGS","$148a7a147e38ea7f$export$702d680b21cbd764","localeString","locale","textInfo","lang","$1e5a04cdaf7d1af8$var$localeSymbol","$1e5a04cdaf7d1af8$export$f09106e7c6677ec5","$1e5a04cdaf7d1af8$var$currentLocale","$1e5a04cdaf7d1af8$var$listeners","$1e5a04cdaf7d1af8$var$updateLocale","listener","$1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a","isSSR","$ffhGL$useIsSSR","defaultLocale","setDefaultLocale","$ffhGL$useState","$ffhGL$useEffect","$18f2051aff69b9bf$var$I18nContext","$h9FiU$react","$18f2051aff69b9bf$export$a54013f0d02a8f82","props","children","value","$18f2051aff69b9bf$export$43bb16f9c6d9e3f7","$h9FiU$useContext"],"mappings":";;AAWA,MAAMA,IAAoC,oBAAI,IAAI;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC,GACKC,IAAkC,oBAAI,IAAI;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AACD,SAASC,EAA0CC,GAAc;AAE7D,MAAI,KAAK,QAAQ;AACb,QAAIC,IAAS,IAAI,KAAK,OAAOD,CAAY,EAAE,SAAU,GAIjDE,IAAW,OAAOD,EAAO,eAAgB,aAAaA,EAAO,gBAAgBA,EAAO;AACxF,QAAIC,EAAU,QAAOA,EAAS,cAAc;AAG5C,QAAID,EAAO,OAAQ,QAAOJ,EAAkC,IAAII,EAAO,MAAM;AAAA,EACrF;AAEI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,IACH,QAAQA;AAAA,IACR,WAAeF,EAA2CE,CAAM,IAAI,QAAQ;AAAA,EAC/E,IAJmBY,GAKrB;AAAA,IACCA;AAAA,IACAZ;AAAA,EACR,CAAK;AACD,SAAyBiB,gBAAAA,EAAc,cAAcD,EAAkC,UAAU;AAAA,IAC7F,OAAOK;AAAA,EACV,GAAED,CAAQ;AACf;AACA,SAASE,IAA4C;AACjD,MAAIV,IAAoBH,EAA4C;AAEpE,SADkBc,EAAmBP,CAAiC,KACpDJ;AACtB;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("@chakra-ui/react"),c=require("./date-input.recipe-Cf9e8VAr.js"),t=require("./DateField-
|
|
2
|
-
//# sourceMappingURL=date-input-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("@chakra-ui/react"),c=require("./date-input.recipe-Cf9e8VAr.js"),t=require("./DateField-D3h6vCMK.js"),x=require("./extractStyleProps-lyk7D-zN.js"),{withProvider:h,withContext:o}=r.createSlotRecipeContext({recipe:c.dateInputSlotRecipe}),S=h("div","root"),I=o("div","segmentGroup"),$=o("div","segment"),n=s=>{const i=r.useRecipe({recipe:c.dateInputSlotRecipe}),[p,a]=i.splitVariantProps(s),[u,d]=x.extractStyleProps(a);return e.jsx(S,{...p,...u,asChild:!0,children:e.jsx(t.$40825cdb76e74f70$export$d9781c7894a82487,{...d,children:e.jsx(I,{asChild:!0,children:e.jsx(t.$40825cdb76e74f70$export$7edc06cf1783b30f,{children:l=>e.jsx($,{asChild:!0,children:e.jsx(t.$40825cdb76e74f70$export$336ab7fa954c4b5f,{segment:l})})})})})})};n.displayName="DateInput";exports.DateInput=n;
|
|
2
|
+
//# sourceMappingURL=date-input-DnjW061n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-input-
|
|
1
|
+
{"version":3,"file":"date-input-DnjW061n.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateInputRecipeProps extends RecipeProps<\"div\">, 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 */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateInputRootProps\n extends HTMLChakraProps<\"div\", DateInputRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateInputSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * DateInput\n * ============================================================\n * allows entering a date in the currently selected locale\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateInputSlotRecipe","DateInputRootSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","DateInputField","segment","DateSegment"],"mappings":"+MAyBM,CAAE,aAAAA,EAAc,YAAAC,CAAY,EAAIC,0BAAwB,CAC5D,OAAQC,EAAAA,mBACV,CAAC,EAMYC,EAAoBJ,EAG/B,MAAO,MAAM,EAKFK,EAA4BJ,EAGvC,MAAO,cAAc,EAKVK,EAAuBL,EAGlC,MAAO,SAAS,EC/BLM,EAAaC,GAA0B,CAClD,MAAMC,EAASC,EAAA,UAAU,CAAE,OAAQP,sBAAqB,EAClD,CAACQ,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAK,EAC/D,CAACK,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEvE,OACGI,EAAA,IAAAZ,EAAA,CAAmB,GAAGO,EAAc,GAAGE,EAAY,QAAO,GACzD,SAACG,EAAA,IAAAC,4CAAA,CAAW,GAAGH,EACb,eAACT,EAA0B,CAAA,QAAO,GAChC,SAAAW,EAAAA,IAACE,EACE,0CAAA,CAAA,SAACC,GACAH,EAAAA,IAACV,GAAqB,QAAO,GAC3B,SAACU,MAAAI,EAAAA,0CAAA,CAAY,QAAAD,CAAkB,CAAA,CACjC,CAAA,EAEJ,CAAA,CACF,CACF,CAAA,EACF,CAEJ,EAEAZ,EAAU,YAAc"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { createSlotRecipeContext as d, useRecipe as l } from "@chakra-ui/react";
|
|
3
|
-
import { d as t } from "./date-input.recipe-
|
|
4
|
-
import { $ as m, a as u, b as f } from "./DateField-
|
|
3
|
+
import { d as t } from "./date-input.recipe-BtWEmJGK.js";
|
|
4
|
+
import { $ as m, a as u, b as f } from "./DateField-CaR3Qeda.js";
|
|
5
5
|
import { e as h } from "./extractStyleProps-CxgBrz3O.js";
|
|
6
|
-
const { withProvider: $, withContext: r } = d({
|
|
6
|
+
const { withProvider: $, withContext: r } = /* @__PURE__ */ d({
|
|
7
7
|
recipe: t
|
|
8
|
-
}), x = $("div", "root"), S = r("div", "segmentGroup"), b = r("div", "segment"), P = (o) => {
|
|
8
|
+
}), x = /* @__PURE__ */ $("div", "root"), S = /* @__PURE__ */ r("div", "segmentGroup"), b = /* @__PURE__ */ r("div", "segment"), P = (o) => {
|
|
9
9
|
const p = l({ recipe: t }), [c, i] = p.splitVariantProps(o), [s, n] = h(i);
|
|
10
10
|
return /* @__PURE__ */ e(x, { ...c, ...s, asChild: !0, children: /* @__PURE__ */ e(m, { ...n, children: /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(u, { children: (a) => /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(f, { segment: a }) }) }) }) }) });
|
|
11
11
|
};
|
|
@@ -13,4 +13,4 @@ P.displayName = "DateInput";
|
|
|
13
13
|
export {
|
|
14
14
|
P as D
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=date-input-
|
|
16
|
+
//# sourceMappingURL=date-input-tzOJ2b9K.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-input-
|
|
1
|
+
{"version":3,"file":"date-input-tzOJ2b9K.js","sources":["../../src/components/date-input/date-input.slots.tsx","../../src/components/date-input/date-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateInputRecipeProps extends RecipeProps<\"div\">, 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 */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateInputRootProps\n extends HTMLChakraProps<\"div\", DateInputRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateInputSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateInputRootSlot = withProvider<\n HTMLDivElement,\n DateInputRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the DateField part of the DateInput.\n */\nexport const DateInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n DateInputRootSlot,\n DateInputSegmentGroupSlot,\n DateInputSegmentSlot,\n} from \"./date-input.slots\";\n\nimport {\n DateField,\n DateInput as DateInputField,\n DateSegment,\n} from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { dateInputSlotRecipe } from \"./date-input.recipe\";\nimport type { DateInputProps } from \"./date-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * DateInput\n * ============================================================\n * allows entering a date in the currently selected locale\n */\nexport const DateInput = (props: DateInputProps) => {\n const recipe = useRecipe({ recipe: dateInputSlotRecipe });\n const [recipeProps, recipeFreeProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeFreeProps);\n\n return (\n <DateInputRootSlot {...recipeProps} {...styleProps} asChild>\n <DateField {...functionalProps}>\n <DateInputSegmentGroupSlot asChild>\n <DateInputField>\n {(segment) => (\n <DateInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </DateInputSegmentSlot>\n )}\n </DateInputField>\n </DateInputSegmentGroupSlot>\n </DateField>\n </DateInputRootSlot>\n );\n};\n\nDateInput.displayName = \"DateInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateInputSlotRecipe","DateInputRootSlot","DateInputSegmentGroupSlot","DateInputSegmentSlot","DateInput","props","recipe","useRecipe","recipeProps","recipeFreeProps","styleProps","functionalProps","extractStyleProps","jsx","DateField","DateInputField","segment","DateSegment"],"mappings":";;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAY,IAAI,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAAoB,gBAAAJ,EAG/B,OAAO,MAAM,GAKFK,IAA4B,gBAAAJ,EAGvC,OAAO,cAAc,GAKVK,IAAuB,gBAAAL,EAGlC,OAAO,SAAS,GC/BLM,IAAY,CAACC,MAA0B;AAClD,QAAMC,IAASC,EAAU,EAAE,QAAQP,GAAqB,GAClD,CAACQ,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAK,GAC/D,CAACK,GAAYC,CAAe,IAAIC,EAAkBH,CAAe;AAEvE,SACG,gBAAAI,EAAAZ,GAAA,EAAmB,GAAGO,GAAc,GAAGE,GAAY,SAAO,IACzD,UAAC,gBAAAG,EAAAC,GAAA,EAAW,GAAGH,GACb,4BAACT,GAA0B,EAAA,SAAO,IAChC,UAAA,gBAAAW,EAACE,GACE,EAAA,UAAA,CAACC,MACA,gBAAAH,EAACV,KAAqB,SAAO,IAC3B,UAAC,gBAAAU,EAAAI,GAAA,EAAY,SAAAD,EAAkB,CAAA,EACjC,CAAA,GAEJ,EAAA,CACF,EACF,CAAA,GACF;AAEJ;AAEAZ,EAAU,cAAc;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineSlotRecipe as t } from "@chakra-ui/react";
|
|
2
|
-
const r = t({
|
|
2
|
+
const r = /* @__PURE__ */ t({
|
|
3
3
|
// Unique class name prefix for the component
|
|
4
4
|
className: "nimbus-date-input",
|
|
5
5
|
slots: ["root", "segmentGroup", "segment"],
|
|
@@ -116,4 +116,4 @@ const r = t({
|
|
|
116
116
|
export {
|
|
117
117
|
r as d
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=date-input.recipe-
|
|
119
|
+
//# sourceMappingURL=date-input.recipe-BtWEmJGK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-input.recipe-
|
|
1
|
+
{"version":3,"file":"date-input.recipe-BtWEmJGK.js","sources":["../../src/components/date-input/date-input.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the DateInput component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const dateInputSlotRecipe = defineSlotRecipe({\n // Unique class name prefix for the component\n className: \"nimbus-date-input\",\n slots: [\"root\", \"segmentGroup\", \"segment\"],\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n display: \"inline-block\",\n },\n segmentGroup: {\n display: \"flex\",\n borderRadius: \"200\",\n bg: \"transparent\",\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n width: \"full\",\n alignItems: \"center\",\n userSelect: \"none\",\n \"&[data-focus-within='true']\": {\n // TODO: can't use focusRing prop, find other solution (helper, util, etc.)\n outlineWidth: \"var(--focus-ring-width)\",\n outlineColor: \"var(--focus-ring-color)\",\n outlineStyle: \"var(--focus-ring-style)\",\n outlineOffset: \"var(--focus-ring-offset)\",\n },\n \"&[data-invalid='true']\": {\n \"--border-width\": \"sizes.50\",\n \"--border-color\": \"colors.critical.7\",\n color: \"critical.11\",\n },\n \"&[data-disabled='true']\": {\n layerStyle: \"disabled\",\n },\n },\n segment: {\n fontVariantNumeric: \"tabular-nums\",\n outline: \"0\",\n px: \"50\",\n borderRadius: \"50\",\n\n \"&:empty\": {\n border: \"solid-25\",\n },\n\n \"&[data-focused='true']\": {\n bg: \"primary.10\",\n color: \"primary.contrast\",\n },\n\n \"&[data-placeholder='true']:not([data-focused='true']), &[data-type='literal']\":\n {\n opacity: 0.5,\n },\n\n /**\n * The first and last segment contains a hidden character for screen readers\n * that indicates the reading direction. Since this character is\n * inside a segment element, it creates unwanted padding. This CSS\n * removes the extra padding and aligns the text to match a regular\n * TextInput's text position.\n */\n \"&[data-type='literal']&:first-of-type, &[data-type='literal']&:last-of-type\":\n {\n px: \"0\",\n ml: \"-50\",\n },\n\n \"&[data-type='day']\": {\n // for reference\n },\n \"&[data-type='month']\": {\n // for reference\n },\n \"&[data-type='year']\": {\n // for reference\n },\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n // Size variants from smallest to largest\n size: {\n sm: {\n segmentGroup: {\n h: 800,\n textStyle: \"sm\",\n px: 300,\n },\n },\n md: {\n segmentGroup: {\n h: 1000,\n textStyle: \"md\",\n px: 400,\n },\n },\n },\n variant: {\n solid: {\n segmentGroup: {\n \"--border-width\": \"sizes.25\",\n \"--border-color\": \"colors.neutral.7\",\n backgroundColor: \"neutral.1\",\n _hover: {\n backgroundColor: \"primary.2\",\n },\n },\n },\n ghost: {\n segmentGroup: {\n _hover: {\n backgroundColor: \"primary.2\",\n },\n },\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"solid\",\n },\n});\n"],"names":["dateInputSlotRecipe","defineSlotRecipe"],"mappings":";AAMO,MAAMA,IAAsB,gBAAAC,EAA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,UACZ,GAAG;AAAA,UACH,WAAW;AAAA,UACX,IAAI;AAAA,QAAA;AAAA,MACN;AAAA,IAEJ;AAAA,IACA,SAAS;AAAA,MACP,OAAO;AAAA,QACL,cAAc;AAAA,UACZ,kBAAkB;AAAA,UAClB,kBAAkB;AAAA,UAClB,iBAAiB;AAAA,UACjB,QAAQ;AAAA,YACN,iBAAiB;AAAA,UAAA;AAAA,QACnB;AAAA,MAEJ;AAAA,MACA,OAAO;AAAA,QACL,cAAc;AAAA,UACZ,QAAQ;AAAA,YACN,iBAAiB;AAAA,UAAA;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EAEJ;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),z=require("@chakra-ui/react"),N=require("./date-picker.recipe-5Avb06qp.js"),G=require("@commercetools/nimbus-icons"),k=require("./Button-tPOlfQRd.js"),H=require("./calendar-DRE_oZOp.js"),I=require("./utils-XbOVivul.js"),g=require("./DateField-D3h6vCMK.js"),j=require("./Dialog-5VrXdl86.js"),B=require("./Form-DqkTf3LZ.js"),L=require("./Group-CTpcJZmt.js"),w=require("./Text-BWSfeB9p.js"),X=require("./filterDOMProps-BS2lrgFA.js"),J=require("./OverlayArrow-Bs2caVoG.js"),c=require("react"),E=require("./useDateFormatter-6FAMsnNT.js"),Q=require("./useFormValidation-CbunG7dK.js"),ee=require("./useControlledState-D0L6S_5r.js"),ae=require("./FocusScope-Cysx7oI0.js"),M=require("./mergeProps-BeIu4MsM.js"),te=require("./scrollIntoView-B01y55fg.js"),ie=require("./useFocusWithin-hB6WzPnG.js"),le=require("./useField-BeaT9Ud9.js"),Y=require("./context-BmQ51HC8.js"),re=require("./useLocalizedStringFormatter-CDXOVKSV.js"),oe=require("./useFocusRing-CYHdvund.js"),ne=require("./extractStyleProps-lyk7D-zN.js"),A=require("./icon-button-Ds1Wzyc1.js"),de=require("./date-input-DnjW061n.js"),ce=require("./text-BjzNgHxv.js"),se=require("./time-input-sjvN5iZ-.js");function ue(e){return e&&e.__esModule?e.default:e}function fe(e,a,t){let l=M.$bdb11010cef70236$export$f680877a34711e37(),s=M.$bdb11010cef70236$export$f680877a34711e37(),o=M.$bdb11010cef70236$export$f680877a34711e37(),u=re.$fca6afa0e843324b$export$f12b703ca79dfbb1(ue(g.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:r,validationErrors:d,validationDetails:x}=a.displayValidation,{labelProps:m,fieldProps:f,descriptionProps:y,errorMessageProps:b}=le.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||d}),p=g.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,t),h=f["aria-labelledby"]||f.id,{locale:D}=Y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),q=a.formatValue(D,{month:"long"}),F=q?u.format("selectedDateDescription",{date:q}):"",V=te.$ef06256079686ba0$export$f8aeda7b10753fa1(F),T=[V["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,C=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),R=c.useMemo(()=>ae.$9bf71ea28793e738$export$c5251b9e124bf29(t),[t]),O=c.useRef(!1),{focusWithinProps:S}=ie.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:v=>{let P=document.getElementById(s);if(!(P!=null&&P.contains(v.relatedTarget))){var i,$;O.current=!1,(i=e.onBlur)===null||i===void 0||i.call(e,v),($=e.onFocusChange)===null||$===void 0||$.call(e,!1)}},onFocusWithin:v=>{if(!O.current){var P,i;O.current=!0,(P=e.onFocus)===null||P===void 0||P.call(e,v),(i=e.onFocusChange)===null||i===void 0||i.call(e,!0)}}});return{groupProps:M.$3ef42575df84b30b$export$9d1611c77c2fe928(C,p,f,V,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":h,"aria-describedby":T,onKeyDown(v){a.isOpen||e.onKeyDown&&e.onKeyDown(v)},onKeyUp(v){a.isOpen||e.onKeyUp&&e.onKeyUp(v)}}),labelProps:{...m,onClick:()=>{R.focusFirst()}},fieldProps:{...f,id:o,[g.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":T,value:a.value,onChange:a.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Q.$e5be200c675c3b3a$export$a763b9476acd3eb]:a,autoFocus:e.autoFocus,name:e.name},descriptionProps:y,errorMessageProps:b,buttonProps:{...V,id:l,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${l} ${h}`,"aria-describedby":T,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:s,"aria-labelledby":`${l} ${h}`},calendarProps:{autoFocus:!0,value:a.dateValue,onChange:a.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:a.dateValue?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" ")},isInvalid:r,validationErrors:d,validationDetails:x}}function be(e){let a=J.$fc909762b330b746$export$61c6a8c84e605fb6(e),[t,l]=ee.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),s=t||e.placeholderValue||null,[o,u]=g.$35a22f14a1f04b11$export$2440da353cedad43(s,e.granularity),r=t!=null?t.toDate(u??"UTC"):null,d=o==="hour"||o==="minute"||o==="second";var x;let m=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[f,y]=c.useState(null),[b,p]=c.useState(null);if(t&&(f=t,"hour"in t&&(b=t)),s&&!(o in s))throw new Error("Invalid granularity "+o+" for value "+s.toString());let h=(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC",D=c.useMemo(()=>({granularity:o,timeZone:u,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:h}),[o,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,h]),{minValue:q,maxValue:F,isDateUnavailable:V}=e,T=c.useMemo(()=>g.$35a22f14a1f04b11$export$f18627323ab57ac0(t,q,F,V,D),[t,q,F,V,D]),C=Q.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:t,builtinValidation:T}),R=C.displayValidation.isInvalid,O=e.validationState||(R?"invalid":null),S=(i,$)=>{l("timeZone"in $?$.set(E.$11d87f3f76e88657$export$93522d1a439f3617(i)):E.$11d87f3f76e88657$export$b21e0b124e224484(i,$)),y(null),p(null),C.commitValidation()};return{...C,value:t,setValue:l,dateValue:f,timeValue:b,setDateValue:i=>{let $=typeof m=="function"?m():m;d?b||$?S(i,b||g.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)):y(i):(l(i),C.commitValidation()),$&&a.setOpen(!1)},setTimeValue:i=>{f&&i?S(f,i):p(i)},granularity:o,hasTime:d,...a,setOpen(i){!i&&!t&&f&&d&&S(f,b||g.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)),a.setOpen(i)},validationState:O,isInvalid:R,formatValue(i,$){if(!r)return"";let W=g.$35a22f14a1f04b11$export$7e319ea407e63bc0($,D);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(i,W).format(r)},getDateFormatter(i,$){let W={...D,...$},K=g.$35a22f14a1f04b11$export$7e319ea407e63bc0({},W);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(i,K)}}}const $e=c.createContext(null),U=c.createContext(null),xe=[L.$a049562f99e7db0e$export$f9c6924e160136d1,k.$d2b4bc8c273e7be6$export$24d547caef80ccd1,B.$01b77f81d0f07f68$export$75b6ee27786ba447,w.$514c0188e459b4c0$export$9afb8bc826b033ea],ve=c.forwardRef(function(a,t){[a,t]=I.$64fa3d84918910a7$export$29f1550f4b0d4415(a,t,$e);let{validationBehavior:l}=I.$64fa3d84918910a7$export$fabf2dc03a41866e(B.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var s,o;let u=(o=(s=a.validationBehavior)!==null&&s!==void 0?s:l)!==null&&o!==void 0?o:"native",r=be({...a,validationBehavior:u}),d=c.useRef(null),[x,m]=I.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:f,labelProps:y,fieldProps:b,buttonProps:p,dialogProps:h,calendarProps:D,descriptionProps:q,errorMessageProps:F,...V}=fe({...I.$64fa3d84918910a7$export$ef03459518577ad4(a),label:m,validationBehavior:u},r,d),[T,C]=c.useState(null),R=c.useCallback(()=>{d.current&&C(d.current.offsetWidth+"px")},[]);J.$9daab02d461809db$export$683480f191c0e3ea({ref:d,onResize:R});let{focusProps:O,isFocused:S,isFocusVisible:v}=oe.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),P=I.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:r,isFocusWithin:S,isFocusVisible:v,isDisabled:a.isDisabled||!1,isInvalid:r.isInvalid,isOpen:r.isOpen},defaultClassName:"react-aria-DatePicker"}),i=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a);return delete i.id,c.createElement(I.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[U,r],[L.$a049562f99e7db0e$export$f9c6924e160136d1,{...f,ref:d,isInvalid:r.isInvalid}],[g.$40825cdb76e74f70$export$7b3e670c86da5fe8,b],[k.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...p,isPressed:r.isOpen}],[B.$01b77f81d0f07f68$export$75b6ee27786ba447,{...y,ref:x,elementType:"span"}],[H.$dfd62f934fc76fed$export$3b805cea1f178355,D],[j.$de32f1b87079253c$export$d2f961adcb0afbe,r],[j.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DatePicker",triggerRef:d,placement:"bottom start",style:{"--trigger-width":T},clearContexts:xe}],[j.$de32f1b87079253c$export$8b93a07348a7730c,h],[w.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:q,errorMessage:F}}],[B.$ee014567cb39d3f0$export$ff05c3ac10437e03,V]]},c.createElement("div",{...O,...i,...P,ref:t,slot:a.slot||void 0,"data-focus-within":S||void 0,"data-invalid":r.isInvalid||void 0,"data-focus-visible":v||void 0,"data-disabled":a.isDisabled||void 0,"data-open":r.isOpen||void 0}))}),{withProvider:me,withContext:Z}=z.createSlotRecipeContext({recipe:N.datePickerSlotRecipe}),he=me("div","root"),ge=Z("div","group"),Pe=Z("div","trigger"),pe=Z("div","popover"),ye=Z("div","calendar"),De=()=>{const{locale:e}=Y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=c.useContext(U),{granularity:t,dateValue:l}=a,s=c.useRef(null),o=c.useRef(l);return t==="day"?null:(c.useEffect(()=>{var u;l&&((u=o.current)==null?void 0:u.compare(l))!==0&&setTimeout(()=>{const r=s.current;if(r){const d=r.querySelector('[role="spinbutton"]');d&&d.focus()}},50),o.current=l},[l]),n.jsxs(z.Flex,{ref:s,borderTop:"solid-25",borderColor:"neutral.3",py:"300",px:"400",alignItems:"center",justifyContent:"center",gap:"200",children:[n.jsx(ce.Text,{slot:"startTime",textStyle:"xs",fontWeight:"500",color:"neutral.12"}),n.jsx(se.TimeInput,{slot:"timeInput",locale:e,variant:"ghost",size:"sm"})]}))},Ve=({children:e})=>{const a=I.$64fa3d84918910a7$export$fabf2dc03a41866e(k.$d2b4bc8c273e7be6$export$24d547caef80ccd1)||{},t=c.useContext(w.$514c0188e459b4c0$export$9afb8bc826b033ea),l=c.useContext(U),s=(l==null?void 0:l.dateValue)===null,{timeValue:o,setTimeValue:u,granularity:r}=l,d=a==null?void 0:a.isDisabled,x=()=>{switch(r){case"hour":return"Enter time (hour)";case"minute":return"Enter time (hour and minute)";case"second":return"Enter time (hour, minute, and second)";default:return"Enter time"}},m={calendarToggle:{...a,onPress:b=>{var h;const p=document==null?void 0:document.activeElement;p&&p.blur(),(h=a.onPress)==null||h.call(a,b)}},clear:{onPress:()=>l==null?void 0:l.setValue(null),"aria-label":"Clear input value",isDisabled:s||d}},f={startTime:{children:"Start time"}},y={timeInput:{value:o,onChange:b=>{b!==null&&u(b)},granularity:r==="day"?void 0:r,"aria-label":x()}};return n.jsx(I.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[k.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:m}],[w.$514c0188e459b4c0$export$9afb8bc826b033ea,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...f}}],[g.$40825cdb76e74f70$export$8e17ddc448e87c1e,{slots:y}]],children:e})},_=e=>{const{size:a="md",variant:t,granularity:l="day"}=e,s=z.useSlotRecipe({recipe:N.datePickerSlotRecipe}),[o,u]=s.splitVariantProps(e),[r,d]=ne.extractStyleProps(u),x=a==="md"?"xs":"2xs",m=l==="day"?e.shouldCloseOnSelect:!1;return n.jsx(he,{...o,...r,asChild:!0,children:n.jsx(ve,{...d,shouldCloseOnSelect:m,children:n.jsxs(Ve,{children:[n.jsx(ge,{asChild:!0,children:n.jsxs(L.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{children:[n.jsx(de.DateInput,{size:a,variant:t,width:"full"}),n.jsxs(Pe,{children:[n.jsx(A.IconButton,{tone:"primary",variant:"ghost",size:x,slot:"clear",children:n.jsx(G.Close,{})}),n.jsx(A.IconButton,{tone:"primary",variant:"ghost",size:x,slot:"calendarToggle",children:n.jsx(G.CalendarMonth,{})})]})]})}),n.jsx(pe,{asChild:!0,children:n.jsx(j.$07b14b47974efb58$export$5b6b19405a83ff9d,{placement:"bottom end",children:n.jsxs(j.$de32f1b87079253c$export$3ddf2d174ce01153,{children:[n.jsx(ye,{children:n.jsx(H.Calendar,{})}),n.jsx(De,{})]})})})]})})})};_.displayName="DatePicker";exports.DatePicker=_;
|
|
2
|
+
//# sourceMappingURL=date-picker-BOJn_b_Y.js.map
|