@commercetools/nimbus 0.0.0-canary-20250918131030 → 0.0.0-canary-20250919133951

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 (257) hide show
  1. package/dist/chunks/{Button-BVaauB-c.es.js → Button-CNBS3n5a.es.js} +7 -7
  2. package/dist/chunks/{Button-BVaauB-c.es.js.map → Button-CNBS3n5a.es.js.map} +1 -1
  3. package/dist/chunks/{DateField-CoKm-f2B.es.js → DateField-Dm2Qlhbk.es.js} +23 -23
  4. package/dist/chunks/{DateField-CoKm-f2B.es.js.map → DateField-Dm2Qlhbk.es.js.map} +1 -1
  5. package/dist/chunks/{DatePicker-Df8zjP9h.es.js → DatePicker-kvQcWFTq.es.js} +19 -19
  6. package/dist/chunks/{DatePicker-Df8zjP9h.es.js.map → DatePicker-kvQcWFTq.es.js.map} +1 -1
  7. package/dist/chunks/{Dialog-Cva4CZ0O.es.js → Dialog-BH-H4BEe.es.js} +25 -25
  8. package/dist/chunks/{Dialog-Cva4CZ0O.es.js.map → Dialog-BH-H4BEe.es.js.map} +1 -1
  9. package/dist/chunks/{DragAndDrop-Bbd4HbfU.es.js → DragAndDrop-ChYb3tCX.es.js} +3 -3
  10. package/dist/chunks/{DragAndDrop-Bbd4HbfU.es.js.map → DragAndDrop-ChYb3tCX.es.js.map} +1 -1
  11. package/dist/chunks/{FocusScope-LBESYsSE.es.js → FocusScope-CNO0fzPs.es.js} +5 -5
  12. package/dist/chunks/{FocusScope-LBESYsSE.es.js.map → FocusScope-CNO0fzPs.es.js.map} +1 -1
  13. package/dist/chunks/{Group-DUCWhg7j.es.js → Group-Cfixd-fh.es.js} +5 -5
  14. package/dist/chunks/{Group-DUCWhg7j.es.js.map → Group-Cfixd-fh.es.js.map} +1 -1
  15. package/dist/chunks/{Header-Cfm2XlNT.es.js → Header-Bi219Q1R.es.js} +5 -5
  16. package/dist/chunks/{Header-Cfm2XlNT.es.js.map → Header-Bi219Q1R.es.js.map} +1 -1
  17. package/dist/chunks/{Heading-BX1t1Kmm.es.js → Heading-DEfy_f01.es.js} +15 -15
  18. package/dist/chunks/{Heading-BX1t1Kmm.es.js.map → Heading-DEfy_f01.es.js.map} +1 -1
  19. package/dist/chunks/{Input-FFG42ja6.es.js → Input-BiHwUBo4.es.js} +5 -5
  20. package/dist/chunks/{Input-FFG42ja6.es.js.map → Input-BiHwUBo4.es.js.map} +1 -1
  21. package/dist/chunks/{Label-BdaLJ5Ha.es.js → Label-B2YyCdLl.es.js} +2 -2
  22. package/dist/chunks/{Label-BdaLJ5Ha.es.js.map → Label-B2YyCdLl.es.js.map} +1 -1
  23. package/dist/chunks/{ListBox-BinkXiqM.es.js → ListBox-DKAR_w69.es.js} +15 -15
  24. package/dist/chunks/{ListBox-BinkXiqM.es.js.map → ListBox-DKAR_w69.es.js.map} +1 -1
  25. package/dist/chunks/{OverlayArrow-Kk4VWzmN.es.js → OverlayArrow-sJzRZNbO.es.js} +3 -3
  26. package/dist/chunks/{OverlayArrow-Kk4VWzmN.es.js.map → OverlayArrow-sJzRZNbO.es.js.map} +1 -1
  27. package/dist/chunks/{ProgressBar-CwFHab_J.es.js → ProgressBar-DjaUQI7N.es.js} +5 -5
  28. package/dist/chunks/{ProgressBar-CwFHab_J.es.js.map → ProgressBar-DjaUQI7N.es.js.map} +1 -1
  29. package/dist/chunks/{SSRProvider-v-LddFEs.es.js → SSRProvider-Cu8KibIK.es.js} +2 -2
  30. package/dist/chunks/{SSRProvider-v-LddFEs.es.js.map → SSRProvider-Cu8KibIK.es.js.map} +1 -1
  31. package/dist/chunks/{SelectionManager-C-DrFCWk.es.js → SelectionManager-BgUVI3vz.es.js} +11 -11
  32. package/dist/chunks/{SelectionManager-C-DrFCWk.es.js.map → SelectionManager-BgUVI3vz.es.js.map} +1 -1
  33. package/dist/chunks/{Separator-D9Sio9QB.es.js → Separator-CuZ-VIh8.es.js} +5 -5
  34. package/dist/chunks/{Separator-D9Sio9QB.es.js.map → Separator-CuZ-VIh8.es.js.map} +1 -1
  35. package/dist/chunks/{TextArea-VPSW7sXC.es.js → TextArea-BmpgvS0R.es.js} +5 -5
  36. package/dist/chunks/{TextArea-VPSW7sXC.es.js.map → TextArea-BmpgvS0R.es.js.map} +1 -1
  37. package/dist/chunks/{ToggleButton-CRaJMq4q.es.js → ToggleButton-C3JL0pgD.es.js} +7 -7
  38. package/dist/chunks/{ToggleButton-CRaJMq4q.es.js.map → ToggleButton-C3JL0pgD.es.js.map} +1 -1
  39. package/dist/chunks/{VisuallyHidden-B0NiNh0E.es.js → VisuallyHidden-VHEPK04F.es.js} +3 -3
  40. package/dist/chunks/{VisuallyHidden-B0NiNh0E.es.js.map → VisuallyHidden-VHEPK04F.es.js.map} +1 -1
  41. package/dist/chunks/{accordion-BOm1fDGE.es.js → accordion-DG3lUgRg.es.js} +7 -7
  42. package/dist/chunks/{accordion-BOm1fDGE.es.js.map → accordion-DG3lUgRg.es.js.map} +1 -1
  43. package/dist/chunks/{alert-AElDV5sG.es.js → alert-VGuxkbOc.es.js} +2 -2
  44. package/dist/chunks/{alert-AElDV5sG.es.js.map → alert-VGuxkbOc.es.js.map} +1 -1
  45. package/dist/chunks/{badge-CHmfeeRs.es.js → badge-BJd-Q81M.es.js} +2 -2
  46. package/dist/chunks/{badge-CHmfeeRs.es.js.map → badge-BJd-Q81M.es.js.map} +1 -1
  47. package/dist/chunks/{button-BQ3kiG-V.es.js → button-rNwSVldt.es.js} +5 -5
  48. package/dist/chunks/{button-BQ3kiG-V.es.js.map → button-rNwSVldt.es.js.map} +1 -1
  49. package/dist/chunks/{calendar-BK_QGKS0.es.js → calendar-D6NyBain.es.js} +9 -9
  50. package/dist/chunks/{calendar-BK_QGKS0.es.js.map → calendar-D6NyBain.es.js.map} +1 -1
  51. package/dist/chunks/{card-D9fWUQqs.es.js → card-BfUdf1Fy.es.js} +3 -3
  52. package/dist/chunks/{card-D9fWUQqs.es.js.map → card-BfUdf1Fy.es.js.map} +1 -1
  53. package/dist/chunks/{checkbox-BGAiCLIb.es.js → checkbox-CKNIwwcB.es.js} +9 -9
  54. package/dist/chunks/{checkbox-BGAiCLIb.es.js.map → checkbox-CKNIwwcB.es.js.map} +1 -1
  55. package/dist/chunks/{combobox-07vfnDtg.es.js → combobox-BUIW3Acv.es.js} +27 -27
  56. package/dist/chunks/{combobox-07vfnDtg.es.js.map → combobox-BUIW3Acv.es.js.map} +1 -1
  57. package/dist/chunks/{context-DHW7D0wv.es.js → context-R4YUlO9Y.es.js} +2 -2
  58. package/dist/chunks/{context-DHW7D0wv.es.js.map → context-R4YUlO9Y.es.js.map} +1 -1
  59. package/dist/chunks/{data-table-BCgdkQQg.es.js → data-table-WrOybKO-.es.js} +26 -26
  60. package/dist/chunks/{data-table-BCgdkQQg.es.js.map → data-table-WrOybKO-.es.js.map} +1 -1
  61. package/dist/chunks/{date-input-BVqM2Zwt.es.js → date-input-lvHqn9hu.es.js} +2 -2
  62. package/dist/chunks/{date-input-BVqM2Zwt.es.js.map → date-input-lvHqn9hu.es.js.map} +1 -1
  63. package/dist/chunks/{date-picker-D5DgoUj4.es.js → date-picker-BClkWxBN.es.js} +13 -13
  64. package/dist/chunks/{date-picker-D5DgoUj4.es.js.map → date-picker-BClkWxBN.es.js.map} +1 -1
  65. package/dist/chunks/{date-range-picker-BsRVRy3E.es.js → date-range-picker-DMgDuWt8.es.js} +13 -13
  66. package/dist/chunks/{date-range-picker-BsRVRy3E.es.js.map → date-range-picker-DMgDuWt8.es.js.map} +1 -1
  67. package/dist/chunks/{focusSafely-DS3RePi9.es.js → focusSafely-DJpphVHF.es.js} +3 -3
  68. package/dist/chunks/{focusSafely-DS3RePi9.es.js.map → focusSafely-DJpphVHF.es.js.map} +1 -1
  69. package/dist/chunks/{form-field-DbrBkvlM.es.js → form-field-CkKl1C4M.es.js} +4 -4
  70. package/dist/chunks/{form-field-DbrBkvlM.es.js.map → form-field-CkKl1C4M.es.js.map} +1 -1
  71. package/dist/chunks/{group-FqYM3Go1.es.js → group-CqfSQXe7.es.js} +2 -2
  72. package/dist/chunks/{group-FqYM3Go1.es.js.map → group-CqfSQXe7.es.js.map} +1 -1
  73. package/dist/chunks/{icon-button-uSoUy0va.es.js → icon-button-BucXZ7sA.es.js} +2 -2
  74. package/dist/chunks/{icon-button-uSoUy0va.es.js.map → icon-button-BucXZ7sA.es.js.map} +1 -1
  75. package/dist/chunks/{icon-toggle-button-0hNL2V8m.es.js → icon-toggle-button-CHJioicU.es.js} +2 -2
  76. package/dist/chunks/{icon-toggle-button-0hNL2V8m.es.js.map → icon-toggle-button-CHJioicU.es.js.map} +1 -1
  77. package/dist/chunks/{kbd-D10CDyIE.es.js → kbd-BXN9aXRE.es.js} +2 -2
  78. package/dist/chunks/{kbd-D10CDyIE.es.js.map → kbd-BXN9aXRE.es.js.map} +1 -1
  79. package/dist/chunks/{link-CwFZrz1A.es.js → link-CFK97sc0.es.js} +4 -4
  80. package/dist/chunks/{link-CwFZrz1A.es.js.map → link-CFK97sc0.es.js.map} +1 -1
  81. package/dist/chunks/{loading-spinner-D3xWum_0.es.js → loading-spinner-DqWmjCK2.es.js} +3 -3
  82. package/dist/chunks/{loading-spinner-D3xWum_0.es.js.map → loading-spinner-DqWmjCK2.es.js.map} +1 -1
  83. package/dist/chunks/{make-element-focusable-BjLmsXKn.es.js → make-element-focusable-C4ZHUSEU.es.js} +3 -3
  84. package/dist/chunks/{make-element-focusable-BjLmsXKn.es.js.map → make-element-focusable-C4ZHUSEU.es.js.map} +1 -1
  85. package/dist/chunks/{menu-Bw1cKywG.es.js → menu-tco1KyAc.es.js} +5 -5
  86. package/dist/chunks/{menu-Bw1cKywG.es.js.map → menu-tco1KyAc.es.js.map} +1 -1
  87. package/dist/chunks/{mergeProps-uJMZqSEt.es.js → mergeProps-B_9syxhT.es.js} +2 -2
  88. package/dist/chunks/{mergeProps-uJMZqSEt.es.js.map → mergeProps-B_9syxhT.es.js.map} +1 -1
  89. package/dist/chunks/money-input-CdP3v6p6.cjs.js +2 -0
  90. package/dist/chunks/money-input-CdP3v6p6.cjs.js.map +1 -0
  91. package/dist/chunks/money-input-Cvmv4t9C.es.js +617 -0
  92. package/dist/chunks/money-input-Cvmv4t9C.es.js.map +1 -0
  93. package/dist/chunks/{multiline-text-input-C72_0pUg.es.js → multiline-text-input-WCmZjwVI.es.js} +3 -3
  94. package/dist/chunks/{multiline-text-input-C72_0pUg.es.js.map → multiline-text-input-WCmZjwVI.es.js.map} +1 -1
  95. package/dist/chunks/{nimbus-provider-HIuQgyHu.es.js → nimbus-provider-DXNGbcxb.es.js} +2 -2
  96. package/dist/chunks/{nimbus-provider-HIuQgyHu.es.js.map → nimbus-provider-DXNGbcxb.es.js.map} +1 -1
  97. package/dist/chunks/{number-input-CKbE2nF3.es.js → number-input-A8V9jCrF.es.js} +99 -88
  98. package/dist/chunks/{number-input-CKbE2nF3.es.js.map → number-input-A8V9jCrF.es.js.map} +1 -1
  99. package/dist/chunks/number-input-BscqsXLr.cjs.js +2 -0
  100. package/dist/chunks/{number-input-C6V-OoKY.cjs.js.map → number-input-BscqsXLr.cjs.js.map} +1 -1
  101. package/dist/chunks/{pagination-CvFm3Y-B.es.js → pagination-BilPyKzE.es.js} +5 -5
  102. package/dist/chunks/{pagination-CvFm3Y-B.es.js.map → pagination-BilPyKzE.es.js.map} +1 -1
  103. package/dist/chunks/{pagination-DFmOo7da.cjs.js → pagination-BzLsTY48.cjs.js} +2 -2
  104. package/dist/chunks/{pagination-DFmOo7da.cjs.js.map → pagination-BzLsTY48.cjs.js.map} +1 -1
  105. package/dist/chunks/{password-input-BIGq3fmn.es.js → password-input-1suWZc7f.es.js} +4 -4
  106. package/dist/chunks/{password-input-BIGq3fmn.es.js.map → password-input-1suWZc7f.es.js.map} +1 -1
  107. package/dist/chunks/{progress-bar-DokgT9da.es.js → progress-bar-D2a7ZPWi.es.js} +3 -3
  108. package/dist/chunks/{progress-bar-DokgT9da.es.js.map → progress-bar-D2a7ZPWi.es.js.map} +1 -1
  109. package/dist/chunks/{radio-input-BqFnIjO2.es.js → radio-input-BgMS0ym1.es.js} +16 -16
  110. package/dist/chunks/{radio-input-BqFnIjO2.es.js.map → radio-input-BgMS0ym1.es.js.map} +1 -1
  111. package/dist/chunks/{range-calendar-uSOrC07P.es.js → range-calendar-_nXf-aoR.es.js} +9 -9
  112. package/dist/chunks/{range-calendar-uSOrC07P.es.js.map → range-calendar-_nXf-aoR.es.js.map} +1 -1
  113. package/dist/chunks/{rich-text-input-BeAntm5q.es.js → rich-text-input-BaXDjgVB.es.js} +11 -11
  114. package/dist/chunks/{rich-text-input-BeAntm5q.es.js.map → rich-text-input-BaXDjgVB.es.js.map} +1 -1
  115. package/dist/chunks/{scrollIntoView-DW7gkKpB.es.js → scrollIntoView-BYF_8_6g.es.js} +2 -2
  116. package/dist/chunks/{scrollIntoView-DW7gkKpB.es.js.map → scrollIntoView-BYF_8_6g.es.js.map} +1 -1
  117. package/dist/chunks/{select-DRUAnKPP.es.js → select-Oi9NKTD2.es.js} +21 -21
  118. package/dist/chunks/{select-DRUAnKPP.es.js.map → select-Oi9NKTD2.es.js.map} +1 -1
  119. package/dist/chunks/{separator-BUpLsao0.es.js → separator-D3JP7dvE.es.js} +2 -2
  120. package/dist/chunks/{separator-BUpLsao0.es.js.map → separator-D3JP7dvE.es.js.map} +1 -1
  121. package/dist/chunks/{split-button-U_bcotvu.es.js → split-button-FG4rSCzg.es.js} +4 -4
  122. package/dist/chunks/{split-button-U_bcotvu.es.js.map → split-button-FG4rSCzg.es.js.map} +1 -1
  123. package/dist/chunks/{switch-DRyBAafG.es.js → switch-BaF0PH5z.es.js} +5 -5
  124. package/dist/chunks/{switch-DRyBAafG.es.js.map → switch-BaF0PH5z.es.js.map} +1 -1
  125. package/dist/chunks/{tag-group-BzLpm8Nm.es.js → tag-group-DNGTTkyq.es.js} +22 -22
  126. package/dist/chunks/{tag-group-BzLpm8Nm.es.js.map → tag-group-DNGTTkyq.es.js.map} +1 -1
  127. package/dist/chunks/{text-Bi4Gre95.es.js → text-DfQpupDi.es.js} +2 -2
  128. package/dist/chunks/{text-Bi4Gre95.es.js.map → text-DfQpupDi.es.js.map} +1 -1
  129. package/dist/chunks/{text-input-De16hUH1.es.js → text-input-Ciz7DJmU.es.js} +3 -3
  130. package/dist/chunks/{text-input-De16hUH1.es.js.map → text-input-Ciz7DJmU.es.js.map} +1 -1
  131. package/dist/chunks/{time-input-0zQIcl5w.es.js → time-input-DhNwJx5a.es.js} +2 -2
  132. package/dist/chunks/{time-input-0zQIcl5w.es.js.map → time-input-DhNwJx5a.es.js.map} +1 -1
  133. package/dist/chunks/{toggle-button-D1Ul4V1F.es.js → toggle-button-B0Vq-yaq.es.js} +2 -2
  134. package/dist/chunks/{toggle-button-D1Ul4V1F.es.js.map → toggle-button-B0Vq-yaq.es.js.map} +1 -1
  135. package/dist/chunks/{toggle-button-group-DXmJCAH5.es.js → toggle-button-group-jRdpdYyd.es.js} +2 -2
  136. package/dist/chunks/{toggle-button-group-DXmJCAH5.es.js.map → toggle-button-group-jRdpdYyd.es.js.map} +1 -1
  137. package/dist/chunks/{toolbar-D90bjfN_.es.js → toolbar-CtIrOXXC.es.js} +4 -4
  138. package/dist/chunks/{toolbar-D90bjfN_.es.js.map → toolbar-CtIrOXXC.es.js.map} +1 -1
  139. package/dist/chunks/{tooltip-BE3LzL7I.es.js → tooltip-B1YdruCE.es.js} +8 -8
  140. package/dist/chunks/{tooltip-BE3LzL7I.es.js.map → tooltip-B1YdruCE.es.js.map} +1 -1
  141. package/dist/chunks/{useButton-CYfXo2Jm.es.js → useButton-DAeSjgg9.es.js} +4 -4
  142. package/dist/chunks/{useButton-CYfXo2Jm.es.js.map → useButton-DAeSjgg9.es.js.map} +1 -1
  143. package/dist/chunks/{useCollator-Y-oU82PA.es.js → useCollator-BHMZd1r6.es.js} +2 -2
  144. package/dist/chunks/{useCollator-Y-oU82PA.es.js.map → useCollator-BHMZd1r6.es.js.map} +1 -1
  145. package/dist/chunks/{useDateFormatter-BuXtxdR1.es.js → useDateFormatter-C7Kxzwro.es.js} +3 -3
  146. package/dist/chunks/{useDateFormatter-BuXtxdR1.es.js.map → useDateFormatter-C7Kxzwro.es.js.map} +1 -1
  147. package/dist/chunks/{useEvent-Bxxy8Y3o.es.js → useEvent-YHhqZvpU.es.js} +2 -2
  148. package/dist/chunks/{useEvent-Bxxy8Y3o.es.js.map → useEvent-YHhqZvpU.es.js.map} +1 -1
  149. package/dist/chunks/{useField-Do87rtEk.es.js → useField-Ce9zQxmx.es.js} +3 -3
  150. package/dist/chunks/{useField-Do87rtEk.es.js.map → useField-Ce9zQxmx.es.js.map} +1 -1
  151. package/dist/chunks/{useFilter-ClBjQ7pb.es.js → useFilter-DOfNzeZ9.es.js} +2 -2
  152. package/dist/chunks/{useFilter-ClBjQ7pb.es.js.map → useFilter-DOfNzeZ9.es.js.map} +1 -1
  153. package/dist/chunks/{useFocus-BmMqaBAE.es.js → useFocus-DkWJ2TJC.es.js} +2 -2
  154. package/dist/chunks/{useFocus-BmMqaBAE.es.js.map → useFocus-DkWJ2TJC.es.js.map} +1 -1
  155. package/dist/chunks/{useFocusRing-SQNQ9yn0.es.js → useFocusRing-updnkDQg.es.js} +4 -4
  156. package/dist/chunks/{useFocusRing-SQNQ9yn0.es.js.map → useFocusRing-updnkDQg.es.js.map} +1 -1
  157. package/dist/chunks/{useFocusVisible-BrqHqmb9.es.js → useFocusVisible-CWDaG0ze.es.js} +3 -3
  158. package/dist/chunks/{useFocusVisible-BrqHqmb9.es.js.map → useFocusVisible-CWDaG0ze.es.js.map} +1 -1
  159. package/dist/chunks/{useFocusWithin-Db5nhiOm.es.js → useFocusWithin-ByYlHjju.es.js} +2 -2
  160. package/dist/chunks/{useFocusWithin-Db5nhiOm.es.js.map → useFocusWithin-ByYlHjju.es.js.map} +1 -1
  161. package/dist/chunks/{useFocusable-BqRFi3ok.es.js → useFocusable-CrsD8ZcF.es.js} +5 -5
  162. package/dist/chunks/{useFocusable-BqRFi3ok.es.js.map → useFocusable-CrsD8ZcF.es.js.map} +1 -1
  163. package/dist/chunks/{useFormReset-S3fDvX8g.es.js → useFormReset-DurgUJL-.es.js} +2 -2
  164. package/dist/chunks/{useFormReset-S3fDvX8g.es.js.map → useFormReset-DurgUJL-.es.js.map} +1 -1
  165. package/dist/chunks/{useFormValidation-CzvY15hR.es.js → useFormValidation-4hZ1_a6w.es.js} +3 -3
  166. package/dist/chunks/{useFormValidation-CzvY15hR.es.js.map → useFormValidation-4hZ1_a6w.es.js.map} +1 -1
  167. package/dist/chunks/{useHighlightSelectionDescription-VzA5DMaE.es.js → useHighlightSelectionDescription-BQg1WcM3.es.js} +6 -6
  168. package/dist/chunks/{useHighlightSelectionDescription-VzA5DMaE.es.js.map → useHighlightSelectionDescription-BQg1WcM3.es.js.map} +1 -1
  169. package/dist/chunks/{useHover-B6UI1gbJ.es.js → useHover-DhoE75lX.es.js} +2 -2
  170. package/dist/chunks/{useHover-B6UI1gbJ.es.js.map → useHover-DhoE75lX.es.js.map} +1 -1
  171. package/dist/chunks/{useLabel-BZKxdTDn.es.js → useLabel-BBmkkrPP.es.js} +2 -2
  172. package/dist/chunks/{useLabel-BZKxdTDn.es.js.map → useLabel-BBmkkrPP.es.js.map} +1 -1
  173. package/dist/chunks/{useLocalizedStringFormatter-BpL9LNnx.es.js → useLocalizedStringFormatter-BRnRyxJp.es.js} +2 -2
  174. package/dist/chunks/{useLocalizedStringFormatter-BpL9LNnx.es.js.map → useLocalizedStringFormatter-BRnRyxJp.es.js.map} +1 -1
  175. package/dist/chunks/{usePress-BuSQ4Y3L.es.js → usePress-DHhWHfMz.es.js} +6 -6
  176. package/dist/chunks/{usePress-BuSQ4Y3L.es.js.map → usePress-DHhWHfMz.es.js.map} +1 -1
  177. package/dist/chunks/{useProgressBar-g3lb_jPQ.es.js → useProgressBar-DHFmTHqL.es.js} +4 -4
  178. package/dist/chunks/{useProgressBar-g3lb_jPQ.es.js.map → useProgressBar-DHFmTHqL.es.js.map} +1 -1
  179. package/dist/chunks/{useSingleSelectListState-CUkiyLA6.es.js → useSingleSelectListState-CdPCvWTv.es.js} +2 -2
  180. package/dist/chunks/{useSingleSelectListState-CUkiyLA6.es.js.map → useSingleSelectListState-CdPCvWTv.es.js.map} +1 -1
  181. package/dist/chunks/{useSpinButton-DedtXIGZ.es.js → useSpinButton-C9DPDo0r.es.js} +3 -3
  182. package/dist/chunks/{useSpinButton-DedtXIGZ.es.js.map → useSpinButton-C9DPDo0r.es.js.map} +1 -1
  183. package/dist/chunks/{useSyncRef-Cipkqs1s.es.js → useSyncRef-DGRbdR4H.es.js} +2 -2
  184. package/dist/chunks/{useSyncRef-Cipkqs1s.es.js.map → useSyncRef-DGRbdR4H.es.js.map} +1 -1
  185. package/dist/chunks/{useTextField-tbVMyexr.es.js → useTextField-BnL6tOdd.es.js} +7 -7
  186. package/dist/chunks/{useTextField-tbVMyexr.es.js.map → useTextField-BnL6tOdd.es.js.map} +1 -1
  187. package/dist/chunks/{useToggle-CoHAX6Sy.es.js → useToggle-DqruaaTq.es.js} +5 -5
  188. package/dist/chunks/{useToggle-CoHAX6Sy.es.js.map → useToggle-DqruaaTq.es.js.map} +1 -1
  189. package/dist/chunks/{useToolbar-B1WYuGxA.es.js → useToolbar-CLH6Sjes.es.js} +4 -4
  190. package/dist/chunks/{useToolbar-B1WYuGxA.es.js.map → useToolbar-CLH6Sjes.es.js.map} +1 -1
  191. package/dist/chunks/{utils-CsKCu3xh.es.js → utils-BkdW_cdL.es.js} +2 -2
  192. package/dist/chunks/{utils-CsKCu3xh.es.js.map → utils-BkdW_cdL.es.js.map} +1 -1
  193. package/dist/chunks/{utils-d3Zmq36h.es.js → utils-jpfA6kxk.es.js} +2 -2
  194. package/dist/chunks/{utils-d3Zmq36h.es.js.map → utils-jpfA6kxk.es.js.map} +1 -1
  195. package/dist/chunks/{visually-hidden-09RsVX6x.es.js → visually-hidden-BluyWhUI.es.js} +2 -2
  196. package/dist/chunks/{visually-hidden-09RsVX6x.es.js.map → visually-hidden-BluyWhUI.es.js.map} +1 -1
  197. package/dist/components/accordion.es.js +1 -1
  198. package/dist/components/alert.es.js +1 -1
  199. package/dist/components/badge.es.js +1 -1
  200. package/dist/components/button.es.js +1 -1
  201. package/dist/components/calendar.es.js +1 -1
  202. package/dist/components/card.es.js +1 -1
  203. package/dist/components/checkbox.es.js +1 -1
  204. package/dist/components/combobox.es.js +1 -1
  205. package/dist/components/components.cjs +1 -1
  206. package/dist/components/components.es.js +98 -96
  207. package/dist/components/components.es.js.map +1 -1
  208. package/dist/components/data-table.es.js +1 -1
  209. package/dist/components/date-input.es.js +1 -1
  210. package/dist/components/date-picker.es.js +1 -1
  211. package/dist/components/date-range-picker.es.js +1 -1
  212. package/dist/components/form-field.es.js +1 -1
  213. package/dist/components/group.es.js +1 -1
  214. package/dist/components/icon-button.es.js +1 -1
  215. package/dist/components/icon-toggle-button.es.js +1 -1
  216. package/dist/components/kbd.es.js +1 -1
  217. package/dist/components/link.es.js +1 -1
  218. package/dist/components/loading-spinner.es.js +1 -1
  219. package/dist/components/money-input.cjs +2 -0
  220. package/dist/components/money-input.cjs.map +1 -0
  221. package/dist/components/money-input.es.js +5 -0
  222. package/dist/components/money-input.es.js.map +1 -0
  223. package/dist/components/multiline-text-input.es.js +1 -1
  224. package/dist/components/nimbus-provider.es.js +1 -1
  225. package/dist/components/number-input.cjs +1 -1
  226. package/dist/components/number-input.es.js +1 -1
  227. package/dist/components/pagination.cjs +1 -1
  228. package/dist/components/pagination.es.js +1 -1
  229. package/dist/components/password-input.es.js +1 -1
  230. package/dist/components/popover.es.js +1 -1
  231. package/dist/components/progress-bar.es.js +1 -1
  232. package/dist/components/radio-input.es.js +1 -1
  233. package/dist/components/range-calendar.es.js +1 -1
  234. package/dist/components/rich-text-input.es.js +1 -1
  235. package/dist/components/select.es.js +1 -1
  236. package/dist/components/separator.es.js +1 -1
  237. package/dist/components/split-button.es.js +1 -1
  238. package/dist/components/switch.es.js +1 -1
  239. package/dist/components/tag-group.es.js +1 -1
  240. package/dist/components/text-input.es.js +1 -1
  241. package/dist/components/text.es.js +1 -1
  242. package/dist/components/time-input.es.js +1 -1
  243. package/dist/components/toggle-button-group.es.js +1 -1
  244. package/dist/components/toggle-button.es.js +1 -1
  245. package/dist/components/toolbar.es.js +1 -1
  246. package/dist/components/tooltip.es.js +2 -2
  247. package/dist/components/visually-hidden.es.js +1 -1
  248. package/dist/components.d.ts +912 -3
  249. package/dist/index.cjs +1 -1
  250. package/dist/index.cjs.map +1 -1
  251. package/dist/index.d.ts +912 -3
  252. package/dist/index.es.js +100 -98
  253. package/dist/index.es.js.map +1 -1
  254. package/dist/money-input.d.ts +951 -0
  255. package/dist/number-input.d.ts +4 -3
  256. package/package.json +5 -5
  257. package/dist/chunks/number-input-C6V-OoKY.cjs.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleButton-CRaJMq4q.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+button@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/button/dist/useToggleButton.mjs","../../../../node_modules/.pnpm/@react-aria+button@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/button/dist/useToggleButtonGroup.mjs","../../../../node_modules/.pnpm/@react-stately+toggle@3.9.1_react@19.1.0/node_modules/@react-stately/toggle/dist/useToggleGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.12.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/ToggleButtonGroup.mjs","../../../../node_modules/.pnpm/react-aria-components@1.12.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/ToggleButton.mjs"],"sourcesContent":["import {useButton as $701a24aa0da5b062$export$ea18c227d4417cc3} from \"./useButton.mjs\";\nimport {chain as $h7Tql$chain, mergeProps as $h7Tql$mergeProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $55f54f7887471b58$export$51e84d46ca0bc451(props, state, ref) {\n const { isSelected: isSelected } = state;\n const { isPressed: isPressed, buttonProps: buttonProps } = (0, $701a24aa0da5b062$export$ea18c227d4417cc3)({\n ...props,\n onPress: (0, $h7Tql$chain)(state.toggle, props.onPress)\n }, ref);\n return {\n isPressed: isPressed,\n isSelected: isSelected,\n isDisabled: props.isDisabled || false,\n buttonProps: (0, $h7Tql$mergeProps)(buttonProps, {\n 'aria-pressed': isSelected\n })\n };\n}\n\n\nexport {$55f54f7887471b58$export$51e84d46ca0bc451 as useToggleButton};\n//# sourceMappingURL=useToggleButton.module.js.map\n","import {useToggleButton as $55f54f7887471b58$export$51e84d46ca0bc451} from \"./useToggleButton.mjs\";\nimport {useToolbar as $9iEyV$useToolbar} from \"@react-aria/toolbar\";\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 $4547d1bf40011fdf$export$dd5580ae642f110f(props, state, ref) {\n let { isDisabled: isDisabled } = props;\n let { toolbarProps: toolbarProps } = (0, $9iEyV$useToolbar)(props, ref);\n return {\n groupProps: {\n ...toolbarProps,\n role: state.selectionMode === 'single' ? 'radiogroup' : toolbarProps.role,\n 'aria-disabled': isDisabled\n }\n };\n}\nfunction $4547d1bf40011fdf$export$bc53712daae3d6e6(props, state, ref) {\n let toggleState = {\n isSelected: state.selectedKeys.has(props.id),\n defaultSelected: false,\n setSelected (isSelected) {\n state.setSelected(props.id, isSelected);\n },\n toggle () {\n state.toggleKey(props.id);\n }\n };\n let { isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled, buttonProps: buttonProps } = (0, $55f54f7887471b58$export$51e84d46ca0bc451)({\n ...props,\n id: undefined,\n isDisabled: props.isDisabled || state.isDisabled\n }, toggleState, ref);\n if (state.selectionMode === 'single') {\n buttonProps.role = 'radio';\n buttonProps['aria-checked'] = toggleState.isSelected;\n delete buttonProps['aria-pressed'];\n }\n return {\n isPressed: isPressed,\n isSelected: isSelected,\n isDisabled: isDisabled,\n buttonProps: buttonProps\n };\n}\n\n\nexport {$4547d1bf40011fdf$export$dd5580ae642f110f as useToggleButtonGroup, $4547d1bf40011fdf$export$bc53712daae3d6e6 as useToggleButtonGroupItem};\n//# sourceMappingURL=useToggleButtonGroup.module.js.map\n","import {useControlledState as $69RjW$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $69RjW$useMemo} 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 $ad999b7f496648d1$export$8deac67f4addf270(props) {\n let { selectionMode: selectionMode = 'single', disallowEmptySelection: disallowEmptySelection, isDisabled: isDisabled = false } = props;\n let [selectedKeys, setSelectedKeys] = (0, $69RjW$useControlledState)((0, $69RjW$useMemo)(()=>props.selectedKeys ? new Set(props.selectedKeys) : undefined, [\n props.selectedKeys\n ]), (0, $69RjW$useMemo)(()=>props.defaultSelectedKeys ? new Set(props.defaultSelectedKeys) : new Set(), [\n props.defaultSelectedKeys\n ]), props.onSelectionChange);\n return {\n selectionMode: selectionMode,\n isDisabled: isDisabled,\n selectedKeys: selectedKeys,\n setSelectedKeys: setSelectedKeys,\n toggleKey (key) {\n let keys;\n if (selectionMode === 'multiple') {\n keys = new Set(selectedKeys);\n if (keys.has(key) && (!disallowEmptySelection || keys.size > 1)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(selectedKeys.has(key) && !disallowEmptySelection ? [] : [\n key\n ]);\n setSelectedKeys(keys);\n },\n setSelected (key, isSelected) {\n if (isSelected !== selectedKeys.has(key)) this.toggleKey(key);\n }\n };\n}\n\n\nexport {$ad999b7f496648d1$export$8deac67f4addf270 as useToggleGroupState};\n//# sourceMappingURL=useToggleGroupState.module.js.map\n","import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useToggleButtonGroup as $1lXgK$useToggleButtonGroup} from \"react-aria\";\nimport {filterDOMProps as $1lXgK$filterDOMProps, mergeProps as $1lXgK$mergeProps} from \"@react-aria/utils\";\nimport $1lXgK$react, {createContext as $1lXgK$createContext, forwardRef as $1lXgK$forwardRef} from \"react\";\nimport {useToggleGroupState as $1lXgK$useToggleGroupState} from \"react-stately\";\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\n\nconst $84b7d8702d4ff4a8$export$298258635ae0dd97 = /*#__PURE__*/ (0, $1lXgK$createContext)({});\nconst $84b7d8702d4ff4a8$export$a8a71863db173133 = /*#__PURE__*/ (0, $1lXgK$createContext)(null);\nconst $84b7d8702d4ff4a8$export$40258cc1d95ff477 = /*#__PURE__*/ (0, $1lXgK$forwardRef)(function ToggleButtonGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $84b7d8702d4ff4a8$export$298258635ae0dd97);\n let state = (0, $1lXgK$useToggleGroupState)(props);\n let { groupProps: groupProps } = (0, $1lXgK$useToggleButtonGroup)(props, state, ref);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isDisabled: state.isDisabled,\n state: state\n },\n defaultClassName: 'react-aria-ToggleButtonGroup'\n });\n let DOMProps = (0, $1lXgK$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $1lXgK$react).createElement(\"div\", {\n ...(0, $1lXgK$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'horizontal',\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $1lXgK$react).createElement($84b7d8702d4ff4a8$export$a8a71863db173133.Provider, {\n value: state\n }, renderProps.children));\n});\n\n\nexport {$84b7d8702d4ff4a8$export$298258635ae0dd97 as ToggleButtonGroupContext, $84b7d8702d4ff4a8$export$a8a71863db173133 as ToggleGroupStateContext, $84b7d8702d4ff4a8$export$40258cc1d95ff477 as ToggleButtonGroup};\n//# sourceMappingURL=ToggleButtonGroup.module.js.map\n","import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ToggleGroupStateContext as $84b7d8702d4ff4a8$export$a8a71863db173133} from \"./ToggleButtonGroup.mjs\";\nimport {useToggleButtonGroupItem as $jrJ9L$useToggleButtonGroupItem, useToggleButton as $jrJ9L$useToggleButton, useFocusRing as $jrJ9L$useFocusRing, useHover as $jrJ9L$useHover, mergeProps as $jrJ9L$mergeProps} from \"react-aria\";\nimport {filterDOMProps as $jrJ9L$filterDOMProps} from \"@react-aria/utils\";\nimport $jrJ9L$react, {createContext as $jrJ9L$createContext, forwardRef as $jrJ9L$forwardRef, useContext as $jrJ9L$useContext} from \"react\";\nimport {useToggleState as $jrJ9L$useToggleState} from \"react-stately\";\n\n/*\n * Copyright 2022 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\n\n\nconst $efde0372d7a700fe$export$43506d75ebd2e218 = /*#__PURE__*/ (0, $jrJ9L$createContext)({});\nconst $efde0372d7a700fe$export$d2b052e7b4be1756 = /*#__PURE__*/ (0, $jrJ9L$forwardRef)(function ToggleButton(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $efde0372d7a700fe$export$43506d75ebd2e218);\n let groupState = (0, $jrJ9L$useContext)((0, $84b7d8702d4ff4a8$export$a8a71863db173133));\n let state = (0, $jrJ9L$useToggleState)(groupState && props.id != null ? {\n isSelected: groupState.selectedKeys.has(props.id),\n onChange (isSelected) {\n groupState.setSelected(props.id, isSelected);\n }\n } : props);\n let { buttonProps: buttonProps, isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled } = groupState && props.id != null ? (0, $jrJ9L$useToggleButtonGroupItem)({\n ...props,\n id: props.id\n }, groupState, ref) : (0, $jrJ9L$useToggleButton)({\n ...props,\n id: props.id != null ? String(props.id) : undefined\n }, state, ref);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $jrJ9L$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $jrJ9L$useHover)(props);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n values: {\n isHovered: isHovered,\n isPressed: isPressed,\n isFocused: isFocused,\n isSelected: state.isSelected,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n state: state\n },\n defaultClassName: 'react-aria-ToggleButton'\n });\n let DOMProps = (0, $jrJ9L$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $jrJ9L$react).createElement(\"button\", {\n ...(0, $jrJ9L$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n });\n});\n\n\nexport {$efde0372d7a700fe$export$43506d75ebd2e218 as ToggleButtonContext, $efde0372d7a700fe$export$d2b052e7b4be1756 as ToggleButton};\n//# sourceMappingURL=ToggleButton.module.js.map\n"],"names":["$55f54f7887471b58$export$51e84d46ca0bc451","props","state","ref","isSelected","isPressed","buttonProps","$701a24aa0da5b062$export$ea18c227d4417cc3","$h7Tql$chain","$h7Tql$mergeProps","$4547d1bf40011fdf$export$dd5580ae642f110f","isDisabled","toolbarProps","$9iEyV$useToolbar","$4547d1bf40011fdf$export$bc53712daae3d6e6","toggleState","$ad999b7f496648d1$export$8deac67f4addf270","selectionMode","disallowEmptySelection","selectedKeys","setSelectedKeys","$69RjW$useControlledState","$69RjW$useMemo","key","keys","$84b7d8702d4ff4a8$export$298258635ae0dd97","$1lXgK$createContext","$84b7d8702d4ff4a8$export$a8a71863db173133","$84b7d8702d4ff4a8$export$40258cc1d95ff477","$1lXgK$forwardRef","$64fa3d84918910a7$export$29f1550f4b0d4415","$1lXgK$useToggleGroupState","groupProps","$1lXgK$useToggleButtonGroup","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$1lXgK$filterDOMProps","$1lXgK$react","$1lXgK$mergeProps","$efde0372d7a700fe$export$43506d75ebd2e218","$jrJ9L$createContext","$efde0372d7a700fe$export$d2b052e7b4be1756","$jrJ9L$forwardRef","groupState","$jrJ9L$useContext","$jrJ9L$useToggleState","$jrJ9L$useToggleButtonGroupItem","$jrJ9L$useToggleButton","focusProps","isFocused","isFocusVisible","$jrJ9L$useFocusRing","hoverProps","isHovered","$jrJ9L$useHover","$jrJ9L$filterDOMProps","$jrJ9L$react","$jrJ9L$mergeProps"],"mappings":";;;;;;;;;;AAeA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,QAAM,EAAE,YAAYC,EAAU,IAAKF,GAC7B,EAAE,WAAWG,GAAW,aAAaC,EAAW,IAASC,EAA2C;AAAA,IACtG,GAAGN;AAAA,IACH,SAAaO,EAAcN,EAAM,QAAQD,EAAM,OAAO;AAAA,EAC9D,GAAOE,CAAG;AACN,SAAO;AAAA,IACH,WAAWE;AAAA,IACX,YAAYD;AAAA,IACZ,YAAYH,EAAM,cAAc;AAAA,IAChC,aAAiBQ,EAAmBH,GAAa;AAAA,MAC7C,gBAAgBF;AAAA,IAC5B,CAAS;AAAA,EACT;AACA;ACdA,SAASM,EAA0CT,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYQ,EAAU,IAAKV,GAC7B,EAAE,cAAcW,EAAY,IAASC,EAAmBZ,GAAOE,CAAG;AACtE,SAAO;AAAA,IACH,YAAY;AAAA,MACR,GAAGS;AAAA,MACH,MAAMV,EAAM,kBAAkB,WAAW,eAAeU,EAAa;AAAA,MACrE,iBAAiBD;AAAA,IAC7B;AAAA,EACA;AACA;AACA,SAASG,EAA0Cb,GAAOC,GAAOC,GAAK;AAClE,MAAIY,IAAc;AAAA,IACd,YAAYb,EAAM,aAAa,I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EAAc,cAAc,UAAU;AAAA,IAC3D,GAAOC,EAAmBtB,GAAUF,GAAa5B,GAAa2C,GAAYI,CAAU;AAAA,IACpF,KAAKlD;AAAA,IACL,MAAMF,EAAM,QAAQ;AAAA,IACpB,gBAAgBiD,KAAa;AAAA,IAC7B,iBAAiBvC,KAAc;AAAA,IAC/B,gBAAgBN,KAAa;AAAA,IAC7B,iBAAiBD,KAAc;AAAA,IAC/B,gBAAgBkD,KAAa;AAAA,IAC7B,sBAAsBH,KAAkB;AAAA,EAChD,CAAK;AACL,CAAC;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"ToggleButton-C3JL0pgD.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+button@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/button/dist/useToggleButton.mjs","../../../../node_modules/.pnpm/@react-aria+button@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/button/dist/useToggleButtonGroup.mjs","../../../../node_modules/.pnpm/@react-stately+toggle@3.9.1_react@19.1.0/node_modules/@react-stately/toggle/dist/useToggleGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.12.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/ToggleButtonGroup.mjs","../../../../node_modules/.pnpm/react-aria-components@1.12.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/ToggleButton.mjs"],"sourcesContent":["import {useButton as $701a24aa0da5b062$export$ea18c227d4417cc3} from \"./useButton.mjs\";\nimport {chain as $h7Tql$chain, mergeProps as $h7Tql$mergeProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $55f54f7887471b58$export$51e84d46ca0bc451(props, state, ref) {\n const { isSelected: isSelected } = state;\n const { isPressed: isPressed, buttonProps: buttonProps } = (0, $701a24aa0da5b062$export$ea18c227d4417cc3)({\n ...props,\n onPress: (0, $h7Tql$chain)(state.toggle, props.onPress)\n }, ref);\n return {\n isPressed: isPressed,\n isSelected: isSelected,\n isDisabled: props.isDisabled || false,\n buttonProps: (0, $h7Tql$mergeProps)(buttonProps, {\n 'aria-pressed': isSelected\n })\n };\n}\n\n\nexport {$55f54f7887471b58$export$51e84d46ca0bc451 as useToggleButton};\n//# sourceMappingURL=useToggleButton.module.js.map\n","import {useToggleButton as $55f54f7887471b58$export$51e84d46ca0bc451} from \"./useToggleButton.mjs\";\nimport {useToolbar as $9iEyV$useToolbar} from \"@react-aria/toolbar\";\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 $4547d1bf40011fdf$export$dd5580ae642f110f(props, state, ref) {\n let { isDisabled: isDisabled } = props;\n let { toolbarProps: toolbarProps } = (0, $9iEyV$useToolbar)(props, ref);\n return {\n groupProps: {\n ...toolbarProps,\n role: state.selectionMode === 'single' ? 'radiogroup' : toolbarProps.role,\n 'aria-disabled': isDisabled\n }\n };\n}\nfunction $4547d1bf40011fdf$export$bc53712daae3d6e6(props, state, ref) {\n let toggleState = {\n isSelected: state.selectedKeys.has(props.id),\n defaultSelected: false,\n setSelected (isSelected) {\n state.setSelected(props.id, isSelected);\n },\n toggle () {\n state.toggleKey(props.id);\n }\n };\n let { isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled, buttonProps: buttonProps } = (0, $55f54f7887471b58$export$51e84d46ca0bc451)({\n ...props,\n id: undefined,\n isDisabled: props.isDisabled || state.isDisabled\n }, toggleState, ref);\n if (state.selectionMode === 'single') {\n buttonProps.role = 'radio';\n buttonProps['aria-checked'] = toggleState.isSelected;\n delete buttonProps['aria-pressed'];\n }\n return {\n isPressed: isPressed,\n isSelected: isSelected,\n isDisabled: isDisabled,\n buttonProps: buttonProps\n };\n}\n\n\nexport {$4547d1bf40011fdf$export$dd5580ae642f110f as useToggleButtonGroup, $4547d1bf40011fdf$export$bc53712daae3d6e6 as useToggleButtonGroupItem};\n//# sourceMappingURL=useToggleButtonGroup.module.js.map\n","import {useControlledState as $69RjW$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $69RjW$useMemo} 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 $ad999b7f496648d1$export$8deac67f4addf270(props) {\n let { selectionMode: selectionMode = 'single', disallowEmptySelection: disallowEmptySelection, isDisabled: isDisabled = false } = props;\n let [selectedKeys, setSelectedKeys] = (0, $69RjW$useControlledState)((0, $69RjW$useMemo)(()=>props.selectedKeys ? new Set(props.selectedKeys) : undefined, [\n props.selectedKeys\n ]), (0, $69RjW$useMemo)(()=>props.defaultSelectedKeys ? new Set(props.defaultSelectedKeys) : new Set(), [\n props.defaultSelectedKeys\n ]), props.onSelectionChange);\n return {\n selectionMode: selectionMode,\n isDisabled: isDisabled,\n selectedKeys: selectedKeys,\n setSelectedKeys: setSelectedKeys,\n toggleKey (key) {\n let keys;\n if (selectionMode === 'multiple') {\n keys = new Set(selectedKeys);\n if (keys.has(key) && (!disallowEmptySelection || keys.size > 1)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(selectedKeys.has(key) && !disallowEmptySelection ? [] : [\n key\n ]);\n setSelectedKeys(keys);\n },\n setSelected (key, isSelected) {\n if (isSelected !== selectedKeys.has(key)) this.toggleKey(key);\n }\n };\n}\n\n\nexport {$ad999b7f496648d1$export$8deac67f4addf270 as useToggleGroupState};\n//# sourceMappingURL=useToggleGroupState.module.js.map\n","import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useToggleButtonGroup as $1lXgK$useToggleButtonGroup} from \"react-aria\";\nimport {filterDOMProps as $1lXgK$filterDOMProps, mergeProps as $1lXgK$mergeProps} from \"@react-aria/utils\";\nimport $1lXgK$react, {createContext as $1lXgK$createContext, forwardRef as $1lXgK$forwardRef} from \"react\";\nimport {useToggleGroupState as $1lXgK$useToggleGroupState} from \"react-stately\";\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\n\nconst $84b7d8702d4ff4a8$export$298258635ae0dd97 = /*#__PURE__*/ (0, $1lXgK$createContext)({});\nconst $84b7d8702d4ff4a8$export$a8a71863db173133 = /*#__PURE__*/ (0, $1lXgK$createContext)(null);\nconst $84b7d8702d4ff4a8$export$40258cc1d95ff477 = /*#__PURE__*/ (0, $1lXgK$forwardRef)(function ToggleButtonGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $84b7d8702d4ff4a8$export$298258635ae0dd97);\n let state = (0, $1lXgK$useToggleGroupState)(props);\n let { groupProps: groupProps } = (0, $1lXgK$useToggleButtonGroup)(props, state, ref);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isDisabled: state.isDisabled,\n state: state\n },\n defaultClassName: 'react-aria-ToggleButtonGroup'\n });\n let DOMProps = (0, $1lXgK$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $1lXgK$react).createElement(\"div\", {\n ...(0, $1lXgK$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'horizontal',\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $1lXgK$react).createElement($84b7d8702d4ff4a8$export$a8a71863db173133.Provider, {\n value: state\n }, renderProps.children));\n});\n\n\nexport {$84b7d8702d4ff4a8$export$298258635ae0dd97 as ToggleButtonGroupContext, $84b7d8702d4ff4a8$export$a8a71863db173133 as ToggleGroupStateContext, $84b7d8702d4ff4a8$export$40258cc1d95ff477 as ToggleButtonGroup};\n//# sourceMappingURL=ToggleButtonGroup.module.js.map\n","import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ToggleGroupStateContext as $84b7d8702d4ff4a8$export$a8a71863db173133} from \"./ToggleButtonGroup.mjs\";\nimport {useToggleButtonGroupItem as $jrJ9L$useToggleButtonGroupItem, useToggleButton as $jrJ9L$useToggleButton, useFocusRing as $jrJ9L$useFocusRing, useHover as $jrJ9L$useHover, mergeProps as $jrJ9L$mergeProps} from \"react-aria\";\nimport {filterDOMProps as $jrJ9L$filterDOMProps} from \"@react-aria/utils\";\nimport $jrJ9L$react, {createContext as $jrJ9L$createContext, forwardRef as $jrJ9L$forwardRef, useContext as $jrJ9L$useContext} from \"react\";\nimport {useToggleState as $jrJ9L$useToggleState} from \"react-stately\";\n\n/*\n * Copyright 2022 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\n\n\nconst $efde0372d7a700fe$export$43506d75ebd2e218 = /*#__PURE__*/ (0, $jrJ9L$createContext)({});\nconst $efde0372d7a700fe$export$d2b052e7b4be1756 = /*#__PURE__*/ (0, $jrJ9L$forwardRef)(function ToggleButton(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $efde0372d7a700fe$export$43506d75ebd2e218);\n let groupState = (0, $jrJ9L$useContext)((0, $84b7d8702d4ff4a8$export$a8a71863db173133));\n let state = (0, $jrJ9L$useToggleState)(groupState && props.id != null ? {\n isSelected: groupState.selectedKeys.has(props.id),\n onChange (isSelected) {\n groupState.setSelected(props.id, isSelected);\n }\n } : props);\n let { buttonProps: buttonProps, isPressed: isPressed, isSelected: isSelected, isDisabled: isDisabled } = groupState && props.id != null ? (0, $jrJ9L$useToggleButtonGroupItem)({\n ...props,\n id: props.id\n }, groupState, ref) : (0, $jrJ9L$useToggleButton)({\n ...props,\n id: props.id != null ? String(props.id) : undefined\n }, state, ref);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $jrJ9L$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $jrJ9L$useHover)(props);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n values: {\n isHovered: isHovered,\n isPressed: isPressed,\n isFocused: isFocused,\n isSelected: state.isSelected,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n state: state\n },\n defaultClassName: 'react-aria-ToggleButton'\n });\n let DOMProps = (0, $jrJ9L$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $jrJ9L$react).createElement(\"button\", {\n ...(0, $jrJ9L$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n });\n});\n\n\nexport {$efde0372d7a700fe$export$43506d75ebd2e218 as ToggleButtonContext, $efde0372d7a700fe$export$d2b052e7b4be1756 as ToggleButton};\n//# sourceMappingURL=ToggleButton.module.js.map\n"],"names":["$55f54f7887471b58$export$51e84d46ca0bc451","props","state","ref","isSelected","isPressed","buttonProps","$701a24aa0da5b062$export$ea18c227d4417cc3","$h7Tql$chain","$h7Tql$mergeProps","$4547d1bf40011fdf$export$dd5580ae642f110f","isDisabled","toolbarProps","$9iEyV$useToolbar","$4547d1bf40011fdf$export$bc53712daae3d6e6","toggleState","$ad999b7f496648d1$export$8deac67f4addf270","selectionMode","disallowEmptySelection","selectedKeys","setSelectedKeys","$69RjW$useControlledState","$69RjW$useMemo","key","keys","$84b7d8702d4ff4a8$export$298258635ae0dd97","$1lXgK$createContext","$84b7d8702d4ff4a8$export$a8a71863db173133","$84b7d8702d4ff4a8$export$40258cc1d95ff477","$1lXgK$forwardRef","$64fa3d84918910a7$export$29f1550f4b0d4415","$1lXgK$useToggleGroupState","groupProps","$1lXgK$useToggleButtonGroup","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$1lXgK$filterDOMProps","$1lXgK$react","$1lXgK$mergeProps","$efde0372d7a700fe$export$43506d75ebd2e218","$jrJ9L$createContext","$efde0372d7a700fe$export$d2b052e7b4be1756","$jrJ9L$forwardRef","groupState","$jrJ9L$useContext","$jrJ9L$useToggleState","$jrJ9L$useToggleButtonGroupItem","$jrJ9L$useToggleButton","focusProps","isFocused","isFocusVisible","$jrJ9L$useFocusRing","hoverProps","isHovered","$jrJ9L$useHover","$jrJ9L$filterDOMProps","$jrJ9L$react","$jrJ9L$mergeProps"],"mappings":";;;;;;;;;;AAeA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,QAAM,EAAE,YAAYC,EAAU,IAAKF,GAC7B,EAAE,WAAWG,GAAW,aAAaC,EAAW,IAASC,EAA2C;AAAA,IACtG,GAAGN;AAAA,IACH,SAAaO,EAAcN,EAAM,QAAQD,EAAM,OAAO;AAAA,EAC9D,GAAOE,CAAG;AACN,SAAO;AAAA,IACH,WAAWE;AAAA,IACX,YAAYD;AAAA,IACZ,YAAYH,EAAM,cAAc;AAAA,IAChC,aAAiBQ,EAAmBH,GAAa;AAAA,MAC7C,gBAAgBF;AAAA,IAC5B,CAAS;AAAA,EACT;AACA;ACdA,SAASM,EAA0CT,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYQ,EAAU,IAAKV,GAC7B,EAAE,cAAcW,EAAY,IAASC,EAAmBZ,GAAOE,CAAG;AACtE,SAAO;AAAA,IACH,YAAY;AAAA,MACR,GAAGS;AAAA,MACH,MAAMV,EAAM,kBAAkB,WAAW,eAAeU,EAAa;AAAA,MACrE,iBAAiBD;AAAA,IAC7B;AAAA,EACA;AACA;AACA,SAASG,EAA0Cb,GAAOC,GAAOC,GAAK;AAClE,MAAIY,IAAc;AAAA,IACd,YAAYb,EAAM,aAAa,IAAID,EAAM,EAAE;AAAA,IAC3C,iBAAiB;AAAA,IACjB,YAAaG,GAAY;AACrB,MAAAF,EAAM,YAAYD,EAAM,IAAIG,CAAU;AAAA,IAC1C;AAAA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M,QAAQ;AAAA,IACpB,gBAAgBiD,KAAa;AAAA,IAC7B,iBAAiBvC,KAAc;AAAA,IAC/B,gBAAgBN,KAAa;AAAA,IAC7B,iBAAiBD,KAAc;AAAA,IAC/B,gBAAgBkD,KAAa;AAAA,IAC7B,sBAAsBH,KAAkB;AAAA,EAChD,CAAK;AACL,CAAC;","x_google_ignoreList":[0,1,2,3,4]}
