@commercetools/nimbus 0.0.0-canary-20250902075758 → 0.0.0-canary-20250902091333

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 (608) hide show
  1. package/dist/chunks/{Button-Bh-FLo_8.cjs.js → Button-BtJHe9xY.cjs.js} +2 -2
  2. package/dist/chunks/{Button-Bh-FLo_8.cjs.js.map → Button-BtJHe9xY.cjs.js.map} +1 -1
  3. package/dist/chunks/{Button--gemnXF8.es.js → Button-CNBS3n5a.es.js} +3 -3
  4. package/dist/chunks/{Button--gemnXF8.es.js.map → Button-CNBS3n5a.es.js.map} +1 -1
  5. package/dist/chunks/{DateField-DVzmD_D6.es.js → DateField-Dm2Qlhbk.es.js} +71 -58
  6. package/dist/chunks/DateField-Dm2Qlhbk.es.js.map +1 -0
  7. package/dist/chunks/DateField-rweHHCKR.cjs.js +2 -0
  8. package/dist/chunks/DateField-rweHHCKR.cjs.js.map +1 -0
  9. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js +2 -0
  10. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js.map +1 -0
  11. package/dist/chunks/{DatePicker-_A7-hp_b.es.js → DatePicker-BthC1bZ_.es.js} +109 -105
  12. package/dist/chunks/DatePicker-BthC1bZ_.es.js.map +1 -0
  13. package/dist/chunks/Dialog-BeQ6Z6l2.es.js +1924 -0
  14. package/dist/chunks/Dialog-BeQ6Z6l2.es.js.map +1 -0
  15. package/dist/chunks/Dialog-CYa26HlL.cjs.js +2 -0
  16. package/dist/chunks/Dialog-CYa26HlL.cjs.js.map +1 -0
  17. package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -1
  18. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -1
  19. package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -1
  20. package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -1
  21. package/dist/chunks/FocusScope-CNO0fzPs.es.js.map +1 -1
  22. package/dist/chunks/FocusScope-DPn5XtSy.cjs.js.map +1 -1
  23. package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -1
  24. package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -1
  25. package/dist/chunks/Group-Cfixd-fh.es.js.map +1 -1
  26. package/dist/chunks/Group-MdeByg6t.cjs.js.map +1 -1
  27. package/dist/chunks/{Heading-BI5vqfiY.cjs.js → Heading-BaW6t55l.cjs.js} +2 -2
  28. package/dist/chunks/{Heading-BI5vqfiY.cjs.js.map → Heading-BaW6t55l.cjs.js.map} +1 -1
  29. package/dist/chunks/{Heading-sepFdCCa.es.js → Heading-DEfy_f01.es.js} +5 -5
  30. package/dist/chunks/{Heading-sepFdCCa.es.js.map → Heading-DEfy_f01.es.js.map} +1 -1
  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-BiHwUBo4.es.js.map +1 -1
  34. package/dist/chunks/Input-HBDt7LmM.cjs.js.map +1 -1
  35. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
  36. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
  37. package/dist/chunks/Label-B2YyCdLl.es.js.map +1 -1
  38. package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -1
  39. package/dist/chunks/ListBox-CikEmFBx.cjs.js +2 -0
  40. package/dist/chunks/ListBox-CikEmFBx.cjs.js.map +1 -0
  41. package/dist/chunks/ListBox-DF3NHeEX.es.js +605 -0
  42. package/dist/chunks/ListBox-DF3NHeEX.es.js.map +1 -0
  43. package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
  44. package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
  45. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js +2 -0
  46. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js.map +1 -0
  47. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js +491 -0
  48. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js.map +1 -0
  49. package/dist/chunks/{ProgressBar-BNPexoD9.cjs.js → ProgressBar-BA3sLh1k.cjs.js} +2 -2
  50. package/dist/chunks/{ProgressBar-BNPexoD9.cjs.js.map → ProgressBar-BA3sLh1k.cjs.js.map} +1 -1
  51. package/dist/chunks/{ProgressBar-BnGsEC_2.es.js → ProgressBar-DjaUQI7N.es.js} +2 -2
  52. package/dist/chunks/{ProgressBar-BnGsEC_2.es.js.map → ProgressBar-DjaUQI7N.es.js.map} +1 -1
  53. package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -1
  54. package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -1
  55. package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -1
  56. package/dist/chunks/SSRProvider-Cu8KibIK.es.js.map +1 -1
  57. package/dist/chunks/{Collection-Df3FPouy.es.js → SelectionManager-CLyu96pU.es.js} +627 -577
  58. package/dist/chunks/SelectionManager-CLyu96pU.es.js.map +1 -0
  59. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js +18 -0
  60. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js.map +1 -0
  61. package/dist/chunks/Separator-3-E2tRbk.es.js +92 -0
  62. package/dist/chunks/Separator-3-E2tRbk.es.js.map +1 -0
  63. package/dist/chunks/Separator-CAOg-vqY.cjs.js +2 -0
  64. package/dist/chunks/Separator-CAOg-vqY.cjs.js.map +1 -0
  65. package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
  66. package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
  67. package/dist/chunks/TextArea-BmpgvS0R.es.js.map +1 -1
  68. package/dist/chunks/TextArea-D3FFXnUy.cjs.js.map +1 -1
  69. package/dist/chunks/{ToggleButton-BoIyPi3U.es.js → ToggleButton-C3JL0pgD.es.js} +3 -3
  70. package/dist/chunks/{ToggleButton-BoIyPi3U.es.js.map → ToggleButton-C3JL0pgD.es.js.map} +1 -1
  71. package/dist/chunks/{ToggleButton-By3cqA7R.cjs.js → ToggleButton-CPAdPTCr.cjs.js} +2 -2
  72. package/dist/chunks/{ToggleButton-By3cqA7R.cjs.js.map → ToggleButton-CPAdPTCr.cjs.js.map} +1 -1
  73. package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js.map +1 -1
  74. package/dist/chunks/VisuallyHidden-VHEPK04F.es.js.map +1 -1
  75. package/dist/chunks/{accordion-CAC36XIK.cjs.js → accordion-Be--VNW6.cjs.js} +2 -2
  76. package/dist/chunks/{accordion-CAC36XIK.cjs.js.map → accordion-Be--VNW6.cjs.js.map} +1 -1
  77. package/dist/chunks/{accordion-8XmJkF18.es.js → accordion-Drl_Y6QC.es.js} +4 -4
  78. package/dist/chunks/{accordion-8XmJkF18.es.js.map → accordion-Drl_Y6QC.es.js.map} +1 -1
  79. package/dist/chunks/{alert-CbAPX3xQ.es.js → alert-CTCZ5bln.es.js} +5 -5
  80. package/dist/chunks/{alert-CbAPX3xQ.es.js.map → alert-CTCZ5bln.es.js.map} +1 -1
  81. package/dist/chunks/{alert-STlW7NU8.cjs.js → alert-_ZQT8Lkj.cjs.js} +2 -2
  82. package/dist/chunks/{alert-STlW7NU8.cjs.js.map → alert-_ZQT8Lkj.cjs.js.map} +1 -1
  83. package/dist/chunks/{avatar-mL-2hOve.cjs.js → avatar-DEAravTR.cjs.js} +2 -2
  84. package/dist/chunks/{avatar-mL-2hOve.cjs.js.map → avatar-DEAravTR.cjs.js.map} +1 -1
  85. package/dist/chunks/{avatar-B7CMxFNg.es.js → avatar-DXWmY247.es.js} +3 -3
  86. package/dist/chunks/{avatar-B7CMxFNg.es.js.map → avatar-DXWmY247.es.js.map} +1 -1
  87. package/dist/chunks/{badge-HHzfG1BI.cjs.js → badge-BjhZ-byo.cjs.js} +2 -2
  88. package/dist/chunks/{badge-HHzfG1BI.cjs.js.map → badge-BjhZ-byo.cjs.js.map} +1 -1
  89. package/dist/chunks/{badge-C2elCKPp.es.js → badge-Cg7jASs5.es.js} +2 -2
  90. package/dist/chunks/{badge-C2elCKPp.es.js.map → badge-Cg7jASs5.es.js.map} +1 -1
  91. package/dist/chunks/{box-C8731OYq.es.js → box-BK_2R49p.es.js} +2 -2
  92. package/dist/chunks/{box-C8731OYq.es.js.map → box-BK_2R49p.es.js.map} +1 -1
  93. package/dist/chunks/{box-BPfqlznQ.cjs.js → box-BwCVnAwb.cjs.js} +2 -2
  94. package/dist/chunks/{box-BPfqlznQ.cjs.js.map → box-BwCVnAwb.cjs.js.map} +1 -1
  95. package/dist/chunks/{button-_TqIjVy-.es.js → button-CXRRo1Zo.es.js} +5 -5
  96. package/dist/chunks/{button-_TqIjVy-.es.js.map → button-CXRRo1Zo.es.js.map} +1 -1
  97. package/dist/chunks/{button-CtWoT2k5.cjs.js → button-DYpzmnga.cjs.js} +2 -2
  98. package/dist/chunks/{button-CtWoT2k5.cjs.js.map → button-DYpzmnga.cjs.js.map} +1 -1
  99. package/dist/chunks/{calendar-DFhIC3YS.cjs.js → calendar-D7q7B1ej.cjs.js} +2 -2
  100. package/dist/chunks/{calendar-DFhIC3YS.cjs.js.map → calendar-D7q7B1ej.cjs.js.map} +1 -1
  101. package/dist/chunks/{calendar-Cgm2jctu.es.js → calendar-DAPG3st4.es.js} +12 -12
  102. package/dist/chunks/{calendar-Cgm2jctu.es.js.map → calendar-DAPG3st4.es.js.map} +1 -1
  103. package/dist/chunks/{card-R8oaAKgo.es.js → card-DX8r4prk.es.js} +3 -3
  104. package/dist/chunks/{card-R8oaAKgo.es.js.map → card-DX8r4prk.es.js.map} +1 -1
  105. package/dist/chunks/{card-CHfjhPF8.cjs.js → card-DgvP36g1.cjs.js} +2 -2
  106. package/dist/chunks/{card-CHfjhPF8.cjs.js.map → card-DgvP36g1.cjs.js.map} +1 -1
  107. package/dist/chunks/{checkbox-pYAJn7HX.cjs.js → checkbox-Bfms-o7I.cjs.js} +2 -2
  108. package/dist/chunks/{checkbox-pYAJn7HX.cjs.js.map → checkbox-Bfms-o7I.cjs.js.map} +1 -1
  109. package/dist/chunks/{checkbox-Ce37pKIe.es.js → checkbox-KT-n-5er.es.js} +2 -2
  110. package/dist/chunks/{checkbox-Ce37pKIe.es.js.map → checkbox-KT-n-5er.es.js.map} +1 -1
  111. package/dist/chunks/code-C3WbF6Qh.cjs.js +2 -0
  112. package/dist/chunks/{code-CTuEvrXA.cjs.js.map → code-C3WbF6Qh.cjs.js.map} +1 -1
  113. package/dist/chunks/{code-CieYW1ER.es.js → code-DM_AtVy-.es.js} +2 -2
  114. package/dist/chunks/{code-CieYW1ER.es.js.map → code-DM_AtVy-.es.js.map} +1 -1
  115. package/dist/chunks/combobox-BOXZUeIh.cjs.js +2 -0
  116. package/dist/chunks/combobox-BOXZUeIh.cjs.js.map +1 -0
  117. package/dist/chunks/combobox-DpnWEs47.es.js +2392 -0
  118. package/dist/chunks/combobox-DpnWEs47.es.js.map +1 -0
  119. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -1
  120. package/dist/chunks/config-ufbQ08Vi.es.js.map +1 -1
  121. package/dist/chunks/context-OoV8SSWX.cjs.js +2 -0
  122. package/dist/chunks/{context-D0_cRaDZ.cjs.js.map → context-OoV8SSWX.cjs.js.map} +1 -1
  123. package/dist/chunks/context-R4YUlO9Y.es.js +108 -0
  124. package/dist/chunks/{context-Pt-0ojuK.es.js.map → context-R4YUlO9Y.es.js.map} +1 -1
  125. package/dist/chunks/{create-recipe-context-i2odau3L.es.js → create-recipe-context-CrNaylZN.es.js} +4 -4
  126. package/dist/chunks/{create-recipe-context-i2odau3L.es.js.map → create-recipe-context-CrNaylZN.es.js.map} +1 -1
  127. package/dist/chunks/{create-recipe-context-D0_lCuqq.cjs.js → create-recipe-context-bXYFTZLs.cjs.js} +2 -2
  128. package/dist/chunks/{create-recipe-context-D0_lCuqq.cjs.js.map → create-recipe-context-bXYFTZLs.cjs.js.map} +1 -1
  129. package/dist/chunks/{create-slot-recipe-context-DBNItnlK.es.js → create-slot-recipe-context--T0CaFjW.es.js} +3 -3
  130. package/dist/chunks/{create-slot-recipe-context-DBNItnlK.es.js.map → create-slot-recipe-context--T0CaFjW.es.js.map} +1 -1
  131. package/dist/chunks/{create-slot-recipe-context-HIF51Igr.cjs.js → create-slot-recipe-context-CimocFDH.cjs.js} +2 -2
  132. package/dist/chunks/{create-slot-recipe-context-HIF51Igr.cjs.js.map → create-slot-recipe-context-CimocFDH.cjs.js.map} +1 -1
  133. package/dist/chunks/{data-table-BvYN1Stn.es.js → data-table-CkldF9nZ.es.js} +1612 -1564
  134. package/dist/chunks/data-table-CkldF9nZ.es.js.map +1 -0
  135. package/dist/chunks/data-table-DPetwlWs.cjs.js +2 -0
  136. package/dist/chunks/data-table-DPetwlWs.cjs.js.map +1 -0
  137. package/dist/chunks/{date-input-BmKSBIL2.cjs.js → date-input-jXS-SVpU.cjs.js} +2 -2
  138. package/dist/chunks/{date-input-BmKSBIL2.cjs.js.map → date-input-jXS-SVpU.cjs.js.map} +1 -1
  139. package/dist/chunks/{date-input-DFx77xwE.es.js → date-input-wQ1WdB4N.es.js} +4 -4
  140. package/dist/chunks/{date-input-DFx77xwE.es.js.map → date-input-wQ1WdB4N.es.js.map} +1 -1
  141. package/dist/chunks/{date-picker-CsGYO3HW.cjs.js → date-picker-CDbiNEBg.cjs.js} +2 -2
  142. package/dist/chunks/{date-picker-CsGYO3HW.cjs.js.map → date-picker-CDbiNEBg.cjs.js.map} +1 -1
  143. package/dist/chunks/{date-picker-BzkAJfXO.es.js → date-picker-Do5hNEe5.es.js} +13 -13
  144. package/dist/chunks/{date-picker-BzkAJfXO.es.js.map → date-picker-Do5hNEe5.es.js.map} +1 -1
  145. package/dist/chunks/{date-range-picker-uomzPtYK.cjs.js → date-range-picker-Bq6Wkwwo.cjs.js} +2 -2
  146. package/dist/chunks/{date-range-picker-uomzPtYK.cjs.js.map → date-range-picker-Bq6Wkwwo.cjs.js.map} +1 -1
  147. package/dist/chunks/{date-range-picker-B1Sxvj0C.es.js → date-range-picker-DhX5QVXh.es.js} +13 -13
  148. package/dist/chunks/{date-range-picker-B1Sxvj0C.es.js.map → date-range-picker-DhX5QVXh.es.js.map} +1 -1
  149. package/dist/chunks/dialog-BQa_NWSr.cjs.js +2 -0
  150. package/dist/chunks/dialog-BQa_NWSr.cjs.js.map +1 -0
  151. package/dist/chunks/dialog-D4u5so0e.es.js +1912 -0
  152. package/dist/chunks/dialog-D4u5so0e.es.js.map +1 -0
  153. package/dist/chunks/{divider-CpctZ_-U.es.js → divider-Cjs3ESH7.es.js} +2 -2
  154. package/dist/chunks/{divider-CpctZ_-U.es.js.map → divider-Cjs3ESH7.es.js.map} +1 -1
  155. package/dist/chunks/{divider-CTTExmLv.cjs.js → divider-DU351gdE.cjs.js} +2 -2
  156. package/dist/chunks/{divider-CTTExmLv.cjs.js.map → divider-DU351gdE.cjs.js.map} +1 -1
  157. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -1
  158. package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -1
  159. package/dist/chunks/{factory-DlCuwIGL.cjs.js → factory-CVGqU9CD.cjs.js} +2 -2
  160. package/dist/chunks/{factory-DlCuwIGL.cjs.js.map → factory-CVGqU9CD.cjs.js.map} +1 -1
  161. package/dist/chunks/{factory-BpxiKxSs.es.js → factory-DmIX2puY.es.js} +2 -2
  162. package/dist/chunks/{factory-BpxiKxSs.es.js.map → factory-DmIX2puY.es.js.map} +1 -1
  163. package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -1
  164. package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -1
  165. package/dist/chunks/{flex-B81RbgfK.es.js → flex-BFC_f5BH.es.js} +2 -2
  166. package/dist/chunks/{flex-B81RbgfK.es.js.map → flex-BFC_f5BH.es.js.map} +1 -1
  167. package/dist/chunks/{flex-BhVeeItQ.cjs.js → flex-yqydM5z_.cjs.js} +2 -2
  168. package/dist/chunks/{flex-BhVeeItQ.cjs.js.map → flex-yqydM5z_.cjs.js.map} +1 -1
  169. package/dist/chunks/focusSafely-DJpphVHF.es.js.map +1 -1
  170. package/dist/chunks/focusSafely-jDMW9aEx.cjs.js.map +1 -1
  171. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  172. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  173. package/dist/chunks/{form-field-B1B4BtvO.es.js → form-field-B8N-bvac.es.js} +5 -5
  174. package/dist/chunks/{form-field-B1B4BtvO.es.js.map → form-field-B8N-bvac.es.js.map} +1 -1
  175. package/dist/chunks/{form-field-6_jyAhgo.cjs.js → form-field-CH2EUQMc.cjs.js} +2 -2
  176. package/dist/chunks/{form-field-6_jyAhgo.cjs.js.map → form-field-CH2EUQMc.cjs.js.map} +1 -1
  177. package/dist/chunks/{grid-Cdmh4YaF.es.js → grid-B3Ggy_FW.es.js} +2 -2
  178. package/dist/chunks/{grid-Cdmh4YaF.es.js.map → grid-B3Ggy_FW.es.js.map} +1 -1
  179. package/dist/chunks/{grid-CWdLtU5p.cjs.js → grid-CXpKN2OR.cjs.js} +2 -2
  180. package/dist/chunks/{grid-CWdLtU5p.cjs.js.map → grid-CXpKN2OR.cjs.js.map} +1 -1
  181. package/dist/chunks/{grid-item-CJHf3veC.cjs.js → grid-item-CGwfSnm7.cjs.js} +2 -2
  182. package/dist/chunks/{grid-item-CJHf3veC.cjs.js.map → grid-item-CGwfSnm7.cjs.js.map} +1 -1
  183. package/dist/chunks/{grid-item-CpPkpUVF.es.js → grid-item-DuAynDd1.es.js} +3 -3
  184. package/dist/chunks/{grid-item-CpPkpUVF.es.js.map → grid-item-DuAynDd1.es.js.map} +1 -1
  185. package/dist/chunks/{icon-DTe62Nqz.es.js → icon-BDsjJ4Zi.es.js} +2 -2
  186. package/dist/chunks/{icon-DTe62Nqz.es.js.map → icon-BDsjJ4Zi.es.js.map} +1 -1
  187. package/dist/chunks/{icon-C_BZeqkm.cjs.js → icon-DHoLo7_S.cjs.js} +2 -2
  188. package/dist/chunks/{icon-C_BZeqkm.cjs.js.map → icon-DHoLo7_S.cjs.js.map} +1 -1
  189. package/dist/chunks/{icon-button-Dqhm4rBI.cjs.js → icon-button-1MQYEWVd.cjs.js} +2 -2
  190. package/dist/chunks/{icon-button-Dqhm4rBI.cjs.js.map → icon-button-1MQYEWVd.cjs.js.map} +1 -1
  191. package/dist/chunks/{icon-button-oIKucbza.es.js → icon-button-Bp92vS0I.es.js} +2 -2
  192. package/dist/chunks/{icon-button-oIKucbza.es.js.map → icon-button-Bp92vS0I.es.js.map} +1 -1
  193. package/dist/chunks/{icon-toggle-button-DIfDVDd4.cjs.js → icon-toggle-button-D42wYTJF.cjs.js} +2 -2
  194. package/dist/chunks/{icon-toggle-button-DIfDVDd4.cjs.js.map → icon-toggle-button-D42wYTJF.cjs.js.map} +1 -1
  195. package/dist/chunks/{icon-toggle-button-BYKHQRsq.es.js → icon-toggle-button-D7N1RxnR.es.js} +2 -2
  196. package/dist/chunks/{icon-toggle-button-BYKHQRsq.es.js.map → icon-toggle-button-D7N1RxnR.es.js.map} +1 -1
  197. package/dist/chunks/{image-BP9LcU28.cjs.js → image-B3ISQSVL.cjs.js} +2 -2
  198. package/dist/chunks/{image-BP9LcU28.cjs.js.map → image-B3ISQSVL.cjs.js.map} +1 -1
  199. package/dist/chunks/{image-BycsRl2K.es.js → image-CwcCZREa.es.js} +2 -2
  200. package/dist/chunks/{image-BycsRl2K.es.js.map → image-CwcCZREa.es.js.map} +1 -1
  201. package/dist/chunks/{image-B2WbQ5hi.es.js → image-MeWmLoV0.es.js} +2 -2
  202. package/dist/chunks/{image-B2WbQ5hi.es.js.map → image-MeWmLoV0.es.js.map} +1 -1
  203. package/dist/chunks/image-bt28epM5.cjs.js +2 -0
  204. package/dist/chunks/{image-BAqoLZQB.cjs.js.map → image-bt28epM5.cjs.js.map} +1 -1
  205. package/dist/chunks/{index-0CyuQQet.es.js → index-46Tt2Ww4.es.js} +2 -2
  206. package/dist/chunks/{index-0CyuQQet.es.js.map → index-46Tt2Ww4.es.js.map} +1 -1
  207. package/dist/chunks/index-BYEAMD8A.cjs.js +2 -0
  208. package/dist/chunks/{index-x9OhLGGf.cjs.js.map → index-BYEAMD8A.cjs.js.map} +1 -1
  209. package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -1
  210. package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -1
  211. package/dist/chunks/{kbd-CDEXQyg2.es.js → kbd-Bc97Bwq3.es.js} +2 -2
  212. package/dist/chunks/{kbd-CDEXQyg2.es.js.map → kbd-Bc97Bwq3.es.js.map} +1 -1
  213. package/dist/chunks/{kbd-DP3lZ80W.cjs.js → kbd-BlZ2RGfa.cjs.js} +2 -2
  214. package/dist/chunks/{kbd-DP3lZ80W.cjs.js.map → kbd-BlZ2RGfa.cjs.js.map} +1 -1
  215. package/dist/chunks/{link-BoUhLeO-.es.js → link-DjzrPyx3.es.js} +2 -2
  216. package/dist/chunks/{link-BoUhLeO-.es.js.map → link-DjzrPyx3.es.js.map} +1 -1
  217. package/dist/chunks/{link-DTUiEXYJ.cjs.js → link-DzUonoQg.cjs.js} +2 -2
  218. package/dist/chunks/{link-DTUiEXYJ.cjs.js.map → link-DzUonoQg.cjs.js.map} +1 -1
  219. package/dist/chunks/{list-x423RThD.es.js → list-BTkkDy6B.es.js} +2 -2
  220. package/dist/chunks/{list-x423RThD.es.js.map → list-BTkkDy6B.es.js.map} +1 -1
  221. package/dist/chunks/{list-r1G4iBXo.cjs.js → list-DokC0Ks-.cjs.js} +2 -2
  222. package/dist/chunks/{list-r1G4iBXo.cjs.js.map → list-DokC0Ks-.cjs.js.map} +1 -1
  223. package/dist/chunks/{loading-spinner-C7yZE-QF.es.js → loading-spinner-DuBf2cIy.es.js} +3 -3
  224. package/dist/chunks/{loading-spinner-C7yZE-QF.es.js.map → loading-spinner-DuBf2cIy.es.js.map} +1 -1
  225. package/dist/chunks/{loading-spinner-BLDpwNFm.cjs.js → loading-spinner-VVQyl725.cjs.js} +2 -2
  226. package/dist/chunks/{loading-spinner-BLDpwNFm.cjs.js.map → loading-spinner-VVQyl725.cjs.js.map} +1 -1
  227. package/dist/chunks/{menu-BZWMAG92.es.js → menu-DFrwX16L.es.js} +25 -25
  228. package/dist/chunks/{menu-BZWMAG92.es.js.map → menu-DFrwX16L.es.js.map} +1 -1
  229. package/dist/chunks/menu-DHZ-kLy2.cjs.js +2 -0
  230. package/dist/chunks/{menu-C41LRy4b.cjs.js.map → menu-DHZ-kLy2.cjs.js.map} +1 -1
  231. package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -1
  232. package/dist/chunks/mergeProps-B_9syxhT.es.js.map +1 -1
  233. package/dist/chunks/{multiline-text-input-Dy6gbL7T.es.js → multiline-text-input-DJUUQQcc.es.js} +3 -3
  234. package/dist/chunks/{multiline-text-input-Dy6gbL7T.es.js.map → multiline-text-input-DJUUQQcc.es.js.map} +1 -1
  235. package/dist/chunks/{multiline-text-input-B5XtIAAO.cjs.js → multiline-text-input-c-ycPy7O.cjs.js} +2 -2
  236. package/dist/chunks/{multiline-text-input-B5XtIAAO.cjs.js.map → multiline-text-input-c-ycPy7O.cjs.js.map} +1 -1
  237. package/dist/chunks/{namespace-HxAMZBwF.es.js → namespace---Td8pR2.es.js} +3 -3
  238. package/dist/chunks/{namespace-HxAMZBwF.es.js.map → namespace---Td8pR2.es.js.map} +1 -1
  239. package/dist/chunks/{namespace-CYjqWfVn.cjs.js → namespace-CpLmDcCq.cjs.js} +2 -2
  240. package/dist/chunks/{namespace-CYjqWfVn.cjs.js.map → namespace-CpLmDcCq.cjs.js.map} +1 -1
  241. package/dist/chunks/{nimbus-provider-Yka95N38.cjs.js → nimbus-provider-CVhVm-aq.cjs.js} +2 -2
  242. package/dist/chunks/{nimbus-provider-Yka95N38.cjs.js.map → nimbus-provider-CVhVm-aq.cjs.js.map} +1 -1
  243. package/dist/chunks/{nimbus-provider-C68IpiXi.es.js → nimbus-provider-_f5vEIR_.es.js} +3 -3
  244. package/dist/chunks/{nimbus-provider-C68IpiXi.es.js.map → nimbus-provider-_f5vEIR_.es.js.map} +1 -1
  245. package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -1
  246. package/dist/chunks/number-dMxJejI6.es.js.map +1 -1
  247. package/dist/chunks/{number-input-Dm2FFtQx.cjs.js → number-input-BFmnS-UB.cjs.js} +2 -2
  248. package/dist/chunks/{number-input-Dm2FFtQx.cjs.js.map → number-input-BFmnS-UB.cjs.js.map} +1 -1
  249. package/dist/chunks/{number-input-BxLU6AgG.es.js → number-input-DloMrtt6.es.js} +8 -8
  250. package/dist/chunks/{number-input-BxLU6AgG.es.js.map → number-input-DloMrtt6.es.js.map} +1 -1
  251. package/dist/chunks/openLink-Ctl0AdAy.es.js.map +1 -1
  252. package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -1
  253. package/dist/chunks/{password-input-CwWWxcly.cjs.js → password-input-C-tPs6EJ.cjs.js} +2 -2
  254. package/dist/chunks/{password-input-CwWWxcly.cjs.js.map → password-input-C-tPs6EJ.cjs.js.map} +1 -1
  255. package/dist/chunks/{password-input-DJjAz3TP.es.js → password-input-CBdBny43.es.js} +5 -5
  256. package/dist/chunks/{password-input-DJjAz3TP.es.js.map → password-input-CBdBny43.es.js.map} +1 -1
  257. package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -1
  258. package/dist/chunks/platform-Z5fvtFmM.es.js.map +1 -1
  259. package/dist/chunks/{progress-bar-CDRI279T.es.js → progress-bar-Dx1MVCsz.es.js} +5 -5
  260. package/dist/chunks/{progress-bar-CDRI279T.es.js.map → progress-bar-Dx1MVCsz.es.js.map} +1 -1
  261. package/dist/chunks/{progress-bar-nQCcdv_4.cjs.js → progress-bar-vPPXrzbA.cjs.js} +2 -2
  262. package/dist/chunks/{progress-bar-nQCcdv_4.cjs.js.map → progress-bar-vPPXrzbA.cjs.js.map} +1 -1
  263. package/dist/chunks/{provider-DxFdjgyb.es.js → provider-CHFgwvsP.es.js} +3 -3
  264. package/dist/chunks/provider-CHFgwvsP.es.js.map +1 -0
  265. package/dist/chunks/provider-DFlBEH6q.cjs.js +16 -0
  266. package/dist/chunks/provider-DFlBEH6q.cjs.js.map +1 -0
  267. package/dist/chunks/{radio-input-BXFY8CaT.cjs.js → radio-input-1eswyY0o.cjs.js} +2 -2
  268. package/dist/chunks/{radio-input-BXFY8CaT.cjs.js.map → radio-input-1eswyY0o.cjs.js.map} +1 -1
  269. package/dist/chunks/{radio-input-CAogtJP7.es.js → radio-input-D-9Q8REK.es.js} +3 -3
  270. package/dist/chunks/{radio-input-CAogtJP7.es.js.map → radio-input-D-9Q8REK.es.js.map} +1 -1
  271. package/dist/chunks/{range-calendar-D-CvB2-1.es.js → range-calendar-B6T5RB2u.es.js} +12 -12
  272. package/dist/chunks/{range-calendar-D-CvB2-1.es.js.map → range-calendar-B6T5RB2u.es.js.map} +1 -1
  273. package/dist/chunks/{range-calendar-BuzvPCc1.cjs.js → range-calendar-NhqUtCdU.cjs.js} +2 -2
  274. package/dist/chunks/{range-calendar-BuzvPCc1.cjs.js.map → range-calendar-NhqUtCdU.cjs.js.map} +1 -1
  275. package/dist/chunks/{rich-text-input-Dv7OofX2.es.js → rich-text-input-BvYBUkt_.es.js} +12 -12
  276. package/dist/chunks/{rich-text-input-Dv7OofX2.es.js.map → rich-text-input-BvYBUkt_.es.js.map} +1 -1
  277. package/dist/chunks/{rich-text-input-Dmp5hx2t.cjs.js → rich-text-input-DXzaZuhE.cjs.js} +2 -2
  278. package/dist/chunks/{rich-text-input-Dmp5hx2t.cjs.js.map → rich-text-input-DXzaZuhE.cjs.js.map} +1 -1
  279. package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +1 -1
  280. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -1
  281. package/dist/chunks/select-CXwoEwFo.cjs.js +2 -0
  282. package/dist/chunks/{select-IUEop3i7.cjs.js.map → select-CXwoEwFo.cjs.js.map} +1 -1
  283. package/dist/chunks/{select-Dlg0m5Ww.es.js → select-CanxdDbU.es.js} +15 -15
  284. package/dist/chunks/{select-Dlg0m5Ww.es.js.map → select-CanxdDbU.es.js.map} +1 -1
  285. package/dist/chunks/{simple-grid-yOwvCBEN.cjs.js → simple-grid-B7BgfVAS.cjs.js} +2 -2
  286. package/dist/chunks/{simple-grid-yOwvCBEN.cjs.js.map → simple-grid-B7BgfVAS.cjs.js.map} +1 -1
  287. package/dist/chunks/{simple-grid-Crtlocqj.es.js → simple-grid-C6GRMtip.es.js} +4 -4
  288. package/dist/chunks/{simple-grid-Crtlocqj.es.js.map → simple-grid-C6GRMtip.es.js.map} +1 -1
  289. package/dist/chunks/{slate-helpers-CMAwCMk0.cjs.js → slate-helpers-BN_9Hky2.cjs.js} +3 -3
  290. package/dist/chunks/{slate-helpers-CMAwCMk0.cjs.js.map → slate-helpers-BN_9Hky2.cjs.js.map} +1 -1
  291. package/dist/chunks/{slate-helpers-BwRHJO4o.es.js → slate-helpers-DunxggA8.es.js} +45 -45
  292. package/dist/chunks/{slate-helpers-BwRHJO4o.es.js.map → slate-helpers-DunxggA8.es.js.map} +1 -1
  293. package/dist/chunks/{split-button-Dpj44F6g.es.js → split-button-BTheahW8.es.js} +4 -4
  294. package/dist/chunks/{split-button-Dpj44F6g.es.js.map → split-button-BTheahW8.es.js.map} +1 -1
  295. package/dist/chunks/{split-button-B4Wp7H3n.cjs.js → split-button-CM-MvUGD.cjs.js} +2 -2
  296. package/dist/chunks/{split-button-B4Wp7H3n.cjs.js.map → split-button-CM-MvUGD.cjs.js.map} +1 -1
  297. package/dist/chunks/{stack-B6PqFPMh.cjs.js → stack-BG0j9HvT.cjs.js} +2 -2
  298. package/dist/chunks/{stack-B6PqFPMh.cjs.js.map → stack-BG0j9HvT.cjs.js.map} +1 -1
  299. package/dist/chunks/{stack-CBx-c8hI.es.js → stack-QzuqKTKb.es.js} +3 -3
  300. package/dist/chunks/{stack-CBx-c8hI.es.js.map → stack-QzuqKTKb.es.js.map} +1 -1
  301. package/dist/chunks/{switch-CeNcr608.cjs.js → switch-D2Wfgfnu.cjs.js} +2 -2
  302. package/dist/chunks/{switch-CeNcr608.cjs.js.map → switch-D2Wfgfnu.cjs.js.map} +1 -1
  303. package/dist/chunks/{switch-Ba9WXDDP.es.js → switch-DfH87j5a.es.js} +2 -2
  304. package/dist/chunks/{switch-Ba9WXDDP.es.js.map → switch-DfH87j5a.es.js.map} +1 -1
  305. package/dist/chunks/tag-group-BxRaZjiA.cjs.js +2 -0
  306. package/dist/chunks/tag-group-BxRaZjiA.cjs.js.map +1 -0
  307. package/dist/chunks/{tag-group-BY7yGmmv.es.js → tag-group-EIsTAERM.es.js} +278 -265
  308. package/dist/chunks/tag-group-EIsTAERM.es.js.map +1 -0
  309. package/dist/chunks/{text-B2wziCK6.es.js → text-DSjt3Sqv.es.js} +2 -2
  310. package/dist/chunks/{text-B2wziCK6.es.js.map → text-DSjt3Sqv.es.js.map} +1 -1
  311. package/dist/chunks/{text-hUMahKuA.cjs.js → text-Dg1sFCuC.cjs.js} +2 -2
  312. package/dist/chunks/{text-hUMahKuA.cjs.js.map → text-Dg1sFCuC.cjs.js.map} +1 -1
  313. package/dist/chunks/{text-input-82882hyq.es.js → text-input-BnwR9awD.es.js} +3 -3
  314. package/dist/chunks/{text-input-82882hyq.es.js.map → text-input-BnwR9awD.es.js.map} +1 -1
  315. package/dist/chunks/{text-input-CBcEG79G.cjs.js → text-input-DtwV2zvu.cjs.js} +2 -2
  316. package/dist/chunks/{text-input-CBcEG79G.cjs.js.map → text-input-DtwV2zvu.cjs.js.map} +1 -1
  317. package/dist/chunks/{time-input-CCnD_SWq.cjs.js → time-input-BS5RS11d.cjs.js} +2 -2
  318. package/dist/chunks/{time-input-CCnD_SWq.cjs.js.map → time-input-BS5RS11d.cjs.js.map} +1 -1
  319. package/dist/chunks/{time-input-DAA-IK0I.es.js → time-input-BuFPyNcW.es.js} +4 -4
  320. package/dist/chunks/{time-input-DAA-IK0I.es.js.map → time-input-BuFPyNcW.es.js.map} +1 -1
  321. package/dist/chunks/{toggle-button-163ZMcpk.es.js → toggle-button-B5nYtXCP.es.js} +5 -5
  322. package/dist/chunks/{toggle-button-163ZMcpk.es.js.map → toggle-button-B5nYtXCP.es.js.map} +1 -1
  323. package/dist/chunks/{toggle-button-BTYd563-.cjs.js → toggle-button-CZcbVyDV.cjs.js} +2 -2
  324. package/dist/chunks/{toggle-button-BTYd563-.cjs.js.map → toggle-button-CZcbVyDV.cjs.js.map} +1 -1
  325. package/dist/chunks/{toggle-button-group-D-sGsuZ_.es.js → toggle-button-group-DHMnBWSg.es.js} +3 -3
  326. package/dist/chunks/{toggle-button-group-D-sGsuZ_.es.js.map → toggle-button-group-DHMnBWSg.es.js.map} +1 -1
  327. package/dist/chunks/{toggle-button-group-Dq51N27j.cjs.js → toggle-button-group-LddoXszz.cjs.js} +2 -2
  328. package/dist/chunks/{toggle-button-group-Dq51N27j.cjs.js.map → toggle-button-group-LddoXszz.cjs.js.map} +1 -1
  329. package/dist/chunks/{toolbar-Ch-bOLkm.es.js → toolbar-CWst3Tik.es.js} +2 -2
  330. package/dist/chunks/{toolbar-Ch-bOLkm.es.js.map → toolbar-CWst3Tik.es.js.map} +1 -1
  331. package/dist/chunks/{toolbar-CzXpYEbP.cjs.js → toolbar-CrxjHhQi.cjs.js} +2 -2
  332. package/dist/chunks/{toolbar-CzXpYEbP.cjs.js.map → toolbar-CrxjHhQi.cjs.js.map} +1 -1
  333. package/dist/chunks/tooltip-CIAEV4_B.cjs.js +2 -0
  334. package/dist/chunks/tooltip-CIAEV4_B.cjs.js.map +1 -0
  335. package/dist/chunks/tooltip-CTvNYvui.es.js +269 -0
  336. package/dist/chunks/tooltip-CTvNYvui.es.js.map +1 -0
  337. package/dist/chunks/{use-formatting-state-Denpy3Zo.cjs.js → use-formatting-state-DVcnyVBl.cjs.js} +2 -2
  338. package/dist/chunks/{use-formatting-state-Denpy3Zo.cjs.js.map → use-formatting-state-DVcnyVBl.cjs.js.map} +1 -1
  339. package/dist/chunks/{use-formatting-state-RJvSR-Zg.es.js → use-formatting-state-DdKYccZs.es.js} +2 -2
  340. package/dist/chunks/{use-formatting-state-RJvSR-Zg.es.js.map → use-formatting-state-DdKYccZs.es.js.map} +1 -1
  341. package/dist/chunks/{use-recipe-CR4W7Dne.es.js → use-recipe-DuU8En0C.es.js} +2 -2
  342. package/dist/chunks/{use-recipe-CR4W7Dne.es.js.map → use-recipe-DuU8En0C.es.js.map} +1 -1
  343. package/dist/chunks/use-recipe-pbWWLWIq.cjs.js +2 -0
  344. package/dist/chunks/{use-recipe-BZ_iqCkN.cjs.js.map → use-recipe-pbWWLWIq.cjs.js.map} +1 -1
  345. package/dist/chunks/{useButton-C8n_NtBu.cjs.js → useButton-BgBfaV_L.cjs.js} +2 -2
  346. package/dist/chunks/{useButton-C8n_NtBu.cjs.js.map → useButton-BgBfaV_L.cjs.js.map} +1 -1
  347. package/dist/chunks/{useButton-M3_syr-Y.es.js → useButton-DAeSjgg9.es.js} +19 -18
  348. package/dist/chunks/{useButton-M3_syr-Y.es.js.map → useButton-DAeSjgg9.es.js.map} +1 -1
  349. package/dist/chunks/{useCollator-BvjDbml1.es.js → useCollator-BHMZd1r6.es.js} +2 -2
  350. package/dist/chunks/{useCollator-BvjDbml1.es.js.map → useCollator-BHMZd1r6.es.js.map} +1 -1
  351. package/dist/chunks/{useCollator-ZqnkTllN.cjs.js → useCollator-YVJAe1GI.cjs.js} +2 -2
  352. package/dist/chunks/{useCollator-ZqnkTllN.cjs.js.map → useCollator-YVJAe1GI.cjs.js.map} +1 -1
  353. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  354. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  355. package/dist/chunks/{useDateFormatter-BqJA667a.es.js → useDateFormatter-C7Kxzwro.es.js} +2 -2
  356. package/dist/chunks/useDateFormatter-C7Kxzwro.es.js.map +1 -0
  357. package/dist/chunks/{useDateFormatter-Dq2Ly1Je.cjs.js → useDateFormatter-CS19Cch2.cjs.js} +2 -2
  358. package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js.map +1 -0
  359. package/dist/chunks/useEvent-CuUOU5WV.cjs.js.map +1 -1
  360. package/dist/chunks/useEvent-YHhqZvpU.es.js.map +1 -1
  361. package/dist/chunks/useField-Ce9zQxmx.es.js.map +1 -1
  362. package/dist/chunks/useField-DmqO9k7a.cjs.js.map +1 -1
  363. package/dist/chunks/{useFilter-Du48WXDn.cjs.js → useFilter-CG8lxfCP.cjs.js} +2 -2
  364. package/dist/chunks/{useFilter-Du48WXDn.cjs.js.map → useFilter-CG8lxfCP.cjs.js.map} +1 -1
  365. package/dist/chunks/{useFilter-Bh0adxQ-.es.js → useFilter-DOfNzeZ9.es.js} +2 -2
  366. package/dist/chunks/{useFilter-Bh0adxQ-.es.js.map → useFilter-DOfNzeZ9.es.js.map} +1 -1
  367. package/dist/chunks/useFocus-BtJ38vev.cjs.js.map +1 -1
  368. package/dist/chunks/useFocus-DkWJ2TJC.es.js.map +1 -1
  369. package/dist/chunks/useFocusRing-CzFer4bD.cjs.js.map +1 -1
  370. package/dist/chunks/useFocusRing-updnkDQg.es.js.map +1 -1
  371. package/dist/chunks/useFocusVisible-CWDaG0ze.es.js.map +1 -1
  372. package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js.map +1 -1
  373. package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js.map +1 -1
  374. package/dist/chunks/useFocusWithin-ByYlHjju.es.js.map +1 -1
  375. package/dist/chunks/useFocusable-CrsD8ZcF.es.js.map +1 -1
  376. package/dist/chunks/useFocusable-DCgmQxS1.cjs.js.map +1 -1
  377. package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -1
  378. package/dist/chunks/useFormReset-DurgUJL-.es.js.map +1 -1
  379. package/dist/chunks/useFormValidation-4hZ1_a6w.es.js.map +1 -1
  380. package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js.map +1 -1
  381. package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -1
  382. package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -1
  383. package/dist/chunks/{useHighlightSelectionDescription-CsL0QM95.es.js → useHighlightSelectionDescription-BQg1WcM3.es.js} +2 -2
  384. package/dist/chunks/{useHighlightSelectionDescription-CsL0QM95.es.js.map → useHighlightSelectionDescription-BQg1WcM3.es.js.map} +1 -1
  385. package/dist/chunks/{useHighlightSelectionDescription-DwBGGESb.cjs.js → useHighlightSelectionDescription-CpDw-Mgj.cjs.js} +2 -2
  386. package/dist/chunks/{useHighlightSelectionDescription-DwBGGESb.cjs.js.map → useHighlightSelectionDescription-CpDw-Mgj.cjs.js.map} +1 -1
  387. package/dist/chunks/useHover-CiP9jMFy.cjs.js.map +1 -1
  388. package/dist/chunks/useHover-DhoE75lX.es.js.map +1 -1
  389. package/dist/chunks/useLabel-BBmkkrPP.es.js.map +1 -1
  390. package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +1 -1
  391. package/dist/chunks/{useLocalizedStringFormatter-CvzOUusg.es.js → useLocalizedStringFormatter-BRnRyxJp.es.js} +2 -2
  392. package/dist/chunks/{useLocalizedStringFormatter-CvzOUusg.es.js.map → useLocalizedStringFormatter-BRnRyxJp.es.js.map} +1 -1
  393. package/dist/chunks/{useLocalizedStringFormatter-fJnbqb2x.cjs.js → useLocalizedStringFormatter-sB0mFYtL.cjs.js} +2 -2
  394. package/dist/chunks/{useLocalizedStringFormatter-fJnbqb2x.cjs.js.map → useLocalizedStringFormatter-sB0mFYtL.cjs.js.map} +1 -1
  395. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  396. package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
  397. package/dist/chunks/usePress-C8-hLXJw.cjs.js.map +1 -1
  398. package/dist/chunks/usePress-DHhWHfMz.es.js.map +1 -1
  399. package/dist/chunks/{useProgressBar-BgURyN6q.es.js → useProgressBar-DHFmTHqL.es.js} +2 -2
  400. package/dist/chunks/{useProgressBar-BgURyN6q.es.js.map → useProgressBar-DHFmTHqL.es.js.map} +1 -1
  401. package/dist/chunks/{useProgressBar-8ZyM2_T3.cjs.js → useProgressBar-DWH4I0qR.cjs.js} +2 -2
  402. package/dist/chunks/{useProgressBar-8ZyM2_T3.cjs.js.map → useProgressBar-DWH4I0qR.cjs.js.map} +1 -1
  403. package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +1 -1
  404. package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +1 -1
  405. package/dist/chunks/{useSingleSelectListState-CYqW_Fx5.es.js → useSingleSelectListState-D1rjgMv_.es.js} +2 -2
  406. package/dist/chunks/{useSingleSelectListState-CYqW_Fx5.es.js.map → useSingleSelectListState-D1rjgMv_.es.js.map} +1 -1
  407. package/dist/chunks/{useSingleSelectListState-8Jfm9Pr1.cjs.js → useSingleSelectListState-F2WkLZRg.cjs.js} +2 -2
  408. package/dist/chunks/{useSingleSelectListState-8Jfm9Pr1.cjs.js.map → useSingleSelectListState-F2WkLZRg.cjs.js.map} +1 -1
  409. package/dist/chunks/{useSpinButton-C-tpK-T9.es.js → useSpinButton-C9DPDo0r.es.js} +30 -30
  410. package/dist/chunks/useSpinButton-C9DPDo0r.es.js.map +1 -0
  411. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js +2 -0
  412. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js.map +1 -0
  413. package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -1
  414. package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -1
  415. package/dist/chunks/useTextField-BcthGRd8.cjs.js.map +1 -1
  416. package/dist/chunks/useTextField-BnL6tOdd.es.js.map +1 -1
  417. package/dist/chunks/useToggle-DqruaaTq.es.js.map +1 -1
  418. package/dist/chunks/useToggle-VJWgbeCC.cjs.js.map +1 -1
  419. package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -1
  420. package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -1
  421. package/dist/chunks/{useToolbar-Coi7qK2U.cjs.js → useToolbar-Bqn3EANT.cjs.js} +2 -2
  422. package/dist/chunks/{useToolbar-Coi7qK2U.cjs.js.map → useToolbar-Bqn3EANT.cjs.js.map} +1 -1
  423. package/dist/chunks/{useToolbar-9B43whQM.es.js → useToolbar-CLH6Sjes.es.js} +2 -2
  424. package/dist/chunks/{useToolbar-9B43whQM.es.js.map → useToolbar-CLH6Sjes.es.js.map} +1 -1
  425. package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
  426. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  427. package/dist/chunks/utils-BGHwK7fd.cjs.js.map +1 -1
  428. package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -1
  429. package/dist/chunks/utils-BkdW_cdL.es.js.map +1 -1
  430. package/dist/chunks/utils-jpfA6kxk.es.js.map +1 -1
  431. package/dist/chunks/{walk-object-Ad4Rz5Gh.cjs.js → walk-object-CPVtf-bb.cjs.js} +2 -2
  432. package/dist/chunks/{walk-object-Ad4Rz5Gh.cjs.js.map → walk-object-CPVtf-bb.cjs.js.map} +1 -1
  433. package/dist/chunks/{walk-object-Drjey5HY.es.js → walk-object-Dpb8i9wi.es.js} +2 -2
  434. package/dist/chunks/{walk-object-Drjey5HY.es.js.map → walk-object-Dpb8i9wi.es.js.map} +1 -1
  435. package/dist/components/accordion.cjs +1 -1
  436. package/dist/components/accordion.es.js +1 -1
  437. package/dist/components/alert.cjs +1 -1
  438. package/dist/components/alert.es.js +1 -1
  439. package/dist/components/avatar.cjs +1 -1
  440. package/dist/components/avatar.es.js +1 -1
  441. package/dist/components/badge.cjs +1 -1
  442. package/dist/components/badge.es.js +1 -1
  443. package/dist/components/box.cjs +1 -1
  444. package/dist/components/box.es.js +1 -1
  445. package/dist/components/button.cjs +1 -1
  446. package/dist/components/button.es.js +1 -1
  447. package/dist/components/calendar.cjs +1 -1
  448. package/dist/components/calendar.es.js +1 -1
  449. package/dist/components/card.cjs +1 -1
  450. package/dist/components/card.es.js +1 -1
  451. package/dist/components/checkbox.cjs +1 -1
  452. package/dist/components/checkbox.es.js +1 -1
  453. package/dist/components/code.cjs +1 -1
  454. package/dist/components/code.es.js +1 -1
  455. package/dist/components/combobox.cjs +1 -1
  456. package/dist/components/combobox.es.js +1 -1
  457. package/dist/components/components.cjs +1 -1
  458. package/dist/components/components.es.js +52 -52
  459. package/dist/components/data-table.cjs +1 -1
  460. package/dist/components/data-table.es.js +1 -1
  461. package/dist/components/date-input.cjs +1 -1
  462. package/dist/components/date-input.es.js +1 -1
  463. package/dist/components/date-picker.cjs +1 -1
  464. package/dist/components/date-picker.es.js +1 -1
  465. package/dist/components/date-range-picker.cjs +1 -1
  466. package/dist/components/date-range-picker.es.js +1 -1
  467. package/dist/components/dialog.cjs +1 -1
  468. package/dist/components/dialog.es.js +1 -1
  469. package/dist/components/divider.cjs +1 -1
  470. package/dist/components/divider.es.js +1 -1
  471. package/dist/components/flex.cjs +1 -1
  472. package/dist/components/flex.es.js +1 -1
  473. package/dist/components/form-field.cjs +1 -1
  474. package/dist/components/form-field.es.js +1 -1
  475. package/dist/components/grid.cjs +1 -1
  476. package/dist/components/grid.es.js +1 -1
  477. package/dist/components/heading.cjs +1 -1
  478. package/dist/components/heading.es.js +1 -1
  479. package/dist/components/hooks.cjs +1 -1
  480. package/dist/components/hooks.es.js +1 -1
  481. package/dist/components/icon-button.cjs +1 -1
  482. package/dist/components/icon-button.es.js +1 -1
  483. package/dist/components/icon-toggle-button.cjs +1 -1
  484. package/dist/components/icon-toggle-button.es.js +1 -1
  485. package/dist/components/icon.cjs +1 -1
  486. package/dist/components/icon.es.js +1 -1
  487. package/dist/components/image.cjs +1 -1
  488. package/dist/components/image.es.js +1 -1
  489. package/dist/components/kbd.cjs +1 -1
  490. package/dist/components/kbd.es.js +1 -1
  491. package/dist/components/link.cjs +1 -1
  492. package/dist/components/link.es.js +1 -1
  493. package/dist/components/list.cjs +1 -1
  494. package/dist/components/list.es.js +1 -1
  495. package/dist/components/loading-spinner.cjs +1 -1
  496. package/dist/components/loading-spinner.es.js +1 -1
  497. package/dist/components/multiline-text-input.cjs +1 -1
  498. package/dist/components/multiline-text-input.es.js +1 -1
  499. package/dist/components/nimbus-provider.cjs +1 -1
  500. package/dist/components/nimbus-provider.es.js +1 -1
  501. package/dist/components/number-input.cjs +1 -1
  502. package/dist/components/number-input.es.js +1 -1
  503. package/dist/components/password-input.cjs +1 -1
  504. package/dist/components/password-input.es.js +1 -1
  505. package/dist/components/popover.cjs +1 -1
  506. package/dist/components/popover.es.js +2 -2
  507. package/dist/components/progress-bar.cjs +1 -1
  508. package/dist/components/progress-bar.es.js +1 -1
  509. package/dist/components/radio-input.cjs +1 -1
  510. package/dist/components/radio-input.es.js +1 -1
  511. package/dist/components/range-calendar.cjs +1 -1
  512. package/dist/components/range-calendar.es.js +1 -1
  513. package/dist/components/rich-text-input.cjs +1 -1
  514. package/dist/components/rich-text-input.es.js +1 -1
  515. package/dist/components/select.cjs +1 -1
  516. package/dist/components/select.es.js +1 -1
  517. package/dist/components/simple-grid.cjs +1 -1
  518. package/dist/components/simple-grid.es.js +1 -1
  519. package/dist/components/split-button.cjs +1 -1
  520. package/dist/components/split-button.es.js +1 -1
  521. package/dist/components/stack.cjs +1 -1
  522. package/dist/components/stack.es.js +1 -1
  523. package/dist/components/switch.cjs +1 -1
  524. package/dist/components/switch.es.js +1 -1
  525. package/dist/components/table.cjs +1 -1
  526. package/dist/components/table.es.js +1 -1
  527. package/dist/components/tag-group.cjs +1 -1
  528. package/dist/components/tag-group.es.js +1 -1
  529. package/dist/components/text-input.cjs +1 -1
  530. package/dist/components/text-input.es.js +1 -1
  531. package/dist/components/text.cjs +1 -1
  532. package/dist/components/text.es.js +1 -1
  533. package/dist/components/time-input.cjs +1 -1
  534. package/dist/components/time-input.es.js +1 -1
  535. package/dist/components/toggle-button-group.cjs +1 -1
  536. package/dist/components/toggle-button-group.es.js +1 -1
  537. package/dist/components/toggle-button.cjs +1 -1
  538. package/dist/components/toggle-button.es.js +1 -1
  539. package/dist/components/toolbar.cjs +1 -1
  540. package/dist/components/toolbar.es.js +1 -1
  541. package/dist/components/tooltip.cjs +1 -1
  542. package/dist/components/tooltip.es.js +1 -1
  543. package/dist/components/utils.cjs +1 -1
  544. package/dist/components/utils.es.js +2 -2
  545. package/dist/index.cjs +1 -1
  546. package/dist/index.cjs.map +1 -1
  547. package/dist/index.es.js +54 -54
  548. package/dist/index.es.js.map +1 -1
  549. package/package.json +12 -12
  550. package/dist/chunks/Collection-BYX373AD.cjs.js +0 -18
  551. package/dist/chunks/Collection-BYX373AD.cjs.js.map +0 -1
  552. package/dist/chunks/Collection-Df3FPouy.es.js.map +0 -1
  553. package/dist/chunks/DateField-DVzmD_D6.es.js.map +0 -1
  554. package/dist/chunks/DateField-Dh2hoOBr.cjs.js +0 -2
  555. package/dist/chunks/DateField-Dh2hoOBr.cjs.js.map +0 -1
  556. package/dist/chunks/DatePicker-C0NXSwOw.cjs.js +0 -2
  557. package/dist/chunks/DatePicker-C0NXSwOw.cjs.js.map +0 -1
  558. package/dist/chunks/DatePicker-_A7-hp_b.es.js.map +0 -1
  559. package/dist/chunks/Dialog-BnIvgMq1.cjs.js +0 -2
  560. package/dist/chunks/Dialog-BnIvgMq1.cjs.js.map +0 -1
  561. package/dist/chunks/Dialog-C3wKnoBH.es.js +0 -1903
  562. package/dist/chunks/Dialog-C3wKnoBH.es.js.map +0 -1
  563. package/dist/chunks/ListBox-B2Z13FyL.cjs.js +0 -2
  564. package/dist/chunks/ListBox-B2Z13FyL.cjs.js.map +0 -1
  565. package/dist/chunks/ListBox-BzuLanGT.es.js +0 -615
  566. package/dist/chunks/ListBox-BzuLanGT.es.js.map +0 -1
  567. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js +0 -2
  568. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js.map +0 -1
  569. package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js +0 -479
  570. package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js.map +0 -1
  571. package/dist/chunks/Separator-QdyS03-E.cjs.js +0 -2
  572. package/dist/chunks/Separator-QdyS03-E.cjs.js.map +0 -1
  573. package/dist/chunks/Separator-T5Cc3sUj.es.js +0 -573
  574. package/dist/chunks/Separator-T5Cc3sUj.es.js.map +0 -1
  575. package/dist/chunks/code-CTuEvrXA.cjs.js +0 -2
  576. package/dist/chunks/combobox-C3FEfver.es.js +0 -1912
  577. package/dist/chunks/combobox-C3FEfver.es.js.map +0 -1
  578. package/dist/chunks/combobox-CnUfDGC-.cjs.js +0 -2
  579. package/dist/chunks/combobox-CnUfDGC-.cjs.js.map +0 -1
  580. package/dist/chunks/context-D0_cRaDZ.cjs.js +0 -2
  581. package/dist/chunks/context-Pt-0ojuK.es.js +0 -94
  582. package/dist/chunks/data-table-BvTXYpZB.cjs.js +0 -2
  583. package/dist/chunks/data-table-BvTXYpZB.cjs.js.map +0 -1
  584. package/dist/chunks/data-table-BvYN1Stn.es.js.map +0 -1
  585. package/dist/chunks/dialog-CG-cCFkg.es.js +0 -1889
  586. package/dist/chunks/dialog-CG-cCFkg.es.js.map +0 -1
  587. package/dist/chunks/dialog-CNZGNU5Q.cjs.js +0 -2
  588. package/dist/chunks/dialog-CNZGNU5Q.cjs.js.map +0 -1
  589. package/dist/chunks/image-BAqoLZQB.cjs.js +0 -2
  590. package/dist/chunks/index-x9OhLGGf.cjs.js +0 -2
  591. package/dist/chunks/menu-C41LRy4b.cjs.js +0 -2
  592. package/dist/chunks/provider-BzZZw3fF.cjs.js +0 -16
  593. package/dist/chunks/provider-BzZZw3fF.cjs.js.map +0 -1
  594. package/dist/chunks/provider-DxFdjgyb.es.js.map +0 -1
  595. package/dist/chunks/select-IUEop3i7.cjs.js +0 -2
  596. package/dist/chunks/tag-group-BY7yGmmv.es.js.map +0 -1
  597. package/dist/chunks/tag-group-DXKC_JuG.cjs.js +0 -2
  598. package/dist/chunks/tag-group-DXKC_JuG.cjs.js.map +0 -1
  599. package/dist/chunks/tooltip-BFuuQNa4.cjs.js +0 -2
  600. package/dist/chunks/tooltip-BFuuQNa4.cjs.js.map +0 -1
  601. package/dist/chunks/tooltip-BpUbO0NA.es.js +0 -274
  602. package/dist/chunks/tooltip-BpUbO0NA.es.js.map +0 -1
  603. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js +0 -2
  604. package/dist/chunks/useDateFormatter-BqJA667a.es.js.map +0 -1
  605. package/dist/chunks/useDateFormatter-Dq2Ly1Je.cjs.js.map +0 -1
  606. package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +0 -1
  607. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +0 -2
  608. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker-B1Sxvj0C.es.js","sources":["../../src/components/date-range-picker/date-range-picker.slots.tsx","../../src/components/date-range-picker/components/date-range-picker.time-input.tsx","../../src/components/date-range-picker/components/date-range-picker.custom-context.tsx","../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateRangePickerRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateRangePickerRootProps\n extends HTMLChakraProps<\"div\", DateRangePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateRangePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateRangePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateRangePickerRootSlot = withProvider<\n HTMLDivElement,\n DateRangePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DateRangePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the trigger button that opens the calendar popover.\n */\nexport const DateRangePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DateRangePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DateRangePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DateRangePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DateRangePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DateRangePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport { DateRangePickerStateContext } from \"react-aria-components\";\nimport type { DateRangePickerTimeInputProps } from \"../date-range-picker.types\";\n\nexport const DateRangePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DateRangePickerTimeInputProps) => {\n const { locale } = useLocale();\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n const { granularity, value } = dateRangePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousValueRef = useRef(value);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date range changes (user selects dates from calendar)\n useEffect(() => {\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n // Check if date range changed by comparing start and end dates\n const hasValueChanged =\n (value?.start &&\n previousValueRef.current?.start?.compare(value.start) !== 0) ||\n (value?.end && previousValueRef.current?.end?.compare(value.end) !== 0);\n\n if (hasValueChanged) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n\n if (firstSegment) {\n firstSegment.focus();\n }\n }\n }, 50);\n }\n }\n\n previousValueRef.current = value;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [value]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n {/* Start DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n Start time\n </Text>\n <TimeInput\n slot=\"startTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n\n {/* End DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n End time\n </Text>\n <TimeInput\n slot=\"endTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n </Flex>\n );\n};\n","import { useContext, type ReactNode } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DateRangePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DateRangePickerCustomContext = ({\n children,\n}: {\n children: ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n\n // Check if all 6 segments (start: day, month, year; end: day, month, year) have values\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const hasCompleteRangeDate = (date: any) =>\n date?.day && date?.month && date?.year;\n\n const incompleteValue =\n !dateRangePickerState?.value ||\n !hasCompleteRangeDate(dateRangePickerState.value.start) ||\n !hasCompleteRangeDate(dateRangePickerState.value.end);\n\n const { granularity } = dateRangePickerState!;\n\n // Extract time values from start and end dates separately\n const startTimeValue =\n dateRangePickerState?.value?.start &&\n \"hour\" in dateRangePickerState.value.start\n ? dateRangePickerState.value.start\n : null;\n const endTimeValue =\n dateRangePickerState?.value?.end && \"hour\" in dateRangePickerState.value.end\n ? dateRangePickerState.value.end\n : null;\n\n // Try to get disabled state from the button context\n const isDateRangePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = (type: \"start\" | \"end\") => {\n const prefix = type === \"start\" ? \"Start\" : \"End\";\n switch (granularity) {\n case \"hour\":\n return `${prefix} time (hour)`;\n case \"minute\":\n return `${prefix} time (hour and minute)`;\n case \"second\":\n return `${prefix} time (hour, minute, and second)`;\n default:\n return `${prefix} time`;\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n // Clear both start and end values\n onPress: () => dateRangePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDateRangePickerDisabled,\n // Hide the button when there's no value\n style: incompleteValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": incompleteValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n // Separate time input slots for start and end times\n const timeInputSlots = {\n startTimeInput: {\n value: startTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.start) {\n // Update the start date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newStartDate = startDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: newStartDate,\n end: endDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"start\"),\n },\n endTimeInput: {\n value: endTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.end) {\n // Update the end date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newEndDate = endDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: startDate,\n end: newEndDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"end\"),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DateRangePickerRootSlot,\n DateRangePickerGroupSlot,\n DateRangePickerTriggerSlot,\n DateRangePickerPopoverSlot,\n DateRangePickerCalendarSlot,\n} from \"./date-range-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DateRangePicker as ReactAriaDateRangePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\nimport type { DateRangePickerProps } from \"./date-range-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, RangeCalendar, IconButton, Text } from \"@/components\";\nimport { DateRangePickerTimeInput } from \"./components/date-range-picker.time-input\";\nimport { DateRangePickerCustomContext } from \"./components/date-range-picker.custom-context\";\n\n/**\n * DateRangePicker\n * ============================================================\n * Combines a DateInput with a RangeCalendar popover for date range selection.\n * Users can either type a date range directly or select from the calendar.\n */\nexport const DateRangePicker = (props: DateRangePickerProps) => {\n // Forward hideTimeZone and hourCycle to child components (footer time inputs)\n const { granularity = \"day\", hideTimeZone, hourCycle } = props;\n const recipe = useSlotRecipe({ recipe: dateRangePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // Extract size and variant from recipe props to pass to DateInputs\n const { size = \"md\" } = recipeProps;\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DateRangePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDateRangePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DateRangePickerCustomContext>\n <DateRangePickerGroupSlot asChild>\n <Group>\n <DateInput\n slot=\"start\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <Text\n as=\"span\"\n px=\"150\"\n color=\"neutral.11\"\n userSelect=\"none\"\n aria-hidden=\"true\"\n slot={null}\n >\n –\n </Text>\n <DateInput\n slot=\"end\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DateRangePickerTriggerSlot>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </DateRangePickerTriggerSlot>\n </Group>\n </DateRangePickerGroupSlot>\n <DateRangePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DateRangePickerCalendarSlot>\n <RangeCalendar />\n </DateRangePickerCalendarSlot>\n <DateRangePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DateRangePickerPopoverSlot>\n </DateRangePickerCustomContext>\n </ReactAriaDateRangePicker>\n </DateRangePickerRootSlot>\n );\n};\n\nDateRangePicker.displayName = \"DateRangePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateRangePickerSlotRecipe","DateRangePickerRootSlot","DateRangePickerGroupSlot","DateRangePickerTriggerSlot","DateRangePickerPopoverSlot","DateRangePickerCalendarSlot","DateRangePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","dateRangePickerState","useContext","DateRangePickerStateContext","granularity","value","timeInputRef","useRef","previousValueRef","useEffect","timeoutId","container","activeElement","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DateRangePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","hasCompleteRangeDate","date","incompleteValue","startTimeValue","endTimeValue","isDateRangePickerDisabled","getDefaultTimeInputAriaLabel","type","prefix","buttonSlots","event","timeInputSlots","currentValue","startDate","endDate","newStartDate","newEndDate","Provider","TimeFieldContext","DateRangePicker","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","size","overlayButtonSize","shouldCloseOnSelect","ReactAriaDateRangePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","RangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAA0B,gBAAAJ,EAGrC,OAAO,MAAM,GAKFK,IAA2B,gBAAAJ,EAGtC,OAAO,OAAO,GAKHK,IAA6B,gBAAAL,EAGxC,OAAO,SAAS,GAKLM,IAA6B,gBAAAN,EAGxC,OAAO,SAAS,GAKLO,IAA8B,gBAAAP,EAGzC,OAAO,UAAU,GC9DNQ,IAA2B,CAAC;AAAA,EACvC,cAAAC;AAAA,EACA,WAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAuBC,EAAWC,CAA2B,GAC7D,EAAE,aAAAC,GAAa,OAAAC,EAAA,IAAUJ,GACzBK,IAAeC,EAAu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AA,EACC,UAAA;AAAA,UAAA,gBAAA9C,EAACrB,GAAA,EACC,UAAA,gBAAAqB,EAAC+C,GAAA,CAAA,CAAc,GACjB;AAAA,UACA,gBAAA/C;AAAA,YAACpB;AAAA,YAAA;AAAA,cACC,cAAAC;AAAA,cACA,WAAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,EAAA,CACF,GACF,EAAA,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEA6C,EAAgB,cAAc;"}
