@commercetools/nimbus 0.0.0-canary-20251119195710 → 0.0.0-canary-20251119201319

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 (307) hide show
  1. package/dist/chunks/{accordion-Dgumal3x.es.js → accordion-CDPW4YqE.es.js} +2 -2
  2. package/dist/chunks/{accordion-Dgumal3x.es.js.map → accordion-CDPW4YqE.es.js.map} +1 -1
  3. package/dist/chunks/{accordion-BMkxjDH8.cjs.js → accordion-CHXTjjZb.cjs.js} +2 -2
  4. package/dist/chunks/{accordion-BMkxjDH8.cjs.js.map → accordion-CHXTjjZb.cjs.js.map} +1 -1
  5. package/dist/chunks/{accordion.content-bp1qgxpB.cjs.js → accordion.content-DVg8gjOb.cjs.js} +2 -2
  6. package/dist/chunks/{accordion.content-bp1qgxpB.cjs.js.map → accordion.content-DVg8gjOb.cjs.js.map} +1 -1
  7. package/dist/chunks/{accordion.content-BBfehrgZ.es.js → accordion.content-y0RnNj9Z.es.js} +2 -2
  8. package/dist/chunks/{accordion.content-BBfehrgZ.es.js.map → accordion.content-y0RnNj9Z.es.js.map} +1 -1
  9. package/dist/chunks/alert-Bcd-RjP2.cjs.js +2 -0
  10. package/dist/chunks/alert-Bcd-RjP2.cjs.js.map +1 -0
  11. package/dist/chunks/alert-DD1hd-Va.es.js +158 -0
  12. package/dist/chunks/alert-DD1hd-Va.es.js.map +1 -0
  13. package/dist/chunks/{button-B4P8Ur2S.cjs.js → button-DYT63YaG.cjs.js} +2 -2
  14. package/dist/chunks/{button-B4P8Ur2S.cjs.js.map → button-DYT63YaG.cjs.js.map} +1 -1
  15. package/dist/chunks/{button-DNnMesnW.es.js → button-WbcOHikD.es.js} +2 -2
  16. package/dist/chunks/{button-DNnMesnW.es.js.map → button-WbcOHikD.es.js.map} +1 -1
  17. package/dist/chunks/{calendar-vjx6_S-P.es.js → calendar-CrDQ41NO.es.js} +3 -3
  18. package/dist/chunks/{calendar-vjx6_S-P.es.js.map → calendar-CrDQ41NO.es.js.map} +1 -1
  19. package/dist/chunks/{calendar-DtHsJkjK.cjs.js → calendar-g3VfLnzB.cjs.js} +2 -2
  20. package/dist/chunks/{calendar-DtHsJkjK.cjs.js.map → calendar-g3VfLnzB.cjs.js.map} +1 -1
  21. package/dist/chunks/{card-CwXif_Sl.es.js → card-CYYspg3V.es.js} +2 -2
  22. package/dist/chunks/{card-CwXif_Sl.es.js.map → card-CYYspg3V.es.js.map} +1 -1
  23. package/dist/chunks/{card-ewQyUS5H.cjs.js → card-CZoXttks.cjs.js} +2 -2
  24. package/dist/chunks/{card-ewQyUS5H.cjs.js.map → card-CZoXttks.cjs.js.map} +1 -1
  25. package/dist/chunks/{checkbox-CPmXEPZL.cjs.js → checkbox-BBOVsqdM.cjs.js} +2 -2
  26. package/dist/chunks/{checkbox-CPmXEPZL.cjs.js.map → checkbox-BBOVsqdM.cjs.js.map} +1 -1
  27. package/dist/chunks/{checkbox-N_ykJSJV.es.js → checkbox-CTtcL9PS.es.js} +2 -2
  28. package/dist/chunks/{checkbox-N_ykJSJV.es.js.map → checkbox-CTtcL9PS.es.js.map} +1 -1
  29. package/dist/chunks/{collapsible-motion-BDLpKW8q.es.js → collapsible-motion-Cs_MJ84K.es.js} +2 -2
  30. package/dist/chunks/{collapsible-motion-BDLpKW8q.es.js.map → collapsible-motion-Cs_MJ84K.es.js.map} +1 -1
  31. package/dist/chunks/{collapsible-motion-3bissPmv.cjs.js → collapsible-motion-JoeWhvf_.cjs.js} +2 -2
  32. package/dist/chunks/{collapsible-motion-3bissPmv.cjs.js.map → collapsible-motion-JoeWhvf_.cjs.js.map} +1 -1
  33. package/dist/chunks/{combobox-B-vm618h.cjs.js → combobox-BAOSfyZz.cjs.js} +2 -2
  34. package/dist/chunks/{combobox-B-vm618h.cjs.js.map → combobox-BAOSfyZz.cjs.js.map} +1 -1
  35. package/dist/chunks/{combobox-MBi6Qtoz.es.js → combobox-D-sXUVsS.es.js} +5 -5
  36. package/dist/chunks/{combobox-MBi6Qtoz.es.js.map → combobox-D-sXUVsS.es.js.map} +1 -1
  37. package/dist/chunks/{data-table-1IrX3AIs.es.js → data-table-VGdNqVuy.es.js} +12 -12
  38. package/dist/chunks/{data-table-1IrX3AIs.es.js.map → data-table-VGdNqVuy.es.js.map} +1 -1
  39. package/dist/chunks/{data-table-BNPcYz1W.cjs.js → data-table-q_xAC6Y4.cjs.js} +2 -2
  40. package/dist/chunks/{data-table-BNPcYz1W.cjs.js.map → data-table-q_xAC6Y4.cjs.js.map} +1 -1
  41. package/dist/chunks/{date-input-Dlumd921.es.js → date-input-B8MeBGZ1.es.js} +3 -3
  42. package/dist/chunks/{date-input-Dlumd921.es.js.map → date-input-B8MeBGZ1.es.js.map} +1 -1
  43. package/dist/chunks/{date-input-ojTPLGbm.cjs.js → date-input-CJ-2i6eH.cjs.js} +2 -2
  44. package/dist/chunks/{date-input-ojTPLGbm.cjs.js.map → date-input-CJ-2i6eH.cjs.js.map} +1 -1
  45. package/dist/chunks/{date-picker-Bh2vtQ_p.cjs.js → date-picker-Bx4kkIdC.cjs.js} +2 -2
  46. package/dist/chunks/{date-picker-Bh2vtQ_p.cjs.js.map → date-picker-Bx4kkIdC.cjs.js.map} +1 -1
  47. package/dist/chunks/{date-picker-BU35i_kc.es.js → date-picker-CRo_w6Jz.es.js} +7 -7
  48. package/dist/chunks/{date-picker-BU35i_kc.es.js.map → date-picker-CRo_w6Jz.es.js.map} +1 -1
  49. package/dist/chunks/{date-range-picker-BNOXoiXB.cjs.js → date-range-picker-BcY8cXPH.cjs.js} +2 -2
  50. package/dist/chunks/{date-range-picker-BNOXoiXB.cjs.js.map → date-range-picker-BcY8cXPH.cjs.js.map} +1 -1
  51. package/dist/chunks/{date-range-picker-CTHXfNFr.es.js → date-range-picker-CrFq736s.es.js} +7 -7
  52. package/dist/chunks/{date-range-picker-CTHXfNFr.es.js.map → date-range-picker-CrFq736s.es.js.map} +1 -1
  53. package/dist/chunks/{date-range-picker-field-j_qg0bHX.cjs.js → date-range-picker-field-BDCEC-kA.cjs.js} +2 -2
  54. package/dist/chunks/{date-range-picker-field-j_qg0bHX.cjs.js.map → date-range-picker-field-BDCEC-kA.cjs.js.map} +1 -1
  55. package/dist/chunks/{date-range-picker-field-DqeCSG-K.es.js → date-range-picker-field-L56QHJs-.es.js} +3 -3
  56. package/dist/chunks/{date-range-picker-field-DqeCSG-K.es.js.map → date-range-picker-field-L56QHJs-.es.js.map} +1 -1
  57. package/dist/chunks/{dialog-DJl77UzL.cjs.js → dialog-BHTOGgtN.cjs.js} +2 -2
  58. package/dist/chunks/{dialog-DJl77UzL.cjs.js.map → dialog-BHTOGgtN.cjs.js.map} +1 -1
  59. package/dist/chunks/{dialog-3NBQ0jW1.es.js → dialog-DGko_UBT.es.js} +3 -3
  60. package/dist/chunks/{dialog-3NBQ0jW1.es.js.map → dialog-DGko_UBT.es.js.map} +1 -1
  61. package/dist/chunks/{draggable-list-5cgsBAjP.cjs.js → draggable-list-BPM-ioyq.cjs.js} +2 -2
  62. package/dist/chunks/{draggable-list-5cgsBAjP.cjs.js.map → draggable-list-BPM-ioyq.cjs.js.map} +1 -1
  63. package/dist/chunks/{draggable-list-C7marUxx.es.js → draggable-list-Dk7BxgW-.es.js} +5 -5
  64. package/dist/chunks/{draggable-list-C7marUxx.es.js.map → draggable-list-Dk7BxgW-.es.js.map} +1 -1
  65. package/dist/chunks/{drawer-CtLkos4t.es.js → drawer-BUiIQ9L5.es.js} +4 -4
  66. package/dist/chunks/{drawer-CtLkos4t.es.js.map → drawer-BUiIQ9L5.es.js.map} +1 -1
  67. package/dist/chunks/{drawer-CgpIzrV0.cjs.js → drawer-DbQScPqa.cjs.js} +2 -2
  68. package/dist/chunks/{drawer-CgpIzrV0.cjs.js.map → drawer-DbQScPqa.cjs.js.map} +1 -1
  69. package/dist/chunks/{extract-style-props-Bmms_quC.es.js → extract-style-props-BvGKJ0ar.es.js} +2 -2
  70. package/dist/chunks/{extract-style-props-Bmms_quC.es.js.map → extract-style-props-BvGKJ0ar.es.js.map} +1 -1
  71. package/dist/chunks/{extract-style-props-KIxfRV-2.cjs.js → extract-style-props-CZMJJ-Ii.cjs.js} +2 -2
  72. package/dist/chunks/{extract-style-props-KIxfRV-2.cjs.js.map → extract-style-props-CZMJJ-Ii.cjs.js.map} +1 -1
  73. package/dist/chunks/{form-field-CsRv0AFz.es.js → form-field-CGjPf6rA.es.js} +2 -2
  74. package/dist/chunks/{form-field-CsRv0AFz.es.js.map → form-field-CGjPf6rA.es.js.map} +1 -1
  75. package/dist/chunks/{form-field-B3uQXnlC.cjs.js → form-field-CJHX6A4q.cjs.js} +2 -2
  76. package/dist/chunks/{form-field-B3uQXnlC.cjs.js.map → form-field-CJHX6A4q.cjs.js.map} +1 -1
  77. package/dist/chunks/{icon-button-DcBreh2S.es.js → icon-button-1gt1BCJ2.es.js} +2 -2
  78. package/dist/chunks/{icon-button-DcBreh2S.es.js.map → icon-button-1gt1BCJ2.es.js.map} +1 -1
  79. package/dist/chunks/{icon-button-BbLd8BSj.cjs.js → icon-button-LnGKZj9k.cjs.js} +2 -2
  80. package/dist/chunks/{icon-button-BbLd8BSj.cjs.js.map → icon-button-LnGKZj9k.cjs.js.map} +1 -1
  81. package/dist/chunks/{icon-toggle-button-DcdzHEIq.cjs.js → icon-toggle-button-BArvrcyQ.cjs.js} +2 -2
  82. package/dist/chunks/{icon-toggle-button-DcdzHEIq.cjs.js.map → icon-toggle-button-BArvrcyQ.cjs.js.map} +1 -1
  83. package/dist/chunks/{icon-toggle-button-B762TOKa.es.js → icon-toggle-button-C4ISptbh.es.js} +2 -2
  84. package/dist/chunks/{icon-toggle-button-B762TOKa.es.js.map → icon-toggle-button-C4ISptbh.es.js.map} +1 -1
  85. package/dist/chunks/{index-GtJPgmcq.es.js → index-BA58iOLX.es.js} +19 -4
  86. package/dist/chunks/index-BA58iOLX.es.js.map +1 -0
  87. package/dist/chunks/{index-D7AZ7gZk.cjs.js → index-LgrrgjIe.cjs.js} +4 -4
  88. package/dist/chunks/index-LgrrgjIe.cjs.js.map +1 -0
  89. package/dist/chunks/{localized-field-_LCs8Eqr.cjs.js → localized-field-Cb0fyOZF.cjs.js} +2 -2
  90. package/dist/chunks/{localized-field-_LCs8Eqr.cjs.js.map → localized-field-Cb0fyOZF.cjs.js.map} +1 -1
  91. package/dist/chunks/{localized-field-Bljs9CAV.es.js → localized-field-DFQ6Knzt.es.js} +8 -8
  92. package/dist/chunks/{localized-field-Bljs9CAV.es.js.map → localized-field-DFQ6Knzt.es.js.map} +1 -1
  93. package/dist/chunks/{menu-PCDXM-lN.cjs.js → menu-Ctsou8BQ.cjs.js} +2 -2
  94. package/dist/chunks/{menu-PCDXM-lN.cjs.js.map → menu-Ctsou8BQ.cjs.js.map} +1 -1
  95. package/dist/chunks/{menu-TmTFubBx.es.js → menu-hZacrl0C.es.js} +2 -2
  96. package/dist/chunks/{menu-TmTFubBx.es.js.map → menu-hZacrl0C.es.js.map} +1 -1
  97. package/dist/chunks/{money-input-BxlHQho5.es.js → money-input-BmRHEzuc.es.js} +5 -5
  98. package/dist/chunks/{money-input-BxlHQho5.es.js.map → money-input-BmRHEzuc.es.js.map} +1 -1
  99. package/dist/chunks/{money-input-D9_uQTfR.cjs.js → money-input-Dg8WwuK4.cjs.js} +2 -2
  100. package/dist/chunks/{money-input-D9_uQTfR.cjs.js.map → money-input-Dg8WwuK4.cjs.js.map} +1 -1
  101. package/dist/chunks/{money-input-field-hItU-TMS.cjs.js → money-input-field-Cj9jvBsE.cjs.js} +2 -2
  102. package/dist/chunks/{money-input-field-hItU-TMS.cjs.js.map → money-input-field-Cj9jvBsE.cjs.js.map} +1 -1
  103. package/dist/chunks/{money-input-field-Dny3Zs5t.es.js → money-input-field-Dec63VQv.es.js} +3 -3
  104. package/dist/chunks/{money-input-field-Dny3Zs5t.es.js.map → money-input-field-Dec63VQv.es.js.map} +1 -1
  105. package/dist/chunks/{multiline-text-input-D_Eobz0v.cjs.js → multiline-text-input-BsqrmqVM.cjs.js} +2 -2
  106. package/dist/chunks/{multiline-text-input-D_Eobz0v.cjs.js.map → multiline-text-input-BsqrmqVM.cjs.js.map} +1 -1
  107. package/dist/chunks/{multiline-text-input-BUcgL9JD.es.js → multiline-text-input-CjtXIsaQ.es.js} +3 -3
  108. package/dist/chunks/{multiline-text-input-BUcgL9JD.es.js.map → multiline-text-input-CjtXIsaQ.es.js.map} +1 -1
  109. package/dist/chunks/{nimbus-provider-BDZudEgV.cjs.js → nimbus-provider-DEVKU5vp.cjs.js} +2 -2
  110. package/dist/chunks/{nimbus-provider-BDZudEgV.cjs.js.map → nimbus-provider-DEVKU5vp.cjs.js.map} +1 -1
  111. package/dist/chunks/{nimbus-provider-qxlBdPaV.es.js → nimbus-provider-DnYwOsgB.es.js} +2 -2
  112. package/dist/chunks/{nimbus-provider-qxlBdPaV.es.js.map → nimbus-provider-DnYwOsgB.es.js.map} +1 -1
  113. package/dist/chunks/{number-input-tW2sZBll.cjs.js → number-input-CRk-3ae8.cjs.js} +2 -2
  114. package/dist/chunks/{number-input-tW2sZBll.cjs.js.map → number-input-CRk-3ae8.cjs.js.map} +1 -1
  115. package/dist/chunks/{number-input-QKQNMdjA.es.js → number-input-Dtu6vHfl.es.js} +3 -3
  116. package/dist/chunks/{number-input-QKQNMdjA.es.js.map → number-input-Dtu6vHfl.es.js.map} +1 -1
  117. package/dist/chunks/{number-input-field-_ZFC-lsy.cjs.js → number-input-field-BgCaRtnS.cjs.js} +2 -2
  118. package/dist/chunks/{number-input-field-_ZFC-lsy.cjs.js.map → number-input-field-BgCaRtnS.cjs.js.map} +1 -1
  119. package/dist/chunks/{number-input-field-C3q6JG4C.es.js → number-input-field-D7aLGfzZ.es.js} +3 -3
  120. package/dist/chunks/{number-input-field-C3q6JG4C.es.js.map → number-input-field-D7aLGfzZ.es.js.map} +1 -1
  121. package/dist/chunks/{pagination-EhqWj85Q.cjs.js → pagination-CQ0roDut.cjs.js} +2 -2
  122. package/dist/chunks/{pagination-EhqWj85Q.cjs.js.map → pagination-CQ0roDut.cjs.js.map} +1 -1
  123. package/dist/chunks/{pagination-CdGUZ4m6.es.js → pagination-DPEQK0Xq.es.js} +4 -4
  124. package/dist/chunks/{pagination-CdGUZ4m6.es.js.map → pagination-DPEQK0Xq.es.js.map} +1 -1
  125. package/dist/chunks/{password-input-C3As0KmX.cjs.js → password-input-BDr6w2c9.cjs.js} +2 -2
  126. package/dist/chunks/{password-input-C3As0KmX.cjs.js.map → password-input-BDr6w2c9.cjs.js.map} +1 -1
  127. package/dist/chunks/{password-input-D0N_UVhB.es.js → password-input-BWdVEHir.es.js} +3 -3
  128. package/dist/chunks/{password-input-D0N_UVhB.es.js.map → password-input-BWdVEHir.es.js.map} +1 -1
  129. package/dist/chunks/{progress-bar-BY6e1uWv.cjs.js → progress-bar-B6NmD044.cjs.js} +2 -2
  130. package/dist/chunks/{progress-bar-BY6e1uWv.cjs.js.map → progress-bar-B6NmD044.cjs.js.map} +1 -1
  131. package/dist/chunks/{progress-bar-DknuaSHj.es.js → progress-bar-CLTFIeJQ.es.js} +2 -2
  132. package/dist/chunks/{progress-bar-DknuaSHj.es.js.map → progress-bar-CLTFIeJQ.es.js.map} +1 -1
  133. package/dist/chunks/{radio-input-CrEOnYa0.es.js → radio-input-B1krp3Lh.es.js} +3 -3
  134. package/dist/chunks/{radio-input-CrEOnYa0.es.js.map → radio-input-B1krp3Lh.es.js.map} +1 -1
  135. package/dist/chunks/{radio-input-7Ao6_x7k.cjs.js → radio-input-CZH0xqSP.cjs.js} +2 -2
  136. package/dist/chunks/{radio-input-7Ao6_x7k.cjs.js.map → radio-input-CZH0xqSP.cjs.js.map} +1 -1
  137. package/dist/chunks/{range-calendar-fvekZzen.es.js → range-calendar-Q0QKtRQY.es.js} +4 -4
  138. package/dist/chunks/{range-calendar-fvekZzen.es.js.map → range-calendar-Q0QKtRQY.es.js.map} +1 -1
  139. package/dist/chunks/{range-calendar-Dt6fGwHE.cjs.js → range-calendar-_a9mYU8O.cjs.js} +2 -2
  140. package/dist/chunks/{range-calendar-Dt6fGwHE.cjs.js.map → range-calendar-_a9mYU8O.cjs.js.map} +1 -1
  141. package/dist/chunks/{rich-text-input-_JzfQXxk.es.js → rich-text-input-DAc5Qrg9.es.js} +8 -8
  142. package/dist/chunks/{rich-text-input-_JzfQXxk.es.js.map → rich-text-input-DAc5Qrg9.es.js.map} +1 -1
  143. package/dist/chunks/{rich-text-input-BUU-KkK7.cjs.js → rich-text-input-uQdozf3f.cjs.js} +2 -2
  144. package/dist/chunks/{rich-text-input-BUU-KkK7.cjs.js.map → rich-text-input-uQdozf3f.cjs.js.map} +1 -1
  145. package/dist/chunks/{scoped-search-input-vrva_y5R.cjs.js → scoped-search-input-Bjm-BowW.cjs.js} +2 -2
  146. package/dist/chunks/{scoped-search-input-vrva_y5R.cjs.js.map → scoped-search-input-Bjm-BowW.cjs.js.map} +1 -1
  147. package/dist/chunks/{scoped-search-input-DDdbMyiM.es.js → scoped-search-input-D5GJjsyF.es.js} +5 -5
  148. package/dist/chunks/{scoped-search-input-DDdbMyiM.es.js.map → scoped-search-input-D5GJjsyF.es.js.map} +1 -1
  149. package/dist/chunks/{search-input-D0kf50zE.cjs.js → search-input-Bex68IhV.cjs.js} +2 -2
  150. package/dist/chunks/{search-input-D0kf50zE.cjs.js.map → search-input-Bex68IhV.cjs.js.map} +1 -1
  151. package/dist/chunks/{search-input-Bcmga7Cw.es.js → search-input-CyKGVTq3.es.js} +4 -4
  152. package/dist/chunks/{search-input-Bcmga7Cw.es.js.map → search-input-CyKGVTq3.es.js.map} +1 -1
  153. package/dist/chunks/{select-k8bs40hC.es.js → select-CQwpSckj.es.js} +4 -4
  154. package/dist/chunks/{select-k8bs40hC.es.js.map → select-CQwpSckj.es.js.map} +1 -1
  155. package/dist/chunks/{select-DMpVSJ1h.cjs.js → select-muD4KBy_.cjs.js} +2 -2
  156. package/dist/chunks/{select-DMpVSJ1h.cjs.js.map → select-muD4KBy_.cjs.js.map} +1 -1
  157. package/dist/chunks/{separator-fycEZ9D9.cjs.js → separator-1ZNnZk9T.cjs.js} +2 -2
  158. package/dist/chunks/{separator-fycEZ9D9.cjs.js.map → separator-1ZNnZk9T.cjs.js.map} +1 -1
  159. package/dist/chunks/{separator-hmR3p1yn.es.js → separator-CxPOiV-V.es.js} +3 -3
  160. package/dist/chunks/{separator-hmR3p1yn.es.js.map → separator-CxPOiV-V.es.js.map} +1 -1
  161. package/dist/chunks/{split-button-BnArCjhx.es.js → split-button-Dtp64tp3.es.js} +4 -4
  162. package/dist/chunks/{split-button-BnArCjhx.es.js.map → split-button-Dtp64tp3.es.js.map} +1 -1
  163. package/dist/chunks/{split-button-Bp7IHv45.cjs.js → split-button-jWOgks2W.cjs.js} +2 -2
  164. package/dist/chunks/{split-button-Bp7IHv45.cjs.js.map → split-button-jWOgks2W.cjs.js.map} +1 -1
  165. package/dist/chunks/{switch-BP5qlLxf.cjs.js → switch-Dg64nTZL.cjs.js} +2 -2
  166. package/dist/chunks/{switch-BP5qlLxf.cjs.js.map → switch-Dg64nTZL.cjs.js.map} +1 -1
  167. package/dist/chunks/{switch-CRUwwDMH.es.js → switch-bQf5AhI3.es.js} +3 -3
  168. package/dist/chunks/{switch-CRUwwDMH.es.js.map → switch-bQf5AhI3.es.js.map} +1 -1
  169. package/dist/chunks/{tabs-CQCbEhLQ.cjs.js → tabs-CHNOmHyg.cjs.js} +2 -2
  170. package/dist/chunks/{tabs-CQCbEhLQ.cjs.js.map → tabs-CHNOmHyg.cjs.js.map} +1 -1
  171. package/dist/chunks/{tabs-CyjH1V_G.es.js → tabs-DfNhZz7h.es.js} +2 -2
  172. package/dist/chunks/{tabs-CyjH1V_G.es.js.map → tabs-DfNhZz7h.es.js.map} +1 -1
  173. package/dist/chunks/{tag-group-9ad6p_4X.es.js → tag-group-CaQdCaEc.es.js} +2 -2
  174. package/dist/chunks/{tag-group-9ad6p_4X.es.js.map → tag-group-CaQdCaEc.es.js.map} +1 -1
  175. package/dist/chunks/{tag-group-gHWAhKng.cjs.js → tag-group-D5Mhaf6-.cjs.js} +2 -2
  176. package/dist/chunks/{tag-group-gHWAhKng.cjs.js.map → tag-group-D5Mhaf6-.cjs.js.map} +1 -1
  177. package/dist/chunks/{text-input-Nyoma10w.es.js → text-input-BsC8K75b.es.js} +3 -3
  178. package/dist/chunks/{text-input-Nyoma10w.es.js.map → text-input-BsC8K75b.es.js.map} +1 -1
  179. package/dist/chunks/{text-input-aI-8DS_E.cjs.js → text-input-CHwtpRzk.cjs.js} +2 -2
  180. package/dist/chunks/{text-input-aI-8DS_E.cjs.js.map → text-input-CHwtpRzk.cjs.js.map} +1 -1
  181. package/dist/chunks/{text-input-field-JMCGnalG.es.js → text-input-field-CNXk82pQ.es.js} +3 -3
  182. package/dist/chunks/{text-input-field-JMCGnalG.es.js.map → text-input-field-CNXk82pQ.es.js.map} +1 -1
  183. package/dist/chunks/{text-input-field-DjeoHvGR.cjs.js → text-input-field-DbicgCUY.cjs.js} +2 -2
  184. package/dist/chunks/{text-input-field-DjeoHvGR.cjs.js.map → text-input-field-DbicgCUY.cjs.js.map} +1 -1
  185. package/dist/chunks/{time-input-CyiC6ME0.es.js → time-input-2Dsps1zh.es.js} +3 -3
  186. package/dist/chunks/{time-input-CyiC6ME0.es.js.map → time-input-2Dsps1zh.es.js.map} +1 -1
  187. package/dist/chunks/{time-input-CpkzZhKG.cjs.js → time-input-5TSbIWQl.cjs.js} +2 -2
  188. package/dist/chunks/{time-input-CpkzZhKG.cjs.js.map → time-input-5TSbIWQl.cjs.js.map} +1 -1
  189. package/dist/chunks/{toggle-button-ilM1Z4j9.es.js → toggle-button-DnznFtWJ.es.js} +3 -3
  190. package/dist/chunks/{toggle-button-ilM1Z4j9.es.js.map → toggle-button-DnznFtWJ.es.js.map} +1 -1
  191. package/dist/chunks/{toggle-button-Bc60z09M.cjs.js → toggle-button-DqFFGgPy.cjs.js} +2 -2
  192. package/dist/chunks/{toggle-button-Bc60z09M.cjs.js.map → toggle-button-DqFFGgPy.cjs.js.map} +1 -1
  193. package/dist/chunks/{toolbar-DIHsP28I.es.js → toolbar-DE2w5rxi.es.js} +3 -3
  194. package/dist/chunks/{toolbar-DIHsP28I.es.js.map → toolbar-DE2w5rxi.es.js.map} +1 -1
  195. package/dist/chunks/{toolbar-CbpktU24.cjs.js → toolbar-E2paihzp.cjs.js} +2 -2
  196. package/dist/chunks/{toolbar-CbpktU24.cjs.js.map → toolbar-E2paihzp.cjs.js.map} +1 -1
  197. package/dist/components/accordion.cjs +1 -1
  198. package/dist/components/accordion.es.js +2 -2
  199. package/dist/components/alert/alert.d.ts +4 -4
  200. package/dist/components/alert/components/alert.actions.d.ts +1 -1
  201. package/dist/components/alert/components/alert.description.d.ts +1 -1
  202. package/dist/components/alert/components/alert.dismiss-button.d.ts +1 -1
  203. package/dist/components/alert/components/alert.root.d.ts +0 -9
  204. package/dist/components/alert/components/alert.title.d.ts +1 -1
  205. package/dist/components/alert.cjs +1 -1
  206. package/dist/components/alert.es.js +1 -1
  207. package/dist/components/button.cjs +1 -1
  208. package/dist/components/button.es.js +1 -1
  209. package/dist/components/calendar.cjs +1 -1
  210. package/dist/components/calendar.es.js +1 -1
  211. package/dist/components/card.cjs +1 -1
  212. package/dist/components/card.es.js +1 -1
  213. package/dist/components/checkbox.cjs +1 -1
  214. package/dist/components/checkbox.es.js +1 -1
  215. package/dist/components/collapsible-motion.cjs +1 -1
  216. package/dist/components/collapsible-motion.es.js +1 -1
  217. package/dist/components/combobox.cjs +1 -1
  218. package/dist/components/combobox.es.js +1 -1
  219. package/dist/components/components.cjs +1 -1
  220. package/dist/components/components.es.js +1 -1
  221. package/dist/components/data-table.cjs +1 -1
  222. package/dist/components/data-table.es.js +1 -1
  223. package/dist/components/date-input.cjs +1 -1
  224. package/dist/components/date-input.es.js +1 -1
  225. package/dist/components/date-picker.cjs +1 -1
  226. package/dist/components/date-picker.es.js +1 -1
  227. package/dist/components/date-range-picker-field.cjs +1 -1
  228. package/dist/components/date-range-picker-field.es.js +1 -1
  229. package/dist/components/date-range-picker.cjs +1 -1
  230. package/dist/components/date-range-picker.es.js +1 -1
  231. package/dist/components/dialog.cjs +1 -1
  232. package/dist/components/dialog.es.js +1 -1
  233. package/dist/components/draggable-list.cjs +1 -1
  234. package/dist/components/draggable-list.es.js +1 -1
  235. package/dist/components/drawer.cjs +1 -1
  236. package/dist/components/drawer.es.js +1 -1
  237. package/dist/components/fields.cjs +1 -1
  238. package/dist/components/fields.es.js +4 -4
  239. package/dist/components/form-field.cjs +1 -1
  240. package/dist/components/form-field.es.js +1 -1
  241. package/dist/components/icon-button.cjs +1 -1
  242. package/dist/components/icon-button.es.js +1 -1
  243. package/dist/components/icon-toggle-button.cjs +1 -1
  244. package/dist/components/icon-toggle-button.es.js +1 -1
  245. package/dist/components/localized-field.cjs +1 -1
  246. package/dist/components/localized-field.es.js +1 -1
  247. package/dist/components/money-input-field.cjs +1 -1
  248. package/dist/components/money-input-field.es.js +1 -1
  249. package/dist/components/money-input.cjs +1 -1
  250. package/dist/components/money-input.es.js +1 -1
  251. package/dist/components/multiline-text-input.cjs +1 -1
  252. package/dist/components/multiline-text-input.es.js +1 -1
  253. package/dist/components/nimbus-provider.cjs +1 -1
  254. package/dist/components/nimbus-provider.es.js +1 -1
  255. package/dist/components/number-input-field.cjs +1 -1
  256. package/dist/components/number-input-field.es.js +1 -1
  257. package/dist/components/number-input.cjs +1 -1
  258. package/dist/components/number-input.es.js +1 -1
  259. package/dist/components/pagination.cjs +1 -1
  260. package/dist/components/pagination.es.js +1 -1
  261. package/dist/components/password-input.cjs +1 -1
  262. package/dist/components/password-input.es.js +1 -1
  263. package/dist/components/patterns.cjs +1 -1
  264. package/dist/components/patterns.es.js +4 -4
  265. package/dist/components/progress-bar.cjs +1 -1
  266. package/dist/components/progress-bar.es.js +1 -1
  267. package/dist/components/radio-input.cjs +1 -1
  268. package/dist/components/radio-input.es.js +1 -1
  269. package/dist/components/range-calendar.cjs +1 -1
  270. package/dist/components/range-calendar.es.js +1 -1
  271. package/dist/components/rich-text-input.cjs +1 -1
  272. package/dist/components/rich-text-input.es.js +1 -1
  273. package/dist/components/scoped-search-input.cjs +1 -1
  274. package/dist/components/scoped-search-input.es.js +1 -1
  275. package/dist/components/search-input.cjs +1 -1
  276. package/dist/components/search-input.es.js +1 -1
  277. package/dist/components/select.cjs +1 -1
  278. package/dist/components/select.es.js +1 -1
  279. package/dist/components/separator.cjs +1 -1
  280. package/dist/components/separator.es.js +1 -1
  281. package/dist/components/split-button.cjs +1 -1
  282. package/dist/components/split-button.es.js +1 -1
  283. package/dist/components/switch.cjs +1 -1
  284. package/dist/components/switch.es.js +1 -1
  285. package/dist/components/tabs.cjs +1 -1
  286. package/dist/components/tabs.es.js +1 -1
  287. package/dist/components/tag-group.cjs +1 -1
  288. package/dist/components/tag-group.es.js +1 -1
  289. package/dist/components/text-input-field.cjs +1 -1
  290. package/dist/components/text-input-field.es.js +1 -1
  291. package/dist/components/text-input.cjs +1 -1
  292. package/dist/components/text-input.es.js +1 -1
  293. package/dist/components/time-input.cjs +1 -1
  294. package/dist/components/time-input.es.js +1 -1
  295. package/dist/components/toggle-button.cjs +1 -1
  296. package/dist/components/toggle-button.es.js +1 -1
  297. package/dist/components/toolbar.cjs +1 -1
  298. package/dist/components/toolbar.es.js +1 -1
  299. package/dist/index.cjs +1 -1
  300. package/dist/index.es.js +50 -50
  301. package/package.json +5 -5
  302. package/dist/chunks/alert-BCYCzZHo.cjs.js +0 -2
  303. package/dist/chunks/alert-BCYCzZHo.cjs.js.map +0 -1
  304. package/dist/chunks/alert-CHelUUKJ.es.js +0 -211
  305. package/dist/chunks/alert-CHelUUKJ.es.js.map +0 -1
  306. package/dist/chunks/index-D7AZ7gZk.cjs.js.map +0 -1
  307. package/dist/chunks/index-GtJPgmcq.es.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-B3uQXnlC.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,MAAO,KACP,YAAa,KACb,MAAO,KACP,KAAM,KACN,MAAO,KACP,UAAAb,EACA,WAAAC,EACA,WAAAC,EACA,WAAAC,CAAA,CACD,EAEKW,EAA+CC,EAAAA,QAAQ,IAAM,CACjE,MAAMC,EAAuC,CAC3C,GAAAjB,EACA,YAAaY,EAAQ,YACrB,aAAcA,EAAQ,KAAA,EAGxB,OAAIA,EAAQ,MACVK,EAAK,MAAQL,EAAQ,OA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B,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
