@commercetools/nimbus 0.0.0-canary-20250820123249 → 0.0.0-canary-20250821080039

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 (603) hide show
  1. package/dist/chunks/Button-BLV4Eycw.cjs.js +2 -0
  2. package/dist/chunks/Button-BLV4Eycw.cjs.js.map +1 -0
  3. package/dist/chunks/Button-Dbso0-qF.es.js +73 -0
  4. package/dist/chunks/Button-Dbso0-qF.es.js.map +1 -0
  5. package/dist/chunks/DateField-iMlYFknq.cjs.js +2 -0
  6. package/dist/chunks/DateField-iMlYFknq.cjs.js.map +1 -0
  7. package/dist/chunks/{DateField-B54wG86x.es.js → DateField-pv0EoMnC.es.js} +855 -774
  8. package/dist/chunks/DateField-pv0EoMnC.es.js.map +1 -0
  9. package/dist/chunks/DatePicker-COZaw7tZ.es.js +777 -0
  10. package/dist/chunks/DatePicker-COZaw7tZ.es.js.map +1 -0
  11. package/dist/chunks/DatePicker-DhT2ekYj.cjs.js +2 -0
  12. package/dist/chunks/DatePicker-DhT2ekYj.cjs.js.map +1 -0
  13. package/dist/chunks/Dialog-CptyD9rP.cjs.js +2 -0
  14. package/dist/chunks/Dialog-CptyD9rP.cjs.js.map +1 -0
  15. package/dist/chunks/Dialog-zk-xJfoo.es.js +1902 -0
  16. package/dist/chunks/Dialog-zk-xJfoo.es.js.map +1 -0
  17. package/dist/chunks/FocusScope-DqjrxokF.es.js +625 -0
  18. package/dist/chunks/FocusScope-DqjrxokF.es.js.map +1 -0
  19. package/dist/chunks/FocusScope-GecpDnRx.cjs.js +2 -0
  20. package/dist/chunks/FocusScope-GecpDnRx.cjs.js.map +1 -0
  21. package/dist/chunks/Form-amb1SjpT.cjs.js.map +1 -1
  22. package/dist/chunks/Form-yBl0QZl8.es.js.map +1 -1
  23. package/dist/chunks/{Group-mwXBycvF.es.js → Group-BrHhkg3Q.es.js} +5 -5
  24. package/dist/chunks/{Group-mwXBycvF.es.js.map → Group-BrHhkg3Q.es.js.map} +1 -1
  25. package/dist/chunks/{Group-S8qldAfB.cjs.js → Group-NyoRRxUI.cjs.js} +2 -2
  26. package/dist/chunks/{Group-S8qldAfB.cjs.js.map → Group-NyoRRxUI.cjs.js.map} +1 -1
  27. package/dist/chunks/{Heading-CNw7cSHE.es.js → Heading-6PRCde4r.es.js} +552 -539
  28. package/dist/chunks/Heading-6PRCde4r.es.js.map +1 -0
  29. package/dist/chunks/Heading-P3M5XVwg.cjs.js +2 -0
  30. package/dist/chunks/Heading-P3M5XVwg.cjs.js.map +1 -0
  31. package/dist/chunks/Hidden-CNJIJ63M.cjs.js.map +1 -1
  32. package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -1
  33. package/dist/chunks/{Input-DdVYDR5H.cjs.js → Input-3b57jDmV.cjs.js} +2 -2
  34. package/dist/chunks/{Input-DdVYDR5H.cjs.js.map → Input-3b57jDmV.cjs.js.map} +1 -1
  35. package/dist/chunks/{Input-BVKgvaGQ.es.js → Input-DEUFE8kQ.es.js} +5 -5
  36. package/dist/chunks/{Input-BVKgvaGQ.es.js.map → Input-DEUFE8kQ.es.js.map} +1 -1
  37. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
  38. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
  39. package/dist/chunks/{Label-HQH6CpQI.es.js → Label-B2YyCdLl.es.js} +2 -2
  40. package/dist/chunks/{Label-HQH6CpQI.es.js.map → Label-B2YyCdLl.es.js.map} +1 -1
  41. package/dist/chunks/{Label-CECAwZGp.cjs.js → Label-BgrYyYXn.cjs.js} +2 -2
  42. package/dist/chunks/{Label-CECAwZGp.cjs.js.map → Label-BgrYyYXn.cjs.js.map} +1 -1
  43. package/dist/chunks/ListBox-CWStps80.es.js +662 -0
  44. package/dist/chunks/ListBox-CWStps80.es.js.map +1 -0
  45. package/dist/chunks/ListBox-s8tRtwA0.cjs.js +2 -0
  46. package/dist/chunks/ListBox-s8tRtwA0.cjs.js.map +1 -0
  47. package/dist/chunks/LiveAnnouncer-BkrEjKY8.cjs.js.map +1 -1
  48. package/dist/chunks/LiveAnnouncer-CsPyaceH.es.js.map +1 -1
  49. package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
  50. package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
  51. package/dist/chunks/{OverlayArrow-BXmPG4ww.es.js → OverlayArrow-BuwEfnJ_.es.js} +4 -4
  52. package/dist/chunks/{OverlayArrow-BXmPG4ww.es.js.map → OverlayArrow-BuwEfnJ_.es.js.map} +1 -1
  53. package/dist/chunks/{OverlayArrow-BApTHrZU.cjs.js → OverlayArrow-C5Ymp9MC.cjs.js} +2 -2
  54. package/dist/chunks/{OverlayArrow-BApTHrZU.cjs.js.map → OverlayArrow-C5Ymp9MC.cjs.js.map} +1 -1
  55. package/dist/chunks/ProgressBar-BNPexoD9.cjs.js +2 -0
  56. package/dist/chunks/ProgressBar-BNPexoD9.cjs.js.map +1 -0
  57. package/dist/chunks/ProgressBar-BnGsEC_2.es.js +42 -0
  58. package/dist/chunks/ProgressBar-BnGsEC_2.es.js.map +1 -0
  59. package/dist/chunks/RSPContexts-AkhSBHGO.es.js.map +1 -1
  60. package/dist/chunks/RSPContexts-CIAIlAKH.cjs.js.map +1 -1
  61. package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -1
  62. package/dist/chunks/SSRProvider-Cu8KibIK.es.js.map +1 -1
  63. package/dist/chunks/Separator-DOmXRTmt.cjs.js +18 -0
  64. package/dist/chunks/Separator-DOmXRTmt.cjs.js.map +1 -0
  65. package/dist/chunks/{Separator-m-nxIY-Z.es.js → Separator-jqT9Eof_.es.js} +577 -579
  66. package/dist/chunks/Separator-jqT9Eof_.es.js.map +1 -0
  67. package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
  68. package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
  69. package/dist/chunks/{TextArea-Dd44XtIL.es.js → TextArea-D31Tyn5f.es.js} +5 -5
  70. package/dist/chunks/{TextArea-Dd44XtIL.es.js.map → TextArea-D31Tyn5f.es.js.map} +1 -1
  71. package/dist/chunks/{TextArea-CKgj3W0e.cjs.js → TextArea-DfONO55t.cjs.js} +2 -2
  72. package/dist/chunks/{TextArea-CKgj3W0e.cjs.js.map → TextArea-DfONO55t.cjs.js.map} +1 -1
  73. package/dist/chunks/{ToggleButton--Chrvt2-.es.js → ToggleButton-BwfjgdrS.es.js} +51 -47
  74. package/dist/chunks/ToggleButton-BwfjgdrS.es.js.map +1 -0
  75. package/dist/chunks/ToggleButton-CgYoKWXE.cjs.js +2 -0
  76. package/dist/chunks/ToggleButton-CgYoKWXE.cjs.js.map +1 -0
  77. package/dist/chunks/{VisuallyHidden-D_v-Q4zg.cjs.js → VisuallyHidden-Cry3ILzH.cjs.js} +2 -2
  78. package/dist/chunks/{VisuallyHidden-D_v-Q4zg.cjs.js.map → VisuallyHidden-Cry3ILzH.cjs.js.map} +1 -1
  79. package/dist/chunks/{VisuallyHidden-OA9O6ss7.es.js → VisuallyHidden-vWWAOaeB.es.js} +3 -3
  80. package/dist/chunks/{VisuallyHidden-OA9O6ss7.es.js.map → VisuallyHidden-vWWAOaeB.es.js.map} +1 -1
  81. package/dist/chunks/{accordion-ClYjUgCm.es.js → accordion-BzVLPw0m.es.js} +5 -5
  82. package/dist/chunks/{accordion-ClYjUgCm.es.js.map → accordion-BzVLPw0m.es.js.map} +1 -1
  83. package/dist/chunks/{accordion-BCevgjfz.cjs.js → accordion-CqVqPnnk.cjs.js} +2 -2
  84. package/dist/chunks/{accordion-BCevgjfz.cjs.js.map → accordion-CqVqPnnk.cjs.js.map} +1 -1
  85. package/dist/chunks/{alert-DtykbztH.cjs.js → alert-7fGS6Jtp.cjs.js} +2 -2
  86. package/dist/chunks/{alert-DtykbztH.cjs.js.map → alert-7fGS6Jtp.cjs.js.map} +1 -1
  87. package/dist/chunks/{alert-CkCA_F0G.es.js → alert-BjlXzvt9.es.js} +2 -2
  88. package/dist/chunks/{alert-CkCA_F0G.es.js.map → alert-BjlXzvt9.es.js.map} +1 -1
  89. package/dist/chunks/{badge-svy4D5LX.es.js → badge-BeR8OqtD.es.js} +2 -2
  90. package/dist/chunks/{badge-svy4D5LX.es.js.map → badge-BeR8OqtD.es.js.map} +1 -1
  91. package/dist/chunks/{badge-DrunOIl4.cjs.js → badge-CJK91qKC.cjs.js} +2 -2
  92. package/dist/chunks/{badge-DrunOIl4.cjs.js.map → badge-CJK91qKC.cjs.js.map} +1 -1
  93. package/dist/chunks/{button-CtcszdQr.es.js → button-CuhF1g5I.es.js} +5 -5
  94. package/dist/chunks/{button-CtcszdQr.es.js.map → button-CuhF1g5I.es.js.map} +1 -1
  95. package/dist/chunks/{button-Cc5bRJ6s.cjs.js → button-DQVmtZsI.cjs.js} +2 -2
  96. package/dist/chunks/{button-Cc5bRJ6s.cjs.js.map → button-DQVmtZsI.cjs.js.map} +1 -1
  97. package/dist/chunks/{calendar-bCvE33zv.cjs.js → calendar-CX2aTMuK.cjs.js} +2 -2
  98. package/dist/chunks/{calendar-bCvE33zv.cjs.js.map → calendar-CX2aTMuK.cjs.js.map} +1 -1
  99. package/dist/chunks/{calendar-D5ju_SXN.es.js → calendar-Cgb94GBg.es.js} +8 -8
  100. package/dist/chunks/{calendar-D5ju_SXN.es.js.map → calendar-Cgb94GBg.es.js.map} +1 -1
  101. package/dist/chunks/{card-vyVNrQUp.cjs.js → card-DR7vGEKx.cjs.js} +2 -2
  102. package/dist/chunks/{card-vyVNrQUp.cjs.js.map → card-DR7vGEKx.cjs.js.map} +1 -1
  103. package/dist/chunks/{card-DuySl12T.es.js → card-DTunB9ZY.es.js} +3 -3
  104. package/dist/chunks/{card-DuySl12T.es.js.map → card-DTunB9ZY.es.js.map} +1 -1
  105. package/dist/chunks/{checkbox-1YXl_lbS.cjs.js → checkbox-Ci8-0C_9.cjs.js} +2 -2
  106. package/dist/chunks/{checkbox-1YXl_lbS.cjs.js.map → checkbox-Ci8-0C_9.cjs.js.map} +1 -1
  107. package/dist/chunks/{checkbox-CmNhDeu0.es.js → checkbox-CjpbV9HI.es.js} +8 -8
  108. package/dist/chunks/{checkbox-CmNhDeu0.es.js.map → checkbox-CjpbV9HI.es.js.map} +1 -1
  109. package/dist/chunks/combobox-1Kzme-cs.es.js +1910 -0
  110. package/dist/chunks/combobox-1Kzme-cs.es.js.map +1 -0
  111. package/dist/chunks/combobox-9_6OFmgk.cjs.js +2 -0
  112. package/dist/chunks/combobox-9_6OFmgk.cjs.js.map +1 -0
  113. package/dist/chunks/context-D0_cRaDZ.cjs.js.map +1 -1
  114. package/dist/chunks/context-Pt-0ojuK.es.js.map +1 -1
  115. package/dist/chunks/{date-input-C9ZcvfbY.cjs.js → date-input-BiNLEpfR.cjs.js} +2 -2
  116. package/dist/chunks/{date-input-C9ZcvfbY.cjs.js.map → date-input-BiNLEpfR.cjs.js.map} +1 -1
  117. package/dist/chunks/{date-input-B2h5XYct.es.js → date-input-DU74Qqxa.es.js} +2 -2
  118. package/dist/chunks/{date-input-B2h5XYct.es.js.map → date-input-DU74Qqxa.es.js.map} +1 -1
  119. package/dist/chunks/{date-picker-CoSwmyDt.cjs.js → date-picker-BU4NVftG.cjs.js} +2 -2
  120. package/dist/chunks/{date-picker-CoSwmyDt.cjs.js.map → date-picker-BU4NVftG.cjs.js.map} +1 -1
  121. package/dist/chunks/{date-picker-BNtQMIfz.es.js → date-picker-D6h7NeRV.es.js} +12 -12
  122. package/dist/chunks/{date-picker-BNtQMIfz.es.js.map → date-picker-D6h7NeRV.es.js.map} +1 -1
  123. package/dist/chunks/{date-range-picker-lX9xNms_.cjs.js → date-range-picker-BhWMCCGo.cjs.js} +2 -2
  124. package/dist/chunks/{date-range-picker-lX9xNms_.cjs.js.map → date-range-picker-BhWMCCGo.cjs.js.map} +1 -1
  125. package/dist/chunks/{date-range-picker-CsyWGPqF.es.js → date-range-picker-DouNAx8F.es.js} +12 -12
  126. package/dist/chunks/{date-range-picker-CsyWGPqF.es.js.map → date-range-picker-DouNAx8F.es.js.map} +1 -1
  127. package/dist/chunks/{divider-DqTADRa0.cjs.js → divider-BicBw1PK.cjs.js} +2 -2
  128. package/dist/chunks/{divider-DqTADRa0.cjs.js.map → divider-BicBw1PK.cjs.js.map} +1 -1
  129. package/dist/chunks/{divider-CvKO3nQL.es.js → divider-DMH0p6Pr.es.js} +3 -3
  130. package/dist/chunks/{divider-CvKO3nQL.es.js.map → divider-DMH0p6Pr.es.js.map} +1 -1
  131. package/dist/chunks/filterDOMProps-BSVCO5jK.es.js +66 -0
  132. package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -0
  133. package/dist/chunks/filterDOMProps-WUskt27c.cjs.js +2 -0
  134. package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -0
  135. package/dist/chunks/focusSafely-IqPqYGW2.cjs.js +2 -0
  136. package/dist/chunks/{focusSafely-Bv_RnHNT.cjs.js.map → focusSafely-IqPqYGW2.cjs.js.map} +1 -1
  137. package/dist/chunks/{focusSafely-DoM_n2jA.es.js → focusSafely-Z_llPDi1.es.js} +6 -5
  138. package/dist/chunks/{focusSafely-DoM_n2jA.es.js.map → focusSafely-Z_llPDi1.es.js.map} +1 -1
  139. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  140. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  141. package/dist/chunks/{form-field-D8OuOQ5E.cjs.js → form-field-CtS2lThW.cjs.js} +2 -2
  142. package/dist/chunks/{form-field-D8OuOQ5E.cjs.js.map → form-field-CtS2lThW.cjs.js.map} +1 -1
  143. package/dist/chunks/{form-field-QQSY_Jm4.es.js → form-field-DyC1BwgL.es.js} +4 -4
  144. package/dist/chunks/{form-field-QQSY_Jm4.es.js.map → form-field-DyC1BwgL.es.js.map} +1 -1
  145. package/dist/chunks/{group-gNVdnMp6.cjs.js → group-BlwUrhBo.cjs.js} +2 -2
  146. package/dist/chunks/{group-gNVdnMp6.cjs.js.map → group-BlwUrhBo.cjs.js.map} +1 -1
  147. package/dist/chunks/{group-BUyqvOqA.es.js → group-C-AOBEBA.es.js} +2 -2
  148. package/dist/chunks/{group-BUyqvOqA.es.js.map → group-C-AOBEBA.es.js.map} +1 -1
  149. package/dist/chunks/{icon-button-DBY3-KjA.cjs.js → icon-button-Dz81DR3X.cjs.js} +2 -2
  150. package/dist/chunks/{icon-button-DBY3-KjA.cjs.js.map → icon-button-Dz81DR3X.cjs.js.map} +1 -1
  151. package/dist/chunks/{icon-button-CH683kN2.es.js → icon-button-eAxeO5Sy.es.js} +2 -2
  152. package/dist/chunks/{icon-button-CH683kN2.es.js.map → icon-button-eAxeO5Sy.es.js.map} +1 -1
  153. package/dist/chunks/{icon-toggle-button-B7ttsu07.cjs.js → icon-toggle-button-C0lscD-H.cjs.js} +2 -2
  154. package/dist/chunks/{icon-toggle-button-B7ttsu07.cjs.js.map → icon-toggle-button-C0lscD-H.cjs.js.map} +1 -1
  155. package/dist/chunks/{icon-toggle-button-DB4vAc3G.es.js → icon-toggle-button-JIH-oYkL.es.js} +2 -2
  156. package/dist/chunks/{icon-toggle-button-DB4vAc3G.es.js.map → icon-toggle-button-JIH-oYkL.es.js.map} +1 -1
  157. package/dist/chunks/{kbd-DtkBixW-.cjs.js → kbd-CSMHvaH6.cjs.js} +2 -2
  158. package/dist/chunks/{kbd-DtkBixW-.cjs.js.map → kbd-CSMHvaH6.cjs.js.map} +1 -1
  159. package/dist/chunks/{kbd-D2TJB0Xw.es.js → kbd-CUSbYvfc.es.js} +2 -2
  160. package/dist/chunks/{kbd-D2TJB0Xw.es.js.map → kbd-CUSbYvfc.es.js.map} +1 -1
  161. package/dist/chunks/link-ghRc-njF.es.js +50 -0
  162. package/dist/chunks/link-ghRc-njF.es.js.map +1 -0
  163. package/dist/chunks/link-sv3Y9kiL.cjs.js +2 -0
  164. package/dist/chunks/link-sv3Y9kiL.cjs.js.map +1 -0
  165. package/dist/chunks/{loading-spinner-CWiVMPa9.cjs.js → loading-spinner-Czc9y_Gn.cjs.js} +2 -2
  166. package/dist/chunks/{loading-spinner-CWiVMPa9.cjs.js.map → loading-spinner-Czc9y_Gn.cjs.js.map} +1 -1
  167. package/dist/chunks/{loading-spinner-CDxvsTM7.es.js → loading-spinner-hZA3mTh7.es.js} +3 -3
  168. package/dist/chunks/{loading-spinner-CDxvsTM7.es.js.map → loading-spinner-hZA3mTh7.es.js.map} +1 -1
  169. package/dist/chunks/{make-element-focusable-B3nqm8sS.cjs.js → make-element-focusable-DH5D8RT_.cjs.js} +2 -2
  170. package/dist/chunks/{make-element-focusable-B3nqm8sS.cjs.js.map → make-element-focusable-DH5D8RT_.cjs.js.map} +1 -1
  171. package/dist/chunks/{make-element-focusable-Cwa2mbxh.es.js → make-element-focusable-ZJARjxxy.es.js} +3 -3
  172. package/dist/chunks/{make-element-focusable-Cwa2mbxh.es.js.map → make-element-focusable-ZJARjxxy.es.js.map} +1 -1
  173. package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js +2 -0
  174. package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -0
  175. package/dist/chunks/{mergeProps-Cwgnfqio.es.js → mergeProps-B_9syxhT.es.js} +28 -27
  176. package/dist/chunks/mergeProps-B_9syxhT.es.js.map +1 -0
  177. package/dist/chunks/{multiline-text-input-ClPMQ7tA.es.js → multiline-text-input-C92pFhFJ.es.js} +3 -3
  178. package/dist/chunks/{multiline-text-input-ClPMQ7tA.es.js.map → multiline-text-input-C92pFhFJ.es.js.map} +1 -1
  179. package/dist/chunks/{multiline-text-input-DA_Fz8h9.cjs.js → multiline-text-input-CyuK_OFR.cjs.js} +2 -2
  180. package/dist/chunks/{multiline-text-input-DA_Fz8h9.cjs.js.map → multiline-text-input-CyuK_OFR.cjs.js.map} +1 -1
  181. package/dist/chunks/{nimbus-provider-D8US7K6p.cjs.js → nimbus-provider-DCCIMVE_.cjs.js} +2 -2
  182. package/dist/chunks/{nimbus-provider-D8US7K6p.cjs.js.map → nimbus-provider-DCCIMVE_.cjs.js.map} +1 -1
  183. package/dist/chunks/{nimbus-provider-Csv9bA7X.es.js → nimbus-provider-ayl_l7xS.es.js} +2 -2
  184. package/dist/chunks/{nimbus-provider-Csv9bA7X.es.js.map → nimbus-provider-ayl_l7xS.es.js.map} +1 -1
  185. package/dist/chunks/number-DHvo-MDe.cjs.js +2 -0
  186. package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -0
  187. package/dist/chunks/number-dMxJejI6.es.js +26 -0
  188. package/dist/chunks/number-dMxJejI6.es.js.map +1 -0
  189. package/dist/chunks/number-input-B1dhdihJ.cjs.js +2 -0
  190. package/dist/chunks/number-input-B1dhdihJ.cjs.js.map +1 -0
  191. package/dist/chunks/{number-input-DhePUBX4.es.js → number-input-CW2-kmte.es.js} +241 -254
  192. package/dist/chunks/number-input-CW2-kmte.es.js.map +1 -0
  193. package/dist/chunks/openLink-DkCJYbzq.cjs.js +2 -0
  194. package/dist/chunks/{openLink-BjodHrGD.cjs.js.map → openLink-DkCJYbzq.cjs.js.map} +1 -1
  195. package/dist/chunks/{openLink-BRnXRj9w.es.js → openLink-UGin_Dml.es.js} +42 -38
  196. package/dist/chunks/{openLink-BRnXRj9w.es.js.map → openLink-UGin_Dml.es.js.map} +1 -1
  197. package/dist/chunks/{password-input-DqBr_SOU.es.js → password-input-Cu0dFS1a.es.js} +4 -4
  198. package/dist/chunks/{password-input-DqBr_SOU.es.js.map → password-input-Cu0dFS1a.es.js.map} +1 -1
  199. package/dist/chunks/{password-input-C0i1n4rW.cjs.js → password-input-JB8O_D-h.cjs.js} +2 -2
  200. package/dist/chunks/{password-input-C0i1n4rW.cjs.js.map → password-input-JB8O_D-h.cjs.js.map} +1 -1
  201. package/dist/chunks/platform-BDLy2vDY.cjs.js +2 -0
  202. package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -0
  203. package/dist/chunks/platform-BuOpbxqC.es.js +47 -0
  204. package/dist/chunks/platform-BuOpbxqC.es.js.map +1 -0
  205. package/dist/chunks/{progress-bar-BPk6bjED.cjs.js → progress-bar-BsWBRJc2.cjs.js} +2 -2
  206. package/dist/chunks/{progress-bar-BPk6bjED.cjs.js.map → progress-bar-BsWBRJc2.cjs.js.map} +1 -1
  207. package/dist/chunks/{progress-bar-BP4F1gOI.es.js → progress-bar-CUa2a1GW.es.js} +3 -3
  208. package/dist/chunks/{progress-bar-BP4F1gOI.es.js.map → progress-bar-CUa2a1GW.es.js.map} +1 -1
  209. package/dist/chunks/radio-input-Dm2vi4Tr.es.js +340 -0
  210. package/dist/chunks/radio-input-Dm2vi4Tr.es.js.map +1 -0
  211. package/dist/chunks/radio-input-ks3uMIHH.cjs.js +2 -0
  212. package/dist/chunks/radio-input-ks3uMIHH.cjs.js.map +1 -0
  213. package/dist/chunks/{range-calendar-CTngGdKU.es.js → range-calendar-BPr3OzhD.es.js} +8 -8
  214. package/dist/chunks/{range-calendar-CTngGdKU.es.js.map → range-calendar-BPr3OzhD.es.js.map} +1 -1
  215. package/dist/chunks/{range-calendar-DsPvLwZi.cjs.js → range-calendar-p93X9--W.cjs.js} +2 -2
  216. package/dist/chunks/{range-calendar-DsPvLwZi.cjs.js.map → range-calendar-p93X9--W.cjs.js.map} +1 -1
  217. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js +2 -0
  218. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -0
  219. package/dist/chunks/scrollIntoView-DBSz0DQ7.es.js +94 -0
  220. package/dist/chunks/scrollIntoView-DBSz0DQ7.es.js.map +1 -0
  221. package/dist/chunks/select-DZ-oIsVV.cjs.js +2 -0
  222. package/dist/chunks/select-DZ-oIsVV.cjs.js.map +1 -0
  223. package/dist/chunks/select-sJlm2NT8.es.js +831 -0
  224. package/dist/chunks/select-sJlm2NT8.es.js.map +1 -0
  225. package/dist/chunks/{split-button-S3vDaSRE.es.js → split-button-CD_Lc9Zk.es.js} +6 -6
  226. package/dist/chunks/{split-button-S3vDaSRE.es.js.map → split-button-CD_Lc9Zk.es.js.map} +1 -1
  227. package/dist/chunks/{split-button-BjXKLuNF.cjs.js → split-button-CcDW5RoK.cjs.js} +2 -2
  228. package/dist/chunks/{split-button-BjXKLuNF.cjs.js.map → split-button-CcDW5RoK.cjs.js.map} +1 -1
  229. package/dist/chunks/{switch-Dz65MgpM.cjs.js → switch-Crc8nVlW.cjs.js} +2 -2
  230. package/dist/chunks/{switch-Dz65MgpM.cjs.js.map → switch-Crc8nVlW.cjs.js.map} +1 -1
  231. package/dist/chunks/{switch-yxZy9-ic.es.js → switch-xIG_-I0g.es.js} +6 -6
  232. package/dist/chunks/{switch-yxZy9-ic.es.js.map → switch-xIG_-I0g.es.js.map} +1 -1
  233. package/dist/chunks/{tag-group-1AADllBn.es.js → tag-group-Dw0sYuC6.es.js} +467 -464
  234. package/dist/chunks/tag-group-Dw0sYuC6.es.js.map +1 -0
  235. package/dist/chunks/tag-group-lc7cj8fj.cjs.js +2 -0
  236. package/dist/chunks/tag-group-lc7cj8fj.cjs.js.map +1 -0
  237. package/dist/chunks/{text-DmDvx7V_.cjs.js → text-DNjTZCtR.cjs.js} +2 -2
  238. package/dist/chunks/{text-DmDvx7V_.cjs.js.map → text-DNjTZCtR.cjs.js.map} +1 -1
  239. package/dist/chunks/{text-DkDCu8ot.es.js → text-QANNJ4E4.es.js} +2 -2
  240. package/dist/chunks/{text-DkDCu8ot.es.js.map → text-QANNJ4E4.es.js.map} +1 -1
  241. package/dist/chunks/{text-input-BWzdKRYV.cjs.js → text-input-C-OhJndO.cjs.js} +2 -2
  242. package/dist/chunks/{text-input-BWzdKRYV.cjs.js.map → text-input-C-OhJndO.cjs.js.map} +1 -1
  243. package/dist/chunks/{text-input-W1iPBvXd.es.js → text-input-Co1vIdZ4.es.js} +3 -3
  244. package/dist/chunks/{text-input-W1iPBvXd.es.js.map → text-input-Co1vIdZ4.es.js.map} +1 -1
  245. package/dist/chunks/{time-input-DyKhJkkD.cjs.js → time-input-DBhELOKp.cjs.js} +2 -2
  246. package/dist/chunks/{time-input-DyKhJkkD.cjs.js.map → time-input-DBhELOKp.cjs.js.map} +1 -1
  247. package/dist/chunks/{time-input-DrAd1lXq.es.js → time-input-Qllp0HZz.es.js} +2 -2
  248. package/dist/chunks/{time-input-DrAd1lXq.es.js.map → time-input-Qllp0HZz.es.js.map} +1 -1
  249. package/dist/chunks/{toggle-button-Dowh5X2c.es.js → toggle-button-DS19vPrG.es.js} +2 -2
  250. package/dist/chunks/{toggle-button-Dowh5X2c.es.js.map → toggle-button-DS19vPrG.es.js.map} +1 -1
  251. package/dist/chunks/{toggle-button-CUbE_upB.cjs.js → toggle-button-DY1owmQc.cjs.js} +2 -2
  252. package/dist/chunks/{toggle-button-CUbE_upB.cjs.js.map → toggle-button-DY1owmQc.cjs.js.map} +1 -1
  253. package/dist/chunks/{toggle-button-group-Dwp7V9nb.cjs.js → toggle-button-group-BWIvUU_4.cjs.js} +2 -2
  254. package/dist/chunks/{toggle-button-group-Dwp7V9nb.cjs.js.map → toggle-button-group-BWIvUU_4.cjs.js.map} +1 -1
  255. package/dist/chunks/{toggle-button-group-Bh_OZF74.es.js → toggle-button-group-CgjXp8XN.es.js} +2 -2
  256. package/dist/chunks/{toggle-button-group-Bh_OZF74.es.js.map → toggle-button-group-CgjXp8XN.es.js.map} +1 -1
  257. package/dist/chunks/toolbar-CjHj5fIX.cjs.js +2 -0
  258. package/dist/chunks/toolbar-CjHj5fIX.cjs.js.map +1 -0
  259. package/dist/chunks/{toolbar-Bc6yC_Kq.es.js → toolbar-DLScuBdf.es.js} +14 -13
  260. package/dist/chunks/toolbar-DLScuBdf.es.js.map +1 -0
  261. package/dist/chunks/tooltip-BB7ooTKa.cjs.js +2 -0
  262. package/dist/chunks/tooltip-BB7ooTKa.cjs.js.map +1 -0
  263. package/dist/chunks/tooltip-Q46epl2a.es.js +274 -0
  264. package/dist/chunks/tooltip-Q46epl2a.es.js.map +1 -0
  265. package/dist/chunks/useButton-DlcUcB98.es.js +56 -0
  266. package/dist/chunks/useButton-DlcUcB98.es.js.map +1 -0
  267. package/dist/chunks/useButton-hi3sM3Ce.cjs.js +2 -0
  268. package/dist/chunks/useButton-hi3sM3Ce.cjs.js.map +1 -0
  269. package/dist/chunks/useCollator-BvjDbml1.es.js.map +1 -1
  270. package/dist/chunks/useCollator-ZqnkTllN.cjs.js.map +1 -1
  271. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  272. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  273. package/dist/chunks/useDateFormatter-Dw7VGiwz.cjs.js +2 -0
  274. package/dist/chunks/{useDateFormatter-dQunecsL.cjs.js.map → useDateFormatter-Dw7VGiwz.cjs.js.map} +1 -1
  275. package/dist/chunks/{useDateFormatter-CFejfBgJ.es.js → useDateFormatter-kmlij37M.es.js} +441 -421
  276. package/dist/chunks/{useDateFormatter-CFejfBgJ.es.js.map → useDateFormatter-kmlij37M.es.js.map} +1 -1
  277. package/dist/chunks/{useEvent-Cao_u7hG.cjs.js → useEvent-CuUOU5WV.cjs.js} +2 -2
  278. package/dist/chunks/{useEvent-Cao_u7hG.cjs.js.map → useEvent-CuUOU5WV.cjs.js.map} +1 -1
  279. package/dist/chunks/{useEvent-CMKtxjkk.es.js → useEvent-YHhqZvpU.es.js} +7 -7
  280. package/dist/chunks/{useEvent-CMKtxjkk.es.js.map → useEvent-YHhqZvpU.es.js.map} +1 -1
  281. package/dist/chunks/{useField-BeQNqtrH.es.js → useField-Ce9zQxmx.es.js} +3 -3
  282. package/dist/chunks/{useField-BeQNqtrH.es.js.map → useField-Ce9zQxmx.es.js.map} +1 -1
  283. package/dist/chunks/{useField-C3i64Axh.cjs.js → useField-DmqO9k7a.cjs.js} +2 -2
  284. package/dist/chunks/{useField-C3i64Axh.cjs.js.map → useField-DmqO9k7a.cjs.js.map} +1 -1
  285. package/dist/chunks/useFilter-Bh0adxQ-.es.js.map +1 -1
  286. package/dist/chunks/useFilter-Du48WXDn.cjs.js.map +1 -1
  287. package/dist/chunks/{useFocus-B2KLYI7p.es.js → useFocus-BvGvYIan.es.js} +6 -6
  288. package/dist/chunks/{useFocus-B2KLYI7p.es.js.map → useFocus-BvGvYIan.es.js.map} +1 -1
  289. package/dist/chunks/{useFocus-BmPbv2AS.cjs.js → useFocus-CXfPnJ5G.cjs.js} +2 -2
  290. package/dist/chunks/{useFocus-BmPbv2AS.cjs.js.map → useFocus-CXfPnJ5G.cjs.js.map} +1 -1
  291. package/dist/chunks/{useFocusRing-CGS5w1di.es.js → useFocusRing-C1vq7lTw.es.js} +4 -4
  292. package/dist/chunks/{useFocusRing-CGS5w1di.es.js.map → useFocusRing-C1vq7lTw.es.js.map} +1 -1
  293. package/dist/chunks/{useFocusRing-Cq8Zm8qB.cjs.js → useFocusRing-ixPPR18r.cjs.js} +2 -2
  294. package/dist/chunks/{useFocusRing-Cq8Zm8qB.cjs.js.map → useFocusRing-ixPPR18r.cjs.js.map} +1 -1
  295. package/dist/chunks/useFocusVisible-BvNyuIMJ.es.js +111 -0
  296. package/dist/chunks/useFocusVisible-BvNyuIMJ.es.js.map +1 -0
  297. package/dist/chunks/useFocusVisible-ofYjJ-l6.cjs.js +2 -0
  298. package/dist/chunks/useFocusVisible-ofYjJ-l6.cjs.js.map +1 -0
  299. package/dist/chunks/{useFocusWithin-ypYig0QZ.cjs.js → useFocusWithin-Bf2suIR7.cjs.js} +2 -2
  300. package/dist/chunks/{useFocusWithin-ypYig0QZ.cjs.js.map → useFocusWithin-Bf2suIR7.cjs.js.map} +1 -1
  301. package/dist/chunks/{useFocusWithin-DxkmDuYs.es.js → useFocusWithin-s8WR5xWD.es.js} +6 -6
  302. package/dist/chunks/{useFocusWithin-DxkmDuYs.es.js.map → useFocusWithin-s8WR5xWD.es.js.map} +1 -1
  303. package/dist/chunks/useFocusable-9nZX8LFj.es.js +77 -0
  304. package/dist/chunks/useFocusable-9nZX8LFj.es.js.map +1 -0
  305. package/dist/chunks/useFocusable-lxn-toA4.cjs.js +2 -0
  306. package/dist/chunks/useFocusable-lxn-toA4.cjs.js.map +1 -0
  307. package/dist/chunks/useFormReset--wPlnEOl.cjs.js +2 -0
  308. package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -0
  309. package/dist/chunks/useFormReset-DurgUJL-.es.js +21 -0
  310. package/dist/chunks/useFormReset-DurgUJL-.es.js.map +1 -0
  311. package/dist/chunks/useFormValidation-Cuj--965.cjs.js +2 -0
  312. package/dist/chunks/useFormValidation-Cuj--965.cjs.js.map +1 -0
  313. package/dist/chunks/useFormValidation-YmZxjLYm.es.js +202 -0
  314. package/dist/chunks/useFormValidation-YmZxjLYm.es.js.map +1 -0
  315. package/dist/chunks/{useHover-CTqV4Nw8.cjs.js → useHover-CS1E3DZy.cjs.js} +2 -2
  316. package/dist/chunks/{useHover-CTqV4Nw8.cjs.js.map → useHover-CS1E3DZy.cjs.js.map} +1 -1
  317. package/dist/chunks/{useHover-Dcwl8eOA.es.js → useHover-D4cqdNG6.es.js} +2 -2
  318. package/dist/chunks/{useHover-Dcwl8eOA.es.js.map → useHover-D4cqdNG6.es.js.map} +1 -1
  319. package/dist/chunks/{useLabel-CisZ8a6h.es.js → useLabel-BBmkkrPP.es.js} +2 -2
  320. package/dist/chunks/{useLabel-CisZ8a6h.es.js.map → useLabel-BBmkkrPP.es.js.map} +1 -1
  321. package/dist/chunks/{useLabel-CNejlqhX.cjs.js → useLabel-Y8tWagLu.cjs.js} +2 -2
  322. package/dist/chunks/{useLabel-CNejlqhX.cjs.js.map → useLabel-Y8tWagLu.cjs.js.map} +1 -1
  323. package/dist/chunks/useLocalizedStringFormatter-CvzOUusg.es.js.map +1 -1
  324. package/dist/chunks/useLocalizedStringFormatter-fJnbqb2x.cjs.js.map +1 -1
  325. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  326. package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
  327. package/dist/chunks/usePress-CHQHbwut.es.js +454 -0
  328. package/dist/chunks/usePress-CHQHbwut.es.js.map +1 -0
  329. package/dist/chunks/usePress-EAB51g0R.cjs.js +8 -0
  330. package/dist/chunks/usePress-EAB51g0R.cjs.js.map +1 -0
  331. package/dist/chunks/{useProgressBar-PUck7ed-.cjs.js → useProgressBar-8ZyM2_T3.cjs.js} +2 -2
  332. package/dist/chunks/{useProgressBar-PUck7ed-.cjs.js.map → useProgressBar-8ZyM2_T3.cjs.js.map} +1 -1
  333. package/dist/chunks/{useProgressBar-CRW7pbYx.es.js → useProgressBar-BgURyN6q.es.js} +5 -5
  334. package/dist/chunks/{useProgressBar-CRW7pbYx.es.js.map → useProgressBar-BgURyN6q.es.js.map} +1 -1
  335. package/dist/chunks/{useSeparator-CZKjqF0N.cjs.js → useSeparator-B-OtWwE7.cjs.js} +2 -2
  336. package/dist/chunks/{useSeparator-CZKjqF0N.cjs.js.map → useSeparator-B-OtWwE7.cjs.js.map} +1 -1
  337. package/dist/chunks/{useSeparator-g1ilWvTX.es.js → useSeparator-Dg70ACBm.es.js} +2 -2
  338. package/dist/chunks/{useSeparator-g1ilWvTX.es.js.map → useSeparator-Dg70ACBm.es.js.map} +1 -1
  339. package/dist/chunks/{useSingleSelectListState-BrOqG2AF.cjs.js → useSingleSelectListState-C0yvvGsR.cjs.js} +2 -2
  340. package/dist/chunks/{useSingleSelectListState-BrOqG2AF.cjs.js.map → useSingleSelectListState-C0yvvGsR.cjs.js.map} +1 -1
  341. package/dist/chunks/{useSingleSelectListState-BrpXw6lw.es.js → useSingleSelectListState-uzLHyabs.es.js} +2 -2
  342. package/dist/chunks/{useSingleSelectListState-BrpXw6lw.es.js.map → useSingleSelectListState-uzLHyabs.es.js.map} +1 -1
  343. package/dist/chunks/{useSpinButton-DcOZDNgb.es.js → useSpinButton-C-tpK-T9.es.js} +181 -209
  344. package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +1 -0
  345. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +2 -0
  346. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +1 -0
  347. package/dist/chunks/useSyncRef-DGRbdR4H.es.js +13 -0
  348. package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -0
  349. package/dist/chunks/useSyncRef-bcjp9eId.cjs.js +2 -0
  350. package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -0
  351. package/dist/chunks/useTextField-Dxspe3Dd.es.js +91 -0
  352. package/dist/chunks/useTextField-Dxspe3Dd.es.js.map +1 -0
  353. package/dist/chunks/useTextField-MxjVF2Cs.cjs.js +2 -0
  354. package/dist/chunks/useTextField-MxjVF2Cs.cjs.js.map +1 -0
  355. package/dist/chunks/useToggle-CCq_jSTE.es.js +62 -0
  356. package/dist/chunks/useToggle-CCq_jSTE.es.js.map +1 -0
  357. package/dist/chunks/useToggle-CTG3hkKx.cjs.js +2 -0
  358. package/dist/chunks/useToggle-CTG3hkKx.cjs.js.map +1 -0
  359. package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js +2 -0
  360. package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -0
  361. package/dist/chunks/useToggleState-Uh0wTgdI.es.js +22 -0
  362. package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -0
  363. package/dist/chunks/{useToolbar-DaBxAQpy.es.js → useToolbar-Be7EMzF5.es.js} +4 -4
  364. package/dist/chunks/{useToolbar-DaBxAQpy.es.js.map → useToolbar-Be7EMzF5.es.js.map} +1 -1
  365. package/dist/chunks/{useToolbar-CqrPUpY4.cjs.js → useToolbar-Dx3B5fDy.cjs.js} +2 -2
  366. package/dist/chunks/{useToolbar-CqrPUpY4.cjs.js.map → useToolbar-Dx3B5fDy.cjs.js.map} +1 -1
  367. package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
  368. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  369. package/dist/chunks/{utils-Bag2AAeo.cjs.js → utils-BHdR5Nww.cjs.js} +2 -2
  370. package/dist/chunks/{utils-Bag2AAeo.cjs.js.map → utils-BHdR5Nww.cjs.js.map} +1 -1
  371. package/dist/chunks/{utils-CK1WzOK8.es.js → utils-BkdW_cdL.es.js} +2 -2
  372. package/dist/chunks/{utils-CK1WzOK8.es.js.map → utils-BkdW_cdL.es.js.map} +1 -1
  373. package/dist/chunks/utils-BlXAWjB_.es.js +184 -0
  374. package/dist/chunks/utils-BlXAWjB_.es.js.map +1 -0
  375. package/dist/chunks/utils-JGx-H9sJ.cjs.js +2 -0
  376. package/dist/chunks/utils-JGx-H9sJ.cjs.js.map +1 -0
  377. package/dist/chunks/{visually-hidden-Ct7jWlZQ.es.js → visually-hidden-Cr2DdJfv.es.js} +2 -2
  378. package/dist/chunks/{visually-hidden-Ct7jWlZQ.es.js.map → visually-hidden-Cr2DdJfv.es.js.map} +1 -1
  379. package/dist/chunks/{visually-hidden-CcZJkTkB.cjs.js → visually-hidden-DxNUFbOh.cjs.js} +2 -2
  380. package/dist/chunks/{visually-hidden-CcZJkTkB.cjs.js.map → visually-hidden-DxNUFbOh.cjs.js.map} +1 -1
  381. package/dist/components/accordion.cjs +1 -1
  382. package/dist/components/accordion.es.js +1 -1
  383. package/dist/components/alert.cjs +1 -1
  384. package/dist/components/alert.es.js +1 -1
  385. package/dist/components/badge.cjs +1 -1
  386. package/dist/components/badge.es.js +1 -1
  387. package/dist/components/button.cjs +1 -1
  388. package/dist/components/button.es.js +1 -1
  389. package/dist/components/calendar.cjs +1 -1
  390. package/dist/components/calendar.es.js +1 -1
  391. package/dist/components/card.cjs +1 -1
  392. package/dist/components/card.es.js +1 -1
  393. package/dist/components/checkbox.cjs +1 -1
  394. package/dist/components/checkbox.es.js +1 -1
  395. package/dist/components/combobox.cjs +1 -1
  396. package/dist/components/combobox.es.js +1 -1
  397. package/dist/components/components.cjs +1 -1
  398. package/dist/components/components.es.js +39 -39
  399. package/dist/components/date-input.cjs +1 -1
  400. package/dist/components/date-input.es.js +1 -1
  401. package/dist/components/date-picker.cjs +1 -1
  402. package/dist/components/date-picker.es.js +1 -1
  403. package/dist/components/date-range-picker.cjs +1 -1
  404. package/dist/components/date-range-picker.es.js +1 -1
  405. package/dist/components/divider.cjs +1 -1
  406. package/dist/components/divider.es.js +1 -1
  407. package/dist/components/form-field.cjs +1 -1
  408. package/dist/components/form-field.es.js +1 -1
  409. package/dist/components/group.cjs +1 -1
  410. package/dist/components/group.es.js +1 -1
  411. package/dist/components/icon-button.cjs +1 -1
  412. package/dist/components/icon-button.es.js +1 -1
  413. package/dist/components/icon-toggle-button.cjs +1 -1
  414. package/dist/components/icon-toggle-button.es.js +1 -1
  415. package/dist/components/kbd.cjs +1 -1
  416. package/dist/components/kbd.es.js +1 -1
  417. package/dist/components/link.cjs +1 -1
  418. package/dist/components/link.es.js +1 -1
  419. package/dist/components/loading-spinner.cjs +1 -1
  420. package/dist/components/loading-spinner.es.js +1 -1
  421. package/dist/components/multiline-text-input.cjs +1 -1
  422. package/dist/components/multiline-text-input.es.js +1 -1
  423. package/dist/components/nimbus-provider.cjs +1 -1
  424. package/dist/components/nimbus-provider.es.js +1 -1
  425. package/dist/components/number-input.cjs +1 -1
  426. package/dist/components/number-input.es.js +1 -1
  427. package/dist/components/password-input.cjs +1 -1
  428. package/dist/components/password-input.es.js +1 -1
  429. package/dist/components/progress-bar.cjs +1 -1
  430. package/dist/components/progress-bar.es.js +1 -1
  431. package/dist/components/radio-input.cjs +1 -1
  432. package/dist/components/radio-input.es.js +1 -1
  433. package/dist/components/range-calendar.cjs +1 -1
  434. package/dist/components/range-calendar.es.js +1 -1
  435. package/dist/components/select.cjs +1 -1
  436. package/dist/components/select.es.js +1 -1
  437. package/dist/components/split-button.cjs +1 -1
  438. package/dist/components/split-button.es.js +1 -1
  439. package/dist/components/switch.cjs +1 -1
  440. package/dist/components/switch.es.js +1 -1
  441. package/dist/components/tag-group.cjs +1 -1
  442. package/dist/components/tag-group.es.js +1 -1
  443. package/dist/components/text-input.cjs +1 -1
  444. package/dist/components/text-input.es.js +1 -1
  445. package/dist/components/text.cjs +1 -1
  446. package/dist/components/text.es.js +1 -1
  447. package/dist/components/time-input.cjs +1 -1
  448. package/dist/components/time-input.es.js +1 -1
  449. package/dist/components/toggle-button-group.cjs +1 -1
  450. package/dist/components/toggle-button-group.es.js +1 -1
  451. package/dist/components/toggle-button.cjs +1 -1
  452. package/dist/components/toggle-button.es.js +1 -1
  453. package/dist/components/toolbar.cjs +1 -1
  454. package/dist/components/toolbar.es.js +1 -1
  455. package/dist/components/tooltip.cjs +1 -1
  456. package/dist/components/tooltip.es.js +2 -2
  457. package/dist/components/visually-hidden.cjs +1 -1
  458. package/dist/components/visually-hidden.es.js +1 -1
  459. package/dist/index.cjs +1 -1
  460. package/dist/index.es.js +40 -40
  461. package/package.json +9 -10
  462. package/dist/chunks/Button-CcXB_0ry.es.js +0 -80
  463. package/dist/chunks/Button-CcXB_0ry.es.js.map +0 -1
  464. package/dist/chunks/Button-POnkHGAl.cjs.js +0 -2
  465. package/dist/chunks/Button-POnkHGAl.cjs.js.map +0 -1
  466. package/dist/chunks/DateField-1UP91HrH.cjs.js +0 -2
  467. package/dist/chunks/DateField-1UP91HrH.cjs.js.map +0 -1
  468. package/dist/chunks/DateField-B54wG86x.es.js.map +0 -1
  469. package/dist/chunks/DatePicker-BG5u-FaB.es.js +0 -762
  470. package/dist/chunks/DatePicker-BG5u-FaB.es.js.map +0 -1
  471. package/dist/chunks/DatePicker-BKexK-Dx.cjs.js +0 -2
  472. package/dist/chunks/DatePicker-BKexK-Dx.cjs.js.map +0 -1
  473. package/dist/chunks/Dialog-Dz-h29rR.es.js +0 -1890
  474. package/dist/chunks/Dialog-Dz-h29rR.es.js.map +0 -1
  475. package/dist/chunks/Dialog-cOejkHqh.cjs.js +0 -2
  476. package/dist/chunks/Dialog-cOejkHqh.cjs.js.map +0 -1
  477. package/dist/chunks/FocusScope-C0BWU3OK.cjs.js +0 -2
  478. package/dist/chunks/FocusScope-C0BWU3OK.cjs.js.map +0 -1
  479. package/dist/chunks/FocusScope-WG69HxuH.es.js +0 -671
  480. package/dist/chunks/FocusScope-WG69HxuH.es.js.map +0 -1
  481. package/dist/chunks/Heading-CNw7cSHE.es.js.map +0 -1
  482. package/dist/chunks/Heading-HwM6p_yd.cjs.js +0 -2
  483. package/dist/chunks/Heading-HwM6p_yd.cjs.js.map +0 -1
  484. package/dist/chunks/ListBox-D3hU3NYN.cjs.js +0 -2
  485. package/dist/chunks/ListBox-D3hU3NYN.cjs.js.map +0 -1
  486. package/dist/chunks/ListBox-oj3R0YoN.es.js +0 -645
  487. package/dist/chunks/ListBox-oj3R0YoN.es.js.map +0 -1
  488. package/dist/chunks/ProgressBar-B7u7ocRM.cjs.js +0 -2
  489. package/dist/chunks/ProgressBar-B7u7ocRM.cjs.js.map +0 -1
  490. package/dist/chunks/ProgressBar-DSxkuZBK.es.js +0 -39
  491. package/dist/chunks/ProgressBar-DSxkuZBK.es.js.map +0 -1
  492. package/dist/chunks/Separator-BVSCS8fb.cjs.js +0 -18
  493. package/dist/chunks/Separator-BVSCS8fb.cjs.js.map +0 -1
  494. package/dist/chunks/Separator-m-nxIY-Z.es.js.map +0 -1
  495. package/dist/chunks/ToggleButton--Chrvt2-.es.js.map +0 -1
  496. package/dist/chunks/ToggleButton-M-hJvuFu.cjs.js +0 -2
  497. package/dist/chunks/ToggleButton-M-hJvuFu.cjs.js.map +0 -1
  498. package/dist/chunks/combobox-0Wmq1eri.es.js +0 -1919
  499. package/dist/chunks/combobox-0Wmq1eri.es.js.map +0 -1
  500. package/dist/chunks/combobox-B8xjkPGW.cjs.js +0 -2
  501. package/dist/chunks/combobox-B8xjkPGW.cjs.js.map +0 -1
  502. package/dist/chunks/domHelpers-InH3T0qs.es.js +0 -16
  503. package/dist/chunks/domHelpers-InH3T0qs.es.js.map +0 -1
  504. package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js +0 -2
  505. package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js.map +0 -1
  506. package/dist/chunks/filterDOMProps-HzsCnE3d.es.js +0 -25
  507. package/dist/chunks/filterDOMProps-HzsCnE3d.es.js.map +0 -1
  508. package/dist/chunks/filterDOMProps-_f3L9QML.cjs.js +0 -2
  509. package/dist/chunks/filterDOMProps-_f3L9QML.cjs.js.map +0 -1
  510. package/dist/chunks/focusSafely-Bv_RnHNT.cjs.js +0 -2
  511. package/dist/chunks/link-B4E0SLxG.es.js +0 -51
  512. package/dist/chunks/link-B4E0SLxG.es.js.map +0 -1
  513. package/dist/chunks/link-CV620rwL.cjs.js +0 -2
  514. package/dist/chunks/link-CV620rwL.cjs.js.map +0 -1
  515. package/dist/chunks/mergeProps-CqhkQvMb.cjs.js +0 -2
  516. package/dist/chunks/mergeProps-CqhkQvMb.cjs.js.map +0 -1
  517. package/dist/chunks/mergeProps-Cwgnfqio.es.js.map +0 -1
  518. package/dist/chunks/number-5qMXmHyn.es.js +0 -21
  519. package/dist/chunks/number-5qMXmHyn.es.js.map +0 -1
  520. package/dist/chunks/number-CnrRPi4_.cjs.js +0 -2
  521. package/dist/chunks/number-CnrRPi4_.cjs.js.map +0 -1
  522. package/dist/chunks/number-input-CecYepck.cjs.js +0 -2
  523. package/dist/chunks/number-input-CecYepck.cjs.js.map +0 -1
  524. package/dist/chunks/number-input-DhePUBX4.es.js.map +0 -1
  525. package/dist/chunks/openLink-BjodHrGD.cjs.js +0 -2
  526. package/dist/chunks/platform-D-bXaP3n.es.js +0 -45
  527. package/dist/chunks/platform-D-bXaP3n.es.js.map +0 -1
  528. package/dist/chunks/platform-Vom5nEUR.cjs.js +0 -2
  529. package/dist/chunks/platform-Vom5nEUR.cjs.js.map +0 -1
  530. package/dist/chunks/radio-input-CvBi7RAL.es.js +0 -320
  531. package/dist/chunks/radio-input-CvBi7RAL.es.js.map +0 -1
  532. package/dist/chunks/radio-input-jKyEGJsg.cjs.js +0 -2
  533. package/dist/chunks/radio-input-jKyEGJsg.cjs.js.map +0 -1
  534. package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js +0 -2
  535. package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js.map +0 -1
  536. package/dist/chunks/scrollIntoView-C5qp-va8.es.js +0 -64
  537. package/dist/chunks/scrollIntoView-C5qp-va8.es.js.map +0 -1
  538. package/dist/chunks/select-B3WgS573.cjs.js +0 -2
  539. package/dist/chunks/select-B3WgS573.cjs.js.map +0 -1
  540. package/dist/chunks/select-DbtGesVC.es.js +0 -795
  541. package/dist/chunks/select-DbtGesVC.es.js.map +0 -1
  542. package/dist/chunks/tag-group-1AADllBn.es.js.map +0 -1
  543. package/dist/chunks/tag-group-DNhZCkrF.cjs.js +0 -2
  544. package/dist/chunks/tag-group-DNhZCkrF.cjs.js.map +0 -1
  545. package/dist/chunks/toolbar-BOvyhSyS.cjs.js +0 -2
  546. package/dist/chunks/toolbar-BOvyhSyS.cjs.js.map +0 -1
  547. package/dist/chunks/toolbar-Bc6yC_Kq.es.js.map +0 -1
  548. package/dist/chunks/tooltip-ChDnFUve.cjs.js +0 -2
  549. package/dist/chunks/tooltip-ChDnFUve.cjs.js.map +0 -1
  550. package/dist/chunks/tooltip-cAKlYo3d.es.js +0 -273
  551. package/dist/chunks/tooltip-cAKlYo3d.es.js.map +0 -1
  552. package/dist/chunks/useButton-ChUnssRf.cjs.js +0 -2
  553. package/dist/chunks/useButton-ChUnssRf.cjs.js.map +0 -1
  554. package/dist/chunks/useButton-Cpm7uwPO.es.js +0 -48
  555. package/dist/chunks/useButton-Cpm7uwPO.es.js.map +0 -1
  556. package/dist/chunks/useDateFormatter-dQunecsL.cjs.js +0 -2
  557. package/dist/chunks/useDescription-D908ZGGj.es.js +0 -33
  558. package/dist/chunks/useDescription-D908ZGGj.es.js.map +0 -1
  559. package/dist/chunks/useDescription-Dy1e4_gg.cjs.js +0 -2
  560. package/dist/chunks/useDescription-Dy1e4_gg.cjs.js.map +0 -1
  561. package/dist/chunks/useFocusVisible-CfEJEJCf.cjs.js +0 -2
  562. package/dist/chunks/useFocusVisible-CfEJEJCf.cjs.js.map +0 -1
  563. package/dist/chunks/useFocusVisible-Dk8OwOkH.es.js +0 -165
  564. package/dist/chunks/useFocusVisible-Dk8OwOkH.es.js.map +0 -1
  565. package/dist/chunks/useFocusable-Btl_N3EJ.cjs.js +0 -2
  566. package/dist/chunks/useFocusable-Btl_N3EJ.cjs.js.map +0 -1
  567. package/dist/chunks/useFocusable-CxDxGOcK.es.js +0 -101
  568. package/dist/chunks/useFocusable-CxDxGOcK.es.js.map +0 -1
  569. package/dist/chunks/useFormReset-BiO2-w_B.es.js +0 -21
  570. package/dist/chunks/useFormReset-BiO2-w_B.es.js.map +0 -1
  571. package/dist/chunks/useFormReset-DXbasS3m.cjs.js +0 -2
  572. package/dist/chunks/useFormReset-DXbasS3m.cjs.js.map +0 -1
  573. package/dist/chunks/useFormValidation-BHPlWicy.cjs.js +0 -2
  574. package/dist/chunks/useFormValidation-BHPlWicy.cjs.js.map +0 -1
  575. package/dist/chunks/useFormValidation-wEYzOtbK.es.js +0 -200
  576. package/dist/chunks/useFormValidation-wEYzOtbK.es.js.map +0 -1
  577. package/dist/chunks/usePress-DrP775Ks.cjs.js +0 -8
  578. package/dist/chunks/usePress-DrP775Ks.cjs.js.map +0 -1
  579. package/dist/chunks/usePress-K9GdFtHv.es.js +0 -471
  580. package/dist/chunks/usePress-K9GdFtHv.es.js.map +0 -1
  581. package/dist/chunks/useSpinButton-BowNa_-v.cjs.js +0 -2
  582. package/dist/chunks/useSpinButton-BowNa_-v.cjs.js.map +0 -1
  583. package/dist/chunks/useSpinButton-DcOZDNgb.es.js.map +0 -1
  584. package/dist/chunks/useSyncRef-D9Qzt8nv.cjs.js +0 -2
  585. package/dist/chunks/useSyncRef-D9Qzt8nv.cjs.js.map +0 -1
  586. package/dist/chunks/useSyncRef-Gu0I2GXX.es.js +0 -47
  587. package/dist/chunks/useSyncRef-Gu0I2GXX.es.js.map +0 -1
  588. package/dist/chunks/useTextField-Birct0ti.cjs.js +0 -2
  589. package/dist/chunks/useTextField-Birct0ti.cjs.js.map +0 -1
  590. package/dist/chunks/useTextField-CF9hrjRg.es.js +0 -88
  591. package/dist/chunks/useTextField-CF9hrjRg.es.js.map +0 -1
  592. package/dist/chunks/useToggle-B5oGO_Tl.cjs.js +0 -2
  593. package/dist/chunks/useToggle-B5oGO_Tl.cjs.js.map +0 -1
  594. package/dist/chunks/useToggle-DL960lkn.es.js +0 -50
  595. package/dist/chunks/useToggle-DL960lkn.es.js.map +0 -1
  596. package/dist/chunks/useToggleState-bO90kfqG.cjs.js +0 -2
  597. package/dist/chunks/useToggleState-bO90kfqG.cjs.js.map +0 -1
  598. package/dist/chunks/useToggleState-mKFEFD2Q.es.js +0 -19
  599. package/dist/chunks/useToggleState-mKFEFD2Q.es.js.map +0 -1
  600. package/dist/chunks/utils-C732zipO.es.js +0 -238
  601. package/dist/chunks/utils-C732zipO.es.js.map +0 -1
  602. package/dist/chunks/utils-Ci_mT5Zh.cjs.js +0 -2
  603. package/dist/chunks/utils-Ci_mT5Zh.cjs.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-input-Dm2vi4Tr.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+radio@3.12.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/radio/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/radio/dist/useRadio.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/radio/dist/useRadioGroup.mjs","../../../../node_modules/.pnpm/@react-stately+radio@3.11.0_react@19.1.0/node_modules/@react-stately/radio/dist/useRadioGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.11.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/RadioGroup.mjs","../../src/components/radio-input/radio-input.slots.tsx","../../src/components/radio-input/components/radio-input.root.tsx","../../src/components/radio-input/components/radio-input.option.tsx","../../src/components/radio-input/radio-input.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $884aeceb3d67f00f$export$37b65e5b5444d35c = new WeakMap();\n\n\nexport {$884aeceb3d67f00f$export$37b65e5b5444d35c as radioGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {mergeProps as $5jJ3f$mergeProps, filterDOMProps as $5jJ3f$filterDOMProps, useFormReset as $5jJ3f$useFormReset} from \"@react-aria/utils\";\nimport {usePress as $5jJ3f$usePress, useFocusable as $5jJ3f$useFocusable} from \"@react-aria/interactions\";\nimport {useFormValidation as $5jJ3f$useFormValidation} from \"@react-aria/form\";\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\n\nfunction $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {\n let { value: value, children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressChange: onPressChange, onPress: onPress, onPressUp: onPressUp, onClick: onClick } = props;\n const isDisabled = props.isDisabled || state.isDisabled;\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n let checked = state.selectedValue === value;\n let onChange = (e)=>{\n e.stopPropagation();\n state.setSelectedValue(value);\n };\n // Handle press state for keyboard interactions and cases where labelProps is not used.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled\n });\n // Handle press state on the label.\n let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n onPress (e) {\n var _ref_current;\n onPress === null || onPress === void 0 ? void 0 : onPress(e);\n state.setSelectedValue(value);\n (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();\n }\n });\n let { focusableProps: focusableProps } = (0, $5jJ3f$useFocusable)((0, $5jJ3f$mergeProps)(props, {\n onFocus: ()=>state.setLastFocusedValue(value)\n }), ref);\n let interactions = (0, $5jJ3f$mergeProps)(pressProps, focusableProps);\n let domProps = (0, $5jJ3f$filterDOMProps)(props, {\n labelable: true\n });\n let tabIndex = -1;\n if (state.selectedValue != null) {\n if (state.selectedValue === value) tabIndex = 0;\n } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;\n if (isDisabled) tabIndex = undefined;\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).get(state);\n (0, $5jJ3f$useFormReset)(ref, state.defaultSelectedValue, state.setSelectedValue);\n (0, $5jJ3f$useFormValidation)({\n validationBehavior: validationBehavior\n }, state, ref);\n return {\n labelProps: (0, $5jJ3f$mergeProps)(labelProps, {\n onClick: (e)=>e.preventDefault()\n }),\n inputProps: (0, $5jJ3f$mergeProps)(domProps, {\n ...interactions,\n type: 'radio',\n name: name,\n form: form,\n tabIndex: tabIndex,\n disabled: isDisabled,\n required: state.isRequired && validationBehavior === 'native',\n checked: checked,\n value: value,\n onChange: onChange,\n 'aria-describedby': [\n props['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }),\n isDisabled: isDisabled,\n isSelected: checked,\n isPressed: isPressed || isLabelPressed\n };\n}\n\n\nexport {$0d5c49892c1215da$export$37b0961d2f4751e2 as useRadio};\n//# sourceMappingURL=useRadio.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {filterDOMProps as $czmJy$filterDOMProps, getOwnerWindow as $czmJy$getOwnerWindow, useId as $czmJy$useId, mergeProps as $czmJy$mergeProps} from \"@react-aria/utils\";\nimport {getFocusableTreeWalker as $czmJy$getFocusableTreeWalker} from \"@react-aria/focus\";\nimport {useField as $czmJy$useField} from \"@react-aria/label\";\nimport {useFocusWithin as $czmJy$useFocusWithin} from \"@react-aria/interactions\";\nimport {useLocale as $czmJy$useLocale} from \"@react-aria/i18n\";\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\n\n\n\nfunction $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {\n let { name: name, form: form, isReadOnly: isReadOnly, isRequired: isRequired, isDisabled: isDisabled, orientation: orientation = 'vertical', validationBehavior: validationBehavior = 'aria' } = props;\n let { direction: direction } = (0, $czmJy$useLocale)();\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $czmJy$useField)({\n ...props,\n // Radio group is not an HTML input element so it\n // shouldn't be labeled by a <label> element.\n labelElementType: 'span',\n isInvalid: state.isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n let domProps = (0, $czmJy$filterDOMProps)(props, {\n labelable: true\n });\n // When the radio group loses focus, reset the focusable radio to null if\n // there is no selection. This allows tabbing into the group from either\n // direction to go to the first or last radio.\n let { focusWithinProps: focusWithinProps } = (0, $czmJy$useFocusWithin)({\n onBlurWithin (e) {\n var _props_onBlur;\n (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);\n if (!state.selectedValue) state.setLastFocusedValue(null);\n },\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n let onKeyDown = (e)=>{\n let nextDir;\n switch(e.key){\n case 'ArrowRight':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'prev';\n else nextDir = 'next';\n break;\n case 'ArrowLeft':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'next';\n else nextDir = 'prev';\n break;\n case 'ArrowDown':\n nextDir = 'next';\n break;\n case 'ArrowUp':\n nextDir = 'prev';\n break;\n default:\n return;\n }\n e.preventDefault();\n let walker = (0, $czmJy$getFocusableTreeWalker)(e.currentTarget, {\n from: e.target,\n accept: (node)=>node instanceof (0, $czmJy$getOwnerWindow)(node).HTMLInputElement && node.type === 'radio'\n });\n let nextElem;\n if (nextDir === 'next') {\n nextElem = walker.nextNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.firstChild();\n }\n } else {\n nextElem = walker.previousNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.lastChild();\n }\n }\n if (nextElem) {\n // Call focus on nextElem so that keyboard navigation scrolls the radio into view\n nextElem.focus();\n state.setSelectedValue(nextElem.value);\n }\n };\n let groupName = (0, $czmJy$useId)(name);\n (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).set(state, {\n name: groupName,\n form: form,\n descriptionId: descriptionProps.id,\n errorMessageId: errorMessageProps.id,\n validationBehavior: validationBehavior\n });\n return {\n radioGroupProps: (0, $czmJy$mergeProps)(domProps, {\n // https://www.w3.org/TR/wai-aria-1.2/#radiogroup\n role: 'radiogroup',\n onKeyDown: onKeyDown,\n 'aria-invalid': state.isInvalid || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-readonly': isReadOnly || undefined,\n 'aria-required': isRequired || undefined,\n 'aria-disabled': isDisabled || undefined,\n 'aria-orientation': orientation,\n ...fieldProps,\n ...focusWithinProps\n }),\n labelProps: labelProps,\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$430f30ed08ec25fa$export$62b9571f283ff5c2 as useRadioGroup};\n//# sourceMappingURL=useRadioGroup.module.js.map\n","import {useFormValidationState as $l55kx$useFormValidationState} from \"@react-stately/form\";\nimport {useControlledState as $l55kx$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $l55kx$useMemo, useState as $l55kx$useState} from \"react\";\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\nlet $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 10000000000);\nlet $a54cdc5c1942b639$var$i = 0;\nfunction $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {\n // Preserved here for backward compatibility. React Aria now generates the name instead of stately.\n let name = (0, $l55kx$useMemo)(()=>props.name || `radio-group-${$a54cdc5c1942b639$var$instance}-${++$a54cdc5c1942b639$var$i}`, [\n props.name\n ]);\n var _props_defaultValue;\n let [selectedValue, setSelected] = (0, $l55kx$useControlledState)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);\n let [initialValue] = (0, $l55kx$useState)(selectedValue);\n let [lastFocusedValue, setLastFocusedValue] = (0, $l55kx$useState)(null);\n let validation = (0, $l55kx$useFormValidationState)({\n ...props,\n value: selectedValue\n });\n let setSelectedValue = (value)=>{\n if (!props.isReadOnly && !props.isDisabled) {\n setSelected(value);\n validation.commitValidation();\n }\n };\n let isInvalid = validation.displayValidation.isInvalid;\n var _props_defaultValue1;\n return {\n ...validation,\n name: name,\n selectedValue: selectedValue,\n defaultSelectedValue: props.value !== undefined ? initialValue : (_props_defaultValue1 = props.defaultValue) !== null && _props_defaultValue1 !== void 0 ? _props_defaultValue1 : null,\n setSelectedValue: setSelectedValue,\n lastFocusedValue: lastFocusedValue,\n setLastFocusedValue: setLastFocusedValue,\n isDisabled: props.isDisabled || false,\n isReadOnly: props.isReadOnly || false,\n isRequired: props.isRequired || false,\n validationState: props.validationState || (isInvalid ? 'invalid' : null),\n isInvalid: isInvalid\n };\n}\n\n\nexport {$a54cdc5c1942b639$export$bca9d026f8e704eb as useRadioGroupState};\n//# sourceMappingURL=useRadioGroupState.module.js.map\n","import {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useRadioGroup as $3sixo$useRadioGroup, useRadio as $3sixo$useRadio, useFocusRing as $3sixo$useFocusRing, useHover as $3sixo$useHover, VisuallyHidden as $3sixo$VisuallyHidden} from \"react-aria\";\nimport {filterDOMProps as $3sixo$filterDOMProps, mergeProps as $3sixo$mergeProps, useObjectRef as $3sixo$useObjectRef, mergeRefs as $3sixo$mergeRefs} from \"@react-aria/utils\";\nimport {useRadioGroupState as $3sixo$useRadioGroupState} from \"react-stately\";\nimport $3sixo$react, {createContext as $3sixo$createContext, forwardRef as $3sixo$forwardRef, useMemo as $3sixo$useMemo} from \"react\";\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\n\n\n\nconst $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$b118023277d4a5c3 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$29d84393af70866c = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function RadioGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let state = (0, $3sixo$useRadioGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { radioGroupProps: radioGroupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $3sixo$useRadioGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'vertical',\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: state.isRequired,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-RadioGroup'\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"div\", {\n ...(0, $3sixo$mergeProps)(DOMProps, renderProps, radioGroupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'vertical',\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": state.isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $b6c3ddc6086f204d$export$29d84393af70866c,\n state\n ],\n [\n (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, renderProps.children));\n});\nconst $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function Radio(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);\n let state = (0, $3sixo$react).useContext($b6c3ddc6086f204d$export$29d84393af70866c);\n let inputRef = (0, $3sixo$useObjectRef)((0, $3sixo$useMemo)(()=>(0, $3sixo$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isPressed: isPressed } = (0, $3sixo$useRadio)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, state, inputRef);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $3sixo$useFocusRing)();\n let interactionDisabled = isDisabled || state.isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $3sixo$useHover)({\n ...props,\n isDisabled: interactionDisabled\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Radio',\n values: {\n isSelected: isSelected,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: state.isReadOnly,\n isInvalid: state.isInvalid,\n isRequired: state.isRequired\n }\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"label\", {\n ...(0, $3sixo$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n \"data-selected\": isSelected || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $3sixo$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $3sixo$react).createElement(\"input\", {\n ...(0, $3sixo$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$b6c3ddc6086f204d$export$a79eda4ff50e30b6 as RadioGroupContext, $b6c3ddc6086f204d$export$b118023277d4a5c3 as RadioContext, $b6c3ddc6086f204d$export$29d84393af70866c as RadioGroupStateContext, $b6c3ddc6086f204d$export$a98f0dcb43a68a25 as RadioGroup, $b6c3ddc6086f204d$export$d7b12c4107be0d61 as Radio};\n//# sourceMappingURL=RadioGroup.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport { createSlotRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport type {\n RadioInputOptionSlotProps,\n RadioInputRootSlotProps,\n} from \"./radio-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"radioInput\",\n});\n\nexport const RadioInputRootSlot = withProvider<\n HTMLDivElement,\n RadioInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const RadioInputOptionSlot = withContext<\n HTMLSpanElement,\n RadioInputOptionSlotProps\n>(\"span\", \"option\");\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { radioInputSlotRecipe } from \"../radio-input.recipe\";\nimport { RadioGroup as RaRadioGroup } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { RadioInputRootProps } from \"../radio-input.types\";\nimport { RadioInputRootSlot } from \"../radio-input.slots\";\n\n/**\n * # RadioInput\n *\n * A set of closely related, mutually exclusive or complementary actions that are important enough to be displayed directly in the interface for quick access.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/radio-input}\n */\nexport const RadioInputRoot = (props: RadioInputRootProps) => {\n const recipe = useSlotRecipe({ recipe: radioInputSlotRecipe });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n const [styleProps, restProps] = extractStyleProps(restRecipeProps);\n\n return (\n <RadioInputRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRadioGroup {...restProps}>{props.children}</RaRadioGroup>\n </RadioInputRootSlot>\n );\n};\n\nRadioInputRoot.displayName = \"RadioInputRoot\";\n","import { Radio as RaRadio } from \"react-aria-components\";\nimport {\n RadioButtonChecked,\n RadioButtonUnchecked,\n} from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { RadioInputOptionProps } from \"../radio-input.types\";\nimport { RadioInputOptionSlot } from \"../radio-input.slots\";\nimport { useFocusRing } from \"react-aria\";\n\nexport const RadioInputOption = ({\n children,\n value,\n ...rest\n}: RadioInputOptionProps) => {\n const [styleProps, restProps] = extractStyleProps(rest);\n const { isFocused, focusProps } = useFocusRing();\n\n return (\n <RadioInputOptionSlot\n {...styleProps}\n {...focusProps}\n data-focus={isFocused || undefined}\n asChild\n >\n <RaRadio value={value} {...restProps}>\n {(renderProps) => {\n const content =\n typeof children === \"function\"\n ? children({\n ...renderProps,\n })\n : children;\n return (\n <>\n {renderProps.isSelected ? (\n <RadioButtonChecked />\n ) : (\n <RadioButtonUnchecked />\n )}\n {content}\n </>\n );\n }}\n </RaRadio>\n </RadioInputOptionSlot>\n );\n};\n\nRadioInputOption.displayName = \"RadioInputOption\";\n","import { RadioInputRoot as _RadioInputRoot } from \"./components/radio-input.root\";\nimport { RadioInputOption as _RadioInputOption } from \"./components/radio-input.option\";\n\nexport const RadioInput = {\n Root: _RadioInputRoot,\n Option: _RadioInputOption,\n};\n\nexport { _RadioInputRoot, _RadioInputOption };\n"],"names":["$884aeceb3d67f00f$export$37b65e5b5444d35c","$0d5c49892c1215da$export$37b0961d2f4751e2","props","state","ref","value","children","ariaLabel","ariaLabelledby","onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick","isDisabled","hasChildren","hasAriaLabel","checked","onChange","e","pressProps","isPressed","$5jJ3f$usePress","labelProps","isLabelPressed","_ref_current","focusableProps","$5jJ3f$useFocusable","$5jJ3f$mergeProps","interactions","domProps","$5jJ3f$filterDOMProps","tabIndex","name","form","descriptionId","errorMessageId","validationBehavior","$5jJ3f$useFormReset","$5jJ3f$useFormValidation","$430f30ed08ec25fa$export$62b9571f283ff5c2","isReadOnly","isRequired","orientation","direction","$czmJy$useLocale","isInvalid","validationErrors","validationDetails","fieldProps","descriptionProps","errorMessageProps","$czmJy$useField","$czmJy$filterDOMProps","focusWithinProps","$czmJy$useFocusWithin","_props_onBlur","onKeyDown","nextDir","walker","$czmJy$getFocusableTreeWalker","node","$czmJy$getOwnerWindow","nextElem","groupName","$czmJy$useId","$czmJy$mergeProps","$a54cdc5c1942b639$var$instance","$a54cdc5c1942b639$var$i","$a54cdc5c1942b639$export$bca9d026f8e704eb","$l55kx$useMemo","_props_defaultValue","selectedValue","setSelected","$l55kx$useControlledState","initialValue","$l55kx$useState","lastFocusedValue","setLastFocusedValue","validation","$l55kx$useFormValidationState","setSelectedValue","_props_defaultValue1","$b6c3ddc6086f204d$export$a79eda4ff50e30b6","$3sixo$createContext","$b6c3ddc6086f204d$export$b118023277d4a5c3","$b6c3ddc6086f204d$export$29d84393af70866c","$b6c3ddc6086f204d$export$a98f0dcb43a68a25","$3sixo$forwardRef","$64fa3d84918910a7$export$29f1550f4b0d4415","formValidationBehavior","$64fa3d84918910a7$export$fabf2dc03a41866e","$d3e0e05bdfcf66bd$export$c24727297075ec6a","_props_validationBehavior","_ref","$3sixo$useRadioGroupState","labelRef","label","$64fa3d84918910a7$export$9d4c57ee4c6ffdd8","radioGroupProps","$3sixo$useRadioGroup","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$3sixo$filterDOMProps","$3sixo$react","$3sixo$mergeProps","$64fa3d84918910a7$export$2881499e37b75b9a","$01b77f81d0f07f68$export$75b6ee27786ba447","$514c0188e459b4c0$export$9afb8bc826b033ea","$ee014567cb39d3f0$export$ff05c3ac10437e03","$b6c3ddc6086f204d$export$d7b12c4107be0d61","userProvidedInputRef","otherProps","inputRef","$3sixo$useObjectRef","$3sixo$useMemo","$3sixo$mergeRefs","inputProps","isSelected","$3sixo$useRadio","$64fa3d84918910a7$export$ef03459518577ad4","isFocused","isFocusVisible","focusProps","$3sixo$useFocusRing","interactionDisabled","hoverProps","isHovered","$3sixo$useHover","$3sixo$VisuallyHidden","withProvider","withContext","createSlotRecipeContext","RadioInputRootSlot","RadioInputOptionSlot","RadioInputRoot","recipe","useSlotRecipe","radioInputSlotRecipe","recipeProps","restRecipeProps","styleProps","restProps","extractStyleProps","jsx","RaRadioGroup","RadioInputOption","rest","useFocusRing","RaRadio","content","jsxs","Fragment","RadioButtonChecked","RadioButtonUnchecked","RadioInput","_RadioInputRoot","_RadioInputOption"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAUI,MAAMA,IAA4C,oBAAI,QAAO;ACSjE,SAASC,GAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,OAAOC,GAAO,UAAUC,GAAU,cAAcC,GAAW,mBAAmBC,GAAgB,cAAcC,GAAc,YAAYC,GAAY,eAAeC,GAAe,SAASC,GAAS,WAAWC,GAA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ACE,gBAAAI,EAACX,IAAA,EAAoB,GAAGM,GAAc,GAAGE,GAAY,SAAO,IAC1D,UAAA,gBAAAG,EAACC,IAAA,EAAc,GAAGH,GAAY,UAAA9I,EAAM,UAAS,GAC/C;AAEJ;AAEAuI,EAAe,cAAc;AChBtB,MAAMW,IAAmB,CAAC;AAAA,EAC/B,UAAA9I;AAAA,EACA,OAAAD;AAAA,EACA,GAAGgJ;AACL,MAA6B;AAC3B,QAAM,CAACN,GAAYC,CAAS,IAAIC,EAAkBI,CAAI,GAChD,EAAE,WAAA1B,GAAW,YAAAE,EAAA,IAAeyB,EAAA;AAElC,SACE,gBAAAJ;AAAA,IAACV;AAAA,IAAA;AAAA,MACE,GAAGO;AAAA,MACH,GAAGlB;AAAA,MACJ,cAAYF,KAAa;AAAA,MACzB,SAAO;AAAA,MAEP,4BAAC4B,IAAA,EAAQ,OAAAlJ,GAAe,GAAG2I,GACxB,WAAC1C,MAAgB;AAChB,cAAMkD,IACJ,OAAOlJ,KAAa,aAChBA,EAAS;AAAA,UACP,GAAGgG;AAAA,QAAA,CACJ,IACDhG;AACN,eACE,gBAAAmJ,EAAAC,GAAA,EACG,UAAA;AAAA,UAAApD,EAAY,aACX,gBAAA4C,EAACS,IAAA,CAAA,CAAmB,sBAEnBC,IAAA,EAAqB;AAAA,UAEvBJ;AAAA,QAAA,GACH;AAAA,MAEJ,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAJ,EAAiB,cAAc;AC9CxB,MAAMS,KAAa;AAAA,EACxB,MAAMC;AAAAA,EACN,QAAQC;AACV;","x_google_ignoreList":[0,1,2,3,4]}
@@ -0,0 +1,2 @@
1
+ "use strict";const I=require("react/jsx-runtime"),J=require("./index-XyB4gGC8.cjs.js"),h=require("./utils-BHdR5Nww.cjs.js"),w=require("./Form-amb1SjpT.cjs.js"),Q=require("./Label-BgrYyYXn.cjs.js"),X=require("./Text-BWSfeB9p.cjs.js"),m=require("./mergeProps-BA5Cwf5w.cjs.js"),F=require("./filterDOMProps-WUskt27c.cjs.js"),Y=require("./useObjectRef-dXOJdONs.cjs.js"),n=require("react"),Z=require("./useFormReset--wPlnEOl.cjs.js"),_=require("./usePress-EAB51g0R.cjs.js"),ee=require("./useFocusable-lxn-toA4.cjs.js"),N=require("./useFormValidation-Cuj--965.cjs.js"),ae=require("./utils-JGx-H9sJ.cjs.js"),ie=require("./FocusScope-GecpDnRx.cjs.js"),de=require("./useFocusWithin-Bf2suIR7.cjs.js"),te=require("./useField-DmqO9k7a.cjs.js"),re=require("./context-D0_cRaDZ.cjs.js"),j=require("./useFocusRing-ixPPR18r.cjs.js"),oe=require("./useHover-CS1E3DZy.cjs.js"),le=require("./VisuallyHidden-Cry3ILzH.cjs.js"),ne=require("./useControlledState-D0L6S_5r.cjs.js"),T=require("./extractStyleProps-wjyId_vK.cjs.js"),W=require("./create-slot-recipe-context-CHGQvGou.cjs.js"),L=require("@commercetools/nimbus-icons"),H=new WeakMap;function se(a,e,d){let{value:t,children:o,"aria-label":r,"aria-labelledby":u,onPressStart:i,onPressEnd:s,onPressChange:$,onPress:l,onPressUp:c,onClick:p}=a;const b=a.isDisabled||e.isDisabled;let V=o!=null,x=r!=null||u!=null;!V&&!x&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let R=e.selectedValue===t,S=C=>{C.stopPropagation(),e.setSelectedValue(t)},{pressProps:D,isPressed:g}=_.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:s,onPressChange:$,onPress:l,onPressUp:c,onClick:p,isDisabled:b}),{pressProps:O,isPressed:P}=_.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:s,onPressChange:$,onPressUp:c,onClick:p,isDisabled:b,onPress(C){var M;l?.(C),e.setSelectedValue(t),(M=d.current)===null||M===void 0||M.focus()}}),{focusableProps:f}=ee.$f645667febf57a63$export$4c014de7c8940b4c(m.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{onFocus:()=>e.setLastFocusedValue(t)}),d),y=m.$3ef42575df84b30b$export$9d1611c77c2fe928(D,f),v=F.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),q=-1;e.selectedValue!=null?e.selectedValue===t&&(q=0):(e.lastFocusedValue===t||e.lastFocusedValue==null)&&(q=0),b&&(q=void 0);let{name:A,form:G,descriptionId:K,errorMessageId:z,validationBehavior:E}=H.get(e);return Z.$99facab73266f662$export$5add1d006293d136(d,e.defaultSelectedValue,e.setSelectedValue),N.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:E},e,d),{labelProps:m.$3ef42575df84b30b$export$9d1611c77c2fe928(O,{onClick:C=>C.preventDefault()}),inputProps:m.$3ef42575df84b30b$export$9d1611c77c2fe928(v,{...y,type:"radio",name:A,form:G,tabIndex:q,disabled:b,required:e.isRequired&&E==="native",checked:R,value:t,onChange:S,"aria-describedby":[a["aria-describedby"],e.isInvalid?z:null,K].filter(Boolean).join(" ")||void 0}),isDisabled:b,isSelected:R,isPressed:g||P}}function ce(a,e){let{name:d,form:t,isReadOnly:o,isRequired:r,isDisabled:u,orientation:i="vertical",validationBehavior:s="aria"}=a,{direction:$}=re.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{isInvalid:l,validationErrors:c,validationDetails:p}=e.displayValidation,{labelProps:b,fieldProps:V,descriptionProps:x,errorMessageProps:R}=te.$2baaea4c71418dea$export$294aa081a6c6f55d({...a,labelElementType:"span",isInvalid:e.isInvalid,errorMessage:a.errorMessage||c}),S=F.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{focusWithinProps:D}=de.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin(P){var f;(f=a.onBlur)===null||f===void 0||f.call(a,P),e.selectedValue||e.setLastFocusedValue(null)},onFocusWithin:a.onFocus,onFocusWithinChange:a.onFocusChange}),g=P=>{let f;switch(P.key){case"ArrowRight":$==="rtl"&&i!=="vertical"?f="prev":f="next";break;case"ArrowLeft":$==="rtl"&&i!=="vertical"?f="next":f="prev";break;case"ArrowDown":f="next";break;case"ArrowUp":f="prev";break;default:return}P.preventDefault();let y=ie.$9bf71ea28793e738$export$2d6ec8fc375ceafa(P.currentTarget,{from:P.target,accept:q=>q instanceof ae.$431fbd86ca7dc216$export$f21a1ffae260145a(q).HTMLInputElement&&q.type==="radio"}),v;f==="next"?(v=y.nextNode(),v||(y.currentNode=P.currentTarget,v=y.firstChild())):(v=y.previousNode(),v||(y.currentNode=P.currentTarget,v=y.lastChild())),v&&(v.focus(),e.setSelectedValue(v.value))},O=m.$bdb11010cef70236$export$f680877a34711e37(d);return H.set(e,{name:O,form:t,descriptionId:x.id,errorMessageId:R.id,validationBehavior:s}),{radioGroupProps:m.$3ef42575df84b30b$export$9d1611c77c2fe928(S,{role:"radiogroup",onKeyDown:g,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":a["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":r||void 0,"aria-disabled":u||void 0,"aria-orientation":i,...V,...D}),labelProps:b,descriptionProps:x,errorMessageProps:R,isInvalid:l,validationErrors:c,validationDetails:p}}let ue=Math.round(Math.random()*1e10),fe=0;function $e(a){let e=n.useMemo(()=>a.name||`radio-group-${ue}-${++fe}`,[a.name]);var d;let[t,o]=ne.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.value,(d=a.defaultValue)!==null&&d!==void 0?d:null,a.onChange),[r]=n.useState(t),[u,i]=n.useState(null),s=N.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...a,value:t}),$=p=>{!a.isReadOnly&&!a.isDisabled&&(o(p),s.commitValidation())},l=s.displayValidation.isInvalid;var c;return{...s,name:e,selectedValue:t,defaultSelectedValue:a.value!==void 0?r:(c=a.defaultValue)!==null&&c!==void 0?c:null,setSelectedValue:$,lastFocusedValue:u,setLastFocusedValue:i,isDisabled:a.isDisabled||!1,isReadOnly:a.isReadOnly||!1,isRequired:a.isRequired||!1,validationState:a.validationState||(l?"invalid":null),isInvalid:l}}const be=n.createContext(null),pe=n.createContext(null),U=n.createContext(null),ve=n.forwardRef(function(e,d){[e,d]=h.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,be);let{validationBehavior:t}=h.$64fa3d84918910a7$export$fabf2dc03a41866e(w.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var o,r;let u=(r=(o=e.validationBehavior)!==null&&o!==void 0?o:t)!==null&&r!==void 0?r:"native",i=$e({...e,validationBehavior:u}),[s,$]=h.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:l,labelProps:c,descriptionProps:p,errorMessageProps:b,...V}=ce({...e,label:$,validationBehavior:u},i),x=h.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"vertical",isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:"react-aria-RadioGroup"}),R=F.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return n.createElement("div",{...m.$3ef42575df84b30b$export$9d1611c77c2fe928(R,x,l),ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},n.createElement(h.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[U,i],[Q.$01b77f81d0f07f68$export$75b6ee27786ba447,{...c,ref:s,elementType:"span"}],[X.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:p,errorMessage:b}}],[w.$ee014567cb39d3f0$export$ff05c3ac10437e03,V]]},x.children))}),Pe=n.forwardRef(function(e,d){let{inputRef:t=null,...o}=e;[e,d]=h.$64fa3d84918910a7$export$29f1550f4b0d4415(o,d,pe);let r=n.useContext(U),u=Y.$df56164dff5785e2$export$4338b53315abf666(n.useMemo(()=>h.$5dc95899b306f630$export$c9058316764c140e(t,e.inputRef!==void 0?e.inputRef:null),[t,e.inputRef])),{labelProps:i,inputProps:s,isSelected:$,isDisabled:l,isPressed:c}=se({...h.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children},r,u),{isFocused:p,isFocusVisible:b,focusProps:V}=j.$f7dceffc5ad7768b$export$4e328f61c538687f(),x=l||r.isReadOnly,{hoverProps:R,isHovered:S}=oe.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:x}),D=h.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Radio",values:{isSelected:$,isPressed:c,isHovered:S,isFocused:p,isFocusVisible:b,isDisabled:l,isReadOnly:r.isReadOnly,isInvalid:r.isInvalid,isRequired:r.isRequired}}),g=F.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete g.id,delete g.onClick,n.createElement("label",{...m.$3ef42575df84b30b$export$9d1611c77c2fe928(g,i,R,D),ref:d,"data-selected":$||void 0,"data-pressed":c||void 0,"data-hovered":S||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0,"data-disabled":l||void 0,"data-readonly":r.isReadOnly||void 0,"data-invalid":r.isInvalid||void 0,"data-required":r.isRequired||void 0},n.createElement(le.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},n.createElement("input",{...m.$3ef42575df84b30b$export$9d1611c77c2fe928(s,V),ref:u})),D.children)}),{withProvider:xe,withContext:Re}=W.createSlotRecipeContext({key:"radioInput"}),he=xe("div","root"),me=Re("span","option"),B=a=>{const e=W.useSlotRecipe({recipe:J.radioInputSlotRecipe}),[d,t]=e.splitVariantProps(a),[o,r]=T.extractStyleProps(t);return I.jsx(he,{...d,...o,asChild:!0,children:I.jsx(ve,{...r,children:a.children})})};B.displayName="RadioInputRoot";const k=({children:a,value:e,...d})=>{const[t,o]=T.extractStyleProps(d),{isFocused:r,focusProps:u}=j.$f7dceffc5ad7768b$export$4e328f61c538687f();return I.jsx(me,{...t,...u,"data-focus":r||void 0,asChild:!0,children:I.jsx(Pe,{value:e,...o,children:i=>{const s=typeof a=="function"?a({...i}):a;return I.jsxs(I.Fragment,{children:[i.isSelected?I.jsx(L.RadioButtonChecked,{}):I.jsx(L.RadioButtonUnchecked,{}),s]})}})})};k.displayName="RadioInputOption";const ye={Root:B,Option:k};exports.RadioInput=ye;exports.RadioInputOption=k;exports.RadioInputRoot=B;
2
+ //# sourceMappingURL=radio-input-ks3uMIHH.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-input-ks3uMIHH.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+radio@3.12.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/radio/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/radio/dist/useRadio.mjs","../../../../node_modules/.pnpm/@react-aria+radio@3.12.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/radio/dist/useRadioGroup.mjs","../../../../node_modules/.pnpm/@react-stately+radio@3.11.0_react@19.1.0/node_modules/@react-stately/radio/dist/useRadioGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.11.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/RadioGroup.mjs","../../src/components/radio-input/radio-input.slots.tsx","../../src/components/radio-input/components/radio-input.root.tsx","../../src/components/radio-input/components/radio-input.option.tsx","../../src/components/radio-input/radio-input.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $884aeceb3d67f00f$export$37b65e5b5444d35c = new WeakMap();\n\n\nexport {$884aeceb3d67f00f$export$37b65e5b5444d35c as radioGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {mergeProps as $5jJ3f$mergeProps, filterDOMProps as $5jJ3f$filterDOMProps, useFormReset as $5jJ3f$useFormReset} from \"@react-aria/utils\";\nimport {usePress as $5jJ3f$usePress, useFocusable as $5jJ3f$useFocusable} from \"@react-aria/interactions\";\nimport {useFormValidation as $5jJ3f$useFormValidation} from \"@react-aria/form\";\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\n\nfunction $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {\n let { value: value, children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressChange: onPressChange, onPress: onPress, onPressUp: onPressUp, onClick: onClick } = props;\n const isDisabled = props.isDisabled || state.isDisabled;\n let hasChildren = children != null;\n let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;\n if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== 'production') console.warn('If you do not provide children, you must specify an aria-label for accessibility');\n let checked = state.selectedValue === value;\n let onChange = (e)=>{\n e.stopPropagation();\n state.setSelectedValue(value);\n };\n // Handle press state for keyboard interactions and cases where labelProps is not used.\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled\n });\n // Handle press state on the label.\n let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $5jJ3f$usePress)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n onPress (e) {\n var _ref_current;\n onPress === null || onPress === void 0 ? void 0 : onPress(e);\n state.setSelectedValue(value);\n (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();\n }\n });\n let { focusableProps: focusableProps } = (0, $5jJ3f$useFocusable)((0, $5jJ3f$mergeProps)(props, {\n onFocus: ()=>state.setLastFocusedValue(value)\n }), ref);\n let interactions = (0, $5jJ3f$mergeProps)(pressProps, focusableProps);\n let domProps = (0, $5jJ3f$filterDOMProps)(props, {\n labelable: true\n });\n let tabIndex = -1;\n if (state.selectedValue != null) {\n if (state.selectedValue === value) tabIndex = 0;\n } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;\n if (isDisabled) tabIndex = undefined;\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).get(state);\n (0, $5jJ3f$useFormReset)(ref, state.defaultSelectedValue, state.setSelectedValue);\n (0, $5jJ3f$useFormValidation)({\n validationBehavior: validationBehavior\n }, state, ref);\n return {\n labelProps: (0, $5jJ3f$mergeProps)(labelProps, {\n onClick: (e)=>e.preventDefault()\n }),\n inputProps: (0, $5jJ3f$mergeProps)(domProps, {\n ...interactions,\n type: 'radio',\n name: name,\n form: form,\n tabIndex: tabIndex,\n disabled: isDisabled,\n required: state.isRequired && validationBehavior === 'native',\n checked: checked,\n value: value,\n onChange: onChange,\n 'aria-describedby': [\n props['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }),\n isDisabled: isDisabled,\n isSelected: checked,\n isPressed: isPressed || isLabelPressed\n };\n}\n\n\nexport {$0d5c49892c1215da$export$37b0961d2f4751e2 as useRadio};\n//# sourceMappingURL=useRadio.module.js.map\n","import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from \"./utils.mjs\";\nimport {filterDOMProps as $czmJy$filterDOMProps, getOwnerWindow as $czmJy$getOwnerWindow, useId as $czmJy$useId, mergeProps as $czmJy$mergeProps} from \"@react-aria/utils\";\nimport {getFocusableTreeWalker as $czmJy$getFocusableTreeWalker} from \"@react-aria/focus\";\nimport {useField as $czmJy$useField} from \"@react-aria/label\";\nimport {useFocusWithin as $czmJy$useFocusWithin} from \"@react-aria/interactions\";\nimport {useLocale as $czmJy$useLocale} from \"@react-aria/i18n\";\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\n\n\n\nfunction $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {\n let { name: name, form: form, isReadOnly: isReadOnly, isRequired: isRequired, isDisabled: isDisabled, orientation: orientation = 'vertical', validationBehavior: validationBehavior = 'aria' } = props;\n let { direction: direction } = (0, $czmJy$useLocale)();\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $czmJy$useField)({\n ...props,\n // Radio group is not an HTML input element so it\n // shouldn't be labeled by a <label> element.\n labelElementType: 'span',\n isInvalid: state.isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n let domProps = (0, $czmJy$filterDOMProps)(props, {\n labelable: true\n });\n // When the radio group loses focus, reset the focusable radio to null if\n // there is no selection. This allows tabbing into the group from either\n // direction to go to the first or last radio.\n let { focusWithinProps: focusWithinProps } = (0, $czmJy$useFocusWithin)({\n onBlurWithin (e) {\n var _props_onBlur;\n (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);\n if (!state.selectedValue) state.setLastFocusedValue(null);\n },\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n let onKeyDown = (e)=>{\n let nextDir;\n switch(e.key){\n case 'ArrowRight':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'prev';\n else nextDir = 'next';\n break;\n case 'ArrowLeft':\n if (direction === 'rtl' && orientation !== 'vertical') nextDir = 'next';\n else nextDir = 'prev';\n break;\n case 'ArrowDown':\n nextDir = 'next';\n break;\n case 'ArrowUp':\n nextDir = 'prev';\n break;\n default:\n return;\n }\n e.preventDefault();\n let walker = (0, $czmJy$getFocusableTreeWalker)(e.currentTarget, {\n from: e.target,\n accept: (node)=>node instanceof (0, $czmJy$getOwnerWindow)(node).HTMLInputElement && node.type === 'radio'\n });\n let nextElem;\n if (nextDir === 'next') {\n nextElem = walker.nextNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.firstChild();\n }\n } else {\n nextElem = walker.previousNode();\n if (!nextElem) {\n walker.currentNode = e.currentTarget;\n nextElem = walker.lastChild();\n }\n }\n if (nextElem) {\n // Call focus on nextElem so that keyboard navigation scrolls the radio into view\n nextElem.focus();\n state.setSelectedValue(nextElem.value);\n }\n };\n let groupName = (0, $czmJy$useId)(name);\n (0, $884aeceb3d67f00f$export$37b65e5b5444d35c).set(state, {\n name: groupName,\n form: form,\n descriptionId: descriptionProps.id,\n errorMessageId: errorMessageProps.id,\n validationBehavior: validationBehavior\n });\n return {\n radioGroupProps: (0, $czmJy$mergeProps)(domProps, {\n // https://www.w3.org/TR/wai-aria-1.2/#radiogroup\n role: 'radiogroup',\n onKeyDown: onKeyDown,\n 'aria-invalid': state.isInvalid || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-readonly': isReadOnly || undefined,\n 'aria-required': isRequired || undefined,\n 'aria-disabled': isDisabled || undefined,\n 'aria-orientation': orientation,\n ...fieldProps,\n ...focusWithinProps\n }),\n labelProps: labelProps,\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$430f30ed08ec25fa$export$62b9571f283ff5c2 as useRadioGroup};\n//# sourceMappingURL=useRadioGroup.module.js.map\n","import {useFormValidationState as $l55kx$useFormValidationState} from \"@react-stately/form\";\nimport {useControlledState as $l55kx$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $l55kx$useMemo, useState as $l55kx$useState} from \"react\";\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\nlet $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 10000000000);\nlet $a54cdc5c1942b639$var$i = 0;\nfunction $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {\n // Preserved here for backward compatibility. React Aria now generates the name instead of stately.\n let name = (0, $l55kx$useMemo)(()=>props.name || `radio-group-${$a54cdc5c1942b639$var$instance}-${++$a54cdc5c1942b639$var$i}`, [\n props.name\n ]);\n var _props_defaultValue;\n let [selectedValue, setSelected] = (0, $l55kx$useControlledState)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);\n let [initialValue] = (0, $l55kx$useState)(selectedValue);\n let [lastFocusedValue, setLastFocusedValue] = (0, $l55kx$useState)(null);\n let validation = (0, $l55kx$useFormValidationState)({\n ...props,\n value: selectedValue\n });\n let setSelectedValue = (value)=>{\n if (!props.isReadOnly && !props.isDisabled) {\n setSelected(value);\n validation.commitValidation();\n }\n };\n let isInvalid = validation.displayValidation.isInvalid;\n var _props_defaultValue1;\n return {\n ...validation,\n name: name,\n selectedValue: selectedValue,\n defaultSelectedValue: props.value !== undefined ? initialValue : (_props_defaultValue1 = props.defaultValue) !== null && _props_defaultValue1 !== void 0 ? _props_defaultValue1 : null,\n setSelectedValue: setSelectedValue,\n lastFocusedValue: lastFocusedValue,\n setLastFocusedValue: setLastFocusedValue,\n isDisabled: props.isDisabled || false,\n isReadOnly: props.isReadOnly || false,\n isRequired: props.isRequired || false,\n validationState: props.validationState || (isInvalid ? 'invalid' : null),\n isInvalid: isInvalid\n };\n}\n\n\nexport {$a54cdc5c1942b639$export$bca9d026f8e704eb as useRadioGroupState};\n//# sourceMappingURL=useRadioGroupState.module.js.map\n","import {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useRadioGroup as $3sixo$useRadioGroup, useRadio as $3sixo$useRadio, useFocusRing as $3sixo$useFocusRing, useHover as $3sixo$useHover, VisuallyHidden as $3sixo$VisuallyHidden} from \"react-aria\";\nimport {filterDOMProps as $3sixo$filterDOMProps, mergeProps as $3sixo$mergeProps, useObjectRef as $3sixo$useObjectRef, mergeRefs as $3sixo$mergeRefs} from \"@react-aria/utils\";\nimport {useRadioGroupState as $3sixo$useRadioGroupState} from \"react-stately\";\nimport $3sixo$react, {createContext as $3sixo$createContext, forwardRef as $3sixo$forwardRef, useMemo as $3sixo$useMemo} from \"react\";\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\n\n\n\nconst $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$b118023277d4a5c3 = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$29d84393af70866c = /*#__PURE__*/ (0, $3sixo$createContext)(null);\nconst $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function RadioGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let state = (0, $3sixo$useRadioGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { radioGroupProps: radioGroupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $3sixo$useRadioGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'vertical',\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: state.isRequired,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-RadioGroup'\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"div\", {\n ...(0, $3sixo$mergeProps)(DOMProps, renderProps, radioGroupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'vertical',\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": state.isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $b6c3ddc6086f204d$export$29d84393af70866c,\n state\n ],\n [\n (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, renderProps.children));\n});\nconst $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $3sixo$forwardRef)(function Radio(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);\n let state = (0, $3sixo$react).useContext($b6c3ddc6086f204d$export$29d84393af70866c);\n let inputRef = (0, $3sixo$useObjectRef)((0, $3sixo$useMemo)(()=>(0, $3sixo$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isPressed: isPressed } = (0, $3sixo$useRadio)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, state, inputRef);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $3sixo$useFocusRing)();\n let interactionDisabled = isDisabled || state.isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $3sixo$useHover)({\n ...props,\n isDisabled: interactionDisabled\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Radio',\n values: {\n isSelected: isSelected,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: state.isReadOnly,\n isInvalid: state.isInvalid,\n isRequired: state.isRequired\n }\n });\n let DOMProps = (0, $3sixo$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $3sixo$react).createElement(\"label\", {\n ...(0, $3sixo$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n \"data-selected\": isSelected || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-required\": state.isRequired || undefined\n }, /*#__PURE__*/ (0, $3sixo$react).createElement((0, $3sixo$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $3sixo$react).createElement(\"input\", {\n ...(0, $3sixo$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$b6c3ddc6086f204d$export$a79eda4ff50e30b6 as RadioGroupContext, $b6c3ddc6086f204d$export$b118023277d4a5c3 as RadioContext, $b6c3ddc6086f204d$export$29d84393af70866c as RadioGroupStateContext, $b6c3ddc6086f204d$export$a98f0dcb43a68a25 as RadioGroup, $b6c3ddc6086f204d$export$d7b12c4107be0d61 as Radio};\n//# sourceMappingURL=RadioGroup.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport { createSlotRecipeContext } from \"@chakra-ui/react/styled-system\";\nimport type {\n RadioInputOptionSlotProps,\n RadioInputRootSlotProps,\n} from \"./radio-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"radioInput\",\n});\n\nexport const RadioInputRootSlot = withProvider<\n HTMLDivElement,\n RadioInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const RadioInputOptionSlot = withContext<\n HTMLSpanElement,\n RadioInputOptionSlotProps\n>(\"span\", \"option\");\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { radioInputSlotRecipe } from \"../radio-input.recipe\";\nimport { RadioGroup as RaRadioGroup } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { RadioInputRootProps } from \"../radio-input.types\";\nimport { RadioInputRootSlot } from \"../radio-input.slots\";\n\n/**\n * # RadioInput\n *\n * A set of closely related, mutually exclusive or complementary actions that are important enough to be displayed directly in the interface for quick access.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/radio-input}\n */\nexport const RadioInputRoot = (props: RadioInputRootProps) => {\n const recipe = useSlotRecipe({ recipe: radioInputSlotRecipe });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n const [styleProps, restProps] = extractStyleProps(restRecipeProps);\n\n return (\n <RadioInputRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRadioGroup {...restProps}>{props.children}</RaRadioGroup>\n </RadioInputRootSlot>\n );\n};\n\nRadioInputRoot.displayName = \"RadioInputRoot\";\n","import { Radio as RaRadio } from \"react-aria-components\";\nimport {\n RadioButtonChecked,\n RadioButtonUnchecked,\n} from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { RadioInputOptionProps } from \"../radio-input.types\";\nimport { RadioInputOptionSlot } from \"../radio-input.slots\";\nimport { useFocusRing } from \"react-aria\";\n\nexport const RadioInputOption = ({\n children,\n value,\n ...rest\n}: RadioInputOptionProps) => {\n const [styleProps, restProps] = extractStyleProps(rest);\n const { isFocused, focusProps } = useFocusRing();\n\n return (\n <RadioInputOptionSlot\n {...styleProps}\n {...focusProps}\n data-focus={isFocused || undefined}\n asChild\n >\n <RaRadio value={value} {...restProps}>\n {(renderProps) => {\n const content =\n typeof children === \"function\"\n ? children({\n ...renderProps,\n })\n : children;\n return (\n <>\n {renderProps.isSelected ? (\n <RadioButtonChecked />\n ) : (\n <RadioButtonUnchecked />\n )}\n {content}\n </>\n );\n }}\n </RaRadio>\n </RadioInputOptionSlot>\n );\n};\n\nRadioInputOption.displayName = \"RadioInputOption\";\n","import { RadioInputRoot as _RadioInputRoot } from \"./components/radio-input.root\";\nimport { RadioInputOption as _RadioInputOption } from \"./components/radio-input.option\";\n\nexport const RadioInput = {\n Root: _RadioInputRoot,\n Option: _RadioInputOption,\n};\n\nexport { _RadioInputRoot, _RadioInputOption };\n"],"names":["$884aeceb3d67f00f$export$37b65e5b5444d35c","$0d5c49892c1215da$export$37b0961d2f4751e2","props","state","ref","value","children","ariaLabel","ariaLabelledby","onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick","isDisabled","hasChildren","hasAriaLabel","checked","onChange","e","pressProps","isPressed","$5jJ3f$usePress","labelProps","isLabelPressed","_ref_current","focusableProps","$5jJ3f$useFocusable","$5jJ3f$mergeProps","interactions","domProps","$5jJ3f$filterDOMProps","tabIndex","name","form","descriptionId","errorMessageId","validationBehavior","$5jJ3f$useFormReset","$5jJ3f$useFormValidation","$430f30ed08ec25fa$export$62b9571f283ff5c2","isReadOnly","isRequired","orientation","direction","$czmJy$useLocale","isInvalid","validationErrors","validationDetails","fieldProps","descriptionProps","errorMessageProps","$czmJy$useField","$czmJy$filterDOMProps","focusWithinProps","$czmJy$useFocusWithin","_props_onBlur","onKeyDown","nextDir","walker","$czmJy$getFocusableTreeWalker","node","$czmJy$getOwnerWindow","nextElem","groupName","$czmJy$useId","$czmJy$mergeProps","$a54cdc5c1942b639$var$instance","$a54cdc5c1942b639$var$i","$a54cdc5c1942b639$export$bca9d026f8e704eb","$l55kx$useMemo","_props_defaultValue","selectedValue","setSelected","$l55kx$useControlledState","initialValue","$l55kx$useState","lastFocusedValue","setLastFocusedValue","validation","$l55kx$useFormValidationState","setSelectedValue","_props_defaultValue1","$b6c3ddc6086f204d$export$a79eda4ff50e30b6","$3sixo$createContext","$b6c3ddc6086f204d$export$b118023277d4a5c3","$b6c3ddc6086f204d$export$29d84393af70866c","$b6c3ddc6086f204d$export$a98f0dcb43a68a25","$3sixo$forwardRef","$64fa3d84918910a7$export$29f1550f4b0d4415","formValidationBehavior","$64fa3d84918910a7$export$fabf2dc03a41866e","$d3e0e05bdfcf66bd$export$c24727297075ec6a","_props_validationBehavior","_ref","$3sixo$useRadioGroupState","labelRef","label","$64fa3d84918910a7$export$9d4c57ee4c6ffdd8","radioGroupProps","$3sixo$useRadioGroup","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$3sixo$filterDOMProps","$3sixo$react","$3sixo$mergeProps","$64fa3d84918910a7$export$2881499e37b75b9a","$01b77f81d0f07f68$export$75b6ee27786ba447","$514c0188e459b4c0$export$9afb8bc826b033ea","$ee014567cb39d3f0$export$ff05c3ac10437e03","$b6c3ddc6086f204d$export$d7b12c4107be0d61","userProvidedInputRef","otherProps","inputRef","$3sixo$useObjectRef","$3sixo$useMemo","$3sixo$mergeRefs","inputProps","isSelected","$3sixo$useRadio","$64fa3d84918910a7$export$ef03459518577ad4","isFocused","isFocusVisible","focusProps","$3sixo$useFocusRing","interactionDisabled","hoverProps","isHovered","$3sixo$useHover","$3sixo$VisuallyHidden","withProvider","withContext","createSlotRecipeContext","RadioInputRootSlot","RadioInputOptionSlot","RadioInputRoot","recipe","useSlotRecipe","radioInputSlotRecipe","recipeProps","restRecipeProps","styleProps","restProps","extractStyleProps","jsx","RaRadioGroup","RadioInputOption","rest","useFocusRing","RaRadio","content","jsxs","Fragment","RadioButtonChecked","RadioButtonUnchecked","RadioInput","_RadioInputRoot","_RadioInputOption"],"mappings":"8kCAUUA,EAA4C,IAAI,QCS1D,SAASC,GAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,MAAOC,EAAO,SAAUC,EAAU,aAAcC,EAAW,kBAAmBC,EAAgB,aAAcC,EAAc,WAAYC,EAAY,cAAeC,EAAe,QAASC,EAAS,UAAWC,EAAW,QAASC,CAAO,EAAKZ,EACnP,MAAMa,EAAab,EAAM,YAAcC,EAAM,WAC7C,IAAIa,EAAcV,GAAY,KAC1BW,EAAeV,GAAa,MAAQC,GAAkB,KACtD,CAACQ,GAAe,CAACC,GAAgB,QAAQ,IAAI,WAAa,cAAc,QAAQ,KAAK,kFAAkF,EAC3K,IAAIC,EAAUf,EAAM,gBAAkBE,EAClCc,EAAYC,GAAI,CAChBA,EAAE,gBAAe,EACjBjB,EAAM,iBAAiBE,CAAK,CAChC,EAEI,CAAE,WAAYgB,EAAY,UAAWC,CAAS,EAASC,4CAAiB,CACxE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AW,WAAAE,CAAA,EAAeyB,4CAAA,EAElC,OACEJ,EAAAA,IAACV,GAAA,CACE,GAAGO,EACH,GAAGlB,EACJ,aAAYF,GAAa,OACzB,QAAO,GAEP,eAAC4B,GAAA,CAAQ,MAAAlJ,EAAe,GAAG2I,EACxB,SAAC1C,GAAgB,CAChB,MAAMkD,EACJ,OAAOlJ,GAAa,WAChBA,EAAS,CACP,GAAGgG,CAAA,CACJ,EACDhG,EACN,OACEmJ,EAAAA,KAAAC,WAAA,CACG,SAAA,CAAApD,EAAY,WACX4C,EAAAA,IAACS,EAAAA,mBAAA,CAAA,CAAmB,QAEnBC,EAAAA,qBAAA,EAAqB,EAEvBJ,CAAA,EACH,CAEJ,CAAA,CACF,CAAA,CAAA,CAGN,EAEAJ,EAAiB,YAAc,mBC9CxB,MAAMS,GAAa,CACxB,KAAMC,EACN,OAAQC,CACV","x_google_ignoreList":[0,1,2,3,4]}
@@ -1,20 +1,20 @@
1
1
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { i as R, a as I, b as F, c as j, d as G, e as H, j as S, g as A, k as B } from "./Heading-CNw7cSHE.es.js";
2
+ import { i as R, a as I, b as F, c as j, d as G, e as H, j as S, g as A, k as B } from "./Heading-6PRCde4r.es.js";
3
3
  import { c as L } from "./create-slot-recipe-context-DgamNbR-.es.js";
