@commercetools/nimbus 0.0.9-rc7 → 0.0.9-rc8

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 (378) hide show
  1. package/dist/chunks/{Button-Dtn-lV5G.js → Button-BxcMDv2N.js} +7 -7
  2. package/dist/chunks/{Button-Dtn-lV5G.js.map → Button-BxcMDv2N.js.map} +1 -1
  3. package/dist/chunks/{Button-DOBmPkg6.js → Button-tPOlfQRd.js} +2 -2
  4. package/dist/chunks/{Button-DOBmPkg6.js.map → Button-tPOlfQRd.js.map} +1 -1
  5. package/dist/chunks/{DateField-C2G53tNO.js → DateField-CaR3Qeda.js} +24 -24
  6. package/dist/chunks/{DateField-C2G53tNO.js.map → DateField-CaR3Qeda.js.map} +1 -1
  7. package/dist/chunks/{DateField-D0hZjHMU.js → DateField-D3h6vCMK.js} +2 -2
  8. package/dist/chunks/{DateField-D0hZjHMU.js.map → DateField-D3h6vCMK.js.map} +1 -1
  9. package/dist/chunks/{Dialog-CFCn7n-k.js → Dialog-5VrXdl86.js} +2 -2
  10. package/dist/chunks/{Dialog-CFCn7n-k.js.map → Dialog-5VrXdl86.js.map} +1 -1
  11. package/dist/chunks/{Dialog-DsJ3jo2g.js → Dialog-DJv-Zg_L.js} +18 -18
  12. package/dist/chunks/{Dialog-DsJ3jo2g.js.map → Dialog-DJv-Zg_L.js.map} +1 -1
  13. package/dist/chunks/{FocusScope-B6O_mZ9T.js → FocusScope-CsXy0kJw.js} +6 -6
  14. package/dist/chunks/{FocusScope-B6O_mZ9T.js.map → FocusScope-CsXy0kJw.js.map} +1 -1
  15. package/dist/chunks/{FocusScope-Dz6kDOQY.js → FocusScope-Cysx7oI0.js} +2 -2
  16. package/dist/chunks/{FocusScope-Dz6kDOQY.js.map → FocusScope-Cysx7oI0.js.map} +1 -1
  17. package/dist/chunks/{Group-DR52Cv_h.js → Group-CTpcJZmt.js} +2 -2
  18. package/dist/chunks/{Group-DR52Cv_h.js.map → Group-CTpcJZmt.js.map} +1 -1
  19. package/dist/chunks/{Group-BMf2x0bV.js → Group-D3CaEDfr.js} +6 -6
  20. package/dist/chunks/{Group-BMf2x0bV.js.map → Group-D3CaEDfr.js.map} +1 -1
  21. package/dist/chunks/Hidden-CNJIJ63M.js +2 -0
  22. package/dist/chunks/{Hidden-BxRZGdEW.js.map → Hidden-CNJIJ63M.js.map} +1 -1
  23. package/dist/chunks/{Hidden-D6Lfpu1U.js → Hidden-CeBYiBUb.js} +1 -8
  24. package/dist/chunks/{Hidden-D6Lfpu1U.js.map → Hidden-CeBYiBUb.js.map} +1 -1
  25. package/dist/chunks/{Input-C6fX3A5E.js → Input-0vJb_5Js.js} +6 -6
  26. package/dist/chunks/{Input-C6fX3A5E.js.map → Input-0vJb_5Js.js.map} +1 -1
  27. package/dist/chunks/{Input-CRt1BJ4n.js → Input-rMOtwpe-.js} +2 -2
  28. package/dist/chunks/{Input-CRt1BJ4n.js.map → Input-rMOtwpe-.js.map} +1 -1
  29. package/dist/chunks/ListBox-Dmkou3Hm.js +18 -0
  30. package/dist/chunks/ListBox-Dmkou3Hm.js.map +1 -0
  31. package/dist/chunks/{ListBox-DH3lufv2.js → ListBox-Dss9OMcn.js} +676 -743
  32. package/dist/chunks/ListBox-Dss9OMcn.js.map +1 -0
  33. package/dist/chunks/{OverlayArrow-DsxKFiKE.js → OverlayArrow-Bs2caVoG.js} +2 -2
  34. package/dist/chunks/{OverlayArrow-DsxKFiKE.js.map → OverlayArrow-Bs2caVoG.js.map} +1 -1
  35. package/dist/chunks/{OverlayArrow-B1kv2W8j.js → OverlayArrow-qjQZbu8u.js} +4 -4
  36. package/dist/chunks/{OverlayArrow-B1kv2W8j.js.map → OverlayArrow-qjQZbu8u.js.map} +1 -1
  37. package/dist/chunks/RSPContexts-AkhSBHGO.js +6 -0
  38. package/dist/chunks/{RSPContexts-CxXY5Uko.js.map → RSPContexts-AkhSBHGO.js.map} +1 -1
  39. package/dist/chunks/RSPContexts-CIAIlAKH.js +2 -0
  40. package/dist/chunks/{RSPContexts-qzadeFSO.js.map → RSPContexts-CIAIlAKH.js.map} +1 -1
  41. package/dist/chunks/{SSRProvider-D8lZ0o6A.js → SSRProvider-eIEwc-2s.js} +2 -2
  42. package/dist/chunks/{SSRProvider-D8lZ0o6A.js.map → SSRProvider-eIEwc-2s.js.map} +1 -1
  43. package/dist/chunks/{TextArea-Ud71sffr.js → TextArea-BfVV0_3h.js} +2 -2
  44. package/dist/chunks/{TextArea-Ud71sffr.js.map → TextArea-BfVV0_3h.js.map} +1 -1
  45. package/dist/chunks/{TextArea-D-S_3q08.js → TextArea-Q-NI2yW5.js} +5 -5
  46. package/dist/chunks/{TextArea-D-S_3q08.js.map → TextArea-Q-NI2yW5.js.map} +1 -1
  47. package/dist/chunks/{VisuallyHidden-BpUTcba_.js → VisuallyHidden-2REhp9RT.js} +3 -3
  48. package/dist/chunks/{VisuallyHidden-BpUTcba_.js.map → VisuallyHidden-2REhp9RT.js.map} +1 -1
  49. package/dist/chunks/{VisuallyHidden-BxenYie4.js → VisuallyHidden-Cg0LJ1Dh.js} +2 -2
  50. package/dist/chunks/{VisuallyHidden-BxenYie4.js.map → VisuallyHidden-Cg0LJ1Dh.js.map} +1 -1
  51. package/dist/chunks/{accordion-Dc3IqP_d.js → accordion-D4Qqg89m.js} +12 -12
  52. package/dist/chunks/{accordion-Dc3IqP_d.js.map → accordion-D4Qqg89m.js.map} +1 -1
  53. package/dist/chunks/{accordion-8pelAIyn.js → accordion-vrKLW-re.js} +2 -2
  54. package/dist/chunks/{accordion-8pelAIyn.js.map → accordion-vrKLW-re.js.map} +1 -1
  55. package/dist/chunks/{alert-DxoCjJDr.js → alert-B738R1TJ.js} +2 -2
  56. package/dist/chunks/{alert-DxoCjJDr.js.map → alert-B738R1TJ.js.map} +1 -1
  57. package/dist/chunks/{alert-DSpVYhCa.js → alert-BX5IPnc_.js} +10 -10
  58. package/dist/chunks/{alert-DSpVYhCa.js.map → alert-BX5IPnc_.js.map} +1 -1
  59. package/dist/chunks/{avatar-p4QfPsxN.js → avatar-85FE_L0r.js} +3 -3
  60. package/dist/chunks/{avatar-p4QfPsxN.js.map → avatar-85FE_L0r.js.map} +1 -1
  61. package/dist/chunks/{avatar.recipe-BV5OkaPx.js → avatar.recipe-BSmmqvwQ.js} +2 -2
  62. package/dist/chunks/{avatar.recipe-BV5OkaPx.js.map → avatar.recipe-BSmmqvwQ.js.map} +1 -1
  63. package/dist/chunks/{badge-CbqLqIo9.js → badge-C1bFH3CB.js} +4 -4
  64. package/dist/chunks/{badge-CbqLqIo9.js.map → badge-C1bFH3CB.js.map} +1 -1
  65. package/dist/chunks/{button-vfAeHh1t.js → button-BLZONb0_.js} +2 -2
  66. package/dist/chunks/{button-vfAeHh1t.js.map → button-BLZONb0_.js.map} +1 -1
  67. package/dist/chunks/{button-Ckftvc2h.js → button-zSDA7FRw.js} +8 -8
  68. package/dist/chunks/{button-Ckftvc2h.js.map → button-zSDA7FRw.js.map} +1 -1
  69. package/dist/chunks/{button.recipe-DbFAOebT.js → button.recipe-DzOS_Bqm.js} +2 -2
  70. package/dist/chunks/{button.recipe-DbFAOebT.js.map → button.recipe-DzOS_Bqm.js.map} +1 -1
  71. package/dist/chunks/{calendar-Bz_gsrGo.js → calendar-BIB7Bqqn.js} +22 -22
  72. package/dist/chunks/{calendar-Bz_gsrGo.js.map → calendar-BIB7Bqqn.js.map} +1 -1
  73. package/dist/chunks/{calendar-Cs2rHplP.js → calendar-DRE_oZOp.js} +2 -2
  74. package/dist/chunks/{calendar-Cs2rHplP.js.map → calendar-DRE_oZOp.js.map} +1 -1
  75. package/dist/chunks/{calendar.recipe-RdPylgdo.js → calendar.recipe-B2sMokBn.js} +2 -2
  76. package/dist/chunks/{calendar.recipe-RdPylgdo.js.map → calendar.recipe-B2sMokBn.js.map} +1 -1
  77. package/dist/chunks/{card-B0BsL4ol.js → card-DAC7L3R0.js} +2 -2
  78. package/dist/chunks/{card-B0BsL4ol.js.map → card-DAC7L3R0.js.map} +1 -1
  79. package/dist/chunks/{card-CQwHrkIF.js → card-DSC-PYAU.js} +9 -9
  80. package/dist/chunks/{card-CQwHrkIF.js.map → card-DSC-PYAU.js.map} +1 -1
  81. package/dist/chunks/{checkbox-Cwb_QZjZ.js → checkbox-B1w8RLi0.js} +2 -2
  82. package/dist/chunks/{checkbox-Cwb_QZjZ.js.map → checkbox-B1w8RLi0.js.map} +1 -1
  83. package/dist/chunks/{checkbox-C5jtHkVZ.js → checkbox-CJQ1O9W5.js} +11 -11
  84. package/dist/chunks/{checkbox-C5jtHkVZ.js.map → checkbox-CJQ1O9W5.js.map} +1 -1
  85. package/dist/chunks/{combobox-BACFWgP3.js → combobox-DLABf790.js} +2 -2
  86. package/dist/chunks/{combobox-BACFWgP3.js.map → combobox-DLABf790.js.map} +1 -1
  87. package/dist/chunks/{combobox--lHdni2Z.js → combobox-ZcHPms3T.js} +23 -23
  88. package/dist/chunks/{combobox--lHdni2Z.js.map → combobox-ZcHPms3T.js.map} +1 -1
  89. package/dist/chunks/{combobox.recipe-KVsma6zb.js → combobox.recipe-BIn4O0NT.js} +43 -18
  90. package/dist/chunks/{combobox.recipe-KVsma6zb.js.map → combobox.recipe-BIn4O0NT.js.map} +1 -1
  91. package/dist/chunks/combobox.recipe-Da71Y6ye.js +2 -0
  92. package/dist/chunks/{combobox.recipe-BzaPWi66.js.map → combobox.recipe-Da71Y6ye.js.map} +1 -1
  93. package/dist/chunks/{context-CgP0qpkX.js → context-CI0Y3O6x.js} +4 -4
  94. package/dist/chunks/{context-CgP0qpkX.js.map → context-CI0Y3O6x.js.map} +1 -1
  95. package/dist/chunks/{date-input-9oZMESC7.js → date-input-DnjW061n.js} +2 -2
  96. package/dist/chunks/{date-input-9oZMESC7.js.map → date-input-DnjW061n.js.map} +1 -1
  97. package/dist/chunks/{date-input-DK9U-Nh8.js → date-input-tzOJ2b9K.js} +5 -5
  98. package/dist/chunks/{date-input-DK9U-Nh8.js.map → date-input-tzOJ2b9K.js.map} +1 -1
  99. package/dist/chunks/{date-input.recipe-BcsevQtW.js → date-input.recipe-BtWEmJGK.js} +2 -2
  100. package/dist/chunks/{date-input.recipe-BcsevQtW.js.map → date-input.recipe-BtWEmJGK.js.map} +1 -1
  101. package/dist/chunks/date-picker-BOJn_b_Y.js +2 -0
  102. package/dist/chunks/{date-picker-CwXGnIiO.js.map → date-picker-BOJn_b_Y.js.map} +1 -1
  103. package/dist/chunks/{date-picker-ShPOqwXi.js → date-picker-npElUeVw.js} +54 -58
  104. package/dist/chunks/{date-picker-ShPOqwXi.js.map → date-picker-npElUeVw.js.map} +1 -1
  105. package/dist/chunks/{date-picker.recipe-BJ79OJaw.js → date-picker.recipe-Dy6NmKHA.js} +2 -2
  106. package/dist/chunks/{date-picker.recipe-BJ79OJaw.js.map → date-picker.recipe-Dy6NmKHA.js.map} +1 -1
  107. package/dist/chunks/focusSafely-DKDcdc1Z.js +36 -0
  108. package/dist/chunks/{focusSafely-DuMeO0J4.js.map → focusSafely-DKDcdc1Z.js.map} +1 -1
  109. package/dist/chunks/focusSafely-DTxIMq-P.js +2 -0
  110. package/dist/chunks/{focusSafely-D_uW2Kp-.js.map → focusSafely-DTxIMq-P.js.map} +1 -1
  111. package/dist/chunks/{form-field-BUoO6HEy.js → form-field-CblzjGEw.js} +2 -2
  112. package/dist/chunks/{form-field-BUoO6HEy.js.map → form-field-CblzjGEw.js.map} +1 -1
  113. package/dist/chunks/{form-field-Dr8lL5SU.js → form-field-D_qT2LNU.js} +8 -8
  114. package/dist/chunks/{form-field-Dr8lL5SU.js.map → form-field-D_qT2LNU.js.map} +1 -1
  115. package/dist/chunks/{grid-CLVDMJAz.js → grid-CugcJxRP.js} +2 -2
  116. package/dist/chunks/{grid-CLVDMJAz.js.map → grid-CugcJxRP.js.map} +1 -1
  117. package/dist/chunks/{icon-CjRXcxB9.js → icon-BFNYuilh.js} +3 -3
  118. package/dist/chunks/{icon-CjRXcxB9.js.map → icon-BFNYuilh.js.map} +1 -1
  119. package/dist/chunks/{icon-button-1V59UrF-.js → icon-button-DVBfoOHT.js} +2 -2
  120. package/dist/chunks/{icon-button-1V59UrF-.js.map → icon-button-DVBfoOHT.js.map} +1 -1
  121. package/dist/chunks/{icon-button-CE-LnFNq.js → icon-button-Ds1Wzyc1.js} +2 -2
  122. package/dist/chunks/{icon-button-CE-LnFNq.js.map → icon-button-Ds1Wzyc1.js.map} +1 -1
  123. package/dist/chunks/{link-CCDnA-Z-.js → link-BfHXJGo9.js} +2 -2
  124. package/dist/chunks/{link-CCDnA-Z-.js.map → link-BfHXJGo9.js.map} +1 -1
  125. package/dist/chunks/{link-1lfvUDKX.js → link-CE73eHS0.js} +6 -6
  126. package/dist/chunks/{link-1lfvUDKX.js.map → link-CE73eHS0.js.map} +1 -1
  127. package/dist/chunks/{link.recipe-CbFF3IUG.js → link.recipe-Ba2by0OG.js} +2 -2
  128. package/dist/chunks/{link.recipe-CbFF3IUG.js.map → link.recipe-Ba2by0OG.js.map} +1 -1
  129. package/dist/chunks/{loading-spinner-CJh2luQX.js → loading-spinner-AhRrVHKd.js} +6 -6
  130. package/dist/chunks/{loading-spinner-CJh2luQX.js.map → loading-spinner-AhRrVHKd.js.map} +1 -1
  131. package/dist/chunks/{make-element-focusable-urU2Yczu.js → make-element-focusable-_kgqlXGc.js} +4 -4
  132. package/dist/chunks/{make-element-focusable-urU2Yczu.js.map → make-element-focusable-_kgqlXGc.js.map} +1 -1
  133. package/dist/chunks/{make-element-focusable-ByC0LOwU.js → make-element-focusable-ijZC9F3C.js} +2 -2
  134. package/dist/chunks/{make-element-focusable-ByC0LOwU.js.map → make-element-focusable-ijZC9F3C.js.map} +1 -1
  135. package/dist/chunks/{mergeProps-DAjoWNOq.js → mergeProps-tCFA9wZ1.js} +3 -3
  136. package/dist/chunks/{mergeProps-DAjoWNOq.js.map → mergeProps-tCFA9wZ1.js.map} +1 -1
  137. package/dist/chunks/{multiline-text-input-B8v-mx89.js → multiline-text-input-C8yclL-x.js} +2 -2
  138. package/dist/chunks/{multiline-text-input-B8v-mx89.js.map → multiline-text-input-C8yclL-x.js.map} +1 -1
  139. package/dist/chunks/{multiline-text-input-BS9tsQnR.js → multiline-text-input-D6P_NVi6.js} +7 -7
  140. package/dist/chunks/{multiline-text-input-BS9tsQnR.js.map → multiline-text-input-D6P_NVi6.js.map} +1 -1
  141. package/dist/chunks/{nimbus-provider-jZPLt7_j.js → nimbus-provider-CTg-F7UD.js} +2 -2
  142. package/dist/chunks/{nimbus-provider-jZPLt7_j.js.map → nimbus-provider-CTg-F7UD.js.map} +1 -1
  143. package/dist/chunks/{nimbus-provider-CFSRgGKt.js → nimbus-provider-h_Fu03Zk.js} +39 -39
  144. package/dist/chunks/{nimbus-provider-CFSRgGKt.js.map → nimbus-provider-h_Fu03Zk.js.map} +1 -1
  145. package/dist/chunks/{number-input-BFA-uYaI.js → number-input-BTbzj3aN.js} +16 -16
  146. package/dist/chunks/{number-input-BFA-uYaI.js.map → number-input-BTbzj3aN.js.map} +1 -1
  147. package/dist/chunks/{number-input-CDaEIN66.js → number-input-D7D2ahNb.js} +2 -2
  148. package/dist/chunks/{number-input-CDaEIN66.js.map → number-input-D7D2ahNb.js.map} +1 -1
  149. package/dist/chunks/{number-input.recipe-CbLyhXgE.js → number-input.recipe-8gbsGnLJ.js} +2 -2
  150. package/dist/chunks/{number-input.recipe-CbLyhXgE.js.map → number-input.recipe-8gbsGnLJ.js.map} +1 -1
  151. package/dist/chunks/{password-input-CYZ0QR0V.js → password-input-BD5GZKX7.js} +2 -2
  152. package/dist/chunks/{password-input-CYZ0QR0V.js.map → password-input-BD5GZKX7.js.map} +1 -1
  153. package/dist/chunks/{password-input-CEUQjqeT.js → password-input-fiypX-6w.js} +5 -5
  154. package/dist/chunks/{password-input-CEUQjqeT.js.map → password-input-fiypX-6w.js.map} +1 -1
  155. package/dist/chunks/{radio-input-cone4teU.js → radio-input-4v_6tT94.js} +18 -18
  156. package/dist/chunks/{radio-input-cone4teU.js.map → radio-input-4v_6tT94.js.map} +1 -1
  157. package/dist/chunks/{radio-input-5mFGE9qS.js → radio-input-B2IVmel0.js} +2 -2
  158. package/dist/chunks/{radio-input-5mFGE9qS.js.map → radio-input-B2IVmel0.js.map} +1 -1
  159. package/dist/chunks/{radio-input.recipe-QYiFg_Kf.js → radio-input.recipe-CM9R2ilP.js} +2 -2
  160. package/dist/chunks/{radio-input.recipe-QYiFg_Kf.js.map → radio-input.recipe-CM9R2ilP.js.map} +1 -1
  161. package/dist/chunks/{scrollIntoView-Dtwi5Vrc.js → scrollIntoView-CXOsfZIS.js} +2 -2
  162. package/dist/chunks/{scrollIntoView-Dtwi5Vrc.js.map → scrollIntoView-CXOsfZIS.js.map} +1 -1
  163. package/dist/chunks/{select-CSp1HFJF.js → select-7cuL-dmI.js} +2 -2
  164. package/dist/chunks/{select-CSp1HFJF.js.map → select-7cuL-dmI.js.map} +1 -1
  165. package/dist/chunks/{select-BZ2LnuaW.js → select-DH4OUn_y.js} +22 -22
  166. package/dist/chunks/{select-BZ2LnuaW.js.map → select-DH4OUn_y.js.map} +1 -1
  167. package/dist/chunks/{select.recipe-DS5ZRkug.js → select.recipe-CXWsUldF.js} +2 -2
  168. package/dist/chunks/{select.recipe-DS5ZRkug.js.map → select.recipe-CXWsUldF.js.map} +1 -1
  169. package/dist/chunks/{simple-grid-D6PoDK0-.js → simple-grid-CFOP9g2P.js} +2 -2
  170. package/dist/chunks/{simple-grid-D6PoDK0-.js.map → simple-grid-CFOP9g2P.js.map} +1 -1
  171. package/dist/chunks/{switch-CZji_hBH.js → switch-CnbvTSF9.js} +2 -2
  172. package/dist/chunks/{switch-CZji_hBH.js.map → switch-CnbvTSF9.js.map} +1 -1
  173. package/dist/chunks/{switch-QvuLHJL-.js → switch-DdmbHa5R.js} +11 -11
  174. package/dist/chunks/{switch-QvuLHJL-.js.map → switch-DdmbHa5R.js.map} +1 -1
  175. package/dist/chunks/{switch.recipe-D3gb3Xj_.js → switch.recipe-CWOjEnIy.js} +2 -2
  176. package/dist/chunks/{switch.recipe-D3gb3Xj_.js.map → switch.recipe-CWOjEnIy.js.map} +1 -1
  177. package/dist/chunks/{tag-group-v87SYIPj.js → tag-group-B6w2MEyf.js} +2 -2
  178. package/dist/chunks/{tag-group-v87SYIPj.js.map → tag-group-B6w2MEyf.js.map} +1 -1
  179. package/dist/chunks/{tag-group-JxvggHdo.js → tag-group-CdLfw2gL.js} +21 -21
  180. package/dist/chunks/{tag-group-JxvggHdo.js.map → tag-group-CdLfw2gL.js.map} +1 -1
  181. package/dist/chunks/{text-BTD3oGaQ.js → text-MzQiG_1j.js} +2 -2
  182. package/dist/chunks/{text-BTD3oGaQ.js.map → text-MzQiG_1j.js.map} +1 -1
  183. package/dist/chunks/{text-input-Ov6DSJhs.js → text-input-CtJ2FHJ3.js} +2 -2
  184. package/dist/chunks/{text-input-Ov6DSJhs.js.map → text-input-CtJ2FHJ3.js.map} +1 -1
  185. package/dist/chunks/{text-input-CpABYE1g.js → text-input-SYXEV4sT.js} +5 -5
  186. package/dist/chunks/{text-input-CpABYE1g.js.map → text-input-SYXEV4sT.js.map} +1 -1
  187. package/dist/chunks/{text-input.recipe-CGpq33Pp.js → text-input.recipe-KNoUuq-g.js} +2 -2
  188. package/dist/chunks/{text-input.recipe-CGpq33Pp.js.map → text-input.recipe-KNoUuq-g.js.map} +1 -1
  189. package/dist/chunks/{time-input-DS6RgF12.js → time-input-DCJYjKRY.js} +5 -5
  190. package/dist/chunks/{time-input-DS6RgF12.js.map → time-input-DCJYjKRY.js.map} +1 -1
  191. package/dist/chunks/{time-input-BIUdp4gX.js → time-input-sjvN5iZ-.js} +2 -2
  192. package/dist/chunks/{time-input-BIUdp4gX.js.map → time-input-sjvN5iZ-.js.map} +1 -1
  193. package/dist/chunks/toggle-button-group-D-3UQLdL.js +2 -0
  194. package/dist/chunks/{toggle-button-group-BdLaFCWe.js.map → toggle-button-group-D-3UQLdL.js.map} +1 -1
  195. package/dist/chunks/{toggle-button-group-0a-aeCiH.js → toggle-button-group-bjkXTCxu.js} +76 -66
  196. package/dist/chunks/{toggle-button-group-0a-aeCiH.js.map → toggle-button-group-bjkXTCxu.js.map} +1 -1
  197. package/dist/chunks/{tooltip-_9ZfCa2D.js → tooltip-C-K5iatf.js} +2 -2
  198. package/dist/chunks/{tooltip-_9ZfCa2D.js.map → tooltip-C-K5iatf.js.map} +1 -1
  199. package/dist/chunks/{tooltip-BdwdWMCL.js → tooltip-DvoZxHgo.js} +10 -10
  200. package/dist/chunks/{tooltip-BdwdWMCL.js.map → tooltip-DvoZxHgo.js.map} +1 -1
  201. package/dist/chunks/{tooltip.recipe-D9fYIQZz.js → tooltip.recipe-B9-7OFCi.js} +2 -2
  202. package/dist/chunks/{tooltip.recipe-D9fYIQZz.js.map → tooltip.recipe-B9-7OFCi.js.map} +1 -1
  203. package/dist/chunks/{useButton-BRqxk71F.js → useButton-BZrUUsJ0.js} +2 -2
  204. package/dist/chunks/{useButton-BRqxk71F.js.map → useButton-BZrUUsJ0.js.map} +1 -1
  205. package/dist/chunks/{useButton-CGSIlDH9.js → useButton-C5ATfvOf.js} +4 -4
  206. package/dist/chunks/{useButton-CGSIlDH9.js.map → useButton-C5ATfvOf.js.map} +1 -1
  207. package/dist/chunks/{useCollator-PO0ZNDFD.js → useCollator-BbJYfLGN.js} +2 -2
  208. package/dist/chunks/{useCollator-PO0ZNDFD.js.map → useCollator-BbJYfLGN.js.map} +1 -1
  209. package/dist/chunks/{useDateFormatter-CZ3YJIiV.js → useDateFormatter-5Oe96jpR.js} +3 -3
  210. package/dist/chunks/{useDateFormatter-CZ3YJIiV.js.map → useDateFormatter-5Oe96jpR.js.map} +1 -1
  211. package/dist/chunks/{useDateFormatter-BYTqyfPM.js → useDateFormatter-6FAMsnNT.js} +2 -2
  212. package/dist/chunks/{useDateFormatter-BYTqyfPM.js.map → useDateFormatter-6FAMsnNT.js.map} +1 -1
  213. package/dist/chunks/{useEvent-9hDa8zoA.js → useEvent-COOhq9E7.js} +2 -2
  214. package/dist/chunks/{useEvent-9hDa8zoA.js.map → useEvent-COOhq9E7.js.map} +1 -1
  215. package/dist/chunks/{useField-3jug3XBb.js → useField-BY58-2Ft.js} +3 -3
  216. package/dist/chunks/{useField-3jug3XBb.js.map → useField-BY58-2Ft.js.map} +1 -1
  217. package/dist/chunks/useFocus-C1BtlMbo.js +2 -0
  218. package/dist/chunks/{useFocus-CP2rlXSg.js.map → useFocus-C1BtlMbo.js.map} +1 -1
  219. package/dist/chunks/useFocus-CuXxpIRa.js +176 -0
  220. package/dist/chunks/{useFocus-mfjoACQ_.js.map → useFocus-CuXxpIRa.js.map} +1 -1
  221. package/dist/chunks/{useFocusRing-C4z9NtLP.js → useFocusRing-CYHdvund.js} +2 -2
  222. package/dist/chunks/{useFocusRing-C4z9NtLP.js.map → useFocusRing-CYHdvund.js.map} +1 -1
  223. package/dist/chunks/{useFocusRing-C8yOnkHj.js → useFocusRing-DNviWqC5.js} +3 -3
  224. package/dist/chunks/{useFocusRing-C8yOnkHj.js.map → useFocusRing-DNviWqC5.js.map} +1 -1
  225. package/dist/chunks/{useFocusWithin-CLd9itwe.js → useFocusWithin-AKRo9mz0.js} +2 -2
  226. package/dist/chunks/{useFocusWithin-CLd9itwe.js.map → useFocusWithin-AKRo9mz0.js.map} +1 -1
  227. package/dist/chunks/{useFocusWithin-BENrOz43.js → useFocusWithin-hB6WzPnG.js} +2 -2
  228. package/dist/chunks/{useFocusWithin-BENrOz43.js.map → useFocusWithin-hB6WzPnG.js.map} +1 -1
  229. package/dist/chunks/{useFocusable-IwGfkXQG.js → useFocusable-DBEQCS1T.js} +4 -4
  230. package/dist/chunks/{useFocusable-IwGfkXQG.js.map → useFocusable-DBEQCS1T.js.map} +1 -1
  231. package/dist/chunks/{useFocusable-C7jAQfqU.js → useFocusable-DbCayKl8.js} +2 -2
  232. package/dist/chunks/{useFocusable-C7jAQfqU.js.map → useFocusable-DbCayKl8.js.map} +1 -1
  233. package/dist/chunks/{useFormReset-CzGCrdxu.js → useFormReset-BgCb2h6r.js} +2 -2
  234. package/dist/chunks/{useFormReset-CzGCrdxu.js.map → useFormReset-BgCb2h6r.js.map} +1 -1
  235. package/dist/chunks/{useFormValidation-BSXga2hX.js → useFormValidation-CbunG7dK.js} +2 -2
  236. package/dist/chunks/{useFormValidation-BSXga2hX.js.map → useFormValidation-CbunG7dK.js.map} +1 -1
  237. package/dist/chunks/{useFormValidation-BcDTI6Mp.js → useFormValidation-DoG8pVu2.js} +4 -4
  238. package/dist/chunks/{useFormValidation-BcDTI6Mp.js.map → useFormValidation-DoG8pVu2.js.map} +1 -1
  239. package/dist/chunks/{useHover-CbdI4C89.js → useHover-3Zee5Ds5.js} +2 -2
  240. package/dist/chunks/{useHover-CbdI4C89.js.map → useHover-3Zee5Ds5.js.map} +1 -1
  241. package/dist/chunks/{useHover-ByIffPdS.js → useHover-BxTJz4Qm.js} +2 -2
  242. package/dist/chunks/{useHover-ByIffPdS.js.map → useHover-BxTJz4Qm.js.map} +1 -1
  243. package/dist/chunks/{useLabel-Dd6M1Y4b.js → useLabel-lLz9KH79.js} +3 -3
  244. package/dist/chunks/{useLabel-Dd6M1Y4b.js.map → useLabel-lLz9KH79.js.map} +1 -1
  245. package/dist/chunks/{useLabels-B1BLA0b7.js → useLabels-CrNu-inr.js} +2 -2
  246. package/dist/chunks/{useLabels-B1BLA0b7.js.map → useLabels-CrNu-inr.js.map} +1 -1
  247. package/dist/chunks/{useLocalizedStringFormatter-JGrQYmnh.js → useLocalizedStringFormatter-D1iIJE39.js} +3 -3
  248. package/dist/chunks/{useLocalizedStringFormatter-JGrQYmnh.js.map → useLocalizedStringFormatter-D1iIJE39.js.map} +1 -1
  249. package/dist/chunks/{useNumberFormatter-Dx-esBDc.js → useNumberFormatter-C8xwHQXb.js} +2 -2
  250. package/dist/chunks/{useNumberFormatter-Dx-esBDc.js.map → useNumberFormatter-C8xwHQXb.js.map} +1 -1
  251. package/dist/chunks/{usePress-C9YKhG_e.js → usePress-CGAMyl6q.js} +2 -2
  252. package/dist/chunks/{usePress-C9YKhG_e.js.map → usePress-CGAMyl6q.js.map} +1 -1
  253. package/dist/chunks/{usePress-dJvNd3G7.js → usePress-Dk0M2Js8.js} +7 -7
  254. package/dist/chunks/{usePress-dJvNd3G7.js.map → usePress-Dk0M2Js8.js.map} +1 -1
  255. package/dist/chunks/{useSingleSelectListState-DovbyYzZ.js → useSingleSelectListState--jan8NiD.js} +6 -6
  256. package/dist/chunks/{useSingleSelectListState-DovbyYzZ.js.map → useSingleSelectListState--jan8NiD.js.map} +1 -1
  257. package/dist/chunks/{useSingleSelectListState-CwUhrKQb.js → useSingleSelectListState-DqtAmt8K.js} +2 -2
  258. package/dist/chunks/{useSingleSelectListState-CwUhrKQb.js.map → useSingleSelectListState-DqtAmt8K.js.map} +1 -1
  259. package/dist/chunks/{useSpinButton-UFcBxg8e.js → useSpinButton-CQ8U5KZS.js} +2 -2
  260. package/dist/chunks/{useSpinButton-UFcBxg8e.js.map → useSpinButton-CQ8U5KZS.js.map} +1 -1
  261. package/dist/chunks/{useSpinButton-D16epD7I.js → useSpinButton-DQzgsW5H.js} +5 -5
  262. package/dist/chunks/{useSpinButton-D16epD7I.js.map → useSpinButton-DQzgsW5H.js.map} +1 -1
  263. package/dist/chunks/{useTextField-DFfK-BZg.js → useTextField-CNy4kFwI.js} +7 -7
  264. package/dist/chunks/{useTextField-DFfK-BZg.js.map → useTextField-CNy4kFwI.js.map} +1 -1
  265. package/dist/chunks/{useTextField-lejiPfpS.js → useTextField-Dkkh1L-K.js} +2 -2
  266. package/dist/chunks/{useTextField-lejiPfpS.js.map → useTextField-Dkkh1L-K.js.map} +1 -1
  267. package/dist/chunks/{useToggle-BUU7amte.js → useToggle-BEYjmALQ.js} +2 -2
  268. package/dist/chunks/{useToggle-BUU7amte.js.map → useToggle-BEYjmALQ.js.map} +1 -1
  269. package/dist/chunks/{useToggle-Cp-w42gr.js → useToggle-Cf0OB-T-.js} +5 -5
  270. package/dist/chunks/{useToggle-Cp-w42gr.js.map → useToggle-Cf0OB-T-.js.map} +1 -1
  271. package/dist/chunks/{utils-DTmE9QvG.js → utils-7n9JR4ke.js} +3 -3
  272. package/dist/chunks/{utils-DTmE9QvG.js.map → utils-7n9JR4ke.js.map} +1 -1
  273. package/dist/chunks/{utils-BzPwFwlw.js → utils-D6ZV0jyp.js} +2 -2
  274. package/dist/chunks/{utils-BzPwFwlw.js.map → utils-D6ZV0jyp.js.map} +1 -1
  275. package/dist/chunks/{utils-wW2ZswvI.js → utils-DSssdw4e.js} +15 -17
  276. package/dist/chunks/{utils-wW2ZswvI.js.map → utils-DSssdw4e.js.map} +1 -1
  277. package/dist/chunks/{visually-hidden-T2B120j4.js → visually-hidden-7U4LGJiI.js} +2 -2
  278. package/dist/chunks/{visually-hidden-T2B120j4.js.map → visually-hidden-7U4LGJiI.js.map} +1 -1
  279. package/dist/chunks/{visually-hidden-Qd_t4hAG.js → visually-hidden-CRnniCks.js} +2 -2
  280. package/dist/chunks/{visually-hidden-Qd_t4hAG.js.map → visually-hidden-CRnniCks.js.map} +1 -1
  281. package/dist/components/accordion.cjs +1 -1
  282. package/dist/components/accordion.es.js +1 -1
  283. package/dist/components/alert.cjs +1 -1
  284. package/dist/components/alert.es.js +1 -1
  285. package/dist/components/avatar.cjs +1 -1
  286. package/dist/components/avatar.es.js +1 -1
  287. package/dist/components/badge.cjs +1 -1
  288. package/dist/components/badge.es.js +1 -1
  289. package/dist/components/box.cjs +1 -1
  290. package/dist/components/button.cjs +1 -1
  291. package/dist/components/button.es.js +1 -1
  292. package/dist/components/calendar.cjs +1 -1
  293. package/dist/components/calendar.es.js +1 -1
  294. package/dist/components/card.cjs +1 -1
  295. package/dist/components/card.es.js +1 -1
  296. package/dist/components/checkbox.cjs +1 -1
  297. package/dist/components/checkbox.es.js +1 -1
  298. package/dist/components/code.cjs +1 -1
  299. package/dist/components/combobox.cjs +1 -1
  300. package/dist/components/combobox.es.js +1 -1
  301. package/dist/components/components.cjs +1 -1
  302. package/dist/components/components.es.js +33 -33
  303. package/dist/components/date-input.cjs +1 -1
  304. package/dist/components/date-input.es.js +1 -1
  305. package/dist/components/date-picker.cjs +1 -1
  306. package/dist/components/date-picker.es.js +1 -1
  307. package/dist/components/dialog.cjs +1 -1
  308. package/dist/components/flex.cjs +1 -1
  309. package/dist/components/form-field.cjs +1 -1
  310. package/dist/components/form-field.es.js +1 -1
  311. package/dist/components/grid.cjs +1 -1
  312. package/dist/components/grid.es.js +1 -1
  313. package/dist/components/heading.cjs +1 -1
  314. package/dist/components/icon-button.cjs +1 -1
  315. package/dist/components/icon-button.es.js +1 -1
  316. package/dist/components/icon.cjs +1 -1
  317. package/dist/components/icon.es.js +1 -1
  318. package/dist/components/image.cjs +1 -1
  319. package/dist/components/kbd.cjs +1 -1
  320. package/dist/components/link.cjs +1 -1
  321. package/dist/components/link.es.js +1 -1
  322. package/dist/components/list.cjs +1 -1
  323. package/dist/components/loading-spinner.cjs +1 -1
  324. package/dist/components/loading-spinner.es.js +1 -1
  325. package/dist/components/multiline-text-input.cjs +1 -1
  326. package/dist/components/multiline-text-input.es.js +1 -1
  327. package/dist/components/nimbus-provider.cjs +1 -1
  328. package/dist/components/nimbus-provider.es.js +1 -1
  329. package/dist/components/number-input.cjs +1 -1
  330. package/dist/components/number-input.es.js +1 -1
  331. package/dist/components/password-input.cjs +1 -1
  332. package/dist/components/password-input.es.js +1 -1
  333. package/dist/components/radio-input.cjs +1 -1
  334. package/dist/components/radio-input.es.js +1 -1
  335. package/dist/components/select.cjs +1 -1
  336. package/dist/components/select.es.js +1 -1
  337. package/dist/components/simple-grid.cjs +1 -1
  338. package/dist/components/simple-grid.es.js +1 -1
  339. package/dist/components/stack.cjs +1 -1
  340. package/dist/components/switch.cjs +1 -1
  341. package/dist/components/switch.es.js +1 -1
  342. package/dist/components/table.cjs +1 -1
  343. package/dist/components/tag-group.cjs +1 -1
  344. package/dist/components/tag-group.es.js +1 -1
  345. package/dist/components/text-input.cjs +1 -1
  346. package/dist/components/text-input.es.js +1 -1
  347. package/dist/components/text.cjs +1 -1
  348. package/dist/components/text.es.js +1 -1
  349. package/dist/components/time-input.cjs +1 -1
  350. package/dist/components/time-input.es.js +1 -1
  351. package/dist/components/toggle-button-group.cjs +1 -1
  352. package/dist/components/toggle-button-group.es.js +1 -1
  353. package/dist/components/tooltip.cjs +1 -1
  354. package/dist/components/tooltip.es.js +2 -2
  355. package/dist/components/visually-hidden.cjs +1 -1
  356. package/dist/components/visually-hidden.es.js +1 -1
  357. package/dist/index.cjs +1 -1
  358. package/dist/index.cjs.map +1 -1
  359. package/dist/index.es.js +84 -93
  360. package/dist/index.es.js.map +1 -1
  361. package/dist/setup-jsdom-polyfills.cjs +1 -1
  362. package/dist/setup-jsdom-polyfills.cjs.map +1 -1
  363. package/dist/setup-jsdom-polyfills.es.js +2 -22
  364. package/dist/setup-jsdom-polyfills.es.js.map +1 -1
  365. package/package.json +4 -3
  366. package/dist/chunks/Hidden-BxRZGdEW.js +0 -2
  367. package/dist/chunks/ListBox-CHhUqc7T.js +0 -18
  368. package/dist/chunks/ListBox-CHhUqc7T.js.map +0 -1
  369. package/dist/chunks/ListBox-DH3lufv2.js.map +0 -1
  370. package/dist/chunks/RSPContexts-CxXY5Uko.js +0 -11
  371. package/dist/chunks/RSPContexts-qzadeFSO.js +0 -2
  372. package/dist/chunks/combobox.recipe-BzaPWi66.js +0 -2
  373. package/dist/chunks/date-picker-CwXGnIiO.js +0 -2
  374. package/dist/chunks/focusSafely-D_uW2Kp-.js +0 -58
  375. package/dist/chunks/focusSafely-DuMeO0J4.js +0 -2
  376. package/dist/chunks/toggle-button-group-BdLaFCWe.js +0 -2
  377. package/dist/chunks/useFocus-CP2rlXSg.js +0 -2
  378. package/dist/chunks/useFocus-mfjoACQ_.js +0 -184
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea-D-S_3q08.js","sources":["../../../../node_modules/.pnpm/react-aria-components@1.10.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/TextArea.mjs"],"sourcesContent":["import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useHover as $9Usiy$useHover, useFocusRing as $9Usiy$useFocusRing, mergeProps as $9Usiy$mergeProps} from \"react-aria\";\nimport $9Usiy$react, {createContext as $9Usiy$createContext, forwardRef as $9Usiy$forwardRef} from \"react\";\n\n\n\n\nconst $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ (0, $9Usiy$createContext)({});\nlet $216918bed6669f72$var$filterHoverProps = (props)=>{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;\n return otherProps;\n};\nconst $216918bed6669f72$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $9Usiy$forwardRef)(function TextArea(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $216918bed6669f72$export$2dc6166a7e65358c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9Usiy$useHover)(props);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $9Usiy$useFocusRing)({\n isTextInput: true,\n autoFocus: props.autoFocus\n });\n let isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.disabled || false,\n isInvalid: isInvalid\n },\n defaultClassName: 'react-aria-TextArea'\n });\n return /*#__PURE__*/ (0, $9Usiy$react).createElement(\"textarea\", {\n ...(0, $9Usiy$mergeProps)($216918bed6669f72$var$filterHoverProps(props), focusProps, hoverProps),\n ...renderProps,\n ref: ref,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": props.disabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-invalid\": isInvalid || undefined\n });\n});\n\n\nexport {$216918bed6669f72$export$2dc6166a7e65358c as TextAreaContext, $216918bed6669f72$export$f5c9f3c2c4054eec as TextArea};\n//# sourceMappingURL=TextArea.module.js.map\n"],"names":["$216918bed6669f72$export$2dc6166a7e65358c","$9Usiy$createContext","$216918bed6669f72$var$filterHoverProps","props","onHoverStart","onHoverChange","onHoverEnd","otherProps","$216918bed6669f72$export$f5c9f3c2c4054eec","$9Usiy$forwardRef","ref","$64fa3d84918910a7$export$29f1550f4b0d4415","hoverProps","isHovered","$9Usiy$useHover","isFocused","isFocusVisible","focusProps","$9Usiy$useFocusRing","isInvalid","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$9Usiy$react","$9Usiy$mergeProps"],"mappings":";;;;;AAOK,MAACA,IAA8DC,gBAAAA,EAAsB,CAAE,CAAA;AAC5F,IAAIC,IAAyC,CAACC,MAAQ;AAElD,MAAI,EAAE,cAAcC,GAAc,eAAeC,GAAe,YAAYC,GAAY,GAAGC,EAAU,IAAKJ;AAC1G,SAAOI;AACX;AACK,MAACC,IAA8DC,gBAAAA,EAAmB,SAAkBN,GAAOO,GAAK;AACjH,GAACP,GAAOO,CAAG,IAAQC,EAA2CR,GAAOO,GAAKV,CAAyC;AACnH,MAAI,EAAE,YAAYY,GAAY,WAAWC,MAAkBC,EAAiBX,CAAK,GAC7E,EAAE,WAAWY,GAAW,gBAAgBC,GAAgB,YAAYC,MAAmBC,EAAqB;AAAA,IAC5G,aAAa;AAAA,IACb,WAAWf,EAAM;AAAA,EACzB,CAAK,GACGgB,IAAY,CAAC,CAAChB,EAAM,cAAc,KAAKA,EAAM,cAAc,MAAM,SACjEiB,IAAkBC,EAAyC;AAAA,IAC3D,GAAGlB;AAAA,IACH,QAAQ;AAAA,MACJ,WAAWU;AAAA,MACX,WAAWE;AAAA,MACX,gBAAgBC;AAAA,MAChB,YAAYb,EAAM,YAAY;AAAA,MAC9B,WAAWgB;AAAA,IACd;AAAA,IACD,kBAAkB;AAAA,EAC1B,CAAK;AACD,SAAyBG,gBAAAA,EAAc,cAAc,YAAY;AAAA,IAC7D,GAAOC,EAAmBrB,EAAuCC,CAAK,GAAGc,GAAYL,CAAU;AAAA,IAC/F,GAAGQ;AAAA,IACH,KAAKV;AAAA,IACL,gBAAgBK,KAAa;AAAA,IAC7B,iBAAiBZ,EAAM,YAAY;AAAA,IACnC,gBAAgBU,KAAa;AAAA,IAC7B,sBAAsBG,KAAkB;AAAA,IACxC,gBAAgBG,KAAa;AAAA,EACrC,CAAK;AACL,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"TextArea-Q-NI2yW5.js","sources":["../../../../node_modules/.pnpm/react-aria-components@1.10.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/TextArea.mjs"],"sourcesContent":["import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useHover as $9Usiy$useHover, useFocusRing as $9Usiy$useFocusRing, mergeProps as $9Usiy$mergeProps} from \"react-aria\";\nimport $9Usiy$react, {createContext as $9Usiy$createContext, forwardRef as $9Usiy$forwardRef} from \"react\";\n\n\n\n\nconst $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ (0, $9Usiy$createContext)({});\nlet $216918bed6669f72$var$filterHoverProps = (props)=>{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;\n return otherProps;\n};\nconst $216918bed6669f72$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $9Usiy$forwardRef)(function TextArea(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $216918bed6669f72$export$2dc6166a7e65358c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9Usiy$useHover)(props);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $9Usiy$useFocusRing)({\n isTextInput: true,\n autoFocus: props.autoFocus\n });\n let isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.disabled || false,\n isInvalid: isInvalid\n },\n defaultClassName: 'react-aria-TextArea'\n });\n return /*#__PURE__*/ (0, $9Usiy$react).createElement(\"textarea\", {\n ...(0, $9Usiy$mergeProps)($216918bed6669f72$var$filterHoverProps(props), focusProps, hoverProps),\n ...renderProps,\n ref: ref,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": props.disabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-invalid\": isInvalid || undefined\n });\n});\n\n\nexport {$216918bed6669f72$export$2dc6166a7e65358c as TextAreaContext, $216918bed6669f72$export$f5c9f3c2c4054eec as TextArea};\n//# sourceMappingURL=TextArea.module.js.map\n"],"names":["$216918bed6669f72$export$2dc6166a7e65358c","$9Usiy$createContext","$216918bed6669f72$var$filterHoverProps","props","onHoverStart","onHoverChange","onHoverEnd","otherProps","$216918bed6669f72$export$f5c9f3c2c4054eec","$9Usiy$forwardRef","ref","$64fa3d84918910a7$export$29f1550f4b0d4415","hoverProps","isHovered","$9Usiy$useHover","isFocused","isFocusVisible","focusProps","$9Usiy$useFocusRing","isInvalid","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$9Usiy$react","$9Usiy$mergeProps"],"mappings":";;;;;AAOK,MAACA,IAA8DC,gBAAAA,EAAsB,CAAE,CAAA;AAC5F,IAAIC,IAAyC,CAACC,MAAQ;AAElD,MAAI,EAAE,cAAcC,GAAc,eAAeC,GAAe,YAAYC,GAAY,GAAGC,EAAU,IAAKJ;AAC1G,SAAOI;AACX;AACK,MAACC,IAA8DC,gBAAAA,EAAmB,SAAkBN,GAAOO,GAAK;AACjH,GAACP,GAAOO,CAAG,IAAQC,EAA2CR,GAAOO,GAAKV,CAAyC;AACnH,MAAI,EAAE,YAAYY,GAAY,WAAWC,MAAkBC,EAAiBX,CAAK,GAC7E,EAAE,WAAWY,GAAW,gBAAgBC,GAAgB,YAAYC,MAAmBC,EAAqB;AAAA,IAC5G,aAAa;AAAA,IACb,WAAWf,EAAM;AAAA,EACzB,CAAK,GACGgB,IAAY,CAAC,CAAChB,EAAM,cAAc,KAAKA,EAAM,cAAc,MAAM,SACjEiB,IAAkBC,EAAyC;AAAA,IAC3D,GAAGlB;AAAA,IACH,QAAQ;AAAA,MACJ,WAAWU;AAAA,MACX,WAAWE;AAAA,MACX,gBAAgBC;AAAA,MAChB,YAAYb,EAAM,YAAY;AAAA,MAC9B,WAAWgB;AAAA,IACd;AAAA,IACD,kBAAkB;AAAA,EAC1B,CAAK;AACD,SAAyBG,gBAAAA,EAAc,cAAc,YAAY;AAAA,IAC7D,GAAOC,EAAmBrB,EAAuCC,CAAK,GAAGc,GAAYL,CAAU;AAAA,IAC/F,GAAGQ;AAAA,IACH,KAAKV;AAAA,IACL,gBAAgBK,KAAa;AAAA,IAC7B,iBAAiBZ,EAAM,YAAY;AAAA,IACnC,gBAAgBU,KAAa;AAAA,IAC7B,sBAAsBG,KAAkB;AAAA,IACxC,gBAAgBG,KAAa;AAAA,EACrC,CAAK;AACL,CAAC;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
- import { $ as n } from "./mergeProps-DAjoWNOq.js";
1
+ import { $ as n } from "./mergeProps-tCFA9wZ1.js";
2
2
  import d, { useState as u, useMemo as p } from "react";
