@commercetools/nimbus 0.0.0-canary-20250904053156 → 0.0.0-canary-20250916130207

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 (510) hide show
  1. package/dist/accordion.d.ts +53 -88
  2. package/dist/chunks/{Button-CNBS3n5a.es.js → Button-BVaauB-c.es.js} +7 -7
  3. package/dist/chunks/{Button-CNBS3n5a.es.js.map → Button-BVaauB-c.es.js.map} +1 -1
  4. package/dist/chunks/Button-BtJHe9xY.cjs.js.map +1 -1
  5. package/dist/chunks/{DateField-Dm2Qlhbk.es.js → DateField-CoKm-f2B.es.js} +23 -23
  6. package/dist/chunks/{DateField-Dm2Qlhbk.es.js.map → DateField-CoKm-f2B.es.js.map} +1 -1
  7. package/dist/chunks/DateField-rweHHCKR.cjs.js.map +1 -1
  8. package/dist/chunks/{DatePicker-B1Unwe6C.es.js → DatePicker-Df8zjP9h.es.js} +23 -23
  9. package/dist/chunks/{DatePicker-B1Unwe6C.es.js.map → DatePicker-Df8zjP9h.es.js.map} +1 -1
  10. package/dist/chunks/{DatePicker-_aG-c1ms.cjs.js → DatePicker-e_53Dtsm.cjs.js} +2 -2
  11. package/dist/chunks/{DatePicker-_aG-c1ms.cjs.js.map → DatePicker-e_53Dtsm.cjs.js.map} +1 -1
  12. package/dist/chunks/{Dialog-C9HXv1rP.es.js → Dialog-Cva4CZ0O.es.js} +25 -25
  13. package/dist/chunks/{Dialog-C9HXv1rP.es.js.map → Dialog-Cva4CZ0O.es.js.map} +1 -1
  14. package/dist/chunks/{Dialog-DZm5Sj40.cjs.js → Dialog-K19USc7c.cjs.js} +2 -2
  15. package/dist/chunks/{Dialog-DZm5Sj40.cjs.js.map → Dialog-K19USc7c.cjs.js.map} +1 -1
  16. package/dist/chunks/{DragAndDrop-ChYb3tCX.es.js → DragAndDrop-Bbd4HbfU.es.js} +3 -3
  17. package/dist/chunks/{DragAndDrop-ChYb3tCX.es.js.map → DragAndDrop-Bbd4HbfU.es.js.map} +1 -1
  18. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -1
  19. package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -1
  20. package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -1
  21. package/dist/chunks/FocusScope-DPn5XtSy.cjs.js.map +1 -1
  22. package/dist/chunks/{FocusScope-CNO0fzPs.es.js → FocusScope-LBESYsSE.es.js} +5 -5
  23. package/dist/chunks/{FocusScope-CNO0fzPs.es.js.map → FocusScope-LBESYsSE.es.js.map} +1 -1
  24. package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -1
  25. package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -1
  26. package/dist/chunks/{Group-Cfixd-fh.es.js → Group-DUCWhg7j.es.js} +5 -5
  27. package/dist/chunks/{Group-Cfixd-fh.es.js.map → Group-DUCWhg7j.es.js.map} +1 -1
  28. package/dist/chunks/Group-MdeByg6t.cjs.js.map +1 -1
  29. package/dist/chunks/{Header-CZkkXWBA.es.js → Header-Cfm2XlNT.es.js} +5 -5
  30. package/dist/chunks/{Header-CZkkXWBA.es.js.map → Header-Cfm2XlNT.es.js.map} +1 -1
  31. package/dist/chunks/{Header-D24AtheW.cjs.js → Header-zz3aj0c7.cjs.js} +2 -2
  32. package/dist/chunks/{Header-D24AtheW.cjs.js.map → Header-zz3aj0c7.cjs.js.map} +1 -1
  33. package/dist/chunks/{Heading-DEfy_f01.es.js → Heading-BX1t1Kmm.es.js} +15 -15
  34. package/dist/chunks/{Heading-DEfy_f01.es.js.map → Heading-BX1t1Kmm.es.js.map} +1 -1
  35. package/dist/chunks/Heading-BaW6t55l.cjs.js.map +1 -1
  36. package/dist/chunks/Hidden-CNJIJ63M.cjs.js.map +1 -1
  37. package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -1
  38. package/dist/chunks/{Input-BiHwUBo4.es.js → Input-FFG42ja6.es.js} +5 -5
  39. package/dist/chunks/{Input-BiHwUBo4.es.js.map → Input-FFG42ja6.es.js.map} +1 -1
  40. package/dist/chunks/Input-HBDt7LmM.cjs.js.map +1 -1
  41. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
  42. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
  43. package/dist/chunks/{Label-B2YyCdLl.es.js → Label-BdaLJ5Ha.es.js} +2 -2
  44. package/dist/chunks/{Label-B2YyCdLl.es.js.map → Label-BdaLJ5Ha.es.js.map} +1 -1
  45. package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -1
  46. package/dist/chunks/{ListBox-Dnuz2Daa.cjs.js → ListBox-BHUS7cW2.cjs.js} +2 -2
  47. package/dist/chunks/{ListBox-Dnuz2Daa.cjs.js.map → ListBox-BHUS7cW2.cjs.js.map} +1 -1
  48. package/dist/chunks/{ListBox-DWMnhpDd.es.js → ListBox-BinkXiqM.es.js} +15 -15
  49. package/dist/chunks/{ListBox-DWMnhpDd.es.js.map → ListBox-BinkXiqM.es.js.map} +1 -1
  50. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js.map +1 -1
  51. package/dist/chunks/{OverlayArrow-sJzRZNbO.es.js → OverlayArrow-Kk4VWzmN.es.js} +3 -3
  52. package/dist/chunks/{OverlayArrow-sJzRZNbO.es.js.map → OverlayArrow-Kk4VWzmN.es.js.map} +1 -1
  53. package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js.map +1 -1
  54. package/dist/chunks/{ProgressBar-DjaUQI7N.es.js → ProgressBar-CwFHab_J.es.js} +5 -5
  55. package/dist/chunks/{ProgressBar-DjaUQI7N.es.js.map → ProgressBar-CwFHab_J.es.js.map} +1 -1
  56. package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -1
  57. package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -1
  58. package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -1
  59. package/dist/chunks/{SSRProvider-Cu8KibIK.es.js → SSRProvider-v-LddFEs.es.js} +2 -2
  60. package/dist/chunks/{SSRProvider-Cu8KibIK.es.js.map → SSRProvider-v-LddFEs.es.js.map} +1 -1
  61. package/dist/chunks/{SelectionManager-CtwcAiw4.es.js → SelectionManager-C-DrFCWk.es.js} +11 -11
  62. package/dist/chunks/{SelectionManager-CtwcAiw4.es.js.map → SelectionManager-C-DrFCWk.es.js.map} +1 -1
  63. package/dist/chunks/{SelectionManager-x0j8UpyW.cjs.js → SelectionManager-CmUHDDN6.cjs.js} +2 -2
  64. package/dist/chunks/{SelectionManager-x0j8UpyW.cjs.js.map → SelectionManager-CmUHDDN6.cjs.js.map} +1 -1
  65. package/dist/chunks/Separator-CTkcgvBE.cjs.js +18 -0
  66. package/dist/chunks/{Separator-CcMEmnGS.cjs.js.map → Separator-CTkcgvBE.cjs.js.map} +1 -1
  67. package/dist/chunks/{Separator-BCuq0iz5.es.js → Separator-D9Sio9QB.es.js} +7 -7
  68. package/dist/chunks/{Separator-BCuq0iz5.es.js.map → Separator-D9Sio9QB.es.js.map} +1 -1
  69. package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
  70. package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
  71. package/dist/chunks/TextArea-D3FFXnUy.cjs.js.map +1 -1
  72. package/dist/chunks/{TextArea-BmpgvS0R.es.js → TextArea-VPSW7sXC.es.js} +5 -5
  73. package/dist/chunks/{TextArea-BmpgvS0R.es.js.map → TextArea-VPSW7sXC.es.js.map} +1 -1
  74. package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js.map +1 -1
  75. package/dist/chunks/{ToggleButton-C3JL0pgD.es.js → ToggleButton-CRaJMq4q.es.js} +7 -7
  76. package/dist/chunks/{ToggleButton-C3JL0pgD.es.js.map → ToggleButton-CRaJMq4q.es.js.map} +1 -1
  77. package/dist/chunks/{VisuallyHidden-VHEPK04F.es.js → VisuallyHidden-B0NiNh0E.es.js} +3 -3
  78. package/dist/chunks/{VisuallyHidden-VHEPK04F.es.js.map → VisuallyHidden-B0NiNh0E.es.js.map} +1 -1
  79. package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js.map +1 -1
  80. package/dist/chunks/accordion-D06jBMOb.es.js +276 -0
  81. package/dist/chunks/accordion-D06jBMOb.es.js.map +1 -0
  82. package/dist/chunks/accordion-PyQH8Q_y.cjs.js +2 -0
  83. package/dist/chunks/accordion-PyQH8Q_y.cjs.js.map +1 -0
  84. package/dist/chunks/alert-BhezYOzs.cjs.js +2 -0
  85. package/dist/chunks/alert-BhezYOzs.cjs.js.map +1 -0
  86. package/dist/chunks/{alert-fGOiy9nj.es.js → alert-L8PXimjc.es.js} +59 -52
  87. package/dist/chunks/alert-L8PXimjc.es.js.map +1 -0
  88. package/dist/chunks/{badge-BJd-Q81M.es.js → badge-CHmfeeRs.es.js} +2 -2
  89. package/dist/chunks/{badge-BJd-Q81M.es.js.map → badge-CHmfeeRs.es.js.map} +1 -1
  90. package/dist/chunks/{button-DEgBQobR.es.js → button-BXR4T980.es.js} +7 -7
  91. package/dist/chunks/{button-DEgBQobR.es.js.map → button-BXR4T980.es.js.map} +1 -1
  92. package/dist/chunks/{button-DJYITnqc.cjs.js → button-BooV4ncX.cjs.js} +2 -2
  93. package/dist/chunks/{button-DJYITnqc.cjs.js.map → button-BooV4ncX.cjs.js.map} +1 -1
  94. package/dist/chunks/{calendar-Csq6ml4F.es.js → calendar-DBk-sVXs.es.js} +11 -11
  95. package/dist/chunks/{calendar-Csq6ml4F.es.js.map → calendar-DBk-sVXs.es.js.map} +1 -1
  96. package/dist/chunks/{calendar-BdL5nJXs.cjs.js → calendar-Dyy7Fm8f.cjs.js} +2 -2
  97. package/dist/chunks/{calendar-BdL5nJXs.cjs.js.map → calendar-Dyy7Fm8f.cjs.js.map} +1 -1
  98. package/dist/chunks/{card-BfUdf1Fy.es.js → card-D9fWUQqs.es.js} +3 -3
  99. package/dist/chunks/{card-BfUdf1Fy.es.js.map → card-D9fWUQqs.es.js.map} +1 -1
  100. package/dist/chunks/{checkbox-D-x7pyAC.cjs.js → checkbox-DDB06avu.cjs.js} +2 -2
  101. package/dist/chunks/{checkbox-D-x7pyAC.cjs.js.map → checkbox-DDB06avu.cjs.js.map} +1 -1
  102. package/dist/chunks/{checkbox-BFQXCWuz.es.js → checkbox-Vo5d1nT3.es.js} +10 -10
  103. package/dist/chunks/{checkbox-BFQXCWuz.es.js.map → checkbox-Vo5d1nT3.es.js.map} +1 -1
  104. package/dist/chunks/{combobox-DXzhNwE_.es.js → combobox-7BYJqsr6.es.js} +31 -31
  105. package/dist/chunks/{combobox-DXzhNwE_.es.js.map → combobox-7BYJqsr6.es.js.map} +1 -1
  106. package/dist/chunks/{combobox-Zdlr1WyV.cjs.js → combobox-BNYcRoYl.cjs.js} +2 -2
  107. package/dist/chunks/{combobox-Zdlr1WyV.cjs.js.map → combobox-BNYcRoYl.cjs.js.map} +1 -1
  108. package/dist/chunks/{context-R4YUlO9Y.es.js → context-DHW7D0wv.es.js} +2 -2
  109. package/dist/chunks/{context-R4YUlO9Y.es.js.map → context-DHW7D0wv.es.js.map} +1 -1
  110. package/dist/chunks/context-OoV8SSWX.cjs.js.map +1 -1
  111. package/dist/chunks/{data-table-M8ZE7bUF.es.js → data-table-6OCmas4y.es.js} +28 -28
  112. package/dist/chunks/{data-table-M8ZE7bUF.es.js.map → data-table-6OCmas4y.es.js.map} +1 -1
  113. package/dist/chunks/{data-table-DjXI7oCC.cjs.js → data-table-DFhiLq16.cjs.js} +2 -2
  114. package/dist/chunks/{data-table-DjXI7oCC.cjs.js.map → data-table-DFhiLq16.cjs.js.map} +1 -1
  115. package/dist/chunks/{date-input-C4NM5AFC.cjs.js → date-input-DaemC1P1.cjs.js} +2 -2
  116. package/dist/chunks/{date-input-C4NM5AFC.cjs.js.map → date-input-DaemC1P1.cjs.js.map} +1 -1
  117. package/dist/chunks/{date-input-BGa-cgj-.es.js → date-input-DzpneTE3.es.js} +4 -4
  118. package/dist/chunks/{date-input-BGa-cgj-.es.js.map → date-input-DzpneTE3.es.js.map} +1 -1
  119. package/dist/chunks/date-picker-Bmlxwhhp.es.js +222 -0
  120. package/dist/chunks/date-picker-Bmlxwhhp.es.js.map +1 -0
  121. package/dist/chunks/date-picker-Bqf7Y-W-.cjs.js +2 -0
  122. package/dist/chunks/date-picker-Bqf7Y-W-.cjs.js.map +1 -0
  123. package/dist/chunks/{date-range-picker-DLEQGtgO.cjs.js → date-range-picker-DHnuq-hT.cjs.js} +2 -2
  124. package/dist/chunks/{date-range-picker-DLEQGtgO.cjs.js.map → date-range-picker-DHnuq-hT.cjs.js.map} +1 -1
  125. package/dist/chunks/{date-range-picker-DL00UKjF.es.js → date-range-picker-b-Qkz44d.es.js} +15 -15
  126. package/dist/chunks/{date-range-picker-DL00UKjF.es.js.map → date-range-picker-b-Qkz44d.es.js.map} +1 -1
  127. package/dist/chunks/{divider-BdtT_f-U.es.js → divider-C11VwZPX.es.js} +3 -3
  128. package/dist/chunks/{divider-BdtT_f-U.es.js.map → divider-C11VwZPX.es.js.map} +1 -1
  129. package/dist/chunks/{divider-o2LVtQJm.cjs.js → divider-Lm98hgn6.cjs.js} +2 -2
  130. package/dist/chunks/{divider-o2LVtQJm.cjs.js.map → divider-Lm98hgn6.cjs.js.map} +1 -1
  131. package/dist/chunks/emotion-is-prop-valid.esm-BUuA3iy8.es.js +16 -0
  132. package/dist/chunks/emotion-is-prop-valid.esm-BUuA3iy8.es.js.map +1 -0
  133. package/dist/chunks/emotion-is-prop-valid.esm-ux_11lix.cjs.js +2 -0
  134. package/dist/chunks/emotion-is-prop-valid.esm-ux_11lix.cjs.js.map +1 -0
  135. package/dist/chunks/{extractStyleProps-bWKBkEco.cjs.js → extractStyleProps-CDKV7i5o.cjs.js} +2 -2
  136. package/dist/chunks/{extractStyleProps-bWKBkEco.cjs.js.map → extractStyleProps-CDKV7i5o.cjs.js.map} +1 -1
  137. package/dist/chunks/{extractStyleProps-CFQKiz8b.es.js → extractStyleProps-vXiS8lCp.es.js} +2 -2
  138. package/dist/chunks/{extractStyleProps-CFQKiz8b.es.js.map → extractStyleProps-vXiS8lCp.es.js.map} +1 -1
  139. package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -1
  140. package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -1
  141. package/dist/chunks/{focusSafely-DJpphVHF.es.js → focusSafely-DS3RePi9.es.js} +3 -3
  142. package/dist/chunks/{focusSafely-DJpphVHF.es.js.map → focusSafely-DS3RePi9.es.js.map} +1 -1
  143. package/dist/chunks/focusSafely-jDMW9aEx.cjs.js.map +1 -1
  144. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  145. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  146. package/dist/chunks/{form-field-DDTIZj9s.es.js → form-field-BF03DSg5.es.js} +4 -4
  147. package/dist/chunks/{form-field-DDTIZj9s.es.js.map → form-field-BF03DSg5.es.js.map} +1 -1
  148. package/dist/chunks/{form-field-D1lcT5f5.cjs.js → form-field-DMiHuyrx.cjs.js} +2 -2
  149. package/dist/chunks/{form-field-D1lcT5f5.cjs.js.map → form-field-DMiHuyrx.cjs.js.map} +1 -1
  150. package/dist/chunks/{group-CqfSQXe7.es.js → group-FqYM3Go1.es.js} +2 -2
  151. package/dist/chunks/{group-CqfSQXe7.es.js.map → group-FqYM3Go1.es.js.map} +1 -1
  152. package/dist/chunks/{icon-button-CPXhdrQY.cjs.js → icon-button-CFLScvMi.cjs.js} +2 -2
  153. package/dist/chunks/{icon-button-CPXhdrQY.cjs.js.map → icon-button-CFLScvMi.cjs.js.map} +1 -1
  154. package/dist/chunks/{icon-button-DPtCLr1A.es.js → icon-button-CKidhzN0.es.js} +2 -2
  155. package/dist/chunks/{icon-button-DPtCLr1A.es.js.map → icon-button-CKidhzN0.es.js.map} +1 -1
  156. package/dist/chunks/{icon-toggle-button-BItuQ_Lh.es.js → icon-toggle-button-CfrW8nn2.es.js} +2 -2
  157. package/dist/chunks/{icon-toggle-button-BItuQ_Lh.es.js.map → icon-toggle-button-CfrW8nn2.es.js.map} +1 -1
  158. package/dist/chunks/{icon-toggle-button-BG-F1KE7.cjs.js → icon-toggle-button-DJsMgc_N.cjs.js} +2 -2
  159. package/dist/chunks/{icon-toggle-button-BG-F1KE7.cjs.js.map → icon-toggle-button-DJsMgc_N.cjs.js.map} +1 -1
  160. package/dist/chunks/{index-BDXHumM1.es.js → index-BZioZQfA.es.js} +15 -8
  161. package/dist/chunks/index-BZioZQfA.es.js.map +1 -0
  162. package/dist/chunks/index-QBeUpHcK.cjs.js +4 -0
  163. package/dist/chunks/index-QBeUpHcK.cjs.js.map +1 -0
  164. package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -1
  165. package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -1
  166. package/dist/chunks/{kbd-BXN9aXRE.es.js → kbd-D10CDyIE.es.js} +2 -2
  167. package/dist/chunks/{kbd-BXN9aXRE.es.js.map → kbd-D10CDyIE.es.js.map} +1 -1
  168. package/dist/chunks/{link-CFK97sc0.es.js → link-CwFZrz1A.es.js} +4 -4
  169. package/dist/chunks/{link-CFK97sc0.es.js.map → link-CwFZrz1A.es.js.map} +1 -1
  170. package/dist/chunks/link-DWa1zIUJ.cjs.js.map +1 -1
  171. package/dist/chunks/loading-spinner-CSKBo1bM.cjs.js +2 -0
  172. package/dist/chunks/loading-spinner-CSKBo1bM.cjs.js.map +1 -0
  173. package/dist/chunks/{loading-spinner-CvggCl-H.es.js → loading-spinner-D3xWum_0.es.js} +29 -16
  174. package/dist/chunks/loading-spinner-D3xWum_0.es.js.map +1 -0
  175. package/dist/chunks/{make-element-focusable-C4ZHUSEU.es.js → make-element-focusable-BjLmsXKn.es.js} +3 -3
  176. package/dist/chunks/{make-element-focusable-C4ZHUSEU.es.js.map → make-element-focusable-BjLmsXKn.es.js.map} +1 -1
  177. package/dist/chunks/{menu-aLEA43vB.es.js → menu-DZVU5Z-r.es.js} +7 -7
  178. package/dist/chunks/{menu-aLEA43vB.es.js.map → menu-DZVU5Z-r.es.js.map} +1 -1
  179. package/dist/chunks/{menu-DxXsyeUG.cjs.js → menu-bzi7WVh0.cjs.js} +2 -2
  180. package/dist/chunks/{menu-DxXsyeUG.cjs.js.map → menu-bzi7WVh0.cjs.js.map} +1 -1
  181. package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -1
  182. package/dist/chunks/{mergeProps-B_9syxhT.es.js → mergeProps-uJMZqSEt.es.js} +2 -2
  183. package/dist/chunks/{mergeProps-B_9syxhT.es.js.map → mergeProps-uJMZqSEt.es.js.map} +1 -1
  184. package/dist/chunks/{multiline-text-input-sr-8f5JV.es.js → multiline-text-input-BxC-HBJS.es.js} +4 -4
  185. package/dist/chunks/{multiline-text-input-sr-8f5JV.es.js.map → multiline-text-input-BxC-HBJS.es.js.map} +1 -1
  186. package/dist/chunks/{multiline-text-input-z1pACPVX.cjs.js → multiline-text-input-XDsu-5Ir.cjs.js} +2 -2
  187. package/dist/chunks/{multiline-text-input-z1pACPVX.cjs.js.map → multiline-text-input-XDsu-5Ir.cjs.js.map} +1 -1
  188. package/dist/chunks/{nimbus-provider-ClSAgdoD.cjs.js → nimbus-provider-DU9neylH.cjs.js} +2 -2
  189. package/dist/chunks/{nimbus-provider-ClSAgdoD.cjs.js.map → nimbus-provider-DU9neylH.cjs.js.map} +1 -1
  190. package/dist/chunks/{nimbus-provider-DaWtjnp-.es.js → nimbus-provider-mSQ00EQj.es.js} +3 -3
  191. package/dist/chunks/{nimbus-provider-DaWtjnp-.es.js.map → nimbus-provider-mSQ00EQj.es.js.map} +1 -1
  192. package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -1
  193. package/dist/chunks/number-dMxJejI6.es.js.map +1 -1
  194. package/dist/chunks/{number-input-D4DKdybl.es.js → number-input-86JlfGyD.es.js} +311 -297
  195. package/dist/chunks/number-input-86JlfGyD.es.js.map +1 -0
  196. package/dist/chunks/number-input-C6V-OoKY.cjs.js +2 -0
  197. package/dist/chunks/number-input-C6V-OoKY.cjs.js.map +1 -0
  198. package/dist/chunks/openLink-Ctl0AdAy.es.js.map +1 -1
  199. package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -1
  200. package/dist/chunks/pagination-D-PpTgDZ.es.js +160 -0
  201. package/dist/chunks/pagination-D-PpTgDZ.es.js.map +1 -0
  202. package/dist/chunks/pagination-DFmOo7da.cjs.js +2 -0
  203. package/dist/chunks/pagination-DFmOo7da.cjs.js.map +1 -0
  204. package/dist/chunks/password-input-BVDnOfvR.cjs.js +2 -0
  205. package/dist/chunks/password-input-BVDnOfvR.cjs.js.map +1 -0
  206. package/dist/chunks/password-input-BizG9N1_.es.js +67 -0
  207. package/dist/chunks/password-input-BizG9N1_.es.js.map +1 -0
  208. package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -1
  209. package/dist/chunks/platform-Z5fvtFmM.es.js.map +1 -1
  210. package/dist/chunks/{progress-bar-Wka_eryr.es.js → progress-bar-8JDUwg7A.es.js} +4 -4
  211. package/dist/chunks/{progress-bar-Wka_eryr.es.js.map → progress-bar-8JDUwg7A.es.js.map} +1 -1
  212. package/dist/chunks/{progress-bar-Dz8r8vuu.cjs.js → progress-bar-EQdUUcCZ.cjs.js} +2 -2
  213. package/dist/chunks/{progress-bar-Dz8r8vuu.cjs.js.map → progress-bar-EQdUUcCZ.cjs.js.map} +1 -1
  214. package/dist/chunks/{radio-input-B0qTg-Fb.es.js → radio-input-CSatNmXz.es.js} +18 -18
  215. package/dist/chunks/{radio-input-B0qTg-Fb.es.js.map → radio-input-CSatNmXz.es.js.map} +1 -1
  216. package/dist/chunks/{radio-input-D_pe6uBJ.cjs.js → radio-input-CpWPWVHJ.cjs.js} +2 -2
  217. package/dist/chunks/{radio-input-D_pe6uBJ.cjs.js.map → radio-input-CpWPWVHJ.cjs.js.map} +1 -1
  218. package/dist/chunks/{range-calendar-CoAszOTq.es.js → range-calendar-6mWVLehI.es.js} +11 -11
  219. package/dist/chunks/{range-calendar-CoAszOTq.es.js.map → range-calendar-6mWVLehI.es.js.map} +1 -1
  220. package/dist/chunks/{range-calendar-T1Wlvm-Z.cjs.js → range-calendar-jXa_w-79.cjs.js} +2 -2
  221. package/dist/chunks/{range-calendar-T1Wlvm-Z.cjs.js.map → range-calendar-jXa_w-79.cjs.js.map} +1 -1
  222. package/dist/chunks/rich-text-input-B3s6cy-T.cjs.js +2 -0
  223. package/dist/chunks/rich-text-input-B3s6cy-T.cjs.js.map +1 -0
  224. package/dist/chunks/{rich-text-input-9MdutxJr.es.js → rich-text-input-D4cP13Oo.es.js} +182 -195
  225. package/dist/chunks/rich-text-input-D4cP13Oo.es.js.map +1 -0
  226. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -1
  227. package/dist/chunks/{scrollIntoView-BYF_8_6g.es.js → scrollIntoView-DW7gkKpB.es.js} +2 -2
  228. package/dist/chunks/{scrollIntoView-BYF_8_6g.es.js.map → scrollIntoView-DW7gkKpB.es.js.map} +1 -1
  229. package/dist/chunks/select-BAV0cdM5.cjs.js +2 -0
  230. package/dist/chunks/select-BAV0cdM5.cjs.js.map +1 -0
  231. package/dist/chunks/{select-Dz2O_cFR.es.js → select-BEko2rwu.es.js} +124 -114
  232. package/dist/chunks/select-BEko2rwu.es.js.map +1 -0
  233. package/dist/chunks/slate-helpers-BwRHJO4o.es.js +6919 -0
  234. package/dist/chunks/slate-helpers-BwRHJO4o.es.js.map +1 -0
  235. package/dist/chunks/slate-helpers-CMAwCMk0.cjs.js +24 -0
  236. package/dist/chunks/slate-helpers-CMAwCMk0.cjs.js.map +1 -0
  237. package/dist/chunks/split-button-1uPesHKO.cjs.js +2 -0
  238. package/dist/chunks/split-button-1uPesHKO.cjs.js.map +1 -0
  239. package/dist/chunks/split-button-BR8DktKd.es.js +101 -0
  240. package/dist/chunks/split-button-BR8DktKd.es.js.map +1 -0
  241. package/dist/chunks/{switch-BToNhl42.cjs.js → switch-BjdhpPWV.cjs.js} +2 -2
  242. package/dist/chunks/{switch-BToNhl42.cjs.js.map → switch-BjdhpPWV.cjs.js.map} +1 -1
  243. package/dist/chunks/{switch-Poa2k7a5.es.js → switch-D08_asL7.es.js} +7 -7
  244. package/dist/chunks/{switch-Poa2k7a5.es.js.map → switch-D08_asL7.es.js.map} +1 -1
  245. package/dist/chunks/{tag-group-BCNooINR.es.js → tag-group-C8xH9Mqk.es.js} +22 -22
  246. package/dist/chunks/{tag-group-BCNooINR.es.js.map → tag-group-C8xH9Mqk.es.js.map} +1 -1
  247. package/dist/chunks/{tag-group-DzXa9m7w.cjs.js → tag-group-D6_THomO.cjs.js} +2 -2
  248. package/dist/chunks/{tag-group-DzXa9m7w.cjs.js.map → tag-group-D6_THomO.cjs.js.map} +1 -1
  249. package/dist/chunks/{text-DfQpupDi.es.js → text-Bi4Gre95.es.js} +2 -2
  250. package/dist/chunks/{text-DfQpupDi.es.js.map → text-Bi4Gre95.es.js.map} +1 -1
  251. package/dist/chunks/{text-input-5jfm2V1Y.cjs.js → text-input-BtBwAmoa.cjs.js} +2 -2
  252. package/dist/chunks/{text-input-5jfm2V1Y.cjs.js.map → text-input-BtBwAmoa.cjs.js.map} +1 -1
  253. package/dist/chunks/{text-input-Dqx8GVHm.es.js → text-input-bPh9j1cv.es.js} +5 -5
  254. package/dist/chunks/{text-input-Dqx8GVHm.es.js.map → text-input-bPh9j1cv.es.js.map} +1 -1
  255. package/dist/chunks/{time-input-B_PIpe-Z.cjs.js → time-input-DP2ci38H.cjs.js} +2 -2
  256. package/dist/chunks/{time-input-B_PIpe-Z.cjs.js.map → time-input-DP2ci38H.cjs.js.map} +1 -1
  257. package/dist/chunks/{time-input-DxKFrUee.es.js → time-input-Dg7SfITo.es.js} +3 -3
  258. package/dist/chunks/{time-input-DxKFrUee.es.js.map → time-input-Dg7SfITo.es.js.map} +1 -1
  259. package/dist/chunks/{toggle-button-Cg00z4JT.cjs.js → toggle-button-D8qdeoHu.cjs.js} +2 -2
  260. package/dist/chunks/{toggle-button-Cg00z4JT.cjs.js.map → toggle-button-D8qdeoHu.cjs.js.map} +1 -1
  261. package/dist/chunks/{toggle-button-C1bAVGF3.es.js → toggle-button-DeqTwBN5.es.js} +5 -5
  262. package/dist/chunks/{toggle-button-C1bAVGF3.es.js.map → toggle-button-DeqTwBN5.es.js.map} +1 -1
  263. package/dist/chunks/{toggle-button-group-jRdpdYyd.es.js → toggle-button-group-DXmJCAH5.es.js} +2 -2
  264. package/dist/chunks/{toggle-button-group-jRdpdYyd.es.js.map → toggle-button-group-DXmJCAH5.es.js.map} +1 -1
  265. package/dist/chunks/{toolbar-ClUkHnY4.cjs.js → toolbar-BfEvyuOt.cjs.js} +2 -2
  266. package/dist/chunks/{toolbar-ClUkHnY4.cjs.js.map → toolbar-BfEvyuOt.cjs.js.map} +1 -1
  267. package/dist/chunks/{toolbar-Oxkd8pfI.es.js → toolbar-Dv9YKOSU.es.js} +6 -6
  268. package/dist/chunks/{toolbar-Oxkd8pfI.es.js.map → toolbar-Dv9YKOSU.es.js.map} +1 -1
  269. package/dist/chunks/{tooltip-B1YdruCE.es.js → tooltip-BE3LzL7I.es.js} +8 -8
  270. package/dist/chunks/{tooltip-B1YdruCE.es.js.map → tooltip-BE3LzL7I.es.js.map} +1 -1
  271. package/dist/chunks/tooltip-g8-hEdZp.cjs.js.map +1 -1
  272. package/dist/chunks/use-formatting-state-Denpy3Zo.cjs.js +2 -0
  273. package/dist/chunks/use-formatting-state-Denpy3Zo.cjs.js.map +1 -0
  274. package/dist/chunks/use-formatting-state-RJvSR-Zg.es.js +247 -0
  275. package/dist/chunks/use-formatting-state-RJvSR-Zg.es.js.map +1 -0
  276. package/dist/chunks/useButton-BgBfaV_L.cjs.js.map +1 -1
  277. package/dist/chunks/{useButton-DAeSjgg9.es.js → useButton-CYfXo2Jm.es.js} +4 -4
  278. package/dist/chunks/{useButton-DAeSjgg9.es.js.map → useButton-CYfXo2Jm.es.js.map} +1 -1
  279. package/dist/chunks/{useCollator-BHMZd1r6.es.js → useCollator-Y-oU82PA.es.js} +2 -2
  280. package/dist/chunks/{useCollator-BHMZd1r6.es.js.map → useCollator-Y-oU82PA.es.js.map} +1 -1
  281. package/dist/chunks/useCollator-YVJAe1GI.cjs.js.map +1 -1
  282. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  283. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  284. package/dist/chunks/{useDateFormatter-C7Kxzwro.es.js → useDateFormatter-BuXtxdR1.es.js} +3 -3
  285. package/dist/chunks/{useDateFormatter-C7Kxzwro.es.js.map → useDateFormatter-BuXtxdR1.es.js.map} +1 -1
  286. package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js.map +1 -1
  287. package/dist/chunks/{useEvent-YHhqZvpU.es.js → useEvent-Bxxy8Y3o.es.js} +2 -2
  288. package/dist/chunks/{useEvent-YHhqZvpU.es.js.map → useEvent-Bxxy8Y3o.es.js.map} +1 -1
  289. package/dist/chunks/useEvent-CuUOU5WV.cjs.js.map +1 -1
  290. package/dist/chunks/useField-DmqO9k7a.cjs.js.map +1 -1
  291. package/dist/chunks/{useField-Ce9zQxmx.es.js → useField-Do87rtEk.es.js} +3 -3
  292. package/dist/chunks/{useField-Ce9zQxmx.es.js.map → useField-Do87rtEk.es.js.map} +1 -1
  293. package/dist/chunks/useFilter-CG8lxfCP.cjs.js.map +1 -1
  294. package/dist/chunks/{useFilter-DOfNzeZ9.es.js → useFilter-ClBjQ7pb.es.js} +2 -2
  295. package/dist/chunks/{useFilter-DOfNzeZ9.es.js.map → useFilter-ClBjQ7pb.es.js.map} +1 -1
  296. package/dist/chunks/{useFocus-DkWJ2TJC.es.js → useFocus-BmMqaBAE.es.js} +2 -2
  297. package/dist/chunks/{useFocus-DkWJ2TJC.es.js.map → useFocus-BmMqaBAE.es.js.map} +1 -1
  298. package/dist/chunks/useFocus-BtJ38vev.cjs.js.map +1 -1
  299. package/dist/chunks/useFocusRing-CzFer4bD.cjs.js.map +1 -1
  300. package/dist/chunks/{useFocusRing-updnkDQg.es.js → useFocusRing-SQNQ9yn0.es.js} +4 -4
  301. package/dist/chunks/{useFocusRing-updnkDQg.es.js.map → useFocusRing-SQNQ9yn0.es.js.map} +1 -1
  302. package/dist/chunks/{useFocusVisible-CWDaG0ze.es.js → useFocusVisible-BrqHqmb9.es.js} +3 -3
  303. package/dist/chunks/{useFocusVisible-CWDaG0ze.es.js.map → useFocusVisible-BrqHqmb9.es.js.map} +1 -1
  304. package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js.map +1 -1
  305. package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js.map +1 -1
  306. package/dist/chunks/{useFocusWithin-ByYlHjju.es.js → useFocusWithin-Db5nhiOm.es.js} +2 -2
  307. package/dist/chunks/{useFocusWithin-ByYlHjju.es.js.map → useFocusWithin-Db5nhiOm.es.js.map} +1 -1
  308. package/dist/chunks/{useFocusable-CrsD8ZcF.es.js → useFocusable-BqRFi3ok.es.js} +5 -5
  309. package/dist/chunks/{useFocusable-CrsD8ZcF.es.js.map → useFocusable-BqRFi3ok.es.js.map} +1 -1
  310. package/dist/chunks/useFocusable-DCgmQxS1.cjs.js.map +1 -1
  311. package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -1
  312. package/dist/chunks/{useFormReset-DurgUJL-.es.js → useFormReset-S3fDvX8g.es.js} +2 -2
  313. package/dist/chunks/{useFormReset-DurgUJL-.es.js.map → useFormReset-S3fDvX8g.es.js.map} +1 -1
  314. package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js.map +1 -1
  315. package/dist/chunks/{useFormValidation-4hZ1_a6w.es.js → useFormValidation-CzvY15hR.es.js} +3 -3
  316. package/dist/chunks/{useFormValidation-4hZ1_a6w.es.js.map → useFormValidation-CzvY15hR.es.js.map} +1 -1
  317. package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -1
  318. package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -1
  319. package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js.map +1 -1
  320. package/dist/chunks/{useHighlightSelectionDescription-BQg1WcM3.es.js → useHighlightSelectionDescription-VzA5DMaE.es.js} +6 -6
  321. package/dist/chunks/{useHighlightSelectionDescription-BQg1WcM3.es.js.map → useHighlightSelectionDescription-VzA5DMaE.es.js.map} +1 -1
  322. package/dist/chunks/{useHover-DhoE75lX.es.js → useHover-B6UI1gbJ.es.js} +2 -2
  323. package/dist/chunks/{useHover-DhoE75lX.es.js.map → useHover-B6UI1gbJ.es.js.map} +1 -1
  324. package/dist/chunks/useHover-CiP9jMFy.cjs.js.map +1 -1
  325. package/dist/chunks/{useLabel-BBmkkrPP.es.js → useLabel-BZKxdTDn.es.js} +2 -2
  326. package/dist/chunks/{useLabel-BBmkkrPP.es.js.map → useLabel-BZKxdTDn.es.js.map} +1 -1
  327. package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +1 -1
  328. package/dist/chunks/{useLocalizedStringFormatter-BRnRyxJp.es.js → useLocalizedStringFormatter-BpL9LNnx.es.js} +2 -2
  329. package/dist/chunks/{useLocalizedStringFormatter-BRnRyxJp.es.js.map → useLocalizedStringFormatter-BpL9LNnx.es.js.map} +1 -1
  330. package/dist/chunks/useLocalizedStringFormatter-sB0mFYtL.cjs.js.map +1 -1
  331. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  332. package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
  333. package/dist/chunks/{usePress-DHhWHfMz.es.js → usePress-BuSQ4Y3L.es.js} +6 -6
  334. package/dist/chunks/{usePress-DHhWHfMz.es.js.map → usePress-BuSQ4Y3L.es.js.map} +1 -1
  335. package/dist/chunks/usePress-C8-hLXJw.cjs.js.map +1 -1
  336. package/dist/chunks/useProgressBar-DWH4I0qR.cjs.js.map +1 -1
  337. package/dist/chunks/{useProgressBar-DHFmTHqL.es.js → useProgressBar-g3lb_jPQ.es.js} +4 -4
  338. package/dist/chunks/{useProgressBar-DHFmTHqL.es.js.map → useProgressBar-g3lb_jPQ.es.js.map} +1 -1
  339. package/dist/chunks/{useSingleSelectListState-C_48GoKf.cjs.js → useSingleSelectListState-C-E1yca1.cjs.js} +2 -2
  340. package/dist/chunks/{useSingleSelectListState-C_48GoKf.cjs.js.map → useSingleSelectListState-C-E1yca1.cjs.js.map} +1 -1
  341. package/dist/chunks/{useSingleSelectListState-DZavH1SN.es.js → useSingleSelectListState-CUkiyLA6.es.js} +2 -2
  342. package/dist/chunks/{useSingleSelectListState-DZavH1SN.es.js.map → useSingleSelectListState-CUkiyLA6.es.js.map} +1 -1
  343. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js.map +1 -1
  344. package/dist/chunks/{useSpinButton-C9DPDo0r.es.js → useSpinButton-DedtXIGZ.es.js} +3 -3
  345. package/dist/chunks/{useSpinButton-C9DPDo0r.es.js.map → useSpinButton-DedtXIGZ.es.js.map} +1 -1
  346. package/dist/chunks/{useSyncRef-DGRbdR4H.es.js → useSyncRef-Cipkqs1s.es.js} +2 -2
  347. package/dist/chunks/{useSyncRef-DGRbdR4H.es.js.map → useSyncRef-Cipkqs1s.es.js.map} +1 -1
  348. package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -1
  349. package/dist/chunks/useTextField-BcthGRd8.cjs.js.map +1 -1
  350. package/dist/chunks/{useTextField-BnL6tOdd.es.js → useTextField-tbVMyexr.es.js} +7 -7
  351. package/dist/chunks/{useTextField-BnL6tOdd.es.js.map → useTextField-tbVMyexr.es.js.map} +1 -1
  352. package/dist/chunks/{useToggle-DqruaaTq.es.js → useToggle-CoHAX6Sy.es.js} +5 -5
  353. package/dist/chunks/{useToggle-DqruaaTq.es.js.map → useToggle-CoHAX6Sy.es.js.map} +1 -1
  354. package/dist/chunks/useToggle-VJWgbeCC.cjs.js.map +1 -1
  355. package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -1
  356. package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -1
  357. package/dist/chunks/{useToolbar-CLH6Sjes.es.js → useToolbar-B1WYuGxA.es.js} +4 -4
  358. package/dist/chunks/{useToolbar-CLH6Sjes.es.js.map → useToolbar-B1WYuGxA.es.js.map} +1 -1
  359. package/dist/chunks/useToolbar-Bqn3EANT.cjs.js.map +1 -1
  360. package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
  361. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  362. package/dist/chunks/utils-BGHwK7fd.cjs.js.map +1 -1
  363. package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -1
  364. package/dist/chunks/{utils-BkdW_cdL.es.js → utils-CsKCu3xh.es.js} +2 -2
  365. package/dist/chunks/{utils-BkdW_cdL.es.js.map → utils-CsKCu3xh.es.js.map} +1 -1
  366. package/dist/chunks/{utils-jpfA6kxk.es.js → utils-d3Zmq36h.es.js} +2 -2
  367. package/dist/chunks/{utils-jpfA6kxk.es.js.map → utils-d3Zmq36h.es.js.map} +1 -1
  368. package/dist/chunks/{visually-hidden-BluyWhUI.es.js → visually-hidden-09RsVX6x.es.js} +2 -2
  369. package/dist/chunks/{visually-hidden-BluyWhUI.es.js.map → visually-hidden-09RsVX6x.es.js.map} +1 -1
  370. package/dist/components/accordion.cjs +1 -1
  371. package/dist/components/accordion.es.js +1 -1
  372. package/dist/components/alert.cjs +1 -1
  373. package/dist/components/alert.es.js +1 -1
  374. package/dist/components/badge.es.js +1 -1
  375. package/dist/components/button.cjs +1 -1
  376. package/dist/components/button.es.js +1 -1
  377. package/dist/components/calendar.cjs +1 -1
  378. package/dist/components/calendar.es.js +1 -1
  379. package/dist/components/card.es.js +1 -1
  380. package/dist/components/checkbox.cjs +1 -1
  381. package/dist/components/checkbox.es.js +1 -1
  382. package/dist/components/combobox.cjs +1 -1
  383. package/dist/components/combobox.es.js +1 -1
  384. package/dist/components/components.cjs +1 -1
  385. package/dist/components/components.es.js +70 -68
  386. package/dist/components/components.es.js.map +1 -1
  387. package/dist/components/data-table.cjs +1 -1
  388. package/dist/components/data-table.es.js +1 -1
  389. package/dist/components/date-input.cjs +1 -1
  390. package/dist/components/date-input.es.js +1 -1
  391. package/dist/components/date-picker.cjs +1 -1
  392. package/dist/components/date-picker.es.js +1 -1
  393. package/dist/components/date-range-picker.cjs +1 -1
  394. package/dist/components/date-range-picker.es.js +1 -1
  395. package/dist/components/divider.cjs +1 -1
  396. package/dist/components/divider.es.js +1 -1
  397. package/dist/components/form-field.cjs +1 -1
  398. package/dist/components/form-field.es.js +1 -1
  399. package/dist/components/group.es.js +1 -1
  400. package/dist/components/hooks.cjs +1 -1
  401. package/dist/components/hooks.es.js +1 -1
  402. package/dist/components/icon-button.cjs +1 -1
  403. package/dist/components/icon-button.es.js +1 -1
  404. package/dist/components/icon-toggle-button.cjs +1 -1
  405. package/dist/components/icon-toggle-button.es.js +1 -1
  406. package/dist/components/kbd.es.js +1 -1
  407. package/dist/components/link.es.js +1 -1
  408. package/dist/components/loading-spinner.cjs +1 -1
  409. package/dist/components/loading-spinner.es.js +1 -1
  410. package/dist/components/multiline-text-input.cjs +1 -1
  411. package/dist/components/multiline-text-input.es.js +1 -1
  412. package/dist/components/nimbus-provider.cjs +1 -1
  413. package/dist/components/nimbus-provider.es.js +1 -1
  414. package/dist/components/number-input.cjs +1 -1
  415. package/dist/components/number-input.es.js +1 -1
  416. package/dist/components/pagination.cjs +2 -0
  417. package/dist/components/pagination.cjs.map +1 -0
  418. package/dist/components/pagination.es.js +5 -0
  419. package/dist/components/pagination.es.js.map +1 -0
  420. package/dist/components/password-input.cjs +1 -1
  421. package/dist/components/password-input.es.js +1 -1
  422. package/dist/components/popover.cjs +1 -1
  423. package/dist/components/popover.es.js +1 -1
  424. package/dist/components/progress-bar.cjs +1 -1
  425. package/dist/components/progress-bar.es.js +1 -1
  426. package/dist/components/radio-input.cjs +1 -1
  427. package/dist/components/radio-input.es.js +1 -1
  428. package/dist/components/range-calendar.cjs +1 -1
  429. package/dist/components/range-calendar.es.js +1 -1
  430. package/dist/components/rich-text-input.cjs +1 -1
  431. package/dist/components/rich-text-input.es.js +1 -1
  432. package/dist/components/select.cjs +1 -1
  433. package/dist/components/select.es.js +1 -1
  434. package/dist/components/split-button.cjs +1 -1
  435. package/dist/components/split-button.es.js +1 -1
  436. package/dist/components/switch.cjs +1 -1
  437. package/dist/components/switch.es.js +1 -1
  438. package/dist/components/tag-group.cjs +1 -1
  439. package/dist/components/tag-group.es.js +1 -1
  440. package/dist/components/text-input.cjs +1 -1
  441. package/dist/components/text-input.es.js +1 -1
  442. package/dist/components/text.es.js +1 -1
  443. package/dist/components/time-input.cjs +1 -1
  444. package/dist/components/time-input.es.js +1 -1
  445. package/dist/components/toggle-button-group.es.js +1 -1
  446. package/dist/components/toggle-button.cjs +1 -1
  447. package/dist/components/toggle-button.es.js +1 -1
  448. package/dist/components/toolbar.cjs +1 -1
  449. package/dist/components/toolbar.es.js +1 -1
  450. package/dist/components/tooltip.es.js +2 -2
  451. package/dist/components/utils.cjs +1 -1
  452. package/dist/components/utils.es.js +2 -2
  453. package/dist/components/visually-hidden.es.js +1 -1
  454. package/dist/components.d.ts +98 -88
  455. package/dist/index.cjs +1 -1
  456. package/dist/index.cjs.map +1 -1
  457. package/dist/index.d.ts +98 -87
  458. package/dist/index.es.js +62 -60
  459. package/dist/index.es.js.map +1 -1
  460. package/dist/pagination.d.ts +46 -0
  461. package/dist/select.d.ts +9 -0
  462. package/dist/split-button.d.ts +5 -3
  463. package/package.json +19 -18
  464. package/dist/chunks/Separator-CcMEmnGS.cjs.js +0 -18
  465. package/dist/chunks/accordion-EDJoghXQ.cjs.js +0 -2
  466. package/dist/chunks/accordion-EDJoghXQ.cjs.js.map +0 -1
  467. package/dist/chunks/accordion-UL4pfC2d.es.js +0 -223
  468. package/dist/chunks/accordion-UL4pfC2d.es.js.map +0 -1
  469. package/dist/chunks/alert-Ce4-sHmy.cjs.js +0 -2
  470. package/dist/chunks/alert-Ce4-sHmy.cjs.js.map +0 -1
  471. package/dist/chunks/alert-fGOiy9nj.es.js.map +0 -1
  472. package/dist/chunks/date-picker-ChoImuv_.cjs.js +0 -2
  473. package/dist/chunks/date-picker-ChoImuv_.cjs.js.map +0 -1
  474. package/dist/chunks/date-picker-S6C2mWMs.es.js +0 -190
  475. package/dist/chunks/date-picker-S6C2mWMs.es.js.map +0 -1
  476. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js +0 -2
  477. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js.map +0 -1
  478. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js +0 -16
  479. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js.map +0 -1
  480. package/dist/chunks/index-B3DGNvyC.cjs.js +0 -4
  481. package/dist/chunks/index-B3DGNvyC.cjs.js.map +0 -1
  482. package/dist/chunks/index-BDXHumM1.es.js.map +0 -1
  483. package/dist/chunks/loading-spinner-CvggCl-H.es.js.map +0 -1
  484. package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js +0 -2
  485. package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js.map +0 -1
  486. package/dist/chunks/number-input-BszmEIip.cjs.js +0 -2
  487. package/dist/chunks/number-input-BszmEIip.cjs.js.map +0 -1
  488. package/dist/chunks/number-input-D4DKdybl.es.js.map +0 -1
  489. package/dist/chunks/password-input-7AyAmLgJ.es.js +0 -50
  490. package/dist/chunks/password-input-7AyAmLgJ.es.js.map +0 -1
  491. package/dist/chunks/password-input-BtvFF-4B.cjs.js +0 -2
  492. package/dist/chunks/password-input-BtvFF-4B.cjs.js.map +0 -1
  493. package/dist/chunks/rich-text-input-9MdutxJr.es.js.map +0 -1
  494. package/dist/chunks/rich-text-input-D36fnIHb.cjs.js +0 -7
  495. package/dist/chunks/rich-text-input-D36fnIHb.cjs.js.map +0 -1
  496. package/dist/chunks/select-DFNyky2d.cjs.js +0 -2
  497. package/dist/chunks/select-DFNyky2d.cjs.js.map +0 -1
  498. package/dist/chunks/select-Dz2O_cFR.es.js.map +0 -1
  499. package/dist/chunks/slate-helpers-CcSj-DBm.cjs.js +0 -24
  500. package/dist/chunks/slate-helpers-CcSj-DBm.cjs.js.map +0 -1
  501. package/dist/chunks/slate-helpers-DsTiLoO8.es.js +0 -9042
  502. package/dist/chunks/slate-helpers-DsTiLoO8.es.js.map +0 -1
  503. package/dist/chunks/split-button-BIMKDmUe.cjs.js +0 -2
  504. package/dist/chunks/split-button-BIMKDmUe.cjs.js.map +0 -1
  505. package/dist/chunks/split-button-C5Op1s7Z.es.js +0 -103
  506. package/dist/chunks/split-button-C5Op1s7Z.es.js.map +0 -1
  507. package/dist/chunks/use-formatting-state-B26nE9CO.es.js +0 -113
  508. package/dist/chunks/use-formatting-state-B26nE9CO.es.js.map +0 -1
  509. package/dist/chunks/use-formatting-state-D7zenGZW.cjs.js +0 -2
  510. package/dist/chunks/use-formatting-state-D7zenGZW.cjs.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"focusWithoutScrolling-CDw3JYiq.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};\n//# sourceMappingURL=focusWithoutScrolling.module.js.map\n"],"names":["$7215afc6de606d6b$export$de79e2c695e052f3","element","$7215afc6de606d6b$var$supportsPreventScroll","scrollableElements","$7215afc6de606d6b$var$getScrollableElements","$7215afc6de606d6b$var$restoreScrollPosition","$7215afc6de606d6b$var$supportsPreventScrollCached","parent","rootScrollingElement","scrollTop","scrollLeft"],"mappings":"AAUI,SAASA,EAA0CC,GAAS;AAC5D,MAAIC,EAA2C,EAAI,CAAAD,EAAQ,MAAM;AAAA,IAC7D,eAAe;AAAA,EACvB,CAAK;AAAA,OACI;AACD,QAAIE,IAAqBC,EAA4CH,CAAO;AAC5E,IAAAA,EAAQ,MAAK,GACbI,EAA4CF,CAAkB;AAAA,EAClE;AACJ;AACA,IAAIG,IAAoD;AACxD,SAASJ,IAA8C;AACnD,MAAII,KAAqD,MAAM;AAC3D,IAAAA,IAAoD;AACpD,QAAI;AAEA,MADgB,SAAS,cAAc,KAAK,EAClC,MAAM;AAAA,QACZ,IAAI,gBAAiB;AACjB,iBAAAA,IAAoD,IAC7C;AAAA,QACX;AAAA,MAChB,CAAa;AAAA,IACL,QAAS;AAAA,IAET;AAAA,EACJ;AACA,SAAOA;AACX;AACA,SAASF,EAA4CH,GAAS;AAC1D,MAAIM,IAASN,EAAQ,YACjBE,IAAqB,CAAA,GACrBK,IAAuB,SAAS,oBAAoB,SAAS;AACjE,SAAMD,aAAkB,eAAeA,MAAWC;AAC9C,KAAID,EAAO,eAAeA,EAAO,gBAAgBA,EAAO,cAAcA,EAAO,gBAAaJ,EAAmB,KAAK;AAAA,MAC9G,SAASI;AAAA,MACT,WAAWA,EAAO;AAAA,MAClB,YAAYA,EAAO;AAAA,IAC/B,CAAS,GACDA,IAASA,EAAO;AAEpB,SAAIC,aAAgC,eAAaL,EAAmB,KAAK;AAAA,IACrE,SAASK;AAAA,IACT,WAAWA,EAAqB;AAAA,IAChC,YAAYA,EAAqB;AAAA,EACzC,CAAK,GACML;AACX;AACA,SAASE,EAA4CF,GAAoB;AACrE,WAAS,EAAE,SAASF,GAAS,WAAWQ,GAAW,YAAYC,EAAU,KAAMP;AAC3E,IAAAF,EAAQ,YAAYQ,GACpBR,EAAQ,aAAaS;AAE7B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"focusWithoutScrolling-CDw3JYiq.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};\n//# sourceMappingURL=focusWithoutScrolling.module.js.map\n"],"names":["$7215afc6de606d6b$export$de79e2c695e052f3","element","$7215afc6de606d6b$var$supportsPreventScroll","scrollableElements","$7215afc6de606d6b$var$getScrollableElements","$7215afc6de606d6b$var$restoreScrollPosition","$7215afc6de606d6b$var$supportsPreventScrollCached","parent","rootScrollingElement","scrollTop","scrollLeft"],"mappings":"AAUI,SAASA,EAA0CC,GAAS;AAC5D,MAAIC,EAA2C,EAAI,CAAAD,EAAQ,MAAM;AAAA,IAC7D,eAAe;AAAA,EACvB,CAAK;AAAA,OACI;AACD,QAAIE,IAAqBC,EAA4CH,CAAO;AAC5E,IAAAA,EAAQ,MAAK,GACbI,EAA4CF,CAAkB;AAAA,EAClE;AACJ;AACA,IAAIG,IAAoD;AACxD,SAASJ,IAA8C;AACnD,MAAII,KAAqD,MAAM;AAC3D,IAAAA,IAAoD;AACpD,QAAI;AAEA,MADgB,SAAS,cAAc,KAAK,EAClC,MAAM;AAAA,QACZ,IAAI,gBAAiB;AACjB,iBAAAA,IAAoD,IAC7C;AAAA,QACX;AAAA,MAChB,CAAa;AAAA,IACL,QAAS;AAAA,IAET;AAAA,EACJ;AACA,SAAOA;AACX;AACA,SAASF,EAA4CH,GAAS;AAC1D,MAAIM,IAASN,EAAQ,YACjBE,IAAqB,CAAA,GACrBK,IAAuB,SAAS,oBAAoB,SAAS;AACjE,SAAMD,aAAkB,eAAeA,MAAWC;AAC9C,KAAID,EAAO,eAAeA,EAAO,gBAAgBA,EAAO,cAAcA,EAAO,gBAAaJ,EAAmB,KAAK;AAAA,MAC9G,SAASI;AAAA,MACT,WAAWA,EAAO;AAAA,MAClB,YAAYA,EAAO;AAAA,IAC/B,CAAS,GACDA,IAASA,EAAO;AAEpB,SAAIC,aAAgC,eAAaL,EAAmB,KAAK;AAAA,IACrE,SAASK;AAAA,IACT,WAAWA,EAAqB;AAAA,IAChC,YAAYA,EAAqB;AAAA,EACzC,CAAK,GACML;AACX;AACA,SAASE,EAA4CF,GAAoB;AACrE,WAAS,EAAE,SAASF,GAAS,WAAWQ,GAAW,YAAYC,EAAU,KAAMP;AAC3E,IAAAF,EAAQ,YAAYQ,GACpBR,EAAQ,aAAaS;AAE7B;","x_google_ignoreList":[0]}