4
4
  import { useContext as p } from "react";
5
- import { $ as M, a as i } from "./useDateFormatter-CFejfBgJ.es.js";
6
- import { c as w, d as N } from "./utils-CK1WzOK8.es.js";
5
+ import { $ as M, a as i } from "./useDateFormatter-kmlij37M.es.js";
6
+ import { c as w, d as N } from "./utils-BkdW_cdL.es.js";
7
7
  import { B as D } from "./box-7pkPaNxe.es.js";
8
8
  import { $ as P } from "./context-Pt-0ojuK.es.js";
9
- import { I as h } from "./icon-button-CH683kN2.es.js";
10
- import { T as u } from "./text-DkDCu8ot.es.js";
9
+ import { I as h } from "./icon-button-eAxeO5Sy.es.js";
10
+ import { T as u } from "./text-QANNJ4E4.es.js";
11
11
  import { S as x } from "./stack-DosdbBli.es.js";
12
- import { V as k } from "./visually-hidden-Ct7jWlZQ.es.js";
12
+ import { V as k } from "./visually-hidden-Cr2DdJfv.es.js";
13
13
  import { KeyboardArrowLeft as g, KeyboardArrowRight as C } from "@commercetools/nimbus-icons";
14
14
  import { F as z } from "./flex-9fkV4bsm.es.js";
