@commercetools/nimbus 0.0.0-canary-20251020195126 → 0.0.0-canary-20251021173355
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/{accordion-B_1KNzgc.cjs.js → accordion-DSGEXEhr.cjs.js} +2 -2
- package/dist/chunks/{accordion-B_1KNzgc.cjs.js.map → accordion-DSGEXEhr.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-Dpz27R7h.es.js → accordion-qGqsBPyL.es.js} +2 -2
- package/dist/chunks/{accordion-Dpz27R7h.es.js.map → accordion-qGqsBPyL.es.js.map} +1 -1
- package/dist/chunks/{alert-CvjNVv19.cjs.js → alert-TRDlquOA.cjs.js} +2 -2
- package/dist/chunks/{alert-CvjNVv19.cjs.js.map → alert-TRDlquOA.cjs.js.map} +1 -1
- package/dist/chunks/{alert-NU_pbX5a.es.js → alert-oRDhQkv5.es.js} +2 -2
- package/dist/chunks/{alert-NU_pbX5a.es.js.map → alert-oRDhQkv5.es.js.map} +1 -1
- package/dist/chunks/{button-DVq0Tn9x.cjs.js → button-DBJWE37u.cjs.js} +2 -2
- package/dist/chunks/{button-DVq0Tn9x.cjs.js.map → button-DBJWE37u.cjs.js.map} +1 -1
- package/dist/chunks/{button-C-aK04VC.es.js → button-DPyMVftu.es.js} +2 -2
- package/dist/chunks/{button-C-aK04VC.es.js.map → button-DPyMVftu.es.js.map} +1 -1
- package/dist/chunks/{calendar-68UPkecF.cjs.js → calendar-CmXy0cPT.cjs.js} +2 -2
- package/dist/chunks/{calendar-68UPkecF.cjs.js.map → calendar-CmXy0cPT.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-BOltdZgB.es.js → calendar-oIF-zfZk.es.js} +4 -4
- package/dist/chunks/{calendar-BOltdZgB.es.js.map → calendar-oIF-zfZk.es.js.map} +1 -1
- package/dist/chunks/{checkbox-CE8KCGeO.es.js → checkbox-Ba3nSo59.es.js} +2 -2
- package/dist/chunks/{checkbox-CE8KCGeO.es.js.map → checkbox-Ba3nSo59.es.js.map} +1 -1
- package/dist/chunks/{checkbox-BsF8yKNU.cjs.js → checkbox-BemzZgDS.cjs.js} +2 -2
- package/dist/chunks/{checkbox-BsF8yKNU.cjs.js.map → checkbox-BemzZgDS.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-YVxwOqMx.es.js → collapsible-motion-ChDBaGDk.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-YVxwOqMx.es.js.map → collapsible-motion-ChDBaGDk.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-JlRqk1WP.cjs.js → collapsible-motion-cY4bTAQ3.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-JlRqk1WP.cjs.js.map → collapsible-motion-cY4bTAQ3.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-DxZYSfXC.es.js → combobox-KB0akVts.es.js} +5 -5
- package/dist/chunks/{combobox-DxZYSfXC.es.js.map → combobox-KB0akVts.es.js.map} +1 -1
- package/dist/chunks/{combobox--SFKwkv-.cjs.js → combobox-djmE5cgW.cjs.js} +2 -2
- package/dist/chunks/{combobox--SFKwkv-.cjs.js.map → combobox-djmE5cgW.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-CVOGG34V.es.js → data-table-Bsv_hjhy.es.js} +5 -5
- package/dist/chunks/{data-table-CVOGG34V.es.js.map → data-table-Bsv_hjhy.es.js.map} +1 -1
- package/dist/chunks/{data-table-dVWkgyi0.cjs.js → data-table-DHPEKVQl.cjs.js} +2 -2
- package/dist/chunks/{data-table-dVWkgyi0.cjs.js.map → data-table-DHPEKVQl.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-_QRphDSA.es.js → date-input-BsjCF8tk.es.js} +3 -3
- package/dist/chunks/{date-input-_QRphDSA.es.js.map → date-input-BsjCF8tk.es.js.map} +1 -1
- package/dist/chunks/{date-input-CPl8mFy8.cjs.js → date-input-CSJV8IVf.cjs.js} +2 -2
- package/dist/chunks/{date-input-CPl8mFy8.cjs.js.map → date-input-CSJV8IVf.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-iuCCrF6q.es.js → date-picker-ClR6hL46.es.js} +7 -7
- package/dist/chunks/{date-picker-iuCCrF6q.es.js.map → date-picker-ClR6hL46.es.js.map} +1 -1
- package/dist/chunks/{date-picker-4WW_uOY9.cjs.js → date-picker-DXIjMGQT.cjs.js} +2 -2
- package/dist/chunks/{date-picker-4WW_uOY9.cjs.js.map → date-picker-DXIjMGQT.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-B5thxmG7.cjs.js → date-range-picker-DrfyQRXe.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-B5thxmG7.cjs.js.map → date-range-picker-DrfyQRXe.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-9gMrujrF.es.js → date-range-picker-SaGG53EV.es.js} +7 -7
- package/dist/chunks/{date-range-picker-9gMrujrF.es.js.map → date-range-picker-SaGG53EV.es.js.map} +1 -1
- package/dist/chunks/{dialog-B9olReM9.cjs.js → dialog-B3RSB8sN.cjs.js} +2 -2
- package/dist/chunks/{dialog-B9olReM9.cjs.js.map → dialog-B3RSB8sN.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-DkA2M2zA.es.js → dialog-B3lILV04.es.js} +2 -2
- package/dist/chunks/{dialog-DkA2M2zA.es.js.map → dialog-B3lILV04.es.js.map} +1 -1
- package/dist/chunks/{dialog.title-BjZfOiGY.cjs.js → dialog.title-A4z504qq.cjs.js} +2 -2
- package/dist/chunks/{dialog.title-BjZfOiGY.cjs.js.map → dialog.title-A4z504qq.cjs.js.map} +1 -1
- package/dist/chunks/{dialog.title-8ujXI7iT.es.js → dialog.title-BV6CRPsm.es.js} +3 -3
- package/dist/chunks/{dialog.title-8ujXI7iT.es.js.map → dialog.title-BV6CRPsm.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-Clv2Jb9U.es.js → draggable-list-Ca9Fmn5s.es.js} +5 -5
- package/dist/chunks/{draggable-list-Clv2Jb9U.es.js.map → draggable-list-Ca9Fmn5s.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-BWC9cgUJ.cjs.js → draggable-list-WF8DZYUH.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-BWC9cgUJ.cjs.js.map → draggable-list-WF8DZYUH.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-CPcfw8l3.cjs.js → drawer-Cav9VbD7.cjs.js} +2 -2
- package/dist/chunks/{drawer-CPcfw8l3.cjs.js.map → drawer-Cav9VbD7.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-CGkXe_9E.es.js → drawer-DOasWYnp.es.js} +4 -4
- package/dist/chunks/{drawer-CGkXe_9E.es.js.map → drawer-DOasWYnp.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-Cg1pKYtC.es.js → extract-style-props-CHpzYLGm.es.js} +2 -2
- package/dist/chunks/{extract-style-props-Cg1pKYtC.es.js.map → extract-style-props-CHpzYLGm.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-Dk3fpLyQ.cjs.js → extract-style-props-KhpIPABw.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-Dk3fpLyQ.cjs.js.map → extract-style-props-KhpIPABw.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-CSEMgt-e.es.js → form-field-AU_H4IwN.es.js} +2 -2
- package/dist/chunks/{form-field-CSEMgt-e.es.js.map → form-field-AU_H4IwN.es.js.map} +1 -1
- package/dist/chunks/{form-field-BeYe6Fae.cjs.js → form-field-B4SvBs6l.cjs.js} +2 -2
- package/dist/chunks/{form-field-BeYe6Fae.cjs.js.map → form-field-B4SvBs6l.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-DBJF6Y-T.cjs.js → icon-button-By5kCd-5.cjs.js} +2 -2
- package/dist/chunks/{icon-button-DBJF6Y-T.cjs.js.map → icon-button-By5kCd-5.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-DR2FLlZ4.es.js → icon-button-CdIIe5w1.es.js} +2 -2
- package/dist/chunks/{icon-button-DR2FLlZ4.es.js.map → icon-button-CdIIe5w1.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-Cqb4cQyZ.cjs.js → icon-toggle-button-B5RGHtU0.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-Cqb4cQyZ.cjs.js.map → icon-toggle-button-B5RGHtU0.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BM45U1ea.es.js → icon-toggle-button-JEjHG0sc.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BM45U1ea.es.js.map → icon-toggle-button-JEjHG0sc.es.js.map} +1 -1
- package/dist/chunks/{index-CRFg4Mhx.cjs.js → index-D_vaB826.cjs.js} +2 -2
- package/dist/chunks/index-D_vaB826.cjs.js.map +1 -0
- package/dist/chunks/{index-D6WdXWQX.es.js → index-DgmyBTGN.es.js} +26 -31
- package/dist/chunks/index-DgmyBTGN.es.js.map +1 -0
- package/dist/chunks/{localized-field-Dn2G8N65.es.js → localized-field-BWOWbS0n.es.js} +8 -8
- package/dist/chunks/localized-field-BWOWbS0n.es.js.map +1 -0
- package/dist/chunks/{localized-field-vfjg6ZQw.cjs.js → localized-field-DYEG251P.cjs.js} +2 -2
- package/dist/chunks/localized-field-DYEG251P.cjs.js.map +1 -0
- package/dist/chunks/{menu-D9Ji3iaH.es.js → menu-KpNoPQU3.es.js} +2 -2
- package/dist/chunks/{menu-D9Ji3iaH.es.js.map → menu-KpNoPQU3.es.js.map} +1 -1
- package/dist/chunks/{menu-x3kqOUl0.cjs.js → menu-y9u1LpRz.cjs.js} +2 -2
- package/dist/chunks/{menu-x3kqOUl0.cjs.js.map → menu-y9u1LpRz.cjs.js.map} +1 -1
- package/dist/chunks/money-input-B31JK8Hy.cjs.js +2 -0
- package/dist/chunks/money-input-B31JK8Hy.cjs.js.map +1 -0
- package/dist/chunks/{money-input-CyikuiLb.es.js → money-input-B73nxLNR.es.js} +125 -126
- package/dist/chunks/money-input-B73nxLNR.es.js.map +1 -0
- package/dist/chunks/{multiline-text-input-B-iIj6LP.cjs.js → multiline-text-input-B3QkRPNx.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-B-iIj6LP.cjs.js.map → multiline-text-input-B3QkRPNx.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BGekltlt.es.js → multiline-text-input-D1fu1Eta.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-BGekltlt.es.js.map → multiline-text-input-D1fu1Eta.es.js.map} +1 -1
- package/dist/chunks/nimbus-provider-BDmq6AzA.es.js +102 -0
- package/dist/chunks/nimbus-provider-BDmq6AzA.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-WsvQ1e2w.cjs.js +2 -0
- package/dist/chunks/nimbus-provider-WsvQ1e2w.cjs.js.map +1 -0
- package/dist/chunks/{number-input-e4aNnp4Q.es.js → number-input-BNhWxDtw.es.js} +3 -3
- package/dist/chunks/{number-input-e4aNnp4Q.es.js.map → number-input-BNhWxDtw.es.js.map} +1 -1
- package/dist/chunks/{number-input-CBJ0pAwK.cjs.js → number-input-IGzwI6It.cjs.js} +2 -2
- package/dist/chunks/{number-input-CBJ0pAwK.cjs.js.map → number-input-IGzwI6It.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-BJNQAP9b.es.js → pagination-DPNu_ESN.es.js} +4 -4
- package/dist/chunks/{pagination-BJNQAP9b.es.js.map → pagination-DPNu_ESN.es.js.map} +1 -1
- package/dist/chunks/{pagination-BUau2zil.cjs.js → pagination-De4lNc8M.cjs.js} +2 -2
- package/dist/chunks/{pagination-BUau2zil.cjs.js.map → pagination-De4lNc8M.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-DgloRBJz.cjs.js → password-input-D5tZVRkW.cjs.js} +2 -2
- package/dist/chunks/{password-input-DgloRBJz.cjs.js.map → password-input-D5tZVRkW.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-CzZKl1EE.es.js → password-input-GaNFcHfS.es.js} +3 -3
- package/dist/chunks/{password-input-CzZKl1EE.es.js.map → password-input-GaNFcHfS.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-CRb4HUlh.cjs.js → progress-bar-BUuccHqU.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-CRb4HUlh.cjs.js.map → progress-bar-BUuccHqU.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-CtlTFrb-.es.js → progress-bar-DSdNuSmY.es.js} +2 -2
- package/dist/chunks/{progress-bar-CtlTFrb-.es.js.map → progress-bar-DSdNuSmY.es.js.map} +1 -1
- package/dist/chunks/{radio-input-CJjKZ56j.cjs.js → radio-input-B8DC66Dq.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CJjKZ56j.cjs.js.map → radio-input-B8DC66Dq.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-COzb7v5p.es.js → radio-input-BmqKw3a4.es.js} +3 -3
- package/dist/chunks/{radio-input-COzb7v5p.es.js.map → radio-input-BmqKw3a4.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-DGUcaTaL.cjs.js → range-calendar-DsSZfcRh.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-DGUcaTaL.cjs.js.map → range-calendar-DsSZfcRh.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-DWiND2-r.es.js → range-calendar-jzcPhhWP.es.js} +4 -4
- package/dist/chunks/{range-calendar-DWiND2-r.es.js.map → range-calendar-jzcPhhWP.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-bAQaG3hR.es.js → rich-text-input-C0MorZCK.es.js} +8 -8
- package/dist/chunks/{rich-text-input-bAQaG3hR.es.js.map → rich-text-input-C0MorZCK.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-DXl_zylc.cjs.js → rich-text-input-OlfGBRSb.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-DXl_zylc.cjs.js.map → rich-text-input-OlfGBRSb.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-C8rggS1W.es.js → scoped-search-input-COwEJrBr.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-C8rggS1W.es.js.map → scoped-search-input-COwEJrBr.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-CL35u_qe.cjs.js → scoped-search-input-CzlCQxEr.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-CL35u_qe.cjs.js.map → scoped-search-input-CzlCQxEr.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-DCRuc8TX.es.js → search-input-CNWJt3sr.es.js} +4 -4
- package/dist/chunks/{search-input-DCRuc8TX.es.js.map → search-input-CNWJt3sr.es.js.map} +1 -1
- package/dist/chunks/{search-input-Dg6bANcB.cjs.js → search-input-Dny-ZfkH.cjs.js} +2 -2
- package/dist/chunks/{search-input-Dg6bANcB.cjs.js.map → search-input-Dny-ZfkH.cjs.js.map} +1 -1
- package/dist/chunks/{select-8M7Fx0Aj.es.js → select-BX8CxAIO.es.js} +4 -4
- package/dist/chunks/{select-8M7Fx0Aj.es.js.map → select-BX8CxAIO.es.js.map} +1 -1
- package/dist/chunks/{select-BmeHhM6P.cjs.js → select-eR7J0RJa.cjs.js} +2 -2
- package/dist/chunks/{select-BmeHhM6P.cjs.js.map → select-eR7J0RJa.cjs.js.map} +1 -1
- package/dist/chunks/{separator-C62eVjZN.cjs.js → separator-BjczrqRN.cjs.js} +2 -2
- package/dist/chunks/{separator-C62eVjZN.cjs.js.map → separator-BjczrqRN.cjs.js.map} +1 -1
- package/dist/chunks/{separator-BWeCBIxn.es.js → separator-IU-dtU00.es.js} +3 -3
- package/dist/chunks/{separator-BWeCBIxn.es.js.map → separator-IU-dtU00.es.js.map} +1 -1
- package/dist/chunks/{split-button-D1m7jEzh.es.js → split-button-D2jrXscW.es.js} +4 -4
- package/dist/chunks/{split-button-D1m7jEzh.es.js.map → split-button-D2jrXscW.es.js.map} +1 -1
- package/dist/chunks/{split-button-DCQPz8zr.cjs.js → split-button-QsjuZo85.cjs.js} +2 -2
- package/dist/chunks/{split-button-DCQPz8zr.cjs.js.map → split-button-QsjuZo85.cjs.js.map} +1 -1
- package/dist/chunks/{switch-DCARSVF8.cjs.js → switch-BgdV_tH-.cjs.js} +2 -2
- package/dist/chunks/{switch-DCARSVF8.cjs.js.map → switch-BgdV_tH-.cjs.js.map} +1 -1
- package/dist/chunks/{switch-D_3c0qqj.es.js → switch-CysGpMQp.es.js} +3 -3
- package/dist/chunks/{switch-D_3c0qqj.es.js.map → switch-CysGpMQp.es.js.map} +1 -1
- package/dist/chunks/{tabs-Bu_-Hx4D.es.js → tabs-BL_wffCN.es.js} +2 -2
- package/dist/chunks/{tabs-Bu_-Hx4D.es.js.map → tabs-BL_wffCN.es.js.map} +1 -1
- package/dist/chunks/{tabs-DfiWctDh.cjs.js → tabs-DPmsaPOs.cjs.js} +2 -2
- package/dist/chunks/{tabs-DfiWctDh.cjs.js.map → tabs-DPmsaPOs.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-CwiG07wb.cjs.js → tag-group-nMUPcRkc.cjs.js} +2 -2
- package/dist/chunks/{tag-group-CwiG07wb.cjs.js.map → tag-group-nMUPcRkc.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-M-514iVh.es.js → tag-group-pkBXTUxP.es.js} +2 -2
- package/dist/chunks/{tag-group-M-514iVh.es.js.map → tag-group-pkBXTUxP.es.js.map} +1 -1
- package/dist/chunks/{text-input-EVB84mKj.cjs.js → text-input-Dp9hDxgz.cjs.js} +2 -2
- package/dist/chunks/{text-input-EVB84mKj.cjs.js.map → text-input-Dp9hDxgz.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-DkOL-5_E.es.js → text-input-lnixyU8q.es.js} +3 -3
- package/dist/chunks/{text-input-DkOL-5_E.es.js.map → text-input-lnixyU8q.es.js.map} +1 -1
- package/dist/chunks/{time-input-DQidALjG.es.js → time-input-BDWTODNy.es.js} +3 -3
- package/dist/chunks/{time-input-DQidALjG.es.js.map → time-input-BDWTODNy.es.js.map} +1 -1
- package/dist/chunks/{time-input-B9UjERFQ.cjs.js → time-input-BhQq-KSp.cjs.js} +2 -2
- package/dist/chunks/{time-input-B9UjERFQ.cjs.js.map → time-input-BhQq-KSp.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-DVBPrGUn.cjs.js → toggle-button-BeLLjgUA.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-DVBPrGUn.cjs.js.map → toggle-button-BeLLjgUA.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-DRRMHCoV.es.js → toggle-button-rKQHaIfc.es.js} +3 -3
- package/dist/chunks/{toggle-button-DRRMHCoV.es.js.map → toggle-button-rKQHaIfc.es.js.map} +1 -1
- package/dist/chunks/{toolbar-JF64ZgP6.es.js → toolbar-B_QVHYyc.es.js} +3 -3
- package/dist/chunks/{toolbar-JF64ZgP6.es.js.map → toolbar-B_QVHYyc.es.js.map} +1 -1
- package/dist/chunks/{toolbar-BkLgUhIG.cjs.js → toolbar-BpOLF75D.cjs.js} +2 -2
- package/dist/chunks/{toolbar-BkLgUhIG.cjs.js.map → toolbar-BpOLF75D.cjs.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/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/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +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 +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- 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/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/localized-field/localized-field.d.ts +4 -4
- package/dist/components/localized-field/localized-field.types.d.ts +9 -9
- package/dist/components/localized-field/utils/localized-field.utils.d.ts +6 -6
- package/dist/components/localized-field/utils/test-data.d.ts +2 -2
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input/index.d.ts +1 -1
- package/dist/components/money-input/money-input.d.ts +6 -6
- package/dist/components/money-input/money-input.recipe.d.ts +2 -6
- package/dist/components/money-input/money-input.types.d.ts +9 -9
- package/dist/components/money-input/utils/parsing-utilities.d.ts +10 -10
- package/dist/components/money-input/utils/static-methods.d.ts +5 -5
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.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/index.d.ts +1 -0
- package/dist/components/nimbus-provider/nimbus-provider.d.ts +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +3 -1
- package/dist/components/nimbus-provider.es.js.map +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.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.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +170 -168
- package/dist/index.es.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +2 -6
- package/package.json +5 -5
- package/dist/chunks/index-CRFg4Mhx.cjs.js.map +0 -1
- package/dist/chunks/index-D6WdXWQX.es.js.map +0 -1
- package/dist/chunks/localized-field-Dn2G8N65.es.js.map +0 -1
- package/dist/chunks/localized-field-vfjg6ZQw.cjs.js.map +0 -1
- package/dist/chunks/money-input-CyikuiLb.es.js.map +0 -1
- package/dist/chunks/money-input-DzmW3hCJ.cjs.js +0 -2
- package/dist/chunks/money-input-DzmW3hCJ.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-Bah2NJ5s.cjs.js +0 -2
- package/dist/chunks/nimbus-provider-Bah2NJ5s.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-Dvg5Fzeq.es.js +0 -101
- package/dist/chunks/nimbus-provider-Dvg5Fzeq.es.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-BeYe6Fae.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":"oVA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,EC5BK,CAAE,aAAAC,EAAc,YAAAC,CAAA,EAAgBC,0BA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AUQ,CAAU,CAAC,EAElB,IACT,ECfagC,EAAuB,CAAC,CACnC,SAAAxC,EACA,GAAGyC,CACL,IAAqC,CACnC,KAAM,CAAE,WAAAjC,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,YAAanB,EACb,qBAAAyC,CAAA,EACA,EAGK,IAAM,CACXjC,EAAYW,IAAiB,CAC3B,GAAGA,EACH,YAAa,KACb,qBAAsB,MAAA,EACtB,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,ECxBakC,EAAiB,CAAC,CAC7B,SAAA1C,EACA,GAAG2C,CACL,IAA+B,CAC7B,KAAM,CAAE,WAAAnC,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAOnB,EACP,eAAA2C,CAAA,EACA,EAGK,IAAM,CACXnC,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAO,KACP,eAAgB,MAAA,EAChB,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,EClBaoC,EAAmB,CAAC,CAAE,SAAA5C,KAAsC,CACvE,KAAM,CAAE,WAAAQ,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAMnB,CAAA,EACN,EAGK,IAAM,CACXQ,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAM,IAAA,EACN,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,ECtBaqC,EAAY,CACvB,KAAMpD,EACN,MAAO0C,EACP,MAAOG,EACP,YAAaE,EACb,MAAOE,EACP,QAASE,CACX"}
|
|
1
|
+
{"version":3,"file":"form-field-B4SvBs6l.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":"oVA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,EC5BK,CAAE,aAAAC,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,WACP,CAAC,EAGYC,EAAoBH,EAG/B,MAAO,MAAM,EAGFI,EAAqBH,EAGhC,MAAO,OAAO,EAGHI,EAAqBJ,EAGhC,MAAO,OAAO,EAGHK,EAA2BL,EAGtC,MAAO,aAAa,EAGTM,EAAqBN,EAGhC,MAAO,OAAO,EAGHO,EAAuBP,EAGlC,MAAO,SAAS,ECbLQ,EAAgB,SAAuB,CAClD,IA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C,EAAYW,IAAiB,CAC3B,GAAGA,EACH,YAAa,KACb,qBAAsB,MAAA,EACtB,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,ECxBakC,EAAiB,CAAC,CAC7B,SAAA1C,EACA,GAAG2C,CACL,IAA+B,CAC7B,KAAM,CAAE,WAAAnC,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAOnB,EACP,eAAA2C,CAAA,EACA,EAGK,IAAM,CACXnC,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAO,KACP,eAAgB,MAAA,EAChB,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,EClBaoC,EAAmB,CAAC,CAAE,SAAA5C,KAAsC,CACvE,KAAM,CAAE,WAAAQ,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAMnB,CAAA,EACN,EAGK,IAAM,CACXQ,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAM,IAAA,EACN,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,ECtBaqC,EAAY,CACvB,KAAMpD,EACN,MAAO0C,EACP,MAAOG,EACP,YAAaE,EACb,MAAOE,EACP,QAASE,CACX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-4v2MxSjQ.cjs.js"),d=require("./button-
|
|
2
|
-
//# sourceMappingURL=icon-button-
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-4v2MxSjQ.cjs.js"),d=require("./button-DBJWE37u.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=a.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(d.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
|
|
2
|
+
//# sourceMappingURL=icon-button-By5kCd-5.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-By5kCd-5.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
|
|
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as n } from "react";
|
|
3
3
|
import { mergeRefs as p } from "@chakra-ui/react";
|
|
4
4
|
import { $ as a } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
5
|
-
import { B as c } from "./button-
|
|
5
|
+
import { B as c } from "./button-DPyMVftu.es.js";
|
|
6
6
|
const i = (o) => {
|
|
7
7
|
const { children: r, ref: t, ...e } = o, f = n(null), s = a(p(f, t));
|
|
8
8
|
return /* @__PURE__ */ m(c, { px: 0, py: 0, ...e, ref: s, children: r });
|
|
@@ -11,4 +11,4 @@ i.displayName = "IconButton";
|
|
|
11
11
|
export {
|
|
12
12
|
i as I
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=icon-button-
|
|
14
|
+
//# sourceMappingURL=icon-button-CdIIe5w1.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-CdIIe5w1.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM,EAAE,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAAcH,GAGhDI,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUF,CAAY,CAAC;AAE1D,SACE,gBAAAO,EAACC,KAAO,IAAI,GAAG,IAAI,GAAI,GAAGP,GAAW,KAAAG,GAClC,UAAAL,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
|
package/dist/chunks/{icon-toggle-button-Cqb4cQyZ.cjs.js → icon-toggle-button-B5RGHtU0.cjs.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-
|
|
2
|
-
//# sourceMappingURL=icon-toggle-button-
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-BeLLjgUA.cjs.js"),t=({"aria-label":o,children:e,ref:n,...g})=>l.jsx(u.ToggleButton,{ref:n,"aria-label":o,px:0,py:0,...g,children:e});t.displayName="IconToggleButton";exports.IconToggleButton=t;
|
|
2
|
+
//# sourceMappingURL=icon-toggle-button-B5RGHtU0.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-B5RGHtU0.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { T as l } from "./toggle-button-
|
|
2
|
+
import { T as l } from "./toggle-button-rKQHaIfc.es.js";
|
|
3
3
|
const n = ({
|
|
4
4
|
"aria-label": o,
|
|
5
5
|
children: t,
|
|
@@ -10,4 +10,4 @@ n.displayName = "IconToggleButton";
|
|
|
10
10
|
export {
|
|
11
11
|
n as I
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=icon-toggle-button-
|
|
13
|
+
//# sourceMappingURL=icon-toggle-button-JEjHG0sc.es.js.map
|
package/dist/chunks/{icon-toggle-button-BM45U1ea.es.js.map → icon-toggle-button-JEjHG0sc.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-JEjHG0sc.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"label input"
|
|
19
19
|
"description description"
|
|
20
20
|
"error error"
|
|
21
|
-
`,pe=e.defineSlotRecipe({slots:["root","label","infoDialog","fieldsContainer","description","error","toggleButtonContainer","localeFieldRoot","localeFieldLabel","localeFieldInput","localeFieldDescription","localeFieldError"],className:"nimbus-localized-field",base:{root:{display:"grid",width:"auto",gridTemplateAreas:de,gap:"100"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--localized-field-font-size)",lineHeight:"var(--localized-field-line-height)",position:"relative"},infoDialog:{bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"{colors.neutral.8} {colors.neutral.3}",focusRing:"outside"},fieldsContainer:{gridArea:"fields",display:"flex",flexDirection:"column",gap:"200",'&[data-expanded="true"]':{"& > *:not(:first-of-type)":{animationName:"slide-from-top",animationDuration:"slow",animationTimingFunction:"ease-in-smooth"}}},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--localized-field-font-size)",lineHeight:"var(--localized-field-line-height)",display:"flex",gap:"100",alignItems:"center"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--localized-field-font-size)",lineHeight:"var(--localized-field-line-height)",display:"flex",gap:"100",alignItems:"center"},toggleButtonContainer:{gridArea:"toggle"},localeFieldRoot:{gap:0,gridTemplateAreas:ce,"&:has(.nimbus-localized-field__localeFieldInput:focus-within)":{"& .nimbus-localized-field__localeFieldLabel":{outlineWidth:"var(--focus-ring-width)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style)",outlineOffset:"var(--focus-ring-offset)"}}},localeFieldLabel:{display:"flex",borderLeftRadius:"200",backgroundColor:"neutral.1",boxShadow:"inset 0 0 0 {sizes.25} {colors.neutral.7}",clipPath:"inset(-4px -1px -4px -4px)",marginInlineEnd:"-25",paddingInline:"400",alignItems:"center","&[data-disabled='true']":{opacity:"0.5"}},localeFieldInput:{borderLeftRadius:0,clipPath:"inset(-4px -4px -4px -1px)"}},variants:{size:{md:{root:{"--localized-field-font-size":"fontSizes.350","--localized-field-line-height":"lineHeights.500"}},sm:{root:{"--localized-field-font-size":"fontSizes.300","--localized-field-line-height":"lineHeights.450"}}},type:{text:{},multiLine:{},money:{},richText:{}}}}),v=t.defineSlotRecipe({slots:["root","container","currencySelect","currencyLabel","amountInput","badge"],className:"nimbus-money-input",base:{root:{
|
|
21
|
+
`,pe=e.defineSlotRecipe({slots:["root","label","infoDialog","fieldsContainer","description","error","toggleButtonContainer","localeFieldRoot","localeFieldLabel","localeFieldInput","localeFieldDescription","localeFieldError"],className:"nimbus-localized-field",base:{root:{display:"grid",width:"auto",gridTemplateAreas:de,gap:"100"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--localized-field-font-size)",lineHeight:"var(--localized-field-line-height)",position:"relative"},infoDialog:{bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"{colors.neutral.8} {colors.neutral.3}",focusRing:"outside"},fieldsContainer:{gridArea:"fields",display:"flex",flexDirection:"column",gap:"200",'&[data-expanded="true"]':{"& > *:not(:first-of-type)":{animationName:"slide-from-top",animationDuration:"slow",animationTimingFunction:"ease-in-smooth"}}},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--localized-field-font-size)",lineHeight:"var(--localized-field-line-height)",display:"flex",gap:"100",alignItems:"center"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--localized-field-font-size)",lineHeight:"var(--localized-field-line-height)",display:"flex",gap:"100",alignItems:"center"},toggleButtonContainer:{gridArea:"toggle"},localeFieldRoot:{gap:0,gridTemplateAreas:ce,"&:has(.nimbus-localized-field__localeFieldInput:focus-within)":{"& .nimbus-localized-field__localeFieldLabel":{outlineWidth:"var(--focus-ring-width)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style)",outlineOffset:"var(--focus-ring-offset)"}}},localeFieldLabel:{display:"flex",borderLeftRadius:"200",backgroundColor:"neutral.1",boxShadow:"inset 0 0 0 {sizes.25} {colors.neutral.7}",clipPath:"inset(-4px -1px -4px -4px)",marginInlineEnd:"-25",paddingInline:"400",alignItems:"center","&[data-disabled='true']":{opacity:"0.5"}},localeFieldInput:{borderLeftRadius:0,clipPath:"inset(-4px -4px -4px -1px)"}},variants:{size:{md:{root:{"--localized-field-font-size":"fontSizes.350","--localized-field-line-height":"lineHeights.500"}},sm:{root:{"--localized-field-font-size":"fontSizes.300","--localized-field-line-height":"lineHeights.450"}}},type:{text:{},multiLine:{},money:{},richText:{}}}}),v=t.defineSlotRecipe({slots:["root","container","currencySelect","currencyLabel","amountInput","badge"],className:"nimbus-money-input",base:{root:{position:"relative",fontFamily:"inherit","& .nimbus-select__trigger":{borderRightRadius:"0",boxShadow:"inset 0 1px 0 0 {colors.neutral.7}, inset 0 -1px 0 0 {colors.neutral.7}, inset 1px 0 0 0 {colors.neutral.7}"},"&:has(.nimbus-money-input__container:focus-within)":{"& .nimbus-money-input__currencyLabel":{outlineWidth:"var(--focus-ring-width)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style)",outlineOffset:"var(--focus-ring-offset)",clipPath:"inset(-4px -1px -4px -4px)"},"& .nimbus-money-input__amountInput":{clipPath:"inset(-4px -4px -4px -1px)"}}},container:{display:"inline-flex",width:"full",alignItems:"stretch",position:"relative"},currencySelect:{_focusWithin:{zIndex:2}},currencyLabel:{color:"neutral.11",fontWeight:"500",display:"flex",height:"full",borderLeftRadius:"200",backgroundColor:"neutral.1",boxShadow:"inset 0 1px 0 0 {colors.neutral.7}, inset 0 -1px 0 0 {colors.neutral.7}, inset 1px 0 0 0 {colors.neutral.7}",paddingInline:"400",alignItems:"center","&[data-disabled='true']":{opacity:"0.5"}},amountInput:{flex:"1",borderLeftRadius:"0",_focusWithin:{zIndex:2}},badge:{position:"absolute",top:"0",right:"0",height:"full",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"spacing.25"}},variants:{size:{sm:{root:{fontSize:"fontSize.20",minWidth:"280px"},currencySelect:{padding:"0 spacing.20"},amountInput:{paddingRight:"spacing.30"},currencyLabel:{fontSize:"300",lineHeight:"450"}},md:{root:{fontSize:"fontSize.30",minWidth:"360px"},currencySelect:{padding:"0 spacing.25"},amountInput:{paddingRight:"spacing.40"},currencyLabel:{fontSize:"350",lineHeight:"500"}}}},defaultVariants:{size:"md"}}),x=e.defineSlotRecipe({className:"nimbus-multiline-text-input",slots:["root","leadingElement","textarea"],base:{root:{"--input-border-radius":"sizes.200",display:"inline-flex",overflowY:"auto",resize:"vertical",borderRadius:"var(--input-border-radius)",colorPalette:"neutral",bg:"transparent",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_focusWithin:{layerStyle:"focusRing"},focusVisibleRing:"outside",focusRing:"outside",fontFamily:"inherit","&::-webkit-resizer":{backgroundImage:`url("data:image/svg+xml,${encodeURIComponent(`
|
|
22
22
|
<svg width="8" height="8" viewBox="0 0 8 8" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
23
23
|
<mask id="mask0_4610_25787" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="-1" y="-1" width="9" height="9">
|
|
24
24
|
<rect width="1.03391" height="4.13563" transform="matrix(0.716449 0.69764 -0.716449 0.69764 6.92578 4.05362)" fill="currentColor"/>
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
`)}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"200 200",width:"400",height:"400"},"&[data-disabled='true']":{layerStyle:"disabled",bg:"neutral.3"},"&[data-invalid='true']":{"--border-width":"sizes.50","--border-color":"colors.critical.7",color:"critical.11"}},leadingElement:{display:"flex",color:"neutral.11"},textarea:{flexGrow:1,outline:"none",resize:"none",background:"transparent",borderTopRightRadius:"200",borderBottomRightRadius:"200",_placeholder:{opacity:.5,color:"currentColor"},"&[data-disabled='true']":{cursor:"not-allowed"}}},variants:{size:{sm:{root:{minH:"800",textStyle:"sm",gap:"100",pl:"300"},textarea:{pr:"300",py:"100"},leadingElement:{pt:"200","& svg":{boxSize:"400"}}},md:{root:{minH:"1000",textStyle:"md",gap:"200",pl:"400"},textarea:{py:"200",pr:"400"},leadingElement:{pt:"200","& svg":{mt:"50",boxSize:"500"}}}},variant:{solid:{root:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}}},ghost:{root:{_hover:{backgroundColor:"primary.2"}}}}},defaultVariants:{size:"md",variant:"solid"}}),y=e.defineSlotRecipe({className:"nimbus-number-input",slots:["root","leadingElement","trailingElement","input","incrementButton","decrementButton"],base:{root:{display:"inline-flex",position:"relative",borderRadius:"200",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_focusWithin:{layerStyle:"focusRing"},'&[data-disabled="true"]':{layerStyle:"disabled",bg:"neutral.3"},"&[data-invalid='true']":{"--border-width":"sizes.50","--border-color":"colors.critical.7",color:"critical.11"}},leadingElement:{overflow:"hidden",display:"flex",alignItems:"center",color:"neutral.11"},trailingElement:{overflow:"hidden",display:"flex",alignItems:"center",color:"neutral.11"},input:{display:"flex",flexGrow:1,flexShrink:1,borderRadius:"inherit",colorPalette:"neutral",bg:"transparent",outline:"none",appearance:"textfield",_placeholder:{opacity:.5,color:"currentColor"},"&[data-disabled='true']":{cursor:"not-allowed"}},incrementButton:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",w:600,h:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"button",bg:"transparent",_active:{bg:"neutral.4"},"&[data-disabled='true']":{cursor:"not-allowed"},_icon:{fill:"primary.9"},borderTopRightRadius:"200","&[data-invalid='true']":{"--border-color":"colors.critical.7"}},decrementButton:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",w:600,h:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"button",bg:"transparent",_active:{bg:"neutral.4"},"&[data-disabled='true']":{cursor:"not-allowed"},_icon:{color:"primary.9"},borderBottomRightRadius:"200","&[data-invalid='true']":{"--border-color":"colors.critical.7"}}},variants:{size:{sm:{root:{pl:"300",pr:"900",gap:"100"},input:{h:"800",textStyle:"sm"},leadingElement:{"& > svg":{boxSize:"400"}},trailingElement:{"& > svg":{boxSize:"400"}}},md:{root:{pl:"400",pr:"1000",gap:"200"},input:{h:"1000",textStyle:"md"},leadingElement:{"& > svg":{boxSize:"500"}},trailingElement:{"& > svg":{boxSize:"500"}}}},variant:{solid:{root:{_hover:{backgroundColor:"primary.2"},"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1"},incrementButton:{"&[data-invalid='true']":{borderTop:"2px solid var(--border-color)",borderRight:"2px solid var(--border-color)"},borderTop:"var(--border-width) solid var(--border-color)",borderRight:"var(--border-width) solid var(--border-color)",borderLeft:"var(--border-width) solid var(--border-color)",boxShadow:"inset 0 -0.5px 0 0 var(--border-color)",_hover:{backgroundColor:"primaryAlpha.4"}},decrementButton:{"&[data-invalid='true']":{borderBottom:"2px solid var(--border-color)",borderRight:"2px solid var(--border-color)"},borderBottom:"var(--border-width) solid var(--border-color)",borderRight:"var(--border-width) solid var(--border-color)",borderLeft:"var(--border-width) solid var(--border-color)",boxShadow:"inset 0 0.5px 0 0 var(--border-color)",_hover:{backgroundColor:"primaryAlpha.4"}}},ghost:{root:{_hover:{backgroundColor:"primary.2"}},incrementButton:{"&[data-invalid='true']":{borderTop:"2px solid var(--border-color)",borderRight:"2px solid var(--border-color)"},_hover:{backgroundColor:"primaryAlpha.4"}},decrementButton:{"&[data-invalid='true']":{borderBottom:"2px solid var(--border-color)",borderRight:"2px solid var(--border-color)"},_hover:{backgroundColor:"primaryAlpha.4"}}}}},defaultVariants:{size:"md",variant:"solid"}}),w=e.defineSlotRecipe({slots:["root","header","grids","monthTitle","grid","gridHeader","headerCell","gridBody","bodyCell"],className:"nimbus-range-calendar",base:{root:{display:"inline-block",maxWidth:"100%"},header:{height:"1200",p:"200",mb:"300",borderBottom:"solid-25",borderColor:"neutral.3"},grids:{display:"flex",flexWrap:"wrap",gap:"800",mx:"200",maxWidth:"full"},monthTitle:{textAlign:"center",fontSize:"400",fontWeight:"600",color:"neutral.11",mb:"300",px:"200"},grid:{w:"full",minW:"fit-content",flex:"1 1 auto"},gridHeader:{},headerCell:{p:"200",pb:"300",textAlign:"center",color:"neutral.9",fontSize:"300",lineHeight:"350",fontWeight:"500"},gridBody:{},bodyCell:{cursor:"pointer",p:"200",minW:"1400",fontSize:"350",lineHeight:"500",fontWeight:"400",textAlign:"center",color:"neutral.12",display:"flex",alignItems:"center",justifyContent:"center",mb:"200",focusRing:"outside","&[data-today=true]":{bg:"neutral.3",borderRadius:"200"},"&[data-hovered='true'], &[data-focused='true']":{bg:"primary.3",borderRadius:"200"},"&[data-selected='true']":{bg:"primary.3",borderRadius:"0"},"[role='gridcell']:first-child &":{borderLeftRadius:"200"},"[role='gridcell']:last-child &":{borderRightRadius:"200"},"&[data-selection-start='true'], &[data-selection-end=true]":{bg:"primary.9",color:"primary.contrast"},"&[data-selection-start='true']":{borderLeftRadius:"200"},"&[data-selection-end=true]":{borderRightRadius:"200"},"&[data-selection-end=true]&[data-selection-start='true']":{borderRadius:"200"},"&[aria-disabled=true]":{layerStyle:"disabled"}}}}),S=t.defineSlotRecipe({slots:["root","toolbar","editable"],className:"nimbus-rich-text-input",base:{root:{display:"flex",flexDirection:"column",position:"relative",width:"full",borderRadius:"200",borderWidth:"{sizes.25}",colorPalette:"slate",borderColor:"colorPalette.7",backgroundColor:"colorPalette.contrast",_focusWithin:{layerStyle:"focusRing"},"&[data-invalid='true']":{borderWidth:"{sizes.50}",borderColor:"critical.7"}},toolbar:{boxShadow:"1","[data-disabled='true'] &":{opacity:"0.5"}},editable:{padding:"400",minHeight:"inherit",outline:"none",color:"colorPalette.12","[data-disabled='true'] &":{cursor:"not-allowed",opacity:"0.5"},"& [data-slate-placeholder]":{opacity:"0.5!"},"& p":{textStyle:"md",fontWeight:"500"},"& h1":{textStyle:"2xl",fontWeight:"500"},"& h2":{textStyle:"xl",fontWeight:"500"},"& h3":{textStyle:"lg",fontWeight:"500"},"& h4":{textStyle:"md",fontWeight:"500"},"& h5":{textStyle:"xs",fontWeight:"500"},"& blockquote":{textStyle:"md",fontWeight:"400",borderLeftWidth:"{sizes.100}",paddingLeft:"400"},"& ul":{paddingLeft:"600",listStyleType:"disc"},"& ol":{paddingLeft:"600",listStyleType:"decimal"},"& code":{padding:"100",fontFamily:"mono"},"& pre":{padding:"300",borderRadius:"200",overflow:"auto","& code":{padding:"0"}},"& a":{color:"primary.11",textDecoration:"underline",cursor:"pointer",_hover:{textDecoration:"none"}},"& strong":{fontWeight:"700"},"& em":{fontStyle:"italic"},"& u":{textDecoration:"underline"},"& del":{textDecoration:"line-through"},"& sup":{fontSize:"75%",verticalAlign:"super",lineHeight:"0"},"& sub":{fontSize:"75%",verticalAlign:"sub",lineHeight:"0"}}},variants:{}}),z=e.defineSlotRecipe({slots:["root","container","selectWrapper","searchWrapper"],className:"nimbus-scoped-search-input",base:{root:{display:"inline-block",position:"relative",width:"100%"},container:{display:"inline-flex",alignItems:"stretch",position:"relative",width:"100%"},selectWrapper:{_focusWithin:{zIndex:2},"& .nimbus-select__trigger":{borderRightRadius:"0",boxShadow:"inset 0 1px 0 0 {colors.neutral.7}, inset 0 -1px 0 0 {colors.neutral.7}, inset 1px 0 0 0 {colors.neutral.7}"}},searchWrapper:{flex:1,_focusWithin:{zIndex:2},"& .nimbus-search-input__root":{borderLeftRadius:"0"}}},variants:{size:{sm:{},md:{}}},defaultVariants:{size:"md"}}),ue=e.defineSlotRecipe({slots:["root","empty","item","itemContent"],className:"nimbus-draggable-list",base:{root:{colorPalette:"primary",width:"2xs",display:"flex",flexDirection:"column",padding:"200",border:"{sizes.25} solid",borderColor:"colorPalette.3",borderRadius:"200",gap:"200","& >.react-aria-DropIndicator":{"&[data-drop-target]":{outline:"{sizes.25} solid {colors.primary.7}"},"&@supports not selector(:has(.react-aria-DropIndicator))":{marginBottom:"-2px"}},"&[data-empty]":{alignItems:"center",justifyContent:"center",fontStyle:"italic",color:"colorPalette.11"}},empty:{marginBlock:"auto",alignSelf:"center"},item:{borderRadius:"200",background:"colorPalette.3",display:"flex",_focus:{layerStyle:"focusRing"},"&[data-allows-dragging='true']":{cursor:"grab","&[data-dragging='true']":{cursor:"grabbing"}},"&[data-disabled]":{layerStyle:"disabled"},"& > [role='gridcell']":{display:"flex!",flex:"1 1 auto",alignItems:"center",justifyContent:"center",gap:"100",paddingInline:"200",fontSize:"350",lineHeight:"400",focusVisibleRing:"outside"}},itemContent:{flex:"1 1 auto"}},variants:{size:{sm:{},md:{item:{minH:"800"}}}},defaultVariants:{size:"md"}}),ge=e.defineSlotRecipe({className:"nimbus-progress-bar",slots:["root","track","fill","label","value"],base:{root:{position:"relative",width:"100%",display:"flex",flexDirection:"column",gap:"200"},track:{backgroundColor:"var(--progress-bar-track-bg)",borderRadius:"var(--progress-bar-radius)",overflow:"hidden",position:"relative",width:"100%",height:"var(--progress-bar-height)"},fill:{animation:"var(--progress-bar-animation)",bgImage:"linear-gradient(90deg, {colors.colorPalette.6}, {colors.colorPalette.9}, {colors.colorPalette.6})",backgroundSize:"200% 100%",height:"100%",borderRadius:"var(--progress-bar-radius)",transitionProperty:"width",transitionDuration:".3s",transitionTimingFunction:"ease-in-smooth"},label:{color:"var(--progress-bar-text-color)",fontSize:"var(--progress-bar-font-size)",lineHeight:"var(--progress-bar-line-height)"},value:{color:"var(--progress-bar-text-color)",fontSize:"var(--progress-bar-font-size)",lineHeight:"var(--progress-bar-line-height)"}},variants:{size:{"2xs":{root:{"--progress-bar-radius":"{radii.300}","--progress-bar-font-size":"{fontSizes.350}","--progress-bar-height":"{sizes.300}","--progress-bar-line-height":"{fontSizes.500}"}},md:{root:{"--progress-bar-radius":"{radii.600}","--progress-bar-font-size":"{fontSizes.400}","--progress-bar-height":"{sizes.600}","--progress-bar-line-height":"{fontSizes.600}"}}},isDynamic:{true:{fill:{"--progress-bar-animation":"gradient-shimmer 4s ease-in-out infinite","&[data-complete='true']":{"--progress-bar-animation":"none"}}}},isIndeterminate:{true:{fill:{"--progress-bar-animation":"progress-indeterminate 2s ease-in-out infinite",width:"40% !important"}}},variant:{solid:{root:{"--progress-bar-text-color":"{colors.neutral.12}","--progress-bar-track-bg":"{colors.neutralAlpha.3}"}},contrast:{root:{"--progress-bar-text-color":"{colors.colorPalette.contrast}","--progress-bar-track-bg":"{colors.colorPalette.contrast/15}"},fill:{bgImage:"linear-gradient(90deg, {colors.colorPalette.contrast/25}, {colors.colorPalette.contrast}, {colors.colorPalette.contrast/25})"}}},layout:{minimal:{label:{display:"none"},value:{display:"none"}},inline:{root:{flexDirection:"row",alignItems:"center",gap:"400"},track:{flex:1}},stacked:{root:{flexDirection:"column",gap:"200"},text:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"}}}},defaultVariants:{size:"md",colorPalette:"primary",variant:"solid",layout:"stacked"},compoundVariants:[{isDynamic:!0,isIndeterminate:!0,css:{fill:{"--progress-bar-animation":"progress-indeterminate 2s ease-in-out infinite"}}}]}),me=e.defineSlotRecipe({slots:["root","trigger","popover","content","item","section","sectionLabel","submenu"],className:"nimbus-menu",base:{root:{display:"inline-block",position:"relative"},trigger:{focusRing:"outside"},popover:{bg:"bg",borderRadius:"200",boxShadow:"5",overflow:"auto","&[data-entering]":{animationName:"fade-in, scale-in",animationDuration:"fast"},"&[data-exiting]":{animationName:"fade-out, scale-out",animationDuration:"faster"}},content:{display:"flex",flexDirection:"column",minWidth:"200px",maxHeight:"400px",overflowY:"auto",p:"200",position:"relative","&:focus":{outline:"none"},'& > [role="separator"]':{mx:"-200",my:"200",width:"calc(100% + {sizes.400})"}},item:{display:"grid",gridTemplateColumns:"auto 1fr auto auto",gridTemplateAreas:`
|
|
32
32
|
'icon label keyboard flyoutCaret'
|
|
33
33
|
'icon description keyboard flyoutCaret'`,flexDirection:"column",alignItems:"start",px:"300",py:"200",borderRadius:"200",cursor:"pointer",userSelect:"none",color:"fg",fontSize:"400",lineHeight:"500",position:"relative",textStyle:"sm",outline:0,boxShadow:"inset 0 0 0 {sizes.50} {colors.bg}","&[data-hovered='true'], &[data-focused='true']":{bg:"primary.2",outline:"none",zIndex:"1"},"&[data-focus-visible]":{focusRing:"outside"},"&[data-selected]":{bg:"primary.3"},"&[data-critical]":{color:"critical.11","&[data-hovered='true'], &[data-focused='true']":{bg:"critical.2"},"& [slot='label']":{fontWeight:"600",color:"critical.11"},"& [slot='icon']":{color:"critical.11"},"& [slot='description']":{color:"critical.11",fontWeight:"300"}},"& [slot='caretIcon']":{gridArea:"flyoutCaret",textAlign:"right",my:"auto",marginInlineStart:"400",boxSize:"500",color:"neutral.11"},"& [slot='label']":{gridArea:"label",fontWeight:"500"},"& [slot='description']":{gridArea:"description",color:"neutral.11"},"& [slot='keyboard']":{gridArea:"keyboard",color:"colorPalette.11",fontFamily:"mono",marginInlineStart:"400",my:"auto"},"& [slot='icon']":{gridArea:"icon",display:"flex",alignItems:"center",justifyContent:"center",marginInlineEnd:"300",my:"auto",flexShrink:0,color:"neutral.11",boxSize:"500"},"&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},section:{display:"flex",flexDirection:"column"},sectionLabel:{textStyle:"xs",fontWeight:"600",color:"neutral.11",px:"300",pt:"300",pb:"200",marginBottom:"100",textTransform:"uppercase",letterSpacing:"{spacing.25}"}}}),R=e.defineSlotRecipe({slots:["root","leadingElement","input","trailingElement"],className:"nimbus-text-input",base:{root:{display:"inline-flex",cursor:"text",borderRadius:"200",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",alignItems:"center",_focusWithin:{layerStyle:"focusRing"},_hover:{backgroundColor:"primary.2"},"&[data-invalid='true']":{"--border-color":"colors.critical.7","--border-width":"sizes.50",color:"critical.11"},_disabled:{bg:"neutral.3",layerStyle:"disabled"}},leadingElement:{display:"flex",alignItems:"center",color:"neutral.11"},trailingElement:{display:"flex",alignItems:"center",color:"neutral.11"},input:{cursor:"inherit",display:"block",flexGrow:1,bg:"transparent",outline:"none",fontSize:"inherit",_placeholder:{opacity:.5,color:"currentColor"}}},variants:{size:{sm:{root:{height:"800",px:"300",gap:"100",textStyle:"sm"},leadingElement:{"& > svg":{boxSize:"400"}},trailingElement:{"& > svg":{boxSize:"400"}}},md:{root:{height:"1000",px:"400",gap:"200",textStyle:"md"},leadingElement:{"& > svg":{boxSize:"500"}},trailingElement:{"& > svg":{boxSize:"500"}}}},variant:{solid:{root:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"primary.1"}},ghost:{}}},defaultVariants:{size:"md",variant:"solid"}}),be=t.defineSlotRecipe({slots:["root","buttonGroup","primaryButton","dropdownTrigger"],className:"nimbus-split-button",base:{root:{display:"inline-block",position:"relative"},buttonGroup:{display:"inline-flex",alignItems:"stretch",position:"relative",borderRadius:"200"},primaryButton:{"[data-mode='split'] &":{borderRightRadius:"0",borderRightWidth:"0"},"&:focus-visible":{zIndex:2}},dropdownTrigger:{borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftRadius:"0","&:focus-visible":{zIndex:2}}},variants:{variant:{solid:{dropdownTrigger:{borderLeftColor:"colorPalette.contrast"}},ghost:{dropdownTrigger:{borderLeftColor:"colorPalette.7"}},outline:{},subtle:{},link:{}}},defaultVariants:{variant:"solid"}}),fe=e.defineSlotRecipe({slots:["root","trigger","content"],className:"collapsibleMotion",base:{root:{},trigger:{cursor:"pointer"},content:{}}}),k=e.defineSlotRecipe({slots:["root","leadingElement","input"],className:"nimbus-search-input",base:{root:{display:"inline-flex",position:"relative",cursor:"text",borderRadius:"200",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",alignItems:"center",_focusWithin:{layerStyle:"focusRing"},_hover:{backgroundColor:"primary.2"},"&[data-invalid='true']":{"--border-color":"colors.critical.7","--border-width":"sizes.50",color:"critical.11"},_disabled:{bg:"neutral.3",layerStyle:"disabled"}},leadingElement:{display:"flex",alignItems:"center",color:"neutral.11",pointerEvents:"none"},input:{cursor:"inherit",display:"block",flexGrow:1,bg:"transparent",outline:"none",fontSize:"inherit",_placeholder:{opacity:.5,color:"currentColor"},"&::-webkit-search-cancel-button":{display:"none"},"&::-webkit-search-decoration":{display:"none"}}},variants:{size:{sm:{root:{height:"800",px:"300",gap:"100",textStyle:"sm"},leadingElement:{"& > svg":{boxSize:"400"}}},md:{root:{height:"1000",px:"400",gap:"200",textStyle:"md"},leadingElement:{"& > svg":{boxSize:"500"}}}},variant:{solid:{root:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"primary.1"}},ghost:{}}},defaultVariants:{size:"md",variant:"solid"}}),I=e.defineSlotRecipe({slots:["root","label","track","thumb"],className:"nimbus-switch",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",cursor:"pointer",borderRadius:"full","&[data-disabled='true']":{layerStyle:"disabled",pointerEvents:"none"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11",fontSize:"var(--label-font-size)"},track:{colorPalette:"neutral",focusRing:"outside",position:"relative",display:"flex",alignItems:"center",flexShrink:0,width:"var(--track-width)",height:"var(--track-height)",borderRadius:"calc(var(--track-height) / 2)",backgroundColor:"colorPalette.5",transition:"background-color 0.2s","&[data-selected='true']":{colorPalette:"primary",backgroundColor:"colorPalette.9"},"&:hover":{backgroundColor:"colorPalette.7","&[data-selected='true']":{backgroundColor:"colorPalette.10"}}},thumb:{position:"absolute",borderRadius:"full",border:"solid-50",borderColor:"primary.9",backgroundColor:"neutral.1",transition:"all 0.2s",boxSize:"var(--thumb-size)","&[data-selected='false']":{left:"0"},"&[data-selected='true']":{left:"calc(100% - var(--thumb-size))"}}},variants:{size:{sm:{track:{"--track-height":"sizes.400","--track-width":"sizes.700"},thumb:{"--thumb-size":"sizes.400"},label:{"--label-font-size":"fontSizes.350"}},md:{track:{"--track-height":"sizes.600","--track-width":"sizes.1100"},thumb:{"--thumb-size":"sizes.600"},label:{"--label-font-size":"fontSizes.400"}}}},defaultVariants:{size:"md"}}),he=e.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),ve=e.defineSlotRecipe({slots:["root","list","tab","panels","panel","trigger"],className:"nimbus-tabs",base:{root:{display:"flex",width:"100%"},list:{display:"flex",flexShrink:0},tab:{appearance:"none",background:"transparent",border:"none",color:"neutral.12",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"200",fontWeight:"500",padding:"300 400",transition:"all 150ms ease",paddingTop:"var(--tabs-padding-top)",paddingRight:"var(--tabs-padding-right)",paddingBottom:"var(--tabs-padding-bottom)",paddingLeft:"var(--tabs-padding-left)",fontSize:"var(--tabs-font-size)",overflowX:"auto",_hover:{color:"primary.11"},_selected:{color:"primary.9",borderColor:"primary.9"},_disabled:{layerStyle:"disabled"},_focusVisible:{layerStyle:"focusRing"}},panels:{flex:1,minWidth:0},panel:{_focusVisible:{layerStyle:"focusRing"}}},variants:{orientation:{horizontal:{root:{flexDirection:"column"},list:{borderBottom:"{spacing.25} {colors.neutral.6} solid"},tab:{borderBottom:"{spacing.50} solid transparent",marginRight:"-25",_selected:{borderBottomColor:"primary.9"}}},vertical:{root:{flexDirection:"row"},list:{flexDirection:"column"},tab:{justifyContent:"flex-start"}}},placement:{start:{},end:{}},size:{sm:{tab:{"--tabs-font-size":"fontSizes.300","--tabs-padding-top":"spacing.100","--tabs-padding-right":"spacing.300","--tabs-padding-bottom":"spacing.100","--tabs-padding-left":"spacing.300"}},md:{tab:{"--tabs-font-size":"fontSizes.350","--tabs-padding-top":"spacing.200","--tabs-padding-right":"spacing.400","--tabs-padding-bottom":"spacing.200","--tabs-padding-left":"spacing.400"}},lg:{tab:{"--tabs-font-size":"fontSizes.400","--tabs-padding-top":"spacing.300","--tabs-padding-right":"spacing.600","--tabs-padding-bottom":"spacing.300","--tabs-padding-left":"spacing.600"}}}},compoundVariants:[{orientation:"horizontal",placement:"start",css:{list:{justifyContent:"flex-start"}}},{orientation:"horizontal",placement:"end",css:{list:{justifyContent:"flex-end"}}},{orientation:"vertical",placement:"start",css:{root:{flexDirection:"row"},list:{borderLeft:"{spacing.25} {colors.neutral.6} solid"},tab:{borderLeft:"{spacing.50} solid transparent",marginLeft:"-25",_selected:{borderLeftColor:"primary.9"}}}},{orientation:"vertical",placement:"end",css:{list:{borderRight:"{spacing.25} {colors.neutral.6} solid"},tab:{borderRight:"{spacing.50} solid transparent",marginRight:"-25",_selected:{borderRightColor:"primary.9"}}}}],defaultVariants:{orientation:"horizontal",placement:"start",size:"md"}}),xe=e.defineSlotRecipe({slots:["root","tagList","tag"],className:"nimbus-tag-group",base:{root:{display:"flex",flexDirection:"column",gapY:"50"},tagList:{display:"flex",flexWrap:"wrap",gap:"100"},tag:{colorPalette:"primary",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",gap:"100",borderRadius:"200",background:"colorPalette.3",fontSize:"400",lineHeight:"500",focusVisibleRing:"outside","&[data-disabled='true'] &":{layerStyle:"disabled",pointerEvents:"none"},"&[data-selected='true']":{background:"colorPalette.9",color:"colorPalette.contrast",cursor:"button"},"&[aria-selected='true']":{cursor:"button"},"& [role='gridcell']":{display:"inline-flex !important",alignItems:"center",justifyContent:"space-between",gapX:"100",whiteSpace:"initial"}}},variants:{size:{sm:{tag:{minH:"600",paddingX:"200",fontSize:"350",lineHeight:"400"}},md:{tag:{minH:"800",paddingX:"200",paddingY:"100"}},lg:{tag:{minH:"1000",padding:"200"}}}},defaultVariants:{size:"lg"}}),C=e.defineSlotRecipe({className:"nimbus-time-input",slots:["root","leadingElement","trailingElement","segmentGroup","segment"],base:{root:{display:"inline-flex",borderRadius:"200",alignItems:"center",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_focusWithin:{layerStyle:"focusRing"},focusVisibleRing:"outside",focusRing:"outside","& input":{outline:"none"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"},"&[data-disabled='true']":{layerStyle:"disabled",bg:"neutral.3"}},segmentGroup:{display:"flex",flex:"1 0 auto",borderRadius:"inherit",bg:"transparent",alignItems:"center"},leadingElement:{display:"flex",alignItems:"center",color:"neutral.11"},trailingElement:{display:"flex",alignItems:"center",color:"neutral.11"},segment:{fontVariantNumeric:"tabular-nums",outline:"none",p:"50",borderRadius:"50","&:empty":{border:"1px solid"},"&[data-focused='true']":{bg:"primary.10",color:"primary.contrast"},"&[data-placeholder='true']:not([data-focused='true'])":{opacity:.5},"&[data-type='literal']&:first-of-type, &[data-type='literal']&:last-of-type":{px:"0",ml:"-50"},"&[data-type='minute']":{},"&[data-type='hour']":{},"&[data-type='dayPeriod']":{},"&[data-type='timeZoneName']":{}}},variants:{size:{sm:{root:{h:800,gap:100,px:300},segment:{textStyle:"sm"},leadingElement:{"& svg":{boxSize:"400"}},trailingElement:{"& svg":{boxSize:"400"}}},md:{root:{h:1e3,gap:200,px:400},segment:{textStyle:"md"},leadingElement:{"& svg":{boxSize:"500"}},trailingElement:{"& svg":{boxSize:"500"}}}},variant:{solid:{root:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}}},ghost:{root:{_hover:{backgroundColor:"primary.2"}}}}},defaultVariants:{size:"md",variant:"solid"}}),ye={accordion:Q,alert:ee,calendar:u,rangeCalendar:w,dateInput:m,dateRangePicker:f,datePicker:b,dataTable:oe,radioInput:d,combobox:g,progressBar:ge,menu:me,textInput:R,splitButton:be,drawer:h,tabs:ve,localizedField:pe,card:te,checkbox:s,collapsibleMotion:fe,dialog:ie,fieldErrors:re,formField:ne,list:se,moneyInput:v,multilineTextInput:x,numberInput:y,richTextInput:S,scopedSearchInput:z,draggableList:ue,searchInput:k,select:r,switch:I,table:he,taggroup:xe,timeInput:C,toggleButtonGroup:n.buttonGroupRecipe},we=t.defineTextStyles(o.themeTokens.textStyle),Se=t.defineTokens.durations(o.themeTokens.aspectRatio),ze=t.defineTokens.animations(o.themeTokens.animation),Re=t.defineTokens.blurs(o.themeTokens.blur),ke=t.defineTokens.borders(o.themeTokens.border),Ie=t.defineTokens.colors({...o.themeTokens.color["blacks-and-whites"]}),Ce=t.defineTokens.durations(o.themeTokens.duration),Pe=t.defineTokens.easings(o.themeTokens.easing),Te=t.defineTokens.fonts(o.themeTokens.fontFamily),We=t.defineTokens.fontSizes(o.themeTokens.fontSize),_e=t.defineTokens.fontWeights(o.themeTokens.fontWeight),Ne=a=>Object.keys(a).reduce((l,i)=>{const P=parseFloat(a[i].value)/100;return l[i]={value:`${P}em`},l},{}),He=t.defineTokens.letterSpacings(Ne(o.themeTokens.letterSpacing)),Be=t.defineTokens.lineHeights(o.themeTokens.lineHeight),Ee=t.defineTokens.radii(o.themeTokens.borderRadius),De=t.defineTokens.spacing(o.themeTokens.spacing),Le=t.defineTokens.sizes({...o.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),Ae=t.defineTokens.zIndex(o.themeTokens.zIndex),Ve=t.defineTokens.cursor(o.themeTokens.cursor),Fe={aspectRatios:Se,animations:ze,blurs:Re,borders:ke,colors:Ie,durations:Ce,easings:Pe,fonts:Te,fontSizes:We,fontWeights:_e,letterSpacings:He,lineHeights:Be,radii:Ee,spacing:De,sizes:Le,zIndex:Ae,cursor:Ve},je=t.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:D,conditions:E,theme:{breakpoints:B,keyframes:L,tokens:Fe,semanticTokens:K,recipes:X,slotRecipes:ye,textStyles:we,layerStyles:A,animationStyles:N}}),Ge=t.createSystem(t.defaultBaseConfig,je);exports.calendarSlotRecipe=u;exports.comboBoxSlotRecipe=g;exports.dateInputSlotRecipe=m;exports.datePickerSlotRecipe=b;exports.dateRangePickerSlotRecipe=f;exports.drawerSlotRecipe=h;exports.moneyInputRecipe=v;exports.multilineTextInputRecipe=x;exports.numberInputRecipe=y;exports.radioInputSlotRecipe=d;exports.rangeCalendarSlotRecipe=w;exports.richTextInputRecipe=S;exports.scopedSearchInputSlotRecipe=z;exports.searchInputSlotRecipe=k;exports.selectSlotRecipe=r;exports.separatorRecipe=c;exports.switchSlotRecipe=I;exports.system=Ge;exports.textInputSlotRecipe=R;exports.timeInputRecipe=C;exports.toolbarRecipe=p;
|
|
34
|
-
//# sourceMappingURL=index-
|
|
34
|
+
//# sourceMappingURL=index-D_vaB826.cjs.js.map
|