1
+ {"version":3,"file":"date-range-picker-DhX5QVXh.es.js","sources":["../../src/components/date-range-picker/date-range-picker.slots.tsx","../../src/components/date-range-picker/components/date-range-picker.time-input.tsx","../../src/components/date-range-picker/components/date-range-picker.custom-context.tsx","../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface DateRangePickerRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DateRangePickerRootProps\n extends HTMLChakraProps<\"div\", DateRangePickerRecipeProps> {}\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: dateRangePickerSlotRecipe,\n});\n\n/**\n * Root component that provides the styling context for the DateRangePicker component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const DateRangePickerRootSlot = withProvider<\n HTMLDivElement,\n DateRangePickerRootProps\n>(\"div\", \"root\");\n\n/**\n * Slot component for the input group containing the DateInput and trigger button.\n */\nexport const DateRangePickerGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"group\");\n\n/**\n * Slot component for the trigger button that opens the calendar popover.\n */\nexport const DateRangePickerTriggerSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"trigger\");\n\n/**\n * Slot component for the popover container.\n */\nexport const DateRangePickerPopoverSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"popover\");\n\n/**\n * Slot component for the calendar container within the popover.\n */\nexport const DateRangePickerCalendarSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"calendar\");\n\n/**\n * Slot component for the calendar header.\n */\nexport const DateRangePickerCalendarHeaderSlot = withContext<\n HTMLElement,\n HTMLChakraProps<\"header\">\n>(\"header\", \"calendarHeader\");\n\n/**\n * Slot component for the calendar grid.\n */\nexport const DateRangePickerCalendarGridSlot = withContext<\n HTMLTableElement,\n HTMLChakraProps<\"table\">\n>(\"table\", \"calendarGrid\");\n\n/**\n * Slot component for individual calendar cells.\n */\nexport const DateRangePickerCalendarCellSlot = withContext<\n HTMLTableCellElement,\n HTMLChakraProps<\"td\">\n>(\"td\", \"calendarCell\");\n","import { Flex, Text, TimeInput } from \"@/components\";\nimport { useContext, useRef, useEffect } from \"react\";\nimport { useLocale } from \"react-aria\";\nimport { DateRangePickerStateContext } from \"react-aria-components\";\nimport type { DateRangePickerTimeInputProps } from \"../date-range-picker.types\";\n\nexport const DateRangePickerTimeInput = ({\n hideTimeZone,\n hourCycle,\n}: DateRangePickerTimeInputProps) => {\n const { locale } = useLocale();\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n const { granularity, value } = dateRangePickerState!;\n const timeInputRef = useRef<HTMLDivElement>(null);\n const previousValueRef = useRef(value);\n\n // do not show up to the party if you're not invited\n if (granularity === \"day\") {\n return null;\n }\n\n // Focus the time input when date range changes (user selects dates from calendar)\n useEffect(() => {\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n // Check if date range changed by comparing start and end dates\n const hasValueChanged =\n (value?.start &&\n previousValueRef.current?.start?.compare(value.start) !== 0) ||\n (value?.end && previousValueRef.current?.end?.compare(value.end) !== 0);\n\n if (hasValueChanged) {\n // Only auto-focus if no time input segment currently has focus\n // This prevents stealing focus during user interaction with time segments\n const container = timeInputRef.current;\n const activeElement = document.activeElement;\n const hasTimeSegmentFocus =\n container?.contains(activeElement) &&\n activeElement?.getAttribute(\"role\") === \"spinbutton\";\n\n if (!hasTimeSegmentFocus) {\n // Small delay to ensure the DOM is ready\n timeoutId = setTimeout(() => {\n // Find the first focusable segment within the time input container\n if (container) {\n const firstSegment = container.querySelector(\n '[role=\"spinbutton\"]'\n ) as HTMLElement;\n\n if (firstSegment) {\n firstSegment.focus();\n }\n }\n }, 50);\n }\n }\n\n previousValueRef.current = value;\n\n // Cleanup timeout on effect re-run or unmount to prevent memory leaks\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, [value]);\n\n return (\n <Flex\n ref={timeInputRef}\n borderTop=\"solid-25\"\n borderColor=\"neutral.3\"\n py=\"300\"\n px=\"400\"\n alignItems=\"center\"\n justifyContent=\"center\"\n gap=\"200\"\n >\n {/* Start DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n Start time\n </Text>\n <TimeInput\n slot=\"startTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n\n {/* End DateInput with separate label */}\n <Flex alignItems=\"center\" gap=\"200\">\n {/* TODO: translate hardcoded string */}\n <Text\n textStyle=\"xs\"\n fontWeight=\"500\"\n color=\"neutral.12\"\n minWidth=\"fit-content\"\n >\n End time\n </Text>\n <TimeInput\n slot=\"endTimeInput\"\n locale={locale}\n variant=\"ghost\"\n size=\"sm\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Flex>\n </Flex>\n );\n};\n","import { useContext, type ReactNode } from \"react\";\nimport {\n Provider,\n ButtonContext,\n DateRangePickerStateContext,\n TimeFieldContext,\n useSlottedContext,\n} from \"react-aria-components\";\nimport type { PressEvent, TimeValue } from \"react-aria\";\n\nexport const DateRangePickerCustomContext = ({\n children,\n}: {\n children: ReactNode;\n}) => {\n const buttonContext = useSlottedContext(ButtonContext) || {};\n const dateRangePickerState = useContext(DateRangePickerStateContext);\n\n // Check if all 6 segments (start: day, month, year; end: day, month, year) have values\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const hasCompleteRangeDate = (date: any) =>\n date?.day && date?.month && date?.year;\n\n const incompleteValue =\n !dateRangePickerState?.value ||\n !hasCompleteRangeDate(dateRangePickerState.value.start) ||\n !hasCompleteRangeDate(dateRangePickerState.value.end);\n\n const { granularity } = dateRangePickerState!;\n\n // Extract time values from start and end dates separately\n const startTimeValue =\n dateRangePickerState?.value?.start &&\n \"hour\" in dateRangePickerState.value.start\n ? dateRangePickerState.value.start\n : null;\n const endTimeValue =\n dateRangePickerState?.value?.end && \"hour\" in dateRangePickerState.value.end\n ? dateRangePickerState.value.end\n : null;\n\n // Try to get disabled state from the button context\n const isDateRangePickerDisabled = buttonContext?.isDisabled;\n\n // Generate default aria-label based on granularity if not provided\n const getDefaultTimeInputAriaLabel = (type: \"start\" | \"end\") => {\n const prefix = type === \"start\" ? \"Start\" : \"End\";\n switch (granularity) {\n case \"hour\":\n return `${prefix} time (hour)`;\n case \"minute\":\n return `${prefix} time (hour and minute)`;\n case \"second\":\n return `${prefix} time (hour, minute, and second)`;\n default:\n return `${prefix} time`;\n }\n };\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n /** toggles the calendar popover */\n calendarToggle: {\n ...buttonContext,\n onPress: (event: PressEvent) => {\n // Ensure any active input (e.g., date picker segment) loses focus\n // because blurring the input will close the popover if it's open (or was just opened)\n const activeElement = document?.activeElement as HTMLElement | null;\n\n if (activeElement) {\n activeElement.blur();\n }\n\n buttonContext.onPress?.(event);\n },\n },\n /** Clear button that displays when there's a value in each segment - hidden from both visual and screen readers when there's no value */\n clear: {\n // Clear both start and end values\n onPress: () => dateRangePickerState?.setValue(null),\n \"aria-label\": \"Clear input value\",\n isDisabled: isDateRangePickerDisabled,\n // Hide the button when there's no value\n style: incompleteValue ? { display: \"none\" } : undefined,\n \"aria-hidden\": incompleteValue ? true : undefined,\n },\n };\n\n /**\n * TimeInput slots\n * ================================\n */\n\n // Separate time input slots for start and end times\n const timeInputSlots = {\n startTimeInput: {\n value: startTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.start) {\n // Update the start date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newStartDate = startDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: newStartDate,\n end: endDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"start\"),\n },\n endTimeInput: {\n value: endTimeValue,\n onChange: (value: TimeValue | null) => {\n if (value !== null && dateRangePickerState?.value?.end) {\n // Update the end date with the new time\n const currentValue = dateRangePickerState.value;\n const startDate = currentValue.start;\n const endDate = currentValue.end;\n if (startDate && endDate) {\n const newEndDate = endDate.set({\n hour: value.hour,\n minute: value.minute || 0,\n second: value.second || 0,\n millisecond: value.millisecond || 0,\n });\n\n dateRangePickerState.setValue({\n start: startDate,\n end: newEndDate,\n });\n }\n }\n },\n granularity: granularity === \"day\" ? undefined : granularity,\n \"aria-label\": getDefaultTimeInputAriaLabel(\"end\"),\n },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n slots: buttonSlots,\n },\n ],\n [TimeFieldContext, { slots: timeInputSlots }],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import {\n DateRangePickerRootSlot,\n DateRangePickerGroupSlot,\n DateRangePickerTriggerSlot,\n DateRangePickerPopoverSlot,\n DateRangePickerCalendarSlot,\n} from \"./date-range-picker.slots\";\n\nimport { CalendarMonth, Close } from \"@commercetools/nimbus-icons\";\n\nimport {\n DateRangePicker as ReactAriaDateRangePicker,\n Group,\n Popover,\n Dialog,\n} from \"react-aria-components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { dateRangePickerSlotRecipe } from \"./date-range-picker.recipe\";\nimport type { DateRangePickerProps } from \"./date-range-picker.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { DateInput, RangeCalendar, IconButton, Text } from \"@/components\";\nimport { DateRangePickerTimeInput } from \"./components/date-range-picker.time-input\";\nimport { DateRangePickerCustomContext } from \"./components/date-range-picker.custom-context\";\n\n/**\n * DateRangePicker\n * ============================================================\n * Combines a DateInput with a RangeCalendar popover for date range selection.\n * Users can either type a date range directly or select from the calendar.\n */\nexport const DateRangePicker = (props: DateRangePickerProps) => {\n // Forward hideTimeZone and hourCycle to child components (footer time inputs)\n const { granularity = \"day\", hideTimeZone, hourCycle } = props;\n const recipe = useSlotRecipe({ recipe: dateRangePickerSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n // Extract size and variant from recipe props to pass to DateInputs\n const { size = \"md\" } = recipeProps;\n\n // the size of the buttons overlaying the input\n const overlayButtonSize = size === \"md\" ? \"xs\" : \"2xs\";\n\n // When granularity is \"day\", use the prop value (defaults to true if not provided)\n // For other granularities (time-based), force to false so users can set both date and time\n const shouldCloseOnSelect =\n granularity === \"day\" ? props.shouldCloseOnSelect : false;\n\n return (\n <DateRangePickerRootSlot {...recipeProps} {...styleProps} asChild>\n <ReactAriaDateRangePicker\n {...otherProps}\n shouldCloseOnSelect={shouldCloseOnSelect}\n >\n <DateRangePickerCustomContext>\n <DateRangePickerGroupSlot asChild>\n <Group>\n <DateInput\n slot=\"start\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <Text\n as=\"span\"\n px=\"150\"\n color=\"neutral.11\"\n userSelect=\"none\"\n aria-hidden=\"true\"\n slot={null}\n >\n –\n </Text>\n <DateInput\n slot=\"end\"\n size={size}\n variant=\"plain\"\n width=\"auto\"\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n <DateRangePickerTriggerSlot>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"clear\"\n >\n <Close />\n </IconButton>\n {/* @ts-expect-error react aria is adding the aria-label prop */}\n <IconButton\n tone=\"primary\"\n variant=\"ghost\"\n size={overlayButtonSize}\n slot=\"calendarToggle\"\n >\n <CalendarMonth />\n </IconButton>\n </DateRangePickerTriggerSlot>\n </Group>\n </DateRangePickerGroupSlot>\n <DateRangePickerPopoverSlot asChild>\n <Popover placement=\"bottom end\">\n <Dialog>\n <DateRangePickerCalendarSlot>\n <RangeCalendar />\n </DateRangePickerCalendarSlot>\n <DateRangePickerTimeInput\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n />\n </Dialog>\n </Popover>\n </DateRangePickerPopoverSlot>\n </DateRangePickerCustomContext>\n </ReactAriaDateRangePicker>\n </DateRangePickerRootSlot>\n );\n};\n\nDateRangePicker.displayName = \"DateRangePicker\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","dateRangePickerSlotRecipe","DateRangePickerRootSlot","DateRangePickerGroupSlot","DateRangePickerTriggerSlot","DateRangePickerPopoverSlot","DateRangePickerCalendarSlot","DateRangePickerTimeInput","hideTimeZone","hourCycle","locale","useLocale","dateRangePickerState","useContext","DateRangePickerStateContext","granularity","value","timeInputRef","useRef","previousValueRef","useEffect","timeoutId","container","activeElement","firstSegment","jsxs","Flex","jsx","Text","TimeInput","DateRangePickerCustomContext","children","buttonContext","useSlottedContext","ButtonContext","hasCompleteRangeDate","date","incompleteValue","startTimeValue","endTimeValue","isDateRangePickerDisabled","getDefaultTimeInputAriaLabel","type","prefix","buttonSlots","event","timeInputSlots","currentValue","startDate","endDate","newStartDate","newEndDate","Provider","TimeFieldContext","DateRangePicker","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","size","overlayButtonSize","shouldCloseOnSelect","ReactAriaDateRangePicker","Group","DateInput","IconButton","Close","CalendarMonth","Popover","Dialog","RangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAMYC,IAA0B,gBAAAJ,EAGrC,OAAO,MAAM,GAKFK,IAA2B,gBAAAJ,EAGtC,OAAO,OAAO,GAKHK,IAA6B,gBAAAL,EAGxC,OAAO,SAAS,GAKLM,IAA6B,gBAAAN,EAGxC,OAAO,SAAS,GAKLO,IAA8B,gBAAAP,EAGzC,OAAO,UAAU,GC9DNQ,IAA2B,CAAC;AAAA,EACvC,cAAAC;AAAA,EACA,WAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAuBC,EAAWC,CAA2B,GAC7D,EAAE,aAAAC,GAAa,OAAAC,EAAA,IAAUJ,GACzBK,IAAeC,EAAuB,IAAI,GAC1CC,IAAmBD,EAAOF,CAAK;AAGrC,SAAID,MAAgB,QACX,QAITK,EAAU,MAAM;AACd,QAAIC;AAQJ,QAJGL,GAAO,SACNG,EAAiB,SAAS,OAAO,QAAQH,EAAM,KAAK,MAAM,KAC3DA,GAAO,OAAOG,EAAiB,SAAS,KAAK,QAAQH,EAAM,GAAG,MAAM,GAElD;AAGnB,YAAMM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,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEA6C,EAAgB,cAAc;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const x=require("react/jsx-runtime"),f=require("react"),fe=require("react-dom"),wt=require("./create-slot-recipe-context-CimocFDH.cjs.js"),Pt=require("./factory-CVGqU9CD.cjs.js");function Ot(e){return e==null?[]:Array.isArray(e)?e:[e]}var xt=e=>e!=null&&typeof e=="object",ce=e=>typeof e=="string",X=e=>typeof e=="function",Ct=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Tt=e=>Object.prototype.toString.call(e),We=Function.prototype.toString,Dt=We.call(Object),kt=e=>{if(!xt(e)||Tt(e)!="[object Object]"||St(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=Ct(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&We.call(r)==Dt},Ft=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Rt=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,St=e=>Ft(e)||Rt(e),At=e=>e(),Ee=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})};function qe(e){if(!kt(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=qe(o))}return r}function Ne(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function It(e,t){if(e==null)throw new Error(t())}var Ke=()=>{},pe=e=>typeof e=="object"&&e!==null,Lt=1,Bt=9,Mt=11,D=e=>pe(e)&&e.nodeType===Lt&&typeof e.nodeName=="string",Ce=e=>pe(e)&&e.nodeType===Bt,$t=e=>pe(e)&&e===e.window,He=e=>D(e)?e.localName||"":"#document";function jt(e){return["html","body","#document"].includes(He(e))}var _t=e=>pe(e)&&e.nodeType!==void 0,Y=e=>_t(e)&&e.nodeType===Mt&&"host"in e,Gt=e=>D(e)&&e.localName==="input",Vt=e=>D(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,Ut=/(textarea|select)/;function Wt(e){if(e==null||!D(e))return!1;try{return Gt(e)&&e.selectionStart!=null||Ut.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function ue(e,t){if(!e||!t||!D(e)||!D(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&Y(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function L(e){return Ce(e)?e:$t(e)?e.document:e?.ownerDocument??document}function qt(e){return L(e).documentElement}function ne(e){return Y(e)?ne(e.host):Ce(e)?e.defaultView??window:D(e)?e.ownerDocument?.defaultView??window:window}function ze(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function Kt(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y(e)&&e.host||qt(e);return Y(t)?t.host:t}var ge=new WeakMap;function Xe(e){return ge.has(e)||ge.set(e,ne(e).getComputedStyle(e)),ge.get(e)}var Ye=()=>typeof document<"u";function Ht(){return navigator.userAgentData?.platform??navigator.platform}var Te=e=>Ye()&&e.test(Ht()),Se=()=>Ye()&&!!navigator.maxTouchPoints,zt=()=>Te(/^iPhone/i),Xt=()=>Te(/^iPad/i)||Ze()&&navigator.maxTouchPoints>1,Yt=()=>zt()||Xt(),Ze=()=>Te(/^Mac/i);function Zt(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function M(e){return Zt(e)?.[0]??e.target}var Jt=e=>e.button===2||Ze()&&e.ctrlKey&&e.button===0,I=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}},Je=e=>D(e)&&e.tagName==="IFRAME",Qt=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),en=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,De="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Qe=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(De));(t==!0||t=="if-empty"&&r.length===0)&&D(e)&&G(e)&&r.unshift(e);const o=r.filter(G);return o.forEach((s,i)=>{if(Je(s)&&s.contentDocument){const a=s.contentDocument.body;o.splice(i,1,...Qe(a))}}),o};function G(e){return!e||e.closest("[inert]")?!1:e.matches(De)&&Vt(e)}function et(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(De)).filter(W);return n.forEach((o,s)=>{if(Je(o)&&o.contentDocument){const i=o.contentDocument.body,a=et(i);n.splice(s,1,...a)}}),n.length,n}function W(e){return e!=null&&e.tabIndex>0?!0:G(e)&&!en(e)}function J(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Wt(e))&&!Qt(e)?0:e.tabIndex}function tn(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function $(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function we(e){const t=Kt(e);return jt(t)?L(t).body:D(t)&&on(t)?t:we(t)}var nn=/auto|scroll|overlay|hidden|clip/,rn=new Set(["inline","contents"]);function on(e){const t=ne(e),{overflow:r,overflowX:n,overflowY:o,display:s}=t.getComputedStyle(e);return nn.test(r+o+n)&&!rn.has(s)}function le(e,t){if(!e)return Ke;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function sn(e,t,r){if(!e)return Ke;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")}}function an(e,t,r){const{signal:n}=t;return[new Promise((i,a)=>{const u=setTimeout(()=>{a(new Error(`Timeout of ${r}ms exceeded`))},r);n.addEventListener("abort",()=>{clearTimeout(u),a(new Error("Promise aborted"))}),e.then(c=>{n.aborted||(clearTimeout(u),i(c))}).catch(c=>{n.aborted||(clearTimeout(u),a(c))})}),()=>t.abort()]}function cn(e,t){const{timeout:r,rootNode:n}=t,o=ne(n),s=L(n),i=new o.AbortController;return an(new Promise(a=>{const u=e();if(u){a(u);return}const c=new o.MutationObserver(()=>{const d=e();d&&d.isConnected&&(c.disconnect(),a(d))});c.observe(s.body,{childList:!0,subtree:!0})}),i,r)}var un=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),ln=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Ae=e=>{const t={};let r;for(;r=ln.exec(e);)t[r[1]]=r[2];return t},dn=(e,t)=>{if(ce(e)){if(ce(t))return`${e};${t}`;e=Ae(e)}else ce(t)&&(t=Ae(t));return Object.assign({},e??{},t??{})};function j(...e){let t={};for(let r of e){for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=Ee(r[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=un(t[n],r[n]);continue}if(n==="style"){t[n]=dn(t[n],r[n]);continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}var z=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(z||{}),me="__init__";function fn(e){const t=()=>e.getRootNode?.()??document,r=()=>L(t()),n=()=>r().defaultView??window,o=()=>ze(t());return{...e,getRootNode:t,getDoc:r,getWin:n,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function pn(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var tt=typeof globalThis.document<"u"?f.useLayoutEffect:f.useEffect;function de(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=f.useState(t),[o,s]=f.useState(n),i=e().value!==void 0,a=f.useRef(o);a.current=i?e().value:o;const u=f.useRef(a.current);tt(()=>{u.current=a.current},[o,e().value]);const c=h=>{const l=u.current,v=X(h)?h(l):h;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:v,prev:l}),i||s(v),r(v,l)||e().onChange?.(v,l)};function d(){return i?e().value:o}return{initial:n,ref:a,get:d,set(h){(e().sync?fe.flushSync:At)(()=>c(h))},invoke(h,l){e().onChange?.(h,l)},hash(h){return e().hash?.(h)??String(h)}}}de.cleanup=e=>{f.useEffect(()=>e,[])};de.ref=e=>{const t=f.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function hn(e){const t=f.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var gn=(e,t)=>{const r=f.useRef(!1),n=f.useRef(!1);f.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),f.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function nt(e,t={}){const r=f.useMemo(()=>{const{id:p,ids:m,getRootNode:O}=t;return fn({id:p,ids:m,getRootNode:O})},[t]),n=(...p)=>{e.debug&&console.log(...p)},o=e.props?.({props:qe(t),scope:r})??t,s=mn(o),i=e.context?.({prop:s,bindable:de,scope:r,flush:Ie,getContext(){return u},getComputed(){return S},getRefs(){return y},getEvent(){return v()}}),a=rt(i),u={get(p){return a.current?.[p].ref.current},set(p,m){a.current?.[p].set(m)},initial(p){return a.current?.[p].initial},hash(p){const m=a.current?.[p].get();return a.current?.[p].hash(m)}},c=f.useRef(new Map),d=f.useRef(null),h=f.useRef(null),l=f.useRef({type:""}),v=()=>({...l.current,current(){return l.current},previous(){return h.current}}),g=()=>({...P,matches(...p){return p.includes(P.ref.current)},hasTag(p){return!!e.states[P.ref.current]?.tags?.includes(p)}}),y=hn(e.refs?.({prop:s,context:u})??{}),C=()=>({state:g(),context:u,event:v(),prop:s,send:Re,action:w,guard:b,track:gn,refs:y,computed:S,flush:Ie,scope:r,choose:T}),w=p=>{const m=X(p)?p(C()):p;if(!m)return;const O=m.map(N=>{const F=e.implementations?.actions?.[N];return F||Ne(`[zag-js] No implementation found for action "${JSON.stringify(N)}"`),F});for(const N of O)N?.(C())},b=p=>X(p)?p(C()):e.implementations?.guards?.[p](C()),k=p=>{const m=X(p)?p(C()):p;if(!m)return;const O=m.map(F=>{const _=e.implementations?.effects?.[F];return _||Ne(`[zag-js] No implementation found for effect "${JSON.stringify(F)}"`),_}),N=[];for(const F of O){const _=F?.(C());_&&N.push(_)}return()=>N.forEach(F=>F?.())},T=p=>Ot(p).find(m=>{let O=!m.guard;return ce(m.guard)?O=!!b(m.guard):X(m.guard)&&(O=m.guard(C())),O}),S=p=>{It(e.computed,()=>"[zag-js] No computed object found on machine");const m=e.computed[p];return m({context:u,event:v(),prop:s,refs:y,scope:r,computed:S})},P=de(()=>({defaultValue:e.initialState({prop:s}),onChange(p,m){m&&(c.current.get(m)?.(),c.current.delete(m)),m&&w(e.states[m]?.exit),w(d.current?.actions);const O=k(e.states[p]?.effects);if(O&&c.current.set(p,O),m===me){w(e.entry);const N=k(e.effects);N&&c.current.set(me,N)}w(e.states[p]?.entry)}})),Z=f.useRef(void 0),A=f.useRef(z.NotStarted);tt(()=>{queueMicrotask(()=>{const O=A.current===z.Started;A.current=z.Started,n(O?"rehydrating...":"initializing...");const N=Z.current??P.initial;P.invoke(N,O?P.get():me)});const p=c.current,m=P.ref.current;return()=>{n("unmounting..."),Z.current=m,A.current=z.Stopped,p.forEach(O=>O?.()),c.current=new Map,d.current=null,queueMicrotask(()=>{w(e.exit)})}},[]);const he=()=>"ref"in P?P.ref.current:P.get(),Re=p=>{queueMicrotask(()=>{if(A.current!==z.Started)return;h.current=l.current,l.current=p;let m=he();const O=e.states[m].on?.[p.type]??e.on?.[p.type],N=T(O);if(!N)return;d.current=N;const F=N.target??m;n("transition",p.type,N.target||m,`(${N.actions})`);const _=F!==m;_?fe.flushSync(()=>P.set(F)):N.reenter&&!_?P.invoke(m,m):w(N.actions??[])})};return e.watch?.(C()),{state:g(),send:Re,context:u,prop:s,scope:r,refs:y,computed:S,event:v(),getStatus:()=>A.current}}function rt(e){const t=f.useRef(e);return t.current=e,t}function mn(e){const t=rt(e);return function(n){return t.current[n]}}function Ie(e){queueMicrotask(()=>{fe.flushSync(()=>e())})}var vn=pn(e=>e);function ke(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function yn(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function re(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:i}=e,a=f.createContext(i);a.displayName=t;function u(){const c=f.useContext(a);if(!c&&r){const d=new Error(s??yn(n,o));throw d.name="ContextError",Error.captureStackTrace?.(d,u),d}return c}return[a.Provider,u,a]}const ot=()=>(e,t)=>t.reduce((r,n)=>{const[o,s]=r,i=n;return s[i]!==void 0&&(o[i]=s[i]),delete s[i],[o,s]},[{},{...e}]),[bn,En]=re({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Nn=e=>ot()(e,["lazyMount","unmountOnExit"]);function wn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const ve=e=>{const t=f.memo(f.forwardRef((r,n)=>{const{asChild:o,children:s,...i}=r;if(!o)return f.createElement(e,{...i,ref:n},s);if(!f.isValidElement(s))return null;const a=f.Children.only(s),u=wn(a);return f.cloneElement(a,{...j(i,a.props),ref:n?ke(n,u):u})}));return t.displayName=e.displayName||e.name,t},Pn=()=>{const e=new Map;return new Proxy(ve,{apply(t,r,n){return ve(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,ve(n)),e.get(n)}})},q=Pn();function On(e,t){const{state:r,send:n,context:o}=e,s=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:s,setNode(i){i&&n({type:"NODE.SET",node:i})},unmount(){n({type:"UNMOUNT"})}}}var xn={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:r}){e([()=>t("present")],()=>{r({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Xe(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const s=t.get("node");if(!o&&s?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});$(()=>{const i=oe(t.get("styles"));e.set("unmountAnimationName",i),i==="none"||i===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{$(()=>{e.set("prevAnimationName",oe(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=a=>{(a.composedPath?.()?.[0]??a.target)===n&&e.set("prevAnimationName",oe(t.get("styles")))},s=a=>{const u=oe(t.get("styles"));M(a)===n&&u===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",s),n.addEventListener("animationend",s);const i=le(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",s),n.removeEventListener("animationend",s),tn(()=>i())}}}}};function oe(e){return e?.animationName||"none"}function Cn(e,t={}){const{sync:r=!1}=t,n=Tn(e);return f.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function Tn(e){const t=f.useRef(e);return t.current=e,t}const st=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...s}=e,i=f.useRef(!1),a={...s,present:n,onExitComplete:Cn(e.onExitComplete)},u=nt(xn,a),c=On(u);c.present&&(i.current=!0);const d=!c.present&&!i.current&&t||r&&!c.present&&i.current,h=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:h,present:c.present,unmounted:d}},[Dn,V]=re({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),it=f.forwardRef((e,t)=>{const r=V(),n=En(),o=st({...n,present:r.open}),s=j(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:x.jsx(q.div,{...s,ref:ke(o.ref,t)})});it.displayName="DialogBackdrop";const at=f.forwardRef((e,t)=>{const r=V(),n=j(r.getCloseTriggerProps(),e);return x.jsx(q.button,{...n,ref:t})});at.displayName="DialogCloseTrigger";const[kn,Fe]=re({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),ct=f.forwardRef((e,t)=>{const r=V(),n=Fe(),o=j(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:x.jsx(q.div,{...o,ref:ke(n.ref,t)})});ct.displayName="DialogContent";const ut=f.forwardRef((e,t)=>{const r=V(),n=j(r.getDescriptionProps(),e);return x.jsx(q.div,{...n,ref:t})});ut.displayName="DialogDescription";const lt=f.forwardRef((e,t)=>{const r=V(),n=j(r.getPositionerProps(),e);return Fe().unmounted?null:x.jsx(q.div,{...n,ref:t})});lt.displayName="DialogPositioner";const Fn=e=>ot()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);var te=(e,t=[])=>({parts:(...r)=>{if(Rn(t))return te(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>te(e,[...t,...r]),omit:(...r)=>te(e,t.filter(n=>!r.includes(n))),rename:r=>te(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${K(e)}"][data-part="${K(n)}"]`,`& [data-scope="${K(e)}"][data-part="${K(n)}"]`].join(", "),attrs:{"data-scope":K(e),"data-part":K(n)}}}),{})}),K=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Rn=e=>e.length===0,H=new WeakMap,se=new WeakMap,ie={},ye=0,dt=e=>e&&(e.host||dt(e.parentNode)),Sn=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=dt(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),An=new Set(["script","output","status","next-route-announcer"]),In=e=>An.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Ln=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o}=t,s=Sn(r,Array.isArray(e)?e:[e]);ie[n]||(ie[n]=new WeakMap);const i=ie[n],a=[],u=new Set,c=new Set(s),d=l=>{!l||u.has(l)||(u.add(l),d(l.parentNode))};s.forEach(d);const h=l=>{!l||c.has(l)||Array.prototype.forEach.call(l.children,v=>{if(u.has(v))h(v);else try{if(In(v))return;const y=v.getAttribute(o)==="true",C=(H.get(v)||0)+1,w=(i.get(v)||0)+1;H.set(v,C),i.set(v,w),a.push(v),C===1&&y&&se.set(v,!0),w===1&&v.setAttribute(n,""),y||v.setAttribute(o,"true")}catch(g){console.error("[zag-js > ariaHidden] cannot operate on ",v,g)}})};return h(r),u.clear(),ye++,()=>{a.forEach(l=>{const v=H.get(l)-1,g=i.get(l)-1;H.set(l,v),i.set(l,g),v||(se.has(l)||l.removeAttribute(o),se.delete(l)),g||l.removeAttribute(n)}),ye--,ye||(H=new WeakMap,H=new WeakMap,se=new WeakMap,ie={})}},Bn=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Mn=(e,t=Bn(e),r="data-aria-hidden")=>{if(t)return Ln(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},$n=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function jn(e,t={}){const{defer:r=!0}=t,n=r?$n:s=>s(),o=[];return o.push(n(()=>{const i=(typeof e=="function"?e():e).filter(Boolean);i.length!==0&&o.push(Mn(i))})),()=>{o.forEach(s=>s?.())}}function _n(e){const t={each(r){for(let n=0;n<e.frames?.length;n+=1){const o=e.frames[n];o&&r(o)}},addEventListener(r,n,o){return t.each(s=>{try{s.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(s=>{try{s.document.removeEventListener(r,n,o)}catch{}})}};return t}function Gn(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t?.addEventListener(r,n,o)}catch{}return()=>{try{t?.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t?.removeEventListener(r,n,o)}catch{}}}}var Le="pointerdown.outside",Be="focus.outside";function Vn(e){for(const t of e)if(D(t)&&G(t))return!0;return!1}var ft=e=>"clientY"in e;function Un(e,t){if(!ft(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function Wn(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Me(e,t){if(!t||!ft(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,s=o&&e.clientY>t.offsetTop+t.clientHeight,i={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return Wn(i,a)?n||s:!1}function qn(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:s,defer:i}=t;if(!e)return;const a=L(e),u=ne(e),c=_n(u),d=Gn(u);function h(b,k){if(!D(k)||!k.isConnected||ue(e,k)||Un(e,b))return!1;const T=a.querySelector(`[aria-controls="${e.id}"]`);if(T){const P=we(T);if(Me(b,P))return!1}const S=we(e);return Me(b,S)?!1:!r?.(k)}const l=new Set,v=Y(e?.getRootNode());function g(b){function k(T){const S=i&&!Se()?$:A=>A(),P=T??b,Z=P?.composedPath?.()??[P?.target];S(()=>{const A=v?Z[0]:M(b);if(!(!e||!h(b,A))){if(o||s){const he=Ee(o,s);e.addEventListener(Le,he,{once:!0})}$e(e,Le,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:Jt(P),focusable:Vn(Z),target:A}})}})}b.pointerType==="touch"?(l.forEach(T=>T()),l.add(I(a,"click",k,{once:!0})),l.add(d.addEventListener("click",k,{once:!0})),l.add(c.addEventListener("click",k,{once:!0}))):k()}const y=new Set,C=setTimeout(()=>{y.add(I(a,"pointerdown",g,!0)),y.add(d.addEventListener("pointerdown",g,!0)),y.add(c.addEventListener("pointerdown",g,!0))},0);function w(b){(i?$:T=>T())(()=>{const T=M(b);if(!(!e||!h(b,T))){if(n||s){const S=Ee(n,s);e.addEventListener(Be,S,{once:!0})}$e(e,Be,{bubbles:!1,cancelable:!0,detail:{originalEvent:b,contextmenu:!1,focusable:G(T),target:T}})}})}return Se()||(y.add(I(a,"focusin",w,!0)),y.add(d.addEventListener("focusin",w,!0)),y.add(c.addEventListener("focusin",w,!0))),()=>{clearTimeout(C),l.forEach(b=>b()),y.forEach(b=>b())}}function Kn(e,t){const{defer:r}=t,n=r?$:s=>s(),o=[];return o.push(n(()=>{const s=typeof e=="function"?e():e;o.push(qn(s,t))})),()=>{o.forEach(s=>s?.())}}function $e(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function Hn(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t?.(n))};return I(L(e),"keydown",r,{capture:!0})}var je="layer:request-dismiss",R={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<r},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>ue(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>ue(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>R.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const r=this.indexOf(e);if(r===-1)return;const n=this.layers[r];Xn(e,je,o=>{n.requestDismiss?.(o),o.defaultPrevented||n?.dismiss()}),zn(e,je,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function zn(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(o)}function Xn(e,t,r){e.addEventListener(t,r,{once:!0})}var _e;function Ge(){R.layers.forEach(({node:e})=>{e.style.pointerEvents=R.isBelowPointerBlockingLayer(e)?"none":"auto"})}function Yn(e){e.style.pointerEvents=""}function Zn(e,t){const r=L(e),n=[];return R.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(_e=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[s,i]=cn(()=>{const a=o();return D(a)?a:null},{timeout:1e3});s.then(a=>n.push(le(a,{pointerEvents:"auto"}))),n.push(i)}),()=>{R.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=_e,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function Jn(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){Ne("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,onRequestDismiss:o,pointerBlocking:s,exclude:i,debug:a}=t,u={dismiss:n,node:e,pointerBlocking:s,requestDismiss:o};R.add(u),Ge();function c(g){const y=M(g.detail.originalEvent);R.isBelowPointerBlockingLayer(e)||R.isInBranch(y)||(t.onPointerDownOutside?.(g),t.onInteractOutside?.(g),!g.defaultPrevented&&(a&&console.log("onPointerDownOutside:",g.detail.originalEvent),n?.()))}function d(g){const y=M(g.detail.originalEvent);R.isInBranch(y)||(t.onFocusOutside?.(g),t.onInteractOutside?.(g),!g.defaultPrevented&&(a&&console.log("onFocusOutside:",g.detail.originalEvent),n?.()))}function h(g){R.isTopMost(e)&&(t.onEscapeKeyDown?.(g),!g.defaultPrevented&&n&&(g.preventDefault(),n()))}function l(g){if(!e)return!1;const y=typeof i=="function"?i():i,C=Array.isArray(y)?y:[y],w=t.persistentElements?.map(b=>b()).filter(D);return w&&C.push(...w),C.some(b=>ue(b,g))||R.isInNestedLayer(e,g)}const v=[s?Zn(e,t.persistentElements):void 0,Hn(e,h),Kn(e,{exclude:l,onFocusOutside:d,onPointerDownOutside:c,defer:t.defer})];return()=>{R.remove(e),Ge(),Yn(e),v.forEach(g=>g?.())}}function Qn(e,t){const{defer:r}=t,n=r?$:s=>s(),o=[];return o.push(n(()=>{const s=X(e)?e():e;o.push(Jn(s,t))})),()=>{o.forEach(s=>s?.())}}var er=Object.defineProperty,tr=(e,t,r)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t,r)=>tr(e,typeof t!="symbol"?t+"":t,r),Ve={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},nr=[],rr=class{constructor(e,t){E(this,"trapStack"),E(this,"config"),E(this,"doc"),E(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),E(this,"listenerCleanups",[]),E(this,"handleFocus",n=>{const o=M(n),s=this.findContainerIndex(o,n)>=0;if(s||Ce(o))s&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let i,a=!0;if(this.state.mostRecentlyFocusedNode)if(J(this.state.mostRecentlyFocusedNode)>0){const u=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[u];if(c.length>0){const d=c.findIndex(h=>h===this.state.mostRecentlyFocusedNode);d>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?d+1<c.length&&(i=c[d+1],a=!1):d-1>=0&&(i=c[d-1],a=!1))}}else this.state.containerGroups.some(u=>u.tabbableNodes.some(c=>J(c)>0))||(a=!1);else a=!1;a&&(i=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),i?this.tryFocus(i):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),E(this,"handlePointerDown",n=>{const o=M(n);if(!(this.findContainerIndex(o,n)>=0)){if(ee(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}ee(this.config.allowOutsideClick,n)||n.preventDefault()}}),E(this,"handleClick",n=>{const o=M(n);this.findContainerIndex(o,n)>=0||ee(this.config.clickOutsideDeactivates,n)||ee(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),E(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),s=this.findNextNavNode({event:n,isBackward:o});if(!s)return;Q(n)&&n.preventDefault(),this.tryFocus(s)}}),E(this,"handleEscapeKey",n=>{or(n)&&ee(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),E(this,"_mutationObserver"),E(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(i=>Array.from(i.removedNodes).some(u=>u===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),E(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0})})}),E(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!G(n))if(this.findContainerIndex(this.doc.activeElement)>=0)n=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];n=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),E(this,"tryFocus",n=>{if(n!==!1&&n!==ze(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,sr(n)&&n.select()}}),E(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Ve.deactivateTrap(this.trapStack,this);const s=this.getOption(o,"onDeactivate"),i=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),u=this.getOption(o,"returnFocus","returnFocusOnDeactivate");s?.();const c=()=>{Ue(()=>{if(u){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(d)}i?.()})};if(u&&a){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(d).then(c,c),this}return c(),this}),E(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),s=this.getOption(n,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),s?.(),this}),E(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),s=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),s?.(),this}),E(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),E(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),E(this,"getOption",(n,o,s)=>n&&n[o]!==void 0?n[o]:this.config[s||o]),E(this,"getNodeForOption",(n,{hasFallback:o=!1,params:s=[]}={})=>{let i=this.config[n];if(typeof i=="function"&&(i=i(...s)),i===!0&&(i=void 0),!i){if(i===void 0||i===!1)return i;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let a=i;if(typeof i=="string"){try{a=this.doc.querySelector(i)}catch(u){throw new Error(`\`${n}\` appears to be an invalid selector; error="${u.message}"`)}if(!a&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return a}),E(this,"findNextNavNode",n=>{const{event:o,isBackward:s=!1}=n,i=n.target||M(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const u=this.findContainerIndex(i,o),c=u>=0?this.state.containerGroups[u]:void 0;if(u<0)s?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(s){let d=this.state.tabbableGroups.findIndex(({firstTabbableNode:h})=>i===h);if(d<0&&(c?.container===i||G(i)&&!W(i)&&!c?.nextTabbableNode(i,!1))&&(d=u),d>=0){const h=d===0?this.state.tabbableGroups.length-1:d-1,l=this.state.tabbableGroups[h];a=J(i)>=0?l.lastTabbableNode:l.lastDomTabbableNode}else Q(o)||(a=c?.nextTabbableNode(i,!1))}else{let d=this.state.tabbableGroups.findIndex(({lastTabbableNode:h})=>i===h);if(d<0&&(c?.container===i||G(i)&&!W(i)&&!c?.nextTabbableNode(i))&&(d=u),d>=0){const h=d===this.state.tabbableGroups.length-1?0:d+1,l=this.state.tabbableGroups[h];a=J(i)>=0?l.firstTabbableNode:l.firstDomTabbableNode}else Q(o)||(a=c?.nextTabbableNode(i))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||nr;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(n){return Q(n)&&!n.shiftKey},isKeyBackward(n){return Q(n)&&n.shiftKey},...t};this.doc=r.document||L(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||r?.includes(n)||o.find(s=>s===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=et(e),r=Qe(e),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=r.find(c=>W(c)),i=r.slice().reverse().find(c=>W(c)),a=!!t.find(c=>J(c)>0);function u(c,d=!0){const h=t.indexOf(c);return h<0?d?r.slice(r.indexOf(c)+1).find(l=>W(l)):r.slice(0,r.indexOf(c)).reverse().find(l=>W(l)):t[h+(d?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:i,nextTabbableNode:u}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Ve.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Ue(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(I(this.doc,"focusin",this.handleFocus,!0),I(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),I(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),I(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),I(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),I(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},Q=e=>e.key==="Tab",ee=(e,...t)=>typeof e=="function"?e(...t):e,or=e=>!e.isComposing&&e.key==="Escape",Ue=e=>setTimeout(e,0),sr=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function ir(e,t={}){let r;const n=$(()=>{const o=typeof e=="function"?e():e;if(o){r=new rr(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:L(o)});try{r.activate()}catch{}}});return function(){r?.deactivate(),n()}}var be="data-scroll-lock";function ar(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function cr(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(be))return;const i=r.innerWidth-n.clientWidth;o.setAttribute(be,"");const a=()=>sn(n,"--scrollbar-width",`${i}px`),u=ar(n),c=()=>le(o,{overflow:"hidden",[u]:`${i}px`}),d=()=>{const{scrollX:l,scrollY:v,visualViewport:g}=r,y=g?.offsetLeft??0,C=g?.offsetTop??0,w=le(o,{position:"fixed",overflow:"hidden",top:`${-(v-Math.floor(C))}px`,left:`${-(l-Math.floor(y))}px`,right:"0",[u]:`${i}px`});return()=>{w?.(),r.scrollTo({left:l,top:v,behavior:"instant"})}},h=[a(),Yt()?d():c()];return()=>{h.forEach(l=>l?.()),o.removeAttribute(be)}}var ur=te("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),U=ur.build(),pt=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,ht=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Pe=e=>e.ids?.content??`dialog:${e.id}:content`,gt=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Oe=e=>e.ids?.title??`dialog:${e.id}:title`,xe=e=>e.ids?.description??`dialog:${e.id}:description`,mt=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,ae=e=>e.getById(Pe(e)),lr=e=>e.getById(pt(e)),dr=e=>e.getById(ht(e)),fr=e=>e.getById(gt(e)),pr=e=>e.getById(Oe(e)),hr=e=>e.getById(xe(e)),gr=e=>e.getById(mt(e));function mr(e,t){const{state:r,send:n,context:o,prop:s,scope:i}=e,a=s("aria-label"),u=r.matches("open");return{open:u,setOpen(c){r.matches("open")!==c&&n({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...U.trigger.attrs,dir:s("dir"),id:gt(i),"aria-haspopup":"dialog",type:"button","aria-expanded":u,"data-state":u?"open":"closed","aria-controls":Pe(i),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...U.backdrop.attrs,dir:s("dir"),hidden:!u,id:ht(i),"data-state":u?"open":"closed"})},getPositionerProps(){return t.element({...U.positioner.attrs,dir:s("dir"),id:pt(i),style:{pointerEvents:u?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...U.content.attrs,dir:s("dir"),role:s("role"),hidden:!u,id:Pe(i),tabIndex:-1,"data-state":u?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:Oe(i),"aria-describedby":c.description?xe(i):void 0})},getTitleProps(){return t.element({...U.title.attrs,dir:s("dir"),id:Oe(i)})},getDescriptionProps(){return t.element({...U.description.attrs,dir:s("dir"),id:xe(i)})},getCloseTriggerProps(){return t.button({...U.closeTrigger.attrs,dir:s("dir"),id:mt(i),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var vr={props({props:e,scope:t}){const r=e.role==="alertdialog",n=r?()=>gr(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return Qn(()=>ae(e),{defer:!0,pointerBlocking:r("modal"),exclude:[fr(e)],onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return cr(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?ir(()=>ae(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>t("finalFocusEl")?.()??n}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?jn(()=>[ae(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){$(()=>{e.set("rendered",{title:!!pr(t),description:!!hr(t)})})},syncZIndex({scope:e}){$(()=>{const t=ae(e);if(!t)return;const r=Xe(t);[lr(e),dr(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex),o?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};const[Mr,vt]=re({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[$r,yr]=re({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),br=e=>{const t=f.useId(),{getRootNode:r}=vt(),{dir:n}=yr(),o={id:t,getRootNode:r,dir:n,...e},s=nt(vr,o);return mr(s,vn)},Er=e=>{const[t,{children:r,...n}]=Fn(e),[o]=Nn(t),s=br(n),i=st(j({present:s.open},t));return x.jsx(Dn,{value:s,children:x.jsx(bn,{value:o,children:x.jsx(kn,{value:i,children:r})})})};const yt=f.forwardRef((e,t)=>{const r=V(),n=j(r.getTitleProps(),e);return x.jsx(q.h2,{...n,ref:t})});yt.displayName="DialogTitle";const bt=f.forwardRef((e,t)=>{const r=V(),n=Fe(),o=j({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return x.jsx(q.button,{...o,ref:t})});bt.displayName="DialogTrigger";const{withRootProvider:Nr,withContext:B}=wt.createSlotRecipeContext({key:"dialog"}),wr=Nr(Er,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),Pr=B(bt,"trigger",{forwardAsChild:!0}),Et=B(lt,"positioner",{forwardAsChild:!0}),Or=B(ct,"content",{forwardAsChild:!0}),xr=B(ut,"description",{forwardAsChild:!0}),Cr=B(yt,"title",{forwardAsChild:!0}),Tr=B(at,"closeTrigger",{forwardAsChild:!0}),Dr=f.forwardRef(function(t,r){const n=V();return x.jsx(Pt.chakra.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),Nt=B(it,"backdrop",{forwardAsChild:!0}),kr=B("div","body"),Fr=B("div","footer"),Rr=B("div","header"),Sr=e=>{const{children:t,disabled:r}=e,[n,o]=f.useState(e.container?.current),s=f.useSyncExternalStore(Ir,()=>!1,()=>!0),{getRootNode:i}=vt();if(f.useEffect(()=>{o(()=>e.container?.current)},[e.container]),s||r)return x.jsx(x.Fragment,{children:t});const a=n??Ar(i);return x.jsx(x.Fragment,{children:f.Children.map(t,u=>fe.createPortal(u,a))})},Ar=e=>{const t=e?.(),r=t.getRootNode();return Y(r)?r:L(t).body},Ir=()=>()=>{},Lr=function(t){const{children:r,portalled:n=!0,portalRef:o,backdrop:s=!0,ref:i,...a}=t;return x.jsxs(Sr,{disabled:!n,container:o,children:[s&&x.jsx(Nt,{}),x.jsx(Et,{children:x.jsx(Or,{ref:i,...a,asChild:!1,children:r})})]})},Br={Root:wr,Trigger:Pr,Content:Lr,Backdrop:Nt,Positioner:Et,Title:Cr,Description:xr,Body:kr,Footer:Fr,Header:Rr,CloseTrigger:Tr,ActionTrigger:Dr};exports.Dialog=Br;
2
+ //# sourceMappingURL=dialog-BQa_NWSr.cjs.js.map