@@ -1,6 +1,6 @@
1
- import { $ as n } from "./mergeProps-uJMZqSEt.es.js";
1
+ import { $ as n } from "./mergeProps-B_9syxhT.es.js";
2
2
  import d, { useState as u, useMemo as p } from "react";
3
- import { $ as f } from "./useFocusWithin-Db5nhiOm.es.js";
3
+ import { $ as f } from "./useFocusWithin-ByYlHjju.es.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-B0NiNh0E.es.js.map
41
+ //# sourceMappingURL=VisuallyHidden-VHEPK04F.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VisuallyHidden-B0NiNh0E.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+visually-hidden@3.8.27_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,EAAW,IAAKF,GAC7C,CAACG,GAAWC,CAAU,IAAQC,EAAiB,EAAK,GACpD,EAAE,kBAAkBC,EAAgB,IAASC,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,EACf,IACoBH,GAEb;AAAA,IACCK;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,qBAAqB;AAAA,MACjB,GAAGG;AAAA,MACH,OAAOG;AAAA,IACnB;AAAA,EACA;AACA;AACA,SAASE,EAA0CX,GAAO;AAEtD,MAAI,EAAE,UAAUY,GAAU,aAAaC,IAAU,OAAO,aAAaX,GAAa,OAAOD,GAAO,GAAGa,EAAU,IAAKd,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-VHEPK04F.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+visually-hidden@3.8.27_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,EAAW,IAAKF,GAC7C,CAACG,GAAWC,CAAU,IAAQC,EAAiB,EAAK,GACpD,EAAE,kBAAkBC,EAAgB,IAASC,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,EACf,IACoBH,GAEb;AAAA,IACCK;AAAA,EACR,CAAK;AACD,SAAO;AAAA,IACH,qBAAqB;AAAA,MACjB,GAAGG;AAAA,MACH,OAAOG;AAAA,IACnB;AAAA,EACA;AACA;AACA,SAASE,EAA0CX,GAAO;AAEtD,MAAI,EAAE,UAAUY,GAAU,aAAaC,IAAU,OAAO,aAAaX,GAAa,OAAOD,GAAO,GAAGa,EAAU,IAAKd,GAC9G,EAAE,qBAAqBe,MAAwBhB,EAA0CC,CAAK;AAClG,SAAyBgB,gBAAAA,EAAc,cAAcH,GAAaI,EAAmBH,GAAYC,CAAmB,GAAGH,CAAQ;AACnI;","x_google_ignoreList":[0]}
@@ -1,15 +1,15 @@
1
1
  import { createSlotRecipeContext as B, useSlotRecipe as N } from "@chakra-ui/react/styled-system";