+ {"version":3,"file":"form-field-CJHX6A4q.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,EAA2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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-DNnMesnW.es.js";
5
+ import { B as c } from "./button-WbcOHikD.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-DcBreh2S.es.js.map
14
+ //# sourceMappingURL=icon-button-1gt1BCJ2.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button-DcBreh2S.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-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,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-B4P8Ur2S.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-BbLd8BSj.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-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 +1 @@
1
- {"version":3,"file":"icon-button-BbLd8BSj.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-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,2 +1,2 @@
1
- "use strict";const l=require("react/jsx-runtime"),u=require("./toggle-button-Bc60z09M.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-DcdzHEIq.cjs.js.map
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 +1 @@
1
- {"version":3,"file":"icon-toggle-button-DcdzHEIq.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-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,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { T as l } from "./toggle-button-ilM1Z4j9.es.js";
2
+ import { T as l } from "./toggle-button-DnznFtWJ.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-B762TOKa.es.js.map
13
+ //# sourceMappingURL=icon-toggle-button-C4ISptbh.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-toggle-button-B762TOKa.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-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;"}
@@ -1115,12 +1115,15 @@ const H = /* @__PURE__ */ _(t.breakpoints), N = /* @__PURE__ */ f({
1115
1115
  // Base styles applied to all instances of the component
1116
1116
  base: {
1117
1117
  root: {
1118
- display: "inline-flex",
1119
- flexDirection: "row",
1118
+ display: "grid",
1119
+ gridTemplateColumns: "auto 1fr auto",
1120
1120
  gap: "200",
1121
- width: "100%"
1121
+ width: "100%",
1122
+ alignItems: "start"
1122
1123
  },
1123
1124
  icon: {
1125
+ gridColumn: "1",
1126
+ gridRow: "1",
1124
1127
  marginTop: "50",
1125
1128
  "& svg": {
1126
1129
  width: "500",
@@ -1129,10 +1132,22 @@ const H = /* @__PURE__ */ _(t.breakpoints), N = /* @__PURE__ */ f({
1129
1132
  }
1130
1133
  },
1131
1134
  title: {
1135
+ gridColumn: "2",
1136
+ order: "1",
1132
1137
  color: "colorPalette.11"
1133
1138
  },
1134
1139
  description: {
1140
+ gridColumn: "2",
1141
+ order: "2",
1135
1142
  color: "colorPalette.11"
1143
+ },
1144
+ actions: {
1145
+ gridColumn: "2",
1146
+ order: "3"
1147
+ },
1148
+ dismissButton: {
1149
+ gridColumn: "3",
1150
+ gridRow: "1"
1136
1151
  }
1137
1152
  },
1138
1153
  variants: {
@@ -5685,4 +5700,4 @@ export {
5685
5700
  ct as s,
5686
5701
  Re as t
5687
5702
  };
5688
- //# sourceMappingURL=index-GtJPgmcq.es.js.map
5703
+ //# sourceMappingURL=index-BA58iOLX.es.js.map