@commercetools/nimbus 0.0.0-canary-20251126161033 → 0.0.0-canary-20251126163432

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 (494) hide show
  1. package/dist/chunks/{Button-BjcDZ5eb.es.js → Button-CmpJG0ec.es.js} +7 -7
  2. package/dist/chunks/{Button-BjcDZ5eb.es.js.map → Button-CmpJG0ec.es.js.map} +1 -1
  3. package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js → CollectionBuilder-BqQjeKfi.es.js} +2 -2
  4. package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js.map → CollectionBuilder-BqQjeKfi.es.js.map} +1 -1
  5. package/dist/chunks/{DateField-C5JgBb30.es.js → DateField-Bpk0AwB2.es.js} +21 -21
  6. package/dist/chunks/{DateField-C5JgBb30.es.js.map → DateField-Bpk0AwB2.es.js.map} +1 -1
  7. package/dist/chunks/{DatePicker-9m2POezC.es.js → DatePicker-CUW1A5A8.es.js} +17 -17
  8. package/dist/chunks/{DatePicker-9m2POezC.es.js.map → DatePicker-CUW1A5A8.es.js.map} +1 -1
  9. package/dist/chunks/{Dialog-DcnmO0xr.es.js → Dialog-BYVU-i0Y.es.js} +24 -24
  10. package/dist/chunks/{Dialog-DcnmO0xr.es.js.map → Dialog-BYVU-i0Y.es.js.map} +1 -1
  11. package/dist/chunks/{FocusScope-CqEZq7sr.es.js → FocusScope-bj_mamFe.es.js} +36 -36
  12. package/dist/chunks/{FocusScope-CqEZq7sr.es.js.map → FocusScope-bj_mamFe.es.js.map} +1 -1
  13. package/dist/chunks/{Group-BQc9LuMT.es.js → Group-C9jsb9_m.es.js} +8 -8
  14. package/dist/chunks/{Group-BQc9LuMT.es.js.map → Group-C9jsb9_m.es.js.map} +1 -1
  15. package/dist/chunks/{Header-CliQVNVa.es.js → Header-CNoClAau.es.js} +5 -5
  16. package/dist/chunks/{Header-CliQVNVa.es.js.map → Header-CNoClAau.es.js.map} +1 -1
  17. package/dist/chunks/{Heading-D7Ut7eK3.es.js → Heading-D804NNml.es.js} +14 -14
  18. package/dist/chunks/{Heading-D7Ut7eK3.es.js.map → Heading-D804NNml.es.js.map} +1 -1
  19. package/dist/chunks/{Input-Cmg08oRP.es.js → Input-aKSXZBAh.es.js} +5 -5
  20. package/dist/chunks/{Input-Cmg08oRP.es.js.map → Input-aKSXZBAh.es.js.map} +1 -1
  21. package/dist/chunks/{Label-DIseLESi.es.js → Label-Bu5lTMzy.es.js} +2 -2
  22. package/dist/chunks/{Label-DIseLESi.es.js.map → Label-Bu5lTMzy.es.js.map} +1 -1
  23. package/dist/chunks/{ListBox-CcSs4yTw.es.js → ListBox-DYbGAoet.es.js} +15 -15
  24. package/dist/chunks/{ListBox-CcSs4yTw.es.js.map → ListBox-DYbGAoet.es.js.map} +1 -1
  25. package/dist/chunks/{Modal-3QPNDzpi.es.js → Modal-2TttSPy4.es.js} +7 -7
  26. package/dist/chunks/{Modal-3QPNDzpi.es.js.map → Modal-2TttSPy4.es.js.map} +1 -1
  27. package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js → OverlayArrow-qm-lnjhS.es.js} +2 -2
  28. package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js.map → OverlayArrow-qm-lnjhS.es.js.map} +1 -1
  29. package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js → ProgressBar-DogfCeuX.es.js} +5 -5
  30. package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js.map → ProgressBar-DogfCeuX.es.js.map} +1 -1
  31. package/dist/chunks/{SelectionManager-B0Cb1kHW.es.js → SelectionManager-CXicxYqF.es.js} +10 -10
  32. package/dist/chunks/{SelectionManager-B0Cb1kHW.es.js.map → SelectionManager-CXicxYqF.es.js.map} +1 -1
  33. package/dist/chunks/{Separator-DP89PKAS.es.js → Separator-WCa1iR4U.es.js} +4 -4
  34. package/dist/chunks/{Separator-DP89PKAS.es.js.map → Separator-WCa1iR4U.es.js.map} +1 -1
  35. package/dist/chunks/{TextArea-CXEdUjgW.es.js → TextArea-JHqAZ7HD.es.js} +5 -5
  36. package/dist/chunks/{TextArea-CXEdUjgW.es.js.map → TextArea-JHqAZ7HD.es.js.map} +1 -1
  37. package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js → ToggleButton-B-feHlsu.es.js} +7 -7
  38. package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js.map → ToggleButton-B-feHlsu.es.js.map} +1 -1
  39. package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js → VisuallyHidden-BIA5VRNP.es.js} +3 -3
  40. package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js.map → VisuallyHidden-BIA5VRNP.es.js.map} +1 -1
  41. package/dist/chunks/{accordion-CDPW4YqE.es.js → accordion-BIwZfJIm.es.js} +2 -2
  42. package/dist/chunks/{accordion-CDPW4YqE.es.js.map → accordion-BIwZfJIm.es.js.map} +1 -1
  43. package/dist/chunks/{accordion-CHXTjjZb.cjs.js → accordion-DzJZyt6v.cjs.js} +2 -2
  44. package/dist/chunks/{accordion-CHXTjjZb.cjs.js.map → accordion-DzJZyt6v.cjs.js.map} +1 -1
  45. package/dist/chunks/accordion.content-AdEoVTQo.cjs.js +2 -0
  46. package/dist/chunks/{accordion.content-DVg8gjOb.cjs.js.map → accordion.content-AdEoVTQo.cjs.js.map} +1 -1
  47. package/dist/chunks/{accordion.content-y0RnNj9Z.es.js → accordion.content-BTRWAVFW.es.js} +24 -23
  48. package/dist/chunks/{accordion.content-y0RnNj9Z.es.js.map → accordion.content-BTRWAVFW.es.js.map} +1 -1
  49. package/dist/chunks/{alert-DD1hd-Va.es.js → alert-BLpGWAlP.es.js} +2 -2
  50. package/dist/chunks/{alert-DD1hd-Va.es.js.map → alert-BLpGWAlP.es.js.map} +1 -1
  51. package/dist/chunks/{alert-Bcd-RjP2.cjs.js → alert-CR_RRHXj.cjs.js} +2 -2
  52. package/dist/chunks/{alert-Bcd-RjP2.cjs.js.map → alert-CR_RRHXj.cjs.js.map} +1 -1
  53. package/dist/chunks/badge-DUiqk6w9.es.js +17 -0
  54. package/dist/chunks/{badge-CgYpum7D.es.js.map → badge-DUiqk6w9.es.js.map} +1 -1
  55. package/dist/chunks/{button-WbcOHikD.es.js → button-BzBpPYqB.es.js} +6 -6
  56. package/dist/chunks/{button-WbcOHikD.es.js.map → button-BzBpPYqB.es.js.map} +1 -1
  57. package/dist/chunks/{button-DYT63YaG.cjs.js → button-DM5U4Up3.cjs.js} +2 -2
  58. package/dist/chunks/{button-DYT63YaG.cjs.js.map → button-DM5U4Up3.cjs.js.map} +1 -1
  59. package/dist/chunks/{calendar-g3VfLnzB.cjs.js → calendar-C26Et_m-.cjs.js} +2 -2
  60. package/dist/chunks/{calendar-g3VfLnzB.cjs.js.map → calendar-C26Et_m-.cjs.js.map} +1 -1
  61. package/dist/chunks/{calendar-CrDQ41NO.es.js → calendar-hHwGb-rm.es.js} +9 -9
  62. package/dist/chunks/{calendar-CrDQ41NO.es.js.map → calendar-hHwGb-rm.es.js.map} +1 -1
  63. package/dist/chunks/{card-CZoXttks.cjs.js → card-CFuBCltm.cjs.js} +2 -2
  64. package/dist/chunks/{card-CZoXttks.cjs.js.map → card-CFuBCltm.cjs.js.map} +1 -1
  65. package/dist/chunks/{card-CYYspg3V.es.js → card-DUP05I71.es.js} +2 -2
  66. package/dist/chunks/{card-CYYspg3V.es.js.map → card-DUP05I71.es.js.map} +1 -1
  67. package/dist/chunks/{checkbox-CTtcL9PS.es.js → checkbox-BpzBtByl.es.js} +10 -10
  68. package/dist/chunks/{checkbox-CTtcL9PS.es.js.map → checkbox-BpzBtByl.es.js.map} +1 -1
  69. package/dist/chunks/{checkbox-BBOVsqdM.cjs.js → checkbox-CsHNMNYl.cjs.js} +2 -2
  70. package/dist/chunks/{checkbox-BBOVsqdM.cjs.js.map → checkbox-CsHNMNYl.cjs.js.map} +1 -1
  71. package/dist/chunks/{collapsible-motion-Cs_MJ84K.es.js → collapsible-motion-BnPuvX06.es.js} +5 -5
  72. package/dist/chunks/{collapsible-motion-Cs_MJ84K.es.js.map → collapsible-motion-BnPuvX06.es.js.map} +1 -1
  73. package/dist/chunks/{collapsible-motion-JoeWhvf_.cjs.js → collapsible-motion-Dl-BpfqM.cjs.js} +2 -2
  74. package/dist/chunks/{collapsible-motion-JoeWhvf_.cjs.js.map → collapsible-motion-Dl-BpfqM.cjs.js.map} +1 -1
  75. package/dist/chunks/{combobox-DVGJtTY-.es.js → combobox-DX14DmbZ.es.js} +74 -74
  76. package/dist/chunks/{combobox-DVGJtTY-.es.js.map → combobox-DX14DmbZ.es.js.map} +1 -1
  77. package/dist/chunks/{combobox-CPndQJhl.cjs.js → combobox-qEHEJEGC.cjs.js} +2 -2
  78. package/dist/chunks/{combobox-CPndQJhl.cjs.js.map → combobox-qEHEJEGC.cjs.js.map} +1 -1
  79. package/dist/chunks/{data-table-DhijpIzD.cjs.js → data-table-CZGgyBIj.cjs.js} +2 -2
  80. package/dist/chunks/{data-table-DhijpIzD.cjs.js.map → data-table-CZGgyBIj.cjs.js.map} +1 -1
  81. package/dist/chunks/{data-table-mOrhnFve.es.js → data-table-DoYvQ5jj.es.js} +37 -37
  82. package/dist/chunks/{data-table-mOrhnFve.es.js.map → data-table-DoYvQ5jj.es.js.map} +1 -1
  83. package/dist/chunks/{date-input-CJ-2i6eH.cjs.js → date-input-CZJdMw98.cjs.js} +2 -2
  84. package/dist/chunks/{date-input-CJ-2i6eH.cjs.js.map → date-input-CZJdMw98.cjs.js.map} +1 -1
  85. package/dist/chunks/{date-input-B8MeBGZ1.es.js → date-input-D64SXqD5.es.js} +4 -4
  86. package/dist/chunks/{date-input-B8MeBGZ1.es.js.map → date-input-D64SXqD5.es.js.map} +1 -1
  87. package/dist/chunks/{date-picker-B4MhmcwJ.cjs.js → date-picker-BiyWtK0H.cjs.js} +2 -2
  88. package/dist/chunks/{date-picker-B4MhmcwJ.cjs.js.map → date-picker-BiyWtK0H.cjs.js.map} +1 -1
  89. package/dist/chunks/{date-picker-DoN3I22T.es.js → date-picker-DsJtKYLw.es.js} +14 -14
  90. package/dist/chunks/{date-picker-DoN3I22T.es.js.map → date-picker-DsJtKYLw.es.js.map} +1 -1
  91. package/dist/chunks/{date-range-picker-CY4y1m0B.es.js → date-range-picker-D0RV--hf.es.js} +14 -14
  92. package/dist/chunks/{date-range-picker-CY4y1m0B.es.js.map → date-range-picker-D0RV--hf.es.js.map} +1 -1
  93. package/dist/chunks/{date-range-picker-Bsu09Yvu.cjs.js → date-range-picker-ICuIhTNc.cjs.js} +2 -2
  94. package/dist/chunks/{date-range-picker-Bsu09Yvu.cjs.js.map → date-range-picker-ICuIhTNc.cjs.js.map} +1 -1
  95. package/dist/chunks/{date-range-picker-field-_f1tY_ZQ.es.js → date-range-picker-field-Cec21dDg.es.js} +3 -3
  96. package/dist/chunks/{date-range-picker-field-_f1tY_ZQ.es.js.map → date-range-picker-field-Cec21dDg.es.js.map} +1 -1
  97. package/dist/chunks/{date-range-picker-field-CgO9OoyB.cjs.js → date-range-picker-field-D6t9Gpum.cjs.js} +2 -2
  98. package/dist/chunks/{date-range-picker-field-CgO9OoyB.cjs.js.map → date-range-picker-field-D6t9Gpum.cjs.js.map} +1 -1
  99. package/dist/chunks/{dialog-BiE3sKA_.cjs.js → dialog-C0OWp1vo.cjs.js} +2 -2
  100. package/dist/chunks/{dialog-BiE3sKA_.cjs.js.map → dialog-C0OWp1vo.cjs.js.map} +1 -1
  101. package/dist/chunks/{dialog-g2eRAaPW.es.js → dialog-PW6Z0aAD.es.js} +7 -7
  102. package/dist/chunks/{dialog-g2eRAaPW.es.js.map → dialog-PW6Z0aAD.es.js.map} +1 -1
  103. package/dist/chunks/{draggable-list-DArcamJL.cjs.js → draggable-list-BqkN0qq8.cjs.js} +2 -2
  104. package/dist/chunks/{draggable-list-DArcamJL.cjs.js.map → draggable-list-BqkN0qq8.cjs.js.map} +1 -1
  105. package/dist/chunks/{draggable-list-CQ7h_F__.es.js → draggable-list-DLOVgVRd.es.js} +22 -22
  106. package/dist/chunks/{draggable-list-CQ7h_F__.es.js.map → draggable-list-DLOVgVRd.es.js.map} +1 -1
  107. package/dist/chunks/{drawer-CdfOinPU.es.js → drawer-Br6xPjvU.es.js} +8 -8
  108. package/dist/chunks/{drawer-CdfOinPU.es.js.map → drawer-Br6xPjvU.es.js.map} +1 -1
  109. package/dist/chunks/{drawer-80jf-a5D.cjs.js → drawer-DYuRnQnQ.cjs.js} +2 -2
  110. package/dist/chunks/{drawer-80jf-a5D.cjs.js.map → drawer-DYuRnQnQ.cjs.js.map} +1 -1
  111. package/dist/chunks/{extract-style-props-CZMJJ-Ii.cjs.js → extract-style-props-BYLpZwzt.cjs.js} +2 -2
  112. package/dist/chunks/{extract-style-props-CZMJJ-Ii.cjs.js.map → extract-style-props-BYLpZwzt.cjs.js.map} +1 -1
  113. package/dist/chunks/{extract-style-props-BvGKJ0ar.es.js → extract-style-props-DKd4rAuz.es.js} +2 -2
  114. package/dist/chunks/{extract-style-props-BvGKJ0ar.es.js.map → extract-style-props-DKd4rAuz.es.js.map} +1 -1
  115. package/dist/chunks/field-errors-ClQprmQz.es.js.map +1 -1
  116. package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +1 -1
  117. package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js → focusSafely-RvsgqoUt.es.js} +3 -3
  118. package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js.map → focusSafely-RvsgqoUt.es.js.map} +1 -1
  119. package/dist/chunks/{form-field-CzFcczIs.es.js → form-field-D0GUo4Dx.es.js} +4 -4
  120. package/dist/chunks/{form-field-CzFcczIs.es.js.map → form-field-D0GUo4Dx.es.js.map} +1 -1
  121. package/dist/chunks/{form-field-Ca3k84cH.cjs.js → form-field-DD4nbalR.cjs.js} +2 -2
  122. package/dist/chunks/{form-field-Ca3k84cH.cjs.js.map → form-field-DD4nbalR.cjs.js.map} +1 -1
  123. package/dist/chunks/{getScrollParent-MZgwmCKW.es.js → getScrollParent-DlqhSzBC.es.js} +2 -2
  124. package/dist/chunks/{getScrollParent-MZgwmCKW.es.js.map → getScrollParent-DlqhSzBC.es.js.map} +1 -1
  125. package/dist/chunks/{group-CCBgdph2.es.js → group-jGsHh1w7.es.js} +2 -2
  126. package/dist/chunks/{group-CCBgdph2.es.js.map → group-jGsHh1w7.es.js.map} +1 -1
  127. package/dist/chunks/{heading-nfjoR4vL.es.js → heading-CwsT9zp_.es.js} +2 -2
  128. package/dist/chunks/{heading-nfjoR4vL.es.js.map → heading-CwsT9zp_.es.js.map} +1 -1
  129. package/dist/chunks/{icon-button-LnGKZj9k.cjs.js → icon-button-BJBGpUhs.cjs.js} +2 -2
  130. package/dist/chunks/{icon-button-LnGKZj9k.cjs.js.map → icon-button-BJBGpUhs.cjs.js.map} +1 -1
  131. package/dist/chunks/{icon-button-1gt1BCJ2.es.js → icon-button-O_Rni1iK.es.js} +2 -2
  132. package/dist/chunks/{icon-button-1gt1BCJ2.es.js.map → icon-button-O_Rni1iK.es.js.map} +1 -1
  133. package/dist/chunks/{icon-toggle-button-BArvrcyQ.cjs.js → icon-toggle-button-Bv6aXjsZ.cjs.js} +2 -2
  134. package/dist/chunks/{icon-toggle-button-BArvrcyQ.cjs.js.map → icon-toggle-button-Bv6aXjsZ.cjs.js.map} +1 -1
  135. package/dist/chunks/{icon-toggle-button-C4ISptbh.es.js → icon-toggle-button-oFXSEICv.es.js} +2 -2
  136. package/dist/chunks/{icon-toggle-button-C4ISptbh.es.js.map → icon-toggle-button-oFXSEICv.es.js.map} +1 -1
  137. package/dist/chunks/{index-BA58iOLX.es.js → index-Br0Tw76A.es.js} +185 -185
  138. package/dist/chunks/index-Br0Tw76A.es.js.map +1 -0
  139. package/dist/chunks/{index-LgrrgjIe.cjs.js → index-Ojb_3rzD.cjs.js} +3 -3
  140. package/dist/chunks/index-Ojb_3rzD.cjs.js.map +1 -0
  141. package/dist/chunks/{kbd-Bl5Ncm2d.es.js → kbd-B11Qoo4k.es.js} +2 -2
  142. package/dist/chunks/{kbd-Bl5Ncm2d.es.js.map → kbd-B11Qoo4k.es.js.map} +1 -1
  143. package/dist/chunks/{link-BMUyXcmC.es.js → link-Db65JZE6.es.js} +9 -9
  144. package/dist/chunks/{link-BMUyXcmC.es.js.map → link-Db65JZE6.es.js.map} +1 -1
  145. package/dist/chunks/{loading-spinner-DF6c3rBM.es.js → loading-spinner-FBgHlqXQ.es.js} +3 -3
  146. package/dist/chunks/{loading-spinner-DF6c3rBM.es.js.map → loading-spinner-FBgHlqXQ.es.js.map} +1 -1
  147. package/dist/chunks/{localized-field-BJXrxOc7.cjs.js → localized-field-B8TEVOmF.cjs.js} +2 -2
  148. package/dist/chunks/{localized-field-BJXrxOc7.cjs.js.map → localized-field-B8TEVOmF.cjs.js.map} +1 -1
  149. package/dist/chunks/{localized-field-Bq8xTkHi.es.js → localized-field-Cm57e6n_.es.js} +25 -25
  150. package/dist/chunks/{localized-field-Bq8xTkHi.es.js.map → localized-field-Cm57e6n_.es.js.map} +1 -1
  151. package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js → make-element-focusable-DVfaQntJ.es.js} +6 -6
  152. package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js.map → make-element-focusable-DVfaQntJ.es.js.map} +1 -1
  153. package/dist/chunks/{menu-xeJ9lZMo.es.js → menu-Bgtwk60t.es.js} +6 -6
  154. package/dist/chunks/{menu-xeJ9lZMo.es.js.map → menu-Bgtwk60t.es.js.map} +1 -1
  155. package/dist/chunks/{menu-8MZlyluP.cjs.js → menu-BlBkUZxr.cjs.js} +2 -2
  156. package/dist/chunks/{menu-8MZlyluP.cjs.js.map → menu-BlBkUZxr.cjs.js.map} +1 -1
  157. package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js → mergeProps-D1jjFfMs.es.js} +6 -6
  158. package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js.map → mergeProps-D1jjFfMs.es.js.map} +1 -1
  159. package/dist/chunks/{money-input-CdcKcoW7.es.js → money-input-DnDLEgcq.es.js} +9 -9
  160. package/dist/chunks/{money-input-CdcKcoW7.es.js.map → money-input-DnDLEgcq.es.js.map} +1 -1
  161. package/dist/chunks/{money-input-DKK4IkDa.cjs.js → money-input-OpjFLPtv.cjs.js} +2 -2
  162. package/dist/chunks/{money-input-DKK4IkDa.cjs.js.map → money-input-OpjFLPtv.cjs.js.map} +1 -1
  163. package/dist/chunks/{money-input-field-vVLyfqtt.es.js → money-input-field-DU0ULCN9.es.js} +3 -3
  164. package/dist/chunks/{money-input-field-vVLyfqtt.es.js.map → money-input-field-DU0ULCN9.es.js.map} +1 -1
  165. package/dist/chunks/{money-input-field-dVccFP1i.cjs.js → money-input-field-q0tzoGI0.cjs.js} +2 -2
  166. package/dist/chunks/{money-input-field-dVccFP1i.cjs.js.map → money-input-field-q0tzoGI0.cjs.js.map} +1 -1
  167. package/dist/chunks/{multiline-text-input-CjtXIsaQ.es.js → multiline-text-input-CfBy0_Co.es.js} +5 -5
  168. package/dist/chunks/{multiline-text-input-CjtXIsaQ.es.js.map → multiline-text-input-CfBy0_Co.es.js.map} +1 -1
  169. package/dist/chunks/{multiline-text-input-BsqrmqVM.cjs.js → multiline-text-input-SbQPKOlb.cjs.js} +2 -2
  170. package/dist/chunks/{multiline-text-input-BsqrmqVM.cjs.js.map → multiline-text-input-SbQPKOlb.cjs.js.map} +1 -1
  171. package/dist/chunks/{multiline-text-input-field-DMjUtzt2.es.js → multiline-text-input-field-Bg5pfHwS.es.js} +3 -3
  172. package/dist/chunks/{multiline-text-input-field-DMjUtzt2.es.js.map → multiline-text-input-field-Bg5pfHwS.es.js.map} +1 -1
  173. package/dist/chunks/{multiline-text-input-field-D0qUCvtF.cjs.js → multiline-text-input-field-XzZ9n7TK.cjs.js} +2 -2
  174. package/dist/chunks/{multiline-text-input-field-D0qUCvtF.cjs.js.map → multiline-text-input-field-XzZ9n7TK.cjs.js.map} +1 -1
  175. package/dist/chunks/{nimbus-provider-DnYwOsgB.es.js → nimbus-provider-ArCFNaxh.es.js} +2 -2
  176. package/dist/chunks/{nimbus-provider-DnYwOsgB.es.js.map → nimbus-provider-ArCFNaxh.es.js.map} +1 -1
  177. package/dist/chunks/{nimbus-provider-DEVKU5vp.cjs.js → nimbus-provider-BR7KA218.cjs.js} +2 -2
  178. package/dist/chunks/{nimbus-provider-DEVKU5vp.cjs.js.map → nimbus-provider-BR7KA218.cjs.js.map} +1 -1
  179. package/dist/chunks/{number-input-CRk-3ae8.cjs.js → number-input-BYPFMk5J.cjs.js} +2 -2
  180. package/dist/chunks/{number-input-CRk-3ae8.cjs.js.map → number-input-BYPFMk5J.cjs.js.map} +1 -1
  181. package/dist/chunks/{number-input-Dtu6vHfl.es.js → number-input-DI0d42Aw.es.js} +14 -14
  182. package/dist/chunks/{number-input-Dtu6vHfl.es.js.map → number-input-DI0d42Aw.es.js.map} +1 -1
  183. package/dist/chunks/{number-input-field-BDAnY1HI.es.js → number-input-field-Dw4NznXb.es.js} +3 -3
  184. package/dist/chunks/{number-input-field-BDAnY1HI.es.js.map → number-input-field-Dw4NznXb.es.js.map} +1 -1
  185. package/dist/chunks/{number-input-field-_SV3uOSQ.cjs.js → number-input-field-l1dav8Ry.cjs.js} +2 -2
  186. package/dist/chunks/{number-input-field-_SV3uOSQ.cjs.js.map → number-input-field-l1dav8Ry.cjs.js.map} +1 -1
  187. package/dist/chunks/{pagination-Bw4PfQiy.es.js → pagination-C42HuFPt.es.js} +5 -5
  188. package/dist/chunks/{pagination-Bw4PfQiy.es.js.map → pagination-C42HuFPt.es.js.map} +1 -1
  189. package/dist/chunks/{pagination-DpIJKRGy.cjs.js → pagination-DUr6sdQn.cjs.js} +2 -2
  190. package/dist/chunks/{pagination-DpIJKRGy.cjs.js.map → pagination-DUr6sdQn.cjs.js.map} +1 -1
  191. package/dist/chunks/{password-input-BWdVEHir.es.js → password-input-BLyb61oT.es.js} +4 -4
  192. package/dist/chunks/{password-input-BWdVEHir.es.js.map → password-input-BLyb61oT.es.js.map} +1 -1
  193. package/dist/chunks/{password-input-BDr6w2c9.cjs.js → password-input-DEPGgEer.cjs.js} +2 -2
  194. package/dist/chunks/{password-input-BDr6w2c9.cjs.js.map → password-input-DEPGgEer.cjs.js.map} +1 -1
  195. package/dist/chunks/{popover-zNeVW5hN.es.js → popover-B1aRr1CU.es.js} +2 -2
  196. package/dist/chunks/{popover-zNeVW5hN.es.js.map → popover-B1aRr1CU.es.js.map} +1 -1
  197. package/dist/chunks/{progress-bar-B6NmD044.cjs.js → progress-bar-CDrMY2Tr.cjs.js} +2 -2
  198. package/dist/chunks/{progress-bar-B6NmD044.cjs.js.map → progress-bar-CDrMY2Tr.cjs.js.map} +1 -1
  199. package/dist/chunks/{progress-bar-CLTFIeJQ.es.js → progress-bar-CmLk2V58.es.js} +4 -4
  200. package/dist/chunks/{progress-bar-CLTFIeJQ.es.js.map → progress-bar-CmLk2V58.es.js.map} +1 -1
  201. package/dist/chunks/{radio-input-B1krp3Lh.es.js → radio-input-C6UOKzvj.es.js} +42 -42
  202. package/dist/chunks/{radio-input-B1krp3Lh.es.js.map → radio-input-C6UOKzvj.es.js.map} +1 -1
  203. package/dist/chunks/{radio-input-CZH0xqSP.cjs.js → radio-input-Dp_J03_M.cjs.js} +2 -2
  204. package/dist/chunks/{radio-input-CZH0xqSP.cjs.js.map → radio-input-Dp_J03_M.cjs.js.map} +1 -1
  205. package/dist/chunks/{range-calendar-Q0QKtRQY.es.js → range-calendar-BIDTqSbH.es.js} +10 -10
  206. package/dist/chunks/{range-calendar-Q0QKtRQY.es.js.map → range-calendar-BIDTqSbH.es.js.map} +1 -1
  207. package/dist/chunks/{range-calendar-_a9mYU8O.cjs.js → range-calendar-BnGClIZT.cjs.js} +2 -2
  208. package/dist/chunks/{range-calendar-_a9mYU8O.cjs.js.map → range-calendar-BnGClIZT.cjs.js.map} +1 -1
  209. package/dist/chunks/{rich-text-input-v6nJvAeT.cjs.js → rich-text-input-BCVDj0UL.cjs.js} +2 -2
  210. package/dist/chunks/{rich-text-input-v6nJvAeT.cjs.js.map → rich-text-input-BCVDj0UL.cjs.js.map} +1 -1
  211. package/dist/chunks/{rich-text-input-D9-NrOjQ.es.js → rich-text-input-CPWH2suR.es.js} +13 -13
  212. package/dist/chunks/{rich-text-input-D9-NrOjQ.es.js.map → rich-text-input-CPWH2suR.es.js.map} +1 -1
  213. package/dist/chunks/{scoped-search-input-CJTn4Zz-.es.js → scoped-search-input-B17E7aiQ.es.js} +5 -5
  214. package/dist/chunks/{scoped-search-input-CJTn4Zz-.es.js.map → scoped-search-input-B17E7aiQ.es.js.map} +1 -1
  215. package/dist/chunks/{scoped-search-input-DR1UVqfn.cjs.js → scoped-search-input-CEPK4gNi.cjs.js} +2 -2
  216. package/dist/chunks/{scoped-search-input-DR1UVqfn.cjs.js.map → scoped-search-input-CEPK4gNi.cjs.js.map} +1 -1
  217. package/dist/chunks/{scrollIntoView-B7D07fJk.es.js → scrollIntoView-CQMm8-SR.es.js} +5 -5
  218. package/dist/chunks/{scrollIntoView-B7D07fJk.es.js.map → scrollIntoView-CQMm8-SR.es.js.map} +1 -1
  219. package/dist/chunks/{search-input-Bex68IhV.cjs.js → search-input-DWCqEUFA.cjs.js} +2 -2
  220. package/dist/chunks/{search-input-Bex68IhV.cjs.js.map → search-input-DWCqEUFA.cjs.js.map} +1 -1
  221. package/dist/chunks/{search-input-CyKGVTq3.es.js → search-input-DvaCntFB.es.js} +11 -11
  222. package/dist/chunks/{search-input-CyKGVTq3.es.js.map → search-input-DvaCntFB.es.js.map} +1 -1
  223. package/dist/chunks/{search-input-field-DjFWQe7R.es.js → search-input-field-DASR5Tf8.es.js} +3 -3
  224. package/dist/chunks/{search-input-field-DjFWQe7R.es.js.map → search-input-field-DASR5Tf8.es.js.map} +1 -1
  225. package/dist/chunks/{search-input-field-BOtCJu5U.cjs.js → search-input-field-Dn4OknB0.cjs.js} +2 -2
  226. package/dist/chunks/{search-input-field-BOtCJu5U.cjs.js.map → search-input-field-Dn4OknB0.cjs.js.map} +1 -1
  227. package/dist/chunks/{select-DCLqY_H8.es.js → select-CWWMqG4P.es.js} +21 -21
  228. package/dist/chunks/{select-DCLqY_H8.es.js.map → select-CWWMqG4P.es.js.map} +1 -1
  229. package/dist/chunks/{select-noWcLHsw.cjs.js → select-lV0v1J4o.cjs.js} +2 -2
  230. package/dist/chunks/{select-noWcLHsw.cjs.js.map → select-lV0v1J4o.cjs.js.map} +1 -1
  231. package/dist/chunks/{separator-PVuFkBJX.es.js → separator-BwTDBxHr.es.js} +4 -4
  232. package/dist/chunks/{separator-PVuFkBJX.es.js.map → separator-BwTDBxHr.es.js.map} +1 -1
  233. package/dist/chunks/{separator-DryRIJEa.cjs.js → separator-C3-b67_7.cjs.js} +2 -2
  234. package/dist/chunks/{separator-DryRIJEa.cjs.js.map → separator-C3-b67_7.cjs.js.map} +1 -1
  235. package/dist/chunks/{split-button-C0ErPS5z.cjs.js → split-button-Ce_rS1KG.cjs.js} +2 -2
  236. package/dist/chunks/{split-button-C0ErPS5z.cjs.js.map → split-button-Ce_rS1KG.cjs.js.map} +1 -1
  237. package/dist/chunks/{split-button-Rxsqp2QA.es.js → split-button-XlrEXJ_7.es.js} +4 -4
  238. package/dist/chunks/{split-button-Rxsqp2QA.es.js.map → split-button-XlrEXJ_7.es.js.map} +1 -1
  239. package/dist/chunks/{switch-Dg64nTZL.cjs.js → switch-CGC5nb_t.cjs.js} +2 -2
  240. package/dist/chunks/{switch-Dg64nTZL.cjs.js.map → switch-CGC5nb_t.cjs.js.map} +1 -1
  241. package/dist/chunks/{switch-bQf5AhI3.es.js → switch-DEH5WN63.es.js} +7 -7
  242. package/dist/chunks/{switch-bQf5AhI3.es.js.map → switch-DEH5WN63.es.js.map} +1 -1
  243. package/dist/chunks/{tabs-Dt3Dhaiq.es.js → tabs-6O1P6qvI.es.js} +13 -13
  244. package/dist/chunks/{tabs-Dt3Dhaiq.es.js.map → tabs-6O1P6qvI.es.js.map} +1 -1
  245. package/dist/chunks/{tabs-e-3yG4hI.cjs.js → tabs-DLuHUSsH.cjs.js} +2 -2
  246. package/dist/chunks/{tabs-e-3yG4hI.cjs.js.map → tabs-DLuHUSsH.cjs.js.map} +1 -1
  247. package/dist/chunks/{tag-group-CklEK4eJ.es.js → tag-group-7M3uDZJS.es.js} +19 -19
  248. package/dist/chunks/{tag-group-CklEK4eJ.es.js.map → tag-group-7M3uDZJS.es.js.map} +1 -1
  249. package/dist/chunks/{tag-group-D0NF_ay2.cjs.js → tag-group-BYBLgF0r.cjs.js} +2 -2
  250. package/dist/chunks/{tag-group-D0NF_ay2.cjs.js.map → tag-group-BYBLgF0r.cjs.js.map} +1 -1
  251. package/dist/chunks/{text-CIb_VDvO.es.js → text-DvqDjbwb.es.js} +2 -2
  252. package/dist/chunks/{text-CIb_VDvO.es.js.map → text-DvqDjbwb.es.js.map} +1 -1
  253. package/dist/chunks/{text-input-CHwtpRzk.cjs.js → text-input-ClVq3LKb.cjs.js} +2 -2
  254. package/dist/chunks/{text-input-CHwtpRzk.cjs.js.map → text-input-ClVq3LKb.cjs.js.map} +1 -1
  255. package/dist/chunks/{text-input-BsC8K75b.es.js → text-input-DWYZ0DTD.es.js} +7 -7
  256. package/dist/chunks/{text-input-BsC8K75b.es.js.map → text-input-DWYZ0DTD.es.js.map} +1 -1
  257. package/dist/chunks/{text-input-field-D0MJSUw8.cjs.js → text-input-field-Ct5ITNC8.cjs.js} +2 -2
  258. package/dist/chunks/{text-input-field-D0MJSUw8.cjs.js.map → text-input-field-Ct5ITNC8.cjs.js.map} +1 -1
  259. package/dist/chunks/{text-input-field-DeQ-WI6P.es.js → text-input-field-DnNkliBC.es.js} +3 -3
  260. package/dist/chunks/{text-input-field-DeQ-WI6P.es.js.map → text-input-field-DnNkliBC.es.js.map} +1 -1
  261. package/dist/chunks/{time-input-2Dsps1zh.es.js → time-input-DDwaq6Kc.es.js} +4 -4
  262. package/dist/chunks/{time-input-2Dsps1zh.es.js.map → time-input-DDwaq6Kc.es.js.map} +1 -1
  263. package/dist/chunks/{time-input-5TSbIWQl.cjs.js → time-input-TM8dz3sl.cjs.js} +2 -2
  264. package/dist/chunks/{time-input-5TSbIWQl.cjs.js.map → time-input-TM8dz3sl.cjs.js.map} +1 -1
  265. package/dist/chunks/{toggle-button-DqFFGgPy.cjs.js → toggle-button-BP1Z93Un.cjs.js} +2 -2
  266. package/dist/chunks/{toggle-button-DqFFGgPy.cjs.js.map → toggle-button-BP1Z93Un.cjs.js.map} +1 -1
  267. package/dist/chunks/{toggle-button-DnznFtWJ.es.js → toggle-button-Bjwm0czy.es.js} +4 -4
  268. package/dist/chunks/{toggle-button-DnznFtWJ.es.js.map → toggle-button-Bjwm0czy.es.js.map} +1 -1
  269. package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js → toggle-button-group-P0oS-q6h.es.js} +2 -2
  270. package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js.map → toggle-button-group-P0oS-q6h.es.js.map} +1 -1
  271. package/dist/chunks/{toolbar-E2paihzp.cjs.js → toolbar-DF_NHKJ0.cjs.js} +2 -2
  272. package/dist/chunks/{toolbar-E2paihzp.cjs.js.map → toolbar-DF_NHKJ0.cjs.js.map} +1 -1
  273. package/dist/chunks/{toolbar-DE2w5rxi.es.js → toolbar-pfHBg-uY.es.js} +6 -6
  274. package/dist/chunks/{toolbar-DE2w5rxi.es.js.map → toolbar-pfHBg-uY.es.js.map} +1 -1
  275. package/dist/chunks/{tooltip-D3QrrizN.es.js → tooltip-CzEuq_Qi.es.js} +7 -7
  276. package/dist/chunks/{tooltip-D3QrrizN.es.js.map → tooltip-CzEuq_Qi.es.js.map} +1 -1
  277. package/dist/chunks/{useButton-CiPiehgC.es.js → useButton-B2TbwHSy.es.js} +4 -4
  278. package/dist/chunks/{useButton-CiPiehgC.es.js.map → useButton-B2TbwHSy.es.js.map} +1 -1
  279. package/dist/chunks/{useDateFormatter-886GJ5w1.es.js → useDateFormatter-CO08GpLe.es.js} +2 -2
  280. package/dist/chunks/{useDateFormatter-886GJ5w1.es.js.map → useDateFormatter-CO08GpLe.es.js.map} +1 -1
  281. package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js → useDisclosureState-BqxwXawT.es.js} +3 -3
  282. package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js.map → useDisclosureState-BqxwXawT.es.js.map} +1 -1
  283. package/dist/chunks/{useEvent-CRo5BZDX.es.js → useEvent-D8bTsAyx.es.js} +6 -6
  284. package/dist/chunks/{useEvent-CRo5BZDX.es.js.map → useEvent-D8bTsAyx.es.js.map} +1 -1
  285. package/dist/chunks/{useField-CHrpmkxe.es.js → useField-BfW84CS4.es.js} +8 -8
  286. package/dist/chunks/{useField-CHrpmkxe.es.js.map → useField-BfW84CS4.es.js.map} +1 -1
  287. package/dist/chunks/{useFocus-CrgTusM3.es.js → useFocus-TCNvrvTC.es.js} +6 -6
  288. package/dist/chunks/{useFocus-CrgTusM3.es.js.map → useFocus-TCNvrvTC.es.js.map} +1 -1
  289. package/dist/chunks/{useFocusRing-FPt2Rwil.es.js → useFocusRing-oMAqzr3e.es.js} +4 -4
  290. package/dist/chunks/{useFocusRing-FPt2Rwil.es.js.map → useFocusRing-oMAqzr3e.es.js.map} +1 -1
  291. package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js → useFocusVisible-Uw6yFmFY.es.js} +6 -6
  292. package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js.map → useFocusVisible-Uw6yFmFY.es.js.map} +1 -1
  293. package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js → useFocusWithin-nAsP7Ru3.es.js} +6 -6
  294. package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js.map → useFocusWithin-nAsP7Ru3.es.js.map} +1 -1
  295. package/dist/chunks/{useFocusable-Cs6i58WP.es.js → useFocusable-Bm-DQaak.es.js} +5 -5
  296. package/dist/chunks/{useFocusable-Cs6i58WP.es.js.map → useFocusable-Bm-DQaak.es.js.map} +1 -1
  297. package/dist/chunks/{useFormReset-BGuIA_u2.es.js → useFormReset-C52dSDoe.es.js} +2 -2
  298. package/dist/chunks/{useFormReset-BGuIA_u2.es.js.map → useFormReset-C52dSDoe.es.js.map} +1 -1
  299. package/dist/chunks/{useFormValidation-BCVLtR0U.es.js → useFormValidation-DxDV9X1M.es.js} +3 -3
  300. package/dist/chunks/{useFormValidation-BCVLtR0U.es.js.map → useFormValidation-DxDV9X1M.es.js.map} +1 -1
  301. package/dist/chunks/{useGridListItem-CjGTTOtc.es.js → useGridListItem-DTjO497o.es.js} +10 -10
  302. package/dist/chunks/{useGridListItem-CjGTTOtc.es.js.map → useGridListItem-DTjO497o.es.js.map} +1 -1
  303. package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js → useHasTabbableChild-DemFbZRn.es.js} +3 -3
  304. package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js.map → useHasTabbableChild-DemFbZRn.es.js.map} +1 -1
  305. package/dist/chunks/{useHover-BQRSM3qT.es.js → useHover-BtRK9g2L.es.js} +2 -2
  306. package/dist/chunks/{useHover-BQRSM3qT.es.js.map → useHover-BtRK9g2L.es.js.map} +1 -1
  307. package/dist/chunks/{useLabel-DQaRD22u.es.js → useLabel-DfbcmKTa.es.js} +5 -5
  308. package/dist/chunks/{useLabel-DQaRD22u.es.js.map → useLabel-DfbcmKTa.es.js.map} +1 -1
  309. package/dist/chunks/{useLabels-BDqWMehi.es.js → useLabels-Gn8v9XZB.es.js} +2 -2
  310. package/dist/chunks/{useLabels-BDqWMehi.es.js.map → useLabels-Gn8v9XZB.es.js.map} +1 -1
  311. package/dist/chunks/{useListState-CRfmjiWx.es.js → useListState-D9k6HiWm.es.js} +2 -2
  312. package/dist/chunks/{useListState-CRfmjiWx.es.js.map → useListState-D9k6HiWm.es.js.map} +1 -1
  313. package/dist/chunks/{usePress-BuLomD_X.es.js → usePress-C_IPaF8I.es.js} +6 -6
  314. package/dist/chunks/{usePress-BuLomD_X.es.js.map → usePress-C_IPaF8I.es.js.map} +1 -1
  315. package/dist/chunks/{useProgressBar--OvVKto2.es.js → useProgressBar-DCj794Zv.es.js} +7 -7
  316. package/dist/chunks/{useProgressBar--OvVKto2.es.js.map → useProgressBar-DCj794Zv.es.js.map} +1 -1
  317. package/dist/chunks/{useSingleSelectListState-DFR33TSw.es.js → useSingleSelectListState-C_tE7a5E.es.js} +2 -2
  318. package/dist/chunks/{useSingleSelectListState-DFR33TSw.es.js.map → useSingleSelectListState-C_tE7a5E.es.js.map} +1 -1
  319. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-BiQ20B5n.es.js} +15 -15
  320. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-BiQ20B5n.es.js.map} +1 -1
  321. package/dist/chunks/{useSyncRef-BpLviItW.es.js → useSyncRef-DmY05o2G.es.js} +2 -2
  322. package/dist/chunks/{useSyncRef-BpLviItW.es.js.map → useSyncRef-DmY05o2G.es.js.map} +1 -1
  323. package/dist/chunks/{useTextField-yuaT8-G4.es.js → useTextField-9WuJfc9u.es.js} +7 -7
  324. package/dist/chunks/{useTextField-yuaT8-G4.es.js.map → useTextField-9WuJfc9u.es.js.map} +1 -1
  325. package/dist/chunks/{useToggle-DKP3zVOY.es.js → useToggle-BZPMewLP.es.js} +5 -5
  326. package/dist/chunks/{useToggle-DKP3zVOY.es.js.map → useToggle-BZPMewLP.es.js.map} +1 -1
  327. package/dist/chunks/{useToolbar-CbJkugif.es.js → useToolbar-C673xD3E.es.js} +3 -3
  328. package/dist/chunks/{useToolbar-CbJkugif.es.js.map → useToolbar-C673xD3E.es.js.map} +1 -1
  329. package/dist/chunks/{utils-B6pV5ewr.es.js → utils-9vu7GUaz.es.js} +12 -12
  330. package/dist/chunks/{utils-B6pV5ewr.es.js.map → utils-9vu7GUaz.es.js.map} +1 -1
  331. package/dist/chunks/{utils-oAGBWzI5.es.js → utils-Bl-3nKLa.es.js} +14 -14
  332. package/dist/chunks/{utils-oAGBWzI5.es.js.map → utils-Bl-3nKLa.es.js.map} +1 -1
  333. package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js → visually-hidden-m5QY9YV7.es.js} +2 -2
  334. package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js.map → visually-hidden-m5QY9YV7.es.js.map} +1 -1
  335. package/dist/components/accordion/accordion.recipe.d.ts +1 -1
  336. package/dist/components/accordion/accordion.slots.d.ts +5 -5
  337. package/dist/components/accordion.cjs +1 -1
  338. package/dist/components/accordion.es.js +2 -2
  339. package/dist/components/alert/alert.recipe.d.ts +1 -1
  340. package/dist/components/alert/alert.slots.d.ts +3 -3
  341. package/dist/components/alert.cjs +1 -1
  342. package/dist/components/alert.es.js +1 -1
  343. package/dist/components/avatar/avatar.slots.d.ts +1 -1
  344. package/dist/components/badge/badge.slots.d.ts +1 -1
  345. package/dist/components/badge.es.js +1 -1
  346. package/dist/components/button.cjs +1 -1
  347. package/dist/components/button.es.js +1 -1
  348. package/dist/components/calendar/calendar.slots.d.ts +8 -8
  349. package/dist/components/calendar.cjs +1 -1
  350. package/dist/components/calendar.es.js +1 -1
  351. package/dist/components/card.cjs +1 -1
  352. package/dist/components/card.es.js +1 -1
  353. package/dist/components/checkbox.cjs +1 -1
  354. package/dist/components/checkbox.es.js +1 -1
  355. package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
  356. package/dist/components/collapsible-motion.cjs +1 -1
  357. package/dist/components/collapsible-motion.es.js +1 -1
  358. package/dist/components/combobox/combobox.recipe.d.ts +1 -1
  359. package/dist/components/combobox/combobox.slots.d.ts +9 -9
  360. package/dist/components/combobox.cjs +1 -1
  361. package/dist/components/combobox.es.js +1 -1
  362. package/dist/components/components.cjs +1 -1
  363. package/dist/components/components.es.js +1 -1
  364. package/dist/components/data-table/data-table.d.ts +3 -3
  365. package/dist/components/data-table/data-table.slots.d.ts +12 -12
  366. package/dist/components/data-table.cjs +1 -1
  367. package/dist/components/data-table.es.js +1 -1
  368. package/dist/components/date-input/date-input.slots.d.ts +5 -5
  369. package/dist/components/date-input.cjs +1 -1
  370. package/dist/components/date-input.es.js +1 -1
  371. package/dist/components/date-picker/date-picker.recipe.d.ts +1 -1
  372. package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
  373. package/dist/components/date-picker.cjs +1 -1
  374. package/dist/components/date-picker.es.js +1 -1
  375. package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +1 -1
  376. package/dist/components/date-range-picker/date-range-picker.slots.d.ts +8 -8
  377. package/dist/components/date-range-picker-field.cjs +1 -1
  378. package/dist/components/date-range-picker-field.es.js +1 -1
  379. package/dist/components/date-range-picker.cjs +1 -1
  380. package/dist/components/date-range-picker.es.js +1 -1
  381. package/dist/components/dialog/dialog.slots.d.ts +9 -9
  382. package/dist/components/dialog.cjs +1 -1
  383. package/dist/components/dialog.es.js +1 -1
  384. package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
  385. package/dist/components/draggable-list.cjs +1 -1
  386. package/dist/components/draggable-list.es.js +1 -1
  387. package/dist/components/drawer/drawer.slots.d.ts +10 -10
  388. package/dist/components/drawer.cjs +1 -1
  389. package/dist/components/drawer.es.js +1 -1
  390. package/dist/components/field-errors/field-errors.types.d.ts +1 -1
  391. package/dist/components/fields.cjs +1 -1
  392. package/dist/components/fields.es.js +6 -6
  393. package/dist/components/form-field/form-field.recipe.d.ts +1 -1
  394. package/dist/components/form-field/form-field.slots.d.ts +2 -2
  395. package/dist/components/form-field.cjs +1 -1
  396. package/dist/components/form-field.es.js +1 -1
  397. package/dist/components/group.es.js +1 -1
  398. package/dist/components/heading.es.js +1 -1
  399. package/dist/components/icon-button.cjs +1 -1
  400. package/dist/components/icon-button.es.js +1 -1
  401. package/dist/components/icon-toggle-button.cjs +1 -1
  402. package/dist/components/icon-toggle-button.es.js +1 -1
  403. package/dist/components/inline-svg/inline-svg.slots.d.ts +1 -1
  404. package/dist/components/kbd.es.js +1 -1
  405. package/dist/components/link/link.slots.d.ts +1 -1
  406. package/dist/components/link.es.js +1 -1
  407. package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
  408. package/dist/components/loading-spinner.es.js +1 -1
  409. package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
  410. package/dist/components/localized-field.cjs +1 -1
  411. package/dist/components/localized-field.es.js +1 -1
  412. package/dist/components/menu/menu.recipe.d.ts +1 -1
  413. package/dist/components/money-input/money-input.slots.d.ts +6 -6
  414. package/dist/components/money-input-field.cjs +1 -1
  415. package/dist/components/money-input-field.es.js +1 -1
  416. package/dist/components/money-input.cjs +1 -1
  417. package/dist/components/money-input.es.js +1 -1
  418. package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
  419. package/dist/components/multiline-text-input-field.cjs +1 -1
  420. package/dist/components/multiline-text-input-field.es.js +1 -1
  421. package/dist/components/multiline-text-input.cjs +1 -1
  422. package/dist/components/multiline-text-input.es.js +1 -1
  423. package/dist/components/nimbus-provider.cjs +1 -1
  424. package/dist/components/nimbus-provider.es.js +1 -1
  425. package/dist/components/number-input/number-input.slots.d.ts +6 -6
  426. package/dist/components/number-input-field.cjs +1 -1
  427. package/dist/components/number-input-field.es.js +1 -1
  428. package/dist/components/number-input.cjs +1 -1
  429. package/dist/components/number-input.es.js +1 -1
  430. package/dist/components/pagination.cjs +1 -1
  431. package/dist/components/pagination.es.js +1 -1
  432. package/dist/components/password-input.cjs +1 -1
  433. package/dist/components/password-input.es.js +1 -1
  434. package/dist/components/patterns.cjs +1 -1
  435. package/dist/components/patterns.es.js +6 -6
  436. package/dist/components/popover.es.js +1 -1
  437. package/dist/components/progress-bar/progress-bar.slots.d.ts +4 -4
  438. package/dist/components/progress-bar.cjs +1 -1
  439. package/dist/components/progress-bar.es.js +1 -1
  440. package/dist/components/radio-input/radio-input.slots.d.ts +2 -2
  441. package/dist/components/radio-input.cjs +1 -1
  442. package/dist/components/radio-input.es.js +1 -1
  443. package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
  444. package/dist/components/range-calendar.cjs +1 -1
  445. package/dist/components/range-calendar.es.js +1 -1
  446. package/dist/components/rich-text-input/rich-text-input.slots.d.ts +2 -2
  447. package/dist/components/rich-text-input.cjs +1 -1
  448. package/dist/components/rich-text-input.es.js +1 -1
  449. package/dist/components/scoped-search-input.cjs +1 -1
  450. package/dist/components/scoped-search-input.es.js +1 -1
  451. package/dist/components/search-input-field.cjs +1 -1
  452. package/dist/components/search-input-field.es.js +1 -1
  453. package/dist/components/search-input.cjs +1 -1
  454. package/dist/components/search-input.es.js +1 -1
  455. package/dist/components/select/select.slots.d.ts +7 -7
  456. package/dist/components/select.cjs +1 -1
  457. package/dist/components/select.es.js +1 -1
  458. package/dist/components/separator.cjs +1 -1
  459. package/dist/components/separator.es.js +1 -1
  460. package/dist/components/split-button/split-button.slots.d.ts +3 -3
  461. package/dist/components/split-button.cjs +1 -1
  462. package/dist/components/split-button.es.js +1 -1
  463. package/dist/components/switch/switch.slots.d.ts +3 -3
  464. package/dist/components/switch.cjs +1 -1
  465. package/dist/components/switch.es.js +1 -1
  466. package/dist/components/tabs/tabs.recipe.d.ts +1 -1
  467. package/dist/components/tabs/tabs.slots.d.ts +3 -3
  468. package/dist/components/tabs.cjs +1 -1
  469. package/dist/components/tabs.es.js +1 -1
  470. package/dist/components/tag-group.cjs +1 -1
  471. package/dist/components/tag-group.es.js +1 -1
  472. package/dist/components/text-input-field.cjs +1 -1
  473. package/dist/components/text-input-field.es.js +1 -1
  474. package/dist/components/text-input.cjs +1 -1
  475. package/dist/components/text-input.es.js +1 -1
  476. package/dist/components/text.es.js +1 -1
  477. package/dist/components/time-input/time-input.slots.d.ts +5 -5
  478. package/dist/components/time-input.cjs +1 -1
  479. package/dist/components/time-input.es.js +1 -1
  480. package/dist/components/toggle-button-group.es.js +1 -1
  481. package/dist/components/toggle-button.cjs +1 -1
  482. package/dist/components/toggle-button.es.js +1 -1
  483. package/dist/components/toolbar.cjs +1 -1
  484. package/dist/components/toolbar.es.js +1 -1
  485. package/dist/components/tooltip.es.js +2 -2
  486. package/dist/components/visually-hidden.es.js +1 -1
  487. package/dist/index.cjs +1 -1
  488. package/dist/index.es.js +63 -63
  489. package/dist/theme/slot-recipes/index.d.ts +8 -8
  490. package/package.json +5 -5
  491. package/dist/chunks/accordion.content-DVg8gjOb.cjs.js +0 -2
  492. package/dist/chunks/badge-CgYpum7D.es.js +0 -17
  493. package/dist/chunks/index-BA58iOLX.es.js.map +0 -1
  494. package/dist/chunks/index-LgrrgjIe.cjs.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"focusSafely-Cwb0Tyy6.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/utils/dist/runAfterTransition.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/interactions/dist/focusSafely.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 */ // We store a global list of elements that are currently transitioning,\n// mapped to a set of CSS properties that are transitioning for that element.\n// This is necessary rather than a simple count of transitions because of browser\n// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather\n// than one or the other. So we need to track what's actually transitioning so that\n// we can ignore these duplicate events.\nlet $bbed8b41f857bcc0$var$transitionsByElement = new Map();\n// A list of callbacks to call once there are no transitioning elements.\nlet $bbed8b41f857bcc0$var$transitionCallbacks = new Set();\nfunction $bbed8b41f857bcc0$var$setupGlobalEvents() {\n if (typeof window === 'undefined') return;\n function isTransitionEvent(event) {\n return 'propertyName' in event;\n }\n let onTransitionStart = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Add the transitioning property to the list for this element.\n let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!transitions) {\n transitions = new Set();\n $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);\n // The transitioncancel event must be registered on the element itself, rather than as a global\n // event. This enables us to handle when the node is deleted from the document while it is transitioning.\n // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.\n e.target.addEventListener('transitioncancel', onTransitionEnd, {\n once: true\n });\n }\n transitions.add(e.propertyName);\n };\n let onTransitionEnd = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Remove property from list of transitioning properties.\n let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!properties) return;\n properties.delete(e.propertyName);\n // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.\n if (properties.size === 0) {\n e.target.removeEventListener('transitioncancel', onTransitionEnd);\n $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);\n }\n // If no transitioning elements, call all of the queued callbacks.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {\n for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();\n $bbed8b41f857bcc0$var$transitionCallbacks.clear();\n }\n };\n document.body.addEventListener('transitionrun', onTransitionStart);\n document.body.addEventListener('transitionend', onTransitionEnd);\n}\nif (typeof document !== 'undefined') {\n if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();\n else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);\n}\n/**\n * Cleans up any elements that are no longer in the document.\n * This is necessary because we can't rely on transitionend events to fire\n * for elements that are removed from the document while transitioning.\n */ function $bbed8b41f857bcc0$var$cleanupDetachedElements() {\n for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)// Similar to `eventTarget instanceof Element && !eventTarget.isConnected`, but avoids\n // the explicit instanceof check, since it may be different in different contexts.\n if ('isConnected' in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);\n}\nfunction $bbed8b41f857bcc0$export$24490316f764c430(fn) {\n // Wait one frame to see if an animation starts, e.g. a transition on mount.\n requestAnimationFrame(()=>{\n $bbed8b41f857bcc0$var$cleanupDetachedElements();\n // If no transitions are running, call the function immediately.\n // Otherwise, add it to a list of callbacks to run at the end of the animation.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();\n else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);\n });\n}\n\n\nexport {$bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition};\n//# sourceMappingURL=runAfterTransition.module.js.map\n","import {getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9} from \"./useFocusVisible.mjs\";\nimport {getOwnerDocument as $k50bp$getOwnerDocument, getActiveElement as $k50bp$getActiveElement, runAfterTransition as $k50bp$runAfterTransition, focusWithoutScrolling as $k50bp$focusWithoutScrolling} from \"@react-aria/utils\";\n\n/*\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 */ \n\nfunction $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $k50bp$getOwnerDocument)(element);\n const activeElement = (0, $k50bp$getActiveElement)(ownerDocument);\n if ((0, $507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {\n let lastFocusedElement = activeElement;\n (0, $k50bp$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if ((0, $k50bp$getActiveElement)(ownerDocument) === lastFocusedElement && element.isConnected) (0, $k50bp$focusWithoutScrolling)(element);\n });\n } else (0, $k50bp$focusWithoutScrolling)(element);\n}\n\n\nexport {$3ad3f6e1647bc98d$export$80f3e147d781571c as focusSafely};\n//# sourceMappingURL=focusSafely.module.js.map\n"],"names":["$bbed8b41f857bcc0$var$transitionsByElement","$bbed8b41f857bcc0$var$transitionCallbacks","$bbed8b41f857bcc0$var$cleanupDetachedElements","eventTarget","$bbed8b41f857bcc0$export$24490316f764c430","fn","$3ad3f6e1647bc98d$export$80f3e147d781571c","element","ownerDocument","$k50bp$getOwnerDocument","activeElement","$k50bp$getActiveElement","$507fabe10e71c6fb$export$630ff653c5ada6a9","lastFocusedElement","$k50bp$runAfterTransition","$k50bp$focusWithoutScrolling"],"mappings":";;;AAgBA,IAAIA,IAA6C,oBAAI,IAAG,GAEpDC,IAA4C,oBAAI,IAAG;AAkDnD,SAASC,IAAgD;AACzD,aAAW,CAACC,CAAW,KAAKH;AAE5B,IAAI,iBAAiBG,KAAe,CAACA,EAAY,eAAaH,EAA2C,OAAOG,CAAW;AAC/H;AACA,SAASC,EAA0CC,GAAI;AAEnD,wBAAsB,MAAI;AACtB,IAAAH,EAA6C,GAGzCF,EAA2C,SAAS,IAAGK,EAAE,IACxDJ,EAA0C,IAAII,CAAE;AAAA,EACzD,CAAC;AACL;ACnEA,SAASC,EAA0CC,GAAS;AAMxD,QAAMC,IAAoBC,EAAyBF,CAAO,GACpDG,IAAoBC,EAAyBH,CAAa;AAChE,MAAQI,EAAyC,MAAQ,WAAW;AAChE,QAAIC,IAAqBH;AACzB,IAAII,EAA2B,MAAI;AAE/B,MAAQH,EAAyBH,CAAa,MAAMK,KAAsBN,EAAQ,eAAiBQ,EAA8BR,CAAO;AAAA,IAC5I,CAAC;AAAA,EACL,MAAO,CAAIQ,EAA8BR,CAAO;AACpD;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"focusSafely-RvsgqoUt.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/utils/dist/runAfterTransition.mjs","../../../../node_modules/.pnpm/@react-aria+interactions@3.25.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/interactions/dist/focusSafely.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 */ // We store a global list of elements that are currently transitioning,\n// mapped to a set of CSS properties that are transitioning for that element.\n// This is necessary rather than a simple count of transitions because of browser\n// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather\n// than one or the other. So we need to track what's actually transitioning so that\n// we can ignore these duplicate events.\nlet $bbed8b41f857bcc0$var$transitionsByElement = new Map();\n// A list of callbacks to call once there are no transitioning elements.\nlet $bbed8b41f857bcc0$var$transitionCallbacks = new Set();\nfunction $bbed8b41f857bcc0$var$setupGlobalEvents() {\n if (typeof window === 'undefined') return;\n function isTransitionEvent(event) {\n return 'propertyName' in event;\n }\n let onTransitionStart = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Add the transitioning property to the list for this element.\n let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!transitions) {\n transitions = new Set();\n $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);\n // The transitioncancel event must be registered on the element itself, rather than as a global\n // event. This enables us to handle when the node is deleted from the document while it is transitioning.\n // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.\n e.target.addEventListener('transitioncancel', onTransitionEnd, {\n once: true\n });\n }\n transitions.add(e.propertyName);\n };\n let onTransitionEnd = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Remove property from list of transitioning properties.\n let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!properties) return;\n properties.delete(e.propertyName);\n // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.\n if (properties.size === 0) {\n e.target.removeEventListener('transitioncancel', onTransitionEnd);\n $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);\n }\n // If no transitioning elements, call all of the queued callbacks.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {\n for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();\n $bbed8b41f857bcc0$var$transitionCallbacks.clear();\n }\n };\n document.body.addEventListener('transitionrun', onTransitionStart);\n document.body.addEventListener('transitionend', onTransitionEnd);\n}\nif (typeof document !== 'undefined') {\n if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();\n else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);\n}\n/**\n * Cleans up any elements that are no longer in the document.\n * This is necessary because we can't rely on transitionend events to fire\n * for elements that are removed from the document while transitioning.\n */ function $bbed8b41f857bcc0$var$cleanupDetachedElements() {\n for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)// Similar to `eventTarget instanceof Element && !eventTarget.isConnected`, but avoids\n // the explicit instanceof check, since it may be different in different contexts.\n if ('isConnected' in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);\n}\nfunction $bbed8b41f857bcc0$export$24490316f764c430(fn) {\n // Wait one frame to see if an animation starts, e.g. a transition on mount.\n requestAnimationFrame(()=>{\n $bbed8b41f857bcc0$var$cleanupDetachedElements();\n // If no transitions are running, call the function immediately.\n // Otherwise, add it to a list of callbacks to run at the end of the animation.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();\n else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);\n });\n}\n\n\nexport {$bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition};\n//# sourceMappingURL=runAfterTransition.module.js.map\n","import {getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9} from \"./useFocusVisible.mjs\";\nimport {getOwnerDocument as $k50bp$getOwnerDocument, getActiveElement as $k50bp$getActiveElement, runAfterTransition as $k50bp$runAfterTransition, focusWithoutScrolling as $k50bp$focusWithoutScrolling} from \"@react-aria/utils\";\n\n/*\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 */ \n\nfunction $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $k50bp$getOwnerDocument)(element);\n const activeElement = (0, $k50bp$getActiveElement)(ownerDocument);\n if ((0, $507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {\n let lastFocusedElement = activeElement;\n (0, $k50bp$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if ((0, $k50bp$getActiveElement)(ownerDocument) === lastFocusedElement && element.isConnected) (0, $k50bp$focusWithoutScrolling)(element);\n });\n } else (0, $k50bp$focusWithoutScrolling)(element);\n}\n\n\nexport {$3ad3f6e1647bc98d$export$80f3e147d781571c as focusSafely};\n//# sourceMappingURL=focusSafely.module.js.map\n"],"names":["$bbed8b41f857bcc0$var$transitionsByElement","$bbed8b41f857bcc0$var$transitionCallbacks","$bbed8b41f857bcc0$var$cleanupDetachedElements","eventTarget","$bbed8b41f857bcc0$export$24490316f764c430","fn","$3ad3f6e1647bc98d$export$80f3e147d781571c","element","ownerDocument","$k50bp$getOwnerDocument","activeElement","$k50bp$getActiveElement","$507fabe10e71c6fb$export$630ff653c5ada6a9","lastFocusedElement","$k50bp$runAfterTransition","$k50bp$focusWithoutScrolling"],"mappings":";;;AAgBA,IAAIA,IAA6C,oBAAI,IAAG,GAEpDC,IAA4C,oBAAI,IAAG;AAkDnD,SAASC,IAAgD;AACzD,aAAW,CAACC,CAAW,KAAKH;AAE5B,IAAI,iBAAiBG,KAAe,CAACA,EAAY,eAAaH,EAA2C,OAAOG,CAAW;AAC/H;AACA,SAASC,EAA0CC,GAAI;AAEnD,wBAAsB,MAAI;AACtB,IAAAH,EAA6C,GAGzCF,EAA2C,SAAS,IAAGK,EAAE,IACxDJ,EAA0C,IAAII,CAAE;AAAA,EACzD,CAAC;AACL;ACnEA,SAASC,EAA0CC,GAAS;AAMxD,QAAMC,IAAoBC,EAAyBF,CAAO,GACpDG,IAAoBC,EAAyBH,CAAa;AAChE,MAAQI,EAAyC,MAAQ,WAAW;AAChE,QAAIC,IAAqBH;AACzB,IAAII,EAA2B,MAAI;AAE/B,MAAQH,EAAyBH,CAAa,MAAMK,KAAsBN,EAAQ,eAAiBQ,EAA8BR,CAAO;AAAA,IAC5I,CAAC;AAAA,EACL,MAAO,CAAIQ,EAA8BR,CAAO;AACpD;","x_google_ignoreList":[0,1]}