2
2
  import { jsx as l, jsxs as D } from "react/jsx-runtime";
3
- import { $ as S, a as k } from "./Button-BVaauB-c.es.js";
4
- import { a as E, f as G, d as R, $ as q, g as z } from "./utils-CsKCu3xh.es.js";
5
- import { a as m, c as O, $ as A } from "./mergeProps-uJMZqSEt.es.js";
3
+ import { $ as S, a as k } from "./Button-CNBS3n5a.es.js";
4
+ import { a as E, f as G, d as R, $ as q, g as z } from "./utils-BkdW_cdL.es.js";
5
+ import { a as m, c as O, $ as A } from "./mergeProps-B_9syxhT.es.js";
6
6
  import { $ as P } from "./filterDOMProps-BSVCO5jK.es.js";
7
7
  import c, { useRef as J, useCallback as b, useEffect as w, useMemo as h, forwardRef as C, useContext as K, createContext as $ } from "react";
8
- import { $ as F } from "./useFocusRing-SQNQ9yn0.es.js";
8
+ import { $ as F } from "./useFocusRing-updnkDQg.es.js";
9
9
  import { $ as V } from "./useControlledState-u436Wbp1.es.js";
10
10
  import { flushSync as L } from "react-dom";
11
- import { $ as Q } from "./useEvent-Bxxy8Y3o.es.js";
12
- import { $ as U } from "./SSRProvider-v-LddFEs.es.js";
11
+ import { $ as Q } from "./useEvent-YHhqZvpU.es.js";
12
+ import { $ as U } from "./SSRProvider-Cu8KibIK.es.js";
13
13
  import { e as X } from "./extractStyleProps-tYFaIfUG.es.js";
