@commercetools/nimbus 0.0.9-rc6 → 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/accordion.d.ts +157 -0
- package/dist/alert.d.ts +173 -0
- package/dist/avatar.d.ts +70 -0
- package/dist/badge.d.ts +102 -0
- package/dist/box.d.ts +14 -0
- package/dist/button.d.ts +38 -0
- package/dist/calendar.d.ts +26 -0
- package/dist/card.d.ts +134 -0
- package/dist/checkbox.d.ts +73 -0
- package/dist/chunks/Button-BxcMDv2N.js +79 -0
- package/dist/chunks/Button-BxcMDv2N.js.map +1 -0
- package/dist/chunks/Button-tPOlfQRd.js +2 -0
- package/dist/chunks/Button-tPOlfQRd.js.map +1 -0
- package/dist/chunks/DateField-CaR3Qeda.js +2564 -0
- package/dist/chunks/DateField-CaR3Qeda.js.map +1 -0
- package/dist/chunks/DateField-D3h6vCMK.js +2 -0
- package/dist/chunks/DateField-D3h6vCMK.js.map +1 -0
- package/dist/chunks/Dialog-5VrXdl86.js +2 -0
- package/dist/chunks/Dialog-5VrXdl86.js.map +1 -0
- package/dist/chunks/Dialog-DJv-Zg_L.js +870 -0
- package/dist/chunks/Dialog-DJv-Zg_L.js.map +1 -0
- package/dist/chunks/FocusScope-CsXy0kJw.js +627 -0
- package/dist/chunks/FocusScope-CsXy0kJw.js.map +1 -0
- package/dist/chunks/FocusScope-Cysx7oI0.js +2 -0
- package/dist/chunks/FocusScope-Cysx7oI0.js.map +1 -0
- package/dist/chunks/Form-DdaqVtM4.js +8 -0
- package/dist/chunks/Form-DdaqVtM4.js.map +1 -0
- package/dist/chunks/Form-DqkTf3LZ.js +2 -0
- package/dist/chunks/Form-DqkTf3LZ.js.map +1 -0
- package/dist/chunks/Group-CTpcJZmt.js +2 -0
- package/dist/chunks/Group-CTpcJZmt.js.map +1 -0
- package/dist/chunks/Group-D3CaEDfr.js +78 -0
- package/dist/chunks/Group-D3CaEDfr.js.map +1 -0
- package/dist/chunks/Hidden-CNJIJ63M.js +2 -0
- package/dist/chunks/Hidden-CNJIJ63M.js.map +1 -0
- package/dist/chunks/Hidden-CeBYiBUb.js +28 -0
- package/dist/chunks/Hidden-CeBYiBUb.js.map +1 -0
- package/dist/chunks/Input-0vJb_5Js.js +43 -0
- package/dist/chunks/Input-0vJb_5Js.js.map +1 -0
- package/dist/chunks/Input-rMOtwpe-.js +2 -0
- package/dist/chunks/Input-rMOtwpe-.js.map +1 -0
- package/dist/chunks/ListBox-Dmkou3Hm.js +18 -0
- package/dist/chunks/ListBox-Dmkou3Hm.js.map +1 -0
- package/dist/chunks/ListBox-Dss9OMcn.js +3004 -0
- package/dist/chunks/ListBox-Dss9OMcn.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js +52 -0
- package/dist/chunks/LiveAnnouncer-B6177m92.js.map +1 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js +2 -0
- package/dist/chunks/LiveAnnouncer-CwEWPU8b.js.map +1 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js +2 -0
- package/dist/chunks/NumberFormatter-DewVDY5w.js.map +1 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js +120 -0
- package/dist/chunks/NumberFormatter-DgOUVrge.js.map +1 -0
- package/dist/chunks/OverlayArrow-Bs2caVoG.js +2 -0
- package/dist/chunks/OverlayArrow-Bs2caVoG.js.map +1 -0
- package/dist/chunks/OverlayArrow-qjQZbu8u.js +479 -0
- package/dist/chunks/OverlayArrow-qjQZbu8u.js.map +1 -0
- package/dist/chunks/RSPContexts-AkhSBHGO.js +6 -0
- package/dist/chunks/RSPContexts-AkhSBHGO.js.map +1 -0
- package/dist/chunks/RSPContexts-CIAIlAKH.js +2 -0
- package/dist/chunks/RSPContexts-CIAIlAKH.js.map +1 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js +2 -0
- package/dist/chunks/SSRProvider-DZRLwxPS.js.map +1 -0
- package/dist/chunks/SSRProvider-eIEwc-2s.js +51 -0
- package/dist/chunks/SSRProvider-eIEwc-2s.js.map +1 -0
- package/dist/chunks/Text-BWSfeB9p.js +2 -0
- package/dist/chunks/Text-BWSfeB9p.js.map +1 -0
- package/dist/chunks/Text-DOcU1ycg.js +6 -0
- package/dist/chunks/Text-DOcU1ycg.js.map +1 -0
- package/dist/chunks/TextArea-BfVV0_3h.js +2 -0
- package/dist/chunks/TextArea-BfVV0_3h.js.map +1 -0
- package/dist/chunks/TextArea-Q-NI2yW5.js +42 -0
- package/dist/chunks/TextArea-Q-NI2yW5.js.map +1 -0
- package/dist/chunks/VisuallyHidden-2REhp9RT.js +41 -0
- package/dist/chunks/VisuallyHidden-2REhp9RT.js.map +1 -0
- package/dist/chunks/VisuallyHidden-Cg0LJ1Dh.js +2 -0
- package/dist/chunks/VisuallyHidden-Cg0LJ1Dh.js.map +1 -0
- package/dist/chunks/accordion-D4Qqg89m.js +221 -0
- package/dist/chunks/accordion-D4Qqg89m.js.map +1 -0
- package/dist/chunks/accordion-vrKLW-re.js +2 -0
- package/dist/chunks/accordion-vrKLW-re.js.map +1 -0
- package/dist/chunks/alert-B738R1TJ.js +2 -0
- package/dist/chunks/alert-B738R1TJ.js.map +1 -0
- package/dist/chunks/alert-BX5IPnc_.js +186 -0
- package/dist/chunks/alert-BX5IPnc_.js.map +1 -0
- package/dist/chunks/avatar-85FE_L0r.js +37 -0
- package/dist/chunks/avatar-85FE_L0r.js.map +1 -0
- package/dist/chunks/avatar-Aa0LrRpo.js +2 -0
- package/dist/chunks/avatar-Aa0LrRpo.js.map +1 -0
- package/dist/chunks/avatar.recipe-BSmmqvwQ.js +39 -0
- package/dist/chunks/avatar.recipe-BSmmqvwQ.js.map +1 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js +2 -0
- package/dist/chunks/avatar.recipe-aGNBZhVF.js.map +1 -0
- package/dist/chunks/badge-BFbBB0US.js +2 -0
- package/dist/chunks/badge-BFbBB0US.js.map +1 -0
- package/dist/chunks/badge-C1bFH3CB.js +76 -0
- package/dist/chunks/badge-C1bFH3CB.js.map +1 -0
- package/dist/chunks/box-DD4jYgS7.js +11 -0
- package/dist/chunks/box-DD4jYgS7.js.map +1 -0
- package/dist/chunks/box-FU6tRPFs.js +2 -0
- package/dist/chunks/box-FU6tRPFs.js.map +1 -0
- package/dist/chunks/button-BLZONb0_.js +2 -0
- package/dist/chunks/button-BLZONb0_.js.map +1 -0
- package/dist/chunks/button-zSDA7FRw.js +66 -0
- package/dist/chunks/button-zSDA7FRw.js.map +1 -0
- package/dist/chunks/button.recipe-DHk13lGU.js +2 -0
- package/dist/chunks/button.recipe-DHk13lGU.js.map +1 -0
- package/dist/chunks/button.recipe-DzOS_Bqm.js +191 -0
- package/dist/chunks/button.recipe-DzOS_Bqm.js.map +1 -0
- package/dist/chunks/calendar-BIB7Bqqn.js +1577 -0
- package/dist/chunks/calendar-BIB7Bqqn.js.map +1 -0
- package/dist/chunks/calendar-DRE_oZOp.js +2 -0
- package/dist/chunks/calendar-DRE_oZOp.js.map +1 -0
- package/dist/chunks/calendar.recipe-B2sMokBn.js +101 -0
- package/dist/chunks/calendar.recipe-B2sMokBn.js.map +1 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js +2 -0
- package/dist/chunks/calendar.recipe-gUaUNltl.js.map +1 -0
- package/dist/chunks/card-DAC7L3R0.js +2 -0
- package/dist/chunks/card-DAC7L3R0.js.map +1 -0
- package/dist/chunks/card-DSC-PYAU.js +138 -0
- package/dist/chunks/card-DSC-PYAU.js.map +1 -0
- package/dist/chunks/checkbox-B1w8RLi0.js +2 -0
- package/dist/chunks/checkbox-B1w8RLi0.js.map +1 -0
- package/dist/chunks/checkbox-CJQ1O9W5.js +89 -0
- package/dist/chunks/checkbox-CJQ1O9W5.js.map +1 -0
- package/dist/chunks/code-CI8aUhmu.js +6 -0
- package/dist/chunks/code-CI8aUhmu.js.map +1 -0
- package/dist/chunks/code-Dg4Larbo.js +2 -0
- package/dist/chunks/code-Dg4Larbo.js.map +1 -0
- package/dist/chunks/combobox-DLABf790.js +2 -0
- package/dist/chunks/combobox-DLABf790.js.map +1 -0
- package/dist/chunks/combobox-ZcHPms3T.js +1896 -0
- package/dist/chunks/combobox-ZcHPms3T.js.map +1 -0
- package/dist/chunks/combobox.recipe-BIn4O0NT.js +407 -0
- package/dist/chunks/combobox.recipe-BIn4O0NT.js.map +1 -0
- package/dist/chunks/combobox.recipe-Da71Y6ye.js +2 -0
- package/dist/chunks/combobox.recipe-Da71Y6ye.js.map +1 -0
- package/dist/chunks/context-BmQ51HC8.js +2 -0
- package/dist/chunks/context-BmQ51HC8.js.map +1 -0
- package/dist/chunks/context-CI0Y3O6x.js +94 -0
- package/dist/chunks/context-CI0Y3O6x.js.map +1 -0
- package/dist/chunks/date-input-DnjW061n.js +2 -0
- package/dist/chunks/date-input-DnjW061n.js.map +1 -0
- package/dist/chunks/date-input-tzOJ2b9K.js +16 -0
- package/dist/chunks/date-input-tzOJ2b9K.js.map +1 -0
- package/dist/chunks/date-input.recipe-BtWEmJGK.js +119 -0
- package/dist/chunks/date-input.recipe-BtWEmJGK.js.map +1 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js +2 -0
- package/dist/chunks/date-input.recipe-Cf9e8VAr.js.map +1 -0
- package/dist/chunks/date-picker-BOJn_b_Y.js +2 -0
- package/dist/chunks/date-picker-BOJn_b_Y.js.map +1 -0
- package/dist/chunks/date-picker-npElUeVw.js +483 -0
- package/dist/chunks/date-picker-npElUeVw.js.map +1 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js +2 -0
- package/dist/chunks/date-picker.recipe-5Avb06qp.js.map +1 -0
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.js +82 -0
- package/dist/chunks/date-picker.recipe-Dy6NmKHA.js.map +1 -0
- package/dist/chunks/dialog-C1HRMUcF.js +33 -0
- package/dist/chunks/dialog-C1HRMUcF.js.map +1 -0
- package/dist/chunks/dialog-amEwvIoM.js +2 -0
- package/dist/chunks/dialog-amEwvIoM.js.map +1 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js +11 -0
- package/dist/chunks/extractStyleProps-CxgBrz3O.js.map +1 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js +2 -0
- package/dist/chunks/extractStyleProps-lyk7D-zN.js.map +1 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js +2 -0
- package/dist/chunks/filterDOMProps-BS2lrgFA.js.map +1 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js +25 -0
- package/dist/chunks/filterDOMProps-D6KHYVBX.js.map +1 -0
- package/dist/chunks/focusSafely-DKDcdc1Z.js +36 -0
- package/dist/chunks/focusSafely-DKDcdc1Z.js.map +1 -0
- package/dist/chunks/focusSafely-DTxIMq-P.js +2 -0
- package/dist/chunks/focusSafely-DTxIMq-P.js.map +1 -0
- package/dist/chunks/form-field-CblzjGEw.js +11 -0
- package/dist/chunks/form-field-CblzjGEw.js.map +1 -0
- package/dist/chunks/form-field-D_qT2LNU.js +309 -0
- package/dist/chunks/form-field-D_qT2LNU.js.map +1 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js +15 -0
- package/dist/chunks/getScrollParent-DE66eQI-.js.map +1 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js +2 -0
- package/dist/chunks/getScrollParent-Dc1cnLDE.js.map +1 -0
- package/dist/chunks/grid-CugcJxRP.js +14 -0
- package/dist/chunks/grid-CugcJxRP.js.map +1 -0
- package/dist/chunks/grid-xr2A-OqD.js +2 -0
- package/dist/chunks/grid-xr2A-OqD.js.map +1 -0
- package/dist/chunks/icon-BFNYuilh.js +31 -0
- package/dist/chunks/icon-BFNYuilh.js.map +1 -0
- package/dist/chunks/icon-D50i-dqv.js +2 -0
- package/dist/chunks/icon-D50i-dqv.js.map +1 -0
- package/dist/chunks/icon-button-DVBfoOHT.js +14 -0
- package/dist/chunks/icon-button-DVBfoOHT.js.map +1 -0
- package/dist/chunks/icon-button-Ds1Wzyc1.js +2 -0
- package/dist/chunks/icon-button-Ds1Wzyc1.js.map +1 -0
- package/dist/chunks/image-DCirAAnr.js +2 -0
- package/dist/chunks/image-DCirAAnr.js.map +1 -0
- package/dist/chunks/image-rXPA3shk.js +8 -0
- package/dist/chunks/image-rXPA3shk.js.map +1 -0
- package/dist/chunks/kbd-BKH_SGCC.js +6 -0
- package/dist/chunks/kbd-BKH_SGCC.js.map +1 -0
- package/dist/chunks/kbd-Bhv8ae1I.js +2 -0
- package/dist/chunks/kbd-Bhv8ae1I.js.map +1 -0
- package/dist/chunks/link-BfHXJGo9.js +2 -0
- package/dist/chunks/link-BfHXJGo9.js.map +1 -0
- package/dist/chunks/link-CE73eHS0.js +49 -0
- package/dist/chunks/link-CE73eHS0.js.map +1 -0
- package/dist/chunks/link.recipe-Ba2by0OG.js +51 -0
- package/dist/chunks/link.recipe-Ba2by0OG.js.map +1 -0
- package/dist/chunks/link.recipe-CG3leGAx.js +2 -0
- package/dist/chunks/link.recipe-CG3leGAx.js.map +1 -0
- package/dist/chunks/list-8yfreyzi.js +2 -0
- package/dist/chunks/list-8yfreyzi.js.map +1 -0
- package/dist/chunks/list-B21joBrq.js +13 -0
- package/dist/chunks/list-B21joBrq.js.map +1 -0
- package/dist/chunks/loading-spinner-AhRrVHKd.js +137 -0
- package/dist/chunks/loading-spinner-AhRrVHKd.js.map +1 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js +2 -0
- package/dist/chunks/loading-spinner-B2I1CsuC.js.map +1 -0
- package/dist/chunks/make-element-focusable-_kgqlXGc.js +22 -0
- package/dist/chunks/make-element-focusable-_kgqlXGc.js.map +1 -0
- package/dist/chunks/make-element-focusable-ijZC9F3C.js +2 -0
- package/dist/chunks/make-element-focusable-ijZC9F3C.js.map +1 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js +2 -0
- package/dist/chunks/mergeProps-BeIu4MsM.js.map +1 -0
- package/dist/chunks/mergeProps-tCFA9wZ1.js +128 -0
- package/dist/chunks/mergeProps-tCFA9wZ1.js.map +1 -0
- package/dist/chunks/multiline-text-input-C8yclL-x.js +12 -0
- package/dist/chunks/multiline-text-input-C8yclL-x.js.map +1 -0
- package/dist/chunks/multiline-text-input-D6P_NVi6.js +116 -0
- package/dist/chunks/multiline-text-input-D6P_NVi6.js.map +1 -0
- package/dist/chunks/nimbus-provider-CTg-F7UD.js +2 -0
- package/dist/chunks/nimbus-provider-CTg-F7UD.js.map +1 -0
- package/dist/chunks/nimbus-provider-h_Fu03Zk.js +1530 -0
- package/dist/chunks/nimbus-provider-h_Fu03Zk.js.map +1 -0
- package/dist/chunks/number-5qMXmHyn.js +21 -0
- package/dist/chunks/number-5qMXmHyn.js.map +1 -0
- package/dist/chunks/number-CnrRPi4_.js +2 -0
- package/dist/chunks/number-CnrRPi4_.js.map +1 -0
- package/dist/chunks/number-input-BTbzj3aN.js +652 -0
- package/dist/chunks/number-input-BTbzj3aN.js.map +1 -0
- package/dist/chunks/number-input-D7D2ahNb.js +2 -0
- package/dist/chunks/number-input-D7D2ahNb.js.map +1 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js +2 -0
- package/dist/chunks/number-input.recipe-2n6A2w0m.js.map +1 -0
- package/dist/chunks/number-input.recipe-8gbsGnLJ.js +209 -0
- package/dist/chunks/number-input.recipe-8gbsGnLJ.js.map +1 -0
- package/dist/chunks/password-input-BD5GZKX7.js +2 -0
- package/dist/chunks/password-input-BD5GZKX7.js.map +1 -0
- package/dist/chunks/password-input-fiypX-6w.js +50 -0
- package/dist/chunks/password-input-fiypX-6w.js.map +1 -0
- package/dist/chunks/radio-input-4v_6tT94.js +319 -0
- package/dist/chunks/radio-input-4v_6tT94.js.map +1 -0
- package/dist/chunks/radio-input-B2IVmel0.js +2 -0
- package/dist/chunks/radio-input-B2IVmel0.js.map +1 -0
- package/dist/chunks/radio-input.recipe-CM9R2ilP.js +75 -0
- package/dist/chunks/radio-input.recipe-CM9R2ilP.js.map +1 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js +2 -0
- package/dist/chunks/radio-input.recipe-DdXB4lqs.js.map +1 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js +2 -0
- package/dist/chunks/scrollIntoView-B01y55fg.js.map +1 -0
- package/dist/chunks/scrollIntoView-CXOsfZIS.js +83 -0
- package/dist/chunks/scrollIntoView-CXOsfZIS.js.map +1 -0
- package/dist/chunks/select-7cuL-dmI.js +2 -0
- package/dist/chunks/select-7cuL-dmI.js.map +1 -0
- package/dist/chunks/select-DH4OUn_y.js +791 -0
- package/dist/chunks/select-DH4OUn_y.js.map +1 -0
- package/dist/chunks/select.recipe-CXWsUldF.js +203 -0
- package/dist/chunks/select.recipe-CXWsUldF.js.map +1 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js +2 -0
- package/dist/chunks/select.recipe-DUHFWlQt.js.map +1 -0
- package/dist/chunks/simple-grid-CFOP9g2P.js +14 -0
- package/dist/chunks/simple-grid-CFOP9g2P.js.map +1 -0
- package/dist/chunks/simple-grid-CHgTayx6.js +2 -0
- package/dist/chunks/simple-grid-CHgTayx6.js.map +1 -0
- package/dist/chunks/stack-__ugxVHD.js +11 -0
- package/dist/chunks/stack-__ugxVHD.js.map +1 -0
- package/dist/chunks/stack-wFUhYQQb.js +2 -0
- package/dist/chunks/stack-wFUhYQQb.js.map +1 -0
- package/dist/chunks/switch-CnbvTSF9.js +2 -0
- package/dist/chunks/switch-CnbvTSF9.js.map +1 -0
- package/dist/chunks/switch-DdmbHa5R.js +78 -0
- package/dist/chunks/switch-DdmbHa5R.js.map +1 -0
- package/dist/chunks/switch.recipe-CWOjEnIy.js +100 -0
- package/dist/chunks/switch.recipe-CWOjEnIy.js.map +1 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js +2 -0
- package/dist/chunks/switch.recipe-DHopLj_g.js.map +1 -0
- package/dist/chunks/tag-group-B6w2MEyf.js +2 -0
- package/dist/chunks/tag-group-B6w2MEyf.js.map +1 -0
- package/dist/chunks/tag-group-CdLfw2gL.js +1347 -0
- package/dist/chunks/tag-group-CdLfw2gL.js.map +1 -0
- package/dist/chunks/text-BjzNgHxv.js +2 -0
- package/dist/chunks/text-BjzNgHxv.js.map +1 -0
- package/dist/chunks/text-MzQiG_1j.js +24 -0
- package/dist/chunks/text-MzQiG_1j.js.map +1 -0
- package/dist/chunks/text-input-CtJ2FHJ3.js +2 -0
- package/dist/chunks/text-input-CtJ2FHJ3.js.map +1 -0
- package/dist/chunks/text-input-SYXEV4sT.js +17 -0
- package/dist/chunks/text-input-SYXEV4sT.js.map +1 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js +2 -0
- package/dist/chunks/text-input.recipe-DxzvFMOB.js.map +1 -0
- package/dist/chunks/text-input.recipe-KNoUuq-g.js +64 -0
- package/dist/chunks/text-input.recipe-KNoUuq-g.js.map +1 -0
- package/dist/chunks/time-input-DCJYjKRY.js +129 -0
- package/dist/chunks/time-input-DCJYjKRY.js.map +1 -0
- package/dist/chunks/time-input-sjvN5iZ-.js +2 -0
- package/dist/chunks/time-input-sjvN5iZ-.js.map +1 -0
- package/dist/chunks/toggle-button-group-D-3UQLdL.js +2 -0
- package/dist/chunks/toggle-button-group-D-3UQLdL.js.map +1 -0
- package/dist/chunks/toggle-button-group-bjkXTCxu.js +275 -0
- package/dist/chunks/toggle-button-group-bjkXTCxu.js.map +1 -0
- package/dist/chunks/tooltip-C-K5iatf.js +2 -0
- package/dist/chunks/tooltip-C-K5iatf.js.map +1 -0
- package/dist/chunks/tooltip-DvoZxHgo.js +273 -0
- package/dist/chunks/tooltip-DvoZxHgo.js.map +1 -0
- package/dist/chunks/tooltip.recipe-B9-7OFCi.js +24 -0
- package/dist/chunks/tooltip.recipe-B9-7OFCi.js.map +1 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js +2 -0
- package/dist/chunks/tooltip.recipe-CkNOA8Sg.js.map +1 -0
- package/dist/chunks/useButton-BZrUUsJ0.js +2 -0
- package/dist/chunks/useButton-BZrUUsJ0.js.map +1 -0
- package/dist/chunks/useButton-C5ATfvOf.js +48 -0
- package/dist/chunks/useButton-C5ATfvOf.js.map +1 -0
- package/dist/chunks/useCollator-BbJYfLGN.js +12 -0
- package/dist/chunks/useCollator-BbJYfLGN.js.map +1 -0
- package/dist/chunks/useCollator-ajK3YU47.js +2 -0
- package/dist/chunks/useCollator-ajK3YU47.js.map +1 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js +2 -0
- package/dist/chunks/useControlledState-D0L6S_5r.js.map +1 -0
- package/dist/chunks/useControlledState-u436Wbp1.js +31 -0
- package/dist/chunks/useControlledState-u436Wbp1.js.map +1 -0
- package/dist/chunks/useDateFormatter-5Oe96jpR.js +1581 -0
- package/dist/chunks/useDateFormatter-5Oe96jpR.js.map +1 -0
- package/dist/chunks/useDateFormatter-6FAMsnNT.js +2 -0
- package/dist/chunks/useDateFormatter-6FAMsnNT.js.map +1 -0
- package/dist/chunks/useEvent-COOhq9E7.js +22 -0
- package/dist/chunks/useEvent-COOhq9E7.js.map +1 -0
- package/dist/chunks/useEvent-DCXRKhH2.js +2 -0
- package/dist/chunks/useEvent-DCXRKhH2.js.map +1 -0
- package/dist/chunks/useField-BY58-2Ft.js +36 -0
- package/dist/chunks/useField-BY58-2Ft.js.map +1 -0
- package/dist/chunks/useField-BeaT9Ud9.js +2 -0
- package/dist/chunks/useField-BeaT9Ud9.js.map +1 -0
- package/dist/chunks/useFocus-C1BtlMbo.js +2 -0
- package/dist/chunks/useFocus-C1BtlMbo.js.map +1 -0
- package/dist/chunks/useFocus-CuXxpIRa.js +176 -0
- package/dist/chunks/useFocus-CuXxpIRa.js.map +1 -0
- package/dist/chunks/useFocusRing-CYHdvund.js +2 -0
- package/dist/chunks/useFocusRing-CYHdvund.js.map +1 -0
- package/dist/chunks/useFocusRing-DNviWqC5.js +34 -0
- package/dist/chunks/useFocusRing-DNviWqC5.js.map +1 -0
- package/dist/chunks/useFocusWithin-AKRo9mz0.js +55 -0
- package/dist/chunks/useFocusWithin-AKRo9mz0.js.map +1 -0
- package/dist/chunks/useFocusWithin-hB6WzPnG.js +2 -0
- package/dist/chunks/useFocusWithin-hB6WzPnG.js.map +1 -0
- package/dist/chunks/useFocusable-DBEQCS1T.js +75 -0
- package/dist/chunks/useFocusable-DBEQCS1T.js.map +1 -0
- package/dist/chunks/useFocusable-DbCayKl8.js +2 -0
- package/dist/chunks/useFocusable-DbCayKl8.js.map +1 -0
- package/dist/chunks/useFormReset-BgCb2h6r.js +21 -0
- package/dist/chunks/useFormReset-BgCb2h6r.js.map +1 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js +2 -0
- package/dist/chunks/useFormReset-Bt5-6Arg.js.map +1 -0
- package/dist/chunks/useFormValidation-CbunG7dK.js +2 -0
- package/dist/chunks/useFormValidation-CbunG7dK.js.map +1 -0
- package/dist/chunks/useFormValidation-DoG8pVu2.js +179 -0
- package/dist/chunks/useFormValidation-DoG8pVu2.js.map +1 -0
- package/dist/chunks/useHover-3Zee5Ds5.js +85 -0
- package/dist/chunks/useHover-3Zee5Ds5.js.map +1 -0
- package/dist/chunks/useHover-BxTJz4Qm.js +2 -0
- package/dist/chunks/useHover-BxTJz4Qm.js.map +1 -0
- package/dist/chunks/useLabel-As7K6zBZ.js +2 -0
- package/dist/chunks/useLabel-As7K6zBZ.js.map +1 -0
- package/dist/chunks/useLabel-lLz9KH79.js +24 -0
- package/dist/chunks/useLabel-lLz9KH79.js.map +1 -0
- package/dist/chunks/useLabels-B-BeKbzR.js +2 -0
- package/dist/chunks/useLabels-B-BeKbzR.js.map +1 -0
- package/dist/chunks/useLabels-CrNu-inr.js +18 -0
- package/dist/chunks/useLabels-CrNu-inr.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js +2 -0
- package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-D1iIJE39.js +97 -0
- package/dist/chunks/useLocalizedStringFormatter-D1iIJE39.js.map +1 -0
- package/dist/chunks/useNumberFormatter-C8xwHQXb.js +14 -0
- package/dist/chunks/useNumberFormatter-C8xwHQXb.js.map +1 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js +2 -0
- package/dist/chunks/useNumberFormatter-DS6s5teN.js.map +1 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js +2 -0
- package/dist/chunks/useObjectRef-4v2MxSjQ.js.map +1 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js +30 -0
- package/dist/chunks/useObjectRef-CaJ5pgjX.js.map +1 -0
- package/dist/chunks/usePress-CGAMyl6q.js +8 -0
- package/dist/chunks/usePress-CGAMyl6q.js.map +1 -0
- package/dist/chunks/usePress-Dk0M2Js8.js +526 -0
- package/dist/chunks/usePress-Dk0M2Js8.js.map +1 -0
- package/dist/chunks/useSingleSelectListState--jan8NiD.js +269 -0
- package/dist/chunks/useSingleSelectListState--jan8NiD.js.map +1 -0
- package/dist/chunks/useSingleSelectListState-DqtAmt8K.js +2 -0
- package/dist/chunks/useSingleSelectListState-DqtAmt8K.js.map +1 -0
- package/dist/chunks/useSpinButton-CQ8U5KZS.js +2 -0
- package/dist/chunks/useSpinButton-CQ8U5KZS.js.map +1 -0
- package/dist/chunks/useSpinButton-DQzgsW5H.js +432 -0
- package/dist/chunks/useSpinButton-DQzgsW5H.js.map +1 -0
- package/dist/chunks/useTextField-CNy4kFwI.js +88 -0
- package/dist/chunks/useTextField-CNy4kFwI.js.map +1 -0
- package/dist/chunks/useTextField-Dkkh1L-K.js +2 -0
- package/dist/chunks/useTextField-Dkkh1L-K.js.map +1 -0
- package/dist/chunks/useToggle-BEYjmALQ.js +2 -0
- package/dist/chunks/useToggle-BEYjmALQ.js.map +1 -0
- package/dist/chunks/useToggle-Cf0OB-T-.js +50 -0
- package/dist/chunks/useToggle-Cf0OB-T-.js.map +1 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js +2 -0
- package/dist/chunks/useToggleState-B5pE_WmM.js.map +1 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js +19 -0
- package/dist/chunks/useToggleState-Bz5rAf4C.js.map +1 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js +14 -0
- package/dist/chunks/useUpdateEffect-CCDx8D4X.js.map +1 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js +2 -0
- package/dist/chunks/useUpdateEffect-sk3kiVGz.js.map +1 -0
- package/dist/chunks/utils-7n9JR4ke.js +128 -0
- package/dist/chunks/utils-7n9JR4ke.js.map +1 -0
- package/dist/chunks/utils-D6ZV0jyp.js +2 -0
- package/dist/chunks/utils-D6ZV0jyp.js.map +1 -0
- package/dist/chunks/utils-DSssdw4e.js +229 -0
- package/dist/chunks/utils-DSssdw4e.js.map +1 -0
- package/dist/chunks/utils-XbOVivul.js +2 -0
- package/dist/chunks/utils-XbOVivul.js.map +1 -0
- package/dist/chunks/visually-hidden-7U4LGJiI.js +11 -0
- package/dist/chunks/visually-hidden-7U4LGJiI.js.map +1 -0
- package/dist/chunks/visually-hidden-CRnniCks.js +2 -0
- package/dist/chunks/visually-hidden-CRnniCks.js.map +1 -0
- package/dist/code.d.ts +10 -0
- package/dist/combobox.d.ts +275 -0
- package/dist/components/accordion.cjs +2 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.es.js +10 -0
- package/dist/components/accordion.es.js.map +1 -0
- package/dist/components/alert.cjs +2 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.es.js +10 -0
- package/dist/components/alert.es.js.map +1 -0
- package/dist/components/avatar.cjs +2 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.es.js +5 -0
- package/dist/components/avatar.es.js.map +1 -0
- package/dist/components/badge.cjs +2 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.es.js +5 -0
- package/dist/components/badge.es.js.map +1 -0
- package/dist/components/box.cjs +2 -0
- package/dist/components/box.cjs.map +1 -0
- package/dist/components/box.es.js +5 -0
- package/dist/components/box.es.js.map +1 -0
- package/dist/components/button.cjs +2 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.es.js +5 -0
- package/dist/components/button.es.js.map +1 -0
- package/dist/components/calendar.cjs +2 -0
- package/dist/components/calendar.cjs.map +1 -0
- package/dist/components/calendar.es.js +5 -0
- package/dist/components/calendar.es.js.map +1 -0
- package/dist/components/card.cjs +2 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.es.js +8 -0
- package/dist/components/card.es.js.map +1 -0
- package/dist/components/checkbox.cjs +2 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.es.js +5 -0
- package/dist/components/checkbox.es.js.map +1 -0
- package/dist/components/code.cjs +2 -0
- package/dist/components/code.cjs.map +1 -0
- package/dist/components/code.es.js +5 -0
- package/dist/components/code.es.js.map +1 -0
- package/dist/components/combobox.cjs +2 -0
- package/dist/components/combobox.cjs.map +1 -0
- package/dist/components/combobox.es.js +8 -0
- package/dist/components/combobox.es.js.map +1 -0
- package/dist/components/components.cjs +2 -0
- package/dist/components/components.cjs.map +1 -0
- package/dist/components/components.es.js +125 -0
- package/dist/components/components.es.js.map +1 -0
- package/dist/components/date-input.cjs +2 -0
- package/dist/components/date-input.cjs.map +1 -0
- package/dist/components/date-input.es.js +5 -0
- package/dist/components/date-input.es.js.map +1 -0
- package/dist/components/date-picker.cjs +2 -0
- package/dist/components/date-picker.cjs.map +1 -0
- package/dist/components/date-picker.es.js +5 -0
- package/dist/components/date-picker.es.js.map +1 -0
- package/dist/components/dialog.cjs +2 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.es.js +5 -0
- package/dist/components/dialog.es.js.map +1 -0
- package/dist/components/flex.cjs +2 -0
- package/dist/components/flex.cjs.map +1 -0
- package/dist/components/flex.es.js +5 -0
- package/dist/components/flex.es.js.map +1 -0
- package/dist/components/form-field.cjs +2 -0
- package/dist/components/form-field.cjs.map +1 -0
- package/dist/components/form-field.es.js +11 -0
- package/dist/components/form-field.es.js.map +1 -0
- package/dist/components/grid.cjs +2 -0
- package/dist/components/grid.cjs.map +1 -0
- package/dist/components/grid.es.js +5 -0
- package/dist/components/grid.es.js.map +1 -0
- package/dist/components/heading.cjs +2 -0
- package/dist/components/heading.cjs.map +1 -0
- package/dist/components/heading.es.js +5 -0
- package/dist/components/heading.es.js.map +1 -0
- package/dist/components/icon-button.cjs +2 -0
- package/dist/components/icon-button.cjs.map +1 -0
- package/dist/components/icon-button.es.js +5 -0
- package/dist/components/icon-button.es.js.map +1 -0
- package/dist/components/icon.cjs +2 -0
- package/dist/components/icon.cjs.map +1 -0
- package/dist/components/icon.es.js +5 -0
- package/dist/components/icon.es.js.map +1 -0
- package/dist/components/image.cjs +2 -0
- package/dist/components/image.cjs.map +1 -0
- package/dist/components/image.es.js +5 -0
- package/dist/components/image.es.js.map +1 -0
- package/dist/components/kbd.cjs +2 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.es.js +5 -0
- package/dist/components/kbd.es.js.map +1 -0
- package/dist/components/link.cjs +2 -0
- package/dist/components/link.cjs.map +1 -0
- package/dist/components/link.es.js +5 -0
- package/dist/components/link.es.js.map +1 -0
- package/dist/components/list.cjs +2 -0
- package/dist/components/list.cjs.map +1 -0
- package/dist/components/list.es.js +8 -0
- package/dist/components/list.es.js.map +1 -0
- package/dist/components/loading-spinner.cjs +2 -0
- package/dist/components/loading-spinner.cjs.map +1 -0
- package/dist/components/loading-spinner.es.js +5 -0
- package/dist/components/loading-spinner.es.js.map +1 -0
- package/dist/components/multiline-text-input.cjs +2 -0
- package/dist/components/multiline-text-input.cjs.map +1 -0
- package/dist/components/multiline-text-input.es.js +5 -0
- package/dist/components/multiline-text-input.es.js.map +1 -0
- package/dist/components/nimbus-provider.cjs +2 -0
- package/dist/components/nimbus-provider.cjs.map +1 -0
- package/dist/components/nimbus-provider.es.js +8 -0
- package/dist/components/nimbus-provider.es.js.map +1 -0
- package/dist/components/number-input.cjs +2 -0
- package/dist/components/number-input.cjs.map +1 -0
- package/dist/components/number-input.es.js +5 -0
- package/dist/components/number-input.es.js.map +1 -0
- package/dist/components/password-input.cjs +2 -0
- package/dist/components/password-input.cjs.map +1 -0
- package/dist/components/password-input.es.js +5 -0
- package/dist/components/password-input.es.js.map +1 -0
- package/dist/components/radio-input.cjs +2 -0
- package/dist/components/radio-input.cjs.map +1 -0
- package/dist/components/radio-input.es.js +7 -0
- package/dist/components/radio-input.es.js.map +1 -0
- package/dist/components/select.cjs +2 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.es.js +9 -0
- package/dist/components/select.es.js.map +1 -0
- package/dist/components/simple-grid.cjs +2 -0
- package/dist/components/simple-grid.cjs.map +1 -0
- package/dist/components/simple-grid.es.js +5 -0
- package/dist/components/simple-grid.es.js.map +1 -0
- package/dist/components/stack.cjs +2 -0
- package/dist/components/stack.cjs.map +1 -0
- package/dist/components/stack.es.js +5 -0
- package/dist/components/stack.es.js.map +1 -0
- package/dist/components/switch.cjs +2 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.es.js +5 -0
- package/dist/components/switch.es.js.map +1 -0
- package/dist/components/table.cjs +2 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.es.js +5 -0
- package/dist/components/table.es.js.map +1 -0
- package/dist/components/tag-group.cjs +2 -0
- package/dist/components/tag-group.cjs.map +1 -0
- package/dist/components/tag-group.es.js +5 -0
- package/dist/components/tag-group.es.js.map +1 -0
- package/dist/components/text-input.cjs +2 -0
- package/dist/components/text-input.cjs.map +1 -0
- package/dist/components/text-input.es.js +5 -0
- package/dist/components/text-input.es.js.map +1 -0
- package/dist/components/text.cjs +2 -0
- package/dist/components/text.cjs.map +1 -0
- package/dist/components/text.es.js +5 -0
- package/dist/components/text.es.js.map +1 -0
- package/dist/components/time-input.cjs +2 -0
- package/dist/components/time-input.cjs.map +1 -0
- package/dist/components/time-input.es.js +5 -0
- package/dist/components/time-input.es.js.map +1 -0
- package/dist/components/toggle-button-group.cjs +2 -0
- package/dist/components/toggle-button-group.cjs.map +1 -0
- package/dist/components/toggle-button-group.es.js +7 -0
- package/dist/components/toggle-button-group.es.js.map +1 -0
- package/dist/components/tooltip.cjs +2 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.es.js +9 -0
- package/dist/components/tooltip.es.js.map +1 -0
- package/dist/components/visually-hidden.cjs +2 -0
- package/dist/components/visually-hidden.cjs.map +1 -0
- package/dist/components/visually-hidden.es.js +5 -0
- package/dist/components/visually-hidden.es.js.map +1 -0
- package/dist/components.d.ts +2668 -0
- package/dist/date-input.d.ts +94 -0
- package/dist/date-picker.d.ts +164 -0
- package/dist/dialog.d.ts +33 -0
- package/dist/flex.d.ts +5 -0
- package/dist/form-field.d.ts +131 -0
- package/dist/grid.d.ts +28 -0
- package/dist/heading.d.ts +5 -0
- package/dist/icon-button.d.ts +53 -0
- package/dist/icon.d.ts +99 -0
- package/dist/image.d.ts +18 -0
- package/dist/index.cjs +1 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +934 -748
- package/dist/index.es.js +305 -22047
- package/dist/index.es.js.map +1 -1
- package/dist/kbd.d.ts +10 -0
- package/dist/link.d.ts +92 -0
- package/dist/list.d.ts +21 -0
- package/dist/loading-spinner.d.ts +88 -0
- package/dist/multiline-text-input.d.ts +76 -0
- package/dist/nimbus-provider.d.ts +23 -0
- package/dist/number-input.d.ts +143 -0
- package/dist/password-input.d.ts +74 -0
- package/dist/radio-input.d.ts +70 -0
- package/dist/select.d.ts +143 -0
- 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/dist/simple-grid.d.ts +28 -0
- package/dist/stack.d.ts +14 -0
- package/dist/switch.d.ts +75 -0
- package/dist/table.d.ts +5 -0
- package/dist/tag-group.d.ts +99 -0
- package/dist/text-input.d.ts +68 -0
- package/dist/text.d.ts +20 -0
- package/dist/time-input.d.ts +102 -0
- package/dist/toggle-button-group.d.ts +107 -0
- package/dist/tooltip.d.ts +134 -0
- package/dist/visually-hidden.d.ts +15 -0
- package/package.json +6 -4
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { defineSlotRecipe as r } from "@chakra-ui/react";
|
|
2
|
+
const e = /* @__PURE__ */ r({
|
|
3
|
+
// Unique class name prefix for the component
|
|
4
|
+
className: "nimbus-number-input",
|
|
5
|
+
// Define the slots for this multi-part component
|
|
6
|
+
slots: ["root", "input", "incrementButton", "decrementButton"],
|
|
7
|
+
// Base styles applied to all instances of the component
|
|
8
|
+
base: {
|
|
9
|
+
root: {
|
|
10
|
+
display: "inline-block",
|
|
11
|
+
position: "relative",
|
|
12
|
+
// Apply input hover styles when buttons are hovered
|
|
13
|
+
"&:has(button:hover) input": {
|
|
14
|
+
backgroundColor: "primary.2"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
input: {
|
|
18
|
+
"--border-width": "sizes.25",
|
|
19
|
+
"--border-color": "colors.neutral.7",
|
|
20
|
+
display: "block",
|
|
21
|
+
borderRadius: "200",
|
|
22
|
+
colorPalette: "neutral",
|
|
23
|
+
focusVisibleRing: "outside",
|
|
24
|
+
bg: "transparent",
|
|
25
|
+
outline: "none",
|
|
26
|
+
appearance: "textfield",
|
|
27
|
+
width: "full",
|
|
28
|
+
_placeholder: {
|
|
29
|
+
opacity: 0.5,
|
|
30
|
+
color: "currentColor"
|
|
31
|
+
},
|
|
32
|
+
_disabled: {
|
|
33
|
+
layerStyle: "disabled"
|
|
34
|
+
},
|
|
35
|
+
"&[data-invalid='true']": {
|
|
36
|
+
"--border-color": "colors.critical.7",
|
|
37
|
+
color: "critical.11"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
incrementButton: {
|
|
41
|
+
"--border-width": "sizes.25",
|
|
42
|
+
"--border-color": "colors.neutral.7",
|
|
43
|
+
w: 600,
|
|
44
|
+
h: "50%",
|
|
45
|
+
display: "flex",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
justifyContent: "center",
|
|
48
|
+
cursor: "button",
|
|
49
|
+
bg: "transparent",
|
|
50
|
+
_hover: {
|
|
51
|
+
bg: "primary.2"
|
|
52
|
+
},
|
|
53
|
+
_active: {
|
|
54
|
+
bg: "neutral.4"
|
|
55
|
+
},
|
|
56
|
+
_disabled: {
|
|
57
|
+
opacity: 0.5,
|
|
58
|
+
cursor: "not-allowed"
|
|
59
|
+
},
|
|
60
|
+
"& svg": {
|
|
61
|
+
fill: "primary.9"
|
|
62
|
+
},
|
|
63
|
+
borderTopRightRadius: "200",
|
|
64
|
+
"&[data-invalid='true']": {
|
|
65
|
+
"--border-color": "colors.critical.7"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
decrementButton: {
|
|
69
|
+
"--border-width": "sizes.25",
|
|
70
|
+
"--border-color": "colors.neutral.7",
|
|
71
|
+
w: 600,
|
|
72
|
+
h: "50%",
|
|
73
|
+
display: "flex",
|
|
74
|
+
alignItems: "center",
|
|
75
|
+
justifyContent: "center",
|
|
76
|
+
cursor: "button",
|
|
77
|
+
bg: "transparent",
|
|
78
|
+
_hover: {
|
|
79
|
+
bg: "primary.2"
|
|
80
|
+
},
|
|
81
|
+
_active: {
|
|
82
|
+
bg: "neutral.4"
|
|
83
|
+
},
|
|
84
|
+
_disabled: {
|
|
85
|
+
opacity: 0.5,
|
|
86
|
+
cursor: "not-allowed"
|
|
87
|
+
},
|
|
88
|
+
"& svg": {
|
|
89
|
+
fill: "primary.9"
|
|
90
|
+
},
|
|
91
|
+
borderBottomRightRadius: "200",
|
|
92
|
+
"&[data-invalid='true']": {
|
|
93
|
+
"--border-color": "colors.critical.7"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
variants: {
|
|
98
|
+
size: {
|
|
99
|
+
sm: {
|
|
100
|
+
input: {
|
|
101
|
+
h: 800,
|
|
102
|
+
textStyle: "sm",
|
|
103
|
+
px: 300,
|
|
104
|
+
paddingRight: 800
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
md: {
|
|
108
|
+
input: {
|
|
109
|
+
h: 1e3,
|
|
110
|
+
textStyle: "md",
|
|
111
|
+
px: 400,
|
|
112
|
+
paddingRight: 800
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
variant: {
|
|
117
|
+
solid: {
|
|
118
|
+
root: {
|
|
119
|
+
// Apply input hover styles when buttons are hovered for solid variant
|
|
120
|
+
"&:has(button:hover) input": {
|
|
121
|
+
backgroundColor: "primary.2"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
input: {
|
|
125
|
+
"&[data-invalid='true']": {
|
|
126
|
+
boxShadow: "inset 0 0 0 var(--border-width) var(--border-color)",
|
|
127
|
+
"--border-width": "sizes.50"
|
|
128
|
+
},
|
|
129
|
+
boxShadow: "inset 0 0 0 var(--border-width) var(--border-color)",
|
|
130
|
+
backgroundColor: "neutral.1",
|
|
131
|
+
_hover: {
|
|
132
|
+
backgroundColor: "primary.2"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
incrementButton: {
|
|
136
|
+
"&[data-invalid='true']": {
|
|
137
|
+
borderTop: "2px solid var(--border-color)",
|
|
138
|
+
borderRight: "2px solid var(--border-color)"
|
|
139
|
+
},
|
|
140
|
+
borderTop: "var(--border-width) solid var(--border-color)",
|
|
141
|
+
borderRight: "var(--border-width) solid var(--border-color)",
|
|
142
|
+
borderLeft: "var(--border-width) solid var(--border-color)",
|
|
143
|
+
// Half-pixel shadow to create the illusion of a complete border when paired with the other button
|
|
144
|
+
boxShadow: "inset 0 -0.5px 0 0 var(--border-color)",
|
|
145
|
+
_hover: {
|
|
146
|
+
backgroundColor: "primaryAlpha.3"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
decrementButton: {
|
|
150
|
+
"&[data-invalid='true']": {
|
|
151
|
+
borderBottom: "2px solid var(--border-color)",
|
|
152
|
+
borderRight: "2px solid var(--border-color)"
|
|
153
|
+
},
|
|
154
|
+
borderBottom: "var(--border-width) solid var(--border-color)",
|
|
155
|
+
borderRight: "var(--border-width) solid var(--border-color)",
|
|
156
|
+
borderLeft: "var(--border-width) solid var(--border-color)",
|
|
157
|
+
// Half-pixel shadow to create the illusion of a complete border when paired with the other button
|
|
158
|
+
boxShadow: "inset 0 0.5px 0 0 var(--border-color)",
|
|
159
|
+
_hover: {
|
|
160
|
+
backgroundColor: "primaryAlpha.3"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
ghost: {
|
|
165
|
+
root: {
|
|
166
|
+
// Apply input hover styles when buttons are hovered for ghost variant
|
|
167
|
+
"&:has(button:hover) input": {
|
|
168
|
+
backgroundColor: "primary.2"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
input: {
|
|
172
|
+
"&[data-invalid='true']": {
|
|
173
|
+
boxShadow: "inset 0 0 0 var(--border-width) var(--border-color)",
|
|
174
|
+
"--border-width": "sizes.50"
|
|
175
|
+
},
|
|
176
|
+
_hover: {
|
|
177
|
+
backgroundColor: "primary.2"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
incrementButton: {
|
|
181
|
+
"&[data-invalid='true']": {
|
|
182
|
+
borderTop: "2px solid var(--border-color)",
|
|
183
|
+
borderRight: "2px solid var(--border-color)"
|
|
184
|
+
},
|
|
185
|
+
_hover: {
|
|
186
|
+
backgroundColor: "primaryAlpha.3"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
decrementButton: {
|
|
190
|
+
"&[data-invalid='true']": {
|
|
191
|
+
borderBottom: "2px solid var(--border-color)",
|
|
192
|
+
borderRight: "2px solid var(--border-color)"
|
|
193
|
+
},
|
|
194
|
+
_hover: {
|
|
195
|
+
backgroundColor: "primaryAlpha.3"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
defaultVariants: {
|
|
202
|
+
size: "md",
|
|
203
|
+
variant: "solid"
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
export {
|
|
207
|
+
e as n
|
|
208
|
+
};
|
|
209
|
+
//# sourceMappingURL=number-input.recipe-8gbsGnLJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-input.recipe-8gbsGnLJ.js","sources":["../../src/components/number-input/number-input.recipe.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the NumberInput component.\n * Defines the styling variants and base styles using Chakra UI's slot recipe system.\n */\nexport const numberInputRecipe = defineSlotRecipe({\n // Unique class name prefix for the component\n className: \"nimbus-number-input\",\n\n // Define the slots for this multi-part component\n slots: [\"root\", \"input\", \"incrementButton\", \"decrementButton\"],\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n display: \"inline-block\",\n position: \"relative\",\n // Apply input hover styles when buttons are hovered\n \"&:has(button:hover) input\": {\n backgroundColor: \"primary.2\",\n },\n },\n input: {\n \"--border-width\": \"sizes.25\",\n \"--border-color\": \"colors.neutral.7\",\n display: \"block\",\n borderRadius: \"200\",\n colorPalette: \"neutral\",\n focusVisibleRing: \"outside\",\n bg: \"transparent\",\n outline: \"none\",\n appearance: \"textfield\",\n width: \"full\",\n _placeholder: {\n opacity: 0.5,\n color: \"currentColor\",\n },\n _disabled: {\n layerStyle: \"disabled\",\n },\n \"&[data-invalid='true']\": {\n \"--border-color\": \"colors.critical.7\",\n color: \"critical.11\",\n },\n },\n incrementButton: {\n \"--border-width\": \"sizes.25\",\n \"--border-color\": \"colors.neutral.7\",\n w: 600,\n h: \"50%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n cursor: \"button\",\n bg: \"transparent\",\n _hover: {\n bg: \"primary.2\",\n },\n _active: {\n bg: \"neutral.4\",\n },\n _disabled: {\n opacity: 0.5,\n cursor: \"not-allowed\",\n },\n \"& svg\": {\n fill: \"primary.9\",\n },\n borderTopRightRadius: \"200\",\n \"&[data-invalid='true']\": {\n \"--border-color\": \"colors.critical.7\",\n },\n },\n decrementButton: {\n \"--border-width\": \"sizes.25\",\n \"--border-color\": \"colors.neutral.7\",\n w: 600,\n h: \"50%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n cursor: \"button\",\n bg: \"transparent\",\n _hover: {\n bg: \"primary.2\",\n },\n _active: {\n bg: \"neutral.4\",\n },\n _disabled: {\n opacity: 0.5,\n cursor: \"not-allowed\",\n },\n \"& svg\": {\n fill: \"primary.9\",\n },\n borderBottomRightRadius: \"200\",\n \"&[data-invalid='true']\": {\n \"--border-color\": \"colors.critical.7\",\n },\n },\n },\n\n variants: {\n size: {\n sm: {\n input: {\n h: 800,\n textStyle: \"sm\",\n px: 300,\n paddingRight: 800,\n },\n },\n md: {\n input: {\n h: 1000,\n textStyle: \"md\",\n px: 400,\n paddingRight: 800,\n },\n },\n },\n\n variant: {\n solid: {\n root: {\n // Apply input hover styles when buttons are hovered for solid variant\n \"&:has(button:hover) input\": {\n backgroundColor: \"primary.2\",\n },\n },\n input: {\n \"&[data-invalid='true']\": {\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n \"--border-width\": \"sizes.50\",\n },\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n backgroundColor: \"neutral.1\",\n _hover: {\n backgroundColor: \"primary.2\",\n },\n },\n incrementButton: {\n \"&[data-invalid='true']\": {\n borderTop: \"2px solid var(--border-color)\",\n borderRight: \"2px solid var(--border-color)\",\n },\n borderTop: \"var(--border-width) solid var(--border-color)\",\n borderRight: \"var(--border-width) solid var(--border-color)\",\n borderLeft: \"var(--border-width) solid var(--border-color)\",\n // Half-pixel shadow to create the illusion of a complete border when paired with the other button\n boxShadow: \"inset 0 -0.5px 0 0 var(--border-color)\",\n _hover: {\n backgroundColor: \"primaryAlpha.3\",\n },\n },\n decrementButton: {\n \"&[data-invalid='true']\": {\n borderBottom: \"2px solid var(--border-color)\",\n borderRight: \"2px solid var(--border-color)\",\n },\n borderBottom: \"var(--border-width) solid var(--border-color)\",\n borderRight: \"var(--border-width) solid var(--border-color)\",\n borderLeft: \"var(--border-width) solid var(--border-color)\",\n // Half-pixel shadow to create the illusion of a complete border when paired with the other button\n boxShadow: \"inset 0 0.5px 0 0 var(--border-color)\",\n _hover: {\n backgroundColor: \"primaryAlpha.3\",\n },\n },\n },\n ghost: {\n root: {\n // Apply input hover styles when buttons are hovered for ghost variant\n \"&:has(button:hover) input\": {\n backgroundColor: \"primary.2\",\n },\n },\n input: {\n \"&[data-invalid='true']\": {\n boxShadow: \"inset 0 0 0 var(--border-width) var(--border-color)\",\n \"--border-width\": \"sizes.50\",\n },\n _hover: {\n backgroundColor: \"primary.2\",\n },\n },\n incrementButton: {\n \"&[data-invalid='true']\": {\n borderTop: \"2px solid var(--border-color)\",\n borderRight: \"2px solid var(--border-color)\",\n },\n _hover: {\n backgroundColor: \"primaryAlpha.3\",\n },\n },\n decrementButton: {\n \"&[data-invalid='true']\": {\n borderBottom: \"2px solid var(--border-color)\",\n borderRight: \"2px solid var(--border-color)\",\n },\n _hover: {\n backgroundColor: \"primaryAlpha.3\",\n },\n },\n },\n },\n },\n\n defaultVariants: {\n size: \"md\",\n variant: \"solid\",\n },\n});\n"],"names":["numberInputRecipe","defineSlotRecipe"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),e=require("react"),n=require("./box-FU6tRPFs.js"),b=require("./icon-button-Ds1Wzyc1.js"),r=require("./tooltip-C-K5iatf.js"),j=require("./text-input-CtJ2FHJ3.js"),a=require("@commercetools/nimbus-icons"),c=e.forwardRef((i,d)=>{const{size:t="md",isDisabled:l}=i,[o,u]=e.useState(!1),p=()=>u(!o),x=t==="md"?"xs":"2xs",w=t==="md"?{top:"100",right:"400"}:{top:"50",right:"400"},h=t==="md"?"1400":"1100";return s.jsxs(n.Box,{display:"inline-block",position:"relative",children:[s.jsx(j.TextInput,{width:"full",ref:d,type:o?"text":"password",...i,pr:h}),s.jsx(n.Box,{position:"absolute",...w,children:s.jsxs(r.Tooltip.Root,{children:[s.jsx(b.IconButton,{size:x,variant:"ghost",tone:"primary","aria-label":o?"Hide password":"Show password",onPress:p,isDisabled:l,children:o?s.jsx(a.VisibilityOff,{}):s.jsx(a.Visibility,{})}),s.jsx(r.Tooltip.Content,{children:o?"Hide password":"Show Password"})]})})]})});c.displayName="PasswordInput";exports.PasswordInput=c;
|
|
2
|
+
//# sourceMappingURL=password-input-BD5GZKX7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-input-BD5GZKX7.js","sources":["../../src/components/password-input/password-input.tsx"],"sourcesContent":["import { forwardRef, useState } from \"react\";\nimport { Box, IconButton, Tooltip } from \"@/components\";\nimport { TextInput } from \"@/components/text-input\";\nimport { Visibility, VisibilityOff } from \"@commercetools/nimbus-icons\";\nimport type { PasswordInputProps } from \"./password-input.types\";\n\n/**\n * PasswordInput\n * ============================================================\n * An input component that takes in password as input with toggleable visibility\n *\n * Features:\n *\n * - Based on TextInput with added password visibility toggle\n * - Allows toggling between type=\"password\" and type=\"text\"\n * - Positions the toggle button at the right edge of the input\n * - Inherits all TextInput features and props\n */\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n (props, forwardedRef) => {\n const { size = \"md\", isDisabled } = props;\n const [showPassword, setShowPassword] = useState(false);\n const toggleVisibility = () => setShowPassword(!showPassword);\n\n /** size icon based on input size */\n const iconSize = size === \"md\" ? \"xs\" : \"2xs\";\n /**\n * position the icon button at the right edge of the input based on\n * the size of the input\n */\n const iconPositionProps =\n size === \"md\"\n ? {\n top: \"100\",\n right: \"400\",\n }\n : {\n top: \"50\",\n right: \"400\",\n };\n\n /** safe space between the text within the input and the icon button */\n const iconButtonSafeSpace = size === \"md\" ? \"1400\" : \"1100\";\n\n return (\n <Box display=\"inline-block\" position=\"relative\">\n <TextInput\n width=\"full\"\n ref={forwardedRef}\n type={showPassword ? \"text\" : \"password\"}\n {...props}\n pr={iconButtonSafeSpace}\n />\n <Box position=\"absolute\" {...iconPositionProps}>\n <Tooltip.Root>\n <IconButton\n size={iconSize}\n variant=\"ghost\"\n tone=\"primary\"\n aria-label={showPassword ? \"Hide password\" : \"Show password\"}\n onPress={toggleVisibility}\n isDisabled={isDisabled}\n >\n {showPassword ? <VisibilityOff /> : <Visibility />}\n </IconButton>\n <Tooltip.Content>\n {showPassword ? \"Hide password\" : \"Show Password\"}\n </Tooltip.Content>\n </Tooltip.Root>\n </Box>\n </Box>\n );\n }\n);\n\nPasswordInput.displayName = \"PasswordInput\";\n"],"names":["PasswordInput","forwardRef","props","forwardedRef","size","isDisabled","showPassword","setShowPassword","useState","toggleVisibility","iconSize","iconPositionProps","iconButtonSafeSpace","jsxs","Box","jsx","TextInput","Tooltip","IconButton","VisibilityOff","Visibility"],"mappings":"6PAkBaA,EAAgBC,EAAA,WAC3B,CAACC,EAAOC,IAAiB,CACvB,KAAM,CAAE,KAAAC,EAAO,KAAM,WAAAC,CAAe,EAAAH,EAC9B,CAACI,EAAcC,CAAe,EAAIC,EAAAA,SAAS,EAAK,EAChDC,EAAmB,IAAMF,EAAgB,CAACD,CAAY,EAGtDI,EAAWN,IAAS,KAAO,KAAO,MAKlCO,EACJP,IAAS,KACL,CACE,IAAK,MACL,MAAO,KAAA,EAET,CACE,IAAK,KACL,MAAO,KACT,EAGAQ,EAAsBR,IAAS,KAAO,OAAS,OAErD,OACGS,EAAAA,KAAAC,EAAAA,IAAA,CAAI,QAAQ,eAAe,SAAS,WACnC,SAAA,CAAAC,EAAA,IAACC,EAAA,UAAA,CACC,MAAM,OACN,IAAKb,EACL,KAAMG,EAAe,OAAS,WAC7B,GAAGJ,EACJ,GAAIU,CAAA,CACN,EACAG,EAAAA,IAACD,OAAI,SAAS,WAAY,GAAGH,EAC3B,SAAAE,OAACI,EAAAA,QAAQ,KAAR,CACC,SAAA,CAAAF,EAAA,IAACG,EAAA,WAAA,CACC,KAAMR,EACN,QAAQ,QACR,KAAK,UACL,aAAYJ,EAAe,gBAAkB,gBAC7C,QAASG,EACT,WAAAJ,EAEC,SAAeC,EAAAS,MAACI,EAAAA,cAAc,CAAA,CAAA,QAAMC,EAAAA,WAAW,CAAA,CAAA,CAAA,CAClD,QACCH,EAAQ,QAAA,QAAR,CACE,SAAAX,EAAe,gBAAkB,eACpC,CAAA,CAAA,CAAA,CACF,CACF,CAAA,CAAA,EACF,CAAA,CAGN,EAEAN,EAAc,YAAc"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f, useState as w } from "react";
|
|
3
|
+
import { B as e } from "./box-DD4jYgS7.js";
|
|
4
|
+
import { I as h } from "./icon-button-DVBfoOHT.js";
|
|
5
|
+
import { b as n } from "./tooltip-DvoZxHgo.js";
|
|
6
|
+
import { T as u } from "./text-input-SYXEV4sT.js";
|
|
7
|
+
import { VisibilityOff as P, Visibility as S } from "@commercetools/nimbus-icons";
|
|
8
|
+
const b = /* @__PURE__ */ f(
|
|
9
|
+
(t, a) => {
|
|
10
|
+
const { size: i = "md", isDisabled: p } = t, [s, d] = w(!1), l = () => d(!s), c = i === "md" ? "xs" : "2xs", m = i === "md" ? {
|
|
11
|
+
top: "100",
|
|
12
|
+
right: "400"
|
|
13
|
+
} : {
|
|
14
|
+
top: "50",
|
|
15
|
+
right: "400"
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ r(e, { display: "inline-block", position: "relative", children: [
|
|
18
|
+
/* @__PURE__ */ o(
|
|
19
|
+
u,
|
|
20
|
+
{
|
|
21
|
+
width: "full",
|
|
22
|
+
ref: a,
|
|
23
|
+
type: s ? "text" : "password",
|
|
24
|
+
...t,
|
|
25
|
+
pr: i === "md" ? "1400" : "1100"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ o(e, { position: "absolute", ...m, children: /* @__PURE__ */ r(n.Root, { children: [
|
|
29
|
+
/* @__PURE__ */ o(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
size: c,
|
|
33
|
+
variant: "ghost",
|
|
34
|
+
tone: "primary",
|
|
35
|
+
"aria-label": s ? "Hide password" : "Show password",
|
|
36
|
+
onPress: l,
|
|
37
|
+
isDisabled: p,
|
|
38
|
+
children: s ? /* @__PURE__ */ o(P, {}) : /* @__PURE__ */ o(S, {})
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ o(n.Content, { children: s ? "Hide password" : "Show Password" })
|
|
42
|
+
] }) })
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
b.displayName = "PasswordInput";
|
|
47
|
+
export {
|
|
48
|
+
b as P
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=password-input-fiypX-6w.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-input-fiypX-6w.js","sources":["../../src/components/password-input/password-input.tsx"],"sourcesContent":["import { forwardRef, useState } from \"react\";\nimport { Box, IconButton, Tooltip } from \"@/components\";\nimport { TextInput } from \"@/components/text-input\";\nimport { Visibility, VisibilityOff } from \"@commercetools/nimbus-icons\";\nimport type { PasswordInputProps } from \"./password-input.types\";\n\n/**\n * PasswordInput\n * ============================================================\n * An input component that takes in password as input with toggleable visibility\n *\n * Features:\n *\n * - Based on TextInput with added password visibility toggle\n * - Allows toggling between type=\"password\" and type=\"text\"\n * - Positions the toggle button at the right edge of the input\n * - Inherits all TextInput features and props\n */\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n (props, forwardedRef) => {\n const { size = \"md\", isDisabled } = props;\n const [showPassword, setShowPassword] = useState(false);\n const toggleVisibility = () => setShowPassword(!showPassword);\n\n /** size icon based on input size */\n const iconSize = size === \"md\" ? \"xs\" : \"2xs\";\n /**\n * position the icon button at the right edge of the input based on\n * the size of the input\n */\n const iconPositionProps =\n size === \"md\"\n ? {\n top: \"100\",\n right: \"400\",\n }\n : {\n top: \"50\",\n right: \"400\",\n };\n\n /** safe space between the text within the input and the icon button */\n const iconButtonSafeSpace = size === \"md\" ? \"1400\" : \"1100\";\n\n return (\n <Box display=\"inline-block\" position=\"relative\">\n <TextInput\n width=\"full\"\n ref={forwardedRef}\n type={showPassword ? \"text\" : \"password\"}\n {...props}\n pr={iconButtonSafeSpace}\n />\n <Box position=\"absolute\" {...iconPositionProps}>\n <Tooltip.Root>\n <IconButton\n size={iconSize}\n variant=\"ghost\"\n tone=\"primary\"\n aria-label={showPassword ? \"Hide password\" : \"Show password\"}\n onPress={toggleVisibility}\n isDisabled={isDisabled}\n >\n {showPassword ? <VisibilityOff /> : <Visibility />}\n </IconButton>\n <Tooltip.Content>\n {showPassword ? \"Hide password\" : \"Show Password\"}\n </Tooltip.Content>\n </Tooltip.Root>\n </Box>\n </Box>\n );\n }\n);\n\nPasswordInput.displayName = \"PasswordInput\";\n"],"names":["PasswordInput","forwardRef","props","forwardedRef","size","isDisabled","showPassword","setShowPassword","useState","toggleVisibility","iconSize","iconPositionProps","jsxs","Box","jsx","TextInput","Tooltip","IconButton","VisibilityOff","Visibility"],"mappings":";;;;;;;AAkBO,MAAMA,IAAgB,gBAAAC;AAAA,EAC3B,CAACC,GAAOC,MAAiB;AACvB,UAAM,EAAE,MAAAC,IAAO,MAAM,YAAAC,EAAe,IAAAH,GAC9B,CAACI,GAAcC,CAAe,IAAIC,EAAS,EAAK,GAChDC,IAAmB,MAAMF,EAAgB,CAACD,CAAY,GAGtDI,IAAWN,MAAS,OAAO,OAAO,OAKlCO,IACJP,MAAS,OACL;AAAA,MACE,KAAK;AAAA,MACL,OAAO;AAAA,IAAA,IAET;AAAA,MACE,KAAK;AAAA,MACL,OAAO;AAAA,IACT;AAKN,WACG,gBAAAQ,EAAAC,GAAA,EAAI,SAAQ,gBAAe,UAAS,YACnC,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,KAAKZ;AAAA,UACL,MAAMG,IAAe,SAAS;AAAA,UAC7B,GAAGJ;AAAA,UACJ,IATsBE,MAAS,OAAO,SAAS;AAAA,QAS3C;AAAA,MACN;AAAA,MACA,gBAAAU,EAACD,KAAI,UAAS,YAAY,GAAGF,GAC3B,UAAA,gBAAAC,EAACI,EAAQ,MAAR,EACC,UAAA;AAAA,QAAA,gBAAAF;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,MAAMP;AAAA,YACN,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,cAAYJ,IAAe,kBAAkB;AAAA,YAC7C,SAASG;AAAA,YACT,YAAAJ;AAAA,YAEC,UAAeC,IAAA,gBAAAQ,EAACI,GAAc,CAAA,CAAA,sBAAMC,GAAW,CAAA,CAAA;AAAA,UAAA;AAAA,QAClD;AAAA,0BACCH,EAAQ,SAAR,EACE,UAAAV,IAAe,kBAAkB,gBACpC,CAAA;AAAA,MAAA,EAAA,CACF,EACF,CAAA;AAAA,IAAA,GACF;AAAA,EAAA;AAGN;AAEAN,EAAc,cAAc;"}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { jsx as D, jsxs as W, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import { createSlotRecipeContext as G, useSlotRecipe as j } from "@chakra-ui/react";
|
|
3
|
+
import { r as H } from "./radio-input.recipe-CM9R2ilP.js";
|
|
4
|
+
import { $ as O, f as K, d as U, a as M, b as z, c as J, e as Q } from "./utils-7n9JR4ke.js";
|
|
5
|
+
import { $ as X, a as Y, b as Z } from "./Form-DdaqVtM4.js";
|
|
6
|
+
import { $ as ee } from "./Text-DOcU1ycg.js";
|
|
7
|
+
import { $ as y, c as ae } from "./mergeProps-tCFA9wZ1.js";
|
|
8
|
+
import { $ as F } from "./filterDOMProps-D6KHYVBX.js";
|
|
9
|
+
import { $ as ie } from "./useObjectRef-CaJ5pgjX.js";
|
|
10
|
+
import g, { useMemo as q, useState as de, forwardRef as w, createContext as B } from "react";
|
|
11
|
+
import { $ as re } from "./useFormReset-BgCb2h6r.js";
|
|
12
|
+
import { $ as C } from "./usePress-Dk0M2Js8.js";
|
|
13
|
+
import { $ as te } from "./useFocusable-DBEQCS1T.js";
|
|
14
|
+
import { a as oe, $ as le } from "./useFormValidation-DoG8pVu2.js";
|
|
15
|
+
import { a as se } from "./FocusScope-CsXy0kJw.js";
|
|
16
|
+
import { $ as ne } from "./useFocusWithin-AKRo9mz0.js";
|
|
17
|
+
import { $ as ce } from "./useField-BY58-2Ft.js";
|
|
18
|
+
import { $ as ue } from "./context-CI0Y3O6x.js";
|
|
19
|
+
import { $ as k } from "./useFocusRing-DNviWqC5.js";
|
|
20
|
+
import { $ as fe } from "./useHover-3Zee5Ds5.js";
|
|
21
|
+
import { $ as $e } from "./VisuallyHidden-2REhp9RT.js";
|
|
22
|
+
import { $ as be } from "./useControlledState-u436Wbp1.js";
|
|
23
|
+
import { e as E } from "./extractStyleProps-CxgBrz3O.js";
|
|
24
|
+
import { RadioButtonChecked as pe, RadioButtonUnchecked as ve } from "@commercetools/nimbus-icons";
|
|
25
|
+
const _ = /* @__PURE__ */ new WeakMap();
|
|
26
|
+
function me(a, e, d) {
|
|
27
|
+
let { value: t, children: o, "aria-label": r, "aria-labelledby": l } = a;
|
|
28
|
+
const i = a.isDisabled || e.isDisabled;
|
|
29
|
+
let c = o != null, f = r != null || l != null;
|
|
30
|
+
!c && !f && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
31
|
+
let s = e.selectedValue === t, v = (x) => {
|
|
32
|
+
x.stopPropagation(), e.setSelectedValue(t);
|
|
33
|
+
}, { pressProps: m, isPressed: P } = C({
|
|
34
|
+
isDisabled: i
|
|
35
|
+
}), { pressProps: h, isPressed: b } = C({
|
|
36
|
+
isDisabled: i,
|
|
37
|
+
onPress() {
|
|
38
|
+
var x;
|
|
39
|
+
e.setSelectedValue(t), (x = d.current) === null || x === void 0 || x.focus();
|
|
40
|
+
}
|
|
41
|
+
}), { focusableProps: S } = te(y(a, {
|
|
42
|
+
onFocus: () => e.setLastFocusedValue(t)
|
|
43
|
+
}), d), I = y(m, S), V = F(a, {
|
|
44
|
+
labelable: !0
|
|
45
|
+
}), p = -1;
|
|
46
|
+
e.selectedValue != null ? e.selectedValue === t && (p = 0) : (e.lastFocusedValue === t || e.lastFocusedValue == null) && (p = 0), i && (p = void 0);
|
|
47
|
+
let { name: $, descriptionId: n, errorMessageId: R, validationBehavior: u } = _.get(e);
|
|
48
|
+
return re(d, e.selectedValue, e.setSelectedValue), oe({
|
|
49
|
+
validationBehavior: u
|
|
50
|
+
}, e, d), {
|
|
51
|
+
labelProps: y(h, {
|
|
52
|
+
onClick: (x) => x.preventDefault()
|
|
53
|
+
}),
|
|
54
|
+
inputProps: y(V, {
|
|
55
|
+
...I,
|
|
56
|
+
type: "radio",
|
|
57
|
+
name: $,
|
|
58
|
+
tabIndex: p,
|
|
59
|
+
disabled: i,
|
|
60
|
+
required: e.isRequired && u === "native",
|
|
61
|
+
checked: s,
|
|
62
|
+
value: t,
|
|
63
|
+
onChange: v,
|
|
64
|
+
"aria-describedby": [
|
|
65
|
+
a["aria-describedby"],
|
|
66
|
+
e.isInvalid ? R : null,
|
|
67
|
+
n
|
|
68
|
+
].filter(Boolean).join(" ") || void 0
|
|
69
|
+
}),
|
|
70
|
+
isDisabled: i,
|
|
71
|
+
isSelected: s,
|
|
72
|
+
isPressed: P || b
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function Pe(a, e) {
|
|
76
|
+
let { name: d, isReadOnly: t, isRequired: o, isDisabled: r, orientation: l = "vertical", validationBehavior: i = "aria" } = a, { direction: c } = ue(), { isInvalid: f, validationErrors: s, validationDetails: v } = e.displayValidation, { labelProps: m, fieldProps: P, descriptionProps: h, errorMessageProps: b } = ce({
|
|
77
|
+
...a,
|
|
78
|
+
// Radio group is not an HTML input element so it
|
|
79
|
+
// shouldn't be labeled by a <label> element.
|
|
80
|
+
labelElementType: "span",
|
|
81
|
+
isInvalid: e.isInvalid,
|
|
82
|
+
errorMessage: a.errorMessage || s
|
|
83
|
+
}), S = F(a, {
|
|
84
|
+
labelable: !0
|
|
85
|
+
}), { focusWithinProps: I } = ne({
|
|
86
|
+
onBlurWithin($) {
|
|
87
|
+
var n;
|
|
88
|
+
(n = a.onBlur) === null || n === void 0 || n.call(a, $), e.selectedValue || e.setLastFocusedValue(null);
|
|
89
|
+
},
|
|
90
|
+
onFocusWithin: a.onFocus,
|
|
91
|
+
onFocusWithinChange: a.onFocusChange
|
|
92
|
+
}), V = ($) => {
|
|
93
|
+
let n;
|
|
94
|
+
switch ($.key) {
|
|
95
|
+
case "ArrowRight":
|
|
96
|
+
c === "rtl" && l !== "vertical" ? n = "prev" : n = "next";
|
|
97
|
+
break;
|
|
98
|
+
case "ArrowLeft":
|
|
99
|
+
c === "rtl" && l !== "vertical" ? n = "next" : n = "prev";
|
|
100
|
+
break;
|
|
101
|
+
case "ArrowDown":
|
|
102
|
+
n = "next";
|
|
103
|
+
break;
|
|
104
|
+
case "ArrowUp":
|
|
105
|
+
n = "prev";
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
$.preventDefault();
|
|
111
|
+
let R = se($.currentTarget, {
|
|
112
|
+
from: $.target
|
|
113
|
+
}), u;
|
|
114
|
+
n === "next" ? (u = R.nextNode(), u || (R.currentNode = $.currentTarget, u = R.firstChild())) : (u = R.previousNode(), u || (R.currentNode = $.currentTarget, u = R.lastChild())), u && (u.focus(), e.setSelectedValue(u.value));
|
|
115
|
+
}, p = ae(d);
|
|
116
|
+
return _.set(e, {
|
|
117
|
+
name: p,
|
|
118
|
+
descriptionId: h.id,
|
|
119
|
+
errorMessageId: b.id,
|
|
120
|
+
validationBehavior: i
|
|
121
|
+
}), {
|
|
122
|
+
radioGroupProps: y(S, {
|
|
123
|
+
// https://www.w3.org/TR/wai-aria-1.2/#radiogroup
|
|
124
|
+
role: "radiogroup",
|
|
125
|
+
onKeyDown: V,
|
|
126
|
+
"aria-invalid": e.isInvalid || void 0,
|
|
127
|
+
"aria-errormessage": a["aria-errormessage"],
|
|
128
|
+
"aria-readonly": t || void 0,
|
|
129
|
+
"aria-required": o || void 0,
|
|
130
|
+
"aria-disabled": r || void 0,
|
|
131
|
+
"aria-orientation": l,
|
|
132
|
+
...P,
|
|
133
|
+
...I
|
|
134
|
+
}),
|
|
135
|
+
labelProps: m,
|
|
136
|
+
descriptionProps: h,
|
|
137
|
+
errorMessageProps: b,
|
|
138
|
+
isInvalid: f,
|
|
139
|
+
validationErrors: s,
|
|
140
|
+
validationDetails: v
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
let he = /* @__PURE__ */ Math.round(/* @__PURE__ */ Math.random() * 1e10), Re = 0;
|
|
144
|
+
function xe(a) {
|
|
145
|
+
let e = q(() => a.name || `radio-group-${he}-${++Re}`, [
|
|
146
|
+
a.name
|
|
147
|
+
]);
|
|
148
|
+
var d;
|
|
149
|
+
let [t, o] = be(a.value, (d = a.defaultValue) !== null && d !== void 0 ? d : null, a.onChange), [r, l] = de(null), i = le({
|
|
150
|
+
...a,
|
|
151
|
+
value: t
|
|
152
|
+
}), c = (s) => {
|
|
153
|
+
!a.isReadOnly && !a.isDisabled && (o(s), i.commitValidation());
|
|
154
|
+
}, f = i.displayValidation.isInvalid;
|
|
155
|
+
return {
|
|
156
|
+
...i,
|
|
157
|
+
name: e,
|
|
158
|
+
selectedValue: t,
|
|
159
|
+
setSelectedValue: c,
|
|
160
|
+
lastFocusedValue: r,
|
|
161
|
+
setLastFocusedValue: l,
|
|
162
|
+
isDisabled: a.isDisabled || !1,
|
|
163
|
+
isReadOnly: a.isReadOnly || !1,
|
|
164
|
+
isRequired: a.isRequired || !1,
|
|
165
|
+
validationState: a.validationState || (f ? "invalid" : null),
|
|
166
|
+
isInvalid: f
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const ye = /* @__PURE__ */ B(null), Ie = /* @__PURE__ */ B(null), N = /* @__PURE__ */ B(null), Ve = /* @__PURE__ */ w(function(e, d) {
|
|
170
|
+
[e, d] = O(e, d, ye);
|
|
171
|
+
let { validationBehavior: t } = z(X) || {};
|
|
172
|
+
var o, r;
|
|
173
|
+
let l = (r = (o = e.validationBehavior) !== null && o !== void 0 ? o : t) !== null && r !== void 0 ? r : "native", i = xe({
|
|
174
|
+
...e,
|
|
175
|
+
validationBehavior: l
|
|
176
|
+
}), [c, f] = J(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: v, descriptionProps: m, errorMessageProps: P, ...h } = Pe({
|
|
177
|
+
...e,
|
|
178
|
+
label: f,
|
|
179
|
+
validationBehavior: l
|
|
180
|
+
}, i), b = M({
|
|
181
|
+
...e,
|
|
182
|
+
values: {
|
|
183
|
+
orientation: e.orientation || "vertical",
|
|
184
|
+
isDisabled: i.isDisabled,
|
|
185
|
+
isReadOnly: i.isReadOnly,
|
|
186
|
+
isRequired: i.isRequired,
|
|
187
|
+
isInvalid: i.isInvalid,
|
|
188
|
+
state: i
|
|
189
|
+
},
|
|
190
|
+
defaultClassName: "react-aria-RadioGroup"
|
|
191
|
+
});
|
|
192
|
+
return /* @__PURE__ */ g.createElement("div", {
|
|
193
|
+
...s,
|
|
194
|
+
...b,
|
|
195
|
+
ref: d,
|
|
196
|
+
slot: e.slot || void 0,
|
|
197
|
+
"data-orientation": e.orientation || "vertical",
|
|
198
|
+
"data-invalid": i.isInvalid || void 0,
|
|
199
|
+
"data-disabled": i.isDisabled || void 0,
|
|
200
|
+
"data-readonly": i.isReadOnly || void 0,
|
|
201
|
+
"data-required": i.isRequired || void 0
|
|
202
|
+
}, /* @__PURE__ */ g.createElement(Q, {
|
|
203
|
+
values: [
|
|
204
|
+
[
|
|
205
|
+
N,
|
|
206
|
+
i
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
Y,
|
|
210
|
+
{
|
|
211
|
+
...v,
|
|
212
|
+
ref: c,
|
|
213
|
+
elementType: "span"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
[
|
|
217
|
+
ee,
|
|
218
|
+
{
|
|
219
|
+
slots: {
|
|
220
|
+
description: m,
|
|
221
|
+
errorMessage: P
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
Z,
|
|
227
|
+
h
|
|
228
|
+
]
|
|
229
|
+
]
|
|
230
|
+
}, b.children));
|
|
231
|
+
}), De = /* @__PURE__ */ w(function(e, d) {
|
|
232
|
+
let { inputRef: t = null, ...o } = e;
|
|
233
|
+
[e, d] = O(o, d, Ie);
|
|
234
|
+
let r = g.useContext(N), l = ie(q(() => K(t, e.inputRef !== void 0 ? e.inputRef : null), [
|
|
235
|
+
t,
|
|
236
|
+
e.inputRef
|
|
237
|
+
])), { labelProps: i, inputProps: c, isSelected: f, isDisabled: s, isPressed: v } = me({
|
|
238
|
+
...U(e),
|
|
239
|
+
// ReactNode type doesn't allow function children.
|
|
240
|
+
children: typeof e.children == "function" ? !0 : e.children
|
|
241
|
+
}, r, l), { isFocused: m, isFocusVisible: P, focusProps: h } = k(), b = s || r.isReadOnly, { hoverProps: S, isHovered: I } = fe({
|
|
242
|
+
...e,
|
|
243
|
+
isDisabled: b
|
|
244
|
+
}), V = M({
|
|
245
|
+
...e,
|
|
246
|
+
defaultClassName: "react-aria-Radio",
|
|
247
|
+
values: {
|
|
248
|
+
isSelected: f,
|
|
249
|
+
isPressed: v,
|
|
250
|
+
isHovered: I,
|
|
251
|
+
isFocused: m,
|
|
252
|
+
isFocusVisible: P,
|
|
253
|
+
isDisabled: s,
|
|
254
|
+
isReadOnly: r.isReadOnly,
|
|
255
|
+
isInvalid: r.isInvalid,
|
|
256
|
+
isRequired: r.isRequired
|
|
257
|
+
}
|
|
258
|
+
}), p = F(e);
|
|
259
|
+
return delete p.id, /* @__PURE__ */ g.createElement("label", {
|
|
260
|
+
...y(p, i, S, V),
|
|
261
|
+
ref: d,
|
|
262
|
+
"data-selected": f || void 0,
|
|
263
|
+
"data-pressed": v || void 0,
|
|
264
|
+
"data-hovered": I || void 0,
|
|
265
|
+
"data-focused": m || void 0,
|
|
266
|
+
"data-focus-visible": P || void 0,
|
|
267
|
+
"data-disabled": s || void 0,
|
|
268
|
+
"data-readonly": r.isReadOnly || void 0,
|
|
269
|
+
"data-invalid": r.isInvalid || void 0,
|
|
270
|
+
"data-required": r.isRequired || void 0
|
|
271
|
+
}, /* @__PURE__ */ g.createElement($e, {
|
|
272
|
+
elementType: "span"
|
|
273
|
+
}, /* @__PURE__ */ g.createElement("input", {
|
|
274
|
+
...y(c, h),
|
|
275
|
+
ref: l
|
|
276
|
+
})), V.children);
|
|
277
|
+
}), { withProvider: ge, withContext: Se } = /* @__PURE__ */ G({
|
|
278
|
+
key: "radioInput"
|
|
279
|
+
}), Fe = /* @__PURE__ */ ge("div", "root"), Be = /* @__PURE__ */ Se("span", "option"), L = (a) => {
|
|
280
|
+
const e = j({ recipe: H }), [d, t] = e.splitVariantProps(a), [o, r] = E(t);
|
|
281
|
+
return /* @__PURE__ */ D(Fe, { ...d, ...o, asChild: !0, children: /* @__PURE__ */ D(Ve, { ...r, children: a.children }) });
|
|
282
|
+
};
|
|
283
|
+
L.displayName = "RadioInputRoot";
|
|
284
|
+
const T = ({
|
|
285
|
+
children: a,
|
|
286
|
+
value: e,
|
|
287
|
+
...d
|
|
288
|
+
}) => {
|
|
289
|
+
const [t, o] = E(d), { isFocused: r, focusProps: l } = k();
|
|
290
|
+
return /* @__PURE__ */ D(
|
|
291
|
+
Be,
|
|
292
|
+
{
|
|
293
|
+
...t,
|
|
294
|
+
...l,
|
|
295
|
+
"data-focus": r || void 0,
|
|
296
|
+
asChild: !0,
|
|
297
|
+
children: /* @__PURE__ */ D(De, { value: e, ...o, children: (i) => {
|
|
298
|
+
const c = typeof a == "function" ? a({
|
|
299
|
+
...i
|
|
300
|
+
}) : a;
|
|
301
|
+
return /* @__PURE__ */ W(A, { children: [
|
|
302
|
+
i.isSelected ? /* @__PURE__ */ D(pe, {}) : /* @__PURE__ */ D(ve, {}),
|
|
303
|
+
c
|
|
304
|
+
] });
|
|
305
|
+
} })
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
};
|
|
309
|
+
T.displayName = "RadioInputOption";
|
|
310
|
+
const ea = {
|
|
311
|
+
Root: L,
|
|
312
|
+
Option: T
|
|
313
|
+
};
|
|
314
|
+
export {
|
|
315
|
+
ea as R,
|
|
316
|
+
L as a,
|
|
317
|
+
T as b
|
|
318
|
+
};
|
|
319
|
+
//# sourceMappingURL=radio-input-4v_6tT94.js.map
|