@@ -1,12 +1,12 @@
1
1
  import { createContext as z, useRef as A, useState as V, useMemo as b, useEffect as a, Children as _, isValidElement as H, cloneElement as R, useContext as u } from "react";
2
2
  import { jsx as n, jsxs as m } from "react/jsx-runtime";
3
3
  import { createSlotRecipeContext as D, mergeRefs as G } from "@chakra-ui/react";
4
- import { k as J, $ as K, h as O } from "./Dialog-DcnmO0xr.es.js";
4
+ import { k as J, $ as K, h as O } from "./Dialog-BYVU-i0Y.es.js";
5
5
  import { HelpOutline as Q, ErrorOutline as T } from "@commercetools/nimbus-icons";
6
6
  import { $ as U } from "./useObjectRef-CaJ5pgjX.es.js";
7
- import { $ as W } from "./useField-CHrpmkxe.es.js";
7
+ import { $ as W } from "./useField-BfW84CS4.es.js";
8
8
  import { B as F } from "./box-DuBoAZvq.es.js";
9
- import { I as X } from "./icon-button-1gt1BCJ2.es.js";
9
+ import { I as X } from "./icon-button-O_Rni1iK.es.js";
10
10
  const p = /* @__PURE__ */ z({
11
11
  context: {
12
12
  label: null,
@@ -355,4 +355,4 @@ export {
355
355
  v as e,
356
356
  g as f
357
357
  };
358
- //# sourceMappingURL=form-field-CzFcczIs.es.js.map
358
+ //# sourceMappingURL=form-field-D0GUo4Dx.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-CzFcczIs.es.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n colorPalette=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":";;;;;;;;;AA6BO,MAAMA,IAAmB,gBAAAC,EAAoC;AAAA,EAClE,SAAS;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAET,YAAY,MAAM;AAAA,EAAC;AACrB,CAAC,GC5BK,EAAE,cAAAC,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAAoB,gBAAAH,EAG/B,OAAO,MAAM,GAGFI,IAAqB,gBAAAH,EAGhC,OAAO,OAAO,GAGHI,KAAqB,gBAAAJ,EAGhC,OAAO,OAA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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqBP,aAAaE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBb,OAAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuBP,SAASE;AACX;"}
1
+ {"version":3,"file":"form-field-D0GUo4Dx.es.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n colorPalette=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":";;;;;;;;;AA6BO,MAAMA,IAAmB,gBAAAC,EAAoC;AAAA,EAClE,SAAS;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAET,YAAY,MAAM;AAAA,EAAC;AACrB,CAAC,GC5BK,EAAE,cAAAC,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAAoB,gBAAAH,EAG/B,OAAO,MAAM,GAGFI,IAAqB,gBAAAH,EAGhC,OAAO,OAAO,GAGHI,KAAqB,gBAAAJ,EAGhC,OAAO,OAAO,GAGHK,KAA2B,gBAAAL,EAGtC,OAAO,aAAa,GAGTM,KAAqB,gBAAAN,EAGhC,OAAO,OAAO,GAGHO,KAAuB,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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBb,OAAOE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuBP,SAASE;AACX;"}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("react"),l=require("react/jsx-runtime"),E=require("@chakra-ui/react"),x=require("./Dialog-flHBRP1h.cjs.js"),P=require("@commercetools/nimbus-icons"),k=require("./useObjectRef-4v2MxSjQ.cjs.js"),w=require("./useField-lK6K_h1G.cjs.js"),F=require("./box-CWni3A32.cjs.js"),z=require("./icon-button-LnGKZj9k.cjs.js"),u=t.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),{withProvider:A,withContext:p}=E.createSlotRecipeContext({key:"formField"}),D=A("div","root"),V=p("div","label"),_=p("div","input"),H=p("div","description"),O=p("div","error"),G=p("div","popover"),f=function({ref:i,id:o,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d,children:v,...g}){const B=t.useRef(null),y=k.$df56164dff5785e2$export$4338b53315abf666(E.mergeRefs(B,i)),[e,S]=t.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),I=t.useMemo(()=>{const s={id:o,description:e.description,errorMessage:e.error};return e.label?s.label=e.label:(s["aria-label"]="empty-label",s["aria-labelledby"]="empty-label"),s},[o,e.description,e.error,e.label]),{labelProps:N,fieldProps:$,descriptionProps:M,errorMessageProps:L}=w.$2baaea4c71418dea$export$294aa081a6c6f55d(I);t.useEffect(()=>{S(s=>({...s,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}))},[r,c,a,d]);const R=t.useMemo(()=>({...$,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),[$,r,c,a,d]),q=t.useMemo(()=>({context:e,setContext:S}),[e]);return l.jsx(u.Provider,{value:q,children:l.jsxs(D,{ref:y,...g,children:[e.label&&l.jsxs(V,{...e.labelSlotProps,children:[l.jsxs("label",{...N,children:[e.label,c&&l.jsx("sup",{"aria-hidden":"true",children:"*"})]}),e.info&&l.jsxs(x.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[l.jsx(F.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:l.jsx(F.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:l.jsx(z.IconButton,{"aria-label":"__MORE INFO",size:"2xs",colorPalette:"info",variant:"link",children:l.jsx(P.HelpOutline,{})})})}),l.jsx(x.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:l.jsx(G,{asChild:!0,children:l.jsx(x.$de32f1b87079253c$export$3ddf2d174ce01153,{children:l.jsx(F.Box,{p:"300",children:e.info})})})})]})]}),e.input&&l.jsx(_,{...e.inputSlotProps,children:t.Children.map(e.input,s=>t.isValidElement(s)?t.cloneElement(s,R):s)}),e.description&&l.jsx(H,{...M,...e.descriptionSlotProps,children:e.description}),r&&e.error&&l.jsxs(O,{...L,...e.errorSlotProps,children:[l.jsx(F.Box,{as:P.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100",alignSelf:"center"}),e.error]}),v]})})};f.displayName="FormField.Root";const m=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,label:n,labelSlotProps:i})),()=>{o(r=>({...r,label:null,labelSlotProps:void 0}))}),[n,o]),null};m.displayName="FormField.Label";const b=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>{o(r=>({...r,input:n,inputSlotProps:i}))},[n,o]),null};b.displayName="FormField.Input";const h=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,description:n,descriptionSlotProps:i})),()=>{o(r=>({...r,description:null,descriptionSlotProps:void 0}))}),[n,o]),null};h.displayName="FormField.Description";const j=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,error:n,errorSlotProps:i})),()=>{o(r=>({...r,error:null,errorSlotProps:void 0}))}),[n,o]),null};j.displayName="FormField.Error";const C=({children:n})=>{const{setContext:i}=t.useContext(u);return t.useEffect(()=>(i(o=>({...o,info:n})),()=>{i(o=>({...o,info:null}))}),[n,i]),null};C.displayName="FormField.InfoBox";const J={Root:f,Label:m,Input:b,Description:h,Error:j,InfoBox:C};exports.FormField=J;exports.FormFieldDescription=h;exports.FormFieldError=j;exports.FormFieldInfoBox=C;exports.FormFieldInput=b;exports.FormFieldLabel=m;exports.FormFieldRoot=f;
2
- //# sourceMappingURL=form-field-Ca3k84cH.cjs.js.map
1
+ "use strict";const t=require("react"),l=require("react/jsx-runtime"),E=require("@chakra-ui/react"),x=require("./Dialog-flHBRP1h.cjs.js"),P=require("@commercetools/nimbus-icons"),k=require("./useObjectRef-4v2MxSjQ.cjs.js"),w=require("./useField-lK6K_h1G.cjs.js"),F=require("./box-CWni3A32.cjs.js"),z=require("./icon-button-BJBGpUhs.cjs.js"),u=t.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),{withProvider:A,withContext:p}=E.createSlotRecipeContext({key:"formField"}),D=A("div","root"),V=p("div","label"),_=p("div","input"),H=p("div","description"),O=p("div","error"),G=p("div","popover"),f=function({ref:i,id:o,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d,children:v,...g}){const B=t.useRef(null),y=k.$df56164dff5785e2$export$4338b53315abf666(E.mergeRefs(B,i)),[e,S]=t.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),I=t.useMemo(()=>{const s={id:o,description:e.description,errorMessage:e.error};return e.label?s.label=e.label:(s["aria-label"]="empty-label",s["aria-labelledby"]="empty-label"),s},[o,e.description,e.error,e.label]),{labelProps:N,fieldProps:$,descriptionProps:M,errorMessageProps:L}=w.$2baaea4c71418dea$export$294aa081a6c6f55d(I);t.useEffect(()=>{S(s=>({...s,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}))},[r,c,a,d]);const R=t.useMemo(()=>({...$,isInvalid:r,isRequired:c,isDisabled:a,isReadOnly:d}),[$,r,c,a,d]),q=t.useMemo(()=>({context:e,setContext:S}),[e]);return l.jsx(u.Provider,{value:q,children:l.jsxs(D,{ref:y,...g,children:[e.label&&l.jsxs(V,{...e.labelSlotProps,children:[l.jsxs("label",{...N,children:[e.label,c&&l.jsx("sup",{"aria-hidden":"true",children:"*"})]}),e.info&&l.jsxs(x.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[l.jsx(F.Box,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:l.jsx(F.Box,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:l.jsx(z.IconButton,{"aria-label":"__MORE INFO",size:"2xs",colorPalette:"info",variant:"link",children:l.jsx(P.HelpOutline,{})})})}),l.jsx(x.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:l.jsx(G,{asChild:!0,children:l.jsx(x.$de32f1b87079253c$export$3ddf2d174ce01153,{children:l.jsx(F.Box,{p:"300",children:e.info})})})})]})]}),e.input&&l.jsx(_,{...e.inputSlotProps,children:t.Children.map(e.input,s=>t.isValidElement(s)?t.cloneElement(s,R):s)}),e.description&&l.jsx(H,{...M,...e.descriptionSlotProps,children:e.description}),r&&e.error&&l.jsxs(O,{...L,...e.errorSlotProps,children:[l.jsx(F.Box,{as:P.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100",alignSelf:"center"}),e.error]}),v]})})};f.displayName="FormField.Root";const m=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,label:n,labelSlotProps:i})),()=>{o(r=>({...r,label:null,labelSlotProps:void 0}))}),[n,o]),null};m.displayName="FormField.Label";const b=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>{o(r=>({...r,input:n,inputSlotProps:i}))},[n,o]),null};b.displayName="FormField.Input";const h=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,description:n,descriptionSlotProps:i})),()=>{o(r=>({...r,description:null,descriptionSlotProps:void 0}))}),[n,o]),null};h.displayName="FormField.Description";const j=({children:n,...i})=>{const{setContext:o}=t.useContext(u);return t.useEffect(()=>(o(r=>({...r,error:n,errorSlotProps:i})),()=>{o(r=>({...r,error:null,errorSlotProps:void 0}))}),[n,o]),null};j.displayName="FormField.Error";const C=({children:n})=>{const{setContext:i}=t.useContext(u);return t.useEffect(()=>(i(o=>({...o,info:n})),()=>{i(o=>({...o,info:null}))}),[n,i]),null};C.displayName="FormField.InfoBox";const J={Root:f,Label:m,Input:b,Description:h,Error:j,InfoBox:C};exports.FormField=J;exports.FormFieldDescription=h;exports.FormFieldError=j;exports.FormFieldInfoBox=C;exports.FormFieldInput=b;exports.FormFieldLabel=m;exports.FormFieldRoot=f;
2
+ //# sourceMappingURL=form-field-DD4nbalR.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-Ca3k84cH.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n colorPalette=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":"oVA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACr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,EAAUQ,CAAU,CAAC,EAElB,IACT,EAEAoC,EAAiB,YAAc,oBC3BxB,MAAMC,EAAY,CAqBvB,KAAMpD,EAsBN,MAAO0C,EAmBP,MAAOG,EAqBP,YAAaE,EAoBb,MAAOE,EAuBP,QAASE,CACX"}
1
+ {"version":3,"file":"form-field-DD4nbalR.cjs.js","sources":["../../src/components/form-field/components/form-field.context.tsx","../../src/components/form-field/form-field.slots.tsx","../../src/components/form-field/components/form-field.root.tsx","../../src/components/form-field/components/form-field.label.tsx","../../src/components/form-field/components/form-field.input.tsx","../../src/components/form-field/components/form-field.description.tsx","../../src/components/form-field/components/form-field.error.tsx","../../src/components/form-field/components/form-field.info-box.tsx","../../src/components/form-field/form-field.tsx"],"sourcesContent":["import { createContext, type ReactNode } from \"react\";\nimport type {\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldInputSlotProps,\n FormFieldLabelSlotProps,\n} from \"../form-field.types\";\n\nexport type FormFieldContextPayloadType = {\n label: ReactNode;\n labelSlotProps?: FormFieldLabelSlotProps;\n input: ReactNode;\n inputSlotProps?: FormFieldInputSlotProps;\n description: ReactNode;\n descriptionSlotProps?: FormFieldDescriptionSlotProps;\n error: ReactNode;\n errorSlotProps?: FormFieldErrorSlotProps;\n info: ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n};\n\nexport type FormFieldContextType = {\n context: FormFieldContextPayloadType;\n setContext: React.Dispatch<React.SetStateAction<FormFieldContextPayloadType>>;\n};\n\nexport const FormFieldContext = createContext<FormFieldContextType>({\n context: {\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n },\n setContext: () => {},\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n FormFieldRootSlotProps,\n FormFieldLabelSlotProps,\n FormFieldInputSlotProps,\n FormFieldDescriptionSlotProps,\n FormFieldErrorSlotProps,\n FormFieldPopoverSlotProps,\n} from \"./form-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"formField\",\n});\n\n// Root slot\nexport const FormFieldRootSlot = withProvider<\n HTMLDivElement,\n FormFieldRootSlotProps\n>(\"div\", \"root\");\n\n// Label Slot\nexport const FormFieldLabelSlot = withContext<\n HTMLDivElement,\n FormFieldLabelSlotProps\n>(\"div\", \"label\");\n\n// Input Slot\nexport const FormFieldInputSlot = withContext<\n HTMLDivElement,\n FormFieldInputSlotProps\n>(\"div\", \"input\");\n\n// Description Slot\nexport const FormFieldDescriptionSlot = withContext<\n HTMLDivElement,\n FormFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const FormFieldErrorSlot = withContext<\n HTMLDivElement,\n FormFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// Error Slot\nexport const FormFieldPopoverSlot = withContext<\n HTMLDivElement,\n FormFieldPopoverSlotProps\n>(\"div\", \"popover\");\n","import {\n Children,\n cloneElement,\n isValidElement,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from \"react\";\nimport type { FormFieldProps } from \"../form-field.types\";\nimport { useField, useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport {\n FormFieldContext,\n type FormFieldContextPayloadType,\n} from \"./form-field.context\";\nimport {\n FormFieldDescriptionSlot,\n FormFieldErrorSlot,\n FormFieldInputSlot,\n FormFieldLabelSlot,\n FormFieldPopoverSlot,\n FormFieldRootSlot,\n} from \"../form-field.slots\";\nimport { Dialog, DialogTrigger, Popover } from \"react-aria-components\";\nimport { Box, IconButton } from \"@/components\";\nimport { ErrorOutline, HelpOutline } from \"@commercetools/nimbus-icons\";\n\n/**\n * # FormField.Root\n *\n * displays miscellaneous inputs in a FormField context\n *\n * @supportsStyleProps\n */\nexport const FormFieldRoot = function FormFieldRoot({\n ref: forwardedRef,\n id,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n children,\n ...props\n}: FormFieldProps) {\n const localRef = useRef<HTMLDivElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [context, setContext] = useState<FormFieldContextPayloadType>({\n label: null,\n description: null,\n error: null,\n info: null,\n input: null,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n });\n\n const useFieldArgs: Parameters<typeof useField>[0] = useMemo(() => {\n const args: Parameters<typeof useField>[0] = {\n id,\n description: context.description,\n errorMessage: context.error,\n };\n\n if (context.label) {\n args.label = context.label;\n } else {\n // Context will always start out null, so we need to stub out some aria attributes\n // FIXME: This is a hack to get the form field to work, but it's not the best solution\n // FIXME: We should find a better way to handle this by redesigning the FormField component's structure\n args[\"aria-label\"] = \"empty-label\";\n args[\"aria-labelledby\"] = \"empty-label\";\n }\n\n return args;\n }, [id, context.description, context.error, context.label]);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField(useFieldArgs);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }));\n }, [isInvalid, isRequired, isDisabled, isReadOnly]);\n\n const inputProps = useMemo(\n () => ({\n ...fieldProps,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n }),\n [fieldProps, isInvalid, isRequired, isDisabled, isReadOnly]\n );\n\n const contextValue = useMemo(() => ({ context, setContext }), [context]);\n\n return (\n <FormFieldContext.Provider value={contextValue}>\n <FormFieldRootSlot ref={ref} {...props}>\n {context.label && (\n <FormFieldLabelSlot {...context.labelSlotProps}>\n <label {...labelProps}>\n {context.label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </label>\n {context.info && (\n <DialogTrigger>\n <Box\n as=\"span\"\n display=\"inline-block\"\n position=\"relative\"\n width=\"1ch\"\n height=\"1ch\"\n ml=\"200\"\n >\n <Box\n as=\"span\"\n display=\"inline-flex\"\n position=\"absolute\"\n top=\"50%\"\n right=\"50%\"\n transform=\"translate(50%, -50%)\"\n >\n <IconButton\n aria-label=\"__MORE INFO\"\n size=\"2xs\"\n colorPalette=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n </Box>\n </Box>\n <Popover>\n <FormFieldPopoverSlot asChild>\n <Dialog>\n <Box p=\"300\">{context.info}</Box>\n </Dialog>\n </FormFieldPopoverSlot>\n </Popover>\n </DialogTrigger>\n )}\n </FormFieldLabelSlot>\n )}\n {context.input && (\n <FormFieldInputSlot {...context.inputSlotProps}>\n {Children.map(context.input, (child) => {\n // Important: Check if the child is a valid React element before cloning.\n if (isValidElement(child)) {\n return cloneElement(child, inputProps);\n }\n // If it's not a valid element (e.g., text node, null, undefined), return it as is.\n return child;\n })}\n </FormFieldInputSlot>\n )}\n {context.description && (\n <FormFieldDescriptionSlot\n {...descriptionProps}\n {...context.descriptionSlotProps}\n >\n {context.description}\n </FormFieldDescriptionSlot>\n )}\n {isInvalid && context.error && (\n <FormFieldErrorSlot\n {...errorMessageProps}\n {...context.errorSlotProps}\n >\n <Box\n as={ErrorOutline}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n alignSelf=\"center\"\n />\n {context.error}\n </FormFieldErrorSlot>\n )}\n {children}\n </FormFieldRootSlot>\n </FormFieldContext.Provider>\n );\n};\n\nFormFieldRoot.displayName = \"FormField.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldLabelSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Label - The label element for the form field\n *\n * @supportsStyleProps\n */\n// TODO: should this be wrapped in react-aria's `LabelContext` provider?, e.g. https://react-spectrum.adobe.com/react-aria/TextField.html#custom-children\nexport const FormFieldLabel = ({\n children,\n ...labelSlotProps\n}: FormFieldLabelSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n label: children,\n labelSlotProps,\n }));\n\n // Cleanup: clear label when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n label: null,\n labelSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldLabel.displayName = \"FormField.Label\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldInputSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Input - The input wrapper element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInput = ({\n children,\n ...inputSlotProps\n}: FormFieldInputSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n input: children,\n inputSlotProps,\n }));\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInput.displayName = \"FormField.Input\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldDescriptionSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Description - The description element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldDescription = ({\n children,\n ...descriptionSlotProps\n}: FormFieldDescriptionSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n description: children,\n descriptionSlotProps,\n }));\n\n // Cleanup: clear description when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n description: null,\n descriptionSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldDescription.displayName = \"FormField.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\nimport type { FormFieldErrorSlotProps } from \"../form-field.types\";\n\n/**\n * FormField.Error - The error message element for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldError = ({\n children,\n ...errorSlotProps\n}: FormFieldErrorSlotProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n error: children,\n errorSlotProps,\n }));\n\n // Cleanup: clear error when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n error: null,\n errorSlotProps: undefined,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldError.displayName = \"FormField.Error\";\n","import { useContext, useEffect, type ReactNode } from \"react\";\nimport { FormFieldContext } from \"./form-field.context\";\n\ntype FormFieldInfoBoxProps = {\n /**\n * The content to display in the InfoBox\n */\n children: ReactNode;\n};\n\n/**\n * FormField.InfoBox - The info box popover content for the form field\n *\n * @supportsStyleProps\n */\nexport const FormFieldInfoBox = ({ children }: FormFieldInfoBoxProps) => {\n const { setContext } = useContext(FormFieldContext);\n\n useEffect(() => {\n setContext((prevContext) => ({\n ...prevContext,\n info: children,\n }));\n\n // Cleanup: clear info when component unmounts\n return () => {\n setContext((prevContext) => ({\n ...prevContext,\n info: null,\n }));\n };\n }, [children, setContext]);\n\n return null;\n};\n\nFormFieldInfoBox.displayName = \"FormField.InfoBox\";\n","import {\n FormFieldRoot,\n FormFieldLabel,\n FormFieldInput,\n FormFieldDescription,\n FormFieldError,\n FormFieldInfoBox,\n} from \"./components\";\n\nexport const FormField = {\n /**\n * # FormField.Root\n *\n * The root container for the form field that provides context and state management\n * for all child components. Handles React Aria integration for accessibility,\n * manages field state (required, invalid, disabled, readonly), and coordinates\n * rendering of label, input, description, and error elements.\n *\n * @example\n * ```tsx\n * <FormField.Root isRequired isInvalid>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>Enter your username</FormField.Description>\n * <FormField.Error>Username is required</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Root: FormFieldRoot,\n\n /**\n * # FormField.Label\n *\n * The label element for the form field. Automatically associates with the input\n * via React Aria and displays a required indicator when the field is required.\n * Supports an optional info box trigger for additional field information.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Email Address</FormField.Label>\n * <FormField.InfoBox>\n * Your email will be used for account notifications\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Label: FormFieldLabel,\n\n /**\n * # FormField.Input\n *\n * The input wrapper element that receives and displays the actual input component.\n * Automatically clones children and passes accessibility props, validation state,\n * and field attributes from React Aria.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Password</FormField.Label>\n * <FormField.Input>\n * <PasswordInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n Input: FormFieldInput,\n\n /**\n * # FormField.Description\n *\n * The description element that provides helpful information about the field.\n * Automatically associates with the input via `aria-describedby` for screen readers.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>Username</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Description>\n * Must be 3-20 characters, letters and numbers only\n * </FormField.Description>\n * </FormField.Root>\n * ```\n */\n Description: FormFieldDescription,\n\n /**\n * # FormField.Error\n *\n * The error message element that displays validation errors. Only visible when\n * the field is invalid. Automatically associates with the input via\n * `aria-errormessage` and includes an error icon.\n *\n * @example\n * ```tsx\n * <FormField.Root isInvalid>\n * <FormField.Label>Email</FormField.Label>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * <FormField.Error>Please enter a valid email address</FormField.Error>\n * </FormField.Root>\n * ```\n */\n Error: FormFieldError,\n\n /**\n * # FormField.InfoBox\n *\n * The info box content that appears in a popover when the help icon next to\n * the label is clicked. Use for additional context or instructions that don't\n * need to be visible by default.\n *\n * @example\n * ```tsx\n * <FormField.Root>\n * <FormField.Label>API Key</FormField.Label>\n * <FormField.InfoBox>\n * Your API key can be found in your account settings.\n * Keep it secure and never share it publicly.\n * </FormField.InfoBox>\n * <FormField.Input>\n * <TextInput />\n * </FormField.Input>\n * </FormField.Root>\n * ```\n */\n InfoBox: FormFieldInfoBox,\n};\n\nexport {\n FormFieldRoot as _FormFieldRoot,\n FormFieldLabel as _FormFieldLabel,\n FormFieldInput as _FormFieldInput,\n FormFieldDescription as _FormFieldDescription,\n FormFieldError as _FormFieldError,\n FormFieldInfoBox as _FormFieldInfoBox,\n};\n"],"names":["FormFieldContext","createContext","withProvider","withContext","createSlotRecipeContext","FormFieldRootSlot","FormFieldLabelSlot","FormFieldInputSlot","FormFieldDescriptionSlot","FormFieldErrorSlot","FormFieldPopoverSlot","FormFieldRoot","forwardedRef","id","isInvalid","isRequired","isDisabled","isReadOnly","children","props","localRef","useRef","ref","useObjectRef","mergeRefs","context","setContext","useState","useFieldArgs","useMemo","args","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","useEffect","prevContext","inputProps","contextValue","jsx","jsxs","DialogTrigger","Box","IconButton","HelpOutline","Popover","Dialog","Children","child","isValidElement","cloneElement","ErrorOutline","FormFieldLabel","labelSlotProps","useContext","FormFieldInput","inputSlotProps","FormFieldDescription","descriptionSlotProps","FormFieldError","errorSlotProps","FormFieldInfoBox","FormField"],"mappings":"oVA6BaA,EAAmBC,EAAAA,cAAoC,CAClE,QAAS,CACP,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,IAAA,EAET,WAAY,IAAM,CAAC,CACrB,CAAC,EC5BK,CAAE,aAAAC,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,WACP,CAAC,EAGYC,EAAoBH,EAG/B,MAAO,MAAM,EAGFI,EAAqBH,EAGhC,MAAO,OAAO,EAGHI,EAAqBJ,EAGhC,MAAO,OAAO,EAGHK,EAA2BL,EAGtC,MAAO,aAAa,EAGTM,EAAqBN,EAGhC,MAAO,OAAO,EAGHO,EAAuBP,EAGlC,MAAO,SAAS,ECbLQ,EAAgB,SAAuB,CAClD,IAAKC,EACL,GAAAC,EACA,UAAAC,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,MAAMC,EAAWC,EAAAA,OAAuB,IAAI,EACtCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUR,CAAY,CAAC,EACpD,CAACa,EAASC,CAAU,EAAIC,WAAsC,CAClE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C,CAC7B,SAAA1C,EACA,GAAG2C,CACL,IAA+B,CAC7B,KAAM,CAAE,WAAAnC,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAOnB,EACP,eAAA2C,CAAA,EACA,EAGK,IAAM,CACXnC,EAAYW,IAAiB,CAC3B,GAAGA,EACH,MAAO,KACP,eAAgB,MAAA,EAChB,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,EAEAkC,EAAe,YAAc,kBCpBtB,MAAME,EAAmB,CAAC,CAAE,SAAA5C,KAAsC,CACvE,KAAM,CAAE,WAAAQ,CAAA,EAAe6B,EAAAA,WAAWvD,CAAgB,EAElDoC,OAAAA,EAAAA,UAAU,KACRV,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAMnB,CAAA,EACN,EAGK,IAAM,CACXQ,EAAYW,IAAiB,CAC3B,GAAGA,EACH,KAAM,IAAA,EACN,CACJ,GACC,CAACnB,EAAUQ,CAAU,CAAC,EAElB,IACT,EAEAoC,EAAiB,YAAc,oBC3BxB,MAAMC,EAAY,CAqBvB,KAAMpD,EAsBN,MAAO0C,EAmBP,MAAOG,EAqBP,YAAaE,EAoBb,MAAOE,EAuBP,QAASE,CACX"}
@@ -1,4 +1,4 @@
1
- import { $ as n } from "./scrollIntoView-B7D07fJk.es.js";
1
+ import { $ as n } from "./scrollIntoView-CQMm8-SR.es.js";
2
2
  function c(l, t) {
3
3
  let e = l;
4
4
  for (n(e, t) && (e = e.parentElement); e && !n(e, t); ) e = e.parentElement;
@@ -7,4 +7,4 @@ function c(l, t) {
7
7
  export {
8
8
  c as $
9
9
  };
10
- //# sourceMappingURL=getScrollParent-MZgwmCKW.es.js.map
10
+ //# sourceMappingURL=getScrollParent-DlqhSzBC.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getScrollParent-MZgwmCKW.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/utils/dist/getScrollParent.mjs"],"sourcesContent":["import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\n\n/*\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 */ \nfunction $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {\n let scrollableNode = node;\n if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;\n while(scrollableNode && !(0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;\n return scrollableNode || document.scrollingElement || document.documentElement;\n}\n\n\nexport {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};\n//# sourceMappingURL=getScrollParent.module.js.map\n"],"names":["$62d8ded9296f3872$export$cfa2225e87938781","node","checkForOverflow","scrollableNode","$cc38e7bd3fc7b213$export$2bb74740c4e19def"],"mappings":";AAaA,SAASA,EAA0CC,GAAMC,GAAkB;AACvE,MAAIC,IAAiBF;AAErB,OADQG,EAA2CD,GAAgBD,CAAgB,MAAGC,IAAiBA,EAAe,gBAChHA,KAAkB,CAAKC,EAA2CD,GAAgBD,CAAgB,IAAE,CAAAC,IAAiBA,EAAe;AAC1I,SAAOA,KAAkB,SAAS,oBAAoB,SAAS;AACnE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getScrollParent-DlqhSzBC.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/utils/dist/getScrollParent.mjs"],"sourcesContent":["import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\n\n/*\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 */ \nfunction $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {\n let scrollableNode = node;\n if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;\n while(scrollableNode && !(0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;\n return scrollableNode || document.scrollingElement || document.documentElement;\n}\n\n\nexport {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};\n//# sourceMappingURL=getScrollParent.module.js.map\n"],"names":["$62d8ded9296f3872$export$cfa2225e87938781","node","checkForOverflow","scrollableNode","$cc38e7bd3fc7b213$export$2bb74740c4e19def"],"mappings":";AAaA,SAASA,EAA0CC,GAAMC,GAAkB;AACvE,MAAIC,IAAiBF;AAErB,OADQG,EAA2CD,GAAgBD,CAAgB,MAAGC,IAAiBA,EAAe,gBAChHA,KAAkB,CAAKC,EAA2CD,GAAgBD,CAAgB,IAAE,CAAAC,IAAiBA,EAAe;AAC1I,SAAOA,KAAkB,SAAS,oBAAoB,SAAS;AACnE;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { createRecipeContext as c } from "@chakra-ui/react";
3
- import { $ as n } from "./Group-BQc9LuMT.es.js";
3
+ import { $ as n } from "./Group-C9jsb9_m.es.js";
4
4
  const { withContext: s } = /* @__PURE__ */ c({
5
5
  key: "group"
6
6
  }), f = /* @__PURE__ */ s(n), d = (o) => {
@@ -10,4 +10,4 @@ const { withContext: s } = /* @__PURE__ */ c({
10
10
  export {
11
11
  d as G
12
12
  };
13
- //# sourceMappingURL=group-CCBgdph2.es.js.map
13
+ //# sourceMappingURL=group-jGsHh1w7.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"group-CCBgdph2.es.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { GroupRootSlotProps } from \"./group.types\";\n\nconst { withContext } = createRecipeContext({\n key: \"group\",\n});\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: SlotComponent<typeof RaGroup, GroupRootSlotProps> =\n withContext<typeof RaGroup, GroupRootSlotProps>(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","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":";;;AAKA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,KAAK;AACP,CAAC,GAMYC,IACX,gBAAAF,EAAgDG,CAAO,GCX5CC,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-jGsHh1w7.es.js","sources":["../../src/components/group/group.slots.tsx","../../src/components/group/group.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport { Group as RaGroup } from \"react-aria-components\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { GroupRootSlotProps } from \"./group.types\";\n\nconst { withContext } = createRecipeContext({\n key: \"group\",\n});\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: SlotComponent<typeof RaGroup, GroupRootSlotProps> =\n withContext<typeof RaGroup, GroupRootSlotProps>(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","GroupSlot","RaGroup","Group","props","ref","children","rest","jsx"],"mappings":";;;AAKA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,KAAK;AACP,CAAC,GAMYC,IACX,gBAAAF,EAAgDG,CAAO,GCX5CC,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,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { Heading as s } from "@chakra-ui/react/heading";
3
3
  import { $ as f } from "./RSPContexts-DLgb84PF.es.js";
4
- import { $ as i } from "./utils-B6pV5ewr.es.js";
4
+ import { $ as i } from "./utils-9vu7GUaz.es.js";
5
5
  const d = ({ ref: e, ...o }) => {
6
6
  const [a, r] = i(
7
7
  o,
@@ -22,4 +22,4 @@ d.displayName = "Heading";
22
22
  export {
23
23
  d as H
24
24
  };
25
- //# sourceMappingURL=heading-nfjoR4vL.es.js.map
25
+ //# sourceMappingURL=heading-CwsT9zp_.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading-nfjoR4vL.es.js","sources":["../../src/components/heading/heading.tsx"],"sourcesContent":["import {\n Heading as ChakraHeading,\n type HeadingProps as ChakraHeadingProps,\n} from \"@chakra-ui/react/heading\";\nimport { HeadingContext, useContextProps } from \"react-aria-components\";\n\ntype HeadingRecipeVariantProps = {\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n};\n\n/**\n * Props for the Heading component.\n *\n * @property {React.Ref<HTMLHeadingElement>} [ref] - Ref to the underlying heading element.\n * @property {string | null | undefined} [slot] - Slot attribute for custom element slotting.\n */\nexport type HeadingProps = HeadingRecipeVariantProps &\n Omit<ChakraHeadingProps, \"slot\"> & {\n /**\n * Ref to the underlying heading element.\n */\n ref?: React.Ref<HTMLHeadingElement>;\n /**\n * Slot attribute for custom element slotting.\n */\n slot?: string | null | undefined;\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n };\n\n/**\n * # Heading\n *\n * renders a heading\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/heading}\n */\nexport const Heading = ({ ref: forwardedRef, ...props }: HeadingProps) => {\n const [contextProps, ref] = useContextProps(\n props,\n forwardedRef ?? null,\n HeadingContext\n );\n\n return (\n <ChakraHeading\n ref={ref as React.Ref<HTMLHeadingElement>}\n {...contextProps}\n as={props.as || contextProps.as}\n slot={props.slot ?? undefined}\n />\n );\n};\n\nHeading.displayName = \"Heading\";\n"],"names":["Heading","forwardedRef","props","contextProps","ref","useContextProps","HeadingContext","jsx","ChakraHeading"],"mappings":";;;;AAkEO,MAAMA,IAAU,CAAC,EAAE,KAAKC,GAAc,GAAGC,QAA0B;AACxE,QAAM,CAACC,GAAcC,CAAG,IAAIC;AAAAA,IAC1BH;AAAA,IACAD,KAAgB;AAAA,IAChBK;AAAAA,EAAA;AAGF,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAAJ;AAAA,MACC,GAAGD;AAAA,MACJ,IAAID,EAAM,MAAMC,EAAa;AAAA,MAC7B,MAAMD,EAAM,QAAQ;AAAA,IAAA;AAAA,EAAA;AAG1B;AAEAF,EAAQ,cAAc;"}
1
+ {"version":3,"file":"heading-CwsT9zp_.es.js","sources":["../../src/components/heading/heading.tsx"],"sourcesContent":["import {\n Heading as ChakraHeading,\n type HeadingProps as ChakraHeadingProps,\n} from \"@chakra-ui/react/heading\";\nimport { HeadingContext, useContextProps } from \"react-aria-components\";\n\ntype HeadingRecipeVariantProps = {\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n};\n\n/**\n * Props for the Heading component.\n *\n * @property {React.Ref<HTMLHeadingElement>} [ref] - Ref to the underlying heading element.\n * @property {string | null | undefined} [slot] - Slot attribute for custom element slotting.\n */\nexport type HeadingProps = HeadingRecipeVariantProps &\n Omit<ChakraHeadingProps, \"slot\"> & {\n /**\n * Ref to the underlying heading element.\n */\n ref?: React.Ref<HTMLHeadingElement>;\n /**\n * Slot attribute for custom element slotting.\n */\n slot?: string | null | undefined;\n /**\n * Size variant\n * @default \"xl\"\n */\n size?:\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\"\n | \"7xl\";\n };\n\n/**\n * # Heading\n *\n * renders a heading\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/heading}\n */\nexport const Heading = ({ ref: forwardedRef, ...props }: HeadingProps) => {\n const [contextProps, ref] = useContextProps(\n props,\n forwardedRef ?? null,\n HeadingContext\n );\n\n return (\n <ChakraHeading\n ref={ref as React.Ref<HTMLHeadingElement>}\n {...contextProps}\n as={props.as || contextProps.as}\n slot={props.slot ?? undefined}\n />\n );\n};\n\nHeading.displayName = \"Heading\";\n"],"names":["Heading","forwardedRef","props","contextProps","ref","useContextProps","HeadingContext","jsx","ChakraHeading"],"mappings":";;;;AAkEO,MAAMA,IAAU,CAAC,EAAE,KAAKC,GAAc,GAAGC,QAA0B;AACxE,QAAM,CAACC,GAAcC,CAAG,IAAIC;AAAAA,IAC1BH;AAAA,IACAD,KAAgB;AAAA,IAChBK;AAAAA,EAAA;AAGF,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAAJ;AAAA,MACC,GAAGD;AAAA,MACJ,IAAID,EAAM,MAAMC,EAAa;AAAA,MAC7B,MAAMD,EAAM,QAAQ;AAAA,IAAA;AAAA,EAAA;AAG1B;AAEAF,EAAQ,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-4v2MxSjQ.cjs.js"),d=require("./button-DYT63YaG.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=a.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(d.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
2
- //# sourceMappingURL=icon-button-LnGKZj9k.cjs.js.map
1
+ "use strict";const u=require("react/jsx-runtime"),f=require("react"),i=require("@chakra-ui/react"),a=require("./useObjectRef-4v2MxSjQ.cjs.js"),d=require("./button-DM5U4Up3.cjs.js"),e=t=>{const{children:r,ref:n,...o}=t,s=f.useRef(null),c=a.$df56164dff5785e2$export$4338b53315abf666(i.mergeRefs(s,n));return u.jsx(d.Button,{px:0,py:0,...o,ref:c,children:r})};e.displayName="IconButton";exports.IconButton=e;
2
+ //# sourceMappingURL=icon-button-BJBGpUhs.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-LnGKZj9k.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-BJBGpUhs.cjs.js","sources":["../../src/components/icon-button/icon-button.tsx"],"sourcesContent":["import { useRef } from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport type { IconButtonProps } from \"./icon-button.types\";\nimport { Button } from \"@/components\";\n\n/**\n * # IconButton\n *\n * displays a button with an icon only as child\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/iconbutton}\n */\nexport const IconButton = (props: IconButtonProps) => {\n const { children, ref: forwardedRef, ...restProps } = props;\n\n // Create a local ref and merge with forwarded ref\n const localRef = useRef<HTMLButtonElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return (\n <Button px={0} py={0} {...restProps} ref={ref}>\n {children}\n </Button>\n );\n};\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","props","children","forwardedRef","restProps","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","Button"],"mappings":"qLAaaA,EAAcC,GAA2B,CACpD,KAAM,CAAE,SAAAC,EAAU,IAAKC,EAAc,GAAGC,GAAcH,EAGhDI,EAAWC,EAAAA,OAA0B,IAAI,EACzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUF,CAAY,CAAC,EAE1D,OACEO,MAACC,EAAAA,QAAO,GAAI,EAAG,GAAI,EAAI,GAAGP,EAAW,IAAAG,EAClC,SAAAL,CAAA,CACH,CAEJ,EAEAF,EAAW,YAAc"}
@@ -2,7 +2,7 @@ import { jsx as m } from "react/jsx-runtime";
2
2
  import { useRef as n } from "react";
3
3
  import { mergeRefs as p } from "@chakra-ui/react";
4
4
  import { $ as a } from "./useObjectRef-CaJ5pgjX.es.js";
5
- import { B as c } from "./button-WbcOHikD.es.js";
5
+ import { B as c } from "./button-BzBpPYqB.es.js";
6
6
  const i = (o) => {
7
7
  const { children: r, ref: t, ...e } = o, f = n(null), s = a(p(f, t));
8
8
  return /* @__PURE__ */ m(c, { px: 0, py: 0, ...e, ref: s, children: r });
@@ -11,4 +11,4 @@ i.displayName = "IconButton";
11
11
  export {
12
12
  i as I
13
13
  };
14
- //# sourceMappingURL=icon-button-1gt1BCJ2.es.js.map
14
+ //# sourceMappingURL=icon-button-O_Rni1iK.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-1gt1BCJ2.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-O_Rni1iK.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,2 +1,2 @@
1
- "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-DqFFGgPy.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-BArvrcyQ.cjs.js.map
1
+ "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-BP1Z93Un.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-Bv6aXjsZ.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-BArvrcyQ.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
1
+ {"version":3,"file":"icon-toggle-button-Bv6aXjsZ.cjs.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":"+FAUaA,EAAmB,CAAC,CAC/B,aAAcC,EACd,SAAAC,EACA,IAAAC,EACA,GAAGC,CACL,IAEIC,EAAAA,IAACC,EAAAA,aAAA,CAAa,IAAAH,EAAU,aAAYF,EAAW,GAAI,EAAG,GAAI,EAAI,GAAGG,EAC9D,SAAAF,CAAA,CACH,EAIJF,EAAiB,YAAc"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { T as l } from "./toggle-button-DnznFtWJ.es.js";
2
+ import { T as l } from "./toggle-button-Bjwm0czy.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-C4ISptbh.es.js.map
13
+ //# sourceMappingURL=icon-toggle-button-oFXSEICv.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-C4ISptbh.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}
1
+ {"version":3,"file":"icon-toggle-button-oFXSEICv.es.js","sources":["../../src/components/icon-toggle-button/icon-toggle-button.tsx"],"sourcesContent":["import { ToggleButton } from \"@/components/toggle-button/toggle-button\";\nimport type { IconToggleButtonProps } from \"./icon-toggle-button.types\";\n\n/**\n * # IconToggleButton\n * ============================================================\n * A toggle button with only an icon as child. It is based\n * on the regular `ToggleButton` component, but with a few adjustments.\n *\n */\nexport const IconToggleButton = ({\n \"aria-label\": ariaLabel,\n children,\n ref,\n ...props\n}: IconToggleButtonProps) => {\n return (\n <ToggleButton ref={ref} aria-label={ariaLabel} px={0} py={0} {...props}>\n {children}\n </ToggleButton>\n );\n};\n\nIconToggleButton.displayName = \"IconToggleButton\";\n"],"names":["IconToggleButton","ariaLabel","children","ref","props","jsx","ToggleButton"],"mappings":";;AAUO,MAAMA,IAAmB,CAAC;AAAA,EAC/B,cAAcC;AAAA,EACd,UAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACL,MAEI,gBAAAC,EAACC,GAAA,EAAa,KAAAH,GAAU,cAAYF,GAAW,IAAI,GAAG,IAAI,GAAI,GAAGG,GAC9D,UAAAF,EAAA,CACH;AAIJF,EAAiB,cAAc;"}