15
15
  import { r as V } from "./index-BbFVxNB8.es.js";
16
16
  import { e as K } from "./extractStyleProps-DV7dej9J.es.js";
17
- import { $ as y } from "./Button-CcXB_0ry.es.js";
17
+ import { $ as y } from "./Button-Dbso0-qF.es.js";
18
18
  import { $ as v } from "./Text-DOcU1ycg.es.js";
19
19
  import { u as W } from "./use-recipe-CR4W7Dne.es.js";
20
20
  const { withProvider: _, withContext: n } = /* @__PURE__ */ L({
@@ -184,4 +184,4 @@ const { withProvider: _, withContext: n } = /* @__PURE__ */ L({
184
184
  export {
185
185
  ve as R
186
186
  };
187
- //# sourceMappingURL=range-calendar-CTngGdKU.es.js.map
187
+ //# sourceMappingURL=range-calendar-BPr3OzhD.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"range-calendar-CTngGdKU.es.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport type { RangeCalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport interface RangeCalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof rangeCalendarSlotRecipe> &\n RangeCalendarProps<DateValue>\n > {}\nexport const RangeCalendarRootSlot = withProvider<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface RangeCalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface RangeCalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface RangeCalendarMonthTitleSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface RangeCalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface RangeCalendarGridHeaderSlotProps\n extends HTMLChakraProps<\"thead\"> {}\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface RangeCalendarHeaderCellSlotProps\n extends HTMLChakraProps<\"th\"> {}\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface RangeCalendarGridBodySlotProps\n extends HTMLChakraProps<\"tbody\"> {}\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface RangeCalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\n\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\n\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport { RangeCalendarGrids } from \"./components/range-calendar.grids\";\nimport { RangeCalendarHeader } from \"./components/range-calendar.header\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { RangeCalendarCustomContext } from \"./components/range-calendar.custom-context\";\n\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","RangeCalendarGrids","locale","useLocale","context","useSlottedContext","RangeCalendarContext","calendarState","useContext","RangeCalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","RangeCalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAQYC,IAAwB,gBAAAH,EAGnC,OAAO,MAAM,GAGFI,IAA0B,gBAAAH,EAGrC,OAAO,QAAQ,GAGJI,IAAyB,gBAAAJ,EAGpC,OAAO,OAAO,GAIHK,IAA8B,gBAAAL,EAGzC,OAAO,YAAY,GAGRM,IAAwB,gBAAAN,EAGnC,SAAS,MAAM,GAIJO,IAA8B,gBAAAP,EAGzC,SAAS,YAAY,GAIVQ,IAA8B,gBAAAR,EAGzC,MAAM,YAAY,GAIPS,IAA4B,g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AAAT;AAAA,IAAA;AAAA,EAAA;AAGP,GC7FaW,KAAgB,CAACC,MAAyC;AACrE,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAyB,GACtD,CAACC,GAAaC,CAAc,IAAIJ,EAAO,kBAAkBD,CAAK,GAC9D,CAACM,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAA3C,EAACvB,GAAA,EAAuB,GAAGiE,GAAc,GAAGE,GAAY,SAAO,IAC7D,UAAA,gBAAA5C,EAAC+C,GAAA,EAAiB,GAAGF,GACnB,4BAACpB,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAzB,EAACe,IAAA,EAAoB;AAAA,sBACpB7B,IAAA,CAAA,CAAmB;AAAA,EAAA,EAAA,CACtB,GACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"range-calendar-BPr3OzhD.es.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport type { RangeCalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport interface RangeCalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof rangeCalendarSlotRecipe> &\n RangeCalendarProps<DateValue>\n > {}\nexport const RangeCalendarRootSlot = withProvider<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface RangeCalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface RangeCalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface RangeCalendarMonthTitleSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface RangeCalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface RangeCalendarGridHeaderSlotProps\n extends HTMLChakraProps<\"thead\"> {}\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface RangeCalendarHeaderCellSlotProps\n extends HTMLChakraProps<\"th\"> {}\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface RangeCalendarGridBodySlotProps\n extends HTMLChakraProps<\"tbody\"> {}\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface RangeCalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\n\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\n\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport { RangeCalendarGrids } from \"./components/range-calendar.grids\";\nimport { RangeCalendarHeader } from \"./components/range-calendar.header\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { RangeCalendarCustomContext } from \"./components/range-calendar.custom-context\";\n\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","RangeCalendarGrids","locale","useLocale","context","useSlottedContext","RangeCalendarContext","calendarState","useContext","RangeCalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","RangeCalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAQYC,IAAwB,gBAAAH,EAGnC,OAAO,MAAM,GAGFI,IAA0B,gBAAAH,EAGrC,OAAO,QAAQ,GAGJI,IAAyB,gBAAAJ,EAGpC,OAAO,OAAO,GAIHK,IAA8B,gBAAAL,EAGzC,OAAO,YAAY,GAGRM,IAAwB,gBAAAN,EAGnC,SAAS,MAAM,GAIJO,IAA8B,gBAAAP,EAGzC,SAAS,YAAY,GAIVQ,IAA8B,gBAAAR,EAGzC,MAAM,YAAY,GAIPS,IAA4B,gBAAAT,EAGvC,SAAS,UAAU,GAGRU,IAAwB,gBAAAV,EAGnC,MAAM,UAAU,GClDLW,KAAqB,MAAM;AACtC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAUC,EAAkBC,CAAoB,GAEhDC,IAAgBC,EAAWC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,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAA3C,EAACvB,GAAA,EAAuB,GAAGiE,GAAc,GAAGE,GAAY,SAAO,IAC7D,UAAA,gBAAA5C,EAAC+C,GAAA,EAAiB,GAAGF,GACnB,4BAACpB,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAzB,EAACe,IAAA,EAAoB;AAAA,sBACpB7B,IAAA,CAAA,CAAmB;AAAA,EAAA,EAAA,CACtB,GACF,GACF;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-HwM6p_yd.cjs.js"),w=require("./create-slot-recipe-context-CHGQvGou.cjs.js"),$=require("react"),c=require("./useDateFormatter-dQunecsL.cjs.js"),p=require("./utils-Bag2AAeo.cjs.js"),R=require("./box-DL4MWnyy.cjs.js"),v=require("./context-D0_cRaDZ.cjs.js"),h=require("./icon-button-DBY3-KjA.cjs.js"),g=require("./text-DmDvx7V_.cjs.js"),j=require("./stack-B2xQMEdj.cjs.js"),q=require("./visually-hidden-CcZJkTkB.cjs.js"),u=require("@commercetools/nimbus-icons"),D=require("./flex-CDVfeTs4.cjs.js"),P=require("./index-XyB4gGC8.cjs.js"),I=require("./extractStyleProps-wjyId_vK.cjs.js"),C=require("./Button-POnkHGAl.cjs.js"),y=require("./Text-BWSfeB9p.cjs.js"),T=require("./use-recipe-BZ_iqCkN.cjs.js"),{withProvider:B,withContext:s}=w.createSlotRecipeContext({key:"rangeCalendar"}),H=B("div","root"),A=s("div","header"),F=s("div","grids"),G=s("div","monthTitle"),L=s("table","grid"),k=s("thead","gridHeader"),M=s("th","headerCell"),N=s("tbody","gridBody"),z=s("td","bodyCell"),K=()=>{const{locale:d}=v.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$233dd9682e1ad64b),t=$.useContext(a.$dfd62f934fc76fed$export$5e0fc348c00f87a0),r=n?.visibleDuration?.months||1,o=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),i=r>1;return e.jsx(F,{children:Array.from({length:r},(m,l)=>{const b=t.visibleRange.start.add({months:l}),f=new Intl.DateTimeFormat(d,{month:"long"}).format(b.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(R.Box,{width:r==1?"full":"auto",children:[i&&e.jsx(G,{children:f}),e.jsx(L,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:l},weekdayStyle:"short",children:[e.jsx(k,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:x=>e.jsx(M,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:x})})})}),e.jsx(N,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:x=>{const S=x.compare(o)===0;return e.jsx(z,{asChild:!0,"data-today":S,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:x})})}})})]})})]},f)})})},V=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$233dd9682e1ad64b)?.visibleDuration?.months||1)>1;return e.jsx(A,{children:e.jsxs(D.Flex,{children:[e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx(q.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(g.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(R.Box,{flexGrow:"1"}),e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(g.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},W=({children:d})=>{const{locale:n}=v.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=$.useContext(C.$d2b4bc8c273e7be6$export$24d547caef80ccd1),r=$.useContext(y.$514c0188e459b4c0$export$9afb8bc826b033ea),o=$.useContext(a.$dfd62f934fc76fed$export$5e0fc348c00f87a0),i={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":"Next month"},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":"Previous month"},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":"Next year"},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":"Previous year"}},m=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),b=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),f={month:{children:m},monthRange:{children:l},year:{children:b}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...i}}],[y.$514c0188e459b4c0$export$9afb8bc826b033ea,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...f}}]],children:d})},_=d=>{const n=T.useRecipe({recipe:P.rangeCalendarSlotRecipe}),[t,r]=n.splitVariantProps(d),[o,i]=I.extractStyleProps(r);return e.jsx(H,{...t,...o,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$a4f5c8b89d277a8d,{...i,children:e.jsxs(W,{children:[e.jsx(V,{}),e.jsx(K,{})]})})})};exports.RangeCalendar=_;
2
- //# sourceMappingURL=range-calendar-DsPvLwZi.cjs.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-P3M5XVwg.cjs.js"),w=require("./create-slot-recipe-context-CHGQvGou.cjs.js"),$=require("react"),c=require("./useDateFormatter-Dw7VGiwz.cjs.js"),p=require("./utils-BHdR5Nww.cjs.js"),R=require("./box-DL4MWnyy.cjs.js"),v=require("./context-D0_cRaDZ.cjs.js"),h=require("./icon-button-Dz81DR3X.cjs.js"),g=require("./text-DNjTZCtR.cjs.js"),j=require("./stack-B2xQMEdj.cjs.js"),q=require("./visually-hidden-DxNUFbOh.cjs.js"),u=require("@commercetools/nimbus-icons"),D=require("./flex-CDVfeTs4.cjs.js"),P=require("./index-XyB4gGC8.cjs.js"),I=require("./extractStyleProps-wjyId_vK.cjs.js"),C=require("./Button-BLV4Eycw.cjs.js"),y=require("./Text-BWSfeB9p.cjs.js"),T=require("./use-recipe-BZ_iqCkN.cjs.js"),{withProvider:B,withContext:s}=w.createSlotRecipeContext({key:"rangeCalendar"}),H=B("div","root"),A=s("div","header"),F=s("div","grids"),G=s("div","monthTitle"),L=s("table","grid"),k=s("thead","gridHeader"),M=s("th","headerCell"),N=s("tbody","gridBody"),z=s("td","bodyCell"),K=()=>{const{locale:d}=v.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$233dd9682e1ad64b),t=$.useContext(a.$dfd62f934fc76fed$export$5e0fc348c00f87a0),r=n?.visibleDuration?.months||1,o=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),i=r>1;return e.jsx(F,{children:Array.from({length:r},(m,l)=>{const b=t.visibleRange.start.add({months:l}),f=new Intl.DateTimeFormat(d,{month:"long"}).format(b.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(R.Box,{width:r==1?"full":"auto",children:[i&&e.jsx(G,{children:f}),e.jsx(L,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:l},weekdayStyle:"short",children:[e.jsx(k,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:x=>e.jsx(M,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:x})})})}),e.jsx(N,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:x=>{const S=x.compare(o)===0;return e.jsx(z,{asChild:!0,"data-today":S,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:x})})}})})]})})]},f)})})},V=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$233dd9682e1ad64b)?.visibleDuration?.months||1)>1;return e.jsx(A,{children:e.jsxs(D.Flex,{children:[e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx(q.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(g.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(R.Box,{flexGrow:"1"}),e.jsxs(j.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(g.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},W=({children:d})=>{const{locale:n}=v.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=$.useContext(C.$d2b4bc8c273e7be6$export$24d547caef80ccd1),r=$.useContext(y.$514c0188e459b4c0$export$9afb8bc826b033ea),o=$.useContext(a.$dfd62f934fc76fed$export$5e0fc348c00f87a0),i={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":"Next month"},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":"Previous month"},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":"Next year"},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":"Previous year"}},m=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),b=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),f={month:{children:m},monthRange:{children:l},year:{children:b}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...i}}],[y.$514c0188e459b4c0$export$9afb8bc826b033ea,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...f}}]],children:d})},_=d=>{const n=T.useRecipe({recipe:P.rangeCalendarSlotRecipe}),[t,r]=n.splitVariantProps(d),[o,i]=I.extractStyleProps(r);return e.jsx(H,{...t,...o,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$a4f5c8b89d277a8d,{...i,children:e.jsxs(W,{children:[e.jsx(V,{}),e.jsx(K,{})]})})})};exports.RangeCalendar=_;
2
+ //# sourceMappingURL=range-calendar-p93X9--W.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"range-calendar-DsPvLwZi.cjs.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport type { RangeCalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport interface RangeCalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof rangeCalendarSlotRecipe> &\n RangeCalendarProps<DateValue>\n > {}\nexport const RangeCalendarRootSlot = withProvider<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface RangeCalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface RangeCalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface RangeCalendarMonthTitleSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface RangeCalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface RangeCalendarGridHeaderSlotProps\n extends HTMLChakraProps<\"thead\"> {}\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface RangeCalendarHeaderCellSlotProps\n extends HTMLChakraProps<\"th\"> {}\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface RangeCalendarGridBodySlotProps\n extends HTMLChakraProps<\"tbody\"> {}\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface RangeCalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\n\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\n\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport { RangeCalendarGrids } from \"./components/range-calendar.grids\";\nimport { RangeCalendarHeader } from \"./components/range-calendar.header\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { RangeCalendarCustomContext } from \"./components/range-calendar.custom-context\";\n\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","RangeCalendarGrids","locale","useLocale","context","useSlottedContext","RangeCalendarContext","calendarState","useContext","RangeCalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","RangeCalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":"+vBAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,eACP,CAAC,EAQYC,EAAwBH,EAGnC,MAAO,MAAM,EAGFI,EAA0BH,EAGrC,MAAO,QAAQ,EAGJI,EAAyBJ,EAGpC,MAAO,OAAO,EAIHK,EAA8BL,EAGzC,MAAO,YAAY,EAGRM,EAAwBN,EAGnC,QAAS,MAAM,EAIJO,EAA8BP,EAGzC,QAAS,YAAY,EAIVQ,EAA8BR,EAGzC,KAAM,YAAY,EAIPS,EAA4BT,EAGvC,QAAS,UAAU,EAGRU,EAAwBV,EAGnC,KAAM,UAAU,EClDLW,EAAqB,IAAM,CACtC,KAAM,CAAE,OAAAC,CAAA,EAAWC,4CAAA,EACbC,EAAUC,EAAAA,0CAAkBC,2CAAoB,EAEhDC,EAAgBC,EAAAA,WAAWC,2CAAyB,EACpDC,EAAqBN,GAAS,iBAAiB,QAAU,EACzDO,EAAYC,4CAAMC,EAAAA,2CAAkB,EACpCC,EAAkBJ,EAAqB,EAE7C,OACEK,MA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AAA,IAACoC,EAAAA,0CAAA,CACC,OAAQ,CACN,CACER,EAAAA,0CACA,CACE,GAAGD,EACH,MAAO,CACL,GAAIA,GACJ,OAAOA,GAAkB,UACzB,UAAWA,EACPA,EAAc,MACd,CAAA,EACJ,GAAGI,CAAA,CACL,CACF,EAEF,CACED,EAAAA,0CACA,CACE,GAAGD,EACH,MAAO,CACL,GAAIA,GACJ,OAAOA,GAAgB,UACvB,UAAWA,EACPA,EAAY,MACZ,CAAA,EACJ,GAAGM,CAAA,CACL,CACF,CACF,EAGD,SAAAT,CAAA,CAAA,CAGP,EC7FaW,EAAiBC,GAAyC,CACrE,MAAMC,EAASC,EAAAA,UAAU,CAAE,OAAQC,EAAAA,wBAAyB,EACtD,CAACC,EAAaC,CAAc,EAAIJ,EAAO,kBAAkBD,CAAK,EAC9D,CAACM,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACE3C,EAAAA,IAACvB,EAAA,CAAuB,GAAGiE,EAAc,GAAGE,EAAY,QAAO,GAC7D,SAAA5C,EAAAA,IAAC+C,EAAAA,0CAAA,CAAiB,GAAGF,EACnB,gBAACpB,EAAA,CACC,SAAA,CAAAzB,EAAAA,IAACe,EAAA,EAAoB,QACpB7B,EAAA,CAAA,CAAmB,CAAA,CAAA,CACtB,EACF,EACF,CAEJ"}
1
+ {"version":3,"file":"range-calendar-p93X9--W.cjs.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport type { RangeCalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport interface RangeCalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof rangeCalendarSlotRecipe> &\n RangeCalendarProps<DateValue>\n > {}\nexport const RangeCalendarRootSlot = withProvider<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface RangeCalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface RangeCalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface RangeCalendarMonthTitleSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface RangeCalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface RangeCalendarGridHeaderSlotProps\n extends HTMLChakraProps<\"thead\"> {}\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface RangeCalendarHeaderCellSlotProps\n extends HTMLChakraProps<\"th\"> {}\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface RangeCalendarGridBodySlotProps\n extends HTMLChakraProps<\"tbody\"> {}\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface RangeCalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\n\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\n\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport { RangeCalendarGrids } from \"./components/range-calendar.grids\";\nimport { RangeCalendarHeader } from \"./components/range-calendar.header\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { RangeCalendarCustomContext } from \"./components/range-calendar.custom-context\";\n\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","RangeCalendarGrids","locale","useLocale","context","useSlottedContext","RangeCalendarContext","calendarState","useContext","RangeCalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","RangeCalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":"+vBAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,eACP,CAAC,EAQYC,EAAwBH,EAGnC,MAAO,MAAM,EAGFI,EAA0BH,EAGrC,MAAO,QAAQ,EAGJI,EAAyBJ,EAGpC,MAAO,OAAO,EAIHK,EAA8BL,EAGzC,MAAO,YAAY,EAGRM,EAAwBN,EAGnC,QAAS,MAAM,EAIJO,EAA8BP,EAGzC,QA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const W=require("./mergeProps-BA5Cwf5w.cjs.js"),I=require("react");function a(e,o){if(!e)return!1;let t=window.getComputedStyle(e),l=/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY);return l&&o&&(l=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),l}function S(e,o){let t=e;for(a(t,o)&&(t=t.parentElement);t&&!a(t,o);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function N(e,o){const t=[];for(;e&&e!==document.documentElement;)a(e,o)&&t.push(e),e=e.parentElement;return t}let R=0;const b=new Map;function B(e){let[o,t]=I.useState();return W.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!e)return;let l=b.get(e);if(l)t(l.element.id);else{let d=`react-aria-description-${R++}`;t(d);let r=document.createElement("div");r.id=d,r.style.display="none",r.textContent=e,document.body.appendChild(r),l={refCount:0,element:r},b.set(e,l)}return l.refCount++,()=>{l&&--l.refCount===0&&(l.element.remove(),b.delete(e))}},[e]),{"aria-describedby":e?o:void 0}}function C(e,o){let t=g(e,o,"left"),l=g(e,o,"top"),d=o.offsetWidth,r=o.offsetHeight,f=e.scrollLeft,i=e.scrollTop,{borderTopWidth:c,borderLeftWidth:n,scrollPaddingTop:s,scrollPaddingRight:u,scrollPaddingBottom:L,scrollPaddingLeft:T}=getComputedStyle(e),y=f+parseInt(n,10),$=i+parseInt(c,10),p=y+e.clientWidth,v=$+e.clientHeight,P=parseInt(s,10)||0,h=parseInt(L,10)||0,m=parseInt(u,10)||0,x=parseInt(T,10)||0;t<=f+x?f=t-parseInt(n,10)-x:t+d>p-m&&(f+=t+d-p+m),l<=$+P?i=l-parseInt(c,10)-P:l+r>v-h&&(i+=l+r-v+h),e.scrollLeft=f,e.scrollTop=i}function g(e,o,t){const l=t==="left"?"offsetLeft":"offsetTop";let d=0;for(;o.offsetParent&&(d+=o[l],o.offsetParent!==e);){if(o.offsetParent.contains(e)){d-=e[l];break}o=o.offsetParent}return d}function k(e,o){if(e&&document.contains(e)){let f=document.scrollingElement||document.documentElement;if(window.getComputedStyle(f).overflow==="hidden"){let c=N(e);for(let n of c)C(n,e)}else{var t;let{left:c,top:n}=e.getBoundingClientRect();e==null||(t=e.scrollIntoView)===null||t===void 0||t.call(e,{block:"nearest"});let{left:s,top:u}=e.getBoundingClientRect();if(Math.abs(c-s)>1||Math.abs(n-u)>1){var l,d,r;o==null||(d=o.containingElement)===null||d===void 0||(l=d.scrollIntoView)===null||l===void 0||l.call(d,{block:"center",inline:"center"}),(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"})}}}}exports.$2f04cbc44ee30ce0$export$53a0910f038337bd=C;exports.$2f04cbc44ee30ce0$export$c826860796309d1b=k;exports.$62d8ded9296f3872$export$cfa2225e87938781=S;exports.$cc38e7bd3fc7b213$export$2bb74740c4e19def=a;exports.$ef06256079686ba0$export$f8aeda7b10753fa1=B;
2
+ //# sourceMappingURL=scrollIntoView-BzIqpHLO.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollIntoView-BzIqpHLO.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/isScrollable.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/getScrollParent.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/getScrollParents.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/useDescription.mjs","../../../../node_modules/.pnpm/@react-aria+utils@3.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/utils/dist/scrollIntoView.mjs"],"sourcesContent":["/*\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 */ function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow) {\n if (!node) return false;\n let style = window.getComputedStyle(node);\n let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);\n if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;\n return isScrollable;\n}\n\n\nexport {$cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable};\n//# sourceMappingURL=isScrollable.module.js.map\n","import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {\n let scrollableNode = node;\n if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;\n while(scrollableNode && !(0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(scrollableNode, checkForOverflow))scrollableNode = scrollableNode.parentElement;\n return scrollableNode || document.scrollingElement || document.documentElement;\n}\n\n\nexport {$62d8ded9296f3872$export$cfa2225e87938781 as getScrollParent};\n//# sourceMappingURL=getScrollParent.module.js.map\n","import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\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 */ \nfunction $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {\n const scrollParents = [];\n while(node && node !== document.documentElement){\n if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(node, checkForOverflow)) scrollParents.push(node);\n node = node.parentElement;\n }\n return scrollParents;\n}\n\n\nexport {$a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents};\n//# sourceMappingURL=getScrollParents.module.js.map\n","import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {useState as $hQ5Hp$useState} from \"react\";\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\nlet $ef06256079686ba0$var$descriptionId = 0;\nconst $ef06256079686ba0$var$descriptionNodes = new Map();\nfunction $ef06256079686ba0$export$f8aeda7b10753fa1(description) {\n let [id, setId] = (0, $hQ5Hp$useState)();\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n if (!description) return;\n let desc = $ef06256079686ba0$var$descriptionNodes.get(description);\n if (!desc) {\n let id = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;\n setId(id);\n let node = document.createElement('div');\n node.id = id;\n node.style.display = 'none';\n node.textContent = description;\n document.body.appendChild(node);\n desc = {\n refCount: 0,\n element: node\n };\n $ef06256079686ba0$var$descriptionNodes.set(description, desc);\n } else setId(desc.element.id);\n desc.refCount++;\n return ()=>{\n if (desc && --desc.refCount === 0) {\n desc.element.remove();\n $ef06256079686ba0$var$descriptionNodes.delete(description);\n }\n };\n }, [\n description\n ]);\n return {\n 'aria-describedby': description ? id : undefined\n };\n}\n\n\nexport {$ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription};\n//# sourceMappingURL=useDescription.module.js.map\n","import {getScrollParents as $a40c673dc9f6d9c7$export$94ed1c92c7beeb22} from \"./getScrollParents.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {\n let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'left');\n let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'top');\n let width = element.offsetWidth;\n let height = element.offsetHeight;\n let x = scrollView.scrollLeft;\n let y = scrollView.scrollTop;\n // Account for top/left border offsetting the scroll top/Left + scroll padding\n let { borderTopWidth: borderTopWidth, borderLeftWidth: borderLeftWidth, scrollPaddingTop: scrollPaddingTop, scrollPaddingRight: scrollPaddingRight, scrollPaddingBottom: scrollPaddingBottom, scrollPaddingLeft: scrollPaddingLeft } = getComputedStyle(scrollView);\n let borderAdjustedX = x + parseInt(borderLeftWidth, 10);\n let borderAdjustedY = y + parseInt(borderTopWidth, 10);\n // Ignore end/bottom border via clientHeight/Width instead of offsetHeight/Width\n let maxX = borderAdjustedX + scrollView.clientWidth;\n let maxY = borderAdjustedY + scrollView.clientHeight;\n // Get scroll padding values as pixels - defaults to 0 if no scroll padding\n // is used.\n let scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0;\n let scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0;\n let scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0;\n let scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0;\n if (offsetX <= x + scrollPaddingLeftNumber) x = offsetX - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber;\n else if (offsetX + width > maxX - scrollPaddingRightNumber) x += offsetX + width - maxX + scrollPaddingRightNumber;\n if (offsetY <= borderAdjustedY + scrollPaddingTopNumber) y = offsetY - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber;\n else if (offsetY + height > maxY - scrollPaddingBottomNumber) y += offsetY + height - maxY + scrollPaddingBottomNumber;\n scrollView.scrollLeft = x;\n scrollView.scrollTop = y;\n}\n/**\n * Computes the offset left or top from child to ancestor by accumulating\n * offsetLeft or offsetTop through intervening offsetParents.\n */ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {\n const prop = axis === 'left' ? 'offsetLeft' : 'offsetTop';\n let sum = 0;\n while(child.offsetParent){\n sum += child[prop];\n if (child.offsetParent === ancestor) break;\n else if (child.offsetParent.contains(ancestor)) {\n // If the ancestor is not `position:relative`, then we stop at\n // _its_ offset parent, and we subtract off _its_ offset, so that\n // we end up with the proper offset from child to ancestor.\n sum -= ancestor[prop];\n break;\n }\n child = child.offsetParent;\n }\n return sum;\n}\nfunction $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {\n if (targetElement && document.contains(targetElement)) {\n let root = document.scrollingElement || document.documentElement;\n let isScrollPrevented = window.getComputedStyle(root).overflow === 'hidden';\n // If scrolling is not currently prevented then we aren’t in a overlay nor is a overlay open, just use element.scrollIntoView to bring the element into view\n if (!isScrollPrevented) {\n var // use scrollIntoView({block: 'nearest'}) instead of .focus to check if the element is fully in view or not since .focus()\n // won't cause a scroll if the element is already focused and doesn't behave consistently when an element is partially out of view horizontally vs vertically\n _targetElement_scrollIntoView;\n let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();\n targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {\n block: 'nearest'\n });\n let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();\n // Account for sub pixel differences from rounding\n if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {\n var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;\n opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {\n block: 'center',\n inline: 'center'\n });\n (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {\n block: 'nearest'\n });\n }\n } else {\n let scrollParents = (0, $a40c673dc9f6d9c7$export$94ed1c92c7beeb22)(targetElement);\n // If scrolling is prevented, we don't want to scroll the body since it might move the overlay partially offscreen and the user can't scroll it back into view.\n for (let scrollParent of scrollParents)$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);\n }\n }\n}\n\n\nexport {$2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport};\n//# sourceMappingURL=scrollIntoView.module.js.map\n"],"names":["$cc38e7bd3fc7b213$export$2bb74740c4e19def","node","checkForOverflow","style","isScrollable","$62d8ded9296f3872$export$cfa2225e87938781","scrollableNode","$a40c673dc9f6d9c7$export$94ed1c92c7beeb22","scrollParents","$ef06256079686ba0$var$descriptionId","$ef06256079686ba0$var$descriptionNodes","$ef06256079686ba0$export$f8aeda7b10753fa1","description","id","setId","$hQ5Hp$useState","$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c","desc","$2f04cbc44ee30ce0$export$53a0910f038337bd","scrollView","element","offsetX","$2f04cbc44ee30ce0$var$relativeOffset","offsetY","width","height","x","y","borderTopWidth","borderLeftWidth","scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft","borderAdjustedX","borderAdjustedY","maxX","maxY","scrollPaddingTopNumber","scrollPaddingBottomNumber","scrollPaddingRightNumber","scrollPaddingLeftNumber","ancestor","child","axis","prop","sum","$2f04cbc44ee30ce0$export$c826860796309d1b","targetElement","opts","root","scrollParent","_targetElement_scrollIntoView","originalLeft","originalTop","newLeft","newTop","_opts_containingElement_scrollIntoView","_opts_containingElement","_targetElement_scrollIntoView1"],"mappings":"gFAUI,SAASA,EAA0CC,EAAMC,EAAkB,CAC3E,GAAI,CAACD,EAAM,MAAO,GAClB,IAAIE,EAAQ,OAAO,iBAAiBF,CAAI,EACpCG,EAAe,gBAAgB,KAAKD,EAAM,SAAWA,EAAM,UAAYA,EAAM,SAAS,EAC1F,OAAIC,GAAgBF,IAAkBE,EAAeH,EAAK,eAAiBA,EAAK,cAAgBA,EAAK,cAAgBA,EAAK,aACnHG,CACX,CCHA,SAASC,EAA0CJ,EAAMC,EAAkB,CACvE,IAAII,EAAiBL,EAErB,IADQD,EAA2CM,EAAgBJ,CAAgB,IAAGI,EAAiBA,EAAe,eAChHA,GAAkB,CAAKN,EAA2CM,EAAgBJ,CAAgB,GAAEI,EAAiBA,EAAe,cAC1I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