@commercetools/nimbus 0.0.0-canary-20251024125521 → 0.0.0-canary-20251024153651
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-D0ulscBP.cjs.js → accordion-BuFuByzN.cjs.js} +2 -2
- package/dist/chunks/{accordion-D0ulscBP.cjs.js.map → accordion-BuFuByzN.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-DyTTsrDh.es.js → accordion-DlzioxZU.es.js} +2 -2
- package/dist/chunks/{accordion-DyTTsrDh.es.js.map → accordion-DlzioxZU.es.js.map} +1 -1
- package/dist/chunks/{alert-CC87lB5H.cjs.js → alert-C4LDH-_2.cjs.js} +2 -2
- package/dist/chunks/{alert-CC87lB5H.cjs.js.map → alert-C4LDH-_2.cjs.js.map} +1 -1
- package/dist/chunks/{alert-DCm-d72j.es.js → alert-D6lQn_oG.es.js} +2 -2
- package/dist/chunks/{alert-DCm-d72j.es.js.map → alert-D6lQn_oG.es.js.map} +1 -1
- package/dist/chunks/{button-Ccof5UcQ.es.js → button-Do9q1MTT.es.js} +2 -2
- package/dist/chunks/{button-Ccof5UcQ.es.js.map → button-Do9q1MTT.es.js.map} +1 -1
- package/dist/chunks/{button-CA3VvD2G.cjs.js → button-Y1zC9ASp.cjs.js} +2 -2
- package/dist/chunks/{button-CA3VvD2G.cjs.js.map → button-Y1zC9ASp.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-CcA9vDZ_.es.js → calendar-BST-T9-q.es.js} +4 -4
- package/dist/chunks/{calendar-CcA9vDZ_.es.js.map → calendar-BST-T9-q.es.js.map} +1 -1
- package/dist/chunks/{calendar-Dm2LIuao.cjs.js → calendar-y_OY5Ti9.cjs.js} +2 -2
- package/dist/chunks/{calendar-Dm2LIuao.cjs.js.map → calendar-y_OY5Ti9.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-CFDf2T7S.es.js → checkbox-CAJEchsf.es.js} +2 -2
- package/dist/chunks/{checkbox-CFDf2T7S.es.js.map → checkbox-CAJEchsf.es.js.map} +1 -1
- package/dist/chunks/{checkbox-Dzerp7O0.cjs.js → checkbox-Cvk7rALA.cjs.js} +2 -2
- package/dist/chunks/{checkbox-Dzerp7O0.cjs.js.map → checkbox-Cvk7rALA.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-DmWoSXyS.es.js → collapsible-motion-CxojZk38.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-DmWoSXyS.es.js.map → collapsible-motion-CxojZk38.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-TeGpQ5f7.cjs.js → collapsible-motion-DSFm8qHI.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-TeGpQ5f7.cjs.js.map → collapsible-motion-DSFm8qHI.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-BuuiDfjq.cjs.js → combobox-B6Srbe3z.cjs.js} +2 -2
- package/dist/chunks/{combobox-BuuiDfjq.cjs.js.map → combobox-B6Srbe3z.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-C1DerhP1.es.js → combobox-CEzSqHec.es.js} +5 -5
- package/dist/chunks/{combobox-C1DerhP1.es.js.map → combobox-CEzSqHec.es.js.map} +1 -1
- package/dist/chunks/{data-table-BuGUlgQU.es.js → data-table-Q1jMQV1t.es.js} +5 -5
- package/dist/chunks/{data-table-BuGUlgQU.es.js.map → data-table-Q1jMQV1t.es.js.map} +1 -1
- package/dist/chunks/{data-table-CyNImBEZ.cjs.js → data-table-t8fG2QIb.cjs.js} +2 -2
- package/dist/chunks/{data-table-CyNImBEZ.cjs.js.map → data-table-t8fG2QIb.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-B_T7Az3-.es.js → date-input-0qwp6dtK.es.js} +3 -3
- package/dist/chunks/{date-input-B_T7Az3-.es.js.map → date-input-0qwp6dtK.es.js.map} +1 -1
- package/dist/chunks/{date-input-DTM_24C2.cjs.js → date-input-DGWF2_p-.cjs.js} +2 -2
- package/dist/chunks/{date-input-DTM_24C2.cjs.js.map → date-input-DGWF2_p-.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-DcDxaZ6Y.es.js → date-picker-DbZj9za5.es.js} +7 -7
- package/dist/chunks/{date-picker-DcDxaZ6Y.es.js.map → date-picker-DbZj9za5.es.js.map} +1 -1
- package/dist/chunks/{date-picker-BEDlqfYN.cjs.js → date-picker-c3_UdN-7.cjs.js} +2 -2
- package/dist/chunks/{date-picker-BEDlqfYN.cjs.js.map → date-picker-c3_UdN-7.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-vr0DE_0V.cjs.js → date-range-picker-BkqUh4hy.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-vr0DE_0V.cjs.js.map → date-range-picker-BkqUh4hy.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-C5G8uDlJ.es.js → date-range-picker-DnQK6m0v.es.js} +7 -7
- package/dist/chunks/{date-range-picker-C5G8uDlJ.es.js.map → date-range-picker-DnQK6m0v.es.js.map} +1 -1
- package/dist/chunks/{dialog-C9OHxEA2.es.js → dialog-CSaCT7B1.es.js} +2 -2
- package/dist/chunks/{dialog-C9OHxEA2.es.js.map → dialog-CSaCT7B1.es.js.map} +1 -1
- package/dist/chunks/{dialog-siPuFsFT.cjs.js → dialog-D67KSQ-m.cjs.js} +2 -2
- package/dist/chunks/{dialog-siPuFsFT.cjs.js.map → dialog-D67KSQ-m.cjs.js.map} +1 -1
- package/dist/chunks/{dialog.title-DSIgkWSL.cjs.js → dialog.title-B9lLsARM.cjs.js} +2 -2
- package/dist/chunks/{dialog.title-DSIgkWSL.cjs.js.map → dialog.title-B9lLsARM.cjs.js.map} +1 -1
- package/dist/chunks/{dialog.title-CGSRn_GL.es.js → dialog.title-Ca6IrsF1.es.js} +3 -3
- package/dist/chunks/{dialog.title-CGSRn_GL.es.js.map → dialog.title-Ca6IrsF1.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-5SfJXtEK.es.js → draggable-list-DlINx-bm.es.js} +5 -5
- package/dist/chunks/{draggable-list-5SfJXtEK.es.js.map → draggable-list-DlINx-bm.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-B7Qhle4N.cjs.js → draggable-list-EeNDz0R-.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-B7Qhle4N.cjs.js.map → draggable-list-EeNDz0R-.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-LRm6SeM-.es.js → drawer-CEcfCY6S.es.js} +4 -4
- package/dist/chunks/{drawer-LRm6SeM-.es.js.map → drawer-CEcfCY6S.es.js.map} +1 -1
- package/dist/chunks/{drawer-D3PNF9As.cjs.js → drawer-TBV6cxVI.cjs.js} +2 -2
- package/dist/chunks/{drawer-D3PNF9As.cjs.js.map → drawer-TBV6cxVI.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-IfUYxPJV.cjs.js → extract-style-props-0H1Ajy_s.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-IfUYxPJV.cjs.js.map → extract-style-props-0H1Ajy_s.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CZpdYA8m.es.js → extract-style-props-CTVOvGhe.es.js} +2 -2
- package/dist/chunks/{extract-style-props-CZpdYA8m.es.js.map → extract-style-props-CTVOvGhe.es.js.map} +1 -1
- package/dist/chunks/{form-field-B6PqLujT.es.js → form-field-BHz1U87W.es.js} +2 -2
- package/dist/chunks/{form-field-B6PqLujT.es.js.map → form-field-BHz1U87W.es.js.map} +1 -1
- package/dist/chunks/{form-field-B9wlWUcK.cjs.js → form-field-zi8RBlcC.cjs.js} +2 -2
- package/dist/chunks/{form-field-B9wlWUcK.cjs.js.map → form-field-zi8RBlcC.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-B28VUff9.cjs.js → icon-button-CCOl3BcF.cjs.js} +2 -2
- package/dist/chunks/{icon-button-B28VUff9.cjs.js.map → icon-button-CCOl3BcF.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-g4dZUH5O.es.js → icon-button-CKfDmEjG.es.js} +2 -2
- package/dist/chunks/{icon-button-g4dZUH5O.es.js.map → icon-button-CKfDmEjG.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DPOco2hU.cjs.js → icon-toggle-button-CpvcaoHY.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DPOco2hU.cjs.js.map → icon-toggle-button-CpvcaoHY.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DBGgxBWR.es.js → icon-toggle-button-_8HGkSiT.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DBGgxBWR.es.js.map → icon-toggle-button-_8HGkSiT.es.js.map} +1 -1
- package/dist/chunks/{index-CaeeOiBp.es.js → index-DlmEj62V.es.js} +11 -9
- package/dist/chunks/index-DlmEj62V.es.js.map +1 -0
- package/dist/chunks/{index-CxLKWOES.cjs.js → index-hUcMzBfs.cjs.js} +4 -4
- package/dist/chunks/{index-CxLKWOES.cjs.js.map → index-hUcMzBfs.cjs.js.map} +1 -1
- package/dist/chunks/{localized-field-CHV3AGQ-.es.js → localized-field-DDTDBmhu.es.js} +8 -8
- package/dist/chunks/{localized-field-CHV3AGQ-.es.js.map → localized-field-DDTDBmhu.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BffTavHV.cjs.js → localized-field-RKyDpn1l.cjs.js} +2 -2
- package/dist/chunks/{localized-field-BffTavHV.cjs.js.map → localized-field-RKyDpn1l.cjs.js.map} +1 -1
- package/dist/chunks/{menu-B5r0vnY6.es.js → menu-BgYVHme6.es.js} +2 -2
- package/dist/chunks/{menu-B5r0vnY6.es.js.map → menu-BgYVHme6.es.js.map} +1 -1
- package/dist/chunks/{menu-DK0AShnF.cjs.js → menu-CbD9H5r5.cjs.js} +2 -2
- package/dist/chunks/{menu-DK0AShnF.cjs.js.map → menu-CbD9H5r5.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-qNQdmjtx.cjs.js → money-input-4o77BLki.cjs.js} +2 -2
- package/dist/chunks/{money-input-qNQdmjtx.cjs.js.map → money-input-4o77BLki.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-Con6I5Ej.es.js → money-input-KhcM6-nN.es.js} +5 -5
- package/dist/chunks/{money-input-Con6I5Ej.es.js.map → money-input-KhcM6-nN.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-CHM3_4FO.cjs.js → multiline-text-input-CwAS7ll-.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-CHM3_4FO.cjs.js.map → multiline-text-input-CwAS7ll-.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-Cta4bg2-.es.js → multiline-text-input-DzUNwnJZ.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-Cta4bg2-.es.js.map → multiline-text-input-DzUNwnJZ.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-BtTUZMKb.es.js → nimbus-provider-4pgVp4tp.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-BtTUZMKb.es.js.map → nimbus-provider-4pgVp4tp.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DNBQi83M.cjs.js → nimbus-provider-CMXp3nO2.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-DNBQi83M.cjs.js.map → nimbus-provider-CMXp3nO2.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-BClKrTYK.es.js → number-input-BL6HQMgY.es.js} +3 -3
- package/dist/chunks/{number-input-BClKrTYK.es.js.map → number-input-BL6HQMgY.es.js.map} +1 -1
- package/dist/chunks/{number-input-BUdRuDBZ.cjs.js → number-input-C9h9uHwX.cjs.js} +2 -2
- package/dist/chunks/{number-input-BUdRuDBZ.cjs.js.map → number-input-C9h9uHwX.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-BqjffQ1Z.es.js → pagination-DtyZtvEz.es.js} +4 -4
- package/dist/chunks/{pagination-BqjffQ1Z.es.js.map → pagination-DtyZtvEz.es.js.map} +1 -1
- package/dist/chunks/{pagination-BL1y2lAx.cjs.js → pagination-kDpMrNVR.cjs.js} +2 -2
- package/dist/chunks/{pagination-BL1y2lAx.cjs.js.map → pagination-kDpMrNVR.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-Dtu0_JiV.cjs.js → password-input-CvJxldNp.cjs.js} +2 -2
- package/dist/chunks/{password-input-Dtu0_JiV.cjs.js.map → password-input-CvJxldNp.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-DoWjkkoL.es.js → password-input-ltEgpcBt.es.js} +3 -3
- package/dist/chunks/{password-input-DoWjkkoL.es.js.map → password-input-ltEgpcBt.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-oCdd2qvN.es.js → progress-bar-BV2WXVWN.es.js} +2 -2
- package/dist/chunks/{progress-bar-oCdd2qvN.es.js.map → progress-bar-BV2WXVWN.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-BwrjTuCz.cjs.js → progress-bar-Dl6EjYhS.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-BwrjTuCz.cjs.js.map → progress-bar-Dl6EjYhS.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-BYDBQDtr.cjs.js → radio-input-BlbRIHvu.cjs.js} +2 -2
- package/dist/chunks/{radio-input-BYDBQDtr.cjs.js.map → radio-input-BlbRIHvu.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-eA3VvPwV.es.js → radio-input-Celcqnqn.es.js} +3 -3
- package/dist/chunks/{radio-input-eA3VvPwV.es.js.map → radio-input-Celcqnqn.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-BnB1F7_i.es.js → range-calendar-5eLEbNtN.es.js} +4 -4
- package/dist/chunks/{range-calendar-BnB1F7_i.es.js.map → range-calendar-5eLEbNtN.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-BXMVhACe.cjs.js → range-calendar-DzpS87jK.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-BXMVhACe.cjs.js.map → range-calendar-DzpS87jK.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-D6WXRxiJ.cjs.js → rich-text-input-CHik-cF7.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-D6WXRxiJ.cjs.js.map → rich-text-input-CHik-cF7.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BebV_CaK.es.js → rich-text-input-Dn7NVXwa.es.js} +8 -8
- package/dist/chunks/{rich-text-input-BebV_CaK.es.js.map → rich-text-input-Dn7NVXwa.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-C3Vuxp-X.cjs.js → scoped-search-input-5WNwtpTQ.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-C3Vuxp-X.cjs.js.map → scoped-search-input-5WNwtpTQ.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-B5wDEKhF.es.js → scoped-search-input-CE0NBlpD.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-B5wDEKhF.es.js.map → scoped-search-input-CE0NBlpD.es.js.map} +1 -1
- package/dist/chunks/{search-input-D4ISfjCg.cjs.js → search-input-Ba1txC7x.cjs.js} +2 -2
- package/dist/chunks/{search-input-D4ISfjCg.cjs.js.map → search-input-Ba1txC7x.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-CmmBtmQf.es.js → search-input-BvUR-kV-.es.js} +4 -4
- package/dist/chunks/{search-input-CmmBtmQf.es.js.map → search-input-BvUR-kV-.es.js.map} +1 -1
- package/dist/chunks/{select-DYkIoOqo.es.js → select-77U13xRz.es.js} +4 -4
- package/dist/chunks/{select-DYkIoOqo.es.js.map → select-77U13xRz.es.js.map} +1 -1
- package/dist/chunks/{select-DLnPgZGL.cjs.js → select-CYbV47iB.cjs.js} +2 -2
- package/dist/chunks/{select-DLnPgZGL.cjs.js.map → select-CYbV47iB.cjs.js.map} +1 -1
- package/dist/chunks/{separator-Vxu9fPdc.cjs.js → separator-CZmCrqww.cjs.js} +2 -2
- package/dist/chunks/{separator-Vxu9fPdc.cjs.js.map → separator-CZmCrqww.cjs.js.map} +1 -1
- package/dist/chunks/{separator-D2824IwZ.es.js → separator-DD-zpQe_.es.js} +3 -3
- package/dist/chunks/{separator-D2824IwZ.es.js.map → separator-DD-zpQe_.es.js.map} +1 -1
- package/dist/chunks/{split-button-D4fKtZU6.cjs.js → split-button-C_Nuyoam.cjs.js} +2 -2
- package/dist/chunks/{split-button-D4fKtZU6.cjs.js.map → split-button-C_Nuyoam.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-P5JM5TIs.es.js → split-button-swrptPhp.es.js} +4 -4
- package/dist/chunks/{split-button-P5JM5TIs.es.js.map → split-button-swrptPhp.es.js.map} +1 -1
- package/dist/chunks/{switch-jX2Q8faO.es.js → switch-CWD7IBTS.es.js} +3 -3
- package/dist/chunks/{switch-jX2Q8faO.es.js.map → switch-CWD7IBTS.es.js.map} +1 -1
- package/dist/chunks/{switch-Dg4jxYqx.cjs.js → switch-xQjN85iv.cjs.js} +2 -2
- package/dist/chunks/{switch-Dg4jxYqx.cjs.js.map → switch-xQjN85iv.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-Bcs39h4J.es.js → tabs-DRbsWomF.es.js} +2 -2
- package/dist/chunks/{tabs-Bcs39h4J.es.js.map → tabs-DRbsWomF.es.js.map} +1 -1
- package/dist/chunks/{tabs-DoJOIjOb.cjs.js → tabs-tf4ACwpB.cjs.js} +2 -2
- package/dist/chunks/{tabs-DoJOIjOb.cjs.js.map → tabs-tf4ACwpB.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-k_jEVQhv.es.js → tag-group-Ct9zXgkE.es.js} +2 -2
- package/dist/chunks/{tag-group-k_jEVQhv.es.js.map → tag-group-Ct9zXgkE.es.js.map} +1 -1
- package/dist/chunks/{tag-group-Dx690E8r.cjs.js → tag-group-DS4ZjMaX.cjs.js} +2 -2
- package/dist/chunks/{tag-group-Dx690E8r.cjs.js.map → tag-group-DS4ZjMaX.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-D8mfBGrA.es.js → text-input-CYsti7a8.es.js} +3 -3
- package/dist/chunks/{text-input-D8mfBGrA.es.js.map → text-input-CYsti7a8.es.js.map} +1 -1
- package/dist/chunks/{text-input-BO570MbY.cjs.js → text-input-puPPVhs1.cjs.js} +2 -2
- package/dist/chunks/{text-input-BO570MbY.cjs.js.map → text-input-puPPVhs1.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-C8BWH8SA.cjs.js → time-input-Bu5Pk9vt.cjs.js} +2 -2
- package/dist/chunks/{time-input-C8BWH8SA.cjs.js.map → time-input-Bu5Pk9vt.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-9W94XJTY.es.js → time-input-CQND_oup.es.js} +3 -3
- package/dist/chunks/{time-input-9W94XJTY.es.js.map → time-input-CQND_oup.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-D1v2OtiG.es.js → toggle-button-B7pXF-Kq.es.js} +3 -3
- package/dist/chunks/{toggle-button-D1v2OtiG.es.js.map → toggle-button-B7pXF-Kq.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-jNsiq27z.cjs.js → toggle-button-gBCYH8cY.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-jNsiq27z.cjs.js.map → toggle-button-gBCYH8cY.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-DpBQgamV.es.js → toolbar-AJhM_2WM.es.js} +3 -3
- package/dist/chunks/{toolbar-DpBQgamV.es.js.map → toolbar-AJhM_2WM.es.js.map} +1 -1
- package/dist/chunks/{toolbar-BHdgjOW4.cjs.js → toolbar-BnFBy7d8.cjs.js} +2 -2
- package/dist/chunks/{toolbar-BHdgjOW4.cjs.js.map → toolbar-BnFBy7d8.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.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- 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.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/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.es.js +44 -44
- package/package.json +5 -5
- package/dist/chunks/index-CaeeOiBp.es.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-B9wlWUcK.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,IAAKC,EACL,GAAAC,EACA,UAAAC,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,MAAMC,EAAWC,EAAAA,OAAuB,IAAI,EACtCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUR,CAAY,CAAC,EACpD,CAACa,EAASC,CAAU,EAAIC,WAAsC,CAClE,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,KACP,UAAAb,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,CAAA,CACD,EAEKW,EAA+CC,EAAAA,QAAQ,IAAM,CACjE,M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,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-zi8RBlcC.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,IAAKC,EACL,GAAAC,EACA,UAAAC,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,MAAMC,EAAWC,EAAAA,OAAuB,IAAI,EACtCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUR,CAAY,CAAC,EACpD,CAACa,EAASC,CAAU,EAAIC,WAAsC,CAClE,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,KACP,UAAAb,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,CAAA,CACD,EAEKW,EAA+CC,EAAAA,QAAQ,IAAM,CACjE,MAAMC,EAAuC,CAC3C,GAAAjB,EACA,YAAaY,EAAQ,YACrB,aAAcA,EAAQ,KAAA,EAGxB,OAAIA,EAAQ,MACVK,EAAK,MAAQL,EAAQ,OAKrBK,EAAK,YAAY,EAAI,cACrBA,EAAK,iBAAiB,EAAI,eAGrBA,CACT,EAAG,CAACjB,EAAIY,EAAQ,YAAaA,EAAQ,MAAOA,EAAQ,KAAK,CAAC,EAEpD,CAAE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AGK,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-Y1zC9ASp.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-CCOl3BcF.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-CCOl3BcF.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-Do9q1MTT.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-CKfDmEjG.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button-
|
|
1
|
+
{"version":3,"file":"icon-button-CKfDmEjG.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-DPOco2hU.cjs.js → icon-toggle-button-CpvcaoHY.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-gBCYH8cY.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-CpvcaoHY.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-CpvcaoHY.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-B7pXF-Kq.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-_8HGkSiT.es.js.map
|
package/dist/chunks/{icon-toggle-button-DBGgxBWR.es.js.map → icon-toggle-button-_8HGkSiT.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-toggle-button-
|
|
1
|
+
{"version":3,"file":"icon-toggle-button-_8HGkSiT.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;"}
|
|
@@ -59,7 +59,7 @@ function W(i) {
|
|
|
59
59
|
i[r]?.value ? n[r] = i[r].value : n[r] = i[r];
|
|
60
60
|
return n;
|
|
61
61
|
}
|
|
62
|
-
const _ = /* @__PURE__ */ W(t.breakpoints),
|
|
62
|
+
const _ = /* @__PURE__ */ W(t.breakpoints), H = /* @__PURE__ */ f({
|
|
63
63
|
/**
|
|
64
64
|
* Maps to React Aria's open state data attributes
|
|
65
65
|
* Used for animations when a component is opening/entering
|
|
@@ -70,7 +70,7 @@ const _ = /* @__PURE__ */ W(t.breakpoints), N = /* @__PURE__ */ f({
|
|
|
70
70
|
* Used for animations when a component is closing/exiting
|
|
71
71
|
*/
|
|
72
72
|
closed: "&:is([data-exiting], [data-closed])"
|
|
73
|
-
}),
|
|
73
|
+
}), N = /* @__PURE__ */ h({
|
|
74
74
|
"*": {
|
|
75
75
|
fontFeatureSettings: '"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',
|
|
76
76
|
/**
|
|
@@ -3918,6 +3918,8 @@ const _ = /* @__PURE__ */ W(t.breakpoints), N = /* @__PURE__ */ f({
|
|
|
3918
3918
|
editable: {
|
|
3919
3919
|
padding: "400",
|
|
3920
3920
|
minHeight: "inherit",
|
|
3921
|
+
maxHeight: "inherit",
|
|
3922
|
+
overflow: "auto",
|
|
3921
3923
|
outline: "none",
|
|
3922
3924
|
color: "colorPalette.12",
|
|
3923
3925
|
// Disabled state styling for editable
|
|
@@ -5000,7 +5002,7 @@ const _ = /* @__PURE__ */ W(t.breakpoints), N = /* @__PURE__ */ f({
|
|
|
5000
5002
|
variant: "line",
|
|
5001
5003
|
size: "md"
|
|
5002
5004
|
}
|
|
5003
|
-
}),
|
|
5005
|
+
}), He = /* @__PURE__ */ e({
|
|
5004
5006
|
slots: ["root", "list", "tab", "panels", "panel", "trigger"],
|
|
5005
5007
|
className: "nimbus-tabs",
|
|
5006
5008
|
base: {
|
|
@@ -5183,7 +5185,7 @@ const _ = /* @__PURE__ */ W(t.breakpoints), N = /* @__PURE__ */ f({
|
|
|
5183
5185
|
placement: "start",
|
|
5184
5186
|
size: "md"
|
|
5185
5187
|
}
|
|
5186
|
-
}),
|
|
5188
|
+
}), Ne = /* @__PURE__ */ e({
|
|
5187
5189
|
slots: ["root", "tagList", "tag"],
|
|
5188
5190
|
// Unique class name prefix for the component
|
|
5189
5191
|
className: "nimbus-tag-group",
|
|
@@ -5438,7 +5440,7 @@ const _ = /* @__PURE__ */ W(t.breakpoints), N = /* @__PURE__ */ f({
|
|
|
5438
5440
|
textInput: Re,
|
|
5439
5441
|
splitButton: Ie,
|
|
5440
5442
|
drawer: le,
|
|
5441
|
-
tabs:
|
|
5443
|
+
tabs: He,
|
|
5442
5444
|
localizedField: be,
|
|
5443
5445
|
card: ee,
|
|
5444
5446
|
checkbox: c,
|
|
@@ -5457,7 +5459,7 @@ const _ = /* @__PURE__ */ W(t.breakpoints), N = /* @__PURE__ */ f({
|
|
|
5457
5459
|
select: l,
|
|
5458
5460
|
switch: We,
|
|
5459
5461
|
table: _e,
|
|
5460
|
-
taggroup:
|
|
5462
|
+
taggroup: Ne,
|
|
5461
5463
|
timeInput: Be,
|
|
5462
5464
|
toggleButtonGroup: I
|
|
5463
5465
|
}, Te = /* @__PURE__ */ v(
|
|
@@ -5610,8 +5612,8 @@ const _ = /* @__PURE__ */ W(t.breakpoints), N = /* @__PURE__ */ f({
|
|
|
5610
5612
|
preflight: !0,
|
|
5611
5613
|
cssVarsPrefix: "nimbus",
|
|
5612
5614
|
cssVarsRoot: ":where(:root, :host)",
|
|
5613
|
-
globalCss:
|
|
5614
|
-
conditions:
|
|
5615
|
+
globalCss: N,
|
|
5616
|
+
conditions: H,
|
|
5615
5617
|
theme: {
|
|
5616
5618
|
breakpoints: _,
|
|
5617
5619
|
keyframes: B,
|
|
@@ -5647,4 +5649,4 @@ export {
|
|
|
5647
5649
|
Be as t,
|
|
5648
5650
|
te as u
|
|
5649
5651
|
};
|
|
5650
|
-
//# sourceMappingURL=index-
|
|
5652
|
+
//# sourceMappingURL=index-DlmEj62V.es.js.map
|