@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.
Files changed (351) hide show
  1. package/dist/chunks/{accordion-BScTN0pM.cjs.js → accordion-BwakRCIn.cjs.js} +2 -2
  2. package/dist/chunks/{accordion-BScTN0pM.cjs.js.map → accordion-BwakRCIn.cjs.js.map} +1 -1
  3. package/dist/chunks/{accordion-DJNZyfL7.es.js → accordion-C-_YQL7c.es.js} +2 -2
  4. package/dist/chunks/{accordion-DJNZyfL7.es.js.map → accordion-C-_YQL7c.es.js.map} +1 -1
  5. package/dist/chunks/{accordion.content-CbWvTo-e.cjs.js → accordion.content-BBJezL4-.cjs.js} +2 -2
  6. package/dist/chunks/{accordion.content-CbWvTo-e.cjs.js.map → accordion.content-BBJezL4-.cjs.js.map} +1 -1
  7. package/dist/chunks/{accordion.content-Df8zRXv1.es.js → accordion.content-CZDni7Eh.es.js} +2 -2
  8. package/dist/chunks/{accordion.content-Df8zRXv1.es.js.map → accordion.content-CZDni7Eh.es.js.map} +1 -1
  9. package/dist/chunks/{alert-TZJpmSZi.es.js → alert-Cq9lnRoX.es.js} +2 -2
  10. package/dist/chunks/{alert-TZJpmSZi.es.js.map → alert-Cq9lnRoX.es.js.map} +1 -1
  11. package/dist/chunks/{alert-Bf1eVQu0.cjs.js → alert-DDLTGVRZ.cjs.js} +2 -2
  12. package/dist/chunks/{alert-Bf1eVQu0.cjs.js.map → alert-DDLTGVRZ.cjs.js.map} +1 -1
  13. package/dist/chunks/{button-CAzKhQhT.cjs.js → button-DJX_lPnW.cjs.js} +2 -2
  14. package/dist/chunks/{button-CAzKhQhT.cjs.js.map → button-DJX_lPnW.cjs.js.map} +1 -1
  15. package/dist/chunks/{button-C4KD0BhM.es.js → button-DXIjvvTs.es.js} +2 -2
  16. package/dist/chunks/{button-C4KD0BhM.es.js.map → button-DXIjvvTs.es.js.map} +1 -1
  17. package/dist/chunks/{calendar-C8d8whAA.cjs.js → calendar-CH8P_-BX.cjs.js} +2 -2
  18. package/dist/chunks/{calendar-C8d8whAA.cjs.js.map → calendar-CH8P_-BX.cjs.js.map} +1 -1
  19. package/dist/chunks/{calendar-BUMjfnCM.es.js → calendar-LmmwixJX.es.js} +3 -3
  20. package/dist/chunks/{calendar-BUMjfnCM.es.js.map → calendar-LmmwixJX.es.js.map} +1 -1
  21. package/dist/chunks/{card-CJhECjUb.es.js → card-BbHHaxYz.es.js} +2 -2
  22. package/dist/chunks/{card-CJhECjUb.es.js.map → card-BbHHaxYz.es.js.map} +1 -1
  23. package/dist/chunks/{card-C6XmGdIp.cjs.js → card-Ch9VNY_a.cjs.js} +2 -2
  24. package/dist/chunks/{card-C6XmGdIp.cjs.js.map → card-Ch9VNY_a.cjs.js.map} +1 -1
  25. package/dist/chunks/{checkbox-DRxunzAe.es.js → checkbox-BxWAwNQU.es.js} +2 -2
  26. package/dist/chunks/{checkbox-DRxunzAe.es.js.map → checkbox-BxWAwNQU.es.js.map} +1 -1
  27. package/dist/chunks/{checkbox-1lqXPqlH.cjs.js → checkbox-DAV6MCao.cjs.js} +2 -2
  28. package/dist/chunks/{checkbox-1lqXPqlH.cjs.js.map → checkbox-DAV6MCao.cjs.js.map} +1 -1
  29. package/dist/chunks/{collapsible-motion-Dd4U5qdn.es.js → collapsible-motion-AIoK9G2N.es.js} +2 -2
  30. package/dist/chunks/{collapsible-motion-Dd4U5qdn.es.js.map → collapsible-motion-AIoK9G2N.es.js.map} +1 -1
  31. package/dist/chunks/{collapsible-motion-5siO08MB.cjs.js → collapsible-motion-D2LhZm44.cjs.js} +2 -2
  32. package/dist/chunks/{collapsible-motion-5siO08MB.cjs.js.map → collapsible-motion-D2LhZm44.cjs.js.map} +1 -1
  33. package/dist/chunks/{combobox-BWSQAYPQ.es.js → combobox-Cmdt02Xe.es.js} +4 -4
  34. package/dist/chunks/{combobox-BWSQAYPQ.es.js.map → combobox-Cmdt02Xe.es.js.map} +1 -1
  35. package/dist/chunks/{combobox-D3kJCGUw.cjs.js → combobox-DLBPqKDP.cjs.js} +2 -2
  36. package/dist/chunks/{combobox-D3kJCGUw.cjs.js.map → combobox-DLBPqKDP.cjs.js.map} +1 -1
  37. package/dist/chunks/{data-table-8L4TOSCO.es.js → data-table--JsJDlIu.es.js} +12 -12
  38. package/dist/chunks/{data-table-8L4TOSCO.es.js.map → data-table--JsJDlIu.es.js.map} +1 -1
  39. package/dist/chunks/{data-table-BMAW6iyx.cjs.js → data-table-C8d2rMr6.cjs.js} +2 -2
  40. package/dist/chunks/{data-table-BMAW6iyx.cjs.js.map → data-table-C8d2rMr6.cjs.js.map} +1 -1
  41. package/dist/chunks/{date-input-CN9SKsEo.cjs.js → date-input-BQc0l8mE.cjs.js} +2 -2
  42. package/dist/chunks/{date-input-CN9SKsEo.cjs.js.map → date-input-BQc0l8mE.cjs.js.map} +1 -1
  43. package/dist/chunks/{date-input-DbihYBK7.es.js → date-input-CAEzCHiF.es.js} +3 -3
  44. package/dist/chunks/{date-input-DbihYBK7.es.js.map → date-input-CAEzCHiF.es.js.map} +1 -1
  45. package/dist/chunks/{date-picker-BrwUBLzY.cjs.js → date-picker-ByrTp_Rw.cjs.js} +2 -2
  46. package/dist/chunks/{date-picker-BrwUBLzY.cjs.js.map → date-picker-ByrTp_Rw.cjs.js.map} +1 -1
  47. package/dist/chunks/{date-picker-C6PSx6wa.es.js → date-picker-rd_nVZmF.es.js} +7 -7
  48. package/dist/chunks/{date-picker-C6PSx6wa.es.js.map → date-picker-rd_nVZmF.es.js.map} +1 -1
  49. package/dist/chunks/{date-range-picker-DF3rmWAx.cjs.js → date-range-picker-CAGxvvrV.cjs.js} +2 -2
  50. package/dist/chunks/{date-range-picker-DF3rmWAx.cjs.js.map → date-range-picker-CAGxvvrV.cjs.js.map} +1 -1
  51. package/dist/chunks/{date-range-picker-NCpnIadb.es.js → date-range-picker-DxOz9XVi.es.js} +7 -7
  52. package/dist/chunks/{date-range-picker-NCpnIadb.es.js.map → date-range-picker-DxOz9XVi.es.js.map} +1 -1
  53. package/dist/chunks/{date-range-picker-field-DnEPJBTf.cjs.js → date-range-picker-field-B74g7riR.cjs.js} +2 -2
  54. package/dist/chunks/{date-range-picker-field-DnEPJBTf.cjs.js.map → date-range-picker-field-B74g7riR.cjs.js.map} +1 -1
  55. package/dist/chunks/{date-range-picker-field-4OMHZSww.es.js → date-range-picker-field-BDiOUnmn.es.js} +3 -3
  56. package/dist/chunks/{date-range-picker-field-4OMHZSww.es.js.map → date-range-picker-field-BDiOUnmn.es.js.map} +1 -1
  57. package/dist/chunks/{dialog-7MIk-7Ft.es.js → dialog-C3z6Kirn.es.js} +3 -3
  58. package/dist/chunks/{dialog-7MIk-7Ft.es.js.map → dialog-C3z6Kirn.es.js.map} +1 -1
  59. package/dist/chunks/{dialog-uwBRMvUN.cjs.js → dialog-DL7O7cV3.cjs.js} +2 -2
  60. package/dist/chunks/{dialog-uwBRMvUN.cjs.js.map → dialog-DL7O7cV3.cjs.js.map} +1 -1
  61. package/dist/chunks/{draggable-list-2ZEDpAqd.es.js → draggable-list-BAl7xvk5.es.js} +5 -5
  62. package/dist/chunks/{draggable-list-2ZEDpAqd.es.js.map → draggable-list-BAl7xvk5.es.js.map} +1 -1
  63. package/dist/chunks/{draggable-list-9vFa6LUC.cjs.js → draggable-list-CRGsrAk4.cjs.js} +2 -2
  64. package/dist/chunks/{draggable-list-9vFa6LUC.cjs.js.map → draggable-list-CRGsrAk4.cjs.js.map} +1 -1
  65. package/dist/chunks/{drawer-DlAHFB8k.cjs.js → drawer-B0Zbi6sB.cjs.js} +2 -2
  66. package/dist/chunks/{drawer-DlAHFB8k.cjs.js.map → drawer-B0Zbi6sB.cjs.js.map} +1 -1
  67. package/dist/chunks/{drawer-CesM9R4I.es.js → drawer-D2wUbDn7.es.js} +4 -4
  68. package/dist/chunks/{drawer-CesM9R4I.es.js.map → drawer-D2wUbDn7.es.js.map} +1 -1
  69. package/dist/chunks/{extract-style-props-DD3XZzbq.es.js → extract-style-props-BtirWJSO.es.js} +2 -2
  70. package/dist/chunks/{extract-style-props-DD3XZzbq.es.js.map → extract-style-props-BtirWJSO.es.js.map} +1 -1
  71. package/dist/chunks/{extract-style-props-7Kq9mybq.cjs.js → extract-style-props-CidMHCzx.cjs.js} +2 -2
  72. package/dist/chunks/{extract-style-props-7Kq9mybq.cjs.js.map → extract-style-props-CidMHCzx.cjs.js.map} +1 -1
  73. package/dist/chunks/form-field--e_9psca.cjs.js +2 -0
  74. package/dist/chunks/form-field--e_9psca.cjs.js.map +1 -0
  75. package/dist/chunks/{form-field-BcNFX196.es.js → form-field-B5MTPG5J.es.js} +107 -112
  76. package/dist/chunks/form-field-B5MTPG5J.es.js.map +1 -0
  77. package/dist/chunks/{icon-button-BV_okpOb.cjs.js → icon-button-B-yfUEQl.cjs.js} +2 -2
  78. package/dist/chunks/{icon-button-BV_okpOb.cjs.js.map → icon-button-B-yfUEQl.cjs.js.map} +1 -1
  79. package/dist/chunks/{icon-button-CwI7ZK2q.es.js → icon-button-CsfjzFu5.es.js} +2 -2
  80. package/dist/chunks/{icon-button-CwI7ZK2q.es.js.map → icon-button-CsfjzFu5.es.js.map} +1 -1
  81. package/dist/chunks/{icon-toggle-button-zsbPyHd7.cjs.js → icon-toggle-button-Bg8u0Y6z.cjs.js} +2 -2
  82. package/dist/chunks/{icon-toggle-button-zsbPyHd7.cjs.js.map → icon-toggle-button-Bg8u0Y6z.cjs.js.map} +1 -1
  83. package/dist/chunks/{icon-toggle-button-DusSXhr7.es.js → icon-toggle-button-D88M7O7u.es.js} +2 -2
  84. package/dist/chunks/{icon-toggle-button-DusSXhr7.es.js.map → icon-toggle-button-D88M7O7u.es.js.map} +1 -1
  85. package/dist/chunks/{index-D8ffoMG1.cjs.js → index-P2sPTZVQ.cjs.js} +2 -2
  86. package/dist/chunks/index-P2sPTZVQ.cjs.js.map +1 -0
  87. package/dist/chunks/{index-CbPHv6Ml.es.js → index-RkJ27InK.es.js} +5 -3
  88. package/dist/chunks/index-RkJ27InK.es.js.map +1 -0
  89. package/dist/chunks/{list-CftBWdp5.cjs.js → list-DJWmJm0u.cjs.js} +2 -2
  90. package/dist/chunks/{list-CftBWdp5.cjs.js.map → list-DJWmJm0u.cjs.js.map} +1 -1
  91. package/dist/chunks/{list-BFURlArt.es.js → list-IEZDjRJJ.es.js} +2 -2
  92. package/dist/chunks/{list-BFURlArt.es.js.map → list-IEZDjRJJ.es.js.map} +1 -1
  93. package/dist/chunks/{localized-field-CQ_ejsDF.es.js → localized-field-B1kgb4OI.es.js} +8 -8
  94. package/dist/chunks/{localized-field-CQ_ejsDF.es.js.map → localized-field-B1kgb4OI.es.js.map} +1 -1
  95. package/dist/chunks/{localized-field-C24LwqjD.cjs.js → localized-field-BecRbjT7.cjs.js} +2 -2
  96. package/dist/chunks/{localized-field-C24LwqjD.cjs.js.map → localized-field-BecRbjT7.cjs.js.map} +1 -1
  97. package/dist/chunks/{menu-CgG__utb.es.js → menu-B74NTzak.es.js} +2 -2
  98. package/dist/chunks/{menu-CgG__utb.es.js.map → menu-B74NTzak.es.js.map} +1 -1
  99. package/dist/chunks/{menu-DdPHozye.cjs.js → menu-D-1juZPP.cjs.js} +2 -2
  100. package/dist/chunks/{menu-DdPHozye.cjs.js.map → menu-D-1juZPP.cjs.js.map} +1 -1
  101. package/dist/chunks/{money-input-B3rZIIip.cjs.js → money-input-BRhRkDWj.cjs.js} +2 -2
  102. package/dist/chunks/{money-input-B3rZIIip.cjs.js.map → money-input-BRhRkDWj.cjs.js.map} +1 -1
  103. package/dist/chunks/{money-input-BVSUW0mV.es.js → money-input-Cug0wQqR.es.js} +5 -5
  104. package/dist/chunks/{money-input-BVSUW0mV.es.js.map → money-input-Cug0wQqR.es.js.map} +1 -1
  105. package/dist/chunks/{money-input-field-m1j1DLSq.cjs.js → money-input-field-D-BXukz8.cjs.js} +2 -2
  106. package/dist/chunks/{money-input-field-m1j1DLSq.cjs.js.map → money-input-field-D-BXukz8.cjs.js.map} +1 -1
  107. package/dist/chunks/{money-input-field-wTLEvYtD.es.js → money-input-field-rEEb2CMi.es.js} +3 -3
  108. package/dist/chunks/{money-input-field-wTLEvYtD.es.js.map → money-input-field-rEEb2CMi.es.js.map} +1 -1
  109. package/dist/chunks/{multiline-text-input-C3FdwmZc.cjs.js → multiline-text-input-CsSsluTl.cjs.js} +2 -2
  110. package/dist/chunks/{multiline-text-input-C3FdwmZc.cjs.js.map → multiline-text-input-CsSsluTl.cjs.js.map} +1 -1
  111. package/dist/chunks/{multiline-text-input-AHuJMS1C.es.js → multiline-text-input-Detn1n1o.es.js} +3 -3
  112. package/dist/chunks/{multiline-text-input-AHuJMS1C.es.js.map → multiline-text-input-Detn1n1o.es.js.map} +1 -1
  113. package/dist/chunks/{multiline-text-input-field-CIaHBNTp.cjs.js → multiline-text-input-field-C3HUTzQ-.cjs.js} +2 -2
  114. package/dist/chunks/{multiline-text-input-field-CIaHBNTp.cjs.js.map → multiline-text-input-field-C3HUTzQ-.cjs.js.map} +1 -1
  115. package/dist/chunks/{multiline-text-input-field-Cn3WyOO9.es.js → multiline-text-input-field-Cm6-CItu.es.js} +3 -3
  116. package/dist/chunks/{multiline-text-input-field-Cn3WyOO9.es.js.map → multiline-text-input-field-Cm6-CItu.es.js.map} +1 -1
  117. package/dist/chunks/{nimbus-provider-DZt7Dxqv.es.js → nimbus-provider-CojoQhlb.es.js} +3 -3
  118. package/dist/chunks/{nimbus-provider-DZt7Dxqv.es.js.map → nimbus-provider-CojoQhlb.es.js.map} +1 -1
  119. package/dist/chunks/{nimbus-provider-CdfH64_b.cjs.js → nimbus-provider-DxWk6R7d.cjs.js} +2 -2
  120. package/dist/chunks/{nimbus-provider-CdfH64_b.cjs.js.map → nimbus-provider-DxWk6R7d.cjs.js.map} +1 -1
  121. package/dist/chunks/{number-input-5fI6bo_C.es.js → number-input-CLQFjFkr.es.js} +3 -3
  122. package/dist/chunks/{number-input-5fI6bo_C.es.js.map → number-input-CLQFjFkr.es.js.map} +1 -1
  123. package/dist/chunks/{number-input-CCHDH_Ql.cjs.js → number-input-CSByUbOI.cjs.js} +2 -2
  124. package/dist/chunks/{number-input-CCHDH_Ql.cjs.js.map → number-input-CSByUbOI.cjs.js.map} +1 -1
  125. package/dist/chunks/{number-input-field-Dv5zCbln.es.js → number-input-field-CaaoTp8-.es.js} +3 -3
  126. package/dist/chunks/{number-input-field-Dv5zCbln.es.js.map → number-input-field-CaaoTp8-.es.js.map} +1 -1
  127. package/dist/chunks/{number-input-field-BEsVOIbM.cjs.js → number-input-field-CqNKEsDn.cjs.js} +2 -2
  128. package/dist/chunks/{number-input-field-BEsVOIbM.cjs.js.map → number-input-field-CqNKEsDn.cjs.js.map} +1 -1
  129. package/dist/chunks/{pagination-CoOO13j7.es.js → pagination-C0C6zhSW.es.js} +4 -4
  130. package/dist/chunks/{pagination-CoOO13j7.es.js.map → pagination-C0C6zhSW.es.js.map} +1 -1
  131. package/dist/chunks/{pagination-BpNjPrUa.cjs.js → pagination-Cjxc2nEn.cjs.js} +2 -2
  132. package/dist/chunks/{pagination-BpNjPrUa.cjs.js.map → pagination-Cjxc2nEn.cjs.js.map} +1 -1
  133. package/dist/chunks/{password-input-C1yj2l-t.cjs.js → password-input-DQTA3fE3.cjs.js} +2 -2
  134. package/dist/chunks/{password-input-C1yj2l-t.cjs.js.map → password-input-DQTA3fE3.cjs.js.map} +1 -1
  135. package/dist/chunks/{password-input-oUqWPfJ5.es.js → password-input-Ywp-3QnF.es.js} +3 -3
  136. package/dist/chunks/{password-input-oUqWPfJ5.es.js.map → password-input-Ywp-3QnF.es.js.map} +1 -1
  137. package/dist/chunks/{password-input-field-CxkrPIuf.cjs.js → password-input-field-54xe-x37.cjs.js} +2 -2
  138. package/dist/chunks/{password-input-field-CxkrPIuf.cjs.js.map → password-input-field-54xe-x37.cjs.js.map} +1 -1
  139. package/dist/chunks/{password-input-field-BqcNoRR_.es.js → password-input-field-BtY9xbk4.es.js} +3 -3
  140. package/dist/chunks/{password-input-field-BqcNoRR_.es.js.map → password-input-field-BtY9xbk4.es.js.map} +1 -1
  141. package/dist/chunks/{progress-bar-B8Z0iZIg.cjs.js → progress-bar-CgDUGgVa.cjs.js} +2 -2
  142. package/dist/chunks/{progress-bar-B8Z0iZIg.cjs.js.map → progress-bar-CgDUGgVa.cjs.js.map} +1 -1
  143. package/dist/chunks/{progress-bar-DF06rCPA.es.js → progress-bar-DilKPVGE.es.js} +2 -2
  144. package/dist/chunks/{progress-bar-DF06rCPA.es.js.map → progress-bar-DilKPVGE.es.js.map} +1 -1
  145. package/dist/chunks/{radio-input-DeQk883P.cjs.js → radio-input-DINDV994.cjs.js} +2 -2
  146. package/dist/chunks/{radio-input-DeQk883P.cjs.js.map → radio-input-DINDV994.cjs.js.map} +1 -1
  147. package/dist/chunks/{radio-input-C18hFGFa.es.js → radio-input-HXIV8OYv.es.js} +3 -3
  148. package/dist/chunks/{radio-input-C18hFGFa.es.js.map → radio-input-HXIV8OYv.es.js.map} +1 -1
  149. package/dist/chunks/{range-calendar-xyzRk9tN.cjs.js → range-calendar-5gXFI3rg.cjs.js} +2 -2
  150. package/dist/chunks/{range-calendar-xyzRk9tN.cjs.js.map → range-calendar-5gXFI3rg.cjs.js.map} +1 -1
  151. package/dist/chunks/{range-calendar-BOkdgYw0.es.js → range-calendar-DgQpgoGc.es.js} +4 -4
  152. package/dist/chunks/{range-calendar-BOkdgYw0.es.js.map → range-calendar-DgQpgoGc.es.js.map} +1 -1
  153. package/dist/chunks/{rich-text-input-DLgk2NgC.es.js → rich-text-input-BaDQaxfn.es.js} +8 -8
  154. package/dist/chunks/{rich-text-input-DLgk2NgC.es.js.map → rich-text-input-BaDQaxfn.es.js.map} +1 -1
  155. package/dist/chunks/{rich-text-input-kk9rtBb2.cjs.js → rich-text-input-IpGXnBKy.cjs.js} +2 -2
  156. package/dist/chunks/{rich-text-input-kk9rtBb2.cjs.js.map → rich-text-input-IpGXnBKy.cjs.js.map} +1 -1
  157. package/dist/chunks/{scoped-search-input-BQwOQwaP.cjs.js → scoped-search-input-Cjrky6tJ.cjs.js} +2 -2
  158. package/dist/chunks/{scoped-search-input-BQwOQwaP.cjs.js.map → scoped-search-input-Cjrky6tJ.cjs.js.map} +1 -1
  159. package/dist/chunks/{scoped-search-input-QljA__zn.es.js → scoped-search-input-eZUvYoDK.es.js} +5 -5
  160. package/dist/chunks/{scoped-search-input-QljA__zn.es.js.map → scoped-search-input-eZUvYoDK.es.js.map} +1 -1
  161. package/dist/chunks/{search-input-CDRgTQeG.cjs.js → search-input-BU2fUnJT.cjs.js} +2 -2
  162. package/dist/chunks/{search-input-CDRgTQeG.cjs.js.map → search-input-BU2fUnJT.cjs.js.map} +1 -1
  163. package/dist/chunks/{search-input-CbKzOt2W.es.js → search-input-DnxYNGTT.es.js} +4 -4
  164. package/dist/chunks/{search-input-CbKzOt2W.es.js.map → search-input-DnxYNGTT.es.js.map} +1 -1
  165. package/dist/chunks/{search-input-field-BAK_Q8D3.cjs.js → search-input-field-BT402Xul.cjs.js} +2 -2
  166. package/dist/chunks/{search-input-field-BAK_Q8D3.cjs.js.map → search-input-field-BT402Xul.cjs.js.map} +1 -1
  167. package/dist/chunks/{search-input-field-DkQiv4oU.es.js → search-input-field-DrdaFmoJ.es.js} +3 -3
  168. package/dist/chunks/{search-input-field-DkQiv4oU.es.js.map → search-input-field-DrdaFmoJ.es.js.map} +1 -1
  169. package/dist/chunks/{select-BBTH3cVj.es.js → select-CnGjAwu_.es.js} +121 -120
  170. package/dist/chunks/{select-BBTH3cVj.es.js.map → select-CnGjAwu_.es.js.map} +1 -1
  171. package/dist/chunks/{select-DKYKaxPB.cjs.js → select-CzjgmQe5.cjs.js} +2 -2
  172. package/dist/chunks/{select-DKYKaxPB.cjs.js.map → select-CzjgmQe5.cjs.js.map} +1 -1
  173. package/dist/chunks/{separator-nbzofauL.es.js → separator-C_2Z6v9B.es.js} +3 -3
  174. package/dist/chunks/{separator-nbzofauL.es.js.map → separator-C_2Z6v9B.es.js.map} +1 -1
  175. package/dist/chunks/{separator-BCgD1L7m.cjs.js → separator-NMLMQH7M.cjs.js} +2 -2
  176. package/dist/chunks/{separator-BCgD1L7m.cjs.js.map → separator-NMLMQH7M.cjs.js.map} +1 -1
  177. package/dist/chunks/{split-button-BxATaqTd.cjs.js → split-button-DHUSeGWy.cjs.js} +2 -2
  178. package/dist/chunks/{split-button-BxATaqTd.cjs.js.map → split-button-DHUSeGWy.cjs.js.map} +1 -1
  179. package/dist/chunks/{split-button-BU-qVsoU.es.js → split-button-rREKAwlx.es.js} +4 -4
  180. package/dist/chunks/{split-button-BU-qVsoU.es.js.map → split-button-rREKAwlx.es.js.map} +1 -1
  181. package/dist/chunks/{steps-hFnqvgs5.cjs.js → steps-CRv1fVZk.cjs.js} +2 -2
  182. package/dist/chunks/{steps-hFnqvgs5.cjs.js.map → steps-CRv1fVZk.cjs.js.map} +1 -1
  183. package/dist/chunks/{steps-D4PGBn9S.es.js → steps-CyV83SJa.es.js} +2 -2
  184. package/dist/chunks/{steps-D4PGBn9S.es.js.map → steps-CyV83SJa.es.js.map} +1 -1
  185. package/dist/chunks/{switch-DBI4STeG.cjs.js → switch-DBwKE_ko.cjs.js} +2 -2
  186. package/dist/chunks/{switch-DBI4STeG.cjs.js.map → switch-DBwKE_ko.cjs.js.map} +1 -1
  187. package/dist/chunks/{switch-dLnIGxMu.es.js → switch-DQRh6tor.es.js} +3 -3
  188. package/dist/chunks/{switch-dLnIGxMu.es.js.map → switch-DQRh6tor.es.js.map} +1 -1
  189. package/dist/chunks/{table-I9vNdwDu.cjs.js → table-B_BansB3.cjs.js} +2 -2
  190. package/dist/chunks/{table-I9vNdwDu.cjs.js.map → table-B_BansB3.cjs.js.map} +1 -1
  191. package/dist/chunks/{table-BQ9EfDVA.es.js → table-DjkenPCz.es.js} +2 -2
  192. package/dist/chunks/{table-BQ9EfDVA.es.js.map → table-DjkenPCz.es.js.map} +1 -1
  193. package/dist/chunks/{tabs-Vvz4_UY5.es.js → tabs-C91cWaUm.es.js} +2 -2
  194. package/dist/chunks/{tabs-Vvz4_UY5.es.js.map → tabs-C91cWaUm.es.js.map} +1 -1
  195. package/dist/chunks/{tabs-Ce76FEWP.cjs.js → tabs-CF30UUYO.cjs.js} +2 -2
  196. package/dist/chunks/{tabs-Ce76FEWP.cjs.js.map → tabs-CF30UUYO.cjs.js.map} +1 -1
  197. package/dist/chunks/{tag-group-BqWFD-bc.es.js → tag-group-BKD3mqCz.es.js} +2 -2
  198. package/dist/chunks/{tag-group-BqWFD-bc.es.js.map → tag-group-BKD3mqCz.es.js.map} +1 -1
  199. package/dist/chunks/{tag-group-jRz5HeHG.cjs.js → tag-group-BRZbhZLs.cjs.js} +2 -2
  200. package/dist/chunks/{tag-group-jRz5HeHG.cjs.js.map → tag-group-BRZbhZLs.cjs.js.map} +1 -1
  201. package/dist/chunks/{text-input-D5kp2Woq.cjs.js → text-input-4hJwmKMr.cjs.js} +2 -2
  202. package/dist/chunks/{text-input-D5kp2Woq.cjs.js.map → text-input-4hJwmKMr.cjs.js.map} +1 -1
  203. package/dist/chunks/{text-input-D4Res1fI.es.js → text-input-BF-iYc24.es.js} +3 -3
  204. package/dist/chunks/{text-input-D4Res1fI.es.js.map → text-input-BF-iYc24.es.js.map} +1 -1
  205. package/dist/chunks/{text-input-field-BeQQ0J5G.es.js → text-input-field-BvWZkBpU.es.js} +3 -3
  206. package/dist/chunks/{text-input-field-BeQQ0J5G.es.js.map → text-input-field-BvWZkBpU.es.js.map} +1 -1
  207. package/dist/chunks/{text-input-field-t6s8Tn-I.cjs.js → text-input-field-l36en4as.cjs.js} +2 -2
  208. package/dist/chunks/{text-input-field-t6s8Tn-I.cjs.js.map → text-input-field-l36en4as.cjs.js.map} +1 -1
  209. package/dist/chunks/{time-input-JLSumOe-.es.js → time-input-DGV0Tcii.es.js} +3 -3
  210. package/dist/chunks/{time-input-JLSumOe-.es.js.map → time-input-DGV0Tcii.es.js.map} +1 -1
  211. package/dist/chunks/{time-input-3SGaEjmk.cjs.js → time-input-lTLnPfWp.cjs.js} +2 -2
  212. package/dist/chunks/{time-input-3SGaEjmk.cjs.js.map → time-input-lTLnPfWp.cjs.js.map} +1 -1
  213. package/dist/chunks/{toast.outlet-CGE1xY7p.es.js → toast.outlet-BrMQc1Xs.es.js} +3 -3
  214. package/dist/chunks/{toast.outlet-CGE1xY7p.es.js.map → toast.outlet-BrMQc1Xs.es.js.map} +1 -1
  215. package/dist/chunks/{toast.outlet-Cg1OtgY0.cjs.js → toast.outlet-CXA8ZElR.cjs.js} +2 -2
  216. package/dist/chunks/{toast.outlet-Cg1OtgY0.cjs.js.map → toast.outlet-CXA8ZElR.cjs.js.map} +1 -1
  217. package/dist/chunks/{toggle-button-DW5INNYc.cjs.js → toggle-button-9HIOPYPG.cjs.js} +2 -2
  218. package/dist/chunks/{toggle-button-DW5INNYc.cjs.js.map → toggle-button-9HIOPYPG.cjs.js.map} +1 -1
  219. package/dist/chunks/{toggle-button-Bc3b0Mdz.es.js → toggle-button-YjU1LD3Z.es.js} +3 -3
  220. package/dist/chunks/{toggle-button-Bc3b0Mdz.es.js.map → toggle-button-YjU1LD3Z.es.js.map} +1 -1
  221. package/dist/chunks/{toolbar-CV2NCv0p.es.js → toolbar-BoDdhKeP.es.js} +3 -3
  222. package/dist/chunks/{toolbar-CV2NCv0p.es.js.map → toolbar-BoDdhKeP.es.js.map} +1 -1
  223. package/dist/chunks/{toolbar-DIEmU_vh.cjs.js → toolbar-Ut-7K_-k.cjs.js} +2 -2
  224. package/dist/chunks/{toolbar-DIEmU_vh.cjs.js.map → toolbar-Ut-7K_-k.cjs.js.map} +1 -1
  225. package/dist/components/accordion.cjs +1 -1
  226. package/dist/components/accordion.es.js +2 -2
  227. package/dist/components/alert.cjs +1 -1
  228. package/dist/components/alert.es.js +1 -1
  229. package/dist/components/button.cjs +1 -1
  230. package/dist/components/button.es.js +1 -1
  231. package/dist/components/calendar.cjs +1 -1
  232. package/dist/components/calendar.es.js +1 -1
  233. package/dist/components/card.cjs +1 -1
  234. package/dist/components/card.es.js +1 -1
  235. package/dist/components/checkbox.cjs +1 -1
  236. package/dist/components/checkbox.es.js +1 -1
  237. package/dist/components/collapsible-motion.cjs +1 -1
  238. package/dist/components/collapsible-motion.es.js +1 -1
  239. package/dist/components/combobox.cjs +1 -1
  240. package/dist/components/combobox.es.js +1 -1
  241. package/dist/components/components.cjs +1 -1
  242. package/dist/components/components.es.js +1 -1
  243. package/dist/components/data-table.cjs +1 -1
  244. package/dist/components/data-table.es.js +1 -1
  245. package/dist/components/date-input.cjs +1 -1
  246. package/dist/components/date-input.es.js +1 -1
  247. package/dist/components/date-picker.cjs +1 -1
  248. package/dist/components/date-picker.es.js +1 -1
  249. package/dist/components/date-range-picker-field.cjs +1 -1
  250. package/dist/components/date-range-picker-field.es.js +1 -1
  251. package/dist/components/date-range-picker.cjs +1 -1
  252. package/dist/components/date-range-picker.es.js +1 -1
  253. package/dist/components/dialog.cjs +1 -1
  254. package/dist/components/dialog.es.js +1 -1
  255. package/dist/components/draggable-list.cjs +1 -1
  256. package/dist/components/draggable-list.es.js +1 -1
  257. package/dist/components/drawer.cjs +1 -1
  258. package/dist/components/drawer.es.js +1 -1
  259. package/dist/components/fields.cjs +1 -1
  260. package/dist/components/fields.es.js +7 -7
  261. package/dist/components/form-field/components/form-field.context.d.ts +3 -3
  262. package/dist/components/form-field/components/form-field.input.d.ts +5 -1
  263. package/dist/components/form-field/form-field.d.ts +1 -1
  264. package/dist/components/form-field.cjs +1 -1
  265. package/dist/components/form-field.es.js +1 -1
  266. package/dist/components/icon-button.cjs +1 -1
  267. package/dist/components/icon-button.es.js +1 -1
  268. package/dist/components/icon-toggle-button.cjs +1 -1
  269. package/dist/components/icon-toggle-button.es.js +1 -1
  270. package/dist/components/list.cjs +1 -1
  271. package/dist/components/list.es.js +1 -1
  272. package/dist/components/localized-field/utils/test-data.d.ts +62 -0
  273. package/dist/components/localized-field.cjs +1 -1
  274. package/dist/components/localized-field.es.js +1 -1
  275. package/dist/components/money-input-field.cjs +1 -1
  276. package/dist/components/money-input-field.es.js +1 -1
  277. package/dist/components/money-input.cjs +1 -1
  278. package/dist/components/money-input.es.js +1 -1
  279. package/dist/components/multiline-text-input-field.cjs +1 -1
  280. package/dist/components/multiline-text-input-field.es.js +1 -1
  281. package/dist/components/multiline-text-input.cjs +1 -1
  282. package/dist/components/multiline-text-input.es.js +1 -1
  283. package/dist/components/nimbus-provider.cjs +1 -1
  284. package/dist/components/nimbus-provider.es.js +1 -1
  285. package/dist/components/number-input-field.cjs +1 -1
  286. package/dist/components/number-input-field.es.js +1 -1
  287. package/dist/components/number-input.cjs +1 -1
  288. package/dist/components/number-input.es.js +1 -1
  289. package/dist/components/pagination.cjs +1 -1
  290. package/dist/components/pagination.es.js +1 -1
  291. package/dist/components/password-input-field.cjs +1 -1
  292. package/dist/components/password-input-field.es.js +1 -1
  293. package/dist/components/password-input.cjs +1 -1
  294. package/dist/components/password-input.es.js +1 -1
  295. package/dist/components/patterns.cjs +1 -1
  296. package/dist/components/patterns.es.js +7 -7
  297. package/dist/components/progress-bar.cjs +1 -1
  298. package/dist/components/progress-bar.es.js +1 -1
  299. package/dist/components/radio-input.cjs +1 -1
  300. package/dist/components/radio-input.es.js +1 -1
  301. package/dist/components/range-calendar.cjs +1 -1
  302. package/dist/components/range-calendar.es.js +1 -1
  303. package/dist/components/rich-text-input.cjs +1 -1
  304. package/dist/components/rich-text-input.es.js +1 -1
  305. package/dist/components/scoped-search-input.cjs +1 -1
  306. package/dist/components/scoped-search-input.es.js +1 -1
  307. package/dist/components/search-input-field.cjs +1 -1
  308. package/dist/components/search-input-field.es.js +1 -1
  309. package/dist/components/search-input.cjs +1 -1
  310. package/dist/components/search-input.es.js +1 -1
  311. package/dist/components/select/components/select.clear-button.d.ts +3 -1
  312. package/dist/components/select.cjs +1 -1
  313. package/dist/components/select.es.js +1 -1
  314. package/dist/components/separator.cjs +1 -1
  315. package/dist/components/separator.es.js +1 -1
  316. package/dist/components/split-button.cjs +1 -1
  317. package/dist/components/split-button.es.js +1 -1
  318. package/dist/components/steps.cjs +1 -1
  319. package/dist/components/steps.es.js +1 -1
  320. package/dist/components/switch.cjs +1 -1
  321. package/dist/components/switch.es.js +1 -1
  322. package/dist/components/table.cjs +1 -1
  323. package/dist/components/table.es.js +1 -1
  324. package/dist/components/tabs.cjs +1 -1
  325. package/dist/components/tabs.es.js +1 -1
  326. package/dist/components/tag-group.cjs +1 -1
  327. package/dist/components/tag-group.es.js +1 -1
  328. package/dist/components/text-input-field.cjs +1 -1
  329. package/dist/components/text-input-field.es.js +1 -1
  330. package/dist/components/text-input.cjs +1 -1
  331. package/dist/components/text-input.es.js +1 -1
  332. package/dist/components/time-input.cjs +1 -1
  333. package/dist/components/time-input.es.js +1 -1
  334. package/dist/components/toast.cjs +1 -1
  335. package/dist/components/toast.es.js +1 -1
  336. package/dist/components/toggle-button.cjs +1 -1
  337. package/dist/components/toggle-button.es.js +1 -1
  338. package/dist/components/toolbar.cjs +1 -1
  339. package/dist/components/toolbar.es.js +1 -1
  340. package/dist/components/utils.cjs +1 -1
  341. package/dist/components/utils.cjs.map +1 -1
  342. package/dist/components/utils.es.js +1 -1
  343. package/dist/components/utils.es.js.map +1 -1
  344. package/dist/index.cjs +1 -1
  345. package/dist/index.es.js +57 -57
  346. package/package.json +7 -7
  347. package/dist/chunks/form-field-BcNFX196.es.js.map +0 -1
  348. package/dist/chunks/form-field-TY4tZsBZ.cjs.js +0 -2
  349. package/dist/chunks/form-field-TY4tZsBZ.cjs.js.map +0 -1
  350. package/dist/chunks/index-CbPHv6Ml.es.js.map +0 -1
  351. package/dist/chunks/index-D8ffoMG1.cjs.js.map +0 -1