14
14
  import { KeyboardArrowRight as Y } from "@commercetools/nimbus-icons";
15
15
  import { Flex as Z } from "@chakra-ui/react/flex";
@@ -273,4 +273,4 @@ export {
273
273
  xe as d,
274
274
  g as e
275
275
  };
276
- //# sourceMappingURL=accordion-BOm1fDGE.es.js.map
276
+ //# sourceMappingURL=accordion-DG3lUgRg.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-BOm1fDGE.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+disclosure@3.0.8_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.7_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureState.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.7_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.12.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/Disclosure.mjs","../../src/components/accordion/accordion.slots.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 {ButtonContext as $d2b4bc8c273e7be6$export$24d547caef80ccd1} from \"./Button.mjs\";\nimport {DEFAULT_SLOT as $64fa3d84918910a7$export$c62b8e45d58ddad9, Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useDisclosure as $hI1OT$useDisclosure, useFocusRing as $hI1OT$useFocusRing} from \"react-aria\";\nimport {useDisclosureGroupState as $hI1OT$useDisclosureGroupState, useDisclosureState as $hI1OT$useDisclosureState} from \"react-stately\";\nimport {filterDOMProps as $hI1OT$filterDOMProps, useId as $hI1OT$useId, mergeProps as $hI1OT$mergeProps, mergeRefs as $hI1OT$mergeRefs} from \"@react-aria/utils\";\nimport $hI1OT$react, {createContext as $hI1OT$createContext, forwardRef as $hI1OT$forwardRef, useContext as $hI1OT$useContext} 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\n\n\n\n\nconst $28f4fd908f0de97f$export$1d40e3e0cc4d5de = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$944aceb4f8c89f10 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosureGroup(props, ref) {\n let state = (0, $hI1OT$useDisclosureGroupState)(props);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosureGroup',\n values: {\n isDisabled: state.isDisabled,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...domProps,\n ...renderProps,\n ref: ref,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement($28f4fd908f0de97f$export$1d40e3e0cc4d5de.Provider, {\n value: state\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$d665dd135a51b28a = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$dab3ea4a6ef094da = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$var$InternalDisclosureContext = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$74a362b31437ec83 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function Disclosure(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $28f4fd908f0de97f$export$d665dd135a51b28a);\n let groupState = (0, $hI1OT$useContext)($28f4fd908f0de97f$export$1d40e3e0cc4d5de);\n let { id: id, ...otherProps } = props;\n // Generate an id if one wasn't provided.\n // (can't pass id into useId since it can also be a number)\n let defaultId = (0, $hI1OT$useId)();\n id || (id = defaultId);\n let isExpanded = groupState ? groupState.expandedKeys.has(id) : props.isExpanded;\n let state = (0, $hI1OT$useDisclosureState)({\n ...props,\n isExpanded: isExpanded,\n onExpandedChange (isExpanded) {\n var _props_onExpandedChange;\n if (groupState) groupState.toggleKey(id);\n (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === void 0 ? void 0 : _props_onExpandedChange.call(props, isExpanded);\n }\n });\n let panelRef = (0, $hI1OT$react).useRef(null);\n let isDisabled = props.isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled) || false;\n let { buttonProps: buttonProps, panelProps: panelProps } = (0, $hI1OT$useDisclosure)({\n ...props,\n isExpanded: isExpanded,\n isDisabled: isDisabled\n }, state, panelRef);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n defaultClassName: 'react-aria-Disclosure',\n values: {\n isExpanded: state.isExpanded,\n isDisabled: isDisabled,\n isFocusVisibleWithin: isFocusVisibleWithin,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(otherProps, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n {\n slots: {\n [(0, $64fa3d84918910a7$export$c62b8e45d58ddad9)]: {},\n trigger: buttonProps\n }\n }\n ],\n [\n $28f4fd908f0de97f$var$InternalDisclosureContext,\n {\n panelProps: panelProps,\n panelRef: panelRef\n }\n ],\n [\n $28f4fd908f0de97f$export$dab3ea4a6ef094da,\n state\n ]\n ]\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(domProps, renderProps, focusWithinProps),\n ref: ref,\n \"data-expanded\": state.isExpanded || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$feabaa331e1d464c = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosurePanel(props, ref) {\n let { role: role = 'group' } = props;\n let { panelProps: panelProps, panelRef: panelRef } = (0, $hI1OT$useContext)($28f4fd908f0de97f$var$InternalDisclosureContext);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosurePanel',\n values: {\n isFocusVisibleWithin: isFocusVisibleWithin\n }\n });\n let DOMProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(DOMProps, renderProps, panelProps, focusWithinProps),\n ref: (0, $hI1OT$mergeRefs)(ref, panelRef),\n role: role,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n null\n ]\n ]\n }, props.children));\n});\n\n\nexport {$28f4fd908f0de97f$export$1d40e3e0cc4d5de as DisclosureGroupStateContext, $28f4fd908f0de97f$export$944aceb4f8c89f10 as DisclosureGroup, $28f4fd908f0de97f$export$d665dd135a51b28a as DisclosureContext, $28f4fd908f0de97f$export$dab3ea4a6ef094da as DisclosureStateContext, $28f4fd908f0de97f$export$74a362b31437ec83 as Disclosure, $28f4fd908f0de97f$export$feabaa331e1d464c as DisclosurePanel};\n//# sourceMappingURL=Disclosure.module.js.map\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { accordionSlotRecipe } from \"./accordion.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport type AccordionRootSlotProps = HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof accordionSlotRecipe>\n>;\n\nexport const AccordionRootSlot = withProvider<\n HTMLDivElement,\n AccordionRootSlotProps\n>(\"div\", \"root\");\n\nexport const AccordionDisclosureSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanelSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitleSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import { AccordionRootSlot } from \"../accordion.slots\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DisclosureGroup as RaDisclosureGroup } from \"react-aria-components\";\nimport type { AccordionRootProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * # Accordion\n *\n * Displays an Accordion.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/navigation/accordion}\n */\nexport const AccordionRoot = (props: AccordionRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, raProps] = extractStyleProps(restRecipeProps);\n\n return (\n <AccordionRootSlot ref={ref} {...recipeProps} {...styleProps} asChild>\n <RaDisclosureGroup {...raProps} />\n </AccordionRootSlot>\n );\n};\n","import React, { useMemo } from \"react\";\nimport {\n AccordionTriggerSlot,\n AccordionTitleSlot,\n AccordionHeaderRightContentSlot,\n} from \"../accordion.slots\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport type { AccordionHeaderProps } from \"../accordion.types\";\n\nexport const AccordionHeader = ({\n children,\n ref,\n ...props\n}: AccordionHeaderProps) => {\n // Extract HeaderRightContent if present\n const headerContent = useMemo(() => {\n const main: React.ReactNode[] = [];\n const rightContent: React.ReactNode[] = [];\n\n React.Children.forEach(children, (child) => {\n if (\n React.isValidElement(child) &&\n child.type === AccordionHeaderRightContentSlot\n ) {\n rightContent.push(child);\n } else {\n main.push(child);\n }\n });\n\n return { main, rightContent };\n }, [children]);\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n >\n <AccordionTriggerSlot ref={ref} slot=\"trigger\" asChild>\n <RaButton {...props}>\n <KeyboardArrowRight />\n <AccordionTitleSlot>{headerContent.main}</AccordionTitleSlot>\n </RaButton>\n </AccordionTriggerSlot>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContentSlot>\n {headerContent.rightContent}\n </AccordionHeaderRightContentSlot>\n )}\n </Flex>\n );\n};\n","import { AccordionPanelSlot } from \"../accordion.slots\";\nimport { DisclosurePanel as RaDisclosurePanel } from \"react-aria-components\";\nimport type { AccordionContentProps } from \"../accordion.types\";\n\n// Create Content component\nexport const AccordionContent = ({\n children,\n ref,\n ...props\n}: AccordionContentProps) => {\n return (\n <AccordionPanelSlot ref={ref} asChild>\n <RaDisclosurePanel {...props}>{children}</RaDisclosurePanel>\n </AccordionPanelSlot>\n );\n};\n","import { AccordionDisclosureSlot } from \"../accordion.slots\";\nimport { Disclosure as RaDisclosure } from \"react-aria-components\";\nimport type { AccordionItemProps } from \"../accordion.types\";\n\nexport const AccordionItem = ({\n children,\n value,\n ref,\n ...props\n}: AccordionItemProps) => {\n const disclosureProps = {\n ...props,\n id: value, // React Aria uses id for the key\n };\n\n return (\n <AccordionDisclosureSlot data-value={value} ref={ref} asChild>\n <RaDisclosure {...disclosureProps}>{children}</RaDisclosure>\n </AccordionDisclosureSlot>\n );\n};\n","import { AccordionHeaderRightContentSlot } 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: AccordionHeaderRightContentSlot,\n};\n\nexport {\n AccordionRoot as _AccordionRoot,\n AccordionItem as _AccordionItem,\n AccordionHeader as _AccordionHeader,\n AccordionContent as _AccordionContent,\n AccordionHeaderRightContentSlot 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","$28f4fd908f0de97f$export$1d40e3e0cc4d5de","$hI1OT$createContext","$28f4fd908f0de97f$export$944aceb4f8c89f10","$hI1OT$forwardRef","$hI1OT$useDisclosureGroupState","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","domProps","$hI1OT$filterDOMProps","$hI1OT$react","$28f4fd908f0de97f$export$d665dd135a51b28a","$28f4fd908f0de97f$export$dab3ea4a6ef094da","$28f4fd908f0de97f$var$InternalDisclosureContext","$28f4fd908f0de97f$export$74a362b31437ec83","$64fa3d84918910a7$export$29f1550f4b0d4415","groupState","$hI1OT$useContext","id","otherProps","defaultId","$hI1OT$useId","$hI1OT$useDisclosureState","_props_onExpandedChange","panelRef","buttonProps","panelProps","$hI1OT$useDisclosure","isFocusVisibleWithin","focusWithinProps","$hI1OT$useFocusRing","$64fa3d84918910a7$export$2881499e37b75b9a","$d2b4bc8c273e7be6$export$24d547caef80ccd1","$64fa3d84918910a7$export$c62b8e45d58ddad9","$hI1OT$mergeProps","$28f4fd908f0de97f$export$feabaa331e1d464c","role","DOMProps","$hI1OT$mergeRefs","withProvider","withContext","createSlotRecipeContext","AccordionRootSlot","AccordionDisclosureSlot","AccordionTriggerSlot","AccordionPanelSlot","AccordionTitleSlot","AccordionHeaderRightContentSlot","AccordionRoot","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","raProps","extractStyleProps","jsx","RaDisclosureGroup","AccordionHeader","children","headerContent","useMemo","main","rightContent","React","child","jsxs","Flex","RaButton","KeyboardArrowRight","AccordionContent","RaDisclosurePanel","AccordionItem","value","disclosureProps","RaDisclosure","Accordion"],"m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AAkB,UAAAf,EAAA,CAAS,GAC/C;AAEJ,GCbaiB,KAAY;AAAA,EACvB,MAAM7B;AAAA,EACN,MAAMyB;AAAA,EACN,QAAQd;AAAA,EACR,SAASY;AAAA,EACT,oBAAoBxB;AACtB;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"accordion-DG3lUgRg.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+disclosure@3.0.8_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.7_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureState.mjs","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.7_react@19.1.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.12.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/Disclosure.mjs","../../src/components/accordion/accordion.slots.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 {ButtonContext as $d2b4bc8c273e7be6$export$24d547caef80ccd1} from \"./Button.mjs\";\nimport {DEFAULT_SLOT as $64fa3d84918910a7$export$c62b8e45d58ddad9, Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useDisclosure as $hI1OT$useDisclosure, useFocusRing as $hI1OT$useFocusRing} from \"react-aria\";\nimport {useDisclosureGroupState as $hI1OT$useDisclosureGroupState, useDisclosureState as $hI1OT$useDisclosureState} from \"react-stately\";\nimport {filterDOMProps as $hI1OT$filterDOMProps, useId as $hI1OT$useId, mergeProps as $hI1OT$mergeProps, mergeRefs as $hI1OT$mergeRefs} from \"@react-aria/utils\";\nimport $hI1OT$react, {createContext as $hI1OT$createContext, forwardRef as $hI1OT$forwardRef, useContext as $hI1OT$useContext} 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\n\n\n\n\nconst $28f4fd908f0de97f$export$1d40e3e0cc4d5de = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$944aceb4f8c89f10 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosureGroup(props, ref) {\n let state = (0, $hI1OT$useDisclosureGroupState)(props);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosureGroup',\n values: {\n isDisabled: state.isDisabled,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...domProps,\n ...renderProps,\n ref: ref,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement($28f4fd908f0de97f$export$1d40e3e0cc4d5de.Provider, {\n value: state\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$d665dd135a51b28a = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$dab3ea4a6ef094da = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$var$InternalDisclosureContext = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$74a362b31437ec83 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function Disclosure(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $28f4fd908f0de97f$export$d665dd135a51b28a);\n let groupState = (0, $hI1OT$useContext)($28f4fd908f0de97f$export$1d40e3e0cc4d5de);\n let { id: id, ...otherProps } = props;\n // Generate an id if one wasn't provided.\n // (can't pass id into useId since it can also be a number)\n let defaultId = (0, $hI1OT$useId)();\n id || (id = defaultId);\n let isExpanded = groupState ? groupState.expandedKeys.has(id) : props.isExpanded;\n let state = (0, $hI1OT$useDisclosureState)({\n ...props,\n isExpanded: isExpanded,\n onExpandedChange (isExpanded) {\n var _props_onExpandedChange;\n if (groupState) groupState.toggleKey(id);\n (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === void 0 ? void 0 : _props_onExpandedChange.call(props, isExpanded);\n }\n });\n let panelRef = (0, $hI1OT$react).useRef(null);\n let isDisabled = props.isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled) || false;\n let { buttonProps: buttonProps, panelProps: panelProps } = (0, $hI1OT$useDisclosure)({\n ...props,\n isExpanded: isExpanded,\n isDisabled: isDisabled\n }, state, panelRef);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n defaultClassName: 'react-aria-Disclosure',\n values: {\n isExpanded: state.isExpanded,\n isDisabled: isDisabled,\n isFocusVisibleWithin: isFocusVisibleWithin,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(otherProps, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n {\n slots: {\n [(0, $64fa3d84918910a7$export$c62b8e45d58ddad9)]: {},\n trigger: buttonProps\n }\n }\n ],\n [\n $28f4fd908f0de97f$var$InternalDisclosureContext,\n {\n panelProps: panelProps,\n panelRef: panelRef\n }\n ],\n [\n $28f4fd908f0de97f$export$dab3ea4a6ef094da,\n state\n ]\n ]\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(domProps, renderProps, focusWithinProps),\n ref: ref,\n \"data-expanded\": state.isExpanded || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$feabaa331e1d464c = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosurePanel(props, ref) {\n let { role: role = 'group' } = props;\n let { panelProps: panelProps, panelRef: panelRef } = (0, $hI1OT$useContext)($28f4fd908f0de97f$var$InternalDisclosureContext);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosurePanel',\n values: {\n isFocusVisibleWithin: isFocusVisibleWithin\n }\n });\n let DOMProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(DOMProps, renderProps, panelProps, focusWithinProps),\n ref: (0, $hI1OT$mergeRefs)(ref, panelRef),\n role: role,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n null\n ]\n ]\n }, props.children));\n});\n\n\nexport {$28f4fd908f0de97f$export$1d40e3e0cc4d5de as DisclosureGroupStateContext, $28f4fd908f0de97f$export$944aceb4f8c89f10 as DisclosureGroup, $28f4fd908f0de97f$export$d665dd135a51b28a as DisclosureContext, $28f4fd908f0de97f$export$dab3ea4a6ef094da as DisclosureStateContext, $28f4fd908f0de97f$export$74a362b31437ec83 as Disclosure, $28f4fd908f0de97f$export$feabaa331e1d464c as DisclosurePanel};\n//# sourceMappingURL=Disclosure.module.js.map\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { accordionSlotRecipe } from \"./accordion.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport type AccordionRootSlotProps = HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof accordionSlotRecipe>\n>;\n\nexport const AccordionRootSlot = withProvider<\n HTMLDivElement,\n AccordionRootSlotProps\n>(\"div\", \"root\");\n\nexport const AccordionDisclosureSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanelSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitleSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import { AccordionRootSlot } from \"../accordion.slots\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DisclosureGroup as RaDisclosureGroup } from \"react-aria-components\";\nimport type { AccordionRootProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\n/**\n * # Accordion\n *\n * Displays an Accordion.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/navigation/accordion}\n */\nexport const AccordionRoot = (props: AccordionRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, raProps] = extractStyleProps(restRecipeProps);\n\n return (\n <AccordionRootSlot ref={ref} {...recipeProps} {...styleProps} asChild>\n <RaDisclosureGroup {...raProps} />\n </AccordionRootSlot>\n );\n};\n","import React, { useMemo } from \"react\";\nimport {\n AccordionTriggerSlot,\n AccordionTitleSlot,\n AccordionHeaderRightContentSlot,\n} from \"../accordion.slots\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport type { AccordionHeaderProps } from \"../accordion.types\";\n\nexport const AccordionHeader = ({\n children,\n ref,\n ...props\n}: AccordionHeaderProps) => {\n // Extract HeaderRightContent if present\n const headerContent = useMemo(() => {\n const main: React.ReactNode[] = [];\n const rightContent: React.ReactNode[] = [];\n\n React.Children.forEach(children, (child) => {\n if (\n React.isValidElement(child) &&\n child.type === AccordionHeaderRightContentSlot\n ) {\n rightContent.push(child);\n } else {\n main.push(child);\n }\n });\n\n return { main, rightContent };\n }, [children]);\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n >\n <AccordionTriggerSlot ref={ref} slot=\"trigger\" asChild>\n <RaButton {...props}>\n <KeyboardArrowRight />\n <AccordionTitleSlot>{headerContent.main}</AccordionTitleSlot>\n </RaButton>\n </AccordionTriggerSlot>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContentSlot>\n {headerContent.rightContent}\n </AccordionHeaderRightContentSlot>\n )}\n </Flex>\n );\n};\n","import { AccordionPanelSlot } from \"../accordion.slots\";\nimport { DisclosurePanel as RaDisclosurePanel } from \"react-aria-components\";\nimport type { AccordionContentProps } from \"../accordion.types\";\n\n// Create Content component\nexport const AccordionContent = ({\n children,\n ref,\n ...props\n}: AccordionContentProps) => {\n return (\n <AccordionPanelSlot ref={ref} asChild>\n <RaDisclosurePanel {...props}>{children}</RaDisclosurePanel>\n </AccordionPanelSlot>\n );\n};\n","import { AccordionDisclosureSlot } from \"../accordion.slots\";\nimport { Disclosure as RaDisclosure } from \"react-aria-components\";\nimport type { AccordionItemProps } from \"../accordion.types\";\n\nexport const AccordionItem = ({\n children,\n value,\n ref,\n ...props\n}: AccordionItemProps) => {\n const disclosureProps = {\n ...props,\n id: value, // React Aria uses id for the key\n };\n\n return (\n <AccordionDisclosureSlot data-value={value} ref={ref} asChild>\n <RaDisclosure {...disclosureProps}>{children}</RaDisclosure>\n </AccordionDisclosureSlot>\n );\n};\n","import { AccordionHeaderRightContentSlot } 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: AccordionHeaderRightContentSlot,\n};\n\nexport {\n AccordionRoot as _AccordionRoot,\n AccordionItem as _AccordionItem,\n AccordionHeader as _AccordionHeader,\n AccordionContent as _AccordionContent,\n AccordionHeaderRightContentSlot 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","$28f4fd908f0de97f$export$1d40e3e0cc4d5de","$hI1OT$createContext","$28f4fd908f0de97f$export$944aceb4f8c89f10","$hI1OT$forwardRef","$hI1OT$useDisclosureGroupState","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","domProps","$hI1OT$filterDOMProps","$hI1OT$react","$28f4fd908f0de97f$export$d665dd135a51b28a","$28f4fd908f0de97f$export$dab3ea4a6ef094da","$28f4fd908f0de97f$var$InternalDisclosureContext","$28f4fd908f0de97f$export$74a362b31437ec83","$64fa3d84918910a7$export$29f1550f4b0d4415","groupState","$hI1OT$useContext","id","otherProps","defaultId","$hI1OT$useId","$hI1OT$useDisclosureState","_props_onExpandedChange","panelRef","buttonProps","panelProps","$hI1OT$useDisclosure","isFocusVisibleWithin","focusWithinProps","$hI1OT$useFocusRing","$64fa3d84918910a7$export$2881499e37b75b9a","$d2b4bc8c273e7be6$export$24d547caef80ccd1","$64fa3d84918910a7$export$c62b8e45d58ddad9","$hI1OT$mergeProps","$28f4fd908f0de97f$export$feabaa331e1d464c","role","DOMProps","$hI1OT$mergeRefs","withProvider","withContext","createSlotRecipeContext","AccordionRootSlot","AccordionDisclosureSlot","AccordionTriggerSlot","AccordionPanelSlot","AccordionTitleSlot","AccordionHeaderRightContentSlot","AccordionRoot","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","raProps","extractStyleProps","jsx","RaDisclosureGroup","AccordionHeader","children","headerContent","useMemo","main","rightContent","React","child","jsxs","Flex","RaButton","KeyboardArrowRight","AccordionContent","RaDisclosurePanel","AccordionItem","value","disclosure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B,IAAA,EAAc,GAAGD,GAAkB,UAAAf,EAAA,CAAS,GAC/C;AAEJ,GCbaiB,KAAY;AAAA,EACvB,MAAM7B;AAAA,EACN,MAAMyB;AAAA,EACN,QAAQd;AAAA,EACR,SAASY;AAAA,EACT,oBAAoBxB;AACtB;","x_google_ignoreList":[0,1,2,3]}
@@ -4,7 +4,7 @@ import { defineSlotRecipe as w, createSlotRecipeContext as R } from "@chakra-ui/
4
4
  import { B as I } from "./box-DuBoAZvq.es.js";