3
- import { $ as f } from "./useFocusWithin-CLd9itwe.js";
3
+ import { $ as f } from "./useFocusWithin-AKRo9mz0.js";
4
4
  const a = {
5
5
  border: 0,
6
6
  clip: "rect(0 0 0 0)",
@@ -38,4 +38,4 @@ export {
38
38
  y as $,
39
39
  $ as a
40
40
  };
41
- //# sourceMappingURL=VisuallyHidden-BpUTcba_.js.map
41
+ //# sourceMappingURL=VisuallyHidden-2REhp9RT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VisuallyHidden-BpUTcba_.js","sources":["../../../../node_modules/.pnpm/@react-aria+visually-hidden@3.8.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs"],"sourcesContent":["import {mergeProps as $7JYt2$mergeProps} from \"@react-aria/utils\";\nimport $7JYt2$react, {useState as $7JYt2$useState, useMemo as $7JYt2$useMemo} from \"react\";\nimport {useFocusWithin as $7JYt2$useFocusWithin} from \"@react-aria/interactions\";\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\n\nconst $5c3e21d68f1c4674$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $7JYt2$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $7JYt2$useFocusWithin)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $7JYt2$useMemo)(()=>{\n if (isFocused) return style;\n else if (style) return {\n ...$5c3e21d68f1c4674$var$styles,\n ...style\n };\n else return $5c3e21d68f1c4674$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $5c3e21d68f1c4674$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $7JYt2$react).createElement(Element, (0, $7JYt2$mergeProps)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$5c3e21d68f1c4674$export$a966af930f325cab as useVisuallyHidden, $5c3e21d68f1c4674$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.module.js.map\n"],"names":["$5c3e21d68f1c4674$var$styles","$5c3e21d68f1c4674$export$a966af930f325cab","props","style","isFocusable","isFocused","setFocused","$7JYt2$useState","focusWithinProps","$7JYt2$useFocusWithin","val","combinedStyles","$7JYt2$useMemo","$5c3e21d68f1c4674$export$439d29a4e110a164","children","Element","otherProps","visuallyHiddenProps","$7JYt2$react","$7JYt2$mergeProps"],"mappings":";;;AAiBA,MAAMA,IAA+B;AAAA,EACjC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAChB;AACA,SAASC,EAA0CC,IAAQ,IAAI;AAC3D,MAAI,EAAE,OAAOC,GAAO,aAAaC,EAAa,IAAGF,GAC7C,CAACG,GAAWC,CAAU,IAAQC,EAAiB,EAAK,GACpD,EAAE,kBAAkBC,EAAkB,IAAOC,EAAuB;AAAA,IACpE,YAAY,CAACL;AAAA,IACb,qBAAqB,CAACM,MAAMJ,EAAWI,CAAG;AAAA,EAClD,CAAK,GAEGC,IAAqBC,EAAgB,MACjCP,IAAkBF,IACbA,IAAc;AAAA,IACnB,GAAGH;AAAA,IACH,GAAGG;AAAA,EACN,IACWH,GAEb;AAAA,IACCK;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,qBAAqB;AAAA,MACjB,GAAGG;AAAA,MACH,OAAOG;AAAA,IACnB;AAAA,EACK;AACL;AACA,SAASE,EAA0CX,GAAO;AAEtD,MAAI,EAAE,UAAUY,GAAU,aAAaC,IAAU,OAAO,aAAaX,GAAa,OAAOD,GAAO,GAAGa,EAAY,IAAGd,GAC9G,EAAE,qBAAqBe,MAAwBhB,EAA0CC,CAAK;AAClG,SAAyBgB,gBAAAA,EAAc,cAAcH,GAAaI,EAAmBH,GAAYC,CAAmB,GAAGH,CAAQ;AACnI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"VisuallyHidden-2REhp9RT.js","sources":["../../../../node_modules/.pnpm/@react-aria+visually-hidden@3.8.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs"],"sourcesContent":["import {mergeProps as $7JYt2$mergeProps} from \"@react-aria/utils\";\nimport $7JYt2$react, {useState as $7JYt2$useState, useMemo as $7JYt2$useMemo} from \"react\";\nimport {useFocusWithin as $7JYt2$useFocusWithin} from \"@react-aria/interactions\";\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\n\nconst $5c3e21d68f1c4674$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $7JYt2$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $7JYt2$useFocusWithin)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $7JYt2$useMemo)(()=>{\n if (isFocused) return style;\n else if (style) return {\n ...$5c3e21d68f1c4674$var$styles,\n ...style\n };\n else return $5c3e21d68f1c4674$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $5c3e21d68f1c4674$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $7JYt2$react).createElement(Element, (0, $7JYt2$mergeProps)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$5c3e21d68f1c4674$export$a966af930f325cab as useVisuallyHidden, $5c3e21d68f1c4674$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.module.js.map\n"],"names":["$5c3e21d68f1c4674$var$styles","$5c3e21d68f1c4674$export$a966af930f325cab","props","style","isFocusable","isFocused","setFocused","$7JYt2$useState","focusWithinProps","$7JYt2$useFocusWithin","val","combinedStyles","$7JYt2$useMemo","$5c3e21d68f1c4674$export$439d29a4e110a164","children","Element","otherProps","visuallyHiddenProps","$7JYt2$react","$7JYt2$mergeProps"],"mappings":";;;AAiBA,MAAMA,IAA+B;AAAA,EACjC,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAChB;AACA,SAASC,EAA0CC,IAAQ,IAAI;AAC3D,MAAI,EAAE,OAAOC,GAAO,aAAaC,EAAa,IAAGF,GAC7C,CAACG,GAAWC,CAAU,IAAQC,EAAiB,EAAK,GACpD,EAAE,kBAAkBC,EAAkB,IAAOC,EAAuB;AAAA,IACpE,YAAY,CAACL;AAAA,IACb,qBAAqB,CAACM,MAAMJ,EAAWI,CAAG;AAAA,EAClD,CAAK,GAEGC,IAAqBC,EAAgB,MACjCP,IAAkBF,IACbA,IAAc;AAAA,IACnB,GAAGH;AAAA,IACH,GAAGG;AAAA,EACN,IACWH,GAEb;AAAA,IACCK;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,qBAAqB;AAAA,MACjB,GAAGG;AAAA,MACH,OAAOG;AAAA,IACnB;AAAA,EACK;AACL;AACA,SAASE,EAA0CX,GAAO;AAEtD,MAAI,EAAE,UAAUY,GAAU,aAAaC,IAAU,OAAO,aAAaX,GAAa,OAAOD,GAAO,GAAGa,EAAY,IAAGd,GAC9G,EAAE,qBAAqBe,MAAwBhB,EAA0CC,CAAK;AAClG,SAAyBgB,gBAAAA,EAAc,cAAcH,GAAaI,EAAmBH,GAAYC,CAAmB,GAAGH,CAAQ;AACnI;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("./mergeProps-BeIu4MsM.js"),o=require("react"),$=require("./useFocusWithin-BENrOz43.js"),n={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function a(t={}){let{style:e,isFocusable:s}=t,[i,l]=o.useState(!1),{focusWithinProps:c}=$.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!s,onFocusWithinChange:d=>l(d)}),r=o.useMemo(()=>i?e:e?{...n,...e}:n,[i]);return{visuallyHiddenProps:{...c,style:r}}}function f(t){let{children:e,elementType:s="div",isFocusable:i,style:l,...c}=t,{visuallyHiddenProps:r}=a(t);return o.createElement(s,u.$3ef42575df84b30b$export$9d1611c77c2fe928(c,r),e)}exports.$5c3e21d68f1c4674$export$439d29a4e110a164=f;exports.$5c3e21d68f1c4674$export$a966af930f325cab=a;
2
- //# sourceMappingURL=VisuallyHidden-BxenYie4.js.map
1
+ "use strict";const u=require("./mergeProps-BeIu4MsM.js"),o=require("react"),$=require("./useFocusWithin-hB6WzPnG.js"),n={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function a(t={}){let{style:e,isFocusable:s}=t,[i,l]=o.useState(!1),{focusWithinProps:c}=$.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!s,onFocusWithinChange:d=>l(d)}),r=o.useMemo(()=>i?e:e?{...n,...e}:n,[i]);return{visuallyHiddenProps:{...c,style:r}}}function f(t){let{children:e,elementType:s="div",isFocusable:i,style:l,...c}=t,{visuallyHiddenProps:r}=a(t);return o.createElement(s,u.$3ef42575df84b30b$export$9d1611c77c2fe928(c,r),e)}exports.$5c3e21d68f1c4674$export$439d29a4e110a164=f;exports.$5c3e21d68f1c4674$export$a966af930f325cab=a;
2
+ //# sourceMappingURL=VisuallyHidden-Cg0LJ1Dh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VisuallyHidden-BxenYie4.js","sources":["../../../../node_modules/.pnpm/@react-aria+visually-hidden@3.8.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs"],"sourcesContent":["import {mergeProps as $7JYt2$mergeProps} from \"@react-aria/utils\";\nimport $7JYt2$react, {useState as $7JYt2$useState, useMemo as $7JYt2$useMemo} from \"react\";\nimport {useFocusWithin as $7JYt2$useFocusWithin} from \"@react-aria/interactions\";\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\n\nconst $5c3e21d68f1c4674$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $7JYt2$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $7JYt2$useFocusWithin)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $7JYt2$useMemo)(()=>{\n if (isFocused) return style;\n else if (style) return {\n ...$5c3e21d68f1c4674$var$styles,\n ...style\n };\n else return $5c3e21d68f1c4674$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $5c3e21d68f1c4674$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $7JYt2$react).createElement(Element, (0, $7JYt2$mergeProps)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$5c3e21d68f1c4674$export$a966af930f325cab as useVisuallyHidden, $5c3e21d68f1c4674$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.module.js.map\n"],"names":["$5c3e21d68f1c4674$var$styles","$5c3e21d68f1c4674$export$a966af930f325cab","props","style","isFocusable","isFocused","setFocused","$7JYt2$useState","focusWithinProps","$7JYt2$useFocusWithin","val","combinedStyles","$7JYt2$useMemo","$5c3e21d68f1c4674$export$439d29a4e110a164","children","Element","otherProps","visuallyHiddenProps","$7JYt2$react","$7JYt2$mergeProps"],"mappings":"sHAiBMA,EAA+B,CACjC,OAAQ,EACR,KAAM,gBACN,SAAU,aACV,OAAQ,MACR,OAAQ,OACR,SAAU,SACV,QAAS,EACT,SAAU,WACV,MAAO,MACP,WAAY,QAChB,EACA,SAASC,EAA0CC,EAAQ,GAAI,CAC3D,GAAI,CAAE,MAAOC,EAAO,YAAaC,CAAa,EAAGF,EAC7C,CAACG,EAAWC,CAAU,EAAQC,EAAAA,SAAiB,EAAK,EACpD,CAAE,iBAAkBC,CAAkB,EAAOC,EAAAA,0CAAuB,CACpE,WAAY,CAACL,EACb,oBAAsBM,GAAMJ,EAAWI,CAAG,CAClD,CAAK,EAEGC,EAAqBC,EAAAA,QAAgB,IACjCP,EAAkBF,EACbA,EAAc,CACnB,GAAGH,EACH,GAAGG,CACN,EACWH,EAEb,CACCK,CACR,CAAK,EACD,MAAO,CACH,oBAAqB,CACjB,GAAGG,EACH,MAAOG,CACnB,CACK,CACL,CACA,SAASE,EAA0CX,EAAO,CAEtD,GAAI,CAAE,SAAUY,EAAU,YAAaC,EAAU,MAAO,YAAaX,EAAa,MAAOD,EAAO,GAAGa,CAAY,EAAGd,EAC9G,CAAE,oBAAqBe,GAAwBhB,EAA0CC,CAAK,EAClG,OAAyBgB,EAAc,cAAcH,EAAaI,EAAAA,0CAAmBH,EAAYC,CAAmB,EAAGH,CAAQ,CACnI","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"VisuallyHidden-Cg0LJ1Dh.js","sources":["../../../../node_modules/.pnpm/@react-aria+visually-hidden@3.8.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs"],"sourcesContent":["import {mergeProps as $7JYt2$mergeProps} from \"@react-aria/utils\";\nimport $7JYt2$react, {useState as $7JYt2$useState, useMemo as $7JYt2$useMemo} from \"react\";\nimport {useFocusWithin as $7JYt2$useFocusWithin} from \"@react-aria/interactions\";\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\n\nconst $5c3e21d68f1c4674$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $7JYt2$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $7JYt2$useFocusWithin)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $7JYt2$useMemo)(()=>{\n if (isFocused) return style;\n else if (style) return {\n ...$5c3e21d68f1c4674$var$styles,\n ...style\n };\n else return $5c3e21d68f1c4674$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $5c3e21d68f1c4674$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $7JYt2$react).createElement(Element, (0, $7JYt2$mergeProps)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$5c3e21d68f1c4674$export$a966af930f325cab as useVisuallyHidden, $5c3e21d68f1c4674$export$439d29a4e110a164 as VisuallyHidden};\n//# sourceMappingURL=VisuallyHidden.module.js.map\n"],"names":["$5c3e21d68f1c4674$var$styles","$5c3e21d68f1c4674$export$a966af930f325cab","props","style","isFocusable","isFocused","setFocused","$7JYt2$useState","focusWithinProps","$7JYt2$useFocusWithin","val","combinedStyles","$7JYt2$useMemo","$5c3e21d68f1c4674$export$439d29a4e110a164","children","Element","otherProps","visuallyHiddenProps","$7JYt2$react","$7JYt2$mergeProps"],"mappings":"sHAiBMA,EAA+B,CACjC,OAAQ,EACR,KAAM,gBACN,SAAU,aACV,OAAQ,MACR,OAAQ,OACR,SAAU,SACV,QAAS,EACT,SAAU,WACV,MAAO,MACP,WAAY,QAChB,EACA,SAASC,EAA0CC,EAAQ,GAAI,CAC3D,GAAI,CAAE,MAAOC,EAAO,YAAaC,CAAa,EAAGF,EAC7C,CAACG,EAAWC,CAAU,EAAQC,EAAAA,SAAiB,EAAK,EACpD,CAAE,iBAAkBC,CAAkB,EAAOC,EAAAA,0CAAuB,CACpE,WAAY,CAACL,EACb,oBAAsBM,GAAMJ,EAAWI,CAAG,CAClD,CAAK,EAEGC,EAAqBC,EAAAA,QAAgB,IACjCP,EAAkBF,EACbA,EAAc,CACnB,GAAGH,EACH,GAAGG,CACN,EACWH,EAEb,CACCK,CACR,CAAK,EACD,MAAO,CACH,oBAAqB,CACjB,GAAGG,EACH,MAAOG,CACnB,CACK,CACL,CACA,SAASE,EAA0CX,EAAO,CAEtD,GAAI,CAAE,SAAUY,EAAU,YAAaC,EAAU,MAAO,YAAaX,EAAa,MAAOD,EAAO,GAAGa,CAAY,EAAGd,EAC9G,CAAE,oBAAqBe,GAAwBhB,EAA0CC,CAAK,EAClG,OAAyBgB,EAAc,cAAcH,EAAaI,EAAAA,0CAAmBH,EAAYC,CAAmB,EAAGH,CAAQ,CACnI","x_google_ignoreList":[0]}
@@ -4,12 +4,12 @@ import P, { useRef as m, useCallback as b, useEffect as v, useMemo as w, createC
4
4
  import { $ as S } from "./useControlledState-u436Wbp1.js";
5
5
  import { KeyboardArrowRight as J } from "@commercetools/nimbus-icons";
6
6
  import { $ as L } from "./useObjectRef-CaJ5pgjX.js";
7
- import { c as $, d as N, $ as O } from "./mergeProps-DAjoWNOq.js";
7
+ import { c as $, d as N, $ as O } from "./mergeProps-tCFA9wZ1.js";
8
8
  import { flushSync as Q } from "react-dom";
9
- import { $ as U } from "./useEvent-9hDa8zoA.js";
10
- import { $ as W } from "./SSRProvider-D8lZ0o6A.js";
11
- import { $ as X } from "./useButton-CGSIlDH9.js";
12
- import { $ as Y } from "./useFocusRing-C8yOnkHj.js";
9
+ import { $ as U } from "./useEvent-COOhq9E7.js";
10
+ import { $ as W } from "./SSRProvider-eIEwc-2s.js";
11
+ import { $ as X } from "./useButton-C5ATfvOf.js";
12
+ import { $ as Y } from "./useFocusRing-DNviWqC5.js";
13
13
  function Z(n, t, e) {
14
14
  let { isDisabled: o } = n, d = $(), r = $(), s = !W() && "onbeforematch" in document.body, l = m(null), f = b(() => {
15
15
  l.current = requestAnimationFrame(() => {
@@ -103,12 +103,12 @@ function te(n) {
103
103
  }
104
104
  };
105
105
  }
106
- const { withProvider: ne, withContext: u } = z({
106
+ const { withProvider: ne, withContext: u } = /* @__PURE__ */ z({
107
107
  key: "accordion"
108
- }), oe = ne(
108
+ }), oe = /* @__PURE__ */ ne(
109
109
  "div",
110
110
  "root"
111
- ), re = u("div", "disclosure"), de = u("button", "trigger"), ae = u("div", "panel"), ie = u("div", "accordionTitle"), g = u("div", "headerContentRight"), y = K(null), D = K(null), se = x(
111
+ ), re = /* @__PURE__ */ u("div", "disclosure"), de = /* @__PURE__ */ u("button", "trigger"), ae = /* @__PURE__ */ u("div", "panel"), ie = /* @__PURE__ */ u("div", "accordionTitle"), g = /* @__PURE__ */ u("div", "headerContentRight"), y = /* @__PURE__ */ K(null), D = /* @__PURE__ */ K(null), se = /* @__PURE__ */ x(
112
112
  ({ children: n, onExpandedChange: t, ...e }, o) => {
113
113
  const d = te({
114
114
  ...e,
@@ -118,7 +118,7 @@ const { withProvider: ne, withContext: u } = z({
118
118
  }), r = _({ key: "accordion" }), [a] = r.splitVariantProps(e);
119
119
  return /* @__PURE__ */ c(D.Provider, { value: d, children: /* @__PURE__ */ c(oe, { "data-slot": "root", ref: o, ...a, children: n }) });
120
120
  }
121
- ), ce = x(({ children: n }, t) => {
121
+ ), ce = /* @__PURE__ */ x(({ children: n }, t) => {
122
122
  const e = h(y);
123
123
  if (!e)
124
124
  throw new Error("Accordion.Header must be used within Accordion.Item");
@@ -151,7 +151,7 @@ const { withProvider: ne, withContext: u } = z({
151
151
  ]
152
152
  }
153
153
  );
154
- }), le = x((n, t) => {
154
+ }), le = /* @__PURE__ */ x((n, t) => {
155
155
  const e = h(y), o = L(
156
156
  C(e == null ? void 0 : e.panelRef, t)
157
157
  );
@@ -167,7 +167,7 @@ const { withProvider: ne, withContext: u } = z({
167
167
  }
168
168
  )
169
169
  );
170
- }), fe = x(
170
+ }), fe = /* @__PURE__ */ x(
171
171
  ({ children: n, id: t, isDisabled: e, isExpanded: o, onExpandedChange: d, value: r }, a) => {
172
172
  const s = $(), f = r || (t || s), i = h(D), I = i ? i.expandedKeys.has(f) : o, p = ee({
173
173
  isExpanded: I,
@@ -218,4 +218,4 @@ export {
218
218
  le as d,
219
219
  g as e
220
220
  };
221
- //# sourceMappingURL=accordion-Dc3IqP_d.js.map
221
+ //# sourceMappingURL=accordion-D4Qqg89m.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-Dc3IqP_d.js","sources":["../../../../node_modules/.pnpm/@react-aria+disclosure@3.0.6_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/disclosure/dist/useDisclosure.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureState.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../src/components/accordion/accordion.slots.tsx","../../src/components/accordion/accordion-context.tsx","../../src/components/accordion/components/accordion-root.tsx","../../src/components/accordion/components/accordion-header.tsx","../../src/components/accordion/components/accordion-content.tsx","../../src/components/accordion/components/accordion-item.tsx","../../src/components/accordion/accordion.tsx"],"sourcesContent":["import {flushSync as $6wN6e$flushSync} from \"react-dom\";\nimport {useRef as $6wN6e$useRef, useCallback as $6wN6e$useCallback, useEffect as $6wN6e$useEffect} from \"react\";\nimport {useId as $6wN6e$useId, useEvent as $6wN6e$useEvent, useLayoutEffect as $6wN6e$useLayoutEffect} from \"@react-aria/utils\";\nimport {useIsSSR as $6wN6e$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2024 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\n\n\nfunction $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {\n let { isDisabled: isDisabled } = props;\n let triggerId = (0, $6wN6e$useId)();\n let panelId = (0, $6wN6e$useId)();\n let isSSR = (0, $6wN6e$useIsSSR)();\n let supportsBeforeMatch = !isSSR && 'onbeforematch' in document.body;\n let raf = (0, $6wN6e$useRef)(null);\n let handleBeforeMatch = (0, $6wN6e$useCallback)(()=>{\n // Wait a frame to revert browser's removal of hidden attribute\n raf.current = requestAnimationFrame(()=>{\n if (ref.current) ref.current.setAttribute('hidden', 'until-found');\n });\n // Force sync state update\n (0, $6wN6e$flushSync)(()=>{\n state.toggle();\n });\n }, [\n ref,\n state\n ]);\n // @ts-ignore https://github.com/facebook/react/pull/24741\n (0, $6wN6e$useEvent)(ref, 'beforematch', supportsBeforeMatch ? handleBeforeMatch : null);\n (0, $6wN6e$useLayoutEffect)(()=>{\n // Cancel any pending RAF to prevent stale updates\n if (raf.current) cancelAnimationFrame(raf.current);\n // Until React supports hidden=\"until-found\": https://github.com/facebook/react/pull/24741\n if (supportsBeforeMatch && ref.current && !isDisabled) {\n if (state.isExpanded) ref.current.removeAttribute('hidden');\n else ref.current.setAttribute('hidden', 'until-found');\n }\n }, [\n isDisabled,\n ref,\n state.isExpanded,\n supportsBeforeMatch\n ]);\n (0, $6wN6e$useEffect)(()=>{\n return ()=>{\n if (raf.current) cancelAnimationFrame(raf.current);\n };\n }, []);\n return {\n buttonProps: {\n id: triggerId,\n 'aria-expanded': state.isExpanded,\n 'aria-controls': panelId,\n onPress: (e)=>{\n if (!isDisabled && e.pointerType !== 'keyboard') state.toggle();\n },\n isDisabled: isDisabled,\n onPressStart (e) {\n if (e.pointerType === 'keyboard' && !isDisabled) state.toggle();\n }\n },\n panelProps: {\n id: panelId,\n // This can be overridden at the panel element level.\n role: 'group',\n 'aria-labelledby': triggerId,\n 'aria-hidden': !state.isExpanded,\n hidden: supportsBeforeMatch ? true : !state.isExpanded\n }\n };\n}\n\n\nexport {$5e910fae8e128ead$export$6e3e27031a30522f as useDisclosure};\n//# sourceMappingURL=useDisclosure.module.js.map\n","import {useCallback as $acGV5$useCallback} from \"react\";\nimport {useControlledState as $acGV5$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2024 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 $bf996d45f4a36925$export$3fcbf6e4407997e0(props) {\n let [isExpanded, setExpanded] = (0, $acGV5$useControlledState)(props.isExpanded, props.defaultExpanded || false, props.onExpandedChange);\n const expand = (0, $acGV5$useCallback)(()=>{\n setExpanded(true);\n }, [\n setExpanded\n ]);\n const collapse = (0, $acGV5$useCallback)(()=>{\n setExpanded(false);\n }, [\n setExpanded\n ]);\n const toggle = (0, $acGV5$useCallback)(()=>{\n setExpanded(!isExpanded);\n }, [\n setExpanded,\n isExpanded\n ]);\n return {\n isExpanded: isExpanded,\n setExpanded: setExpanded,\n expand: expand,\n collapse: collapse,\n toggle: toggle\n };\n}\n\n\nexport {$bf996d45f4a36925$export$3fcbf6e4407997e0 as useDisclosureState};\n//# sourceMappingURL=useDisclosureState.module.js.map\n","import {useControlledState as $j4gLc$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $j4gLc$useMemo, useEffect as $j4gLc$useEffect} from \"react\";\n\n/*\n * Copyright 2024 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 $9385b3affbdec831$export$f36461af0ef4707d(props) {\n let { allowsMultipleExpanded: allowsMultipleExpanded = false, isDisabled: isDisabled = false } = props;\n let [expandedKeys, setExpandedKeys] = (0, $j4gLc$useControlledState)((0, $j4gLc$useMemo)(()=>props.expandedKeys ? new Set(props.expandedKeys) : undefined, [\n props.expandedKeys\n ]), (0, $j4gLc$useMemo)(()=>props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : new Set(), [\n props.defaultExpandedKeys\n ]), props.onExpandedChange);\n (0, $j4gLc$useEffect)(()=>{\n // Ensure only one item is expanded if allowsMultipleExpanded is false.\n if (!allowsMultipleExpanded && expandedKeys.size > 1) {\n let firstKey = expandedKeys.values().next().value;\n if (firstKey != null) setExpandedKeys(new Set([\n firstKey\n ]));\n }\n });\n return {\n allowsMultipleExpanded: allowsMultipleExpanded,\n isDisabled: isDisabled,\n expandedKeys: expandedKeys,\n setExpandedKeys: setExpandedKeys,\n toggleKey (key) {\n let keys;\n if (allowsMultipleExpanded) {\n keys = new Set(expandedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(expandedKeys.has(key) ? [] : [\n key\n ]);\n setExpandedKeys(keys);\n }\n };\n}\n\n\nexport {$9385b3affbdec831$export$f36461af0ef4707d as useDisclosureGroupState};\n//# sourceMappingURL=useDisclosureGroupState.module.js.map\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { AccordionRootProps } from \"./accordion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport const AccordionRoot = withProvider<HTMLDivElement, AccordionRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AccordionDisclosure = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTrigger = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanel = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitle = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContent = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import React, { createContext } from \"react\";\nimport type { DisclosureGroupState } from \"react-stately\";\n\n// Define types for the item context\nexport interface ItemContextType {\n isExpanded: boolean;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n panelRef: React.RefObject<HTMLDivElement | null>;\n buttonProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n panelProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n isFocusVisible: boolean;\n}\n\n// Create and export the contexts\nexport const ItemContext = createContext<ItemContextType | null>(null);\nexport const DisclosureGroupStateContext =\n createContext<DisclosureGroupState | null>(null);\n","import React, { forwardRef, type Key } from \"react\";\nimport { AccordionRoot as AccordionRootSlot } from \"../accordion.slots\";\nimport { useDisclosureGroupState } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport type { DisclosureGroupProps } from \"../accordion.types\";\nimport { DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionRoot = forwardRef<HTMLDivElement, DisclosureGroupProps>(\n ({ children, onExpandedChange, ...props }, forwardedRef) => {\n const state = useDisclosureGroupState({\n ...props,\n onExpandedChange: (keys: Set<Key>) => {\n onExpandedChange?.(keys.size > 0);\n },\n });\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps] = recipe.splitVariantProps(props);\n\n return (\n <DisclosureGroupStateContext.Provider value={state}>\n <AccordionRootSlot data-slot=\"root\" ref={forwardedRef} {...recipeProps}>\n {children}\n </AccordionRootSlot>\n </DisclosureGroupStateContext.Provider>\n );\n }\n);\n","import React, { forwardRef, useContext, type ReactNode } from \"react\";\nimport {\n AccordionTrigger,\n AccordionTitle,\n AccordionHeaderRightContent,\n} from \"../accordion.slots\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionHeaderProps = {\n /**\n * The text / content to display in the Header\n */\n children: ReactNode;\n};\n\nexport const AccordionHeader = forwardRef<\n HTMLButtonElement,\n AccordionHeaderProps\n>(({ children }, ref) => {\n const context = useContext(ItemContext);\n if (!context) {\n throw new Error(\"Accordion.Header must be used within Accordion.Item\");\n }\n\n // Extract HeaderRightContent if present\n const headerContent = React.Children.toArray(children).reduce<{\n main: React.ReactNode[];\n rightContent: React.ReactNode[];\n }>(\n (acc, child) => {\n if (\n React.isValidElement(child) &&\n child.type === AccordionHeaderRightContent\n ) {\n acc.rightContent.push(child);\n } else {\n acc.main.push(child);\n }\n return acc;\n },\n { main: [], rightContent: [] }\n );\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n >\n <AccordionTrigger\n ref={mergeRefs(context.triggerRef, ref)}\n {...context.buttonProps}\n data-slot=\"trigger\"\n outline={context.isFocusVisible ? undefined : \"none\"}\n >\n <KeyboardArrowRight />\n <AccordionTitle data-slot=\"accordionTitle\">\n {headerContent.main}\n </AccordionTitle>\n </AccordionTrigger>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContent data-slot=\"headerContentRight\">\n {headerContent.rightContent}\n </AccordionHeaderRightContent>\n )}\n </Flex>\n );\n});\n","import React, {\n forwardRef,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { AccordionPanel } from \"../accordion.slots\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeProps, mergeRefs } from \"@chakra-ui/react\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionContentProps = {\n /**\n * The content to display\n */\n children: ReactNode;\n} & ComponentProps<typeof AccordionPanel>;\n\n// Create Content component\nexport const AccordionContent = forwardRef<\n HTMLDivElement,\n AccordionContentProps\n>((props, forwardedRef) => {\n const context = useContext(ItemContext);\n const ref = useObjectRef<HTMLDivElement>(\n mergeRefs(context?.panelRef, forwardedRef)\n );\n\n return (\n // @ts-expect-error TODO - fix prop types merging conflict\n <AccordionPanel\n ref={ref}\n {...mergeProps({ ...context?.panelProps, ...props })}\n data-slot=\"panel\"\n >\n {props.children}\n </AccordionPanel>\n );\n});\n","import React, { forwardRef, useContext, useRef } from \"react\";\nimport { AccordionDisclosure } from \"../accordion.slots\";\nimport { useDisclosureState } from \"react-stately\";\nimport {\n useDisclosure,\n mergeProps,\n useButton,\n useFocusRing,\n useId,\n} from \"react-aria\";\nimport type { DisclosureItemProps } from \"../accordion.types\";\n// Import the contexts from the shared file\nimport { ItemContext, DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionItem = forwardRef<HTMLDivElement, DisclosureItemProps>(\n (\n { children, id, isDisabled, isExpanded, onExpandedChange, value },\n forwardedRef\n ) => {\n const defaultId = useId();\n const itemId = id || defaultId;\n const itemValue = value || itemId;\n\n // Get group state from context\n const groupState = useContext(DisclosureGroupStateContext);\n\n // Determine if expanded based on group state or prop\n const expanded = groupState\n ? groupState.expandedKeys.has(itemValue)\n : isExpanded;\n\n // Create disclosure state\n const state = useDisclosureState({\n isExpanded: expanded,\n onExpandedChange: (isExpanded) => {\n if (groupState) {\n groupState.toggleKey(itemValue);\n }\n onExpandedChange?.(isExpanded);\n },\n });\n\n // Create refs and get props\n const panelRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const disabled = isDisabled || groupState?.isDisabled || false;\n\n const { buttonProps, panelProps } = useDisclosure(\n {\n isExpanded: state.isExpanded,\n isDisabled: disabled,\n },\n state,\n panelRef\n );\n\n const { buttonProps: finalButtonProps } = useButton(\n buttonProps,\n triggerRef\n );\n const { focusProps, isFocusVisible } = useFocusRing();\n\n // Create context value for Header and Content\n const contextValue = {\n isExpanded: state.isExpanded,\n triggerRef,\n panelRef,\n buttonProps: mergeProps(finalButtonProps, focusProps),\n panelProps,\n isFocusVisible,\n };\n\n // Using the imported ItemContext\n return (\n <ItemContext.Provider value={contextValue}>\n <AccordionDisclosure\n data-slot=\"disclosure\"\n data-value={itemValue}\n data-expanded={state.isExpanded}\n ref={forwardedRef}\n >\n {children}\n </AccordionDisclosure>\n </ItemContext.Provider>\n );\n }\n);\n","import { AccordionHeaderRightContent } from \"./accordion.slots\";\nimport { AccordionRoot } from \"./components/accordion-root\";\nimport { AccordionHeader } from \"./components/accordion-header\";\nimport { AccordionContent } from \"./components/accordion-content\";\nimport { AccordionItem } from \"./components/accordion-item\";\n\n// Create the Accordion namespace object as an object literal\nexport const Accordion = {\n Root: AccordionRoot,\n Item: AccordionItem,\n Header: AccordionHeader,\n Content: AccordionContent,\n HeaderRightContent: AccordionHeaderRightContent,\n};\n\nexport {\n AccordionRoot as _AccordionRoot,\n AccordionItem as _AccordionItem,\n AccordionHeader as _AccordionHeader,\n AccordionContent as _AccordionContent,\n AccordionHeaderRightContent as _AccordionHeaderRightContent,\n};\n"],"names":["$5e910fae8e128ead$export$6e3e27031a30522f","props","state","ref","isDisabled","triggerId","$6wN6e$useId","panelId","supportsBeforeMatch","$6wN6e$useIsSSR","raf","$6wN6e$useRef","handleBeforeMatch","$6wN6e$useCallback","$6wN6e$flushSync","$6wN6e$useEvent","$6wN6e$useLayoutEffect","$6wN6e$useEffect","e","$bf996d45f4a36925$export$3fcbf6e4407997e0","isExpanded","setExpanded","$acGV5$useControlledState","expand","$acGV5$useCallback","collapse","toggle","$9385b3affbdec831$export$f36461af0ef4707d","allowsMultipleExpanded","expandedKeys","setExpandedKeys","$j4gLc$useControlledState","$j4gLc$useMemo","$j4gLc$useEffect","firstKey","key","keys","withProvider","withContext","createSlotRecipeContext","AccordionRoot","AccordionDisclosure","AccordionTrigger","AccordionPanel","AccordionTitle","AccordionHeaderRightContent","ItemContext","createContext","DisclosureGroupStateContext","forwardRef","children","onExpandedChange","forwardedRef","useDisclosureGroupState","recipe","useSlotRecipe","recipeProps","jsx","AccordionRootSlot","AccordionHeader","context","useContext","headerContent","React","acc","child","jsxs","Flex","mergeRefs","KeyboardArrowRight","AccordionContent","useObjectRef","mergeProps","AccordionItem","id","value","defaultId","useId","itemValue","groupState","expanded","useDisclosureState","panelRef","useRef","triggerRef","disabled","buttonProps","panelProps","useDisclosure","finalButtonProps","useButton","focusProps","isFocusVisible","useFocusRing","contextValue","Accordion"],"mappings":";;;;;;;;;;;;AAmBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYC,EAAU,IAAKH,GAC7BI,IAAgBC,EAAe,GAC/BC,IAAcD,EAAe,GAE7BE,IAAsB,CADVC,EAAkB,KACE,mBAAmB,SAAS,MAC5DC,IAAUC,EAAe,IAAI,GAC7BC,IAAwBC,EAAoB,MAAI;AAEhD,IAAAH,EAAI,UAAU,sBAAsB,MAAI;AACpC,MAAIP,EAAI,WAASA,EAAI,QAAQ,aAAa,UAAU,aAAa;AAAA,IAC7E,CAAS,GAEGW,EAAkB,MAAI;AACtB,MAAAZ,EAAM,OAAQ;AAAA,IAC1B,CAAS;AAAA,EACT,GAAO;AAAA,IACCC;AAAA,IACAD;AAAA,EACR,CAAK;AAED,SAAIa,EAAiBZ,GAAK,eAAeK,IAAsBI,IAAoB,IAAI,GACnFI,EAAwB,MAAI;AAE5B,IAAIN,EAAI,WAAS,qBAAqBA,EAAI,OAAO,GAE7CF,KAAuBL,EAAI,WAAW,CAACC,MACnCF,EAAM,aAAYC,EAAI,QAAQ,gBAAgB,QAAQ,IACrDA,EAAI,QAAQ,aAAa,UAAU,aAAa;AAAA,EAEjE,GAAO;AAAA,IACCC;AAAA,IACAD;AAAA,IACAD,EAAM;AAAA,IACNM;AAAA,EACR,CAAK,GACGS,EAAkB,MACX,MAAI;AACP,IAAIP,EAAI,WAAS,qBAAqBA,EAAI,OAAO;AAAA,EACpD,G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AAI,GACtCC,IAAaD,EAA0B,IAAI,GAC3CE,IAAWjF,MAAc2E,KAAA,gBAAAA,EAAY,eAAc,IAEnD,EAAE,aAAAO,GAAa,YAAAC,EAAA,IAAeC;AAAAA,MAClC;AAAA,QACE,YAAYtF,EAAM;AAAA,QAClB,YAAYmF;AAAA,MACd;AAAA,MACAnF;AAAA,MACAgF;AAAA,IACF,GAEM,EAAE,aAAaO,EAAA,IAAqBC;AAAAA,MACxCJ;AAAA,MACAF;AAAA,IACF,GACM,EAAE,YAAAO,GAAY,gBAAAC,EAAe,IAAIC,EAAa,GAG9CC,IAAe;AAAA,MACnB,YAAY5F,EAAM;AAAA,MAClB,YAAAkF;AAAA,MACA,UAAAF;AAAA,MACA,aAAaV,EAAWiB,GAAkBE,CAAU;AAAA,MACpD,YAAAJ;AAAA,MACA,gBAAAK;AAAA,IACF;AAGA,WACG,gBAAAnC,EAAAX,EAAY,UAAZ,EAAqB,OAAOgD,GAC3B,UAAA,gBAAArC;AAAA,MAAChB;AAAA,MAAA;AAAA,QACC,aAAU;AAAA,QACV,cAAYqC;AAAA,QACZ,iBAAe5E,EAAM;AAAA,QACrB,KAAKkD;AAAA,QAEJ,UAAAF;AAAA,MAAA;AAAA,IAAA,GAEL;AAAA,EAAA;AAGN,GC/Ea6C,KAAY;AAAA,EACvB,MAAMvD;AAAA,EACN,MAAMiC;AAAA,EACN,QAAQd;AAAA,EACR,SAASW;AAAA,EACT,oBAAoBzB;AACtB;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"accordion-D4Qqg89m.js","sources":["../../../../node_modules/.pnpm/@react-aria+disclosure@3.0.6_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/disclosure/dist/useDisclosure.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureState.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../src/components/accordion/accordion.slots.tsx","../../src/components/accordion/accordion-context.tsx","../../src/components/accordion/components/accordion-root.tsx","../../src/components/accordion/components/accordion-header.tsx","../../src/components/accordion/components/accordion-content.tsx","../../src/components/accordion/components/accordion-item.tsx","../../src/components/accordion/accordion.tsx"],"sourcesContent":["import {flushSync as $6wN6e$flushSync} from \"react-dom\";\nimport {useRef as $6wN6e$useRef, useCallback as $6wN6e$useCallback, useEffect as $6wN6e$useEffect} from \"react\";\nimport {useId as $6wN6e$useId, useEvent as $6wN6e$useEvent, useLayoutEffect as $6wN6e$useLayoutEffect} from \"@react-aria/utils\";\nimport {useIsSSR as $6wN6e$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2024 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\n\n\nfunction $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {\n let { isDisabled: isDisabled } = props;\n let triggerId = (0, $6wN6e$useId)();\n let panelId = (0, $6wN6e$useId)();\n let isSSR = (0, $6wN6e$useIsSSR)();\n let supportsBeforeMatch = !isSSR && 'onbeforematch' in document.body;\n let raf = (0, $6wN6e$useRef)(null);\n let handleBeforeMatch = (0, $6wN6e$useCallback)(()=>{\n // Wait a frame to revert browser's removal of hidden attribute\n raf.current = requestAnimationFrame(()=>{\n if (ref.current) ref.current.setAttribute('hidden', 'until-found');\n });\n // Force sync state update\n (0, $6wN6e$flushSync)(()=>{\n state.toggle();\n });\n }, [\n ref,\n state\n ]);\n // @ts-ignore https://github.com/facebook/react/pull/24741\n (0, $6wN6e$useEvent)(ref, 'beforematch', supportsBeforeMatch ? handleBeforeMatch : null);\n (0, $6wN6e$useLayoutEffect)(()=>{\n // Cancel any pending RAF to prevent stale updates\n if (raf.current) cancelAnimationFrame(raf.current);\n // Until React supports hidden=\"until-found\": https://github.com/facebook/react/pull/24741\n if (supportsBeforeMatch && ref.current && !isDisabled) {\n if (state.isExpanded) ref.current.removeAttribute('hidden');\n else ref.current.setAttribute('hidden', 'until-found');\n }\n }, [\n isDisabled,\n ref,\n state.isExpanded,\n supportsBeforeMatch\n ]);\n (0, $6wN6e$useEffect)(()=>{\n return ()=>{\n if (raf.current) cancelAnimationFrame(raf.current);\n };\n }, []);\n return {\n buttonProps: {\n id: triggerId,\n 'aria-expanded': state.isExpanded,\n 'aria-controls': panelId,\n onPress: (e)=>{\n if (!isDisabled && e.pointerType !== 'keyboard') state.toggle();\n },\n isDisabled: isDisabled,\n onPressStart (e) {\n if (e.pointerType === 'keyboard' && !isDisabled) state.toggle();\n }\n },\n panelProps: {\n id: panelId,\n // This can be overridden at the panel element level.\n role: 'group',\n 'aria-labelledby': triggerId,\n 'aria-hidden': !state.isExpanded,\n hidden: supportsBeforeMatch ? true : !state.isExpanded\n }\n };\n}\n\n\nexport {$5e910fae8e128ead$export$6e3e27031a30522f as useDisclosure};\n//# sourceMappingURL=useDisclosure.module.js.map\n","import {useCallback as $acGV5$useCallback} from \"react\";\nimport {useControlledState as $acGV5$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2024 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 $bf996d45f4a36925$export$3fcbf6e4407997e0(props) {\n let [isExpanded, setExpanded] = (0, $acGV5$useControlledState)(props.isExpanded, props.defaultExpanded || false, props.onExpandedChange);\n const expand = (0, $acGV5$useCallback)(()=>{\n setExpanded(true);\n }, [\n setExpanded\n ]);\n const collapse = (0, $acGV5$useCallback)(()=>{\n setExpanded(false);\n }, [\n setExpanded\n ]);\n const toggle = (0, $acGV5$useCallback)(()=>{\n setExpanded(!isExpanded);\n }, [\n setExpanded,\n isExpanded\n ]);\n return {\n isExpanded: isExpanded,\n setExpanded: setExpanded,\n expand: expand,\n collapse: collapse,\n toggle: toggle\n };\n}\n\n\nexport {$bf996d45f4a36925$export$3fcbf6e4407997e0 as useDisclosureState};\n//# sourceMappingURL=useDisclosureState.module.js.map\n","import {useControlledState as $j4gLc$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $j4gLc$useMemo, useEffect as $j4gLc$useEffect} from \"react\";\n\n/*\n * Copyright 2024 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 $9385b3affbdec831$export$f36461af0ef4707d(props) {\n let { allowsMultipleExpanded: allowsMultipleExpanded = false, isDisabled: isDisabled = false } = props;\n let [expandedKeys, setExpandedKeys] = (0, $j4gLc$useControlledState)((0, $j4gLc$useMemo)(()=>props.expandedKeys ? new Set(props.expandedKeys) : undefined, [\n props.expandedKeys\n ]), (0, $j4gLc$useMemo)(()=>props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : new Set(), [\n props.defaultExpandedKeys\n ]), props.onExpandedChange);\n (0, $j4gLc$useEffect)(()=>{\n // Ensure only one item is expanded if allowsMultipleExpanded is false.\n if (!allowsMultipleExpanded && expandedKeys.size > 1) {\n let firstKey = expandedKeys.values().next().value;\n if (firstKey != null) setExpandedKeys(new Set([\n firstKey\n ]));\n }\n });\n return {\n allowsMultipleExpanded: allowsMultipleExpanded,\n isDisabled: isDisabled,\n expandedKeys: expandedKeys,\n setExpandedKeys: setExpandedKeys,\n toggleKey (key) {\n let keys;\n if (allowsMultipleExpanded) {\n keys = new Set(expandedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(expandedKeys.has(key) ? [] : [\n key\n ]);\n setExpandedKeys(keys);\n }\n };\n}\n\n\nexport {$9385b3affbdec831$export$f36461af0ef4707d as useDisclosureGroupState};\n//# sourceMappingURL=useDisclosureGroupState.module.js.map\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { AccordionRootProps } from \"./accordion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport const AccordionRoot = withProvider<HTMLDivElement, AccordionRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AccordionDisclosure = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTrigger = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanel = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitle = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContent = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import React, { createContext } from \"react\";\nimport type { DisclosureGroupState } from \"react-stately\";\n\n// Define types for the item context\nexport interface ItemContextType {\n isExpanded: boolean;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n panelRef: React.RefObject<HTMLDivElement | null>;\n buttonProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n panelProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n isFocusVisible: boolean;\n}\n\n// Create and export the contexts\nexport const ItemContext = createContext<ItemContextType | null>(null);\nexport const DisclosureGroupStateContext =\n createContext<DisclosureGroupState | null>(null);\n","import React, { forwardRef, type Key } from \"react\";\nimport { AccordionRoot as AccordionRootSlot } from \"../accordion.slots\";\nimport { useDisclosureGroupState } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport type { DisclosureGroupProps } from \"../accordion.types\";\nimport { DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionRoot = forwardRef<HTMLDivElement, DisclosureGroupProps>(\n ({ children, onExpandedChange, ...props }, forwardedRef) => {\n const state = useDisclosureGroupState({\n ...props,\n onExpandedChange: (keys: Set<Key>) => {\n onExpandedChange?.(keys.size > 0);\n },\n });\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps] = recipe.splitVariantProps(props);\n\n return (\n <DisclosureGroupStateContext.Provider value={state}>\n <AccordionRootSlot data-slot=\"root\" ref={forwardedRef} {...recipeProps}>\n {children}\n </AccordionRootSlot>\n </DisclosureGroupStateContext.Provider>\n );\n }\n);\n","import React, { forwardRef, useContext, type ReactNode } from \"react\";\nimport {\n AccordionTrigger,\n AccordionTitle,\n AccordionHeaderRightContent,\n} from \"../accordion.slots\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionHeaderProps = {\n /**\n * The text / content to display in the Header\n */\n children: ReactNode;\n};\n\nexport const AccordionHeader = forwardRef<\n HTMLButtonElement,\n AccordionHeaderProps\n>(({ children }, ref) => {\n const context = useContext(ItemContext);\n if (!context) {\n throw new Error(\"Accordion.Header must be used within Accordion.Item\");\n }\n\n // Extract HeaderRightContent if present\n const headerContent = React.Children.toArray(children).reduce<{\n main: React.ReactNode[];\n rightContent: React.ReactNode[];\n }>(\n (acc, child) => {\n if (\n React.isValidElement(child) &&\n child.type === AccordionHeaderRightContent\n ) {\n acc.rightContent.push(child);\n } else {\n acc.main.push(child);\n }\n return acc;\n },\n { main: [], rightContent: [] }\n );\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n >\n <AccordionTrigger\n ref={mergeRefs(context.triggerRef, ref)}\n {...context.buttonProps}\n data-slot=\"trigger\"\n outline={context.isFocusVisible ? undefined : \"none\"}\n >\n <KeyboardArrowRight />\n <AccordionTitle data-slot=\"accordionTitle\">\n {headerContent.main}\n </AccordionTitle>\n </AccordionTrigger>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContent data-slot=\"headerContentRight\">\n {headerContent.rightContent}\n </AccordionHeaderRightContent>\n )}\n </Flex>\n );\n});\n","import React, {\n forwardRef,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { AccordionPanel } from \"../accordion.slots\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeProps, mergeRefs } from \"@chakra-ui/react\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionContentProps = {\n /**\n * The content to display\n */\n children: ReactNode;\n} & ComponentProps<typeof AccordionPanel>;\n\n// Create Content component\nexport const AccordionContent = forwardRef<\n HTMLDivElement,\n AccordionContentProps\n>((props, forwardedRef) => {\n const context = useContext(ItemContext);\n const ref = useObjectRef<HTMLDivElement>(\n mergeRefs(context?.panelRef, forwardedRef)\n );\n\n return (\n // @ts-expect-error TODO - fix prop types merging conflict\n <AccordionPanel\n ref={ref}\n {...mergeProps({ ...context?.panelProps, ...props })}\n data-slot=\"panel\"\n >\n {props.children}\n </AccordionPanel>\n );\n});\n","import React, { forwardRef, useContext, useRef } from \"react\";\nimport { AccordionDisclosure } from \"../accordion.slots\";\nimport { useDisclosureState } from \"react-stately\";\nimport {\n useDisclosure,\n mergeProps,\n useButton,\n useFocusRing,\n useId,\n} from \"react-aria\";\nimport type { DisclosureItemProps } from \"../accordion.types\";\n// Import the contexts from the shared file\nimport { ItemContext, DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionItem = forwardRef<HTMLDivElement, DisclosureItemProps>(\n (\n { children, id, isDisabled, isExpanded, onExpandedChange, value },\n forwardedRef\n ) => {\n const defaultId = useId();\n const itemId = id || defaultId;\n const itemValue = value || itemId;\n\n // Get group state from context\n const groupState = useContext(DisclosureGroupStateContext);\n\n // Determine if expanded based on group state or prop\n const expanded = groupState\n ? groupState.expandedKeys.has(itemValue)\n : isExpanded;\n\n // Create disclosure state\n const state = useDisclosureState({\n isExpanded: expanded,\n onExpandedChange: (isExpanded) => {\n if (groupState) {\n groupState.toggleKey(itemValue);\n }\n onExpandedChange?.(isExpanded);\n },\n });\n\n // Create refs and get props\n const panelRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const disabled = isDisabled || groupState?.isDisabled || false;\n\n const { buttonProps, panelProps } = useDisclosure(\n {\n isExpanded: state.isExpanded,\n isDisabled: disabled,\n },\n state,\n panelRef\n );\n\n const { buttonProps: finalButtonProps } = useButton(\n buttonProps,\n triggerRef\n );\n const { focusProps, isFocusVisible } = useFocusRing();\n\n // Create context value for Header and Content\n const contextValue = {\n isExpanded: state.isExpanded,\n triggerRef,\n panelRef,\n buttonProps: mergeProps(finalButtonProps, focusProps),\n panelProps,\n isFocusVisible,\n };\n\n // Using the imported ItemContext\n return (\n <ItemContext.Provider value={contextValue}>\n <AccordionDisclosure\n data-slot=\"disclosure\"\n data-value={itemValue}\n data-expanded={state.isExpanded}\n ref={forwardedRef}\n >\n {children}\n </AccordionDisclosure>\n </ItemContext.Provider>\n );\n }\n);\n","import { AccordionHeaderRightContent } from \"./accordion.slots\";\nimport { AccordionRoot } from \"./components/accordion-root\";\nimport { AccordionHeader } from \"./components/accordion-header\";\nimport { AccordionContent } from \"./components/accordion-content\";\nimport { AccordionItem } from \"./components/accordion-item\";\n\n// Create the Accordion namespace object as an object literal\nexport const Accordion = {\n Root: AccordionRoot,\n Item: AccordionItem,\n Header: AccordionHeader,\n Content: AccordionContent,\n HeaderRightContent: AccordionHeaderRightContent,\n};\n\nexport {\n AccordionRoot as _AccordionRoot,\n AccordionItem as _AccordionItem,\n AccordionHeader as _AccordionHeader,\n AccordionContent as _AccordionContent,\n AccordionHeaderRightContent as _AccordionHeaderRightContent,\n};\n"],"names":["$5e910fae8e128ead$export$6e3e27031a30522f","props","state","ref","isDisabled","triggerId","$6wN6e$useId","panelId","supportsBeforeMatch","$6wN6e$useIsSSR","raf","$6wN6e$useRef","handleBeforeMatch","$6wN6e$useCallback","$6wN6e$flushSync","$6wN6e$useEvent","$6wN6e$useLayoutEffect","$6wN6e$useEffect","e","$bf996d45f4a36925$export$3fcbf6e4407997e0","isExpanded","setExpanded","$acGV5$useControlledState","expand","$acGV5$useCallback","collapse","toggle","$9385b3affbdec831$export$f36461af0ef4707d","allowsMultipleExpanded","expandedKeys","setExpandedKeys","$j4gLc$useControlledState","$j4gLc$useMemo","$j4gLc$useEffect","firstKey","key","keys","withProvider","withContext","createSlotRecipeContext","AccordionRoot","AccordionDisclosure","AccordionTrigger","AccordionPanel","AccordionTitle","AccordionHeaderRightContent","ItemContext","createContext","DisclosureGroupStateContext","forwardRef","children","onExpandedChange","forwardedRef","useDisclosureGroupState","recipe","useSlotRecipe","recipeProps","jsx","AccordionRootSlot","AccordionHeader","context","useContext","headerContent","React","acc","child","jsxs","Flex","mergeRefs","KeyboardArrowRight","AccordionContent","useObjectRef","mergeProps","AccordionItem","id","value","defaultId","useId","itemValue","groupState","expanded","useDisclosureState","panelRef","useRef","triggerRef","disabled","buttonProps","panelProps","useDisclosure","finalButtonProps","useButton","focusProps","isFocusVisible","useFocusRing","contextValue","Accordion"],"mappings":";;;;;;;;;;;;AAmBA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYC,EAAU,I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,YAAAO,GAAY,gBAAAC,EAAe,IAAIC,EAAa,GAG9CC,IAAe;AAAA,MACnB,YAAY5F,EAAM;AAAA,MAClB,YAAAkF;AAAA,MACA,UAAAF;AAAA,MACA,aAAaV,EAAWiB,GAAkBE,CAAU;AAAA,MACpD,YAAAJ;AAAA,MACA,gBAAAK;AAAA,IACF;AAGA,WACG,gBAAAnC,EAAAX,EAAY,UAAZ,EAAqB,OAAOgD,GAC3B,UAAA,gBAAArC;AAAA,MAAChB;AAAA,MAAA;AAAA,QACC,aAAU;AAAA,QACV,cAAYqC;AAAA,QACZ,iBAAe5E,EAAM;AAAA,QACrB,KAAKkD;AAAA,QAEJ,UAAAF;AAAA,MAAA;AAAA,IAAA,GAEL;AAAA,EAAA;AAGN,GC/Ea6C,KAAY;AAAA,EACvB,MAAMvD;AAAA,EACN,MAAMiC;AAAA,EACN,QAAQd;AAAA,EACR,SAASW;AAAA,EACT,oBAAoBzB;AACtB;","x_google_ignoreList":[0,1,2]}
@@ -1,2 +1,2 @@
1
- "use strict";const f=require("@chakra-ui/react"),c=require("react/jsx-runtime"),d=require("react"),A=require("./useControlledState-D0L6S_5r.js"),M=require("@commercetools/nimbus-icons"),T=require("./useObjectRef-4v2MxSjQ.js"),x=require("./mergeProps-BeIu4MsM.js"),V=require("react-dom"),k=require("./useEvent-DCXRKhH2.js"),B=require("./SSRProvider-DZRLwxPS.js"),z=require("./useButton-BRqxk71F.js"),O=require("./useFocusRing-C4z9NtLP.js");function G(n,t,e){let{isDisabled:o}=n,s=x.$bdb11010cef70236$export$f680877a34711e37(),r=x.$bdb11010cef70236$export$f680877a34711e37(),l=!B.$b5e257d569688ac6$export$535bd6ca7f90a273()&&"onbeforematch"in document.body,u=d.useRef(null),p=d.useCallback(()=>{u.current=requestAnimationFrame(()=>{e.current&&e.current.setAttribute("hidden","until-found")}),V.flushSync(()=>{t.toggle()})},[e,t]);return k.$e9faafb641e167db$export$90fc3a17d93f704c(e,"beforematch",l?p:null),x.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{u.current&&cancelAnimationFrame(u.current),l&&e.current&&!o&&(t.isExpanded?e.current.removeAttribute("hidden"):e.current.setAttribute("hidden","until-found"))},[o,e,t.isExpanded,l]),d.useEffect(()=>()=>{u.current&&cancelAnimationFrame(u.current)},[]),{buttonProps:{id:s,"aria-expanded":t.isExpanded,"aria-controls":r,onPress:a=>{!o&&a.pointerType!=="keyboard"&&t.toggle()},isDisabled:o,onPressStart(a){a.pointerType==="keyboard"&&!o&&t.toggle()}},panelProps:{id:r,role:"group","aria-labelledby":s,"aria-hidden":!t.isExpanded,hidden:l?!0:!t.isExpanded}}}function J(n){let[t,e]=A.$458b0a5536c1a7cf$export$40bfa8c7b0832715(n.isExpanded,n.defaultExpanded||!1,n.onExpandedChange);const o=d.useCallback(()=>{e(!0)},[e]),s=d.useCallback(()=>{e(!1)},[e]),r=d.useCallback(()=>{e(!t)},[e,t]);return{isExpanded:t,setExpanded:e,expand:o,collapse:s,toggle:r}}function L(n){let{allowsMultipleExpanded:t=!1,isDisabled:e=!1}=n,[o,s]=A.$458b0a5536c1a7cf$export$40bfa8c7b0832715(d.useMemo(()=>n.expandedKeys?new Set(n.expandedKeys):void 0,[n.expandedKeys]),d.useMemo(()=>n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,[n.defaultExpandedKeys]),n.onExpandedChange);return d.useEffect(()=>{if(!t&&o.size>1){let r=o.values().next().value;r!=null&&s(new Set([r]))}}),{allowsMultipleExpanded:t,isDisabled:e,expandedKeys:o,setExpandedKeys:s,toggleKey(r){let i;t?(i=new Set(o),i.has(r)?i.delete(r):i.add(r)):i=new Set(o.has(r)?[]:[r]),s(i)}}}const{withProvider:N,withContext:b}=f.createSlotRecipeContext({key:"accordion"}),Q=N("div","root"),U=b("div","disclosure"),W=b("button","trigger"),X=b("div","panel"),Y=b("div","accordionTitle"),g=b("div","headerContentRight"),h=d.createContext(null),C=d.createContext(null),E=d.forwardRef(({children:n,onExpandedChange:t,...e},o)=>{const s=L({...e,onExpandedChange:l=>{t==null||t(l.size>0)}}),r=f.useSlotRecipe({key:"accordion"}),[i]=r.splitVariantProps(e);return c.jsx(C.Provider,{value:s,children:c.jsx(Q,{"data-slot":"root",ref:o,...i,children:n})})}),y=d.forwardRef(({children:n},t)=>{const e=d.useContext(h);if(!e)throw new Error("Accordion.Header must be used within Accordion.Item");const o=d.Children.toArray(n).reduce((s,r)=>(d.isValidElement(r)&&r.type===g?s.rightContent.push(r):s.main.push(r),s),{main:[],rightContent:[]});return c.jsxs(f.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[c.jsxs(W,{ref:f.mergeRefs(e.triggerRef,t),...e.buttonProps,"data-slot":"trigger",outline:e.isFocusVisible?void 0:"none",children:[c.jsx(M.KeyboardArrowRight,{}),c.jsx(Y,{"data-slot":"accordionTitle",children:o.main})]}),o.rightContent.length>0&&c.jsx(g,{"data-slot":"headerContentRight",children:o.rightContent})]})}),P=d.forwardRef((n,t)=>{const e=d.useContext(h),o=T.$df56164dff5785e2$export$4338b53315abf666(f.mergeRefs(e==null?void 0:e.panelRef,t));return c.jsx(X,{ref:o,...f.mergeProps({...e==null?void 0:e.panelProps,...n}),"data-slot":"panel",children:n.children})}),w=d.forwardRef(({children:n,id:t,isDisabled:e,isExpanded:o,onExpandedChange:s,value:r},i)=>{const l=x.$bdb11010cef70236$export$f680877a34711e37(),p=r||(t||l),a=d.useContext(C),S=a?a.expandedKeys.has(p):o,$=J({isExpanded:S,onExpandedChange:H=>{a&&a.toggleKey(p),s==null||s(H)}}),m=d.useRef(null),R=d.useRef(null),v=e||(a==null?void 0:a.isDisabled)||!1,{buttonProps:K,panelProps:j}=G({isExpanded:$.isExpanded,isDisabled:v},$,m),{buttonProps:q}=z.$701a24aa0da5b062$export$ea18c227d4417cc3(K,R),{focusProps:I,isFocusVisible:D}=O.$f7dceffc5ad7768b$export$4e328f61c538687f(),F={isExpanded:$.isExpanded,triggerRef:R,panelRef:m,buttonProps:x.$3ef42575df84b30b$export$9d1611c77c2fe928(q,I),panelProps:j,isFocusVisible:D};return c.jsx(h.Provider,{value:F,children:c.jsx(U,{"data-slot":"disclosure","data-value":p,"data-expanded":$.isExpanded,ref:i,children:n})})}),Z={Root:E,Item:w,Header:y,Content:P,HeaderRightContent:g};exports.Accordion=Z;exports.AccordionContent=P;exports.AccordionHeader=y;exports.AccordionHeaderRightContent=g;exports.AccordionItem=w;exports.AccordionRoot=E;
2
- //# sourceMappingURL=accordion-8pelAIyn.js.map
1
+ "use strict";const f=require("@chakra-ui/react"),c=require("react/jsx-runtime"),d=require("react"),A=require("./useControlledState-D0L6S_5r.js"),M=require("@commercetools/nimbus-icons"),T=require("./useObjectRef-4v2MxSjQ.js"),x=require("./mergeProps-BeIu4MsM.js"),V=require("react-dom"),k=require("./useEvent-DCXRKhH2.js"),B=require("./SSRProvider-DZRLwxPS.js"),z=require("./useButton-BZrUUsJ0.js"),O=require("./useFocusRing-CYHdvund.js");function G(n,t,e){let{isDisabled:o}=n,s=x.$bdb11010cef70236$export$f680877a34711e37(),r=x.$bdb11010cef70236$export$f680877a34711e37(),l=!B.$b5e257d569688ac6$export$535bd6ca7f90a273()&&"onbeforematch"in document.body,u=d.useRef(null),p=d.useCallback(()=>{u.current=requestAnimationFrame(()=>{e.current&&e.current.setAttribute("hidden","until-found")}),V.flushSync(()=>{t.toggle()})},[e,t]);return k.$e9faafb641e167db$export$90fc3a17d93f704c(e,"beforematch",l?p:null),x.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{u.current&&cancelAnimationFrame(u.current),l&&e.current&&!o&&(t.isExpanded?e.current.removeAttribute("hidden"):e.current.setAttribute("hidden","until-found"))},[o,e,t.isExpanded,l]),d.useEffect(()=>()=>{u.current&&cancelAnimationFrame(u.current)},[]),{buttonProps:{id:s,"aria-expanded":t.isExpanded,"aria-controls":r,onPress:a=>{!o&&a.pointerType!=="keyboard"&&t.toggle()},isDisabled:o,onPressStart(a){a.pointerType==="keyboard"&&!o&&t.toggle()}},panelProps:{id:r,role:"group","aria-labelledby":s,"aria-hidden":!t.isExpanded,hidden:l?!0:!t.isExpanded}}}function J(n){let[t,e]=A.$458b0a5536c1a7cf$export$40bfa8c7b0832715(n.isExpanded,n.defaultExpanded||!1,n.onExpandedChange);const o=d.useCallback(()=>{e(!0)},[e]),s=d.useCallback(()=>{e(!1)},[e]),r=d.useCallback(()=>{e(!t)},[e,t]);return{isExpanded:t,setExpanded:e,expand:o,collapse:s,toggle:r}}function L(n){let{allowsMultipleExpanded:t=!1,isDisabled:e=!1}=n,[o,s]=A.$458b0a5536c1a7cf$export$40bfa8c7b0832715(d.useMemo(()=>n.expandedKeys?new Set(n.expandedKeys):void 0,[n.expandedKeys]),d.useMemo(()=>n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,[n.defaultExpandedKeys]),n.onExpandedChange);return d.useEffect(()=>{if(!t&&o.size>1){let r=o.values().next().value;r!=null&&s(new Set([r]))}}),{allowsMultipleExpanded:t,isDisabled:e,expandedKeys:o,setExpandedKeys:s,toggleKey(r){let i;t?(i=new Set(o),i.has(r)?i.delete(r):i.add(r)):i=new Set(o.has(r)?[]:[r]),s(i)}}}const{withProvider:N,withContext:b}=f.createSlotRecipeContext({key:"accordion"}),Q=N("div","root"),U=b("div","disclosure"),W=b("button","trigger"),X=b("div","panel"),Y=b("div","accordionTitle"),g=b("div","headerContentRight"),h=d.createContext(null),C=d.createContext(null),E=d.forwardRef(({children:n,onExpandedChange:t,...e},o)=>{const s=L({...e,onExpandedChange:l=>{t==null||t(l.size>0)}}),r=f.useSlotRecipe({key:"accordion"}),[i]=r.splitVariantProps(e);return c.jsx(C.Provider,{value:s,children:c.jsx(Q,{"data-slot":"root",ref:o,...i,children:n})})}),y=d.forwardRef(({children:n},t)=>{const e=d.useContext(h);if(!e)throw new Error("Accordion.Header must be used within Accordion.Item");const o=d.Children.toArray(n).reduce((s,r)=>(d.isValidElement(r)&&r.type===g?s.rightContent.push(r):s.main.push(r),s),{main:[],rightContent:[]});return c.jsxs(f.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[c.jsxs(W,{ref:f.mergeRefs(e.triggerRef,t),...e.buttonProps,"data-slot":"trigger",outline:e.isFocusVisible?void 0:"none",children:[c.jsx(M.KeyboardArrowRight,{}),c.jsx(Y,{"data-slot":"accordionTitle",children:o.main})]}),o.rightContent.length>0&&c.jsx(g,{"data-slot":"headerContentRight",children:o.rightContent})]})}),P=d.forwardRef((n,t)=>{const e=d.useContext(h),o=T.$df56164dff5785e2$export$4338b53315abf666(f.mergeRefs(e==null?void 0:e.panelRef,t));return c.jsx(X,{ref:o,...f.mergeProps({...e==null?void 0:e.panelProps,...n}),"data-slot":"panel",children:n.children})}),w=d.forwardRef(({children:n,id:t,isDisabled:e,isExpanded:o,onExpandedChange:s,value:r},i)=>{const l=x.$bdb11010cef70236$export$f680877a34711e37(),p=r||(t||l),a=d.useContext(C),S=a?a.expandedKeys.has(p):o,$=J({isExpanded:S,onExpandedChange:H=>{a&&a.toggleKey(p),s==null||s(H)}}),m=d.useRef(null),R=d.useRef(null),v=e||(a==null?void 0:a.isDisabled)||!1,{buttonProps:K,panelProps:j}=G({isExpanded:$.isExpanded,isDisabled:v},$,m),{buttonProps:q}=z.$701a24aa0da5b062$export$ea18c227d4417cc3(K,R),{focusProps:I,isFocusVisible:D}=O.$f7dceffc5ad7768b$export$4e328f61c538687f(),F={isExpanded:$.isExpanded,triggerRef:R,panelRef:m,buttonProps:x.$3ef42575df84b30b$export$9d1611c77c2fe928(q,I),panelProps:j,isFocusVisible:D};return c.jsx(h.Provider,{value:F,children:c.jsx(U,{"data-slot":"disclosure","data-value":p,"data-expanded":$.isExpanded,ref:i,children:n})})}),Z={Root:E,Item:w,Header:y,Content:P,HeaderRightContent:g};exports.Accordion=Z;exports.AccordionContent=P;exports.AccordionHeader=y;exports.AccordionHeaderRightContent=g;exports.AccordionItem=w;exports.AccordionRoot=E;
2
+ //# sourceMappingURL=accordion-vrKLW-re.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-8pelAIyn.js","sources":["../../../../node_modules/.pnpm/@react-aria+disclosure@3.0.6_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/disclosure/dist/useDisclosure.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureState.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../src/components/accordion/accordion.slots.tsx","../../src/components/accordion/accordion-context.tsx","../../src/components/accordion/components/accordion-root.tsx","../../src/components/accordion/components/accordion-header.tsx","../../src/components/accordion/components/accordion-content.tsx","../../src/components/accordion/components/accordion-item.tsx","../../src/components/accordion/accordion.tsx"],"sourcesContent":["import {flushSync as $6wN6e$flushSync} from \"react-dom\";\nimport {useRef as $6wN6e$useRef, useCallback as $6wN6e$useCallback, useEffect as $6wN6e$useEffect} from \"react\";\nimport {useId as $6wN6e$useId, useEvent as $6wN6e$useEvent, useLayoutEffect as $6wN6e$useLayoutEffect} from \"@react-aria/utils\";\nimport {useIsSSR as $6wN6e$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2024 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\n\n\nfunction $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {\n let { isDisabled: isDisabled } = props;\n let triggerId = (0, $6wN6e$useId)();\n let panelId = (0, $6wN6e$useId)();\n let isSSR = (0, $6wN6e$useIsSSR)();\n let supportsBeforeMatch = !isSSR && 'onbeforematch' in document.body;\n let raf = (0, $6wN6e$useRef)(null);\n let handleBeforeMatch = (0, $6wN6e$useCallback)(()=>{\n // Wait a frame to revert browser's removal of hidden attribute\n raf.current = requestAnimationFrame(()=>{\n if (ref.current) ref.current.setAttribute('hidden', 'until-found');\n });\n // Force sync state update\n (0, $6wN6e$flushSync)(()=>{\n state.toggle();\n });\n }, [\n ref,\n state\n ]);\n // @ts-ignore https://github.com/facebook/react/pull/24741\n (0, $6wN6e$useEvent)(ref, 'beforematch', supportsBeforeMatch ? handleBeforeMatch : null);\n (0, $6wN6e$useLayoutEffect)(()=>{\n // Cancel any pending RAF to prevent stale updates\n if (raf.current) cancelAnimationFrame(raf.current);\n // Until React supports hidden=\"until-found\": https://github.com/facebook/react/pull/24741\n if (supportsBeforeMatch && ref.current && !isDisabled) {\n if (state.isExpanded) ref.current.removeAttribute('hidden');\n else ref.current.setAttribute('hidden', 'until-found');\n }\n }, [\n isDisabled,\n ref,\n state.isExpanded,\n supportsBeforeMatch\n ]);\n (0, $6wN6e$useEffect)(()=>{\n return ()=>{\n if (raf.current) cancelAnimationFrame(raf.current);\n };\n }, []);\n return {\n buttonProps: {\n id: triggerId,\n 'aria-expanded': state.isExpanded,\n 'aria-controls': panelId,\n onPress: (e)=>{\n if (!isDisabled && e.pointerType !== 'keyboard') state.toggle();\n },\n isDisabled: isDisabled,\n onPressStart (e) {\n if (e.pointerType === 'keyboard' && !isDisabled) state.toggle();\n }\n },\n panelProps: {\n id: panelId,\n // This can be overridden at the panel element level.\n role: 'group',\n 'aria-labelledby': triggerId,\n 'aria-hidden': !state.isExpanded,\n hidden: supportsBeforeMatch ? true : !state.isExpanded\n }\n };\n}\n\n\nexport {$5e910fae8e128ead$export$6e3e27031a30522f as useDisclosure};\n//# sourceMappingURL=useDisclosure.module.js.map\n","import {useCallback as $acGV5$useCallback} from \"react\";\nimport {useControlledState as $acGV5$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2024 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 $bf996d45f4a36925$export$3fcbf6e4407997e0(props) {\n let [isExpanded, setExpanded] = (0, $acGV5$useControlledState)(props.isExpanded, props.defaultExpanded || false, props.onExpandedChange);\n const expand = (0, $acGV5$useCallback)(()=>{\n setExpanded(true);\n }, [\n setExpanded\n ]);\n const collapse = (0, $acGV5$useCallback)(()=>{\n setExpanded(false);\n }, [\n setExpanded\n ]);\n const toggle = (0, $acGV5$useCallback)(()=>{\n setExpanded(!isExpanded);\n }, [\n setExpanded,\n isExpanded\n ]);\n return {\n isExpanded: isExpanded,\n setExpanded: setExpanded,\n expand: expand,\n collapse: collapse,\n toggle: toggle\n };\n}\n\n\nexport {$bf996d45f4a36925$export$3fcbf6e4407997e0 as useDisclosureState};\n//# sourceMappingURL=useDisclosureState.module.js.map\n","import {useControlledState as $j4gLc$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $j4gLc$useMemo, useEffect as $j4gLc$useEffect} from \"react\";\n\n/*\n * Copyright 2024 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 $9385b3affbdec831$export$f36461af0ef4707d(props) {\n let { allowsMultipleExpanded: allowsMultipleExpanded = false, isDisabled: isDisabled = false } = props;\n let [expandedKeys, setExpandedKeys] = (0, $j4gLc$useControlledState)((0, $j4gLc$useMemo)(()=>props.expandedKeys ? new Set(props.expandedKeys) : undefined, [\n props.expandedKeys\n ]), (0, $j4gLc$useMemo)(()=>props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : new Set(), [\n props.defaultExpandedKeys\n ]), props.onExpandedChange);\n (0, $j4gLc$useEffect)(()=>{\n // Ensure only one item is expanded if allowsMultipleExpanded is false.\n if (!allowsMultipleExpanded && expandedKeys.size > 1) {\n let firstKey = expandedKeys.values().next().value;\n if (firstKey != null) setExpandedKeys(new Set([\n firstKey\n ]));\n }\n });\n return {\n allowsMultipleExpanded: allowsMultipleExpanded,\n isDisabled: isDisabled,\n expandedKeys: expandedKeys,\n setExpandedKeys: setExpandedKeys,\n toggleKey (key) {\n let keys;\n if (allowsMultipleExpanded) {\n keys = new Set(expandedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(expandedKeys.has(key) ? [] : [\n key\n ]);\n setExpandedKeys(keys);\n }\n };\n}\n\n\nexport {$9385b3affbdec831$export$f36461af0ef4707d as useDisclosureGroupState};\n//# sourceMappingURL=useDisclosureGroupState.module.js.map\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { AccordionRootProps } from \"./accordion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport const AccordionRoot = withProvider<HTMLDivElement, AccordionRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AccordionDisclosure = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTrigger = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanel = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitle = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContent = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import React, { createContext } from \"react\";\nimport type { DisclosureGroupState } from \"react-stately\";\n\n// Define types for the item context\nexport interface ItemContextType {\n isExpanded: boolean;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n panelRef: React.RefObject<HTMLDivElement | null>;\n buttonProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n panelProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n isFocusVisible: boolean;\n}\n\n// Create and export the contexts\nexport const ItemContext = createContext<ItemContextType | null>(null);\nexport const DisclosureGroupStateContext =\n createContext<DisclosureGroupState | null>(null);\n","import React, { forwardRef, type Key } from \"react\";\nimport { AccordionRoot as AccordionRootSlot } from \"../accordion.slots\";\nimport { useDisclosureGroupState } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport type { DisclosureGroupProps } from \"../accordion.types\";\nimport { DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionRoot = forwardRef<HTMLDivElement, DisclosureGroupProps>(\n ({ children, onExpandedChange, ...props }, forwardedRef) => {\n const state = useDisclosureGroupState({\n ...props,\n onExpandedChange: (keys: Set<Key>) => {\n onExpandedChange?.(keys.size > 0);\n },\n });\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps] = recipe.splitVariantProps(props);\n\n return (\n <DisclosureGroupStateContext.Provider value={state}>\n <AccordionRootSlot data-slot=\"root\" ref={forwardedRef} {...recipeProps}>\n {children}\n </AccordionRootSlot>\n </DisclosureGroupStateContext.Provider>\n );\n }\n);\n","import React, { forwardRef, useContext, type ReactNode } from \"react\";\nimport {\n AccordionTrigger,\n AccordionTitle,\n AccordionHeaderRightContent,\n} from \"../accordion.slots\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionHeaderProps = {\n /**\n * The text / content to display in the Header\n */\n children: ReactNode;\n};\n\nexport const AccordionHeader = forwardRef<\n HTMLButtonElement,\n AccordionHeaderProps\n>(({ children }, ref) => {\n const context = useContext(ItemContext);\n if (!context) {\n throw new Error(\"Accordion.Header must be used within Accordion.Item\");\n }\n\n // Extract HeaderRightContent if present\n const headerContent = React.Children.toArray(children).reduce<{\n main: React.ReactNode[];\n rightContent: React.ReactNode[];\n }>(\n (acc, child) => {\n if (\n React.isValidElement(child) &&\n child.type === AccordionHeaderRightContent\n ) {\n acc.rightContent.push(child);\n } else {\n acc.main.push(child);\n }\n return acc;\n },\n { main: [], rightContent: [] }\n );\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n >\n <AccordionTrigger\n ref={mergeRefs(context.triggerRef, ref)}\n {...context.buttonProps}\n data-slot=\"trigger\"\n outline={context.isFocusVisible ? undefined : \"none\"}\n >\n <KeyboardArrowRight />\n <AccordionTitle data-slot=\"accordionTitle\">\n {headerContent.main}\n </AccordionTitle>\n </AccordionTrigger>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContent data-slot=\"headerContentRight\">\n {headerContent.rightContent}\n </AccordionHeaderRightContent>\n )}\n </Flex>\n );\n});\n","import React, {\n forwardRef,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { AccordionPanel } from \"../accordion.slots\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeProps, mergeRefs } from \"@chakra-ui/react\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionContentProps = {\n /**\n * The content to display\n */\n children: ReactNode;\n} & ComponentProps<typeof AccordionPanel>;\n\n// Create Content component\nexport const AccordionContent = forwardRef<\n HTMLDivElement,\n AccordionContentProps\n>((props, forwardedRef) => {\n const context = useContext(ItemContext);\n const ref = useObjectRef<HTMLDivElement>(\n mergeRefs(context?.panelRef, forwardedRef)\n );\n\n return (\n // @ts-expect-error TODO - fix prop types merging conflict\n <AccordionPanel\n ref={ref}\n {...mergeProps({ ...context?.panelProps, ...props })}\n data-slot=\"panel\"\n >\n {props.children}\n </AccordionPanel>\n );\n});\n","import React, { forwardRef, useContext, useRef } from \"react\";\nimport { AccordionDisclosure } from \"../accordion.slots\";\nimport { useDisclosureState } from \"react-stately\";\nimport {\n useDisclosure,\n mergeProps,\n useButton,\n useFocusRing,\n useId,\n} from \"react-aria\";\nimport type { DisclosureItemProps } from \"../accordion.types\";\n// Import the contexts from the shared file\nimport { ItemContext, DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionItem = forwardRef<HTMLDivElement, DisclosureItemProps>(\n (\n { children, id, isDisabled, isExpanded, onExpandedChange, value },\n forwardedRef\n ) => {\n const defaultId = useId();\n const itemId = id || defaultId;\n const itemValue = value || itemId;\n\n // Get group state from context\n const groupState = useContext(DisclosureGroupStateContext);\n\n // Determine if expanded based on group state or prop\n const expanded = groupState\n ? groupState.expandedKeys.has(itemValue)\n : isExpanded;\n\n // Create disclosure state\n const state = useDisclosureState({\n isExpanded: expanded,\n onExpandedChange: (isExpanded) => {\n if (groupState) {\n groupState.toggleKey(itemValue);\n }\n onExpandedChange?.(isExpanded);\n },\n });\n\n // Create refs and get props\n const panelRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const disabled = isDisabled || groupState?.isDisabled || false;\n\n const { buttonProps, panelProps } = useDisclosure(\n {\n isExpanded: state.isExpanded,\n isDisabled: disabled,\n },\n state,\n panelRef\n );\n\n const { buttonProps: finalButtonProps } = useButton(\n buttonProps,\n triggerRef\n );\n const { focusProps, isFocusVisible } = useFocusRing();\n\n // Create context value for Header and Content\n const contextValue = {\n isExpanded: state.isExpanded,\n triggerRef,\n panelRef,\n buttonProps: mergeProps(finalButtonProps, focusProps),\n panelProps,\n isFocusVisible,\n };\n\n // Using the imported ItemContext\n return (\n <ItemContext.Provider value={contextValue}>\n <AccordionDisclosure\n data-slot=\"disclosure\"\n data-value={itemValue}\n data-expanded={state.isExpanded}\n ref={forwardedRef}\n >\n {children}\n </AccordionDisclosure>\n </ItemContext.Provider>\n );\n }\n);\n","import { AccordionHeaderRightContent } from \"./accordion.slots\";\nimport { AccordionRoot } from \"./components/accordion-root\";\nimport { AccordionHeader } from \"./components/accordion-header\";\nimport { AccordionContent } from \"./components/accordion-content\";\nimport { AccordionItem } from \"./components/accordion-item\";\n\n// Create the Accordion namespace object as an object literal\nexport const Accordion = {\n Root: AccordionRoot,\n Item: AccordionItem,\n Header: AccordionHeader,\n Content: AccordionContent,\n HeaderRightContent: AccordionHeaderRightContent,\n};\n\nexport {\n AccordionRoot as _AccordionRoot,\n AccordionItem as _AccordionItem,\n AccordionHeader as _AccordionHeader,\n AccordionContent as _AccordionContent,\n AccordionHeaderRightContent as _AccordionHeaderRightContent,\n};\n"],"names":["$5e910fae8e128ead$export$6e3e27031a30522f","props","state","ref","isDisabled","triggerId","$6wN6e$useId","panelId","supportsBeforeMatch","$6wN6e$useIsSSR","raf","$6wN6e$useRef","handleBeforeMatch","$6wN6e$useCallback","$6wN6e$flushSync","$6wN6e$useEvent","$6wN6e$useLayoutEffect","$6wN6e$useEffect","e","$bf996d45f4a36925$export$3fcbf6e4407997e0","isExpanded","setExpanded","$acGV5$useControlledState","expand","$acGV5$useCallback","collapse","toggle","$9385b3affbdec831$export$f36461af0ef4707d","allowsMultipleExpanded","expandedKeys","setExpandedKeys","$j4gLc$useControlledState","$j4gLc$useMemo","$j4gLc$useEffect","firstKey","key","keys","withProvider","withContext","createSlotRecipeContext","AccordionRoot","AccordionDisclosure","AccordionTrigger","AccordionPanel","AccordionTitle","AccordionHeaderRightContent","ItemContext","createContext","DisclosureGroupStateContext","forwardRef","children","onExpandedChange","forwardedRef","useDisclosureGroupState","recipe","useSlotRecipe","recipeProps","jsx","AccordionRootSlot","AccordionHeader","context","useContext","headerContent","React","acc","child","jsxs","Flex","mergeRefs","KeyboardArrowRight","AccordionContent","useObjectRef","mergeProps","AccordionItem","id","value","defaultId","useId","itemValue","groupState","expanded","useDisclosureState","panelRef","useRef","triggerRef","disabled","buttonProps","panelProps","useDisclosure","finalButtonProps","useButton","focusProps","isFocusVisible","useFocusRing","contextValue","Accordion"],"mappings":"ubAmBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,WAAYC,CAAU,EAAKH,EAC7BI,EAAgBC,4CAAe,EAC/BC,EAAcD,4CAAe,EAE7BE,EAAsB,CADVC,4CAAkB,GACE,kBAAmB,SAAS,KAC5DC,EAAUC,EAAa,OAAE,IAAI,EAC7BC,EAAwBC,EAAAA,YAAoB,IAAI,CAEhDH,EAAI,QAAU,sBAAsB,IAAI,CAChCP,EAAI,SAASA,EAAI,QAAQ,aAAa,SAAU,aAAa,CAC7E,CAAS,EAEGW,EAAgB,UAAE,IAAI,CACtBZ,EAAM,OAAQ,CAC1B,CAAS,CACT,EAAO,CACCC,EACAD,CACR,CAAK,EAED,OAAIa,EAAAA,0CAAiBZ,EAAK,cAAeK,EAAsBI,EAAoB,IAAI,EACnFI,EAAsB,0CAAE,IAAI,CAExBN,EAAI,SAAS,qBAAqBA,EAAI,OAAO,EAE7CF,GAAuBL,EAAI,SAAW,CAACC,IACnCF,EAAM,WAAYC,EAAI,QAAQ,gBAAgB,QAAQ,EACrDA,EAAI,QAAQ,aAAa,SAAU,aAAa,EAEjE,EAAO,CACCC,EACAD,EACAD,EAAM,WACNM,CACR,CAAK,EACGS,EAAgB,UAAE,IACX,IAAI,CACHP,EAAI,SAAS,qBAAqBA,EAAI,OAAO,CACpD,EACF,EAAE,EACE,CACH,YAAa,CACT,GAAIL,EACJ,gBAAiBH,EAAM,WACvB,gBAAiBK,EACjB,QAAUW,GAAI,CACN,CAACd,GAAcc,EAAE,c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","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"accordion-vrKLW-re.js","sources":["../../../../node_modules/.pnpm/@react-aria+disclosure@3.0.6_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/disclosure/dist/useDisclosure.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureState.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.5_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../src/components/accordion/accordion.slots.tsx","../../src/components/accordion/accordion-context.tsx","../../src/components/accordion/components/accordion-root.tsx","../../src/components/accordion/components/accordion-header.tsx","../../src/components/accordion/components/accordion-content.tsx","../../src/components/accordion/components/accordion-item.tsx","../../src/components/accordion/accordion.tsx"],"sourcesContent":["import {flushSync as $6wN6e$flushSync} from \"react-dom\";\nimport {useRef as $6wN6e$useRef, useCallback as $6wN6e$useCallback, useEffect as $6wN6e$useEffect} from \"react\";\nimport {useId as $6wN6e$useId, useEvent as $6wN6e$useEvent, useLayoutEffect as $6wN6e$useLayoutEffect} from \"@react-aria/utils\";\nimport {useIsSSR as $6wN6e$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2024 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\n\n\nfunction $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {\n let { isDisabled: isDisabled } = props;\n let triggerId = (0, $6wN6e$useId)();\n let panelId = (0, $6wN6e$useId)();\n let isSSR = (0, $6wN6e$useIsSSR)();\n let supportsBeforeMatch = !isSSR && 'onbeforematch' in document.body;\n let raf = (0, $6wN6e$useRef)(null);\n let handleBeforeMatch = (0, $6wN6e$useCallback)(()=>{\n // Wait a frame to revert browser's removal of hidden attribute\n raf.current = requestAnimationFrame(()=>{\n if (ref.current) ref.current.setAttribute('hidden', 'until-found');\n });\n // Force sync state update\n (0, $6wN6e$flushSync)(()=>{\n state.toggle();\n });\n }, [\n ref,\n state\n ]);\n // @ts-ignore https://github.com/facebook/react/pull/24741\n (0, $6wN6e$useEvent)(ref, 'beforematch', supportsBeforeMatch ? handleBeforeMatch : null);\n (0, $6wN6e$useLayoutEffect)(()=>{\n // Cancel any pending RAF to prevent stale updates\n if (raf.current) cancelAnimationFrame(raf.current);\n // Until React supports hidden=\"until-found\": https://github.com/facebook/react/pull/24741\n if (supportsBeforeMatch && ref.current && !isDisabled) {\n if (state.isExpanded) ref.current.removeAttribute('hidden');\n else ref.current.setAttribute('hidden', 'until-found');\n }\n }, [\n isDisabled,\n ref,\n state.isExpanded,\n supportsBeforeMatch\n ]);\n (0, $6wN6e$useEffect)(()=>{\n return ()=>{\n if (raf.current) cancelAnimationFrame(raf.current);\n };\n }, []);\n return {\n buttonProps: {\n id: triggerId,\n 'aria-expanded': state.isExpanded,\n 'aria-controls': panelId,\n onPress: (e)=>{\n if (!isDisabled && e.pointerType !== 'keyboard') state.toggle();\n },\n isDisabled: isDisabled,\n onPressStart (e) {\n if (e.pointerType === 'keyboard' && !isDisabled) state.toggle();\n }\n },\n panelProps: {\n id: panelId,\n // This can be overridden at the panel element level.\n role: 'group',\n 'aria-labelledby': triggerId,\n 'aria-hidden': !state.isExpanded,\n hidden: supportsBeforeMatch ? true : !state.isExpanded\n }\n };\n}\n\n\nexport {$5e910fae8e128ead$export$6e3e27031a30522f as useDisclosure};\n//# sourceMappingURL=useDisclosure.module.js.map\n","import {useCallback as $acGV5$useCallback} from \"react\";\nimport {useControlledState as $acGV5$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2024 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 $bf996d45f4a36925$export$3fcbf6e4407997e0(props) {\n let [isExpanded, setExpanded] = (0, $acGV5$useControlledState)(props.isExpanded, props.defaultExpanded || false, props.onExpandedChange);\n const expand = (0, $acGV5$useCallback)(()=>{\n setExpanded(true);\n }, [\n setExpanded\n ]);\n const collapse = (0, $acGV5$useCallback)(()=>{\n setExpanded(false);\n }, [\n setExpanded\n ]);\n const toggle = (0, $acGV5$useCallback)(()=>{\n setExpanded(!isExpanded);\n }, [\n setExpanded,\n isExpanded\n ]);\n return {\n isExpanded: isExpanded,\n setExpanded: setExpanded,\n expand: expand,\n collapse: collapse,\n toggle: toggle\n };\n}\n\n\nexport {$bf996d45f4a36925$export$3fcbf6e4407997e0 as useDisclosureState};\n//# sourceMappingURL=useDisclosureState.module.js.map\n","import {useControlledState as $j4gLc$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $j4gLc$useMemo, useEffect as $j4gLc$useEffect} from \"react\";\n\n/*\n * Copyright 2024 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 $9385b3affbdec831$export$f36461af0ef4707d(props) {\n let { allowsMultipleExpanded: allowsMultipleExpanded = false, isDisabled: isDisabled = false } = props;\n let [expandedKeys, setExpandedKeys] = (0, $j4gLc$useControlledState)((0, $j4gLc$useMemo)(()=>props.expandedKeys ? new Set(props.expandedKeys) : undefined, [\n props.expandedKeys\n ]), (0, $j4gLc$useMemo)(()=>props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : new Set(), [\n props.defaultExpandedKeys\n ]), props.onExpandedChange);\n (0, $j4gLc$useEffect)(()=>{\n // Ensure only one item is expanded if allowsMultipleExpanded is false.\n if (!allowsMultipleExpanded && expandedKeys.size > 1) {\n let firstKey = expandedKeys.values().next().value;\n if (firstKey != null) setExpandedKeys(new Set([\n firstKey\n ]));\n }\n });\n return {\n allowsMultipleExpanded: allowsMultipleExpanded,\n isDisabled: isDisabled,\n expandedKeys: expandedKeys,\n setExpandedKeys: setExpandedKeys,\n toggleKey (key) {\n let keys;\n if (allowsMultipleExpanded) {\n keys = new Set(expandedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(expandedKeys.has(key) ? [] : [\n key\n ]);\n setExpandedKeys(keys);\n }\n };\n}\n\n\nexport {$9385b3affbdec831$export$f36461af0ef4707d as useDisclosureGroupState};\n//# sourceMappingURL=useDisclosureGroupState.module.js.map\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { AccordionRootProps } from \"./accordion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport const AccordionRoot = withProvider<HTMLDivElement, AccordionRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AccordionDisclosure = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTrigger = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanel = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitle = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContent = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import React, { createContext } from \"react\";\nimport type { DisclosureGroupState } from \"react-stately\";\n\n// Define types for the item context\nexport interface ItemContextType {\n isExpanded: boolean;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n panelRef: React.RefObject<HTMLDivElement | null>;\n buttonProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n panelProps: React.ButtonHTMLAttributes<HTMLButtonElement>;\n isFocusVisible: boolean;\n}\n\n// Create and export the contexts\nexport const ItemContext = createContext<ItemContextType | null>(null);\nexport const DisclosureGroupStateContext =\n createContext<DisclosureGroupState | null>(null);\n","import React, { forwardRef, type Key } from \"react\";\nimport { AccordionRoot as AccordionRootSlot } from \"../accordion.slots\";\nimport { useDisclosureGroupState } from \"react-stately\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport type { DisclosureGroupProps } from \"../accordion.types\";\nimport { DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionRoot = forwardRef<HTMLDivElement, DisclosureGroupProps>(\n ({ children, onExpandedChange, ...props }, forwardedRef) => {\n const state = useDisclosureGroupState({\n ...props,\n onExpandedChange: (keys: Set<Key>) => {\n onExpandedChange?.(keys.size > 0);\n },\n });\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps] = recipe.splitVariantProps(props);\n\n return (\n <DisclosureGroupStateContext.Provider value={state}>\n <AccordionRootSlot data-slot=\"root\" ref={forwardedRef} {...recipeProps}>\n {children}\n </AccordionRootSlot>\n </DisclosureGroupStateContext.Provider>\n );\n }\n);\n","import React, { forwardRef, useContext, type ReactNode } from \"react\";\nimport {\n AccordionTrigger,\n AccordionTitle,\n AccordionHeaderRightContent,\n} from \"../accordion.slots\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionHeaderProps = {\n /**\n * The text / content to display in the Header\n */\n children: ReactNode;\n};\n\nexport const AccordionHeader = forwardRef<\n HTMLButtonElement,\n AccordionHeaderProps\n>(({ children }, ref) => {\n const context = useContext(ItemContext);\n if (!context) {\n throw new Error(\"Accordion.Header must be used within Accordion.Item\");\n }\n\n // Extract HeaderRightContent if present\n const headerContent = React.Children.toArray(children).reduce<{\n main: React.ReactNode[];\n rightContent: React.ReactNode[];\n }>(\n (acc, child) => {\n if (\n React.isValidElement(child) &&\n child.type === AccordionHeaderRightContent\n ) {\n acc.rightContent.push(child);\n } else {\n acc.main.push(child);\n }\n return acc;\n },\n { main: [], rightContent: [] }\n );\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n >\n <AccordionTrigger\n ref={mergeRefs(context.triggerRef, ref)}\n {...context.buttonProps}\n data-slot=\"trigger\"\n outline={context.isFocusVisible ? undefined : \"none\"}\n >\n <KeyboardArrowRight />\n <AccordionTitle data-slot=\"accordionTitle\">\n {headerContent.main}\n </AccordionTitle>\n </AccordionTrigger>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContent data-slot=\"headerContentRight\">\n {headerContent.rightContent}\n </AccordionHeaderRightContent>\n )}\n </Flex>\n );\n});\n","import React, {\n forwardRef,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { AccordionPanel } from \"../accordion.slots\";\nimport { useObjectRef } from \"react-aria\";\nimport { mergeProps, mergeRefs } from \"@chakra-ui/react\";\nimport { ItemContext } from \"../accordion-context\";\n\ntype AccordionContentProps = {\n /**\n * The content to display\n */\n children: ReactNode;\n} & ComponentProps<typeof AccordionPanel>;\n\n// Create Content component\nexport const AccordionContent = forwardRef<\n HTMLDivElement,\n AccordionContentProps\n>((props, forwardedRef) => {\n const context = useContext(ItemContext);\n const ref = useObjectRef<HTMLDivElement>(\n mergeRefs(context?.panelRef, forwardedRef)\n );\n\n return (\n // @ts-expect-error TODO - fix prop types merging conflict\n <AccordionPanel\n ref={ref}\n {...mergeProps({ ...context?.panelProps, ...props })}\n data-slot=\"panel\"\n >\n {props.children}\n </AccordionPanel>\n );\n});\n","import React, { forwardRef, useContext, useRef } from \"react\";\nimport { AccordionDisclosure } from \"../accordion.slots\";\nimport { useDisclosureState } from \"react-stately\";\nimport {\n useDisclosure,\n mergeProps,\n useButton,\n useFocusRing,\n useId,\n} from \"react-aria\";\nimport type { DisclosureItemProps } from \"../accordion.types\";\n// Import the contexts from the shared file\nimport { ItemContext, DisclosureGroupStateContext } from \"../accordion-context\";\n\nexport const AccordionItem = forwardRef<HTMLDivElement, DisclosureItemProps>(\n (\n { children, id, isDisabled, isExpanded, onExpandedChange, value },\n forwardedRef\n ) => {\n const defaultId = useId();\n const itemId = id || defaultId;\n const itemValue = value || itemId;\n\n // Get group state from context\n const groupState = useContext(DisclosureGroupStateContext);\n\n // Determine if expanded based on group state or prop\n const expanded = groupState\n ? groupState.expandedKeys.has(itemValue)\n : isExpanded;\n\n // Create disclosure state\n const state = useDisclosureState({\n isExpanded: expanded,\n onExpandedChange: (isExpanded) => {\n if (groupState) {\n groupState.toggleKey(itemValue);\n }\n onExpandedChange?.(isExpanded);\n },\n });\n\n // Create refs and get props\n const panelRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const disabled = isDisabled || groupState?.isDisabled || false;\n\n const { buttonProps, panelProps } = useDisclosure(\n {\n isExpanded: state.isExpanded,\n isDisabled: disabled,\n },\n state,\n panelRef\n );\n\n const { buttonProps: finalButtonProps } = useButton(\n buttonProps,\n triggerRef\n );\n const { focusProps, isFocusVisible } = useFocusRing();\n\n // Create context value for Header and Content\n const contextValue = {\n isExpanded: state.isExpanded,\n triggerRef,\n panelRef,\n buttonProps: mergeProps(finalButtonProps, focusProps),\n panelProps,\n isFocusVisible,\n };\n\n // Using the imported ItemContext\n return (\n <ItemContext.Provider value={contextValue}>\n <AccordionDisclosure\n data-slot=\"disclosure\"\n data-value={itemValue}\n data-expanded={state.isExpanded}\n ref={forwardedRef}\n >\n {children}\n </AccordionDisclosure>\n </ItemContext.Provider>\n );\n }\n);\n","import { AccordionHeaderRightContent } from \"./accordion.slots\";\nimport { AccordionRoot } from \"./components/accordion-root\";\nimport { AccordionHeader } from \"./components/accordion-header\";\nimport { AccordionContent } from \"./components/accordion-content\";\nimport { AccordionItem } from \"./components/accordion-item\";\n\n// Create the Accordion namespace object as an object literal\nexport const Accordion = {\n Root: AccordionRoot,\n Item: AccordionItem,\n Header: AccordionHeader,\n Content: AccordionContent,\n HeaderRightContent: AccordionHeaderRightContent,\n};\n\nexport {\n AccordionRoot as _AccordionRoot,\n AccordionItem as _AccordionItem,\n AccordionHeader as _AccordionHeader,\n AccordionContent as _AccordionContent,\n AccordionHeaderRightContent as _AccordionHeaderRightContent,\n};\n"],"names":["$5e910fae8e128ead$export$6e3e27031a30522f","props","state","ref","isDisabled","triggerId","$6wN6e$useId","panelId","supportsBeforeMatch","$6wN6e$useIsSSR","raf","$6wN6e$useRef","handleBeforeMatch","$6wN6e$useCallback","$6wN6e$flushSync","$6wN6e$useEvent","$6wN6e$useLayoutEffect","$6wN6e$useEffect","e","$bf996d45f4a36925$export$3fcbf6e4407997e0","isExpanded","setExpanded","$acGV5$useControlledState","expand","$acGV5$useCallback","collapse","toggle","$9385b3affbdec831$export$f36461af0ef4707d","allowsMultipleExpanded","expandedKeys","setExpandedKeys","$j4gLc$useControlledState","$j4gLc$useMemo","$j4gLc$useEffect","firstKey","key","keys","withProvider","withContext","createSlotRecipeContext","AccordionRoot","AccordionDisclosure","AccordionTrigger","AccordionPanel","AccordionTitle","AccordionHeaderRightContent","ItemContext","createContext","DisclosureGroupStateContext","forwardRef","children","onExpandedChange","forwardedRef","useDisclosureGroupState","recipe","useSlotRecipe","recipeProps","jsx","AccordionRootSlot","AccordionHeader","context","useContext","headerContent","React","acc","child","jsxs","Flex","mergeRefs","KeyboardArrowRight","AccordionContent","useObjectRef","mergeProps","AccordionItem","id","value","defaultId","useId","itemValue","groupState","expanded","useDisclosureState","panelRef","useRef","triggerRef","disabled","buttonProps","panelProps","useDisclosure","finalButtonProps","useButton","focusProps","isFocusVisible","useFocusRing","contextValue","Accordion"],"mappings":"ubAmBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,WAAYC,CAAU,EAAKH,EAC7BI,EAAgBC,4CAAe,EAC/BC,EAAcD,4CAAe,EAE7BE,EAAsB,CADVC,4CAAkB,GACE,kBAAmB,SAAS,KAC5DC,EAAUC,EAAa,OAAE,IAAI,EAC7BC,EAAwBC,EAAAA,YAAoB,IAAI,CAEhDH,EAAI,QAAU,sBAAsB,IAAI,CAChCP,EAAI,SAASA,EAAI,QAAQ,aAAa,SAAU,aAAa,CAC7E,CAAS,EAEGW,EAAgB,UAAE,IAAI,CACtBZ,EAAM,OAAQ,CAC1B,CAAS,CACT,EAAO,CACCC,EACAD,CACR,CAAK,EAED,OAAIa,EAAAA,0CAAiBZ,EAAK,cAAeK,EAAsBI,EAAoB,IAAI,EACnFI,EAAsB,0CAAE,IAAI,CAExBN,EAAI,SAAS,qBAAqBA,EAAI,OAAO,EAE7CF,GAAuBL,EAAI,SAAW,CAACC,IACnCF,EAAM,WAAYC,EAAI,QAAQ,gBAAgB,QAAQ,EACrDA,EAAI,QAAQ,aAAa,SAAU,aAAa,EAEjE,EAAO,CACCC,EACAD,EACAD,EAAM,WACNM,CACR,CAAK,EACGS,EAAgB,UAAE,IACX,IAAI,CACHP,EAAI,SAAS,qBAAqBA,EAAI,OAAO,CACpD,EACF,EAAE,EACE,CACH,YAAa,CACT,GAAIL,EACJ,gBAAiBH,EAAM,WACvB,gBAAiBK,EACjB,QAAUW,GAAI,CACN,CAACd,GAAcc,EAAE,cAAgB,YAAYhB,EAAM,OAAQ,CAClE,EACD,WAAYE,EAC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use strict";const e=require("react/jsx-runtime"),s=require("react"),v=require("@chakra-ui/react"),P=require("./box-FU6tRPFs.js"),R=require("./stack-wFUhYQQb.js"),r=require("@commercetools/nimbus-icons"),B=require("./icon-button-CE-LnFNq.js"),N=v.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:T,withContext:l}=v.createSlotRecipeContext({recipe:N}),E=T("div","root"),w=l("div","title"),S=l("div","description"),q=l("div","icon"),$=l("div","actions"),y=l("div","dismissButton"),I=o=>{switch(o){case"critical":return e.jsx(r.ErrorOutline,{});case"info":return e.jsx(r.Info,{});case"warning":return e.jsx(r.WarningAmber,{});case"positive":return e.jsx(r.CheckCircleOutline,{});default:return null}},c=s.createContext(void 0),a=o=>{const{ref:i,children:t,...n}=o,[j,m]=s.useState(null),[g,f]=s.useState(null),[h,p]=s.useState(null),[C,D]=s.useState(null),b=s.useMemo(()=>({setTitle:m,setDescription:f,setActions:p,setDismiss:D}),[m,f,p,D]);return e.jsx(c.Provider,{value:b,children:e.jsxs(E,{ref:i,...n,role:"alert",children:[e.jsx(q,{alignItems:"flex-start",children:I(n.tone)}),e.jsxs(R.Stack,{flex:"1",gap:"200",children:[e.jsxs(P.Box,{children:[j,g]}),h]}),C,t]})})};a.displayName="Alert.Root";const u=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx(w,{...i,fontWeight:"600",children:o});return t.setTitle(n),()=>t.setTitle(null)}},[o,i]),null};u.displayName="Alert.Title";const d=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx(S,{...i,children:o});return t.setDescription(n),()=>t.setDescription(null)}},[o,i]),null};d.displayName="Alert.Description";const x=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx($,{...i,children:o});return t.setActions(n),()=>t.setActions(null)}},[o,i]),null};x.displayName="Alert.Actions";const A=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx(y,{children:e.jsx(B.IconButton,{"aria-label":"Dismiss",...i,variant:"ghost",size:"2xs",children:e.jsx(r.Clear,{role:"img"})})});return t.setDismiss(n),()=>t.setDismiss(null)}},[o,i]),null};A.displayName="Alert.DismissButton";const k={Root:a,Title:u,Description:d,Actions:x,DismissButton:A};exports.Alert=k;exports.AlertActions=x;exports.AlertDescription=d;exports.AlertDismissButton=A;exports.AlertRoot=a;exports.AlertTitle=u;
2
- //# sourceMappingURL=alert-DxoCjJDr.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("react"),v=require("@chakra-ui/react"),P=require("./box-FU6tRPFs.js"),R=require("./stack-wFUhYQQb.js"),r=require("@commercetools/nimbus-icons"),B=require("./icon-button-Ds1Wzyc1.js"),N=v.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:T,withContext:l}=v.createSlotRecipeContext({recipe:N}),E=T("div","root"),w=l("div","title"),S=l("div","description"),q=l("div","icon"),$=l("div","actions"),y=l("div","dismissButton"),I=o=>{switch(o){case"critical":return e.jsx(r.ErrorOutline,{});case"info":return e.jsx(r.Info,{});case"warning":return e.jsx(r.WarningAmber,{});case"positive":return e.jsx(r.CheckCircleOutline,{});default:return null}},c=s.createContext(void 0),a=o=>{const{ref:i,children:t,...n}=o,[j,m]=s.useState(null),[g,f]=s.useState(null),[h,p]=s.useState(null),[C,D]=s.useState(null),b=s.useMemo(()=>({setTitle:m,setDescription:f,setActions:p,setDismiss:D}),[m,f,p,D]);return e.jsx(c.Provider,{value:b,children:e.jsxs(E,{ref:i,...n,role:"alert",children:[e.jsx(q,{alignItems:"flex-start",children:I(n.tone)}),e.jsxs(R.Stack,{flex:"1",gap:"200",children:[e.jsxs(P.Box,{children:[j,g]}),h]}),C,t]})})};a.displayName="Alert.Root";const u=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx(w,{...i,fontWeight:"600",children:o});return t.setTitle(n),()=>t.setTitle(null)}},[o,i]),null};u.displayName="Alert.Title";const d=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx(S,{...i,children:o});return t.setDescription(n),()=>t.setDescription(null)}},[o,i]),null};d.displayName="Alert.Description";const x=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx($,{...i,children:o});return t.setActions(n),()=>t.setActions(null)}},[o,i]),null};x.displayName="Alert.Actions";const A=({children:o,...i})=>{const t=s.useContext(c);return s.useEffect(()=>{if(t){const n=e.jsx(y,{children:e.jsx(B.IconButton,{"aria-label":"Dismiss",...i,variant:"ghost",size:"2xs",children:e.jsx(r.Clear,{role:"img"})})});return t.setDismiss(n),()=>t.setDismiss(null)}},[o,i]),null};A.displayName="Alert.DismissButton";const k={Root:a,Title:u,Description:d,Actions:x,DismissButton:A};exports.Alert=k;exports.AlertActions=x;exports.AlertDescription=d;exports.AlertDismissButton=A;exports.AlertRoot=a;exports.AlertTitle=u;
2
+ //# sourceMappingURL=alert-B738R1TJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert-DxoCjJDr.js","sources":["../../src/components/alert/alert.recipe.tsx","../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Alert component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const alertRecipe = defineSlotRecipe({\n slots: [\"root\", \"title\", \"description\", \"icon\", \"actions\", \"dismissButton\"],\n // Unique class name prefix for the component\n className: \"nimbus-alert\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n display: \"inline-flex\",\n flexDirection: \"row\",\n gap: \"200\",\n width: \"100%\",\n },\n icon: {\n marginTop: \"50\",\n \"& svg\": {\n width: \"500\",\n height: \"500\",\n color: \"colorPalette.11\",\n },\n },\n title: {\n color: \"colorPalette.11\",\n },\n description: {\n color: \"colorPalette.11\",\n },\n },\n\n variants: {\n tone: {\n critical: {\n root: { colorPalette: \"critical\" },\n },\n info: {\n root: { colorPalette: \"info\" },\n },\n warning: {\n root: { colorPalette: \"amber\" },\n },\n positive: {\n root: { colorPalette: \"positive\" },\n },\n },\n\n variant: {\n flat: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.5\",\n backgroundColor: \"colorPalette.2\",\n padding: \"200\",\n borderRadius: \"200\",\n },\n },\n },\n },\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport { alertRecipe } from \"./alert.recipe\";\nimport type {\n AlertActionsProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconProps,\n AlertRootProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: alertRecipe,\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport { Box } from \"../../box\";\nimport { Stack } from \"../../stack\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromTone = (tone: AlertProps[\"tone\"]) => {\n switch (tone) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\ntype AlertContextValue = {\n setTitle: (title: ReactNode) => void;\n setDescription: (description: ReactNode) => void;\n setActions: (actions: ReactNode) => void;\n setDismiss: (dismiss: ReactNode) => void;\n};\n\nexport const AlertContext = createContext<AlertContextValue | undefined>(\n undefined\n);\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n const [titleNode, setTitle] = useState<ReactNode>(null);\n const [descriptionNode, setDescription] = useState<ReactNode>(null);\n const [actionsNode, setActions] = useState<ReactNode>(null);\n const [dismissNode, setDismiss] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setTitle,\n setDescription,\n setActions,\n setDismiss,\n }),\n [setTitle, setDescription, setActions, setDismiss]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromTone(restProps.tone)}\n </AlertIcon>\n <Stack flex=\"1\" gap=\"200\">\n <Box>\n {titleNode}\n {descriptionNode}\n </Box>\n {actionsNode}\n </Stack>\n {dismissNode}\n\n {children}\n </AlertRootSlot>\n </AlertContext.Provider>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n // Register it with the parent\n context.setTitle(slotElement);\n\n // On unmount, remove it\n return () => context.setTitle(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>\n );\n // Register it with the parent\n context.setDescription(slotElement);\n\n // On unmount, remove it\n return () => context.setDescription(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertActionsSlot {...props}>{children}</AlertActionsSlot>\n );\n // Register it with the parent\n context.setActions(slotElement);\n\n // On unmount, remove it\n return () => context.setActions(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDismissButton = ({\n children,\n ...props\n}: AlertDismissButtonProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label=\"Dismiss\"\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n // Register it with the parent\n context.setDismiss(slotElement);\n\n // On unmount, remove it\n return () => context.setDismiss(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import { AlertTitle } from \"./components/alert.title\";\nimport { AlertDescription } from \"./components/alert.description\";\nimport { AlertActions } from \"./components/alert.actions\";\nimport { AlertDismissButton } from \"./components/alert.dismiss-button\";\nimport { AlertRoot } from \"./components/alert.root\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const Alert = {\n Root: AlertRoot,\n Title: AlertTitle,\n Description: AlertDescription,\n Actions: AlertActions,\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["alertRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromTone","tone","ErrorOutline","Info","WarningAmber","CheckCircleOutline","AlertContext","createContext","props","ref","children","restProps","titleNode","setTitle","useState","descriptionNode","setDescription","actionsNode","setActions","dismissNode","setDismiss","contextValue","useMemo","jsx","jsxs","AlertRootSlot","Stack","Box","context","useContext","useEffect","slotElement","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":"mPAMaA,EAAcC,EAAAA,iBAAiB,CAC1C,MAAO,CAAC,OAAQ,QAAS,cAAe,OAAQ,UAAW,eAAe,EAE1E,UAAW,eAGX,KAAM,CACJ,KAAM,CACJ,QAAS,cACT,cAAe,MACf,IAAK,MACL,MAAO,MACT,EACA,KAAM,CACJ,UAAW,KACX,QAAS,CACP,MAAO,MACP,OAAQ,MACR,MAAO,iBAAA,CAEX,EACA,MAAO,CACL,MAAO,iBACT,EACA,YAAa,CACX,MAAO,iBAAA,CAEX,EAEA,SAAU,CACR,KAAM,CACJ,SAAU,CACR,KAAM,CAAE,aAAc,UAAW,CACnC,EACA,KAAM,CACJ,KAAM,CAAE,aAAc,MAAO,CAC/B,EACA,QAAS,CACP,KAAM,CAAE,aAAc,OAAQ,CAChC,EACA,SAAU,CACR,KAAM,CAAE,aAAc,UAAW,CAAA,CAErC,EAEA,QAAS,CACP,KAAM,CAAC,EACP,SAAU,CACR,KAAM,CACJ,OAAQ,WACR,YAAa,iBACb,gBAAiB,iBACjB,QAAS,MACT,aAAc,KAAA,CAChB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Q,WAAW,IAAI,CAAA,CACtC,EACC,CAAClB,EAAUF,CAAK,CAAC,EAEb,IACT,EAEAV,EAAa,YAAc,gBCjBpB,MAAMC,EAAqB,CAAC,CACjC,SAAAW,EACA,GAAGF,CACL,IAA+B,CACvB,MAAAoB,EAAUC,aAAWvB,CAAY,EAEvCwB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACL,MAAAG,QACHI,EACC,CAAA,SAAAZ,EAAA,IAACa,EAAA,WAAA,CACC,aAAW,UACV,GAAG5B,EACJ,QAAQ,QACR,KAAK,MAEL,SAAAe,EAAAA,IAACc,EAAAA,MAAM,CAAA,KAAK,KAAM,CAAA,CAAA,CAAA,EAEtB,EAGF,OAAAT,EAAQ,WAAWG,CAAW,EAGvB,IAAMH,EAAQ,WAAW,IAAI,CAAA,CACtC,EACC,CAAClB,EAAUF,CAAK,CAAC,EAEb,IACT,EAEAT,EAAmB,YAAc,sBC3B1B,MAAMuC,EAAQ,CACnB,KAAM5C,EACN,MAAOC,EACP,YAAaC,EACb,QAASE,EACT,cAAeC,CACjB"}
1
+ {"version":3,"file":"alert-B738R1TJ.js","sources":["../../src/components/alert/alert.recipe.tsx","../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Alert component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const alertRecipe = defineSlotRecipe({\n slots: [\"root\", \"title\", \"description\", \"icon\", \"actions\", \"dismissButton\"],\n // Unique class name prefix for the component\n className: \"nimbus-alert\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n display: \"inline-flex\",\n flexDirection: \"row\",\n gap: \"200\",\n width: \"100%\",\n },\n icon: {\n marginTop: \"50\",\n \"& svg\": {\n width: \"500\",\n height: \"500\",\n color: \"colorPalette.11\",\n },\n },\n title: {\n color: \"colorPalette.11\",\n },\n description: {\n color: \"colorPalette.11\",\n },\n },\n\n variants: {\n tone: {\n critical: {\n root: { colorPalette: \"critical\" },\n },\n info: {\n root: { colorPalette: \"info\" },\n },\n warning: {\n root: { colorPalette: \"amber\" },\n },\n positive: {\n root: { colorPalette: \"positive\" },\n },\n },\n\n variant: {\n flat: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.5\",\n backgroundColor: \"colorPalette.2\",\n padding: \"200\",\n borderRadius: \"200\",\n },\n },\n },\n },\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport { alertRecipe } from \"./alert.recipe\";\nimport type {\n AlertActionsProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconProps,\n AlertRootProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: alertRecipe,\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport { Box } from \"../../box\";\nimport { Stack } from \"../../stack\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromTone = (tone: AlertProps[\"tone\"]) => {\n switch (tone) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\ntype AlertContextValue = {\n setTitle: (title: ReactNode) => void;\n setDescription: (description: ReactNode) => void;\n setActions: (actions: ReactNode) => void;\n setDismiss: (dismiss: ReactNode) => void;\n};\n\nexport const AlertContext = createContext<AlertContextValue | undefined>(\n undefined\n);\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n const [titleNode, setTitle] = useState<ReactNode>(null);\n const [descriptionNode, setDescription] = useState<ReactNode>(null);\n const [actionsNode, setActions] = useState<ReactNode>(null);\n const [dismissNode, setDismiss] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setTitle,\n setDescription,\n setActions,\n setDismiss,\n }),\n [setTitle, setDescription, setActions, setDismiss]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromTone(restProps.tone)}\n </AlertIcon>\n <Stack flex=\"1\" gap=\"200\">\n <Box>\n {titleNode}\n {descriptionNode}\n </Box>\n {actionsNode}\n </Stack>\n {dismissNode}\n\n {children}\n </AlertRootSlot>\n </AlertContext.Provider>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n // Register it with the parent\n context.setTitle(slotElement);\n\n // On unmount, remove it\n return () => context.setTitle(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>\n );\n // Register it with the parent\n context.setDescription(slotElement);\n\n // On unmount, remove it\n return () => context.setDescription(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertActionsSlot {...props}>{children}</AlertActionsSlot>\n );\n // Register it with the parent\n context.setActions(slotElement);\n\n // On unmount, remove it\n return () => context.setActions(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { useContext, useEffect } from \"react\";\nimport { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { AlertContext } from \"./alert.root\";\n\nexport const AlertDismissButton = ({\n children,\n ...props\n}: AlertDismissButtonProps) => {\n const context = useContext(AlertContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label=\"Dismiss\"\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n // Register it with the parent\n context.setDismiss(slotElement);\n\n // On unmount, remove it\n return () => context.setDismiss(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import { AlertTitle } from \"./components/alert.title\";\nimport { AlertDescription } from \"./components/alert.description\";\nimport { AlertActions } from \"./components/alert.actions\";\nimport { AlertDismissButton } from \"./components/alert.dismiss-button\";\nimport { AlertRoot } from \"./components/alert.root\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n */\nexport const Alert = {\n Root: AlertRoot,\n Title: AlertTitle,\n Description: AlertDescription,\n Actions: AlertActions,\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["alertRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromTone","tone","ErrorOutline","Info","WarningAmber","CheckCircleOutline","AlertContext","createContext","props","ref","children","restProps","titleNode","setTitle","useState","descriptionNode","setDescription","actionsNode","setActions","dismissNode","setDismiss","contextValue","useMemo","jsx","jsxs","AlertRootSlot","Stack","Box","context","useContext","useEffect","slotElement","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":"mPAMaA,EAAcC,EAAAA,iBAAiB,CAC1C,MAAO,CAAC,OAAQ,QAAS,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