@@ -1,79 +1,81 @@
1
- import { createContext as z, useRef as V, useState as _, useMemo as b, useEffect as a, Children as A, isValidElement as H, cloneElement as D, useContext as u } from "react";
2
- import { jsx as n, jsxs as m } from "react/jsx-runtime";
3
- import { m as G } from "./merge-refs-D-zSwpoh.es.js";
4
- import { createSlotRecipeContext as J } from "@chakra-ui/react/styled-system";
1
+ import { createContext as z, useRef as V, useState as _, useMemo as b, useEffect as m, useContext as u, Children as A, isValidElement as H, cloneElement as D } from "react";
2
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
3
+ import { createSlotRecipeContext as G } from "@chakra-ui/react/styled-system";
4
+ import { m as J } from "./merge-refs-D-zSwpoh.es.js";
5
5
  import { j as K, $ as O, k as Q } from "./Dialog-BrbJce0u.es.js";
6
6
  import { HelpOutline as R, ErrorOutline as T } from "@commercetools/nimbus-icons";
7
7
  import { $ as U } from "./useObjectRef-CaJ5pgjX.es.js";
8
8
  import { $ as W } from "./useField-ZuobdMEN.es.js";
9
9
  import { B as F } from "./box-DuBoAZvq.es.js";
10
- import { I as X } from "./icon-button-CwI7ZK2q.es.js";
11
- const p = /* @__PURE__ */ z({
10
+ import { I as X } from "./icon-button-CsfjzFu5.es.js";
11
+ const a = /* @__PURE__ */ z({
12
12
  context: {
13
13
  label: null,
14
14
  description: null,
15
15
  error: null,
16
- info: null,
17
- input: null
16
+ info: null
18
17
  },
19
18
  setContext: () => {
20
- }
21
- }), { withProvider: Y, withContext: f } = /* @__PURE__ */ J({
19
+ },
20
+ inputProps: {}
21
+ }), { withProvider: Y, withContext: f } = /* @__PURE__ */ G({
22
22
  key: "nimbusFormField"
23
- }), Z = /* @__PURE__ */ Y("div", "root"), q = /* @__PURE__ */ f("div", "label"), oo = /* @__PURE__ */ f("div", "input"), eo = /* @__PURE__ */ f("div", "description"), ro = /* @__PURE__ */ f("div", "error"), to = /* @__PURE__ */ f("div", "popover"), $ = function({
23
+ }), Z = /* @__PURE__ */ Y("div", "root"), q = /* @__PURE__ */ f("div", "label"), oo = /* @__PURE__ */ f("div", "input"), ro = /* @__PURE__ */ f("div", "description"), eo = /* @__PURE__ */ f("div", "error"), to = /* @__PURE__ */ f("div", "popover"), P = function({
24
24
  ref: l,
25
- id: e,
26
- isInvalid: r,
27
- isRequired: s,
25
+ id: r,
26
+ isInvalid: o,
27
+ isRequired: i,
28
28
  isDisabled: c,
29
- isReadOnly: d,
30
- children: E,
31
- ...g
29
+ isReadOnly: p,
30
+ children: g,
31
+ ...N
32
32
  }) {
33
- const N = V(null), B = U(G(N, l)), [o, x] = _({
33
+ const B = V(null), k = U(J(B, l)), [e, x] = _({
34
34
  label: null,
35
35
  description: null,
36
36
  error: null,
37
37
  info: null,
38
- input: null,
39
- isInvalid: r,
40
- isRequired: s,
38
+ isInvalid: o,
39
+ isRequired: i,
41
40
  isDisabled: c,
42
- isReadOnly: d
43
- }), k = b(() => {
44
- const i = {
45
- id: e,
46
- description: o.description,
47
- errorMessage: o.error
41
+ isReadOnly: p
42
+ }), I = b(() => {
43
+ const s = {
44
+ id: r,
45
+ description: e.description,
46
+ errorMessage: e.error
48
47
  };
49
- return o.label ? i.label = o.label : (i["aria-label"] = "empty-label", i["aria-labelledby"] = "empty-label"), i;
50
- }, [e, o.description, o.error, o.label]), { labelProps: I, fieldProps: h, descriptionProps: L, errorMessageProps: M } = W(k);
51
- a(() => {
52
- x((i) => ({
53
- ...i,
54
- isInvalid: r,
55
- isRequired: s,
48
+ return e.label ? s.label = e.label : (s["aria-label"] = "empty-label", s["aria-labelledby"] = "empty-label"), s;
49
+ }, [r, e.description, e.error, e.label]), { labelProps: L, fieldProps: h, descriptionProps: M, errorMessageProps: j } = W(I);
50
+ m(() => {
51
+ x((s) => ({
52
+ ...s,
53
+ isInvalid: o,
54
+ isRequired: i,
56
55
  isDisabled: c,
57
- isReadOnly: d
56
+ isReadOnly: p
58
57
  }));
59
- }, [r, s, c, d]);
60
- const j = b(
58
+ }, [o, i, c, p]);
59
+ const $ = b(
61
60
  () => ({
62
61
  ...h,
63
- isInvalid: r,
64
- isRequired: s,
62
+ isInvalid: o,
63
+ isRequired: i,
65
64
  isDisabled: c,
66
- isReadOnly: d
65
+ isReadOnly: p
67
66
  }),
68
- [h, r, s, c, d]
69
- ), w = b(() => ({ context: o, setContext: x }), [o]);
70
- return /* @__PURE__ */ n(p.Provider, { value: w, children: /* @__PURE__ */ m(Z, { ref: B, ...g, children: [
71
- o.label && /* @__PURE__ */ m(q, { ...o.labelSlotProps, children: [
72
- /* @__PURE__ */ m("label", { ...I, "data-required": s, children: [
73
- o.label,
74
- s && /* @__PURE__ */ n("sup", { "aria-hidden": "true", children: "*" })
67
+ [h, o, i, c, p]
68
+ ), w = b(
69
+ () => ({ context: e, setContext: x, inputProps: $ }),
70
+ [e, $]
71
+ );
72
+ return /* @__PURE__ */ n(a.Provider, { value: w, children: /* @__PURE__ */ d(Z, { ref: k, ...N, children: [
73
+ e.label && /* @__PURE__ */ d(q, { ...e.labelSlotProps, children: [
74
+ /* @__PURE__ */ d("label", { ...L, "data-required": i, children: [
75
+ e.label,
76
+ i && /* @__PURE__ */ n("sup", { "aria-hidden": "true", children: "*" })
75
77
  ] }),
76
- o.info && /* @__PURE__ */ m(K, { children: [
78
+ e.info && /* @__PURE__ */ d(K, { children: [
77
79
  /* @__PURE__ */ n(
78
80
  F,
79
81
  {
@@ -106,23 +108,22 @@ const p = /* @__PURE__ */ z({
106
108
  )
107
109
  }
108
110
  ),
109
- /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(to, { asChild: !0, children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(F, { p: "300", children: o.info }) }) }) })
111
+ /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(to, { asChild: !0, children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(F, { p: "300", children: e.info }) }) }) })
110
112
  ] })
111
113
  ] }),
112
- o.input && /* @__PURE__ */ n(oo, { ...o.inputSlotProps, children: A.map(o.input, (i) => H(i) ? D(i, j) : i) }),
113
- o.description && /* @__PURE__ */ n(
114
- eo,
114
+ e.description && /* @__PURE__ */ n(
115
+ ro,
115
116
  {
116
- ...L,
117
- ...o.descriptionSlotProps,
118
- children: o.description
117
+ ...M,
118
+ ...e.descriptionSlotProps,
119
+ children: e.description
119
120
  }
120
121
  ),
121
- r && o.error && /* @__PURE__ */ m(
122
- ro,
122
+ o && e.error && /* @__PURE__ */ d(
123
+ eo,
123
124
  {
124
- ...M,
125
- ...o.errorSlotProps,
125
+ ...j,
126
+ ...e.errorSlotProps,
126
127
  children: [
127
128
  /* @__PURE__ */ n(
128
129
  F,
@@ -134,95 +135,89 @@ const p = /* @__PURE__ */ z({
134
135
  mt: "50"
135
136
  }
136
137
  ),
137
- o.error
138
+ e.error
138
139
  ]
139
140
  }
140
141
  ),
141
- E
142
+ g
142
143
  ] }) });
143
144
  };
144
- $.displayName = "FormField.Root";
145
+ P.displayName = "FormField.Root";
145
146
  const S = ({
146
147
  children: t,
147
148
  ...l
148
149
  }) => {
149
- const { setContext: e } = u(p);
150
- return a(() => (e((r) => ({
151
- ...r,
150
+ const { setContext: r } = u(a);
151
+ return m(() => (r((o) => ({
152
+ ...o,
152
153
  label: t,
153
154
  labelSlotProps: l
154
155
  })), () => {
155
- e((r) => ({
156
- ...r,
156
+ r((o) => ({
157
+ ...o,
157
158
  label: null,
158
159
  labelSlotProps: void 0
159
160
  }));
160
- }), [t, e]), null;
161
+ }), [t, r]), null;
161
162
  };
162
163
  S.displayName = "FormField.Label";
163
- const P = ({
164
+ const C = ({
164
165
  children: t,
165
166
  ...l
166
167
  }) => {
167
- const { setContext: e } = u(p);
168
- return a(() => {
169
- e((r) => ({
170
- ...r,
171
- input: t,
172
- inputSlotProps: l
173
- }));
174
- }, [t, e]), null;
168
+ const { inputProps: r } = u(a);
169
+ return /* @__PURE__ */ n(oo, { ...l, children: A.map(t, (o) => H(o) ? D(o, r) : o) });
175
170
  };
176
- P.displayName = "FormField.Input";
177
- const C = ({
171
+ C.displayName = "FormField.Input";
172
+ const v = ({
178
173
  children: t,
179
174
  ...l
180
175
  }) => {
181
- const { setContext: e } = u(p);
182
- return a(() => (e((r) => ({
183
- ...r,
176
+ const { setContext: r } = u(a);
177
+ return m(() => (r((o) => ({
178
+ ...o,
184
179
  description: t,
185
180
  descriptionSlotProps: l
186
181
  })), () => {
187
- e((r) => ({
188
- ...r,
182
+ r((o) => ({
183
+ ...o,
189
184
  description: null,
190
185
  descriptionSlotProps: void 0
191
186
  }));
192
- }), [t, e]), null;
187
+ }), [t, r]), null;
193
188
  };
194
- C.displayName = "FormField.Description";
195
- const v = ({
189
+ v.displayName = "FormField.Description";
190
+ const y = ({
196
191
  children: t,
197
192
  ...l
198
193
  }) => {
199
- const { setContext: e } = u(p);
200
- return a(() => (e((r) => ({
201
- ...r,
194
+ const { setContext: r } = u(a);
195
+ return m(() => (r((o) => ({
196
+ ...o,
202
197
  error: t,
203
198
  errorSlotProps: l
204
199
  })), () => {
205
- e((r) => ({
206
- ...r,
200
+ r((o) => ({
201
+ ...o,
207
202
  error: null,
208
203
  errorSlotProps: void 0
209
204
  }));
210
- }), [t, e]), null;
205
+ }), [t, r]), null;
211
206
  };
212
- v.displayName = "FormField.Error";
213
- const y = ({ children: t }) => {
214
- const { setContext: l } = u(p);
215
- return a(() => (l((e) => ({
216
- ...e,
207
+ y.displayName = "FormField.Error";
208
+ const E = ({ children: t }) => {
209
+ const { setContext: l } = u(a);
210
+ return m(() => (l((r) => ({
211
+ ...r,
217
212
  info: t
218
213
  })), () => {
219
- l((e) => ({
220
- ...e,
214
+ l((r) => ({
215
+ ...r,
221
216
  info: null
222
217
  }));
223
218
  }), [t, l]), null;
224
219
  };
225
- y.displayName = "FormField.InfoBox";
220
+ E.displayName = "FormField.InfoBox";
226
221
  const Fo = {
227
222
  /**
228
223
  * # FormField.Root
@@ -244,7 +239,7 @@ const Fo = {
244
239
  * </FormField.Root>
245
240
  * ```
246
241
  */
247
- Root: $,
242
+ Root: P,
248
243
  /**
249
244
  * # FormField.Label
250
245
  *
@@ -283,7 +278,7 @@ const Fo = {
283
278
  * </FormField.Root>
284
279
  * ```
285
280
  */
286
- Input: P,
281
+ Input: C,
287
282
  /**
288
283
  * # FormField.Description
289
284
  *
@@ -303,7 +298,7 @@ const Fo = {
303
298
  * </FormField.Root>
304
299
  * ```
305
300
  */
306
- Description: C,
301
+ Description: v,
307
302
  /**
308
303
  * # FormField.Error
309
304
  *
@@ -322,7 +317,7 @@ const Fo = {
322
317
  * </FormField.Root>
323
318
  * ```
324
319
  */
325
- Error: v,
320
+ Error: y,
326
321
  /**
327
322
  * # FormField.InfoBox
328
323
  *
@@ -344,15 +339,15 @@ const Fo = {
344
339
  * </FormField.Root>
345
340
  * ```
346
341
  */
347
- InfoBox: y
342
+ InfoBox: E
348
343
  };
349
344
  export {
350
345
  Fo as F,
351
- C as a,
352
- v as b,
353
- y as c,
354
- P as d,
346
+ v as a,
347
+ y as b,
348
+ E as c,
349
+ C as d,
355
350
  S as e,
356
- $ as f
351
+ P as f
357
352
  };
358
- //# sourceMappingURL=form-field-BcNFX196.es.js.map
353
+ //# sourceMappingURL=form-field-B5MTPG5J.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field-B5MTPG5J.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 FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldInputProps = Record<string, unknown>;\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\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 inputProps: FormFieldInputProps;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n },\n setContext: () => {},\n inputProps: {},\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 { useEffect, useMemo, useState, useRef } 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 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 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(\n () => ({ context, setContext, inputProps }),\n [context, inputProps]\n );\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.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 { Children, cloneElement, isValidElement, useContext } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\nimport { FormFieldInputSlot } from \"../form-field.slots\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * Renders children directly (with injected field props) to avoid\n * the state-based indirection that causes cursor position issues\n * on controlled inputs.\n *\n * @supportsStyleProps\n */\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { inputProps } = useContext(FormFieldContext);\n\n return (\n <FormFieldInputSlot {...inputSlotProps}>\n {Children.map(children, (child) => {\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n return child;\n })}\n </FormFieldInputSlot>\n );\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","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","child","isValidElement","cloneElement","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,EAAA;AAAA,EAER,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,YAAY,CAAA;AACd,CAAC,GC5BK,EAAE,cAAAC,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAAoB,gBAAAH,EAG/B,OAAO,MAAM,GAGFI,IA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;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 +1,2 @@
1
- "use strict";const d=require("react/jsx-runtime"),s=require("react"),p=require("./merge-refs-D8liJcZz.cjs.js"),m=require("./useObjectRef-4v2MxSjQ.cjs.js"),h=require("./button-CAzKhQhT.cjs.js"),n=a=>{const{children:i,ref:c,"aria-label":t,...r}=a,o=s.useRef(null),l=m.$df56164dff5785e2$export$4338b53315abf666(p.mergeRefs(o,c));return s.useEffect(()=>{if(process.env.NODE_ENV!=="production"){const u=setTimeout(()=>{const e=o.current;if(e){const b=e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"),f=e.hasAttribute("slot");!b&&!f&&console.warn(`Nimbus: IconButton requires an accessible label. Either provide an 'aria-label' prop or use within a component that provides it via context (e.g., slot="clear" in ComboBox).`,e)}},0);return()=>clearTimeout(u)}},[t,r.slot]),d.jsx(h.Button,{px:0,py:0,"aria-label":t,...r,ref:l,children:i})};n.displayName="IconButton";exports.IconButton=n;
2
- //# sourceMappingURL=icon-button-BV_okpOb.cjs.js.map
1
+ "use strict";const d=require("react/jsx-runtime"),s=require("react"),p=require("./merge-refs-D8liJcZz.cjs.js"),m=require("./useObjectRef-4v2MxSjQ.cjs.js"),h=require("./button-DJX_lPnW.cjs.js"),n=a=>{const{children:i,ref:c,"aria-label":t,...r}=a,o=s.useRef(null),l=m.$df56164dff5785e2$export$4338b53315abf666(p.mergeRefs(o,c));return s.useEffect(()=>{if(process.env.NODE_ENV!=="production"){const u=setTimeout(()=>{const e=o.current;if(e){const b=e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"),f=e.hasAttribute("slot");!b&&!f&&console.warn(`Nimbus: IconButton requires an accessible label. Either provide an 'aria-label' prop or use within a component that provides it via context (e.g., slot="clear" in ComboBox).`,e)}},0);return()=>clearTimeout(u)}},[t,r.slot]),d.jsx(h.Button,{px:0,py:0,"aria-label":t,...r,ref:l,children:i})};n.displayName="IconButton";exports.IconButton=n;
2
+ //# sourceMappingURL=icon-button-B-yfUEQl.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-BV_okpOb.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef, useEffect } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@/utils\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const {\n children,\n ref: forwardedRef,\n \"aria-label\": ariaLabel,\n ...restProps\n } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Runtime accessibility check\n // Use setTimeout to defer check until after React Aria applies context props\n useEffect(() => {\n if (process.env.NODE_ENV !== \"production\") {\n const timeoutId = setTimeout(() => {\n const element = localRef.current;\n if (element) {\n const hasAriaLabel =\n element.hasAttribute(\"aria-label\") ||\n element.hasAttribute(\"aria-labelledby\");\n\n // Skip warning if component is using slot-based context (Button will handle it)\n const isUsingSlot = element.hasAttribute(\"slot\");\n\n if (!hasAriaLabel && !isUsingSlot) {\n console.warn(\n \"Nimbus: IconButton requires an accessible label. \" +\n \"Either provide an 'aria-label' prop or use within a component that provides it via context (e.g., slot=\\\"clear\\\" in ComboBox).\",\n element\n );\n }\n }\n }, 0);\n\n return () => clearTimeout(timeoutId);\n }\n }, [ariaLabel, restProps.slot]);\n\n return (\n <Button px={0} py={0} aria-label={ariaLabel} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","ariaLabel","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","useEffect","timeoutId","element","hasAriaLabel","isUsingSlot","jsx","Button"],"mappings":"iMAaaA,EAAcC,GAA2B,CACpD,KAAM,CACJ,SAAAC,EACA,IAAKC,EACL,aAAcC,EACd,GAAGC,CAAA,EACDJ,EAGEK,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUH,CAAY,CAAC,EAI1DQ,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAI,QAAQ,IAAI,WAAa,aAAc,CACzC,MAAMC,EAAY,WAAW,IAAM,CACjC,MAAMC,EAAUP,EAAS,QACzB,GAAIO,EAAS,CACX,MAAMC,EACJD,EAAQ,aAAa,YAAY,GACjCA,EAAQ,aAAa,iBAAiB,EAGlCE,EAAcF,EAAQ,aAAa,MAAM,EAE3C,CAACC,GAAgB,CAACC,GACpB,QAAQ,KACN,gLAEAF,CAAA,CAGN,CACF,EAAG,CAAC,EAEJ,MAAO,IAAM,aAAaD,CAAS,CACrC,CACF,EAAG,CAACR,EAAWC,EAAU,IAAI,CAAC,EAG5BW,EAAAA,IAACC,EAAAA,OAAA,CAAO,GAAI,EAAG,GAAI,EAAG,aAAYb,EAAY,GAAGC,EAAW,IAAAG,EACzD,SAAAN,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
1
+ {"version":3,"file":"icon-button-B-yfUEQl.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef, useEffect } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@/utils\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const {\n children,\n ref: forwardedRef,\n \"aria-label\": ariaLabel,\n ...restProps\n } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Runtime accessibility check\n // Use setTimeout to defer check until after React Aria applies context props\n useEffect(() => {\n if (process.env.NODE_ENV !== \"production\") {\n const timeoutId = setTimeout(() => {\n const element = localRef.current;\n if (element) {\n const hasAriaLabel =\n element.hasAttribute(\"aria-label\") ||\n element.hasAttribute(\"aria-labelledby\");\n\n // Skip warning if component is using slot-based context (Button will handle it)\n const isUsingSlot = element.hasAttribute(\"slot\");\n\n if (!hasAriaLabel && !isUsingSlot) {\n console.warn(\n \"Nimbus: IconButton requires an accessible label. \" +\n \"Either provide an 'aria-label' prop or use within a component that provides it via context (e.g., slot=\\\"clear\\\" in ComboBox).\",\n element\n );\n }\n }\n }, 0);\n\n return () => clearTimeout(timeoutId);\n }\n }, [ariaLabel, restProps.slot]);\n\n return (\n <Button px={0} py={0} aria-label={ariaLabel} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","ariaLabel","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","useEffect","timeoutId","element","hasAriaLabel","isUsingSlot","jsx","Button"],"mappings":"iMAaaA,EAAcC,GAA2B,CACpD,KAAM,CACJ,SAAAC,EACA,IAAKC,EACL,aAAcC,EACd,GAAGC,CAAA,EACDJ,EAGEK,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUH,CAAY,CAAC,EAI1DQ,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAI,QAAQ,IAAI,WAAa,aAAc,CACzC,MAAMC,EAAY,WAAW,IAAM,CACjC,MAAMC,EAAUP,EAAS,QACzB,GAAIO,EAAS,CACX,MAAMC,EACJD,EAAQ,aAAa,YAAY,GACjCA,EAAQ,aAAa,iBAAiB,EAGlCE,EAAcF,EAAQ,aAAa,MAAM,EAE3C,CAACC,GAAgB,CAACC,GACpB,QAAQ,KACN,gLAEAF,CAAA,CAGN,CACF,EAAG,CAAC,EAEJ,MAAO,IAAM,aAAaD,CAAS,CACrC,CACF,EAAG,CAACR,EAAWC,EAAU,IAAI,CAAC,EAG5BW,EAAAA,IAACC,EAAAA,OAAA,CAAO,GAAI,EAAG,GAAI,EAAG,aAAYb,EAAY,GAAGC,EAAW,IAAAG,EACzD,SAAAN,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
2
2
  import { useRef as u, useEffect as p } from "react";
3
3
  import { m as b } from "./merge-refs-D-zSwpoh.es.js";
4
4
  import { $ as d } from "./useObjectRef-CaJ5pgjX.es.js";
5
- import { B as h } from "./button-C4KD0BhM.es.js";
5
+ import { B as h } from "./button-DXIjvvTs.es.js";
6
6
  const x = (a) => {
7
7
  const {
8
8
  children: s,
@@ -30,4 +30,4 @@ x.displayName = "IconButton";
30
30
  export {
31
31
  x as I
32
32
  };
33
- //# sourceMappingURL=icon-button-CwI7ZK2q.es.js.map
33
+ //# sourceMappingURL=icon-button-CsfjzFu5.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-CwI7ZK2q.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef, useEffect } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@/utils\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const {\n children,\n ref: forwardedRef,\n \"aria-label\": ariaLabel,\n ...restProps\n } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Runtime accessibility check\n // Use setTimeout to defer check until after React Aria applies context props\n useEffect(() => {\n if (process.env.NODE_ENV !== \"production\") {\n const timeoutId = setTimeout(() => {\n const element = localRef.current;\n if (element) {\n const hasAriaLabel =\n element.hasAttribute(\"aria-label\") ||\n element.hasAttribute(\"aria-labelledby\");\n\n // Skip warning if component is using slot-based context (Button will handle it)\n const isUsingSlot = element.hasAttribute(\"slot\");\n\n if (!hasAriaLabel && !isUsingSlot) {\n console.warn(\n \"Nimbus: IconButton requires an accessible label. \" +\n \"Either provide an 'aria-label' prop or use within a component that provides it via context (e.g., slot=\\\"clear\\\" in ComboBox).\",\n element\n );\n }\n }\n }, 0);\n\n return () => clearTimeout(timeoutId);\n }\n }, [ariaLabel, restProps.slot]);\n\n return (\n <Button px={0} py={0} aria-label={ariaLabel} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","ariaLabel","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","useEffect","timeoutId","element","hasAriaLabel","isUsingSlot","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,KAAKC;AAAA,IACL,cAAcC;AAAA,IACd,GAAGC;AAAA,EAAA,IACDJ,GAGEK,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUH,CAAY,CAAC;AAI1D,SAAAQ,EAAU,MAAM;AACd,QAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,YAAMC,IAAY,WAAW,MAAM;AACjC,cAAMC,IAAUP,EAAS;AACzB,YAAIO,GAAS;AACX,gBAAMC,IACJD,EAAQ,aAAa,YAAY,KACjCA,EAAQ,aAAa,iBAAiB,GAGlCE,IAAcF,EAAQ,aAAa,MAAM;AAE/C,UAAI,CAACC,KAAgB,CAACC,KACpB,QAAQ;AAAA,YACN;AAAA,YAEAF;AAAA,UAAA;AAAA,QAGN;AAAA,MACF,GAAG,CAAC;AAEJ,aAAO,MAAM,aAAaD,CAAS;AAAA,IACrC;AAAA,EACF,GAAG,CAACR,GAAWC,EAAU,IAAI,CAAC,GAG5B,gBAAAW,EAACC,GAAA,EAAO,IAAI,GAAG,IAAI,GAAG,cAAYb,GAAY,GAAGC,GAAW,KAAAG,GACzD,UAAAN,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
1
+ {"version":3,"file":"icon-button-CsfjzFu5.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef, useEffect } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@/utils\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const {\n children,\n ref: forwardedRef,\n \"aria-label\": ariaLabel,\n ...restProps\n } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Runtime accessibility check\n // Use setTimeout to defer check until after React Aria applies context props\n useEffect(() => {\n if (process.env.NODE_ENV !== \"production\") {\n const timeoutId = setTimeout(() => {\n const element = localRef.current;\n if (element) {\n const hasAriaLabel =\n element.hasAttribute(\"aria-label\") ||\n element.hasAttribute(\"aria-labelledby\");\n\n // Skip warning if component is using slot-based context (Button will handle it)\n const isUsingSlot = element.hasAttribute(\"slot\");\n\n if (!hasAriaLabel && !isUsingSlot) {\n console.warn(\n \"Nimbus: IconButton requires an accessible label. \" +\n \"Either provide an 'aria-label' prop or use within a component that provides it via context (e.g., slot=\\\"clear\\\" in ComboBox).\",\n element\n );\n }\n }\n }, 0);\n\n return () => clearTimeout(timeoutId);\n }\n }, [ariaLabel, restProps.slot]);\n\n return (\n <Button px={0} py={0} aria-label={ariaLabel} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","ariaLabel","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","useEffect","timeoutId","element","hasAriaLabel","isUsingSlot","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,KAAKC;AAAA,IACL,cAAcC;AAAA,IACd,GAAGC;AAAA,EAAA,IACDJ,GAGEK,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUH,CAAY,CAAC;AAI1D,SAAAQ,EAAU,MAAM;AACd,QAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,YAAMC,IAAY,WAAW,MAAM;AACjC,cAAMC,IAAUP,EAAS;AACzB,YAAIO,GAAS;AACX,gBAAMC,IACJD,EAAQ,aAAa,YAAY,KACjCA,EAAQ,aAAa,iBAAiB,GAGlCE,IAAcF,EAAQ,aAAa,MAAM;AAE/C,UAAI,CAACC,KAAgB,CAACC,KACpB,QAAQ;AAAA,YACN;AAAA,YAEAF;AAAA,UAAA;AAAA,QAGN;AAAA,MACF,GAAG,CAAC;AAEJ,aAAO,MAAM,aAAaD,CAAS;AAAA,IACrC;AAAA,EACF,GAAG,CAACR,GAAWC,EAAU,IAAI,CAAC,GAG5B,gBAAAW,EAACC,GAAA,EAAO,IAAI,GAAG,IAAI,GAAG,cAAYb,GAAY,GAAGC,GAAW,KAAAG,GACzD,UAAAN,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-DW5INNYc.cjs.js"),t=({"aria-label":o,children:e,ref:n,...g})=>l.jsx(u.ToggleButton,{ref:n,"aria-label":o,px:0,py:0,...g,children:e});t.displayName="IconToggleButton";exports.IconToggleButton=t;
2
- //# sourceMappingURL=icon-toggle-button-zsbPyHd7.cjs.js.map
1
+ "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-9HIOPYPG.cjs.js"),t=({"aria-label":o,children:e,ref:n,...g})=>l.jsx(u.ToggleButton,{ref:n,"aria-label":o,px:0,py:0,...g,children:e});t.displayName="IconToggleButton";exports.IconToggleButton=t;
2
+ //# sourceMappingURL=icon-toggle-button-Bg8u0Y6z.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-zsbPyHd7.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
1
+ {"version":3,"file":"icon-toggle-button-Bg8u0Y6z.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { T as l } from "./toggle-button-Bc3b0Mdz.es.js";
2
+ import { T as l } from "./toggle-button-YjU1LD3Z.es.js";
3
3
  const n = ({
4
4
  "aria-label": o,
5
5
  children: t,
@@ -10,4 +10,4 @@ n.displayName = "IconToggleButton";
10
10
  export {
11
11
  n as I
12
12
  };
13
- //# sourceMappingURL=icon-toggle-button-DusSXhr7.es.js.map
13
+ //# sourceMappingURL=icon-toggle-button-D88M7O7u.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-DusSXhr7.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
1
+ {"version":3,"file":"icon-toggle-button-D88M7O7u.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}