5
5
  import { S as y } from "./stack-CoNreM7B.es.js";
6
6
  import { CheckCircleOutline as E, WarningAmber as S, Info as $, ErrorOutline as M, Clear as k } from "@commercetools/nimbus-icons";
7
- import { I as j } from "./icon-button-uSoUy0va.es.js";
7
+ import { I as j } from "./icon-button-BucXZ7sA.es.js";
8
8
  import { defineMessages as O, useIntl as W } from "react-intl";
9
9
  const z = /* @__PURE__ */ w({
10
10
  slots: ["root", "title", "description", "icon", "actions", "dismissButton"],
@@ -190,4 +190,4 @@ export {
190
190
  D as d,
191
191
  h as e
192
192
  };
193
- //# sourceMappingURL=alert-AElDV5sG.es.js.map
193
+ //# sourceMappingURL=alert-VGuxkbOc.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert-AElDV5sG.es.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/alert.i18n.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\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/styled-system\";\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 *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\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 { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n dismiss: {\n id: \"Nimbus.Alert.dismiss\",\n description: \"aria-label for dismiss button in alert\",\n defaultMessage: \"Dismiss\",\n },\n});\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\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../alert.i18n\";\n\nexport const AlertDismissButton = ({\n children,\n ...props\n}: AlertDismissButtonProps) => {\n const context = useContext(AlertContext);\n const intl = useIntl();\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={intl.formatMessage(messages.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","messages","defineMessages","intl","useIntl","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;;;;AAKO,MAAMA,IAAc,gBAAAC,EAAiB;AAAA,EAC1C,OAAO,CAAC,QAAQ,SAAS,eAAe,QAAQ,WAAW,eAAe;AAAA;AAAA,EAE1E,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK;AAAA,MACL,OAAO;AAAA,IAAA;AAAA,IAET,MAAM;AAAA,MACJ,WAAW;AAAA,MACX,SAAS;AAAA,QACP,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAEF,OAAO;AAAA,MACL,OAAO;AAAA,IAAA;AAAA,IAET,aAAa;AAAA,MACX,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAGF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,UAAU;AAAA,QACR,MAAM,EAAE,cAAc,WAAA;AAAA,MAAW;AAAA,MAEnC,MAAM;AAAA,QACJ,MAAM,EAAE,cAAc,OAAA;AAAA,MAAO;AAAA,MAE/B,SAAS;AAAA,QACP,MAAM,EAAE,cAAc,QAAA;AAAA,MAAQ;AAAA,MAEhC,UAAU;AAAA,QACR,MAAM,EAAE,cAAc,WAAA;AAAA,MAAW;AAAA,IACnC;AAAA,IAGF,SAAS;AAAA,MACP,MAAM,CAAA;AAAA,MACN,UAAU;AAAA,QACR,MAAM;AAAA,UACJ,QAAQ;AAAA,UACR,aAAa;AAAA,UACb,iBAAiB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ACT,eAAeC;AACjB;"}
1
+ {"version":3,"file":"alert-VGuxkbOc.es.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/alert.i18n.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\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/styled-system\";\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 *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\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 { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n dismiss: {\n id: \"Nimbus.Alert.dismiss\",\n description: \"aria-label for dismiss button in alert\",\n defaultMessage: \"Dismiss\",\n },\n});\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\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../alert.i18n\";\n\nexport const AlertDismissButton = ({\n children,\n ...props\n}: AlertDismissButtonProps) => {\n const context = useContext(AlertContext);\n const intl = useIntl();\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={intl.formatMessage(messages.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","messages","defineMessages","intl","useIntl","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;;;;AAKO,MAAMA,IAAc,gBAAAC,EAAiB;AAAA,EAC1C,OAAO,CAAC,QAAQ,SAAS,eAAe,QAAQ,WAAW,eAAe;AAAA;AAAA,EAE1E,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK;AAAA,MACL,OAAO;AAAA,IAAA;AAAA,IAET,MAAM;AAAA,MACJ,WAAW;AAAA,MACX,SAAS;AAAA,QACP,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAEF,OAAO;AAAA,MACL,OAAO;AA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,GAAA,EACC,UAAA,gBAAAhB;AAAA,QAACiB;AAAA,QAAA;AAAA,UACC,cAAYH,EAAK,cAAcF,EAAS,OAAO;AAAA,UAC9C,GAAG3B;AAAA,UACJ,SAAQ;AAAA,UACR,MAAK;AAAA,UAEL,UAAA,gBAAAe,EAACkB,GAAA,EAAM,MAAK,MAAA,CAAM;AAAA,QAAA;AAAA,MAAA,GAEtB;AAGF,aAAAb,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAAClB,GAAUF,CAAK,CAAC,GAEb;AACT;AAEAT,EAAmB,cAAc;AC9B1B,MAAM2C,KAAQ;AAAA,EACnB,MAAMhD;AAAA,EACN,OAAOC;AAAA,EACP,aAAaC;AAAA,EACb,SAASE;AAAA,EACT,eAAeC;AACjB;"}
@@ -3,7 +3,7 @@ import { useRef as c } from "react";
3
3
  import { defineRecipe as f, createRecipeContext as l } from "@chakra-ui/react/styled-system";
4
4
  import { mergeRefs as p } from "@chakra-ui/react";
5
5
  import { $ as d } from "./useObjectRef-CaJ5pgjX.es.js";
6
- import { $ as m } from "./mergeProps-uJMZqSEt.es.js";
6
+ import { $ as m } from "./mergeProps-B_9syxhT.es.js";
7
7
  const h = /* @__PURE__ */ f({
8
8
  className: "nimbus-badge",
9
9
  // Base styles applied to all instances of the component
@@ -74,4 +74,4 @@ b.displayName = "Badge";
74
74
  export {
75
75
  b as B
76
76
  };
77
- //# sourceMappingURL=badge-CHmfeeRs.es.js.map
77
+ //# sourceMappingURL=badge-BJd-Q81M.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge-CHmfeeRs.es.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;;AAMO,MAAMA,IAAc,gBAAAC,EAAa;AAAA,EACtC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,IAAI;AAAA,IACJ,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,GAAG;AAAA,IACH,YAAY;AAAA,IACZ,OAAO;AAAA,MACL,YAAY;AAAA,IAAA;AAAA,EACd;AAAA;AAAA,EAIF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,UAAU;AAAA,QACV,KAAK;AAAA,QACL,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,OAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,MAEF,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,OAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,MAEF,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,OAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,IACF;AAAA,EACF;AAAA;AAAA,EAIF,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC,GClEK,EAAE,aAAAC,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,QAAQH,GAAa,GAEtDI,IAAY,gBAAAF,EAA6C,MAAM,GCM/DG,IAAQ,CAACC,MAAsB;AAC1C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,UAAAC,GAAU,GAAGC,MAASJ,GAE/CK,IAAWC,EAAwB,IAAI,GACvCC,IAAMC,EAAaC,EAAUJ,GAAUJ,CAAY,CAAC;AAI1D,SACE,gBAAAS,EAACZ,GAAA,EAAU,IAHOI,KAAM,QAGK,GAAGS,EAAWP,GAAM,EAAE,KAAAG,GAAK,GACrD,UAAAJ,EAAA,CACH;AAEJ;AAEAJ,EAAM,cAAc;"}
1
+ {"version":3,"file":"badge-BJd-Q81M.es.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;;AAMO,MAAMA,IAAc,gBAAAC,EAAa;AAAA,EACtC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,IA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J;AAEAJ,EAAM,cAAc;"}
@@ -1,15 +1,15 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { useRef as l } from "react";
3
- import { $ } from "./Button-BVaauB-c.es.js";
4
- import { $ as b } from "./utils-CsKCu3xh.es.js";
3
+ import { $ } from "./Button-CNBS3n5a.es.js";
4
+ import { $ as b } from "./utils-BkdW_cdL.es.js";
5
5
  import { mergeRefs as u } from "@chakra-ui/react";
6
6
  import { createRecipeContext as x } from "@chakra-ui/react/styled-system";
7
7
  import { b as P } from "./button.recipe-NdTb5f8M.es.js";
8
8
  import { i as R } from "./emotion-is-prop-valid.esm-BUuA3iy8.es.js";
9
9
  import { s as h } from "./index-B68rhcD_.es.js";
10
10
  import { $ as y } from "./useObjectRef-CaJ5pgjX.es.js";
11
- import { $ as B } from "./mergeProps-uJMZqSEt.es.js";
12
- import { $ as v } from "./useButton-CYfXo2Jm.es.js";
11
+ import { $ as B } from "./mergeProps-B_9syxhT.es.js";
12
+ import { $ as v } from "./useButton-DAeSjgg9.es.js";
13
13
  const { withContext: w } = /* @__PURE__ */ x({
14
14
  recipe: P
15
15
  }), C = /* @__PURE__ */ w(
@@ -56,4 +56,4 @@ D.displayName = "Button";
56
56
  export {
57
57
  D as B
58
58
  };
59
- //# sourceMappingURL=button-BQ3kiG-V.es.js.map
59
+ //# sourceMappingURL=button-rNwSVldt.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-BQ3kiG-V.es.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={ref}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx"],"mappings":";;;;;;;;;;;;AA2BA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,kBAAkBI,GAAMC,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASD,CAAI,KAAK,CAACG,EAAO,gBAAgBH,CAAI;AAC9D,aAAOI,EAAkBJ,CAAI,KAAKE,KAAa,CAACF,EAAK,SAAS,SAAS;AAAA,IACzE;AAAA,EAAA;AAEJ,GClCaK,IAAS,CAACC,MAAuB;AAC5C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAMC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGpD,CAACU,CAAY,IAAIC,EAAgBP,GAAMG,GAAKK,CAAa,GAKzDC,IAAcZ,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAY,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGL;AAAA,MACH,aAAAG;AAAA,IAAA;AAAA,IAEFN;AAAA,EAAA,GAGIS,IAAiBC,EAAWP,GAAcI,GAAa;AAAA,IAC3D,IAAAb;AAAA,IACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAMQ,EAAa,QAAQ;AAAA,EAAA,CAC5B;AAED,SACE,gBAAAQ;AAAA,IAAC1B;AAAA,IAAA;AAAA,MACC,KAAAe;AAAA,MACC,GAAGS;AAAA,MACJ,iBAAeA,EAAe,cAAc;AAAA,MAC5C,iBAAeA,EAAe,cAAc;AAAA,MAE3C,UAAAb;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAO,cAAc;"}
1
+ {"version":3,"file":"button-rNwSVldt.es.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={ref}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx"],"mappings":";;;;;;;;;;;;AA2BA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,kBAAkBI,GAAMC,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASD,CAAI,KAAK,CAACG,EAAO,gBAAgBH,CAAI;AAC9D,aAAOI,EAAkBJ,CAAI,KAAKE,KAAa,CAACF,EAAK,SAAS,SAAS;AAAA,IACzE;AAAA,EAAA;AAEJ,GClCaK,IAAS,CAACC,MAAuB;AAC5C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAMC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGpD,CAACU,CAAY,IAAIC,EAAgBP,GAAMG,GAAKK,CAAa,GAKzDC,IAAcZ,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAY,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGL;AAAA,MACH,aAAAG;AAAA,IAAA;AAAA,IAEFN;AAAA,EAAA,GAGIS,IAAiBC,EAAWP,GAAcI,GAAa;AAAA,IAC3D,IAAAb;AAAA,IACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAMQ,EAAa,QAAQ;AAAA,EAAA,CAC5B;AAED,SACE,gBAAAQ;AAAA,IAAC1B;AAAA,IAAA;AAAA,MACC,KAAAe;AAAA,MACC,GAAGS;AAAA,MACJ,iBAAeA,EAAe,cAAc;AAAA,MAC5C,iBAAeA,EAAe,cAAc;AAAA,MAE3C,UAAAb;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAO,cAAc;"}
@@ -1,20 +1,20 @@
1
1
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { $ as S, a as I, b as F, c as G, d as H, e as j, f as w, g as A, h as B } from "./Heading-BX1t1Kmm.es.js";
2
+ import { $ as S, a as I, b as F, c as G, d as H, e as j, f as w, g as A, h as B } from "./Heading-DEfy_f01.es.js";
3
3
  import { createSlotRecipeContext as L, useRecipe as M } from "@chakra-ui/react/styled-system";
4
4
  import { useContext as p } from "react";
5
- import { $ as N, a as i } from "./useDateFormatter-BuXtxdR1.es.js";
6
- import { c as D, d as z } from "./utils-CsKCu3xh.es.js";
5
+ import { $ as N, a as i } from "./useDateFormatter-C7Kxzwro.es.js";
6
+ import { c as D, d as z } from "./utils-BkdW_cdL.es.js";
7
7
  import { B as P } from "./box-DuBoAZvq.es.js";
8
- import { $ as R } from "./context-DHW7D0wv.es.js";
9
- import { I as h } from "./icon-button-uSoUy0va.es.js";
10
- import { T as u } from "./text-Bi4Gre95.es.js";
8
+ import { $ as R } from "./context-R4YUlO9Y.es.js";
9
+ import { I as h } from "./icon-button-BucXZ7sA.es.js";
10
+ import { T as u } from "./text-DfQpupDi.es.js";
11
11
  import { S as x } from "./stack-CoNreM7B.es.js";
12
- import { V as k } from "./visually-hidden-09RsVX6x.es.js";
12
+ import { V as k } from "./visually-hidden-BluyWhUI.es.js";
13
13
  import { KeyboardArrowLeft as y, KeyboardArrowRight as C } from "@commercetools/nimbus-icons";
14
14
  import { Flex as V } from "@chakra-ui/react/flex";
15
15
  import { g as K } from "./index-B68rhcD_.es.js";
16
16
  import { e as W } from "./extractStyleProps-tYFaIfUG.es.js";
17
- import { $ as g } from "./Button-BVaauB-c.es.js";
17
+ import { $ as g } from "./Button-CNBS3n5a.es.js";
18
18
  import { $ as v } from "./Text-DOcU1ycg.es.js";
19
19
  const { withProvider: _, withContext: n } = /* @__PURE__ */ L({
20
20
  key: "calendar"
@@ -183,4 +183,4 @@ const { withProvider: _, withContext: n } = /* @__PURE__ */ L({
183
183
  export {
184
184
  ge as C
185
185
  };
186
- //# sourceMappingURL=calendar-BK_QGKS0.es.js.map
186
+ //# sourceMappingURL=calendar-D6NyBain.es.js.map