@commercetools/nimbus 2.9.0 → 2.9.1
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-BScTN0pM.cjs.js → accordion-BwakRCIn.cjs.js} +2 -2
- package/dist/chunks/{accordion-BScTN0pM.cjs.js.map → accordion-BwakRCIn.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-DJNZyfL7.es.js → accordion-C-_YQL7c.es.js} +2 -2
- package/dist/chunks/{accordion-DJNZyfL7.es.js.map → accordion-C-_YQL7c.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-CbWvTo-e.cjs.js → accordion.content-BBJezL4-.cjs.js} +2 -2
- package/dist/chunks/{accordion.content-CbWvTo-e.cjs.js.map → accordion.content-BBJezL4-.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-Df8zRXv1.es.js → accordion.content-CZDni7Eh.es.js} +2 -2
- package/dist/chunks/{accordion.content-Df8zRXv1.es.js.map → accordion.content-CZDni7Eh.es.js.map} +1 -1
- package/dist/chunks/{alert-TZJpmSZi.es.js → alert-Cq9lnRoX.es.js} +2 -2
- package/dist/chunks/{alert-TZJpmSZi.es.js.map → alert-Cq9lnRoX.es.js.map} +1 -1
- package/dist/chunks/{alert-Bf1eVQu0.cjs.js → alert-DDLTGVRZ.cjs.js} +2 -2
- package/dist/chunks/{alert-Bf1eVQu0.cjs.js.map → alert-DDLTGVRZ.cjs.js.map} +1 -1
- package/dist/chunks/{button-CAzKhQhT.cjs.js → button-DJX_lPnW.cjs.js} +2 -2
- package/dist/chunks/{button-CAzKhQhT.cjs.js.map → button-DJX_lPnW.cjs.js.map} +1 -1
- package/dist/chunks/{button-C4KD0BhM.es.js → button-DXIjvvTs.es.js} +2 -2
- package/dist/chunks/{button-C4KD0BhM.es.js.map → button-DXIjvvTs.es.js.map} +1 -1
- package/dist/chunks/{calendar-C8d8whAA.cjs.js → calendar-CH8P_-BX.cjs.js} +2 -2
- package/dist/chunks/{calendar-C8d8whAA.cjs.js.map → calendar-CH8P_-BX.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-BUMjfnCM.es.js → calendar-LmmwixJX.es.js} +3 -3
- package/dist/chunks/{calendar-BUMjfnCM.es.js.map → calendar-LmmwixJX.es.js.map} +1 -1
- package/dist/chunks/{card-CJhECjUb.es.js → card-BbHHaxYz.es.js} +2 -2
- package/dist/chunks/{card-CJhECjUb.es.js.map → card-BbHHaxYz.es.js.map} +1 -1
- package/dist/chunks/{card-C6XmGdIp.cjs.js → card-Ch9VNY_a.cjs.js} +2 -2
- package/dist/chunks/{card-C6XmGdIp.cjs.js.map → card-Ch9VNY_a.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-DRxunzAe.es.js → checkbox-BxWAwNQU.es.js} +2 -2
- package/dist/chunks/{checkbox-DRxunzAe.es.js.map → checkbox-BxWAwNQU.es.js.map} +1 -1
- package/dist/chunks/{checkbox-1lqXPqlH.cjs.js → checkbox-DAV6MCao.cjs.js} +2 -2
- package/dist/chunks/{checkbox-1lqXPqlH.cjs.js.map → checkbox-DAV6MCao.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-Dd4U5qdn.es.js → collapsible-motion-AIoK9G2N.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-Dd4U5qdn.es.js.map → collapsible-motion-AIoK9G2N.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-5siO08MB.cjs.js → collapsible-motion-D2LhZm44.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-5siO08MB.cjs.js.map → collapsible-motion-D2LhZm44.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-BWSQAYPQ.es.js → combobox-Cmdt02Xe.es.js} +4 -4
- package/dist/chunks/{combobox-BWSQAYPQ.es.js.map → combobox-Cmdt02Xe.es.js.map} +1 -1
- package/dist/chunks/{combobox-D3kJCGUw.cjs.js → combobox-DLBPqKDP.cjs.js} +2 -2
- package/dist/chunks/{combobox-D3kJCGUw.cjs.js.map → combobox-DLBPqKDP.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-8L4TOSCO.es.js → data-table--JsJDlIu.es.js} +12 -12
- package/dist/chunks/{data-table-8L4TOSCO.es.js.map → data-table--JsJDlIu.es.js.map} +1 -1
- package/dist/chunks/{data-table-BMAW6iyx.cjs.js → data-table-C8d2rMr6.cjs.js} +2 -2
- package/dist/chunks/{data-table-BMAW6iyx.cjs.js.map → data-table-C8d2rMr6.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-CN9SKsEo.cjs.js → date-input-BQc0l8mE.cjs.js} +2 -2
- package/dist/chunks/{date-input-CN9SKsEo.cjs.js.map → date-input-BQc0l8mE.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-DbihYBK7.es.js → date-input-CAEzCHiF.es.js} +3 -3
- package/dist/chunks/{date-input-DbihYBK7.es.js.map → date-input-CAEzCHiF.es.js.map} +1 -1
- package/dist/chunks/{date-picker-BrwUBLzY.cjs.js → date-picker-ByrTp_Rw.cjs.js} +2 -2
- package/dist/chunks/{date-picker-BrwUBLzY.cjs.js.map → date-picker-ByrTp_Rw.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-C6PSx6wa.es.js → date-picker-rd_nVZmF.es.js} +7 -7
- package/dist/chunks/{date-picker-C6PSx6wa.es.js.map → date-picker-rd_nVZmF.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-DF3rmWAx.cjs.js → date-range-picker-CAGxvvrV.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-DF3rmWAx.cjs.js.map → date-range-picker-CAGxvvrV.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-NCpnIadb.es.js → date-range-picker-DxOz9XVi.es.js} +7 -7
- package/dist/chunks/{date-range-picker-NCpnIadb.es.js.map → date-range-picker-DxOz9XVi.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-DnEPJBTf.cjs.js → date-range-picker-field-B74g7riR.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-DnEPJBTf.cjs.js.map → date-range-picker-field-B74g7riR.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-4OMHZSww.es.js → date-range-picker-field-BDiOUnmn.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-4OMHZSww.es.js.map → date-range-picker-field-BDiOUnmn.es.js.map} +1 -1
- package/dist/chunks/{dialog-7MIk-7Ft.es.js → dialog-C3z6Kirn.es.js} +3 -3
- package/dist/chunks/{dialog-7MIk-7Ft.es.js.map → dialog-C3z6Kirn.es.js.map} +1 -1
- package/dist/chunks/{dialog-uwBRMvUN.cjs.js → dialog-DL7O7cV3.cjs.js} +2 -2
- package/dist/chunks/{dialog-uwBRMvUN.cjs.js.map → dialog-DL7O7cV3.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-2ZEDpAqd.es.js → draggable-list-BAl7xvk5.es.js} +5 -5
- package/dist/chunks/{draggable-list-2ZEDpAqd.es.js.map → draggable-list-BAl7xvk5.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-9vFa6LUC.cjs.js → draggable-list-CRGsrAk4.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-9vFa6LUC.cjs.js.map → draggable-list-CRGsrAk4.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-DlAHFB8k.cjs.js → drawer-B0Zbi6sB.cjs.js} +2 -2
- package/dist/chunks/{drawer-DlAHFB8k.cjs.js.map → drawer-B0Zbi6sB.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-CesM9R4I.es.js → drawer-D2wUbDn7.es.js} +4 -4
- package/dist/chunks/{drawer-CesM9R4I.es.js.map → drawer-D2wUbDn7.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DD3XZzbq.es.js → extract-style-props-BtirWJSO.es.js} +2 -2
- package/dist/chunks/{extract-style-props-DD3XZzbq.es.js.map → extract-style-props-BtirWJSO.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-7Kq9mybq.cjs.js → extract-style-props-CidMHCzx.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-7Kq9mybq.cjs.js.map → extract-style-props-CidMHCzx.cjs.js.map} +1 -1
- package/dist/chunks/form-field--e_9psca.cjs.js +2 -0
- package/dist/chunks/form-field--e_9psca.cjs.js.map +1 -0
- package/dist/chunks/{form-field-BcNFX196.es.js → form-field-B5MTPG5J.es.js} +107 -112
- package/dist/chunks/form-field-B5MTPG5J.es.js.map +1 -0
- package/dist/chunks/{icon-button-BV_okpOb.cjs.js → icon-button-B-yfUEQl.cjs.js} +2 -2
- package/dist/chunks/{icon-button-BV_okpOb.cjs.js.map → icon-button-B-yfUEQl.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-CwI7ZK2q.es.js → icon-button-CsfjzFu5.es.js} +2 -2
- package/dist/chunks/{icon-button-CwI7ZK2q.es.js.map → icon-button-CsfjzFu5.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-zsbPyHd7.cjs.js → icon-toggle-button-Bg8u0Y6z.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-zsbPyHd7.cjs.js.map → icon-toggle-button-Bg8u0Y6z.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DusSXhr7.es.js → icon-toggle-button-D88M7O7u.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DusSXhr7.es.js.map → icon-toggle-button-D88M7O7u.es.js.map} +1 -1
- package/dist/chunks/{index-D8ffoMG1.cjs.js → index-P2sPTZVQ.cjs.js} +2 -2
- package/dist/chunks/index-P2sPTZVQ.cjs.js.map +1 -0
- package/dist/chunks/{index-CbPHv6Ml.es.js → index-RkJ27InK.es.js} +5 -3
- package/dist/chunks/index-RkJ27InK.es.js.map +1 -0
- package/dist/chunks/{list-CftBWdp5.cjs.js → list-DJWmJm0u.cjs.js} +2 -2
- package/dist/chunks/{list-CftBWdp5.cjs.js.map → list-DJWmJm0u.cjs.js.map} +1 -1
- package/dist/chunks/{list-BFURlArt.es.js → list-IEZDjRJJ.es.js} +2 -2
- package/dist/chunks/{list-BFURlArt.es.js.map → list-IEZDjRJJ.es.js.map} +1 -1
- package/dist/chunks/{localized-field-CQ_ejsDF.es.js → localized-field-B1kgb4OI.es.js} +8 -8
- package/dist/chunks/{localized-field-CQ_ejsDF.es.js.map → localized-field-B1kgb4OI.es.js.map} +1 -1
- package/dist/chunks/{localized-field-C24LwqjD.cjs.js → localized-field-BecRbjT7.cjs.js} +2 -2
- package/dist/chunks/{localized-field-C24LwqjD.cjs.js.map → localized-field-BecRbjT7.cjs.js.map} +1 -1
- package/dist/chunks/{menu-CgG__utb.es.js → menu-B74NTzak.es.js} +2 -2
- package/dist/chunks/{menu-CgG__utb.es.js.map → menu-B74NTzak.es.js.map} +1 -1
- package/dist/chunks/{menu-DdPHozye.cjs.js → menu-D-1juZPP.cjs.js} +2 -2
- package/dist/chunks/{menu-DdPHozye.cjs.js.map → menu-D-1juZPP.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-B3rZIIip.cjs.js → money-input-BRhRkDWj.cjs.js} +2 -2
- package/dist/chunks/{money-input-B3rZIIip.cjs.js.map → money-input-BRhRkDWj.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-BVSUW0mV.es.js → money-input-Cug0wQqR.es.js} +5 -5
- package/dist/chunks/{money-input-BVSUW0mV.es.js.map → money-input-Cug0wQqR.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-m1j1DLSq.cjs.js → money-input-field-D-BXukz8.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-m1j1DLSq.cjs.js.map → money-input-field-D-BXukz8.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-field-wTLEvYtD.es.js → money-input-field-rEEb2CMi.es.js} +3 -3
- package/dist/chunks/{money-input-field-wTLEvYtD.es.js.map → money-input-field-rEEb2CMi.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-C3FdwmZc.cjs.js → multiline-text-input-CsSsluTl.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-C3FdwmZc.cjs.js.map → multiline-text-input-CsSsluTl.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-AHuJMS1C.es.js → multiline-text-input-Detn1n1o.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-AHuJMS1C.es.js.map → multiline-text-input-Detn1n1o.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-CIaHBNTp.cjs.js → multiline-text-input-field-C3HUTzQ-.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-CIaHBNTp.cjs.js.map → multiline-text-input-field-C3HUTzQ-.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-Cn3WyOO9.es.js → multiline-text-input-field-Cm6-CItu.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-Cn3WyOO9.es.js.map → multiline-text-input-field-Cm6-CItu.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DZt7Dxqv.es.js → nimbus-provider-CojoQhlb.es.js} +3 -3
- package/dist/chunks/{nimbus-provider-DZt7Dxqv.es.js.map → nimbus-provider-CojoQhlb.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CdfH64_b.cjs.js → nimbus-provider-DxWk6R7d.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-CdfH64_b.cjs.js.map → nimbus-provider-DxWk6R7d.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-5fI6bo_C.es.js → number-input-CLQFjFkr.es.js} +3 -3
- package/dist/chunks/{number-input-5fI6bo_C.es.js.map → number-input-CLQFjFkr.es.js.map} +1 -1
- package/dist/chunks/{number-input-CCHDH_Ql.cjs.js → number-input-CSByUbOI.cjs.js} +2 -2
- package/dist/chunks/{number-input-CCHDH_Ql.cjs.js.map → number-input-CSByUbOI.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-Dv5zCbln.es.js → number-input-field-CaaoTp8-.es.js} +3 -3
- package/dist/chunks/{number-input-field-Dv5zCbln.es.js.map → number-input-field-CaaoTp8-.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-BEsVOIbM.cjs.js → number-input-field-CqNKEsDn.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-BEsVOIbM.cjs.js.map → number-input-field-CqNKEsDn.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-CoOO13j7.es.js → pagination-C0C6zhSW.es.js} +4 -4
- package/dist/chunks/{pagination-CoOO13j7.es.js.map → pagination-C0C6zhSW.es.js.map} +1 -1
- package/dist/chunks/{pagination-BpNjPrUa.cjs.js → pagination-Cjxc2nEn.cjs.js} +2 -2
- package/dist/chunks/{pagination-BpNjPrUa.cjs.js.map → pagination-Cjxc2nEn.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-C1yj2l-t.cjs.js → password-input-DQTA3fE3.cjs.js} +2 -2
- package/dist/chunks/{password-input-C1yj2l-t.cjs.js.map → password-input-DQTA3fE3.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-oUqWPfJ5.es.js → password-input-Ywp-3QnF.es.js} +3 -3
- package/dist/chunks/{password-input-oUqWPfJ5.es.js.map → password-input-Ywp-3QnF.es.js.map} +1 -1
- package/dist/chunks/{password-input-field-CxkrPIuf.cjs.js → password-input-field-54xe-x37.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-CxkrPIuf.cjs.js.map → password-input-field-54xe-x37.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-BqcNoRR_.es.js → password-input-field-BtY9xbk4.es.js} +3 -3
- package/dist/chunks/{password-input-field-BqcNoRR_.es.js.map → password-input-field-BtY9xbk4.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-B8Z0iZIg.cjs.js → progress-bar-CgDUGgVa.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-B8Z0iZIg.cjs.js.map → progress-bar-CgDUGgVa.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-DF06rCPA.es.js → progress-bar-DilKPVGE.es.js} +2 -2
- package/dist/chunks/{progress-bar-DF06rCPA.es.js.map → progress-bar-DilKPVGE.es.js.map} +1 -1
- package/dist/chunks/{radio-input-DeQk883P.cjs.js → radio-input-DINDV994.cjs.js} +2 -2
- package/dist/chunks/{radio-input-DeQk883P.cjs.js.map → radio-input-DINDV994.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-C18hFGFa.es.js → radio-input-HXIV8OYv.es.js} +3 -3
- package/dist/chunks/{radio-input-C18hFGFa.es.js.map → radio-input-HXIV8OYv.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-xyzRk9tN.cjs.js → range-calendar-5gXFI3rg.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-xyzRk9tN.cjs.js.map → range-calendar-5gXFI3rg.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-BOkdgYw0.es.js → range-calendar-DgQpgoGc.es.js} +4 -4
- package/dist/chunks/{range-calendar-BOkdgYw0.es.js.map → range-calendar-DgQpgoGc.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-DLgk2NgC.es.js → rich-text-input-BaDQaxfn.es.js} +8 -8
- package/dist/chunks/{rich-text-input-DLgk2NgC.es.js.map → rich-text-input-BaDQaxfn.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-kk9rtBb2.cjs.js → rich-text-input-IpGXnBKy.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-kk9rtBb2.cjs.js.map → rich-text-input-IpGXnBKy.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-BQwOQwaP.cjs.js → scoped-search-input-Cjrky6tJ.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-BQwOQwaP.cjs.js.map → scoped-search-input-Cjrky6tJ.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-QljA__zn.es.js → scoped-search-input-eZUvYoDK.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-QljA__zn.es.js.map → scoped-search-input-eZUvYoDK.es.js.map} +1 -1
- package/dist/chunks/{search-input-CDRgTQeG.cjs.js → search-input-BU2fUnJT.cjs.js} +2 -2
- package/dist/chunks/{search-input-CDRgTQeG.cjs.js.map → search-input-BU2fUnJT.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-CbKzOt2W.es.js → search-input-DnxYNGTT.es.js} +4 -4
- package/dist/chunks/{search-input-CbKzOt2W.es.js.map → search-input-DnxYNGTT.es.js.map} +1 -1
- package/dist/chunks/{search-input-field-BAK_Q8D3.cjs.js → search-input-field-BT402Xul.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-BAK_Q8D3.cjs.js.map → search-input-field-BT402Xul.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-DkQiv4oU.es.js → search-input-field-DrdaFmoJ.es.js} +3 -3
- package/dist/chunks/{search-input-field-DkQiv4oU.es.js.map → search-input-field-DrdaFmoJ.es.js.map} +1 -1
- package/dist/chunks/{select-BBTH3cVj.es.js → select-CnGjAwu_.es.js} +121 -120
- package/dist/chunks/{select-BBTH3cVj.es.js.map → select-CnGjAwu_.es.js.map} +1 -1
- package/dist/chunks/{select-DKYKaxPB.cjs.js → select-CzjgmQe5.cjs.js} +2 -2
- package/dist/chunks/{select-DKYKaxPB.cjs.js.map → select-CzjgmQe5.cjs.js.map} +1 -1
- package/dist/chunks/{separator-nbzofauL.es.js → separator-C_2Z6v9B.es.js} +3 -3
- package/dist/chunks/{separator-nbzofauL.es.js.map → separator-C_2Z6v9B.es.js.map} +1 -1
- package/dist/chunks/{separator-BCgD1L7m.cjs.js → separator-NMLMQH7M.cjs.js} +2 -2
- package/dist/chunks/{separator-BCgD1L7m.cjs.js.map → separator-NMLMQH7M.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-BxATaqTd.cjs.js → split-button-DHUSeGWy.cjs.js} +2 -2
- package/dist/chunks/{split-button-BxATaqTd.cjs.js.map → split-button-DHUSeGWy.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-BU-qVsoU.es.js → split-button-rREKAwlx.es.js} +4 -4
- package/dist/chunks/{split-button-BU-qVsoU.es.js.map → split-button-rREKAwlx.es.js.map} +1 -1
- package/dist/chunks/{steps-hFnqvgs5.cjs.js → steps-CRv1fVZk.cjs.js} +2 -2
- package/dist/chunks/{steps-hFnqvgs5.cjs.js.map → steps-CRv1fVZk.cjs.js.map} +1 -1
- package/dist/chunks/{steps-D4PGBn9S.es.js → steps-CyV83SJa.es.js} +2 -2
- package/dist/chunks/{steps-D4PGBn9S.es.js.map → steps-CyV83SJa.es.js.map} +1 -1
- package/dist/chunks/{switch-DBI4STeG.cjs.js → switch-DBwKE_ko.cjs.js} +2 -2
- package/dist/chunks/{switch-DBI4STeG.cjs.js.map → switch-DBwKE_ko.cjs.js.map} +1 -1
- package/dist/chunks/{switch-dLnIGxMu.es.js → switch-DQRh6tor.es.js} +3 -3
- package/dist/chunks/{switch-dLnIGxMu.es.js.map → switch-DQRh6tor.es.js.map} +1 -1
- package/dist/chunks/{table-I9vNdwDu.cjs.js → table-B_BansB3.cjs.js} +2 -2
- package/dist/chunks/{table-I9vNdwDu.cjs.js.map → table-B_BansB3.cjs.js.map} +1 -1
- package/dist/chunks/{table-BQ9EfDVA.es.js → table-DjkenPCz.es.js} +2 -2
- package/dist/chunks/{table-BQ9EfDVA.es.js.map → table-DjkenPCz.es.js.map} +1 -1
- package/dist/chunks/{tabs-Vvz4_UY5.es.js → tabs-C91cWaUm.es.js} +2 -2
- package/dist/chunks/{tabs-Vvz4_UY5.es.js.map → tabs-C91cWaUm.es.js.map} +1 -1
- package/dist/chunks/{tabs-Ce76FEWP.cjs.js → tabs-CF30UUYO.cjs.js} +2 -2
- package/dist/chunks/{tabs-Ce76FEWP.cjs.js.map → tabs-CF30UUYO.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-BqWFD-bc.es.js → tag-group-BKD3mqCz.es.js} +2 -2
- package/dist/chunks/{tag-group-BqWFD-bc.es.js.map → tag-group-BKD3mqCz.es.js.map} +1 -1
- package/dist/chunks/{tag-group-jRz5HeHG.cjs.js → tag-group-BRZbhZLs.cjs.js} +2 -2
- package/dist/chunks/{tag-group-jRz5HeHG.cjs.js.map → tag-group-BRZbhZLs.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-D5kp2Woq.cjs.js → text-input-4hJwmKMr.cjs.js} +2 -2
- package/dist/chunks/{text-input-D5kp2Woq.cjs.js.map → text-input-4hJwmKMr.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-D4Res1fI.es.js → text-input-BF-iYc24.es.js} +3 -3
- package/dist/chunks/{text-input-D4Res1fI.es.js.map → text-input-BF-iYc24.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-BeQQ0J5G.es.js → text-input-field-BvWZkBpU.es.js} +3 -3
- package/dist/chunks/{text-input-field-BeQQ0J5G.es.js.map → text-input-field-BvWZkBpU.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-t6s8Tn-I.cjs.js → text-input-field-l36en4as.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-t6s8Tn-I.cjs.js.map → text-input-field-l36en4as.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-JLSumOe-.es.js → time-input-DGV0Tcii.es.js} +3 -3
- package/dist/chunks/{time-input-JLSumOe-.es.js.map → time-input-DGV0Tcii.es.js.map} +1 -1
- package/dist/chunks/{time-input-3SGaEjmk.cjs.js → time-input-lTLnPfWp.cjs.js} +2 -2
- package/dist/chunks/{time-input-3SGaEjmk.cjs.js.map → time-input-lTLnPfWp.cjs.js.map} +1 -1
- package/dist/chunks/{toast.outlet-CGE1xY7p.es.js → toast.outlet-BrMQc1Xs.es.js} +3 -3
- package/dist/chunks/{toast.outlet-CGE1xY7p.es.js.map → toast.outlet-BrMQc1Xs.es.js.map} +1 -1
- package/dist/chunks/{toast.outlet-Cg1OtgY0.cjs.js → toast.outlet-CXA8ZElR.cjs.js} +2 -2
- package/dist/chunks/{toast.outlet-Cg1OtgY0.cjs.js.map → toast.outlet-CXA8ZElR.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-DW5INNYc.cjs.js → toggle-button-9HIOPYPG.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-DW5INNYc.cjs.js.map → toggle-button-9HIOPYPG.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-Bc3b0Mdz.es.js → toggle-button-YjU1LD3Z.es.js} +3 -3
- package/dist/chunks/{toggle-button-Bc3b0Mdz.es.js.map → toggle-button-YjU1LD3Z.es.js.map} +1 -1
- package/dist/chunks/{toolbar-CV2NCv0p.es.js → toolbar-BoDdhKeP.es.js} +3 -3
- package/dist/chunks/{toolbar-CV2NCv0p.es.js.map → toolbar-BoDdhKeP.es.js.map} +1 -1
- package/dist/chunks/{toolbar-DIEmU_vh.cjs.js → toolbar-Ut-7K_-k.cjs.js} +2 -2
- package/dist/chunks/{toolbar-DIEmU_vh.cjs.js.map → toolbar-Ut-7K_-k.cjs.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- 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/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/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-field.cjs +1 -1
- package/dist/components/date-range-picker-field.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/fields.cjs +1 -1
- package/dist/components/fields.es.js +7 -7
- package/dist/components/form-field/components/form-field.context.d.ts +3 -3
- package/dist/components/form-field/components/form-field.input.d.ts +5 -1
- package/dist/components/form-field/form-field.d.ts +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/list.cjs +1 -1
- package/dist/components/list.es.js +1 -1
- package/dist/components/localized-field/utils/test-data.d.ts +62 -0
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input-field.cjs +1 -1
- package/dist/components/money-input-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-field.cjs +1 -1
- package/dist/components/multiline-text-input-field.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-field.cjs +1 -1
- package/dist/components/number-input-field.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-field.cjs +1 -1
- package/dist/components/password-input-field.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +7 -7
- 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-field.cjs +1 -1
- package/dist/components/search-input-field.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/components/select.clear-button.d.ts +3 -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/steps.cjs +1 -1
- package/dist/components/steps.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.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-field.cjs +1 -1
- package/dist/components/text-input-field.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/toast.cjs +1 -1
- package/dist/components/toast.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/components/utils.cjs +1 -1
- package/dist/components/utils.cjs.map +1 -1
- package/dist/components/utils.es.js +1 -1
- package/dist/components/utils.es.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +57 -57
- package/package.json +7 -7
- package/dist/chunks/form-field-BcNFX196.es.js.map +0 -1
- package/dist/chunks/form-field-TY4tZsBZ.cjs.js +0 -2
- package/dist/chunks/form-field-TY4tZsBZ.cjs.js.map +0 -1
- package/dist/chunks/index-CbPHv6Ml.es.js.map +0 -1
- package/dist/chunks/index-D8ffoMG1.cjs.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const ie=require("./chunks/date-range-picker-field-DnEPJBTf.cjs.js"),ue=require("./chunks/money-input-field-m1j1DLSq.cjs.js"),se=require("./chunks/multiline-text-input-field-CIaHBNTp.cjs.js"),le=require("./chunks/number-input-field-BEsVOIbM.cjs.js"),ce=require("./chunks/search-input-field-BAK_Q8D3.cjs.js"),de=require("./chunks/password-input-field-CxkrPIuf.cjs.js"),pe=require("./chunks/text-input-field-t6s8Tn-I.cjs.js"),ge=require("./chunks/index-D8ffoMG1.cjs.js"),Y=require("./chunks/rich-text-input-kk9rtBb2.cjs.js"),g=require("react"),me=require("./chunks/accordion-BScTN0pM.cjs.js"),R=require("./chunks/alert-Bf1eVQu0.cjs.js"),fe=require("./chunks/avatar-B8vetM5G.cjs.js"),be=require("./chunks/badge-m_QkSvpu.cjs.js"),ye=require("./chunks/box-CWni3A32.cjs.js"),Te=require("./chunks/button-CAzKhQhT.cjs.js"),Ce=require("./chunks/calendar-C8d8whAA.cjs.js"),A=require("./chunks/card-C6XmGdIp.cjs.js"),Se=require("./chunks/checkbox-1lqXPqlH.cjs.js"),he=require("./chunks/code-BveGzfST.cjs.js"),E=require("./chunks/collapsible-motion-5siO08MB.cjs.js"),ve=require("./chunks/combobox-D3kJCGUw.cjs.js"),q=require("./chunks/data-table-BMAW6iyx.cjs.js"),Ie=require("./chunks/date-input-CN9SKsEo.cjs.js"),qe=require("./chunks/date-picker-BrwUBLzY.cjs.js"),we=require("./chunks/date-range-picker-DF3rmWAx.cjs.js"),De=require("./chunks/dialog-uwBRMvUN.cjs.js"),M=require("./chunks/draggable-list-9vFa6LUC.cjs.js"),I=require("./chunks/drawer-DlAHFB8k.cjs.js"),Z=require("./chunks/field-errors-hBl0j2ag.cjs.js"),_e=require("./chunks/flex-DwGL6TCj.cjs.js"),_=require("./chunks/form-field-TY4tZsBZ.cjs.js"),Fe=require("./chunks/grid-Chuw1xje.cjs.js"),Re=require("./chunks/group-8Wkx5fVV.cjs.js"),ke=require("./chunks/heading-BFcG7l1U.cjs.js"),Le=require("./chunks/icon-BMjkW_u3.cjs.js"),xe=require("./chunks/icon-button-BV_okpOb.cjs.js"),Ae=require("./chunks/icon-toggle-button-zsbPyHd7.cjs.js"),Ee=require("./chunks/image-CGOYoc2s.cjs.js"),Me=require("./chunks/inline-svg-Ct3XXJCo.cjs.js"),Pe=require("./chunks/kbd-C22HGSIk.cjs.js"),Be=require("./chunks/link-DmxaGmar.cjs.js"),P=require("./chunks/list-CftBWdp5.cjs.js"),Ne=require("./chunks/loading-spinner-C2hfbSXt.cjs.js"),He=require("./chunks/localized-field-C24LwqjD.cjs.js"),Ke=require("./chunks/make-element-focusable-Cf-r4YQd.cjs.js"),w=require("./chunks/menu-DdPHozye.cjs.js"),Oe=require("./chunks/money-input-B3rZIIip.cjs.js"),Ge=require("./chunks/multiline-text-input-C3FdwmZc.cjs.js"),Ue=require("./chunks/nimbus-i18n-provider-BPK9twpQ.cjs.js"),J=require("./chunks/nimbus-provider-CdfH64_b.cjs.js"),je=require("./chunks/number-input-CCHDH_Ql.cjs.js"),G=require("./chunks/page-content--s1gGk_N.cjs.js"),ze=require("./chunks/pagination-BpNjPrUa.cjs.js"),Ve=require("./chunks/password-input-C1yj2l-t.cjs.js"),$e=require("./chunks/progress-bar-B8Z0iZIg.cjs.js"),We=require("./chunks/radio-input-DeQk883P.cjs.js"),Xe=require("./chunks/range-calendar-xyzRk9tN.cjs.js"),Qe=require("./chunks/scoped-search-input-BQwOQwaP.cjs.js"),Ye=require("./chunks/search-input-CDRgTQeG.cjs.js"),Ze=require("./chunks/select-DKYKaxPB.cjs.js"),Je=require("./chunks/separator-BCgD1L7m.cjs.js"),et=require("./chunks/simple-grid-Cd2MJxSX.cjs.js"),tt=require("./chunks/spacer-DhPljomZ.cjs.js"),rt=require("./chunks/split-button-BxATaqTd.cjs.js"),ot=require("./chunks/stack-CIN13EDn.cjs.js"),b=require("./chunks/steps-hFnqvgs5.cjs.js"),nt=require("./chunks/switch-DBI4STeG.cjs.js"),y=require("./chunks/table-I9vNdwDu.cjs.js"),k=require("./chunks/tabs-Ce76FEWP.cjs.js"),at=require("./chunks/tag-group-jRz5HeHG.cjs.js"),it=require("./chunks/text-CO7lcJf1.cjs.js"),ut=require("./chunks/text-input-D5kp2Woq.cjs.js"),st=require("./chunks/time-input-3SGaEjmk.cjs.js"),lt=require("./chunks/toast.outlet-Cg1OtgY0.cjs.js"),ct=require("./chunks/toggle-button-DW5INNYc.cjs.js"),U=require("./chunks/toggle-button-group-Dt36o8cR.cjs.js"),dt=require("./chunks/toolbar-DIEmU_vh.cjs.js"),pt=require("./chunks/tooltip-M0jvp5BS.cjs.js"),gt=require("./chunks/visually-hidden-vUuCude-.cjs.js"),L=require("./chunks/accordion.content-CbWvTo-e.cjs.js"),mt=require("./chunks/toast.manager-C-xQVs3Q.cjs.js");require("react/jsx-runtime");const ft=require("./chunks/normalize-messages-DtVffO09.cjs.js"),ee=["shift","alt","meta","mod","ctrl","control"],bt={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function F(e){return(bt[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function te(e){return ee.includes(e)}function N(e,t=","){return e.toLowerCase().split(t)}function H(e,t="+",r=">",i=!1,u){let n=[],a=!1;e=e.trim(),e.includes(r)?(a=!0,n=e.toLocaleLowerCase().split(r).map(f=>F(f))):n=e.toLocaleLowerCase().split(t).map(f=>F(f));const d={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod"),useKey:i},l=n.filter(f=>!ee.includes(f));return{...d,keys:l,description:u,isSequence:a,hotkey:e}}const D=new Set;function j(e){return Array.isArray(e)}function yt(e,t=","){return(j(e)?e:e.split(t)).every(r=>D.has(r.trim().toLowerCase()))}function Tt(e){const t=Array.isArray(e)?e:[e];D.has("meta")&&D.forEach(r=>!te(r)&&D.delete(r.toLowerCase())),t.forEach(r=>D.add(r.toLowerCase()))}function Ct(e){const t=Array.isArray(e)?e:[e];e==="meta"?D.clear():t.forEach(r=>D.delete(r.toLowerCase()))}function St(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ht(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const vt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function It(e){return re(e,vt)}function re(e,t=!1){const{target:r,composed:i}=e;let u,n;return qt(r)&&i?(u=e.composedPath()[0]&&e.composedPath()[0].tagName,n=e.composedPath()[0]&&e.composedPath()[0].role):(u=r&&r.tagName,n=r&&r.role),j(t)?!!(u&&t&&t.some(a=>a.toLowerCase()===u.toLowerCase()||a===n)):!!(u&&t&&t)}function qt(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function wt(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const Dt=(e,t,r=!1)=>{const{alt:i,meta:u,mod:n,shift:a,ctrl:d,keys:l,useKey:f}=t,{code:T,key:o,ctrlKey:c,metaKey:C,shiftKey:S,altKey:p}=e,m=F(T);if(f&&l?.length===1&&l.includes(o))return!0;if(!l?.includes(m)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(m))return!1;if(!r){if(i!==p&&m!=="alt"||a!==S&&m!=="shift")return!1;if(n){if(!C&&!c)return!1}else if(u!==C&&m!=="meta"&&m!=="os"||d!==c&&m!=="ctrl"&&m!=="control")return!1}return l&&l.length===1&&l.includes(m)?!0:l?yt(l):!l},_t=g.createContext(void 0),Ft=()=>g.useContext(_t);function oe(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,i)=>r&&oe(e[i],t[i]),!0):e===t}const Rt=g.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),kt=()=>g.useContext(Rt);function Lt(e){const t=g.useRef(void 0);return oe(t.current,e)||(t.current=e),t.current}const W=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},xt=typeof window<"u"?g.useLayoutEffect:g.useEffect;function At(e,t,r,i){const u=g.useRef(null),n=g.useRef(!1),a=Array.isArray(r)?Array.isArray(i)?void 0:i:r,d=j(e)?e.join(a?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(i)?i:void 0,f=g.useCallback(t,l??[]),T=g.useRef(f);l?T.current=f:T.current=t;const o=Lt(a),{activeScopes:c}=kt(),C=Ft();return xt(()=>{if(o?.enabled===!1||!wt(c,o?.scopes))return;let S=[],p;const m=(s,$=!1)=>{if(!(It(s)&&!re(s,o?.enableOnFormTags))){if(u.current!==null){const v=u.current.getRootNode();if((v instanceof Document||v instanceof ShadowRoot)&&v.activeElement!==u.current&&!u.current.contains(v.activeElement)){W(s);return}}s.target?.isContentEditable&&!o?.enableOnContentEditable||N(d,o?.delimiter).forEach(v=>{if(v.includes(o?.splitKey??"+")&&v.includes(o?.sequenceSplitKey??">")){console.warn(`Hotkey ${v} contains both ${o?.splitKey??"+"} and ${o?.sequenceSplitKey??">"} which is not supported.`);return}const h=H(v,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description);if(h.isSequence){p=setTimeout(()=>{S=[]},o?.sequenceTimeoutMs??1e3);const B=h.useKey?s.key:F(s.code);if(te(B.toLowerCase()))return;S.push(B);const ae=h.keys?.[S.length-1];if(B!==ae){S=[],p&&clearTimeout(p);return}S.length===h.keys?.length&&(T.current(s,h),p&&clearTimeout(p),S=[])}else if(Dt(s,h,o?.ignoreModifiers)||h.keys?.includes("*")){if(o?.ignoreEventWhen?.(s)||$&&n.current)return;if(St(s,h,o?.preventDefault),!ht(s,h,o?.enabled)){W(s);return}T.current(s,h),$||(n.current=!0)}})}},z=s=>{s.code!==void 0&&(Tt(F(s.code)),(o?.keydown===void 0&&o?.keyup!==!0||o?.keydown)&&m(s))},V=s=>{s.code!==void 0&&(Ct(F(s.code)),n.current=!1,o?.keyup&&m(s,!0))},x=u.current||a?.document||document;return x.addEventListener("keyup",V,a?.eventListenerOptions),x.addEventListener("keydown",z,a?.eventListenerOptions),C&&N(d,o?.delimiter).forEach(s=>C.addHotkey(H(s,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),()=>{x.removeEventListener("keyup",V,a?.eventListenerOptions),x.removeEventListener("keydown",z,a?.eventListenerOptions),C&&N(d,o?.delimiter).forEach(s=>C.removeHotkey(H(s,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),S=[],p&&clearTimeout(p)}},[d,o,c]),u}function Et(){var e=g.useRef(!1),t=g.useCallback(function(){return e.current},[]);return g.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var Mt=function(e){e===void 0&&(e={});var t=g.useState(e),r=t[0],i=t[1],u=g.useCallback(function(n){i(function(a){return Object.assign({},a,n instanceof Function?n(a):n)})},[]);return[r,u]},K,X;function Pt(){return X||(X=1,K=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],i=0;i<e.rangeCount;i++)r.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(u){e.addRange(u)}),t&&t.focus()}}),K}var O,Q;function Bt(){if(Q)return O;Q=1;var e=Pt(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function i(n){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,a)}function u(n,a){var d,l,f,T,o,c,C=!1;a||(a={}),d=a.debug||!1;try{f=e(),T=document.createRange(),o=document.getSelection(),c=document.createElement("span"),c.textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(p){if(p.stopPropagation(),a.format)if(p.preventDefault(),typeof p.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=t[a.format]||t.default;window.clipboardData.setData(m,n)}else p.clipboardData.clearData(),p.clipboardData.setData(a.format,n);a.onCopy&&(p.preventDefault(),a.onCopy(p.clipboardData))}),document.body.appendChild(c),T.selectNodeContents(c),o.addRange(T);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");C=!0}catch(p){d&&console.error("unable to copy using execCommand: ",p),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",n),a.onCopy&&a.onCopy(window.clipboardData),C=!0}catch(m){d&&console.error("unable to copy using clipboardData: ",m),d&&console.error("falling back to prompt"),l=i("message"in a?a.message:r),window.prompt(l,n)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(T):o.removeAllRanges()),c&&document.body.removeChild(c),f()}return C}return O=u,O}var Nt=Bt();const Ht=Y.getDefaultExportFromCjs(Nt);var Kt=function(){var e=Et(),t=Mt({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],i=t[1],u=g.useCallback(function(n){if(e()){var a,d;try{if(typeof n!="string"&&typeof n!="number"){var l=new Error("Cannot copy typeof "+typeof n+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}else if(n===""){var l=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}d=n.toString(),a=Ht(d),i({value:d,error:void 0,noUserInteraction:a})}catch(f){i({value:d,error:f,noUserInteraction:a})}}},[]);return[r,u]};function Ot(){const[e,t]=g.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return g.useEffect(()=>{const i=document.documentElement,u=new MutationObserver(()=>{const n=r();t(n)});return u.observe(i,{attributes:!0,attributeFilter:["style"]}),()=>u.disconnect()},[]),e}function ne(){const{resolvedTheme:e,setTheme:t}=J.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Gt(e,t){const{colorMode:r}=ne();return r==="light"?e:t}exports.DateRangePickerField=ie.DateRangePickerField;exports.MoneyInputField=ue.MoneyInputField;exports.MultilineTextInputField=se.MultilineTextInputField;exports.NumberInputField=le.NumberInputField;exports.SearchInputField=ce.SearchInputField;exports.PasswordInputField=de.PasswordInputField;exports.TextInputField=pe.TextInputField;exports.system=ge.system;exports.RichTextInput=Y.RichTextInput;exports.Accordion=me.Accordion;exports.Alert=R.Alert;exports._AlertActions=R.AlertActions;exports._AlertDescription=R.AlertDescription;exports._AlertDismissButton=R.AlertDismissButton;exports._AlertRoot=R.AlertRoot;exports._AlertTitle=R.AlertTitle;exports.Avatar=fe.Avatar;exports.Badge=be.Badge;exports.Box=ye.Box;exports.Button=Te.Button;exports.Calendar=Ce.Calendar;exports.Card=A.Card;exports._CardContent=A.CardContent;exports._CardHeader=A.CardHeader;exports._CardRoot=A.CardRoot;exports.Checkbox=Se.Checkbox;exports.Code=he.Code;exports.CollapsibleMotion=E.CollapsibleMotion;exports._CollapsibleMotionContent=E.CollapsibleMotionContent;exports._CollapsibleMotionRoot=E.CollapsibleMotionRoot;exports._CollapsibleMotionTrigger=E.CollapsibleMotionTrigger;exports.ComboBox=ve.ComboBox;exports.DataTable=q.DataTable;exports.UPDATE_ACTIONS=q.UPDATE_ACTIONS;exports._DataTableBody=q.DataTableBody;exports._DataTableFooter=q.DataTableFooter;exports._DataTableHeader=q.DataTableHeader;exports._DataTableManager=q.DataTableManager;exports._DataTableRoot=q.DataTableRoot;exports._DataTableTable=q.DataTableTable;exports.DateInput=Ie.DateInput;exports.DatePicker=qe.DatePicker;exports.DateRangePicker=we.DateRangePicker;exports.Dialog=De.Dialog;exports.DraggableList=M.DraggableList;exports._DraggableListField=M.DraggableListField;exports._DraggableListItem=M.DraggableListItem;exports._DraggableListRoot=M.DraggableListRoot;exports.Drawer=I.Drawer;exports._DrawerBody=I.DrawerBody;exports._DrawerCloseTrigger=I.DrawerCloseTrigger;exports._DrawerContent=I.DrawerContent;exports._DrawerFooter=I.DrawerFooter;exports._DrawerHeader=I.DrawerHeader;exports._DrawerRoot=I.DrawerRoot;exports._DrawerTitle=I.DrawerTitle;exports._DrawerTrigger=I.DrawerTrigger;exports.FieldErrorTypes=Z.FieldErrorTypes;exports.FieldErrors=Z.FieldErrors;exports.Flex=_e.Flex;exports.FormField=_.FormField;exports._FormFieldDescription=_.FormFieldDescription;exports._FormFieldError=_.FormFieldError;exports._FormFieldInfoBox=_.FormFieldInfoBox;exports._FormFieldInput=_.FormFieldInput;exports._FormFieldLabel=_.FormFieldLabel;exports._FormFieldRoot=_.FormFieldRoot;exports.Grid=Fe.Grid;exports.Group=Re.Group;exports.Heading=ke.Heading;exports.Icon=Le.Icon;exports.IconButton=xe.IconButton;exports.IconToggleButton=Ae.IconToggleButton;exports.Image=Ee.Image;exports.InlineSvg=Me.InlineSvg;exports.Kbd=Pe.Kbd;exports.Link=Be.Link;exports.List=P.List;exports._ListIndicator=P.ListIndicator;exports._ListItem=P.ListItem;exports._ListRoot=P.ListRoot;exports.LoadingSpinner=Ne.LoadingSpinner;exports.LocalizedField=He.LocalizedField;exports.MakeElementFocusable=Ke.MakeElementFocusable;exports.Menu=w.Menu;exports._MenuContent=w.MenuContent;exports._MenuItem=w.MenuItem;exports._MenuRoot=w.MenuRoot;exports._MenuSection=w.MenuSection;exports._MenuSubmenu=w.MenuSubmenu;exports._MenuSubmenuTrigger=w.MenuSubmenuTrigger;exports._MenuTrigger=w.MenuTrigger;exports.MoneyInput=Oe.MoneyInput;exports.MultilineTextInput=Ge.MultilineTextInput;exports.NimbusI18nProvider=Ue.NimbusI18nProvider;exports.NimbusProvider=J.NimbusProvider;exports.NumberInput=je.NumberInput;exports.PageContent=G.PageContent;exports._PageContentColumn=G.PageContentColumn;exports._PageContentRoot=G.PageContentRoot;exports.Pagination=ze.Pagination;exports.PasswordInput=Ve.PasswordInput;exports.ProgressBar=$e.ProgressBar;exports.RadioInput=We.RadioInput;exports.RangeCalendar=Xe.RangeCalendar;exports.ScopedSearchInput=Qe.ScopedSearchInput;exports.SearchInput=Ye.SearchInput;exports.Select=Ze.Select;exports.Separator=Je.Separator;exports.SimpleGrid=et.SimpleGrid;exports.Spacer=tt.Spacer;exports.SplitButton=rt.SplitButton;exports.Stack=ot.Stack;exports.Steps=b.Steps;exports._StepsCompletedContent=b.StepsCompletedContent;exports._StepsContent=b.StepsContent;exports._StepsDescription=b.StepsDescription;exports._StepsIndicator=b.StepsIndicator;exports._StepsItem=b.StepsItem;exports._StepsList=b.StepsList;exports._StepsNextTrigger=b.StepsNextTrigger;exports._StepsNumber=b.StepsNumber;exports._StepsPrevTrigger=b.StepsPrevTrigger;exports._StepsRoot=b.StepsRoot;exports._StepsSeparator=b.StepsSeparator;exports._StepsStatus=b.StepsStatus;exports._StepsTitle=b.StepsTitle;exports._StepsTrigger=b.StepsTrigger;exports.Switch=nt.Switch;exports.Table=y.Table;exports.TableBody=y.TableBody;exports.TableCaption=y.TableCaption;exports.TableCell=y.TableCell;exports.TableColumn=y.TableColumn;exports.TableColumnGroup=y.TableColumnGroup;exports.TableColumnHeader=y.TableColumnHeader;exports.TableFooter=y.TableFooter;exports.TableHeader=y.TableHeader;exports.TableRoot=y.TableRoot;exports.TableRow=y.TableRow;exports.TableScrollArea=y.TableScrollArea;exports.Tabs=k.Tabs;exports._TabsList=k.TabsList;exports._TabsPanel=k.TabsPanel;exports._TabsPanels=k.TabsPanels;exports._TabsRoot=k.TabsRoot;exports._TabsTab=k.TabsTab;exports.TagGroup=at.TagGroup;exports.Text=it.Text;exports.TextInput=ut.TextInput;exports.TimeInput=st.TimeInput;exports.ToastOutlet=lt.ToastOutlet;exports.ToggleButton=ct.ToggleButton;exports.ToggleButtonGroup=U.ToggleButtonGroup;exports._ToggleButtonGroupButton=U.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=U.ToggleButtonGroupRoot;exports.Toolbar=dt.Toolbar;exports.Tooltip=pt.Tooltip;exports.VisuallyHidden=gt.VisuallyHidden;exports._AccordionContent=L.AccordionContent;exports._AccordionHeader=L.AccordionHeader;exports._AccordionHeaderRightContent=L.AccordionHeaderRightContent;exports._AccordionItem=L.AccordionItem;exports._AccordionRoot=L.AccordionRoot;exports.toast=mt.toast;exports.useLocalizedStringFormatter=ft.useLocalizedStringFormatter;exports.useColorMode=ne;exports.useColorModeValue=Gt;exports.useColorScheme=Ot;exports.useCopyToClipboard=Kt;exports.useHotkeys=At;
|
|
1
|
+
"use strict";const ie=require("./chunks/date-range-picker-field-B74g7riR.cjs.js"),ue=require("./chunks/money-input-field-D-BXukz8.cjs.js"),se=require("./chunks/multiline-text-input-field-C3HUTzQ-.cjs.js"),le=require("./chunks/number-input-field-CqNKEsDn.cjs.js"),ce=require("./chunks/search-input-field-BT402Xul.cjs.js"),de=require("./chunks/password-input-field-54xe-x37.cjs.js"),pe=require("./chunks/text-input-field-l36en4as.cjs.js"),ge=require("./chunks/index-P2sPTZVQ.cjs.js"),Y=require("./chunks/rich-text-input-IpGXnBKy.cjs.js"),g=require("react"),me=require("./chunks/accordion-BwakRCIn.cjs.js"),R=require("./chunks/alert-DDLTGVRZ.cjs.js"),fe=require("./chunks/avatar-B8vetM5G.cjs.js"),be=require("./chunks/badge-m_QkSvpu.cjs.js"),ye=require("./chunks/box-CWni3A32.cjs.js"),Te=require("./chunks/button-DJX_lPnW.cjs.js"),Ce=require("./chunks/calendar-CH8P_-BX.cjs.js"),A=require("./chunks/card-Ch9VNY_a.cjs.js"),Se=require("./chunks/checkbox-DAV6MCao.cjs.js"),he=require("./chunks/code-BveGzfST.cjs.js"),E=require("./chunks/collapsible-motion-D2LhZm44.cjs.js"),ve=require("./chunks/combobox-DLBPqKDP.cjs.js"),q=require("./chunks/data-table-C8d2rMr6.cjs.js"),Ie=require("./chunks/date-input-BQc0l8mE.cjs.js"),qe=require("./chunks/date-picker-ByrTp_Rw.cjs.js"),we=require("./chunks/date-range-picker-CAGxvvrV.cjs.js"),De=require("./chunks/dialog-DL7O7cV3.cjs.js"),M=require("./chunks/draggable-list-CRGsrAk4.cjs.js"),I=require("./chunks/drawer-B0Zbi6sB.cjs.js"),Z=require("./chunks/field-errors-hBl0j2ag.cjs.js"),_e=require("./chunks/flex-DwGL6TCj.cjs.js"),_=require("./chunks/form-field--e_9psca.cjs.js"),Fe=require("./chunks/grid-Chuw1xje.cjs.js"),Re=require("./chunks/group-8Wkx5fVV.cjs.js"),ke=require("./chunks/heading-BFcG7l1U.cjs.js"),Le=require("./chunks/icon-BMjkW_u3.cjs.js"),xe=require("./chunks/icon-button-B-yfUEQl.cjs.js"),Ae=require("./chunks/icon-toggle-button-Bg8u0Y6z.cjs.js"),Ee=require("./chunks/image-CGOYoc2s.cjs.js"),Me=require("./chunks/inline-svg-Ct3XXJCo.cjs.js"),Pe=require("./chunks/kbd-C22HGSIk.cjs.js"),Be=require("./chunks/link-DmxaGmar.cjs.js"),P=require("./chunks/list-DJWmJm0u.cjs.js"),Ne=require("./chunks/loading-spinner-C2hfbSXt.cjs.js"),He=require("./chunks/localized-field-BecRbjT7.cjs.js"),Ke=require("./chunks/make-element-focusable-Cf-r4YQd.cjs.js"),w=require("./chunks/menu-D-1juZPP.cjs.js"),Oe=require("./chunks/money-input-BRhRkDWj.cjs.js"),Ge=require("./chunks/multiline-text-input-CsSsluTl.cjs.js"),Ue=require("./chunks/nimbus-i18n-provider-BPK9twpQ.cjs.js"),J=require("./chunks/nimbus-provider-DxWk6R7d.cjs.js"),je=require("./chunks/number-input-CSByUbOI.cjs.js"),G=require("./chunks/page-content--s1gGk_N.cjs.js"),ze=require("./chunks/pagination-Cjxc2nEn.cjs.js"),Ve=require("./chunks/password-input-DQTA3fE3.cjs.js"),$e=require("./chunks/progress-bar-CgDUGgVa.cjs.js"),We=require("./chunks/radio-input-DINDV994.cjs.js"),Xe=require("./chunks/range-calendar-5gXFI3rg.cjs.js"),Qe=require("./chunks/scoped-search-input-Cjrky6tJ.cjs.js"),Ye=require("./chunks/search-input-BU2fUnJT.cjs.js"),Ze=require("./chunks/select-CzjgmQe5.cjs.js"),Je=require("./chunks/separator-NMLMQH7M.cjs.js"),et=require("./chunks/simple-grid-Cd2MJxSX.cjs.js"),tt=require("./chunks/spacer-DhPljomZ.cjs.js"),rt=require("./chunks/split-button-DHUSeGWy.cjs.js"),ot=require("./chunks/stack-CIN13EDn.cjs.js"),b=require("./chunks/steps-CRv1fVZk.cjs.js"),nt=require("./chunks/switch-DBwKE_ko.cjs.js"),y=require("./chunks/table-B_BansB3.cjs.js"),k=require("./chunks/tabs-CF30UUYO.cjs.js"),at=require("./chunks/tag-group-BRZbhZLs.cjs.js"),it=require("./chunks/text-CO7lcJf1.cjs.js"),ut=require("./chunks/text-input-4hJwmKMr.cjs.js"),st=require("./chunks/time-input-lTLnPfWp.cjs.js"),lt=require("./chunks/toast.outlet-CXA8ZElR.cjs.js"),ct=require("./chunks/toggle-button-9HIOPYPG.cjs.js"),U=require("./chunks/toggle-button-group-Dt36o8cR.cjs.js"),dt=require("./chunks/toolbar-Ut-7K_-k.cjs.js"),pt=require("./chunks/tooltip-M0jvp5BS.cjs.js"),gt=require("./chunks/visually-hidden-vUuCude-.cjs.js"),L=require("./chunks/accordion.content-BBJezL4-.cjs.js"),mt=require("./chunks/toast.manager-C-xQVs3Q.cjs.js");require("react/jsx-runtime");const ft=require("./chunks/normalize-messages-DtVffO09.cjs.js"),ee=["shift","alt","meta","mod","ctrl","control"],bt={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function F(e){return(bt[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function te(e){return ee.includes(e)}function N(e,t=","){return e.toLowerCase().split(t)}function H(e,t="+",r=">",i=!1,u){let n=[],a=!1;e=e.trim(),e.includes(r)?(a=!0,n=e.toLocaleLowerCase().split(r).map(f=>F(f))):n=e.toLocaleLowerCase().split(t).map(f=>F(f));const d={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod"),useKey:i},l=n.filter(f=>!ee.includes(f));return{...d,keys:l,description:u,isSequence:a,hotkey:e}}const D=new Set;function j(e){return Array.isArray(e)}function yt(e,t=","){return(j(e)?e:e.split(t)).every(r=>D.has(r.trim().toLowerCase()))}function Tt(e){const t=Array.isArray(e)?e:[e];D.has("meta")&&D.forEach(r=>!te(r)&&D.delete(r.toLowerCase())),t.forEach(r=>D.add(r.toLowerCase()))}function Ct(e){const t=Array.isArray(e)?e:[e];e==="meta"?D.clear():t.forEach(r=>D.delete(r.toLowerCase()))}function St(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ht(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const vt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function It(e){return re(e,vt)}function re(e,t=!1){const{target:r,composed:i}=e;let u,n;return qt(r)&&i?(u=e.composedPath()[0]&&e.composedPath()[0].tagName,n=e.composedPath()[0]&&e.composedPath()[0].role):(u=r&&r.tagName,n=r&&r.role),j(t)?!!(u&&t&&t.some(a=>a.toLowerCase()===u.toLowerCase()||a===n)):!!(u&&t&&t)}function qt(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function wt(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const Dt=(e,t,r=!1)=>{const{alt:i,meta:u,mod:n,shift:a,ctrl:d,keys:l,useKey:f}=t,{code:T,key:o,ctrlKey:c,metaKey:C,shiftKey:S,altKey:p}=e,m=F(T);if(f&&l?.length===1&&l.includes(o))return!0;if(!l?.includes(m)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(m))return!1;if(!r){if(i!==p&&m!=="alt"||a!==S&&m!=="shift")return!1;if(n){if(!C&&!c)return!1}else if(u!==C&&m!=="meta"&&m!=="os"||d!==c&&m!=="ctrl"&&m!=="control")return!1}return l&&l.length===1&&l.includes(m)?!0:l?yt(l):!l},_t=g.createContext(void 0),Ft=()=>g.useContext(_t);function oe(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,i)=>r&&oe(e[i],t[i]),!0):e===t}const Rt=g.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),kt=()=>g.useContext(Rt);function Lt(e){const t=g.useRef(void 0);return oe(t.current,e)||(t.current=e),t.current}const W=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},xt=typeof window<"u"?g.useLayoutEffect:g.useEffect;function At(e,t,r,i){const u=g.useRef(null),n=g.useRef(!1),a=Array.isArray(r)?Array.isArray(i)?void 0:i:r,d=j(e)?e.join(a?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(i)?i:void 0,f=g.useCallback(t,l??[]),T=g.useRef(f);l?T.current=f:T.current=t;const o=Lt(a),{activeScopes:c}=kt(),C=Ft();return xt(()=>{if(o?.enabled===!1||!wt(c,o?.scopes))return;let S=[],p;const m=(s,$=!1)=>{if(!(It(s)&&!re(s,o?.enableOnFormTags))){if(u.current!==null){const v=u.current.getRootNode();if((v instanceof Document||v instanceof ShadowRoot)&&v.activeElement!==u.current&&!u.current.contains(v.activeElement)){W(s);return}}s.target?.isContentEditable&&!o?.enableOnContentEditable||N(d,o?.delimiter).forEach(v=>{if(v.includes(o?.splitKey??"+")&&v.includes(o?.sequenceSplitKey??">")){console.warn(`Hotkey ${v} contains both ${o?.splitKey??"+"} and ${o?.sequenceSplitKey??">"} which is not supported.`);return}const h=H(v,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description);if(h.isSequence){p=setTimeout(()=>{S=[]},o?.sequenceTimeoutMs??1e3);const B=h.useKey?s.key:F(s.code);if(te(B.toLowerCase()))return;S.push(B);const ae=h.keys?.[S.length-1];if(B!==ae){S=[],p&&clearTimeout(p);return}S.length===h.keys?.length&&(T.current(s,h),p&&clearTimeout(p),S=[])}else if(Dt(s,h,o?.ignoreModifiers)||h.keys?.includes("*")){if(o?.ignoreEventWhen?.(s)||$&&n.current)return;if(St(s,h,o?.preventDefault),!ht(s,h,o?.enabled)){W(s);return}T.current(s,h),$||(n.current=!0)}})}},z=s=>{s.code!==void 0&&(Tt(F(s.code)),(o?.keydown===void 0&&o?.keyup!==!0||o?.keydown)&&m(s))},V=s=>{s.code!==void 0&&(Ct(F(s.code)),n.current=!1,o?.keyup&&m(s,!0))},x=u.current||a?.document||document;return x.addEventListener("keyup",V,a?.eventListenerOptions),x.addEventListener("keydown",z,a?.eventListenerOptions),C&&N(d,o?.delimiter).forEach(s=>C.addHotkey(H(s,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),()=>{x.removeEventListener("keyup",V,a?.eventListenerOptions),x.removeEventListener("keydown",z,a?.eventListenerOptions),C&&N(d,o?.delimiter).forEach(s=>C.removeHotkey(H(s,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),S=[],p&&clearTimeout(p)}},[d,o,c]),u}function Et(){var e=g.useRef(!1),t=g.useCallback(function(){return e.current},[]);return g.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var Mt=function(e){e===void 0&&(e={});var t=g.useState(e),r=t[0],i=t[1],u=g.useCallback(function(n){i(function(a){return Object.assign({},a,n instanceof Function?n(a):n)})},[]);return[r,u]},K,X;function Pt(){return X||(X=1,K=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],i=0;i<e.rangeCount;i++)r.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(u){e.addRange(u)}),t&&t.focus()}}),K}var O,Q;function Bt(){if(Q)return O;Q=1;var e=Pt(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function i(n){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,a)}function u(n,a){var d,l,f,T,o,c,C=!1;a||(a={}),d=a.debug||!1;try{f=e(),T=document.createRange(),o=document.getSelection(),c=document.createElement("span"),c.textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(p){if(p.stopPropagation(),a.format)if(p.preventDefault(),typeof p.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=t[a.format]||t.default;window.clipboardData.setData(m,n)}else p.clipboardData.clearData(),p.clipboardData.setData(a.format,n);a.onCopy&&(p.preventDefault(),a.onCopy(p.clipboardData))}),document.body.appendChild(c),T.selectNodeContents(c),o.addRange(T);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");C=!0}catch(p){d&&console.error("unable to copy using execCommand: ",p),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",n),a.onCopy&&a.onCopy(window.clipboardData),C=!0}catch(m){d&&console.error("unable to copy using clipboardData: ",m),d&&console.error("falling back to prompt"),l=i("message"in a?a.message:r),window.prompt(l,n)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(T):o.removeAllRanges()),c&&document.body.removeChild(c),f()}return C}return O=u,O}var Nt=Bt();const Ht=Y.getDefaultExportFromCjs(Nt);var Kt=function(){var e=Et(),t=Mt({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],i=t[1],u=g.useCallback(function(n){if(e()){var a,d;try{if(typeof n!="string"&&typeof n!="number"){var l=new Error("Cannot copy typeof "+typeof n+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}else if(n===""){var l=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}d=n.toString(),a=Ht(d),i({value:d,error:void 0,noUserInteraction:a})}catch(f){i({value:d,error:f,noUserInteraction:a})}}},[]);return[r,u]};function Ot(){const[e,t]=g.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return g.useEffect(()=>{const i=document.documentElement,u=new MutationObserver(()=>{const n=r();t(n)});return u.observe(i,{attributes:!0,attributeFilter:["style"]}),()=>u.disconnect()},[]),e}function ne(){const{resolvedTheme:e,setTheme:t}=J.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Gt(e,t){const{colorMode:r}=ne();return r==="light"?e:t}exports.DateRangePickerField=ie.DateRangePickerField;exports.MoneyInputField=ue.MoneyInputField;exports.MultilineTextInputField=se.MultilineTextInputField;exports.NumberInputField=le.NumberInputField;exports.SearchInputField=ce.SearchInputField;exports.PasswordInputField=de.PasswordInputField;exports.TextInputField=pe.TextInputField;exports.system=ge.system;exports.RichTextInput=Y.RichTextInput;exports.Accordion=me.Accordion;exports.Alert=R.Alert;exports._AlertActions=R.AlertActions;exports._AlertDescription=R.AlertDescription;exports._AlertDismissButton=R.AlertDismissButton;exports._AlertRoot=R.AlertRoot;exports._AlertTitle=R.AlertTitle;exports.Avatar=fe.Avatar;exports.Badge=be.Badge;exports.Box=ye.Box;exports.Button=Te.Button;exports.Calendar=Ce.Calendar;exports.Card=A.Card;exports._CardContent=A.CardContent;exports._CardHeader=A.CardHeader;exports._CardRoot=A.CardRoot;exports.Checkbox=Se.Checkbox;exports.Code=he.Code;exports.CollapsibleMotion=E.CollapsibleMotion;exports._CollapsibleMotionContent=E.CollapsibleMotionContent;exports._CollapsibleMotionRoot=E.CollapsibleMotionRoot;exports._CollapsibleMotionTrigger=E.CollapsibleMotionTrigger;exports.ComboBox=ve.ComboBox;exports.DataTable=q.DataTable;exports.UPDATE_ACTIONS=q.UPDATE_ACTIONS;exports._DataTableBody=q.DataTableBody;exports._DataTableFooter=q.DataTableFooter;exports._DataTableHeader=q.DataTableHeader;exports._DataTableManager=q.DataTableManager;exports._DataTableRoot=q.DataTableRoot;exports._DataTableTable=q.DataTableTable;exports.DateInput=Ie.DateInput;exports.DatePicker=qe.DatePicker;exports.DateRangePicker=we.DateRangePicker;exports.Dialog=De.Dialog;exports.DraggableList=M.DraggableList;exports._DraggableListField=M.DraggableListField;exports._DraggableListItem=M.DraggableListItem;exports._DraggableListRoot=M.DraggableListRoot;exports.Drawer=I.Drawer;exports._DrawerBody=I.DrawerBody;exports._DrawerCloseTrigger=I.DrawerCloseTrigger;exports._DrawerContent=I.DrawerContent;exports._DrawerFooter=I.DrawerFooter;exports._DrawerHeader=I.DrawerHeader;exports._DrawerRoot=I.DrawerRoot;exports._DrawerTitle=I.DrawerTitle;exports._DrawerTrigger=I.DrawerTrigger;exports.FieldErrorTypes=Z.FieldErrorTypes;exports.FieldErrors=Z.FieldErrors;exports.Flex=_e.Flex;exports.FormField=_.FormField;exports._FormFieldDescription=_.FormFieldDescription;exports._FormFieldError=_.FormFieldError;exports._FormFieldInfoBox=_.FormFieldInfoBox;exports._FormFieldInput=_.FormFieldInput;exports._FormFieldLabel=_.FormFieldLabel;exports._FormFieldRoot=_.FormFieldRoot;exports.Grid=Fe.Grid;exports.Group=Re.Group;exports.Heading=ke.Heading;exports.Icon=Le.Icon;exports.IconButton=xe.IconButton;exports.IconToggleButton=Ae.IconToggleButton;exports.Image=Ee.Image;exports.InlineSvg=Me.InlineSvg;exports.Kbd=Pe.Kbd;exports.Link=Be.Link;exports.List=P.List;exports._ListIndicator=P.ListIndicator;exports._ListItem=P.ListItem;exports._ListRoot=P.ListRoot;exports.LoadingSpinner=Ne.LoadingSpinner;exports.LocalizedField=He.LocalizedField;exports.MakeElementFocusable=Ke.MakeElementFocusable;exports.Menu=w.Menu;exports._MenuContent=w.MenuContent;exports._MenuItem=w.MenuItem;exports._MenuRoot=w.MenuRoot;exports._MenuSection=w.MenuSection;exports._MenuSubmenu=w.MenuSubmenu;exports._MenuSubmenuTrigger=w.MenuSubmenuTrigger;exports._MenuTrigger=w.MenuTrigger;exports.MoneyInput=Oe.MoneyInput;exports.MultilineTextInput=Ge.MultilineTextInput;exports.NimbusI18nProvider=Ue.NimbusI18nProvider;exports.NimbusProvider=J.NimbusProvider;exports.NumberInput=je.NumberInput;exports.PageContent=G.PageContent;exports._PageContentColumn=G.PageContentColumn;exports._PageContentRoot=G.PageContentRoot;exports.Pagination=ze.Pagination;exports.PasswordInput=Ve.PasswordInput;exports.ProgressBar=$e.ProgressBar;exports.RadioInput=We.RadioInput;exports.RangeCalendar=Xe.RangeCalendar;exports.ScopedSearchInput=Qe.ScopedSearchInput;exports.SearchInput=Ye.SearchInput;exports.Select=Ze.Select;exports.Separator=Je.Separator;exports.SimpleGrid=et.SimpleGrid;exports.Spacer=tt.Spacer;exports.SplitButton=rt.SplitButton;exports.Stack=ot.Stack;exports.Steps=b.Steps;exports._StepsCompletedContent=b.StepsCompletedContent;exports._StepsContent=b.StepsContent;exports._StepsDescription=b.StepsDescription;exports._StepsIndicator=b.StepsIndicator;exports._StepsItem=b.StepsItem;exports._StepsList=b.StepsList;exports._StepsNextTrigger=b.StepsNextTrigger;exports._StepsNumber=b.StepsNumber;exports._StepsPrevTrigger=b.StepsPrevTrigger;exports._StepsRoot=b.StepsRoot;exports._StepsSeparator=b.StepsSeparator;exports._StepsStatus=b.StepsStatus;exports._StepsTitle=b.StepsTitle;exports._StepsTrigger=b.StepsTrigger;exports.Switch=nt.Switch;exports.Table=y.Table;exports.TableBody=y.TableBody;exports.TableCaption=y.TableCaption;exports.TableCell=y.TableCell;exports.TableColumn=y.TableColumn;exports.TableColumnGroup=y.TableColumnGroup;exports.TableColumnHeader=y.TableColumnHeader;exports.TableFooter=y.TableFooter;exports.TableHeader=y.TableHeader;exports.TableRoot=y.TableRoot;exports.TableRow=y.TableRow;exports.TableScrollArea=y.TableScrollArea;exports.Tabs=k.Tabs;exports._TabsList=k.TabsList;exports._TabsPanel=k.TabsPanel;exports._TabsPanels=k.TabsPanels;exports._TabsRoot=k.TabsRoot;exports._TabsTab=k.TabsTab;exports.TagGroup=at.TagGroup;exports.Text=it.Text;exports.TextInput=ut.TextInput;exports.TimeInput=st.TimeInput;exports.ToastOutlet=lt.ToastOutlet;exports.ToggleButton=ct.ToggleButton;exports.ToggleButtonGroup=U.ToggleButtonGroup;exports._ToggleButtonGroupButton=U.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=U.ToggleButtonGroupRoot;exports.Toolbar=dt.Toolbar;exports.Tooltip=pt.Tooltip;exports.VisuallyHidden=gt.VisuallyHidden;exports._AccordionContent=L.AccordionContent;exports._AccordionHeader=L.AccordionHeader;exports._AccordionHeaderRightContent=L.AccordionHeaderRightContent;exports._AccordionItem=L.AccordionItem;exports._AccordionRoot=L.AccordionRoot;exports.toast=mt.toast;exports.useLocalizedStringFormatter=ft.useLocalizedStringFormatter;exports.useColorMode=ne;exports.useColorModeValue=Gt;exports.useColorScheme=Ot;exports.useCopyToClipboard=Kt;exports.useHotkeys=At;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.es.js
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { D as ke } from "./chunks/date-range-picker-field-
|
|
2
|
-
import { M as Re } from "./chunks/money-input-field-
|
|
3
|
-
import { M as Fe } from "./chunks/multiline-text-input-field-
|
|
4
|
-
import { N as Pe } from "./chunks/number-input-field-
|
|
5
|
-
import { S as Ke } from "./chunks/search-input-field-
|
|
6
|
-
import { P as Oe } from "./chunks/password-input-field-
|
|
7
|
-
import { T as Ue } from "./chunks/text-input-field-
|
|
8
|
-
import { s as je } from "./chunks/index-
|
|
9
|
-
import { g as z } from "./chunks/rich-text-input-
|
|
10
|
-
import { R as Ve } from "./chunks/rich-text-input-
|
|
1
|
+
import { D as ke } from "./chunks/date-range-picker-field-BDiOUnmn.es.js";
|
|
2
|
+
import { M as Re } from "./chunks/money-input-field-rEEb2CMi.es.js";
|
|
3
|
+
import { M as Fe } from "./chunks/multiline-text-input-field-Cm6-CItu.es.js";
|
|
4
|
+
import { N as Pe } from "./chunks/number-input-field-CaaoTp8-.es.js";
|
|
5
|
+
import { S as Ke } from "./chunks/search-input-field-DrdaFmoJ.es.js";
|
|
6
|
+
import { P as Oe } from "./chunks/password-input-field-BtY9xbk4.es.js";
|
|
7
|
+
import { T as Ue } from "./chunks/text-input-field-BvWZkBpU.es.js";
|
|
8
|
+
import { s as je } from "./chunks/index-RkJ27InK.es.js";
|
|
9
|
+
import { g as z } from "./chunks/rich-text-input-BaDQaxfn.es.js";
|
|
10
|
+
import { R as Ve } from "./chunks/rich-text-input-BaDQaxfn.es.js";
|
|
11
11
|
import { useRef as v, useCallback as _, useContext as B, useLayoutEffect as $, useEffect as E, createContext as O, useState as H } from "react";
|
|
12
|
-
import { A as $e } from "./chunks/accordion-
|
|
13
|
-
import { A as Xe, a as Qe, b as Ye, c as Ze, d as Je, e as et } from "./chunks/alert-
|
|
12
|
+
import { A as $e } from "./chunks/accordion-C-_YQL7c.es.js";
|
|
13
|
+
import { A as Xe, a as Qe, b as Ye, c as Ze, d as Je, e as et } from "./chunks/alert-Cq9lnRoX.es.js";
|
|
14
14
|
import { A as rt } from "./chunks/avatar-D559WPRc.es.js";
|
|
15
15
|
import { B as at } from "./chunks/badge-Be-xE-Ke.es.js";
|
|
16
16
|
import { B as st } from "./chunks/box-DuBoAZvq.es.js";
|
|
17
|
-
import { B as ct } from "./chunks/button-
|
|
18
|
-
import { C as ut } from "./chunks/calendar-
|
|
19
|
-
import { C as ft, a as dt, b as mt, c as gt } from "./chunks/card-
|
|
20
|
-
import { C as bt } from "./chunks/checkbox-
|
|
17
|
+
import { B as ct } from "./chunks/button-DXIjvvTs.es.js";
|
|
18
|
+
import { C as ut } from "./chunks/calendar-LmmwixJX.es.js";
|
|
19
|
+
import { C as ft, a as dt, b as mt, c as gt } from "./chunks/card-BbHHaxYz.es.js";
|
|
20
|
+
import { C as bt } from "./chunks/checkbox-BxWAwNQU.es.js";
|
|
21
21
|
import { C as Ct } from "./chunks/code-CN-T5XSw.es.js";
|
|
22
|
-
import { C as ht, a as vt, b as St, c as _t } from "./chunks/collapsible-motion-
|
|
23
|
-
import { C as Dt } from "./chunks/combobox-
|
|
24
|
-
import { D as Lt, U as kt, a as Et, b as Rt, c as At, d as Ft, e as Mt, f as Pt } from "./chunks/data-table
|
|
25
|
-
import { D as Kt } from "./chunks/date-input-
|
|
26
|
-
import { D as Ot } from "./chunks/date-picker-
|
|
27
|
-
import { D as Ut } from "./chunks/date-range-picker-
|
|
28
|
-
import { D as jt } from "./chunks/dialog-
|
|
29
|
-
import { D as Vt, a as zt, b as $t, c as Wt } from "./chunks/draggable-list-
|
|
30
|
-
import { D as Qt, a as Yt, b as Zt, c as Jt, d as er, e as tr, f as rr, g as or, h as ar } from "./chunks/drawer-
|
|
22
|
+
import { C as ht, a as vt, b as St, c as _t } from "./chunks/collapsible-motion-AIoK9G2N.es.js";
|
|
23
|
+
import { C as Dt } from "./chunks/combobox-Cmdt02Xe.es.js";
|
|
24
|
+
import { D as Lt, U as kt, a as Et, b as Rt, c as At, d as Ft, e as Mt, f as Pt } from "./chunks/data-table--JsJDlIu.es.js";
|
|
25
|
+
import { D as Kt } from "./chunks/date-input-CAEzCHiF.es.js";
|
|
26
|
+
import { D as Ot } from "./chunks/date-picker-rd_nVZmF.es.js";
|
|
27
|
+
import { D as Ut } from "./chunks/date-range-picker-DxOz9XVi.es.js";
|
|
28
|
+
import { D as jt } from "./chunks/dialog-C3z6Kirn.es.js";
|
|
29
|
+
import { D as Vt, a as zt, b as $t, c as Wt } from "./chunks/draggable-list-BAl7xvk5.es.js";
|
|
30
|
+
import { D as Qt, a as Yt, b as Zt, c as Jt, d as er, e as tr, f as rr, g as or, h as ar } from "./chunks/drawer-D2wUbDn7.es.js";
|
|
31
31
|
import { F as sr, a as ir } from "./chunks/field-errors-DbRPC8Jb.es.js";
|
|
32
32
|
import { F as lr } from "./chunks/flex-BqxAMF-7.es.js";
|
|
33
|
-
import { F as pr, a as fr, b as dr, c as mr, d as gr, e as yr, f as br } from "./chunks/form-field-
|
|
33
|
+
import { F as pr, a as fr, b as dr, c as mr, d as gr, e as yr, f as br } from "./chunks/form-field-B5MTPG5J.es.js";
|
|
34
34
|
import { G as Cr } from "./chunks/grid-De8qjf98.es.js";
|
|
35
35
|
import { G as hr } from "./chunks/group-tkn9asoK.es.js";
|
|
36
36
|
import { H as Sr } from "./chunks/heading-ezNMcRxO.es.js";
|
|
37
37
|
import { I as wr } from "./chunks/icon-DVW5I_jj.es.js";
|
|
38
|
-
import { I as Ir } from "./chunks/icon-button-
|
|
39
|
-
import { I as kr } from "./chunks/icon-toggle-button-
|
|
38
|
+
import { I as Ir } from "./chunks/icon-button-CsfjzFu5.es.js";
|
|
39
|
+
import { I as kr } from "./chunks/icon-toggle-button-D88M7O7u.es.js";
|
|
40
40
|
import { I as Rr } from "./chunks/image-DRigLU80.es.js";
|
|
41
41
|
import { I as Fr } from "./chunks/inline-svg-D0MU6k2J.es.js";
|
|
42
42
|
import { K as Pr } from "./chunks/kbd-pvGIJN_-.es.js";
|
|
43
43
|
import { L as Kr } from "./chunks/link-B1bi6UkZ.es.js";
|
|
44
|
-
import { L as Or, a as Hr, b as Ur, c as qr } from "./chunks/list-
|
|
44
|
+
import { L as Or, a as Hr, b as Ur, c as qr } from "./chunks/list-IEZDjRJJ.es.js";
|
|
45
45
|
import { L as Gr } from "./chunks/loading-spinner-DQ33Zrq8.es.js";
|
|
46
|
-
import { L as zr } from "./chunks/localized-field-
|
|
46
|
+
import { L as zr } from "./chunks/localized-field-B1kgb4OI.es.js";
|
|
47
47
|
import { M as Wr } from "./chunks/make-element-focusable-C7F_esXN.es.js";
|
|
48
|
-
import { M as Qr, a as Yr, b as Zr, c as Jr, d as eo, e as to, f as ro, g as oo } from "./chunks/menu-
|
|
49
|
-
import { M as no } from "./chunks/money-input-
|
|
50
|
-
import { M as io } from "./chunks/multiline-text-input-
|
|
48
|
+
import { M as Qr, a as Yr, b as Zr, c as Jr, d as eo, e as to, f as ro, g as oo } from "./chunks/menu-B74NTzak.es.js";
|
|
49
|
+
import { M as no } from "./chunks/money-input-Cug0wQqR.es.js";
|
|
50
|
+
import { M as io } from "./chunks/multiline-text-input-Detn1n1o.es.js";
|
|
51
51
|
import { N as lo } from "./chunks/nimbus-i18n-provider-C-ceyXCZ.es.js";
|
|
52
|
-
import { z as W } from "./chunks/nimbus-provider-
|
|
53
|
-
import { N as po } from "./chunks/nimbus-provider-
|
|
54
|
-
import { N as mo } from "./chunks/number-input-
|
|
52
|
+
import { z as W } from "./chunks/nimbus-provider-CojoQhlb.es.js";
|
|
53
|
+
import { N as po } from "./chunks/nimbus-provider-CojoQhlb.es.js";
|
|
54
|
+
import { N as mo } from "./chunks/number-input-CLQFjFkr.es.js";
|
|
55
55
|
import { P as yo, a as bo, b as xo } from "./chunks/page-content-YTz6Jfmj.es.js";
|
|
56
|
-
import { P as To } from "./chunks/pagination-
|
|
57
|
-
import { P as vo } from "./chunks/password-input-
|
|
58
|
-
import { P as _o } from "./chunks/progress-bar-
|
|
59
|
-
import { R as Do } from "./chunks/radio-input-
|
|
60
|
-
import { R as Lo } from "./chunks/range-calendar-
|
|
61
|
-
import { S as Eo } from "./chunks/scoped-search-input-
|
|
62
|
-
import { S as Ao } from "./chunks/search-input-
|
|
63
|
-
import { S as Mo } from "./chunks/select-
|
|
64
|
-
import { S as No } from "./chunks/separator-
|
|
56
|
+
import { P as To } from "./chunks/pagination-C0C6zhSW.es.js";
|
|
57
|
+
import { P as vo } from "./chunks/password-input-Ywp-3QnF.es.js";
|
|
58
|
+
import { P as _o } from "./chunks/progress-bar-DilKPVGE.es.js";
|
|
59
|
+
import { R as Do } from "./chunks/radio-input-HXIV8OYv.es.js";
|
|
60
|
+
import { R as Lo } from "./chunks/range-calendar-DgQpgoGc.es.js";
|
|
61
|
+
import { S as Eo } from "./chunks/scoped-search-input-eZUvYoDK.es.js";
|
|
62
|
+
import { S as Ao } from "./chunks/search-input-DnxYNGTT.es.js";
|
|
63
|
+
import { S as Mo } from "./chunks/select-CnGjAwu_.es.js";
|
|
64
|
+
import { S as No } from "./chunks/separator-C_2Z6v9B.es.js";
|
|
65
65
|
import { S as Bo } from "./chunks/simple-grid-DU5v66TG.es.js";
|
|
66
66
|
import { S as Ho } from "./chunks/spacer-DayymcMy.es.js";
|
|
67
|
-
import { S as qo } from "./chunks/split-button-
|
|
67
|
+
import { S as qo } from "./chunks/split-button-rREKAwlx.es.js";
|
|
68
68
|
import { S as Go } from "./chunks/stack-CoNreM7B.es.js";
|
|
69
|
-
import { S as zo, a as $o, b as Wo, c as Xo, d as Qo, e as Yo, f as Zo, g as Jo, h as ea, i as ta, j as ra, k as oa, l as aa, m as na, n as sa } from "./chunks/steps-
|
|
70
|
-
import { S as ca } from "./chunks/switch-
|
|
71
|
-
import { T as ua, a as pa, b as fa, c as da, d as ma, e as ga, f as ya, g as ba, h as xa, i as Ca, j as Ta, k as ha } from "./chunks/table-
|
|
72
|
-
import { T as Sa, a as _a, b as wa, c as Da, d as Ia, e as La } from "./chunks/tabs-
|
|
73
|
-
import { T as Ea } from "./chunks/tag-group-
|
|
69
|
+
import { S as zo, a as $o, b as Wo, c as Xo, d as Qo, e as Yo, f as Zo, g as Jo, h as ea, i as ta, j as ra, k as oa, l as aa, m as na, n as sa } from "./chunks/steps-CyV83SJa.es.js";
|
|
70
|
+
import { S as ca } from "./chunks/switch-DQRh6tor.es.js";
|
|
71
|
+
import { T as ua, a as pa, b as fa, c as da, d as ma, e as ga, f as ya, g as ba, h as xa, i as Ca, j as Ta, k as ha } from "./chunks/table-DjkenPCz.es.js";
|
|
72
|
+
import { T as Sa, a as _a, b as wa, c as Da, d as Ia, e as La } from "./chunks/tabs-C91cWaUm.es.js";
|
|
73
|
+
import { T as Ea } from "./chunks/tag-group-BKD3mqCz.es.js";
|
|
74
74
|
import { T as Aa } from "./chunks/text-61Btuuxn.es.js";
|
|
75
|
-
import { T as Ma } from "./chunks/text-input-
|
|
76
|
-
import { T as Na } from "./chunks/time-input-
|
|
77
|
-
import { T as Ba } from "./chunks/toast.outlet-
|
|
78
|
-
import { T as Ha } from "./chunks/toggle-button-
|
|
75
|
+
import { T as Ma } from "./chunks/text-input-BF-iYc24.es.js";
|
|
76
|
+
import { T as Na } from "./chunks/time-input-DGV0Tcii.es.js";
|
|
77
|
+
import { T as Ba } from "./chunks/toast.outlet-BrMQc1Xs.es.js";
|
|
78
|
+
import { T as Ha } from "./chunks/toggle-button-YjU1LD3Z.es.js";
|
|
79
79
|
import { T as qa, a as ja, b as Ga } from "./chunks/toggle-button-group-DONqa5F0.es.js";
|
|
80
|
-
import { T as za } from "./chunks/toolbar-
|
|
80
|
+
import { T as za } from "./chunks/toolbar-BoDdhKeP.es.js";
|
|
81
81
|
import { T as Wa } from "./chunks/tooltip-qXiO_TDp.es.js";
|
|
82
82
|
import { V as Qa } from "./chunks/visually-hidden-D6p_jGM-.es.js";
|
|
83
|
-
import { A as Za, a as Ja, b as en, c as tn, d as rn } from "./chunks/accordion.content-
|
|
83
|
+
import { A as Za, a as Ja, b as en, c as tn, d as rn } from "./chunks/accordion.content-CZDni7Eh.es.js";
|
|
84
84
|
import { t as an } from "./chunks/toast.manager-Dj0xhoar.es.js";
|
|
85
85
|
import "react/jsx-runtime";
|
|
86
86
|
import { u as sn } from "./chunks/normalize-messages-BN9BAFXe.es.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools/nimbus",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"type": "module",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@vueless/storybook-dark-mode": "^10.0.7",
|
|
89
89
|
"apca-w3": "^0.1.9",
|
|
90
90
|
"axe-core": "^4.11.0",
|
|
91
|
-
"dompurify": "^3.3.
|
|
91
|
+
"dompurify": "^3.3.3",
|
|
92
92
|
"glob": "^13.0.6",
|
|
93
93
|
"jsdom": "^28.1.0",
|
|
94
94
|
"playwright": "^1.58.2",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
"vite-plugin-dts": "^4.5.4",
|
|
106
106
|
"vite-tsconfig-paths": "^6.1.1",
|
|
107
107
|
"vitest": "^4.0.18",
|
|
108
|
-
"@commercetools/nimbus-design-token-ts-plugin": "^2.9.
|
|
109
|
-
"@commercetools/nimbus-
|
|
110
|
-
"@commercetools/nimbus-
|
|
108
|
+
"@commercetools/nimbus-design-token-ts-plugin": "^2.9.1",
|
|
109
|
+
"@commercetools/nimbus-tokens": "^2.9.1",
|
|
110
|
+
"@commercetools/nimbus-icons": "^2.9.1"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"@chakra-ui/react": "^3.34.0",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"slate-history": "^0.115.0",
|
|
117
117
|
"slate-hyperscript": "^0.115.0",
|
|
118
118
|
"slate-react": "^0.123.0",
|
|
119
|
-
"@commercetools/nimbus-icons": "^2.9.
|
|
120
|
-
"@commercetools/nimbus-tokens": "^2.9.
|
|
119
|
+
"@commercetools/nimbus-icons": "^2.9.1",
|
|
120
|
+
"@commercetools/nimbus-tokens": "^2.9.1"
|
|
121
121
|
},
|
|
122
122
|
"scripts": {
|
|
123
123
|
"build": "pnpm run build-theme-typings && pnpm run build:lib",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-BcNFX196.es.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/styled-system\";\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: \"nimbusFormField\",\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 \"@/utils\";\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.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\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} data-required={isRequired}>\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 colorPalette=\"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 flexShrink=\"0\"\n mt=\"50\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\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\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\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\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\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":";;;;;;;;;;AA6BO,MAAMA,IAAmB,gBAAAC,EAAoC;AAAA,EAClE,SAAS;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAA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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBN,OAAO0C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBP,OAAOG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqBP,aAAaE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBb,OAAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuBP,SAASE;AACX;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react"),l=require("react/jsx-runtime"),R=require("./merge-refs-D8liJcZz.cjs.js"),k=require("@chakra-ui/react/styled-system"),x=require("./Dialog-BwUsRNPT.cjs.js"),P=require("@commercetools/nimbus-icons"),w=require("./useObjectRef-4v2MxSjQ.cjs.js"),z=require("./useField-D0J7lepl.cjs.js"),F=require("./box-CWni3A32.cjs.js"),D=require("./icon-button-BV_okpOb.cjs.js"),u=t.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),{withProvider:V,withContext:p}=k.createSlotRecipeContext({key:"nimbusFormField"}),_=V("div","root"),A=p("div","label"),H=p("div","input"),O=p("div","description"),G=p("div","error"),J=p("div","popover"),m=function({ref:s,id:o,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d,children:E,...v}){const y=t.useRef(null),B=w.$df56164dff5785e2$export$4338b53315abf666(R.mergeRefs(y,s)),[e,C]=t.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),g=t.useMemo(()=>{const i={id:o,description:e.description,errorMessage:e.error};return e.label?i.label=e.label:(i["aria-label"]="empty-label",i["aria-labelledby"]="empty-label"),i},[o,e.description,e.error,e.label]),{labelProps:I,fieldProps:$,descriptionProps:N,errorMessageProps:M}=z.$2baaea4c71418dea$export$294aa081a6c6f55d(g);t.useEffect(()=>{C(i=>({...i,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}))},[r,c,a,d]);const q=t.useMemo(()=>({...$,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),[$,r,c,a,d]),L=t.useMemo(()=>({context:e,setContext:C}),[e]);return l.jsx(u.Provider,{value:L,children:l.jsxs(_,{ref:B,...v,children:[e.label&&l.jsxs(A,{...e.labelSlotProps,children:[l.jsxs("label",{...I,"data-required":c,children:[e.label,c&&l.jsx("sup",{"aria-hidden":"true",children:"*"})]}),e.info&&l.jsxs(x.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[l.jsx(F.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:l.jsx(F.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:l.jsx(D.IconButton,{"aria-label":"__MORE INFO",size:"2xs",colorPalette:"info",variant:"link",children:l.jsx(P.HelpOutline,{})})})}),l.jsx(x.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:l.jsx(J,{asChild:!0,children:l.jsx(x.$de32f1b87079253c$export$3ddf2d174ce01153,{children:l.jsx(F.Box,{p:"300",children:e.info})})})})]})]}),e.input&&l.jsx(H,{...e.inputSlotProps,children:t.Children.map(e.input,i=>t.isValidElement(i)?t.cloneElement(i,q):i)}),e.description&&l.jsx(O,{...N,...e.descriptionSlotProps,children:e.description}),r&&e.error&&l.jsxs(G,{...M,...e.errorSlotProps,children:[l.jsx(F.Box,{as:P.ErrorOutline,display:"inline-flex",boxSize:"400",flexShrink:"0",mt:"50"}),e.error]}),E]})})};m.displayName="FormField.Root";const f=({children:n,...s})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,label:n,labelSlotProps:s})),()=>{o(r=>({...r,label:null,labelSlotProps:void 0}))}),[n,o]),null};f.displayName="FormField.Label";const b=({children:n,...s})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>{o(r=>({...r,input:n,inputSlotProps:s}))},[n,o]),null};b.displayName="FormField.Input";const h=({children:n,...s})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,description:n,descriptionSlotProps:s})),()=>{o(r=>({...r,description:null,descriptionSlotProps:void 0}))}),[n,o]),null};h.displayName="FormField.Description";const j=({children:n,...s})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,error:n,errorSlotProps:s})),()=>{o(r=>({...r,error:null,errorSlotProps:void 0}))}),[n,o]),null};j.displayName="FormField.Error";const S=({children:n})=>{const{setContext:s}=t.useContext(u);return t.useEffect(()=>(s(o=>({...o,info:n})),()=>{s(o=>({...o,info:null}))}),[n,s]),null};S.displayName="FormField.InfoBox";const K={Root:m,Label:f,Input:b,Description:h,Error:j,InfoBox:S};exports.FormField=K;exports.FormFieldDescription=h;exports.FormFieldError=j;exports.FormFieldInfoBox=S;exports.FormFieldInput=b;exports.FormFieldLabel=f;exports.FormFieldRoot=m;
|
|
2
|
-
//# sourceMappingURL=form-field-TY4tZsBZ.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-TY4tZsBZ.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/styled-system\";\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: \"nimbusFormField\",\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 \"@/utils\";\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.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\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} data-required={isRequired}>\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 colorPalette=\"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 flexShrink=\"0\"\n mt=\"50\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\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 // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\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\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\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\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\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":"4YA6BaA,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,iBACP,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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