@@ -1,11 +1,11 @@
1
1
  import { jsx as l, jsxs as c } from "react/jsx-runtime";
2
2
  import { createContext as z, forwardRef as $, useState as P, useEffect as n, Children as w, isValidElement as A, cloneElement as E, useContext as d } from "react";
3
3
  import { defineSlotRecipe as H, createSlotRecipeContext as y } from "@chakra-ui/react/styled-system";
4
- import { e as B, $ as L, a as I } from "./Dialog-C9HXv1rP.es.js";
4
+ import { e as B, $ as L, a as I } from "./Dialog-Cva4CZ0O.es.js";
5
5
  import { B as m } from "./box-DuBoAZvq.es.js";
6
- import { I as M } from "./icon-button-DPtCLr1A.es.js";
6
+ import { I as M } from "./icon-button-CKidhzN0.es.js";
7
7
  import { HelpOutline as R, ErrorOutline as T } from "@commercetools/nimbus-icons";
8
- import { $ as W } from "./useField-Ce9zQxmx.es.js";
8
+ import { $ as W } from "./useField-Do87rtEk.es.js";
9
9
  const a = /* @__PURE__ */ z({
10
10
  context: {
11
11
  label: null,
@@ -306,4 +306,4 @@ export {
306
306
  Z as e,
307
307
  q as f
308
308
  };
309
- //# sourceMappingURL=form-field-DDTIZj9s.es.js.map
309
+ //# sourceMappingURL=form-field-BF03DSg5.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-DDTIZj9s.es.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.recipe.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.slots\";\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 { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nconst columnLayout = `\n\"label\"\n\"input\"\n\"description\"\n\"error\"\n`;\nconst rowLayout = `\n\"label input\"\n\"label description\"\n\"label error\"\n`;\n\n/**\n * Recipe configuration for the FormField component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const formFieldRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"input\", \"description\", \"error\", \"popover\"],\n // Unique class name prefix for the component\n className: \"nimbus-ui-form-field\",\n\n base: {\n root: {\n \"--grid-gap\": \"spacing.100\",\n\n display: \"grid\",\n width: \"auto\",\n },\n label: {\n gridArea: \"label\",\n fontWeight: \"500\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n input: {\n gridArea: \"input\",\n },\n description: {\n gridArea: \"description\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n error: {\n gridArea: \"error\",\n color: \"critical.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n popover: {\n \"--scrollbar-color\": \"colors.neutral.8\",\n \"--scrollbar-bg\": \"colors.neutral.3\",\n bg: \"neutral.1\",\n maxWidth: \"xl\",\n borderRadius: \"200\",\n boxShadow: \"6\",\n border: \"solid-25\",\n borderColor: \"neutral.8\",\n maxHeight: \"40svh\",\n overflow: \"auto\",\n scrollbarWidth: \"thin\",\n scrollbarColor: \"var(--scrollbar-color) var(--scrollbar-bg)\",\n focusRing: \"outside\",\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n \"--form-field-font-size\": \"fontSizes.350\",\n \"--form-field-line-height\": \"lineHeights.500\",\n },\n },\n sm: {\n root: {\n \"--form-field-font-size\": \"fontSizes.300\",\n \"--form-field-line-height\": \"lineHeights.450\",\n },\n },\n },\n direction: {\n column: {\n root: {\n gridTemplateAreas: columnLayout,\n },\n input: {\n mt: \"var(--grid-gap)\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n row: {\n root: {\n gridTemplateAreas: rowLayout,\n gridTemplateColumns: \"auto 1fr\",\n gridColumnGap: \"200\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n direction: \"column\",\n size: \"md\",\n },\n});\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeVariantProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { formFieldRecipe } from \"./form-field.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: formFieldRecipe,\n});\n\n// Root slot\nexport interface FormFieldRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof formFieldRecipe> & UnstyledProp\n > {}\n\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport interface FormFieldLabelSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport interface FormFieldInputSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport interface FormFieldDescriptionSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport interface FormFieldErrorSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport interface FormFieldPopoverSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useEffect,\n useState,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField } from \"react-aria\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = forwardRef<HTMLDivElement, FormFieldProps>(\n (\n { isInvalid, isRequired, isDisabled, isReadOnly, children, ...props },\n ref\n ) => {\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] = {\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n useFieldArgs.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 useFieldArgs[\"aria-label\"] = \"empty-label\";\n useFieldArgs[\"aria-labelledby\"] = \"empty-label\";\n }\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 = {\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n\n return (\n <FormFieldContext.Provider value={{ context, setContext }}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n }\n);\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","columnLayout","rowLayout","formFieldRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardRef","isInvalid","isRequired","isDisabled","isReadOnly","children","props","ref","context","setContext","useState","useFieldArgs","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","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,OAAO;AAAA,EAAA;AAAA,EAET,YAAY,MAAM;AAAA,EAAC;AACrB,CAAC,GCpCKC,IAAe;AAAA;AAAA;AAAA;AAAA;AAAA,GAMfC,IAAY;AAAA;AAAA;AAAA;AAAA,GAULC,IAAkB,gBAAAC,EAAiB;AAAA,EAC9C,OAAO,CAAC,QAAQ,SAAS,SAAS,eAAe,SAAS,SAAS;AAAA;AAAA,EAEnE,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;AAAA,MAEd,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,IA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EAAA,IAAe0B,EAAWnD,CAAgB;AAElD,SAAAiC,EAAU,MAAM;AACd,IAAAR,EAAW,CAACS,OAAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,MAAMb;AAAA,IAAA,EACN;AAAA,EACJ,GAAG,CAACA,GAAUI,CAAU,CAAC,GAElB;AACT,GCdakC,KAAY;AAAA,EACvB,MAAM5C;AAAA,EACN,OAAOkC;AAAA,EACP,OAAOG;AAAA,EACP,aAAaE;AAAA,EACb,OAAOE;AAAA,EACP,SAASE;AACX;"}
1
+ {"version":3,"file":"form-field-BF03DSg5.es.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.recipe.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.slots\";\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 { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nconst columnLayout = `\n\"label\"\n\"input\"\n\"description\"\n\"error\"\n`;\nconst rowLayout = `\n\"label input\"\n\"label description\"\n\"label error\"\n`;\n\n/**\n * Recipe configuration for the FormField component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const formFieldRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"input\", \"description\", \"error\", \"popover\"],\n // Unique class name prefix for the component\n className: \"nimbus-ui-form-field\",\n\n base: {\n root: {\n \"--grid-gap\": \"spacing.100\",\n\n display: \"grid\",\n width: \"auto\",\n },\n label: {\n gridArea: \"label\",\n fontWeight: \"500\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n input: {\n gridArea: \"input\",\n },\n description: {\n gridArea: \"description\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n error: {\n gridArea: \"error\",\n color: \"critical.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n popover: {\n \"--scrollbar-color\": \"colors.neutral.8\",\n \"--scrollbar-bg\": \"colors.neutral.3\",\n bg: \"neutral.1\",\n maxWidth: \"xl\",\n borderRadius: \"200\",\n boxShadow: \"6\",\n border: \"solid-25\",\n borderColor: \"neutral.8\",\n maxHeight: \"40svh\",\n overflow: \"auto\",\n scrollbarWidth: \"thin\",\n scrollbarColor: \"var(--scrollbar-color) var(--scrollbar-bg)\",\n focusRing: \"outside\",\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n \"--form-field-font-size\": \"fontSizes.350\",\n \"--form-field-line-height\": \"lineHeights.500\",\n },\n },\n sm: {\n root: {\n \"--form-field-font-size\": \"fontSizes.300\",\n \"--form-field-line-height\": \"lineHeights.450\",\n },\n },\n },\n direction: {\n column: {\n root: {\n gridTemplateAreas: columnLayout,\n },\n input: {\n mt: \"var(--grid-gap)\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n row: {\n root: {\n gridTemplateAreas: rowLayout,\n gridTemplateColumns: \"auto 1fr\",\n gridColumnGap: \"200\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n direction: \"column\",\n size: \"md\",\n },\n});\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeVariantProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { formFieldRecipe } from \"./form-field.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: formFieldRecipe,\n});\n\n// Root slot\nexport interface FormFieldRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof formFieldRecipe> & UnstyledProp\n > {}\n\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport interface FormFieldLabelSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport interface FormFieldInputSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport interface FormFieldDescriptionSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport interface FormFieldErrorSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport interface FormFieldPopoverSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useEffect,\n useState,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField } from \"react-aria\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = forwardRef<HTMLDivElement, FormFieldProps>(\n (\n { isInvalid, isRequired, isDisabled, isReadOnly, children, ...props },\n ref\n ) => {\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] = {\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n useFieldArgs.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 useFieldArgs[\"aria-label\"] = \"empty-label\";\n useFieldArgs[\"aria-labelledby\"] = \"empty-label\";\n }\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 = {\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n\n return (\n <FormFieldContext.Provider value={{ context, setContext }}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n }\n);\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","columnLayout","rowLayout","formFieldRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardRef","isInvalid","isRequired","isDisabled","isReadOnly","children","props","ref","context","setContext","useState","useFieldArgs","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","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,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,MACb,sBAAAkC;AAAA,IAAA,EACA;AAAA,EACJ,GAAG,CAAClC,GAAUI,CAAU,CAAC,GAElB;AACT,GCfa+B,IAAiB,CAAC;AAAA,EAC7B,UAAAnC;AAAA,EACA,GAAGoC;AACL,MAA+B;AAC7B,QAAM,EAAE,YAAAhC,EAAA,IAAe0B,EAAWnD,CAAgB;AAElD,SAAAiC,EAAU,MAAM;AACd,IAAAR,EAAW,CAACS,OAAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,OAAOb;AAAA,MACP,gBAAAoC;AAAA,IAAA,EACA;AAAA,EACJ,GAAG,CAACpC,GAAUI,CAAU,CAAC,GAElB;AACT,GCTaiC,IAAmB,CAAC,EAAE,UAAArC,QAAsC;AACvE,QAAM,EAAE,YAAAI,EAAA,IAAe0B,EAAWnD,CAAgB;AAElD,SAAAiC,EAAU,MAAM;AACd,IAAAR,EAAW,CAACS,OAAiB;AAAA,MAC3B,GAAGA;AAAA,MACH,MAAMb;AAAA,IAAA,EACN;AAAA,EACJ,GAAG,CAACA,GAAUI,CAAU,CAAC,GAElB;AACT,GCdakC,KAAY;AAAA,EACvB,MAAM5C;AAAA,EACN,OAAOkC;AAAA,EACP,OAAOG;AAAA,EACP,aAAaE;AAAA,EACb,OAAOE;AAAA,EACP,SAASE;AACX;"}
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),i=require("react"),x=require("@chakra-ui/react/styled-system"),p=require("./Dialog-DZm5Sj40.cjs.js"),u=require("./box-CWni3A32.cjs.js"),y=require("./icon-button-CPXhdrQY.cjs.js"),m=require("@commercetools/nimbus-icons"),A=require("./useField-DmqO9k7a.cjs.js"),s=i.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),H=`
1
+ "use strict";const t=require("react/jsx-runtime"),i=require("react"),x=require("@chakra-ui/react/styled-system"),p=require("./Dialog-K19USc7c.cjs.js"),u=require("./box-CWni3A32.cjs.js"),y=require("./icon-button-CFLScvMi.cjs.js"),m=require("@commercetools/nimbus-icons"),A=require("./useField-DmqO9k7a.cjs.js"),s=i.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),H=`
2
2
  "label"
3
3
  "input"
4
4
  "description"
@@ -8,4 +8,4 @@
8
8
  "label description"
9
9
  "label error"
10
10
  `,L=x.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:H},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:I,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:R,withContext:c}=x.createSlotRecipeContext({recipe:L}),q=R("div","root"),M=c("div","label"),T=c("div","input"),W=c("div","description"),k=c("div","error"),D=c("div","popover"),b=i.forwardRef(({isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n,children:S,...j},z)=>{const[r,f]=i.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n}),d={description:r.description,errorMessage:r.error};r.label?d.label=r.label:(d["aria-label"]="empty-label",d["aria-labelledby"]="empty-label");const{labelProps:E,fieldProps:P,descriptionProps:$,errorMessageProps:w}=A.$2baaea4c71418dea$export$294aa081a6c6f55d(d);i.useEffect(()=>{f(a=>({...a,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n}))},[e,l,o,n]);const B={...P,isInvalid:e,isRequired:l,isDisabled:o,isReadOnly:n};return t.jsx(s.Provider,{value:{context:r,setContext:f},children:t.jsxs(q,{ref:z,...j,children:[r.label&&t.jsxs(M,{...r.labelSlotProps,children:[t.jsxs("label",{...E,children:[r.label,l&&t.jsx("sup",{"aria-hidden":"true",children:"*"})]}),r.info&&t.jsxs(p.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[t.jsx(u.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:t.jsx(u.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:t.jsx(y.IconButton,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:t.jsx(m.HelpOutline,{})})})}),t.jsx(p.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:t.jsx(D,{asChild:!0,children:t.jsx(p.$de32f1b87079253c$export$3ddf2d174ce01153,{children:t.jsx(u.Box,{p:"300",children:r.info})})})})]})]}),r.input&&t.jsx(T,{...r.inputSlotProps,children:i.Children.map(r.input,a=>i.isValidElement(a)?i.cloneElement(a,B):a)}),r.description&&t.jsx(W,{...$,...r.descriptionSlotProps,children:r.description}),e&&r.error&&t.jsxs(k,{...w,...r.errorSlotProps,children:[t.jsx(u.Box,{as:m.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),r.error]}),S]})})}),F=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,label:e,labelSlotProps:l}))},[e,o]),null},g=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,input:e,inputSlotProps:l}))},[e,o]),null},h=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,description:e,descriptionSlotProps:l}))},[e,o]),null},v=({children:e,...l})=>{const{setContext:o}=i.useContext(s);return i.useEffect(()=>{o(n=>({...n,error:e,errorSlotProps:l}))},[e,o]),null},C=({children:e})=>{const{setContext:l}=i.useContext(s);return i.useEffect(()=>{l(o=>({...o,info:e}))},[e,l]),null},N={Root:b,Label:F,Input:g,Description:h,Error:v,InfoBox:C};exports.FormField=N;exports.FormFieldDescription=h;exports.FormFieldError=v;exports.FormFieldInfoBox=C;exports.FormFieldInput=g;exports.FormFieldLabel=F;exports.FormFieldRoot=b;
11
- //# sourceMappingURL=form-field-D1lcT5f5.cjs.js.map
11
+ //# sourceMappingURL=form-field-DMiHuyrx.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-D1lcT5f5.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.recipe.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.slots\";\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 { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nconst columnLayout = `\n\"label\"\n\"input\"\n\"description\"\n\"error\"\n`;\nconst rowLayout = `\n\"label input\"\n\"label description\"\n\"label error\"\n`;\n\n/**\n * Recipe configuration for the FormField component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const formFieldRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"input\", \"description\", \"error\", \"popover\"],\n // Unique class name prefix for the component\n className: \"nimbus-ui-form-field\",\n\n base: {\n root: {\n \"--grid-gap\": \"spacing.100\",\n\n display: \"grid\",\n width: \"auto\",\n },\n label: {\n gridArea: \"label\",\n fontWeight: \"500\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n input: {\n gridArea: \"input\",\n },\n description: {\n gridArea: \"description\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n error: {\n gridArea: \"error\",\n color: \"critical.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n popover: {\n \"--scrollbar-color\": \"colors.neutral.8\",\n \"--scrollbar-bg\": \"colors.neutral.3\",\n bg: \"neutral.1\",\n maxWidth: \"xl\",\n borderRadius: \"200\",\n boxShadow: \"6\",\n border: \"solid-25\",\n borderColor: \"neutral.8\",\n maxHeight: \"40svh\",\n overflow: \"auto\",\n scrollbarWidth: \"thin\",\n scrollbarColor: \"var(--scrollbar-color) var(--scrollbar-bg)\",\n focusRing: \"outside\",\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n \"--form-field-font-size\": \"fontSizes.350\",\n \"--form-field-line-height\": \"lineHeights.500\",\n },\n },\n sm: {\n root: {\n \"--form-field-font-size\": \"fontSizes.300\",\n \"--form-field-line-height\": \"lineHeights.450\",\n },\n },\n },\n direction: {\n column: {\n root: {\n gridTemplateAreas: columnLayout,\n },\n input: {\n mt: \"var(--grid-gap)\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n row: {\n root: {\n gridTemplateAreas: rowLayout,\n gridTemplateColumns: \"auto 1fr\",\n gridColumnGap: \"200\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n direction: \"column\",\n size: \"md\",\n },\n});\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeVariantProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { formFieldRecipe } from \"./form-field.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: formFieldRecipe,\n});\n\n// Root slot\nexport interface FormFieldRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof formFieldRecipe> & UnstyledProp\n > {}\n\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport interface FormFieldLabelSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport interface FormFieldInputSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport interface FormFieldDescriptionSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport interface FormFieldErrorSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport interface FormFieldPopoverSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useEffect,\n useState,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField } from \"react-aria\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = forwardRef<HTMLDivElement, FormFieldProps>(\n (\n { isInvalid, isRequired, isDisabled, isReadOnly, children, ...props },\n ref\n ) => {\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] = {\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n useFieldArgs.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 useFieldArgs[\"aria-label\"] = \"empty-label\";\n useFieldArgs[\"aria-labelledby\"] = \"empty-label\";\n }\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 = {\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n\n return (\n <FormFieldContext.Provider value={{ context, setContext }}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n }\n);\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","columnLayout","rowLayout","formFieldRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardRef","isInvalid","isRequired","isDisabled","isReadOnly","children","props","ref","context","setContext","useState","useFieldArgs","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","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":"sTA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,ECpCKC,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA,EAMfC,EAAY;AAAA;AAAA;AAAA;AAAA,EAULC,EAAkBC,EAAAA,iBAAiB,CAC9C,MAAO,CAAC,OAAQ,QAAS,QAAS,cAAe,QAAS,SAAS,EAEnE,UAAW,uBAEX,KAAM,CACJ,KAAM,CACJ,aAAc,cAEd,QAAS,OACT,MAAO,MAAA,EAET,MAAO,CACL,SAAU,QACV,WAAY,MACZ,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,OAAA,EAEZ,YAAa,CACX,SAAU,cACV,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,QACV,MAAO,cACP,SAAU,8BACV,WAAY,+BAAA,EAEd,QAAS,CACP,oBAAqB,mBACrB,iBAAkB,mBAClB,GAAI,YACJ,SAAU,KACV,aAAc,MACd,UAAW,IACX,OAAQ,WACR,YAAa,YACb,UAAW,QACX,SAAU,OACV,eAAgB,OAChB,eAAgB,6CAChB,UAAW,SAAA,CACb,EAGF,SAAU,CACR,KAAM,CACJ,GAAI,CACF,KAAM,CACJ,yBAA0B,gBAC1B,2BAA4B,iBAAA,CAC9B,EAEF,GAAI,CACF,KAAM,CACJ,y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,CAAC,EAElB,IACT,ECfa6B,EAAuB,CAAC,CACnC,SAAAjC,EACA,GAAGkC,CACL,IAAqC,CACnC,KAAM,CAAE,WAAA9B,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,YAAab,EACb,qBAAAkC,CAAA,EACA,CACJ,EAAG,CAAClC,EAAUI,CAAU,CAAC,EAElB,IACT,ECfa+B,EAAiB,CAAC,CAC7B,SAAAnC,EACA,GAAGoC,CACL,IAA+B,CAC7B,KAAM,CAAE,WAAAhC,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,MAAOb,EACP,eAAAoC,CAAA,EACA,CACJ,EAAG,CAACpC,EAAUI,CAAU,CAAC,EAElB,IACT,ECTaiC,EAAmB,CAAC,CAAE,SAAArC,KAAsC,CACvE,KAAM,CAAE,WAAAI,CAAA,EAAe0B,EAAAA,WAAWnD,CAAgB,EAElDiC,OAAAA,EAAAA,UAAU,IAAM,CACdR,EAAYS,IAAiB,CAC3B,GAAGA,EACH,KAAMb,CAAA,EACN,CACJ,EAAG,CAACA,EAAUI,CAAU,CAAC,EAElB,IACT,ECdakC,EAAY,CACvB,KAAM5C,EACN,MAAOkC,EACP,MAAOG,EACP,YAAaE,EACb,MAAOE,EACP,QAASE,CACX"}
1
+ {"version":3,"file":"form-field-DMiHuyrx.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.recipe.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.slots\";\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 { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\nconst columnLayout = `\n\"label\"\n\"input\"\n\"description\"\n\"error\"\n`;\nconst rowLayout = `\n\"label input\"\n\"label description\"\n\"label error\"\n`;\n\n/**\n * Recipe configuration for the FormField component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const formFieldRecipe = defineSlotRecipe({\n slots: [\"root\", \"label\", \"input\", \"description\", \"error\", \"popover\"],\n // Unique class name prefix for the component\n className: \"nimbus-ui-form-field\",\n\n base: {\n root: {\n \"--grid-gap\": \"spacing.100\",\n\n display: \"grid\",\n width: \"auto\",\n },\n label: {\n gridArea: \"label\",\n fontWeight: \"500\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n input: {\n gridArea: \"input\",\n },\n description: {\n gridArea: \"description\",\n color: \"neutral.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n error: {\n gridArea: \"error\",\n color: \"critical.11\",\n fontSize: \"var(--form-field-font-size)\",\n lineHeight: \"var(--form-field-line-height)\",\n },\n popover: {\n \"--scrollbar-color\": \"colors.neutral.8\",\n \"--scrollbar-bg\": \"colors.neutral.3\",\n bg: \"neutral.1\",\n maxWidth: \"xl\",\n borderRadius: \"200\",\n boxShadow: \"6\",\n border: \"solid-25\",\n borderColor: \"neutral.8\",\n maxHeight: \"40svh\",\n overflow: \"auto\",\n scrollbarWidth: \"thin\",\n scrollbarColor: \"var(--scrollbar-color) var(--scrollbar-bg)\",\n focusRing: \"outside\",\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n \"--form-field-font-size\": \"fontSizes.350\",\n \"--form-field-line-height\": \"lineHeights.500\",\n },\n },\n sm: {\n root: {\n \"--form-field-font-size\": \"fontSizes.300\",\n \"--form-field-line-height\": \"lineHeights.450\",\n },\n },\n },\n direction: {\n column: {\n root: {\n gridTemplateAreas: columnLayout,\n },\n input: {\n mt: \"var(--grid-gap)\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n row: {\n root: {\n gridTemplateAreas: rowLayout,\n gridTemplateColumns: \"auto 1fr\",\n gridColumnGap: \"200\",\n },\n description: {\n mt: \"var(--grid-gap)\",\n },\n error: {\n mt: \"var(--grid-gap)\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n direction: \"column\",\n size: \"md\",\n },\n});\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeVariantProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { formFieldRecipe } from \"./form-field.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: formFieldRecipe,\n});\n\n// Root slot\nexport interface FormFieldRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof formFieldRecipe> & UnstyledProp\n > {}\n\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport interface FormFieldLabelSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport interface FormFieldInputSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport interface FormFieldDescriptionSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport interface FormFieldErrorSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport interface FormFieldPopoverSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useEffect,\n useState,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField } from \"react-aria\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/formfield}\n */\nexport const FormFieldRoot = forwardRef<HTMLDivElement, FormFieldProps>(\n (\n { isInvalid, isRequired, isDisabled, isReadOnly, children, ...props },\n ref\n ) => {\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] = {\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n useFieldArgs.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 useFieldArgs[\"aria-label\"] = \"empty-label\";\n useFieldArgs[\"aria-labelledby\"] = \"empty-label\";\n }\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 = {\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n\n return (\n <FormFieldContext.Provider value={{ context, setContext }}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n tone=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n }\n);\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.slots\";\n\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.slots\";\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 }, [children, setContext]);\n\n return null;\n};\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n }, [children, setContext]);\n\n return null;\n};\n","import { FormFieldRoot } from \"./components/form-field.root\";\nimport { FormFieldLabel } from \"./components/form-field.label\";\nimport { FormFieldInput } from \"./components/form-field.input\";\nimport { FormFieldDescription } from \"./components/form-field.description\";\nimport { FormFieldError } from \"./components/form-field.error\";\nimport { FormFieldInfoBox } from \"./components/form-field.info-box\";\n\nexport const FormField = {\n Root: FormFieldRoot,\n Label: FormFieldLabel,\n Input: FormFieldInput,\n Description: FormFieldDescription,\n Error: FormFieldError,\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","columnLayout","rowLayout","formFieldRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardRef","isInvalid","isRequired","isDisabled","isReadOnly","children","props","ref","context","setContext","useState","useFieldArgs","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","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":"sTA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,ECpCKC,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA,EAMfC,EAAY;AAAA;AAAA;AAAA;AAAA,EAULC,EAAkBC,EAAAA,iBAAiB,CAC9C,MAAO,CAAC,OAAQ,QAAS,QAAS,cAAe,QAAS,SAAS,EAEnE,UAAW,uBAEX,KAAM,CACJ,KAAM,CACJ,aAAc,cAEd,QAAS,OACT,MAAO,MAAA,EAET,MAAO,CACL,SAAU,QACV,WAAY,MACZ,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,OAAA,EAEZ,YAAa,CACX,SAAU,cACV,MAAO,aACP,SAAU,8BACV,WAAY,+BAAA,EAEd,MAAO,CACL,SAAU,QACV,MAAO,cACP,SAAU,8BACV,WAAY,+BAAA,EAEd,QAAS,CACP,oBAAqB,mBACrB,iBAAkB,mBAClB,GAAI,Y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ipeContext as c } from "@chakra-ui/react";
3
- import { $ as i } from "./Group-Cfixd-fh.es.js";
3
+ import { $ as i } from "./Group-DUCWhg7j.es.js";
4
4
  import { g as s } from "./group.recipe-BQafmscW.es.js";
5
5
  const { withContext: f } = /* @__PURE__ */ c({
6
6
  recipe: s
@@ -11,4 +11,4 @@ const { withContext: f } = /* @__PURE__ */ c({
11
11
  export {
12
12
  b as G
13
13
  };
14
- //# sourceMappingURL=group-CqfSQXe7.es.js.map
14
+ //# sourceMappingURL=group-FqYM3Go1.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"group-CqfSQXe7.es.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport { groupRecipe } from \"./group.recipe\";\n\nconst { withContext } = createRecipeContext({\n recipe: groupRecipe,\n});\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface GroupRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface GroupSlotProps\n extends HTMLChakraProps<\"div\", GroupRecipeProps> {}\n\n/**\n * Slot component that provides the styling context for the Group component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const GroupSlot = withContext<typeof RaGroup, GroupSlotProps>(RaGroup);\n","import { GroupSlot } from \"./group.slots\";\nimport type { GroupComponent } from \"./group.types\";\n\nexport const Group: GroupComponent = (props) => {\n const { ref, children, ...rest } = props;\n return (\n <GroupSlot ref={ref} {...rest}>\n {children}\n </GroupSlot>\n );\n};\n"],"names":["withContext","createRecipeContext","groupRecipe","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":";;;;AASA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAqBYC,IAAY,gBAAAH,EAA4CI,CAAO,GC7B/DC,IAAwB,CAACC,MAAU;AAC9C,QAAM,EAAE,KAAAC,GAAK,UAAAC,GAAU,GAAGC,MAASH;AACnC,SACE,gBAAAI,EAACP,GAAA,EAAU,KAAAI,GAAW,GAAGE,GACtB,UAAAD,GACH;AAEJ;"}
1
+ {"version":3,"file":"group-FqYM3Go1.es.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport { groupRecipe } from \"./group.recipe\";\n\nconst { withContext } = createRecipeContext({\n recipe: groupRecipe,\n});\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface GroupRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface GroupSlotProps\n extends HTMLChakraProps<\"div\", GroupRecipeProps> {}\n\n/**\n * Slot component that provides the styling context for the Group component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const GroupSlot = withContext<typeof RaGroup, GroupSlotProps>(RaGroup);\n","import { GroupSlot } from \"./group.slots\";\nimport type { GroupComponent } from \"./group.types\";\n\nexport const Group: GroupComponent = (props) => {\n const { ref, children, ...rest } = props;\n return (\n <GroupSlot ref={ref} {...rest}>\n {children}\n </GroupSlot>\n );\n};\n"],"names":["withContext","createRecipeContext","groupRecipe","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":";;;;AASA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAqBYC,IAAY,gBAAAH,EAA4CI,CAAO,GC7B/DC,IAAwB,CAACC,MAAU;AAC9C,QAAM,EAAE,KAAAC,GAAK,UAAAC,GAAU,GAAGC,MAASH;AACnC,SACE,gBAAAI,EAACP,GAAA,EAAU,KAAAI,GAAW,GAAGE,GACtB,UAAAD,GACH;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./button-DJYITnqc.cjs.js"),R=require("./useObjectRef-dXOJdONs.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=R.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(a.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
2
- //# sourceMappingURL=icon-button-CPXhdrQY.cjs.js.map
1
+ "use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./button-BooV4ncX.cjs.js"),R=require("./useObjectRef-dXOJdONs.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=R.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(a.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
2
+ //# sourceMappingURL=icon-button-CFLScvMi.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-CPXhdrQY.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
1
+ {"version":3,"file":"icon-button-CFLScvMi.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { useRef as n } from "react";
3
3
  import { mergeRefs as p } from "@chakra-ui/react";
4
- import { B as a } from "./button-DEgBQobR.es.js";
4
+ import { B as a } from "./button-BXR4T980.es.js";
5
5
  import { $ as c } from "./useObjectRef-CaJ5pgjX.es.js";
6
6
  const i = (o) => {
7
7
  const { children: r, ref: t, ...e } = o, f = n(null), s = c(p(f, t));
@@ -11,4 +11,4 @@ i.displayName = "IconButton";
11
11
  export {
12
12
  i as I
13
13
  };
14
- //# sourceMappingURL=icon-button-DPtCLr1A.es.js.map
14
+ //# sourceMappingURL=icon-button-CKidhzN0.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-DPtCLr1A.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM,EAAE,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAAcH,GAGhDI,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUF,CAAY,CAAC;AAE1D,SACE,gBAAAO,EAACC,KAAO,IAAI,GAAG,IAAI,GAAI,GAAGP,GAAW,KAAAG,GAClC,UAAAL,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
1
+ {"version":3,"file":"icon-button-CKidhzN0.es.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":";;;;;AAaO,MAAMA,IAAa,CAACC,MAA2B;AACpD,QAAM,EAAE,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAAcH,GAGhDI,IAAWC,EAA0B,IAAI,GACzCC,IAAMC,EAAaC,EAAUJ,GAAUF,CAAY,CAAC;AAE1D,SACE,gBAAAO,EAACC,KAAO,IAAI,GAAG,IAAI,GAAI,GAAGP,GAAW,KAAAG,GAClC,UAAAL,EAAA,CACH;AAEJ;AAEAF,EAAW,cAAc;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { T as l } from "./toggle-button-C1bAVGF3.es.js";
2
+ import { T as l } from "./toggle-button-DeqTwBN5.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-BItuQ_Lh.es.js.map
13
+ //# sourceMappingURL=icon-toggle-button-CfrW8nn2.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-BItuQ_Lh.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
1
+ {"version":3,"file":"icon-toggle-button-CfrW8nn2.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-Cg00z4JT.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-BG-F1KE7.cjs.js.map
1
+ "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-D8qdeoHu.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-DJsMgc_N.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-BG-F1KE7.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
1
+ {"version":3,"file":"icon-toggle-button-DJsMgc_N.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
@@ -1521,6 +1521,13 @@ const W = /* @__PURE__ */ P(e.breakpoints), _ = /* @__PURE__ */ m({
1521
1521
  "--border-color": "transparent"
1522
1522
  }
1523
1523
  }
1524
+ },
1525
+ isClearable: {
1526
+ false: {
1527
+ triggerLabel: {
1528
+ "--button-safespace": "sizes.1000"
1529
+ }
1530
+ }
1524
1531
  }
1525
1532
  },
1526
1533
  // Default variant values when not explicitly specified
@@ -1819,7 +1826,7 @@ const W = /* @__PURE__ */ P(e.breakpoints), _ = /* @__PURE__ */ m({
1819
1826
  opacity: 0.5,
1820
1827
  color: "currentColor"
1821
1828
  },
1822
- _disabled: {
1829
+ "&[data-disabled='true']": {
1823
1830
  layerStyle: "disabled",
1824
1831
  bg: "neutral.3"
1825
1832
  },
@@ -1844,7 +1851,7 @@ const W = /* @__PURE__ */ P(e.breakpoints), _ = /* @__PURE__ */ m({
1844
1851
  _active: {
1845
1852
  bg: "neutral.4"
1846
1853
  },
1847
- _disabled: {
1854
+ "&[data-disabled='true']": {
1848
1855
  opacity: 0.5,
1849
1856
  cursor: "not-allowed"
1850
1857
  },
@@ -1872,7 +1879,7 @@ const W = /* @__PURE__ */ P(e.breakpoints), _ = /* @__PURE__ */ m({
1872
1879
  _active: {
1873
1880
  bg: "neutral.4"
1874
1881
  },
1875
- _disabled: {
1882
+ "&[data-disabled='true']": {
1876
1883
  opacity: 0.5,
1877
1884
  cursor: "not-allowed"
1878
1885
  },
@@ -2293,7 +2300,7 @@ const W = /* @__PURE__ */ P(e.breakpoints), _ = /* @__PURE__ */ m({
2293
2300
  borderBottom: "solid-25",
2294
2301
  borderColor: "neutral.3"
2295
2302
  },
2296
- // the container contianing the month(s) grid(s)
2303
+ // the container containing the month(s) grid(s)
2297
2304
  grids: {
2298
2305
  display: "flex",
2299
2306
  flexWrap: "wrap",
@@ -3770,9 +3777,9 @@ export {
3770
3777
  U as c,
3771
3778
  Z as d,
3772
3779
  D as e,
3773
- ee as f,
3774
- te as g,
3775
- K as h,
3780
+ te as f,
3781
+ K as g,
3782
+ ee as h,
3776
3783
  u as i,
3777
3784
  i as j,
3778
3785
  oe as k,
@@ -3783,4 +3790,4 @@ export {
3783
3790
  Le as s,
3784
3791
  A as t
3785
3792
  };
3786
- //# sourceMappingURL=index-BDXHumM1.es.js.map
3793
+ //# sourceMappingURL=index-BZioZQfA.es.js.map