@arc-ui/components 12.0.0-beta.5 → 12.0.0-beta.8

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 (445) hide show
  1. package/dist/Alert/Alert.cjs.js +9 -10
  2. package/dist/Alert/Alert.esm.js +4 -5
  3. package/dist/Alert/styles.css +1 -0
  4. package/dist/Align/Align.cjs.js +7 -8
  5. package/dist/Align/Align.esm.js +1 -2
  6. package/dist/Align/styles.css +1 -0
  7. package/dist/AppButton/AppButton.cjs.js +4 -3
  8. package/dist/AppButton/AppButton.esm.js +4 -3
  9. package/dist/AppButton/styles.css +1 -0
  10. package/dist/Avatar/Avatar.cjs.js +7 -8
  11. package/dist/Avatar/Avatar.esm.js +7 -8
  12. package/dist/Avatar/styles.css +1 -0
  13. package/dist/AvatarGroup/AvatarGroup.cjs.js +14 -15
  14. package/dist/AvatarGroup/AvatarGroup.esm.js +7 -8
  15. package/dist/AvatarGroup/styles.css +1 -0
  16. package/dist/Badge/Badge.cjs.js +5 -13
  17. package/dist/Badge/Badge.esm.js +4 -12
  18. package/dist/Badge/styles.css +1 -0
  19. package/dist/Box/Box.cjs.js +6 -24
  20. package/dist/Box/Box.esm.js +5 -23
  21. package/dist/Box/styles.css +1 -0
  22. package/dist/BrandLogo/BrandLogo.cjs.js +3 -4
  23. package/dist/BrandLogo/BrandLogo.esm.js +3 -4
  24. package/dist/BrandLogo/styles.css +1 -0
  25. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +5 -5
  26. package/dist/Breadcrumbs/Breadcrumbs.esm.js +5 -5
  27. package/dist/Breadcrumbs/styles.css +1 -0
  28. package/dist/Button/Button.cjs.js +5 -6
  29. package/dist/Button/Button.esm.js +5 -6
  30. package/dist/Button/styles.css +1 -0
  31. package/dist/ButtonV2/ButtonV2.cjs.js +5 -6
  32. package/dist/ButtonV2/ButtonV2.esm.js +5 -6
  33. package/dist/ButtonV2/styles.css +1 -0
  34. package/dist/Calendar/Calendar.cjs.js +10 -11
  35. package/dist/Calendar/Calendar.esm.js +10 -11
  36. package/dist/Calendar/styles.css +1 -0
  37. package/dist/CardFooter/CardFooter.cjs.js +17 -0
  38. package/dist/CardFooter/CardFooter.esm.js +9 -0
  39. package/dist/CardFooter/package.json +7 -0
  40. package/dist/CardFooter/styles.css +1 -0
  41. package/dist/CardHeading/CardHeading.cjs.js +14 -0
  42. package/dist/CardHeading/CardHeading.esm.js +6 -0
  43. package/dist/CardHeading/package.json +7 -0
  44. package/dist/CardHeading/styles.css +1 -0
  45. package/dist/Carousel/Carousel.cjs.js +1921 -0
  46. package/dist/Carousel/Carousel.esm.js +1913 -0
  47. package/dist/Carousel/package.json +7 -0
  48. package/dist/Carousel/styles.css +1 -0
  49. package/dist/Checkbox/Checkbox.cjs.js +8 -9
  50. package/dist/Checkbox/Checkbox.esm.js +8 -9
  51. package/dist/Checkbox/styles.css +1 -0
  52. package/dist/Columns/Columns.cjs.js +2 -3
  53. package/dist/Columns/Columns.esm.js +2 -3
  54. package/dist/Columns/styles.css +1 -0
  55. package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +10 -0
  56. package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +2 -0
  57. package/dist/ConditionalWrapper/package.json +7 -0
  58. package/dist/ContentSwitcher/ContentSwitcher.cjs.js +20 -0
  59. package/dist/ContentSwitcher/ContentSwitcher.esm.js +12 -0
  60. package/dist/ContentSwitcher/package.json +7 -0
  61. package/dist/ContentSwitcher/styles.css +1 -0
  62. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +23 -0
  63. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +15 -0
  64. package/dist/ContentSwitcherDropdown/package.json +7 -0
  65. package/dist/ContentSwitcherDropdown/styles.css +1 -0
  66. package/dist/DatePicker/DatePicker.cjs.js +19 -23
  67. package/dist/DatePicker/DatePicker.esm.js +19 -23
  68. package/dist/DatePicker/styles.css +1 -0
  69. package/dist/Disclosure/Disclosure.cjs.js +8 -9
  70. package/dist/Disclosure/Disclosure.esm.js +4 -5
  71. package/dist/Disclosure/styles.css +1 -0
  72. package/dist/DisclosureMini/DisclosureMini.cjs.js +5 -6
  73. package/dist/DisclosureMini/DisclosureMini.esm.js +5 -6
  74. package/dist/DisclosureMini/styles.css +1 -0
  75. package/dist/Download/Download.cjs.js +16 -0
  76. package/dist/Download/Download.esm.js +8 -0
  77. package/dist/Download/package.json +7 -0
  78. package/dist/Download/styles.css +1 -0
  79. package/dist/Elevation/Elevation.cjs.js +5 -5
  80. package/dist/Elevation/Elevation.esm.js +1 -1
  81. package/dist/Elevation/styles.css +1 -0
  82. package/dist/Filter/Filter.cjs.js +4 -4
  83. package/dist/Filter/Filter.esm.js +4 -4
  84. package/dist/Filter/styles.css +1 -0
  85. package/dist/FormControl/FormControl.cjs.js +7 -8
  86. package/dist/FormControl/FormControl.esm.js +7 -8
  87. package/dist/FormControl/styles.css +1 -0
  88. package/dist/Grid/Grid.cjs.js +2 -3
  89. package/dist/Grid/Grid.esm.js +2 -3
  90. package/dist/Grid/styles.css +1 -0
  91. package/dist/Group/Group.cjs.js +3 -3
  92. package/dist/Group/Group.esm.js +3 -3
  93. package/dist/Group/styles.css +1 -0
  94. package/dist/Heading/Heading.cjs.js +3 -4
  95. package/dist/Heading/Heading.esm.js +3 -4
  96. package/dist/Heading/styles.css +1 -0
  97. package/dist/HeroBanner/HeroBanner.cjs.js +63 -0
  98. package/dist/HeroBanner/HeroBanner.esm.js +55 -0
  99. package/dist/HeroBanner/package.json +7 -0
  100. package/dist/HeroBanner/styles.css +1 -0
  101. package/dist/HeroButton/HeroButton.cjs.js +5 -6
  102. package/dist/HeroButton/HeroButton.esm.js +5 -6
  103. package/dist/HeroButton/styles.css +1 -0
  104. package/dist/Hidden/Hidden.cjs.js +5 -5
  105. package/dist/Hidden/Hidden.esm.js +1 -1
  106. package/dist/Hidden/styles.css +1 -0
  107. package/dist/Icon/Icon.cjs.js +3 -4
  108. package/dist/Icon/Icon.esm.js +3 -4
  109. package/dist/Icon/styles.css +1 -0
  110. package/dist/Image/Image.cjs.js +2 -3
  111. package/dist/Image/Image.esm.js +2 -3
  112. package/dist/Image/styles.css +1 -0
  113. package/dist/ImpactCard/ImpactCard.cjs.js +17 -18
  114. package/dist/ImpactCard/ImpactCard.esm.js +11 -12
  115. package/dist/ImpactCard/styles.css +1 -0
  116. package/dist/InformationCard/InformationCard.cjs.js +37 -51
  117. package/dist/InformationCard/InformationCard.esm.js +34 -48
  118. package/dist/InformationCard/styles.css +1 -0
  119. package/dist/Link/Link.cjs.js +15 -16
  120. package/dist/Link/Link.esm.js +8 -9
  121. package/dist/Link/styles.css +1 -0
  122. package/dist/Markup/Markup.cjs.js +6 -6
  123. package/dist/Markup/Markup.esm.js +2 -2
  124. package/dist/Markup/styles.css +1 -0
  125. package/dist/MediaCard/MediaCard.cjs.js +15 -15
  126. package/dist/MediaCard/MediaCard.esm.js +15 -15
  127. package/dist/MediaCard/styles.css +1 -0
  128. package/dist/Modal/Modal.cjs.js +44 -1201
  129. package/dist/Modal/Modal.esm.js +13 -1169
  130. package/dist/Modal/styles.css +1 -0
  131. package/dist/Pagination/Pagination.cjs.js +12 -13
  132. package/dist/Pagination/Pagination.esm.js +3 -4
  133. package/dist/Pagination/styles.css +1 -0
  134. package/dist/PaginationSimple/PaginationSimple.cjs.js +85 -17
  135. package/dist/PaginationSimple/PaginationSimple.esm.js +82 -14
  136. package/dist/PaginationSimple/styles.css +1 -0
  137. package/dist/Poster/Poster.cjs.js +4 -5
  138. package/dist/Poster/Poster.esm.js +4 -5
  139. package/dist/Poster/styles.css +1 -0
  140. package/dist/ProgressBar/ProgressBar.cjs.js +12 -13
  141. package/dist/ProgressBar/ProgressBar.esm.js +6 -7
  142. package/dist/ProgressBar/styles.css +1 -0
  143. package/dist/ProgressStepper/ProgressStepper.cjs.js +5 -6
  144. package/dist/ProgressStepper/ProgressStepper.esm.js +5 -6
  145. package/dist/ProgressStepper/styles.css +1 -0
  146. package/dist/RadioGroup/RadioGroup.cjs.js +8 -9
  147. package/dist/RadioGroup/RadioGroup.esm.js +8 -9
  148. package/dist/RadioGroup/styles.css +1 -0
  149. package/dist/Rule/Rule.cjs.js +5 -5
  150. package/dist/Rule/Rule.esm.js +2 -2
  151. package/dist/Rule/styles.css +1 -0
  152. package/dist/ScrollToTop/ScrollToTop.cjs.js +26 -10
  153. package/dist/ScrollToTop/ScrollToTop.esm.js +21 -5
  154. package/dist/ScrollToTop/styles.css +1 -0
  155. package/dist/Section/Section.cjs.js +2 -2
  156. package/dist/Section/Section.esm.js +2 -2
  157. package/dist/Section/styles.css +1 -0
  158. package/dist/Select/Select.cjs.js +31 -1132
  159. package/dist/Select/Select.esm.js +18 -1119
  160. package/dist/Select/styles.css +1 -0
  161. package/dist/SiteFooter/SiteFooter.cjs.js +7 -8
  162. package/dist/SiteFooter/SiteFooter.esm.js +7 -8
  163. package/dist/SiteFooter/styles.css +1 -0
  164. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +12 -13
  165. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +12 -13
  166. package/dist/SiteHeaderV2/styles.css +1 -0
  167. package/dist/SkipLink/SkipLink.cjs.js +4 -4
  168. package/dist/SkipLink/SkipLink.esm.js +3 -3
  169. package/dist/SkipLink/styles.css +1 -0
  170. package/dist/Spinner/Spinner.cjs.js +12 -0
  171. package/dist/Spinner/Spinner.esm.js +4 -0
  172. package/dist/Spinner/package.json +7 -0
  173. package/dist/Spinner/styles.css +1 -0
  174. package/dist/Surface/Surface.cjs.js +2 -2
  175. package/dist/Surface/Surface.esm.js +2 -2
  176. package/dist/Surface/styles.css +1 -0
  177. package/dist/Switch/Switch.cjs.js +16 -18
  178. package/dist/Switch/Switch.esm.js +12 -14
  179. package/dist/Switch/styles.css +1 -0
  180. package/dist/Tabs/Tabs.cjs.js +9 -11
  181. package/dist/Tabs/Tabs.esm.js +9 -11
  182. package/dist/Tabs/styles.css +1 -0
  183. package/dist/Tag/Tag.cjs.js +77 -9
  184. package/dist/Tag/Tag.esm.js +76 -8
  185. package/dist/Tag/styles.css +1 -0
  186. package/dist/Text/Text.cjs.js +3 -4
  187. package/dist/Text/Text.esm.js +3 -4
  188. package/dist/Text/styles.css +1 -0
  189. package/dist/TextArea/TextArea.cjs.js +64 -59
  190. package/dist/TextArea/TextArea.esm.js +60 -55
  191. package/dist/TextArea/styles.css +1 -0
  192. package/dist/TextInput/TextInput.cjs.js +8 -10
  193. package/dist/TextInput/TextInput.esm.js +8 -10
  194. package/dist/TextInput/styles.css +1 -0
  195. package/dist/Theme/Theme.cjs.js +7 -6
  196. package/dist/Theme/Theme.esm.js +5 -4
  197. package/dist/Theme/styles.css +1 -0
  198. package/dist/ThemeIcon/ThemeIcon.cjs.js +3 -4
  199. package/dist/ThemeIcon/ThemeIcon.esm.js +3 -4
  200. package/dist/ThemeIcon/styles.css +1 -0
  201. package/dist/Toast/Toast.cjs.js +8 -10
  202. package/dist/Toast/Toast.esm.js +8 -10
  203. package/dist/Toast/styles.css +1 -0
  204. package/dist/Truncate/Truncate.cjs.js +3 -3
  205. package/dist/Truncate/Truncate.esm.js +3 -3
  206. package/dist/Truncate/styles.css +1 -0
  207. package/dist/TypographyCard/TypographyCard.cjs.js +15 -16
  208. package/dist/TypographyCard/TypographyCard.esm.js +10 -11
  209. package/dist/TypographyCard/styles.css +1 -0
  210. package/dist/UniversalHeader/UniversalHeader.cjs.js +3 -3
  211. package/dist/UniversalHeader/UniversalHeader.esm.js +3 -3
  212. package/dist/UniversalHeader/styles.css +1 -0
  213. package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
  214. package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
  215. package/dist/VerticalSpace/styles.css +1 -0
  216. package/dist/VideoPlayer/VideoPlayer.cjs.js +38 -26
  217. package/dist/VideoPlayer/VideoPlayer.esm.js +37 -25
  218. package/dist/VideoPlayer/styles.css +1 -0
  219. package/dist/Visible/Visible.cjs.js +5 -5
  220. package/dist/Visible/Visible.esm.js +1 -1
  221. package/dist/Visible/styles.css +1 -0
  222. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +2 -1
  223. package/dist/VisuallyHidden/VisuallyHidden.esm.js +2 -1
  224. package/dist/VisuallyHidden/styles.css +1 -0
  225. package/dist/_shared/cjs/{Avatar-fc0d9b8b.js → Avatar-7478d063.js} +11 -12
  226. package/dist/_shared/cjs/Badge-ca986033.js +17 -0
  227. package/dist/_shared/cjs/Box-e225b4a4.js +29 -0
  228. package/dist/_shared/cjs/{BrandLogo-1d2ca2c7.js → BrandLogo-bf632f2b.js} +7 -8
  229. package/dist/_shared/cjs/{Breadcrumbs-7af0af2c.js → Breadcrumbs-bb292a9e.js} +15 -14
  230. package/dist/_shared/cjs/BtIconArrowRight.esm-c78e3c11.js +30 -0
  231. package/dist/_shared/cjs/BtIconChevronRight2Px.esm-e8329e34.js +44 -0
  232. package/dist/_shared/cjs/BtIconChevronRightMid.esm-745faaca.js +28 -0
  233. package/dist/_shared/cjs/BtIconPlayFill.esm-7e848bd9.js +30 -0
  234. package/dist/_shared/cjs/{Button-7d891a89.js → Button-76215474.js} +12 -13
  235. package/dist/_shared/cjs/{ButtonV2-b2db3f46.js → ButtonV2-320f74b2.js} +21 -16
  236. package/dist/_shared/cjs/{Calendar-649cc139.js → Calendar-16ed5bec.js} +915 -915
  237. package/dist/_shared/cjs/CardFooter-6aa9a280.js +79 -0
  238. package/dist/_shared/cjs/CardHeading-30ef8abc.js +16 -0
  239. package/dist/_shared/cjs/{Checkbox-0e423653.js → Checkbox-4dbaac21.js} +17 -12
  240. package/dist/_shared/cjs/{Columns-1224bdff.js → Columns-ff4977f8.js} +9 -10
  241. package/dist/_shared/cjs/Combination-d19b4dc6.js +1203 -0
  242. package/dist/_shared/cjs/ContentSwitcher-1b789e2f.js +98 -0
  243. package/dist/_shared/cjs/ContentSwitcherDropdown-0de9f7e4.js +47 -0
  244. package/dist/_shared/cjs/DatePicker-a0f14025.js +939 -0
  245. package/dist/_shared/cjs/{DisclosureMini-c01ecce0.js → DisclosureMini-09ee2d12.js} +10 -10
  246. package/dist/_shared/cjs/Download-08d71049.js +43 -0
  247. package/dist/_shared/cjs/{Filter-3b897d92.js → Filter-60b0dd96.js} +14 -14
  248. package/dist/_shared/cjs/{FormControl-88d48f42.js → FormControl-fa7bb586.js} +12 -12
  249. package/dist/_shared/cjs/{Grid-9e91fb3d.js → Grid-a50fb206.js} +10 -11
  250. package/dist/_shared/cjs/{Group-3d5ea240.js → Group-1aba9855.js} +9 -9
  251. package/dist/_shared/cjs/{Heading-fb63844f.js → Heading-cb321adf.js} +9 -9
  252. package/dist/_shared/cjs/{HeroButton-0586a7c4.js → HeroButton-75e1ab78.js} +20 -20
  253. package/dist/_shared/cjs/Icon-859c6c00.js +47 -0
  254. package/dist/_shared/cjs/{Image-e9a5a326.js → Image-b807e951.js} +9 -10
  255. package/dist/_shared/cjs/{MediaCard-8f41b411.js → MediaCard-8101ae8b.js} +18 -18
  256. package/dist/_shared/cjs/{Poster-b7242b37.js → Poster-46b6803e.js} +13 -14
  257. package/dist/_shared/cjs/{ProgressStepper-fb8405c2.js → ProgressStepper-5fb2e7ac.js} +18 -42
  258. package/dist/_shared/cjs/{RadioGroup-a4186267.js → RadioGroup-f8963bd2.js} +14 -14
  259. package/dist/_shared/cjs/{Section-ecfc659b.js → Section-bee4a090.js} +5 -5
  260. package/dist/_shared/cjs/{SiteFooter-7c4072b5.js → SiteFooter-3fee99ae.js} +11 -11
  261. package/dist/_shared/cjs/{SiteHeaderV2-94687999.js → SiteHeaderV2-0f072158.js} +71 -106
  262. package/dist/_shared/cjs/Spinner-2a1d9f20.js +24 -0
  263. package/dist/_shared/cjs/{index-df60851b.js → Surface-4bc47dcb.js} +53 -65
  264. package/dist/_shared/cjs/Tabs-ba44ea49.js +90 -0
  265. package/dist/_shared/cjs/{Text-1c1110a4.js → Text-f6be8fdd.js} +8 -8
  266. package/dist/_shared/cjs/{TextInput-762e2309.js → TextInput-9d9a53ac.js} +13 -13
  267. package/dist/_shared/cjs/{ThemeIcon-ee814862.js → ThemeIcon-6b10d20a.js} +8 -9
  268. package/dist/_shared/cjs/{Toast-d06a89e0.js → Toast-a33b5a2e.js} +16 -17
  269. package/dist/_shared/cjs/{UniversalHeader-f6d9c63a.js → UniversalHeader-114ac8f5.js} +6 -6
  270. package/dist/_shared/cjs/{VerticalSpace-e128ec68.js → VerticalSpace-3908ae62.js} +5 -5
  271. package/dist/_shared/cjs/{VisuallyHidden-b0de4c7b.js → VisuallyHidden-821078c9.js} +3 -2
  272. package/dist/_shared/cjs/{component-df82bc05.js → component-ae4b7058.js} +4 -4
  273. package/dist/_shared/cjs/{Combination-3a639f6d.js → floating-ui.react-dom-08b8b87c.js} +37 -1103
  274. package/dist/_shared/cjs/{Tabs-75c34f43.js → index-1e7a1fce.js} +11 -96
  275. package/dist/_shared/cjs/{index-3d629205.js → index-2bf59363.js} +19 -1
  276. package/dist/_shared/cjs/{index-996dec94.js → index-527f962b.js} +1 -1
  277. package/dist/_shared/cjs/index-6b0bf2cc.js +2204 -0
  278. package/dist/_shared/cjs/{index-7aa7f96a.js → index-879e71ee.js} +8 -1
  279. package/dist/_shared/cjs/{index-41b09e85.js → index-ba3141f5.js} +20 -1
  280. package/dist/_shared/cjs/{index-0c6319ec.js → index-dbc843d3.js} +1 -1
  281. package/dist/_shared/cjs/{index.es-16759329.js → index.es-11fc5df7.js} +2 -2
  282. package/dist/_shared/cjs/index.es-b404d2c5.js +324 -0
  283. package/dist/_shared/esm/{Avatar-38cc0595.js → Avatar-b2fde5c6.js} +5 -6
  284. package/dist/_shared/esm/Badge-a6bda4a7.js +11 -0
  285. package/dist/_shared/esm/Box-2a1645ed.js +23 -0
  286. package/dist/_shared/esm/{BrandLogo-7ed8aeda.js → BrandLogo-3424eb79.js} +2 -3
  287. package/dist/_shared/esm/{Breadcrumbs-9078b68e.js → Breadcrumbs-7de7bfa5.js} +11 -10
  288. package/dist/_shared/esm/BtIconArrowRight.esm-8bcaa8ad.js +24 -0
  289. package/dist/_shared/esm/BtIconChevronRight2Px.esm-84262845.js +37 -0
  290. package/dist/_shared/esm/BtIconChevronRightMid.esm-f67f0ca3.js +22 -0
  291. package/dist/_shared/esm/BtIconPlayFill.esm-ec2797a0.js +24 -0
  292. package/dist/_shared/esm/{Button-dde2b46a.js → Button-9cab8eec.js} +4 -5
  293. package/dist/_shared/esm/{ButtonV2-49cd0615.js → ButtonV2-4dc8830e.js} +13 -8
  294. package/dist/_shared/esm/{Calendar-60591442.js → Calendar-e3f8c4f0.js} +893 -893
  295. package/dist/_shared/esm/CardFooter-2902bd84.js +73 -0
  296. package/dist/_shared/esm/CardHeading-6d3dbfad.js +10 -0
  297. package/dist/_shared/esm/{Checkbox-0baca464.js → Checkbox-f40de2e9.js} +12 -7
  298. package/dist/_shared/esm/{Columns-6a8f6fbb.js → Columns-5e02e601.js} +1 -2
  299. package/dist/_shared/esm/Combination-a063f96d.js +1163 -0
  300. package/dist/_shared/esm/ContentSwitcher-e0bd73a7.js +92 -0
  301. package/dist/_shared/esm/ContentSwitcherDropdown-306b4660.js +41 -0
  302. package/dist/_shared/esm/DatePicker-3f82e2c4.js +910 -0
  303. package/dist/_shared/esm/{DisclosureMini-38f4c459.js → DisclosureMini-60cb2a6c.js} +4 -4
  304. package/dist/_shared/esm/Download-a5443778.js +37 -0
  305. package/dist/_shared/esm/{Filter-49dcf5ce.js → Filter-bc821cbc.js} +11 -11
  306. package/dist/_shared/esm/{FormControl-d873f7fa.js → FormControl-7ff0a178.js} +5 -5
  307. package/dist/_shared/esm/{Grid-fb9fc522.js → Grid-75251350.js} +1 -2
  308. package/dist/_shared/esm/{Group-66196f07.js → Group-b4e10621.js} +2 -2
  309. package/dist/_shared/esm/{Heading-906c7c7c.js → Heading-14df0c64.js} +5 -5
  310. package/dist/_shared/esm/{HeroButton-7ea692bf.js → HeroButton-1221bd94.js} +12 -12
  311. package/dist/_shared/esm/{Icon-512f834f.js → Icon-3e813b34.js} +16 -6
  312. package/dist/_shared/esm/{Image-57d08939.js → Image-85c39506.js} +1 -2
  313. package/dist/_shared/esm/{MediaCard-c12d89ea.js → MediaCard-387c8f11.js} +10 -10
  314. package/dist/_shared/esm/{Poster-e05a8b45.js → Poster-adcd3ba3.js} +4 -5
  315. package/dist/_shared/esm/{ProgressStepper-189ed0f9.js → ProgressStepper-72b070a8.js} +9 -33
  316. package/dist/_shared/esm/{RadioGroup-8ff17cbb.js → RadioGroup-6e657cee.js} +7 -7
  317. package/dist/_shared/esm/{Section-1acbc06a.js → Section-b9caea45.js} +1 -1
  318. package/dist/_shared/esm/{SiteFooter-b65497e8.js → SiteFooter-61b4ae63.js} +6 -6
  319. package/dist/_shared/esm/{SiteHeaderV2-784b3bf8.js → SiteHeaderV2-1fde7d20.js} +10 -45
  320. package/dist/_shared/esm/Spinner-9d28043d.js +18 -0
  321. package/dist/_shared/esm/{index-288c66b5.js → Surface-56d329b0.js} +48 -65
  322. package/dist/_shared/esm/Tabs-276a0836.js +84 -0
  323. package/dist/_shared/esm/{Text-a46fb76b.js → Text-98ad2e78.js} +5 -5
  324. package/dist/_shared/esm/{TextInput-94c7b1a4.js → TextInput-eccd0140.js} +6 -6
  325. package/dist/_shared/esm/{ThemeIcon-c2dc41a6.js → ThemeIcon-810de4bc.js} +2 -3
  326. package/dist/_shared/esm/{Toast-de6ca2f3.js → Toast-62932e3b.js} +6 -7
  327. package/dist/_shared/esm/{UniversalHeader-456ad60c.js → UniversalHeader-370d7fa4.js} +3 -3
  328. package/dist/_shared/esm/{VerticalSpace-b07cd8e6.js → VerticalSpace-549fbdc8.js} +1 -1
  329. package/dist/_shared/esm/VisuallyHidden-fee374a8.js +12 -0
  330. package/dist/_shared/esm/{component-d0a555cf.js → component-94b3dbfe.js} +1 -1
  331. package/dist/_shared/esm/{Combination-ae3a3f08.js → floating-ui.react-dom-1bb71aae.js} +15 -1079
  332. package/dist/_shared/esm/{index-f97466e9.js → index-14c7f4da.js} +1 -1
  333. package/dist/_shared/esm/index-24509173.js +2169 -0
  334. package/dist/_shared/esm/{index-cace3545.js → index-57d4cb34.js} +33 -33
  335. package/dist/_shared/esm/{Tabs-21ac7dfe.js → index-89a7c31c.js} +6 -90
  336. package/dist/_shared/esm/{index-4e58de24.js → index-ac50b180.js} +21 -3
  337. package/dist/_shared/esm/{index-7740883c.js → index-b9923ee4.js} +9 -2
  338. package/dist/_shared/esm/{index-605031ca.js → index-ce6dee84.js} +53 -53
  339. package/dist/_shared/esm/index-e969452b.js +41 -0
  340. package/dist/_shared/esm/{index-fa93ec97.js → index-f2ddcbe2.js} +1 -1
  341. package/dist/_shared/esm/index.es-4921e8dd.js +318 -0
  342. package/dist/_shared/esm/{index.es-1b6d33c2.js → index.es-52a3bcff.js} +2 -2
  343. package/dist/index.es.js +14634 -13762
  344. package/dist/index.es.js.map +1 -1
  345. package/dist/index.js +14637 -13761
  346. package/dist/index.js.map +1 -1
  347. package/dist/styles.css +9 -7
  348. package/dist/types/components/Avatar/index.d.ts +1 -1
  349. package/dist/types/components/Box/Box.d.ts +4 -0
  350. package/dist/types/components/ButtonV2/ButtonV2.d.ts +2 -2
  351. package/dist/types/components/CardHeading/index.d.ts +1 -0
  352. package/dist/types/components/Carousel/Carousel.d.ts +34 -0
  353. package/dist/types/components/Carousel/components/DotButton.d.ts +10 -0
  354. package/dist/types/components/Carousel/constants/breakpoints.d.ts +5 -0
  355. package/dist/types/components/Carousel/helpers/get-options.d.ts +3 -0
  356. package/dist/types/components/Carousel/helpers/get-slide-width.d.ts +12 -0
  357. package/dist/types/components/Carousel/index.d.ts +1 -0
  358. package/dist/types/components/Carousel/types/breakpoints.d.ts +1 -0
  359. package/dist/types/components/Carousel/types/keynames.d.ts +5 -0
  360. package/dist/types/components/Carousel/types/responsive.d.ts +3 -0
  361. package/dist/types/components/Carousel/types/screen-sizes.d.ts +2 -0
  362. package/dist/types/components/Carousel/types/slide-config.d.ts +5 -0
  363. package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
  364. package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +28 -0
  365. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +12 -0
  366. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +1 -0
  367. package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +24 -0
  368. package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +1 -0
  369. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +17 -0
  370. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +1 -0
  371. package/dist/types/components/ContentSwitcher/index.d.ts +1 -0
  372. package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +37 -0
  373. package/dist/types/components/ContentSwitcherDropdown/index.d.ts +1 -0
  374. package/dist/types/components/Disclosure/index.d.ts +1 -1
  375. package/dist/types/components/Download/Download.d.ts +41 -0
  376. package/dist/types/components/Download/index.d.ts +1 -0
  377. package/dist/types/components/Heading/Heading.d.ts +4 -0
  378. package/dist/types/components/Heading/index.d.ts +1 -1
  379. package/dist/types/components/HeroBanner/HeroBanner.d.ts +52 -0
  380. package/dist/types/components/HeroBanner/index.d.ts +1 -0
  381. package/dist/types/components/Icon/Icon.d.ts +2 -2
  382. package/dist/types/components/ImpactCard/ImpactCard.d.ts +2 -2
  383. package/dist/types/components/ImpactCard/index.d.ts +1 -1
  384. package/dist/types/components/InformationCard/InformationCard.d.ts +2 -2
  385. package/dist/types/components/InformationCard/index.d.ts +1 -1
  386. package/dist/types/components/MediaCard/MediaCard.d.ts +1 -1
  387. package/dist/types/components/MediaCard/index.d.ts +1 -1
  388. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +24 -16
  389. package/dist/types/components/Spinner/Spinner.d.ts +16 -0
  390. package/dist/types/components/Spinner/index.d.ts +1 -0
  391. package/dist/types/components/Surface/Surface.d.ts +4 -0
  392. package/dist/types/components/Switch/Switch.d.ts +4 -0
  393. package/dist/types/components/Tabs/TabsList/TabsList.d.ts +5 -0
  394. package/dist/types/components/Text/Text.d.ts +4 -0
  395. package/dist/types/components/TextInput/TextInput.d.ts +2 -2
  396. package/dist/types/components/ThemeIcon/icon-names.d.ts +1 -1
  397. package/dist/types/components/Truncate/Truncate.d.ts +1 -1
  398. package/dist/types/components/TypographyCard/TypographyCard.d.ts +2 -2
  399. package/dist/types/components/TypographyCard/index.d.ts +1 -1
  400. package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +9 -0
  401. package/dist/types/components/index.d.ts +4 -0
  402. package/dist/types/helpers/index.d.ts +0 -2
  403. package/dist/types/styles.d.ts +9 -4
  404. package/package.json +24 -16
  405. package/dist/_shared/cjs/ArcIconEclipse.esm-ac777a76.js +0 -28
  406. package/dist/_shared/cjs/BtIconArrowRight.esm-5989f2ca.js +0 -38
  407. package/dist/_shared/cjs/BtIconChevronRightMid.esm-3e8d18a9.js +0 -28
  408. package/dist/_shared/cjs/BtIconPlayFill.esm-b8997cfc.js +0 -30
  409. package/dist/_shared/cjs/CardFooter-5414bc4f.js +0 -79
  410. package/dist/_shared/cjs/DatePicker-2417e55b.js +0 -550
  411. package/dist/_shared/cjs/Icon-0ec0c1fb.js +0 -37
  412. package/dist/_shared/cjs/Surface-8599dbe4.js +0 -57
  413. package/dist/_shared/cjs/Tag-452048f6.js +0 -44
  414. package/dist/_shared/cjs/index-039a9d35.js +0 -23
  415. package/dist/_shared/cjs/index-28447df0.js +0 -23
  416. package/dist/_shared/cjs/index-dcfdd5da.js +0 -11
  417. package/dist/_shared/cjs/suffix-modifier-c8a34402.js +0 -19
  418. package/dist/_shared/esm/ArcIconEclipse.esm-bb48b82a.js +0 -22
  419. package/dist/_shared/esm/BtIconArrowRight.esm-6a17d0ce.js +0 -31
  420. package/dist/_shared/esm/BtIconChevronRightMid.esm-4764708f.js +0 -22
  421. package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +0 -24
  422. package/dist/_shared/esm/CardFooter-c79fb2db.js +0 -73
  423. package/dist/_shared/esm/DatePicker-c7bb178e.js +0 -539
  424. package/dist/_shared/esm/Surface-71d21a9e.js +0 -48
  425. package/dist/_shared/esm/Tag-2513c185.js +0 -38
  426. package/dist/_shared/esm/VisuallyHidden-06692fd3.js +0 -11
  427. package/dist/_shared/esm/index-5113ed53.js +0 -24
  428. package/dist/_shared/esm/index-6028d797.js +0 -21
  429. package/dist/_shared/esm/index-69089474.js +0 -21
  430. package/dist/_shared/esm/index-a624de47.js +0 -9
  431. package/dist/_shared/esm/suffix-modifier-1ce05abe.js +0 -17
  432. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Todo.d.ts +0 -2
  433. package/dist/types/helpers/filter-data-attrs.d.ts +0 -1
  434. package/dist/types/helpers/suffix-modifier.d.ts +0 -9
  435. package/dist/types/private-components/CardHeading/index.d.ts +0 -1
  436. package/dist/types/private-components/index.d.ts +0 -3
  437. package/dist/_shared/cjs/{ConditionalWrapper-be3b2625.js → ConditionalWrapper-bf944594.js} +0 -0
  438. package/dist/_shared/cjs/{index-7e31a45b.js → index-28fbfd5b.js} +52 -52
  439. package/dist/_shared/cjs/{index-3dd54df1.js → index-76f7dd53.js} +31 -31
  440. /package/dist/_shared/esm/{ConditionalWrapper-59be8f35.js → ConditionalWrapper-b85979de.js} +0 -0
  441. /package/dist/types/{private-components → components}/CardFooter/CardFooter.d.ts +0 -0
  442. /package/dist/types/{private-components → components}/CardFooter/index.d.ts +0 -0
  443. /package/dist/types/{private-components → components}/CardHeading/CardHeading.d.ts +0 -0
  444. /package/dist/types/{private-components → components}/ConditionalWrapper/ConditionalWrapper.d.ts +0 -0
  445. /package/dist/types/{private-components → components}/ConditionalWrapper/index.d.ts +0 -0
@@ -2,21 +2,21 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('../_shared/cjs/index-df60851b.js');
5
+ var index_es = require('../_shared/cjs/index.es-b404d2c5.js');
6
6
  var React = require('react');
7
- var index$1 = require('../_shared/cjs/index-9947ac13.js');
7
+ var index = require('../_shared/cjs/index-9947ac13.js');
8
+ var Combination = require('../_shared/cjs/Combination-d19b4dc6.js');
9
+ var component = require('../_shared/cjs/component-ae4b7058.js');
8
10
  var jsxRuntime = require('react/jsx-runtime');
9
- var ReactDOM = require('react-dom');
10
- var component = require('../_shared/cjs/component-df82bc05.js');
11
- var Heading = require('../_shared/cjs/Heading-fb63844f.js');
12
- var ButtonV2 = require('../_shared/cjs/ButtonV2-b2db3f46.js');
13
- var Text = require('../_shared/cjs/Text-1c1110a4.js');
14
- var VerticalSpace = require('../_shared/cjs/VerticalSpace-e128ec68.js');
15
- var ThemeIcon = require('../_shared/cjs/ThemeIcon-ee814862.js');
16
- var Surface = require('../_shared/cjs/Surface-8599dbe4.js');
17
- require('../_shared/cjs/suffix-modifier-c8a34402.js');
18
- require('../_shared/cjs/Icon-0ec0c1fb.js');
19
- require('../_shared/cjs/ArcIconEclipse.esm-ac777a76.js');
11
+ var Heading = require('../_shared/cjs/Heading-cb321adf.js');
12
+ var ButtonV2 = require('../_shared/cjs/ButtonV2-320f74b2.js');
13
+ var Text = require('../_shared/cjs/Text-f6be8fdd.js');
14
+ var VerticalSpace = require('../_shared/cjs/VerticalSpace-3908ae62.js');
15
+ var ThemeIcon = require('../_shared/cjs/ThemeIcon-6b10d20a.js');
16
+ var Surface = require('../_shared/cjs/Surface-4bc47dcb.js');
17
+ require('react-dom');
18
+ require('../_shared/cjs/Icon-859c6c00.js');
19
+ require('../_shared/cjs/Spinner-2a1d9f20.js');
20
20
 
21
21
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
22
 
@@ -40,1166 +40,9 @@ function _interopNamespace(e) {
40
40
 
41
41
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
42
42
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
43
- var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
44
- var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
45
-
46
- // packages/core/primitive/src/primitive.tsx
47
- function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
48
- return function handleEvent(event) {
49
- originalEventHandler?.(event);
50
- if (checkForDefaultPrevented === false || !event.defaultPrevented) {
51
- return ourEventHandler?.(event);
52
- }
53
- };
54
- }
55
-
56
- // packages/react/compose-refs/src/composeRefs.tsx
57
- function setRef(ref, value) {
58
- if (typeof ref === "function") {
59
- ref(value);
60
- } else if (ref !== null && ref !== void 0) {
61
- ref.current = value;
62
- }
63
- }
64
- function composeRefs(...refs) {
65
- return (node) => refs.forEach((ref) => setRef(ref, node));
66
- }
67
- function useComposedRefs(...refs) {
68
- return React__namespace.useCallback(composeRefs(...refs), refs);
69
- }
70
-
71
- // packages/react/context/src/createContext.tsx
72
- function createContext2(rootComponentName, defaultContext) {
73
- const Context = React__namespace.createContext(defaultContext);
74
- function Provider(props) {
75
- const { children, ...context } = props;
76
- const value = React__namespace.useMemo(() => context, Object.values(context));
77
- return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
78
- }
79
- function useContext2(consumerName) {
80
- const context = React__namespace.useContext(Context);
81
- if (context) return context;
82
- if (defaultContext !== void 0) return defaultContext;
83
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
84
- }
85
- Provider.displayName = rootComponentName + "Provider";
86
- return [Provider, useContext2];
87
- }
88
- function createContextScope(scopeName, createContextScopeDeps = []) {
89
- let defaultContexts = [];
90
- function createContext3(rootComponentName, defaultContext) {
91
- const BaseContext = React__namespace.createContext(defaultContext);
92
- const index = defaultContexts.length;
93
- defaultContexts = [...defaultContexts, defaultContext];
94
- function Provider(props) {
95
- const { scope, children, ...context } = props;
96
- const Context = scope?.[scopeName][index] || BaseContext;
97
- const value = React__namespace.useMemo(() => context, Object.values(context));
98
- return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
99
- }
100
- function useContext2(consumerName, scope) {
101
- const Context = scope?.[scopeName][index] || BaseContext;
102
- const context = React__namespace.useContext(Context);
103
- if (context) return context;
104
- if (defaultContext !== void 0) return defaultContext;
105
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
106
- }
107
- Provider.displayName = rootComponentName + "Provider";
108
- return [Provider, useContext2];
109
- }
110
- const createScope = () => {
111
- const scopeContexts = defaultContexts.map((defaultContext) => {
112
- return React__namespace.createContext(defaultContext);
113
- });
114
- return function useScope(scope) {
115
- const contexts = scope?.[scopeName] || scopeContexts;
116
- return React__namespace.useMemo(
117
- () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
118
- [scope, contexts]
119
- );
120
- };
121
- };
122
- createScope.scopeName = scopeName;
123
- return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
124
- }
125
- function composeContextScopes(...scopes) {
126
- const baseScope = scopes[0];
127
- if (scopes.length === 1) return baseScope;
128
- const createScope = () => {
129
- const scopeHooks = scopes.map((createScope2) => ({
130
- useScope: createScope2(),
131
- scopeName: createScope2.scopeName
132
- }));
133
- return function useComposedScopes(overrideScopes) {
134
- const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
135
- const scopeProps = useScope(overrideScopes);
136
- const currentScope = scopeProps[`__scope${scopeName}`];
137
- return { ...nextScopes2, ...currentScope };
138
- }, {});
139
- return React__namespace.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
140
- };
141
- };
142
- createScope.scopeName = baseScope.scopeName;
143
- return createScope;
144
- }
145
-
146
- // packages/react/use-layout-effect/src/useLayoutEffect.tsx
147
- var useLayoutEffect2 = Boolean(globalThis?.document) ? React__namespace.useLayoutEffect : () => {
148
- };
149
-
150
- // packages/react/id/src/id.tsx
151
- var useReactId = React__namespace["useId".toString()] || (() => void 0);
152
- var count$1 = 0;
153
- function useId(deterministicId) {
154
- const [id, setId] = React__namespace.useState(useReactId());
155
- useLayoutEffect2(() => {
156
- if (!deterministicId) setId((reactId) => reactId ?? String(count$1++));
157
- }, [deterministicId]);
158
- return deterministicId || (id ? `radix-${id}` : "");
159
- }
160
-
161
- // packages/react/use-callback-ref/src/useCallbackRef.tsx
162
- function useCallbackRef(callback) {
163
- const callbackRef = React__namespace.useRef(callback);
164
- React__namespace.useEffect(() => {
165
- callbackRef.current = callback;
166
- });
167
- return React__namespace.useMemo(() => (...args) => callbackRef.current?.(...args), []);
168
- }
169
-
170
- // packages/react/use-controllable-state/src/useControllableState.tsx
171
- function useControllableState({
172
- prop,
173
- defaultProp,
174
- onChange = () => {
175
- }
176
- }) {
177
- const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });
178
- const isControlled = prop !== void 0;
179
- const value = isControlled ? prop : uncontrolledProp;
180
- const handleChange = useCallbackRef(onChange);
181
- const setValue = React__namespace.useCallback(
182
- (nextValue) => {
183
- if (isControlled) {
184
- const setter = nextValue;
185
- const value2 = typeof nextValue === "function" ? setter(prop) : nextValue;
186
- if (value2 !== prop) handleChange(value2);
187
- } else {
188
- setUncontrolledProp(nextValue);
189
- }
190
- },
191
- [isControlled, prop, setUncontrolledProp, handleChange]
192
- );
193
- return [value, setValue];
194
- }
195
- function useUncontrolledState({
196
- defaultProp,
197
- onChange
198
- }) {
199
- const uncontrolledState = React__namespace.useState(defaultProp);
200
- const [value] = uncontrolledState;
201
- const prevValueRef = React__namespace.useRef(value);
202
- const handleChange = useCallbackRef(onChange);
203
- React__namespace.useEffect(() => {
204
- if (prevValueRef.current !== value) {
205
- handleChange(value);
206
- prevValueRef.current = value;
207
- }
208
- }, [value, prevValueRef, handleChange]);
209
- return uncontrolledState;
210
- }
211
-
212
- // packages/react/slot/src/Slot.tsx
213
- var Slot = React__namespace.forwardRef((props, forwardedRef) => {
214
- const { children, ...slotProps } = props;
215
- const childrenArray = React__namespace.Children.toArray(children);
216
- const slottable = childrenArray.find(isSlottable);
217
- if (slottable) {
218
- const newElement = slottable.props.children;
219
- const newChildren = childrenArray.map((child) => {
220
- if (child === slottable) {
221
- if (React__namespace.Children.count(newElement) > 1) return React__namespace.Children.only(null);
222
- return React__namespace.isValidElement(newElement) ? newElement.props.children : null;
223
- } else {
224
- return child;
225
- }
226
- });
227
- return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React__namespace.isValidElement(newElement) ? React__namespace.cloneElement(newElement, void 0, newChildren) : null });
228
- }
229
- return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
230
- });
231
- Slot.displayName = "Slot";
232
- var SlotClone = React__namespace.forwardRef((props, forwardedRef) => {
233
- const { children, ...slotProps } = props;
234
- if (React__namespace.isValidElement(children)) {
235
- const childrenRef = getElementRef$1(children);
236
- return React__namespace.cloneElement(children, {
237
- ...mergeProps(slotProps, children.props),
238
- // @ts-ignore
239
- ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
240
- });
241
- }
242
- return React__namespace.Children.count(children) > 1 ? React__namespace.Children.only(null) : null;
243
- });
244
- SlotClone.displayName = "SlotClone";
245
- var Slottable = ({ children }) => {
246
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
247
- };
248
- function isSlottable(child) {
249
- return React__namespace.isValidElement(child) && child.type === Slottable;
250
- }
251
- function mergeProps(slotProps, childProps) {
252
- const overrideProps = { ...childProps };
253
- for (const propName in childProps) {
254
- const slotPropValue = slotProps[propName];
255
- const childPropValue = childProps[propName];
256
- const isHandler = /^on[A-Z]/.test(propName);
257
- if (isHandler) {
258
- if (slotPropValue && childPropValue) {
259
- overrideProps[propName] = (...args) => {
260
- childPropValue(...args);
261
- slotPropValue(...args);
262
- };
263
- } else if (slotPropValue) {
264
- overrideProps[propName] = slotPropValue;
265
- }
266
- } else if (propName === "style") {
267
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
268
- } else if (propName === "className") {
269
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
270
- }
271
- }
272
- return { ...slotProps, ...overrideProps };
273
- }
274
- function getElementRef$1(element) {
275
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
276
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
277
- if (mayWarn) {
278
- return element.ref;
279
- }
280
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
281
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
282
- if (mayWarn) {
283
- return element.props.ref;
284
- }
285
- return element.props.ref || element.ref;
286
- }
287
-
288
- // packages/react/primitive/src/Primitive.tsx
289
- var NODES = [
290
- "a",
291
- "button",
292
- "div",
293
- "form",
294
- "h2",
295
- "h3",
296
- "img",
297
- "input",
298
- "label",
299
- "li",
300
- "nav",
301
- "ol",
302
- "p",
303
- "span",
304
- "svg",
305
- "ul"
306
- ];
307
- var Primitive = NODES.reduce((primitive, node) => {
308
- const Node = React__namespace.forwardRef((props, forwardedRef) => {
309
- const { asChild, ...primitiveProps } = props;
310
- const Comp = asChild ? Slot : node;
311
- if (typeof window !== "undefined") {
312
- window[Symbol.for("radix-ui")] = true;
313
- }
314
- return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
315
- });
316
- Node.displayName = `Primitive.${node}`;
317
- return { ...primitive, [node]: Node };
318
- }, {});
319
- function dispatchDiscreteCustomEvent(target, event) {
320
- if (target) ReactDOM__namespace.flushSync(() => target.dispatchEvent(event));
321
- }
322
-
323
- // packages/react/use-escape-keydown/src/useEscapeKeydown.tsx
324
- function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
325
- const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
326
- React__namespace.useEffect(() => {
327
- const handleKeyDown = (event) => {
328
- if (event.key === "Escape") {
329
- onEscapeKeyDown(event);
330
- }
331
- };
332
- ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
333
- return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
334
- }, [onEscapeKeyDown, ownerDocument]);
335
- }
336
-
337
- var DISMISSABLE_LAYER_NAME = "DismissableLayer";
338
- var CONTEXT_UPDATE = "dismissableLayer.update";
339
- var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
340
- var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
341
- var originalBodyPointerEvents;
342
- var DismissableLayerContext = React__namespace.createContext({
343
- layers: /* @__PURE__ */ new Set(),
344
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
345
- branches: /* @__PURE__ */ new Set()
346
- });
347
- var DismissableLayer = React__namespace.forwardRef(
348
- (props, forwardedRef) => {
349
- const {
350
- disableOutsidePointerEvents = false,
351
- onEscapeKeyDown,
352
- onPointerDownOutside,
353
- onFocusOutside,
354
- onInteractOutside,
355
- onDismiss,
356
- ...layerProps
357
- } = props;
358
- const context = React__namespace.useContext(DismissableLayerContext);
359
- const [node, setNode] = React__namespace.useState(null);
360
- const ownerDocument = node?.ownerDocument ?? globalThis?.document;
361
- const [, force] = React__namespace.useState({});
362
- const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
363
- const layers = Array.from(context.layers);
364
- const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
365
- const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
366
- const index = node ? layers.indexOf(node) : -1;
367
- const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
368
- const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
369
- const pointerDownOutside = usePointerDownOutside((event) => {
370
- const target = event.target;
371
- const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
372
- if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
373
- onPointerDownOutside?.(event);
374
- onInteractOutside?.(event);
375
- if (!event.defaultPrevented) onDismiss?.();
376
- }, ownerDocument);
377
- const focusOutside = useFocusOutside((event) => {
378
- const target = event.target;
379
- const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));
380
- if (isFocusInBranch) return;
381
- onFocusOutside?.(event);
382
- onInteractOutside?.(event);
383
- if (!event.defaultPrevented) onDismiss?.();
384
- }, ownerDocument);
385
- useEscapeKeydown((event) => {
386
- const isHighestLayer = index === context.layers.size - 1;
387
- if (!isHighestLayer) return;
388
- onEscapeKeyDown?.(event);
389
- if (!event.defaultPrevented && onDismiss) {
390
- event.preventDefault();
391
- onDismiss();
392
- }
393
- }, ownerDocument);
394
- React__namespace.useEffect(() => {
395
- if (!node) return;
396
- if (disableOutsidePointerEvents) {
397
- if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
398
- originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
399
- ownerDocument.body.style.pointerEvents = "none";
400
- }
401
- context.layersWithOutsidePointerEventsDisabled.add(node);
402
- }
403
- context.layers.add(node);
404
- dispatchUpdate();
405
- return () => {
406
- if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {
407
- ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
408
- }
409
- };
410
- }, [node, ownerDocument, disableOutsidePointerEvents, context]);
411
- React__namespace.useEffect(() => {
412
- return () => {
413
- if (!node) return;
414
- context.layers.delete(node);
415
- context.layersWithOutsidePointerEventsDisabled.delete(node);
416
- dispatchUpdate();
417
- };
418
- }, [node, context]);
419
- React__namespace.useEffect(() => {
420
- const handleUpdate = () => force({});
421
- document.addEventListener(CONTEXT_UPDATE, handleUpdate);
422
- return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
423
- }, []);
424
- return /* @__PURE__ */ jsxRuntime.jsx(
425
- Primitive.div,
426
- {
427
- ...layerProps,
428
- ref: composedRefs,
429
- style: {
430
- pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
431
- ...props.style
432
- },
433
- onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
434
- onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
435
- onPointerDownCapture: composeEventHandlers(
436
- props.onPointerDownCapture,
437
- pointerDownOutside.onPointerDownCapture
438
- )
439
- }
440
- );
441
- }
442
- );
443
- DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
444
- var BRANCH_NAME = "DismissableLayerBranch";
445
- var DismissableLayerBranch = React__namespace.forwardRef((props, forwardedRef) => {
446
- const context = React__namespace.useContext(DismissableLayerContext);
447
- const ref = React__namespace.useRef(null);
448
- const composedRefs = useComposedRefs(forwardedRef, ref);
449
- React__namespace.useEffect(() => {
450
- const node = ref.current;
451
- if (node) {
452
- context.branches.add(node);
453
- return () => {
454
- context.branches.delete(node);
455
- };
456
- }
457
- }, [context.branches]);
458
- return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...props, ref: composedRefs });
459
- });
460
- DismissableLayerBranch.displayName = BRANCH_NAME;
461
- function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
462
- const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
463
- const isPointerInsideReactTreeRef = React__namespace.useRef(false);
464
- const handleClickRef = React__namespace.useRef(() => {
465
- });
466
- React__namespace.useEffect(() => {
467
- const handlePointerDown = (event) => {
468
- if (event.target && !isPointerInsideReactTreeRef.current) {
469
- let handleAndDispatchPointerDownOutsideEvent2 = function() {
470
- handleAndDispatchCustomEvent(
471
- POINTER_DOWN_OUTSIDE,
472
- handlePointerDownOutside,
473
- eventDetail,
474
- { discrete: true }
475
- );
476
- };
477
- const eventDetail = { originalEvent: event };
478
- if (event.pointerType === "touch") {
479
- ownerDocument.removeEventListener("click", handleClickRef.current);
480
- handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
481
- ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
482
- } else {
483
- handleAndDispatchPointerDownOutsideEvent2();
484
- }
485
- } else {
486
- ownerDocument.removeEventListener("click", handleClickRef.current);
487
- }
488
- isPointerInsideReactTreeRef.current = false;
489
- };
490
- const timerId = window.setTimeout(() => {
491
- ownerDocument.addEventListener("pointerdown", handlePointerDown);
492
- }, 0);
493
- return () => {
494
- window.clearTimeout(timerId);
495
- ownerDocument.removeEventListener("pointerdown", handlePointerDown);
496
- ownerDocument.removeEventListener("click", handleClickRef.current);
497
- };
498
- }, [ownerDocument, handlePointerDownOutside]);
499
- return {
500
- // ensures we check React component tree (not just DOM tree)
501
- onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
502
- };
503
- }
504
- function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
505
- const handleFocusOutside = useCallbackRef(onFocusOutside);
506
- const isFocusInsideReactTreeRef = React__namespace.useRef(false);
507
- React__namespace.useEffect(() => {
508
- const handleFocus = (event) => {
509
- if (event.target && !isFocusInsideReactTreeRef.current) {
510
- const eventDetail = { originalEvent: event };
511
- handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
512
- discrete: false
513
- });
514
- }
515
- };
516
- ownerDocument.addEventListener("focusin", handleFocus);
517
- return () => ownerDocument.removeEventListener("focusin", handleFocus);
518
- }, [ownerDocument, handleFocusOutside]);
519
- return {
520
- onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
521
- onBlurCapture: () => isFocusInsideReactTreeRef.current = false
522
- };
523
- }
524
- function dispatchUpdate() {
525
- const event = new CustomEvent(CONTEXT_UPDATE);
526
- document.dispatchEvent(event);
527
- }
528
- function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
529
- const target = detail.originalEvent.target;
530
- const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });
531
- if (handler) target.addEventListener(name, handler, { once: true });
532
- if (discrete) {
533
- dispatchDiscreteCustomEvent(target, event);
534
- } else {
535
- target.dispatchEvent(event);
536
- }
537
- }
538
-
539
- var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
540
- var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
541
- var EVENT_OPTIONS = { bubbles: false, cancelable: true };
542
- var FOCUS_SCOPE_NAME = "FocusScope";
543
- var FocusScope = React__namespace.forwardRef((props, forwardedRef) => {
544
- const {
545
- loop = false,
546
- trapped = false,
547
- onMountAutoFocus: onMountAutoFocusProp,
548
- onUnmountAutoFocus: onUnmountAutoFocusProp,
549
- ...scopeProps
550
- } = props;
551
- const [container, setContainer] = React__namespace.useState(null);
552
- const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
553
- const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
554
- const lastFocusedElementRef = React__namespace.useRef(null);
555
- const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
556
- const focusScope = React__namespace.useRef({
557
- paused: false,
558
- pause() {
559
- this.paused = true;
560
- },
561
- resume() {
562
- this.paused = false;
563
- }
564
- }).current;
565
- React__namespace.useEffect(() => {
566
- if (trapped) {
567
- let handleFocusIn2 = function(event) {
568
- if (focusScope.paused || !container) return;
569
- const target = event.target;
570
- if (container.contains(target)) {
571
- lastFocusedElementRef.current = target;
572
- } else {
573
- focus(lastFocusedElementRef.current, { select: true });
574
- }
575
- }, handleFocusOut2 = function(event) {
576
- if (focusScope.paused || !container) return;
577
- const relatedTarget = event.relatedTarget;
578
- if (relatedTarget === null) return;
579
- if (!container.contains(relatedTarget)) {
580
- focus(lastFocusedElementRef.current, { select: true });
581
- }
582
- }, handleMutations2 = function(mutations) {
583
- const focusedElement = document.activeElement;
584
- if (focusedElement !== document.body) return;
585
- for (const mutation of mutations) {
586
- if (mutation.removedNodes.length > 0) focus(container);
587
- }
588
- };
589
- document.addEventListener("focusin", handleFocusIn2);
590
- document.addEventListener("focusout", handleFocusOut2);
591
- const mutationObserver = new MutationObserver(handleMutations2);
592
- if (container) mutationObserver.observe(container, { childList: true, subtree: true });
593
- return () => {
594
- document.removeEventListener("focusin", handleFocusIn2);
595
- document.removeEventListener("focusout", handleFocusOut2);
596
- mutationObserver.disconnect();
597
- };
598
- }
599
- }, [trapped, container, focusScope.paused]);
600
- React__namespace.useEffect(() => {
601
- if (container) {
602
- focusScopesStack.add(focusScope);
603
- const previouslyFocusedElement = document.activeElement;
604
- const hasFocusedCandidate = container.contains(previouslyFocusedElement);
605
- if (!hasFocusedCandidate) {
606
- const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
607
- container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
608
- container.dispatchEvent(mountEvent);
609
- if (!mountEvent.defaultPrevented) {
610
- focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
611
- if (document.activeElement === previouslyFocusedElement) {
612
- focus(container);
613
- }
614
- }
615
- }
616
- return () => {
617
- container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
618
- setTimeout(() => {
619
- const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
620
- container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
621
- container.dispatchEvent(unmountEvent);
622
- if (!unmountEvent.defaultPrevented) {
623
- focus(previouslyFocusedElement ?? document.body, { select: true });
624
- }
625
- container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
626
- focusScopesStack.remove(focusScope);
627
- }, 0);
628
- };
629
- }
630
- }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
631
- const handleKeyDown = React__namespace.useCallback(
632
- (event) => {
633
- if (!loop && !trapped) return;
634
- if (focusScope.paused) return;
635
- const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
636
- const focusedElement = document.activeElement;
637
- if (isTabKey && focusedElement) {
638
- const container2 = event.currentTarget;
639
- const [first, last] = getTabbableEdges(container2);
640
- const hasTabbableElementsInside = first && last;
641
- if (!hasTabbableElementsInside) {
642
- if (focusedElement === container2) event.preventDefault();
643
- } else {
644
- if (!event.shiftKey && focusedElement === last) {
645
- event.preventDefault();
646
- if (loop) focus(first, { select: true });
647
- } else if (event.shiftKey && focusedElement === first) {
648
- event.preventDefault();
649
- if (loop) focus(last, { select: true });
650
- }
651
- }
652
- }
653
- },
654
- [loop, trapped, focusScope.paused]
655
- );
656
- return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
657
- });
658
- FocusScope.displayName = FOCUS_SCOPE_NAME;
659
- function focusFirst(candidates, { select = false } = {}) {
660
- const previouslyFocusedElement = document.activeElement;
661
- for (const candidate of candidates) {
662
- focus(candidate, { select });
663
- if (document.activeElement !== previouslyFocusedElement) return;
664
- }
665
- }
666
- function getTabbableEdges(container) {
667
- const candidates = getTabbableCandidates(container);
668
- const first = findVisible(candidates, container);
669
- const last = findVisible(candidates.reverse(), container);
670
- return [first, last];
671
- }
672
- function getTabbableCandidates(container) {
673
- const nodes = [];
674
- const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
675
- acceptNode: (node) => {
676
- const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
677
- if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
678
- return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
679
- }
680
- });
681
- while (walker.nextNode()) nodes.push(walker.currentNode);
682
- return nodes;
683
- }
684
- function findVisible(elements, container) {
685
- for (const element of elements) {
686
- if (!isHidden(element, { upTo: container })) return element;
687
- }
688
- }
689
- function isHidden(node, { upTo }) {
690
- if (getComputedStyle(node).visibility === "hidden") return true;
691
- while (node) {
692
- if (upTo !== void 0 && node === upTo) return false;
693
- if (getComputedStyle(node).display === "none") return true;
694
- node = node.parentElement;
695
- }
696
- return false;
697
- }
698
- function isSelectableInput(element) {
699
- return element instanceof HTMLInputElement && "select" in element;
700
- }
701
- function focus(element, { select = false } = {}) {
702
- if (element && element.focus) {
703
- const previouslyFocusedElement = document.activeElement;
704
- element.focus({ preventScroll: true });
705
- if (element !== previouslyFocusedElement && isSelectableInput(element) && select)
706
- element.select();
707
- }
708
- }
709
- var focusScopesStack = createFocusScopesStack();
710
- function createFocusScopesStack() {
711
- let stack = [];
712
- return {
713
- add(focusScope) {
714
- const activeFocusScope = stack[0];
715
- if (focusScope !== activeFocusScope) {
716
- activeFocusScope?.pause();
717
- }
718
- stack = arrayRemove(stack, focusScope);
719
- stack.unshift(focusScope);
720
- },
721
- remove(focusScope) {
722
- stack = arrayRemove(stack, focusScope);
723
- stack[0]?.resume();
724
- }
725
- };
726
- }
727
- function arrayRemove(array, item) {
728
- const updatedArray = [...array];
729
- const index = updatedArray.indexOf(item);
730
- if (index !== -1) {
731
- updatedArray.splice(index, 1);
732
- }
733
- return updatedArray;
734
- }
735
- function removeLinks(items) {
736
- return items.filter((item) => item.tagName !== "A");
737
- }
738
-
739
- var PORTAL_NAME$1 = "Portal";
740
- var Portal$1 = React__namespace.forwardRef((props, forwardedRef) => {
741
- const { container: containerProp, ...portalProps } = props;
742
- const [mounted, setMounted] = React__namespace.useState(false);
743
- useLayoutEffect2(() => setMounted(true), []);
744
- const container = containerProp || mounted && globalThis?.document?.body;
745
- return container ? ReactDOM__default["default"].createPortal(/* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
746
- });
747
- Portal$1.displayName = PORTAL_NAME$1;
748
-
749
- function useStateMachine(initialState, machine) {
750
- return React__namespace.useReducer((state, event) => {
751
- const nextState = machine[state][event];
752
- return nextState ?? state;
753
- }, initialState);
754
- }
755
-
756
- // packages/react/presence/src/Presence.tsx
757
- var Presence = (props) => {
758
- const { present, children } = props;
759
- const presence = usePresence(present);
760
- const child = typeof children === "function" ? children({ present: presence.isPresent }) : React__namespace.Children.only(children);
761
- const ref = useComposedRefs(presence.ref, getElementRef(child));
762
- const forceMount = typeof children === "function";
763
- return forceMount || presence.isPresent ? React__namespace.cloneElement(child, { ref }) : null;
764
- };
765
- Presence.displayName = "Presence";
766
- function usePresence(present) {
767
- const [node, setNode] = React__namespace.useState();
768
- const stylesRef = React__namespace.useRef({});
769
- const prevPresentRef = React__namespace.useRef(present);
770
- const prevAnimationNameRef = React__namespace.useRef("none");
771
- const initialState = present ? "mounted" : "unmounted";
772
- const [state, send] = useStateMachine(initialState, {
773
- mounted: {
774
- UNMOUNT: "unmounted",
775
- ANIMATION_OUT: "unmountSuspended"
776
- },
777
- unmountSuspended: {
778
- MOUNT: "mounted",
779
- ANIMATION_END: "unmounted"
780
- },
781
- unmounted: {
782
- MOUNT: "mounted"
783
- }
784
- });
785
- React__namespace.useEffect(() => {
786
- const currentAnimationName = getAnimationName(stylesRef.current);
787
- prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
788
- }, [state]);
789
- useLayoutEffect2(() => {
790
- const styles = stylesRef.current;
791
- const wasPresent = prevPresentRef.current;
792
- const hasPresentChanged = wasPresent !== present;
793
- if (hasPresentChanged) {
794
- const prevAnimationName = prevAnimationNameRef.current;
795
- const currentAnimationName = getAnimationName(styles);
796
- if (present) {
797
- send("MOUNT");
798
- } else if (currentAnimationName === "none" || styles?.display === "none") {
799
- send("UNMOUNT");
800
- } else {
801
- const isAnimating = prevAnimationName !== currentAnimationName;
802
- if (wasPresent && isAnimating) {
803
- send("ANIMATION_OUT");
804
- } else {
805
- send("UNMOUNT");
806
- }
807
- }
808
- prevPresentRef.current = present;
809
- }
810
- }, [present, send]);
811
- useLayoutEffect2(() => {
812
- if (node) {
813
- const handleAnimationEnd = (event) => {
814
- const currentAnimationName = getAnimationName(stylesRef.current);
815
- const isCurrentAnimation = currentAnimationName.includes(event.animationName);
816
- if (event.target === node && isCurrentAnimation) {
817
- ReactDOM__namespace.flushSync(() => send("ANIMATION_END"));
818
- }
819
- };
820
- const handleAnimationStart = (event) => {
821
- if (event.target === node) {
822
- prevAnimationNameRef.current = getAnimationName(stylesRef.current);
823
- }
824
- };
825
- node.addEventListener("animationstart", handleAnimationStart);
826
- node.addEventListener("animationcancel", handleAnimationEnd);
827
- node.addEventListener("animationend", handleAnimationEnd);
828
- return () => {
829
- node.removeEventListener("animationstart", handleAnimationStart);
830
- node.removeEventListener("animationcancel", handleAnimationEnd);
831
- node.removeEventListener("animationend", handleAnimationEnd);
832
- };
833
- } else {
834
- send("ANIMATION_END");
835
- }
836
- }, [node, send]);
837
- return {
838
- isPresent: ["mounted", "unmountSuspended"].includes(state),
839
- ref: React__namespace.useCallback((node2) => {
840
- if (node2) stylesRef.current = getComputedStyle(node2);
841
- setNode(node2);
842
- }, [])
843
- };
844
- }
845
- function getAnimationName(styles) {
846
- return styles?.animationName || "none";
847
- }
848
- function getElementRef(element) {
849
- let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
850
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
851
- if (mayWarn) {
852
- return element.ref;
853
- }
854
- getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
855
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
856
- if (mayWarn) {
857
- return element.props.ref;
858
- }
859
- return element.props.ref || element.ref;
860
- }
861
-
862
- var count = 0;
863
- function useFocusGuards() {
864
- React__namespace.useEffect(() => {
865
- const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
866
- document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
867
- document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
868
- count++;
869
- return () => {
870
- if (count === 1) {
871
- document.querySelectorAll("[data-radix-focus-guard]").forEach((node) => node.remove());
872
- }
873
- count--;
874
- };
875
- }, []);
876
- }
877
- function createFocusGuard() {
878
- const element = document.createElement("span");
879
- element.setAttribute("data-radix-focus-guard", "");
880
- element.tabIndex = 0;
881
- element.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none";
882
- return element;
883
- }
884
-
885
- var effectCar = component.createSidecarMedium();
886
-
887
- var nothing = function () {
888
- return;
889
- };
890
- /**
891
- * Removes scrollbar from the page and contain the scroll within the Lock
892
- */
893
- var RemoveScroll$1 = React__namespace.forwardRef(function (props, parentRef) {
894
- var ref = React__namespace.useRef(null);
895
- var _a = React__namespace.useState({
896
- onScrollCapture: nothing,
897
- onWheelCapture: nothing,
898
- onTouchMoveCapture: nothing,
899
- }), callbacks = _a[0], setCallbacks = _a[1];
900
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = index.__rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
901
- var SideCar = sideCar;
902
- var containerRef = component.useMergeRefs([ref, parentRef]);
903
- var containerProps = index.__assign(index.__assign({}, rest), callbacks);
904
- return (React__namespace.createElement(React__namespace.Fragment, null,
905
- enabled && (React__namespace.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
906
- forwardProps ? (React__namespace.cloneElement(React__namespace.Children.only(children), index.__assign(index.__assign({}, containerProps), { ref: containerRef }))) : (React__namespace.createElement(Container, index.__assign({}, containerProps, { className: className, ref: containerRef }), children))));
907
- });
908
- RemoveScroll$1.defaultProps = {
909
- enabled: true,
910
- removeScrollBar: true,
911
- inert: false,
912
- };
913
- RemoveScroll$1.classNames = {
914
- fullWidth: component.fullWidthClassName,
915
- zeroRight: component.zeroRightClassName,
916
- };
917
-
918
- var passiveSupported = false;
919
- if (typeof window !== 'undefined') {
920
- try {
921
- var options = Object.defineProperty({}, 'passive', {
922
- get: function () {
923
- passiveSupported = true;
924
- return true;
925
- },
926
- });
927
- // @ts-ignore
928
- window.addEventListener('test', options, options);
929
- // @ts-ignore
930
- window.removeEventListener('test', options, options);
931
- }
932
- catch (err) {
933
- passiveSupported = false;
934
- }
935
- }
936
- var nonPassive = passiveSupported ? { passive: false } : false;
937
-
938
- var alwaysContainsScroll = function (node) {
939
- // textarea will always _contain_ scroll inside self. It only can be hidden
940
- return node.tagName === 'TEXTAREA';
941
- };
942
- var elementCanBeScrolled = function (node, overflow) {
943
- var styles = window.getComputedStyle(node);
944
- return (
945
- // not-not-scrollable
946
- styles[overflow] !== 'hidden' &&
947
- // contains scroll inside self
948
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
949
- };
950
- var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
951
- var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
952
- var locationCouldBeScrolled = function (axis, node) {
953
- var ownerDocument = node.ownerDocument;
954
- var current = node;
955
- do {
956
- // Skip over shadow root
957
- if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
958
- current = current.host;
959
- }
960
- var isScrollable = elementCouldBeScrolled(axis, current);
961
- if (isScrollable) {
962
- var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];
963
- if (s > d) {
964
- return true;
965
- }
966
- }
967
- current = current.parentNode;
968
- } while (current && current !== ownerDocument.body);
969
- return false;
970
- };
971
- var getVScrollVariables = function (_a) {
972
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
973
- return [
974
- scrollTop,
975
- scrollHeight,
976
- clientHeight,
977
- ];
978
- };
979
- var getHScrollVariables = function (_a) {
980
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
981
- return [
982
- scrollLeft,
983
- scrollWidth,
984
- clientWidth,
985
- ];
986
- };
987
- var elementCouldBeScrolled = function (axis, node) {
988
- return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
989
- };
990
- var getScrollVariables = function (axis, node) {
991
- return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
992
- };
993
- var getDirectionFactor = function (axis, direction) {
994
- /**
995
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
996
- * and then increasingly negative as you scroll towards the end of the content.
997
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
998
- */
999
- return axis === 'h' && direction === 'rtl' ? -1 : 1;
1000
- };
1001
- var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
1002
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
1003
- var delta = directionFactor * sourceDelta;
1004
- // find scrollable target
1005
- var target = event.target;
1006
- var targetInLock = endTarget.contains(target);
1007
- var shouldCancelScroll = false;
1008
- var isDeltaPositive = delta > 0;
1009
- var availableScroll = 0;
1010
- var availableScrollTop = 0;
1011
- do {
1012
- var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
1013
- var elementScroll = scroll_1 - capacity - directionFactor * position;
1014
- if (position || elementScroll) {
1015
- if (elementCouldBeScrolled(axis, target)) {
1016
- availableScroll += elementScroll;
1017
- availableScrollTop += position;
1018
- }
1019
- }
1020
- if (target instanceof ShadowRoot) {
1021
- target = target.host;
1022
- }
1023
- else {
1024
- target = target.parentNode;
1025
- }
1026
- } while (
1027
- // portaled content
1028
- (!targetInLock && target !== document.body) ||
1029
- // self content
1030
- (targetInLock && (endTarget.contains(target) || endTarget === target)));
1031
- // handle epsilon around 0 (non standard zoom levels)
1032
- if (isDeltaPositive &&
1033
- ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {
1034
- shouldCancelScroll = true;
1035
- }
1036
- else if (!isDeltaPositive &&
1037
- ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {
1038
- shouldCancelScroll = true;
1039
- }
1040
- return shouldCancelScroll;
1041
- };
1042
-
1043
- var getTouchXY = function (event) {
1044
- return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
1045
- };
1046
- var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
1047
- var extractRef = function (ref) {
1048
- return ref && 'current' in ref ? ref.current : ref;
1049
- };
1050
- var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
1051
- var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
1052
- var idCounter = 0;
1053
- var lockStack = [];
1054
- function RemoveScrollSideCar(props) {
1055
- var shouldPreventQueue = React__namespace.useRef([]);
1056
- var touchStartRef = React__namespace.useRef([0, 0]);
1057
- var activeAxis = React__namespace.useRef();
1058
- var id = React__namespace.useState(idCounter++)[0];
1059
- var Style = React__namespace.useState(component.styleSingleton)[0];
1060
- var lastProps = React__namespace.useRef(props);
1061
- React__namespace.useEffect(function () {
1062
- lastProps.current = props;
1063
- }, [props]);
1064
- React__namespace.useEffect(function () {
1065
- if (props.inert) {
1066
- document.body.classList.add("block-interactivity-".concat(id));
1067
- var allow_1 = index.__spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
1068
- allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
1069
- return function () {
1070
- document.body.classList.remove("block-interactivity-".concat(id));
1071
- allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
1072
- };
1073
- }
1074
- return;
1075
- }, [props.inert, props.lockRef.current, props.shards]);
1076
- var shouldCancelEvent = React__namespace.useCallback(function (event, parent) {
1077
- if ('touches' in event && event.touches.length === 2) {
1078
- return !lastProps.current.allowPinchZoom;
1079
- }
1080
- var touch = getTouchXY(event);
1081
- var touchStart = touchStartRef.current;
1082
- var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
1083
- var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
1084
- var currentAxis;
1085
- var target = event.target;
1086
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
1087
- // allow horizontal touch move on Range inputs. They will not cause any scroll
1088
- if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
1089
- return false;
1090
- }
1091
- var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1092
- if (!canBeScrolledInMainDirection) {
1093
- return true;
1094
- }
1095
- if (canBeScrolledInMainDirection) {
1096
- currentAxis = moveDirection;
1097
- }
1098
- else {
1099
- currentAxis = moveDirection === 'v' ? 'h' : 'v';
1100
- canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1101
- // other axis might be not scrollable
1102
- }
1103
- if (!canBeScrolledInMainDirection) {
1104
- return false;
1105
- }
1106
- if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
1107
- activeAxis.current = currentAxis;
1108
- }
1109
- if (!currentAxis) {
1110
- return true;
1111
- }
1112
- var cancelingAxis = activeAxis.current || currentAxis;
1113
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
1114
- }, []);
1115
- var shouldPrevent = React__namespace.useCallback(function (_event) {
1116
- var event = _event;
1117
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
1118
- // not the last active
1119
- return;
1120
- }
1121
- var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
1122
- var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];
1123
- // self event, and should be canceled
1124
- if (sourceEvent && sourceEvent.should) {
1125
- if (event.cancelable) {
1126
- event.preventDefault();
1127
- }
1128
- return;
1129
- }
1130
- // outside or shard event
1131
- if (!sourceEvent) {
1132
- var shardNodes = (lastProps.current.shards || [])
1133
- .map(extractRef)
1134
- .filter(Boolean)
1135
- .filter(function (node) { return node.contains(event.target); });
1136
- var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
1137
- if (shouldStop) {
1138
- if (event.cancelable) {
1139
- event.preventDefault();
1140
- }
1141
- }
1142
- }
1143
- }, []);
1144
- var shouldCancel = React__namespace.useCallback(function (name, delta, target, should) {
1145
- var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };
1146
- shouldPreventQueue.current.push(event);
1147
- setTimeout(function () {
1148
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
1149
- }, 1);
1150
- }, []);
1151
- var scrollTouchStart = React__namespace.useCallback(function (event) {
1152
- touchStartRef.current = getTouchXY(event);
1153
- activeAxis.current = undefined;
1154
- }, []);
1155
- var scrollWheel = React__namespace.useCallback(function (event) {
1156
- shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1157
- }, []);
1158
- var scrollTouchMove = React__namespace.useCallback(function (event) {
1159
- shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1160
- }, []);
1161
- React__namespace.useEffect(function () {
1162
- lockStack.push(Style);
1163
- props.setCallbacks({
1164
- onScrollCapture: scrollWheel,
1165
- onWheelCapture: scrollWheel,
1166
- onTouchMoveCapture: scrollTouchMove,
1167
- });
1168
- document.addEventListener('wheel', shouldPrevent, nonPassive);
1169
- document.addEventListener('touchmove', shouldPrevent, nonPassive);
1170
- document.addEventListener('touchstart', scrollTouchStart, nonPassive);
1171
- return function () {
1172
- lockStack = lockStack.filter(function (inst) { return inst !== Style; });
1173
- document.removeEventListener('wheel', shouldPrevent, nonPassive);
1174
- document.removeEventListener('touchmove', shouldPrevent, nonPassive);
1175
- document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
1176
- };
1177
- }, []);
1178
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
1179
- return (React__namespace.createElement(React__namespace.Fragment, null,
1180
- inert ? React__namespace.createElement(Style, { styles: generateStyle(id) }) : null,
1181
- removeScrollBar ? React__namespace.createElement(component.RemoveScrollBar, { gapMode: props.gapMode }) : null));
1182
- }
1183
- function getOutermostShadowParent(node) {
1184
- var shadowParent = null;
1185
- while (node !== null) {
1186
- if (node instanceof ShadowRoot) {
1187
- shadowParent = node.host;
1188
- node = node.host;
1189
- }
1190
- node = node.parentNode;
1191
- }
1192
- return shadowParent;
1193
- }
1194
-
1195
- var SideCar = component.exportSidecar(effectCar, RemoveScrollSideCar);
1196
-
1197
- var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(RemoveScroll$1, index.__assign({}, props, { ref: ref, sideCar: SideCar }))); });
1198
- ReactRemoveScroll.classNames = RemoveScroll$1.classNames;
1199
- var RemoveScroll = ReactRemoveScroll;
1200
43
 
1201
44
  var DIALOG_NAME = "Dialog";
1202
- var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
45
+ var [createDialogContext, createDialogScope] = Combination.createContextScope(DIALOG_NAME);
1203
46
  var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
1204
47
  var Dialog = (props) => {
1205
48
  const {
@@ -1212,7 +55,7 @@ var Dialog = (props) => {
1212
55
  } = props;
1213
56
  const triggerRef = React__namespace.useRef(null);
1214
57
  const contentRef = React__namespace.useRef(null);
1215
- const [open = false, setOpen] = useControllableState({
58
+ const [open = false, setOpen] = Combination.useControllableState({
1216
59
  prop: openProp,
1217
60
  defaultProp: defaultOpen,
1218
61
  onChange: onOpenChange
@@ -1223,9 +66,9 @@ var Dialog = (props) => {
1223
66
  scope: __scopeDialog,
1224
67
  triggerRef,
1225
68
  contentRef,
1226
- contentId: useId(),
1227
- titleId: useId(),
1228
- descriptionId: useId(),
69
+ contentId: Combination.useId(),
70
+ titleId: Combination.useId(),
71
+ descriptionId: Combination.useId(),
1229
72
  open,
1230
73
  onOpenChange: setOpen,
1231
74
  onOpenToggle: React__namespace.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
@@ -1240,9 +83,9 @@ var DialogTrigger = React__namespace.forwardRef(
1240
83
  (props, forwardedRef) => {
1241
84
  const { __scopeDialog, ...triggerProps } = props;
1242
85
  const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
1243
- const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
86
+ const composedTriggerRef = Combination.useComposedRefs(forwardedRef, context.triggerRef);
1244
87
  return /* @__PURE__ */ jsxRuntime.jsx(
1245
- Primitive.button,
88
+ Combination.Primitive.button,
1246
89
  {
1247
90
  type: "button",
1248
91
  "aria-haspopup": "dialog",
@@ -1251,7 +94,7 @@ var DialogTrigger = React__namespace.forwardRef(
1251
94
  "data-state": getState(context.open),
1252
95
  ...triggerProps,
1253
96
  ref: composedTriggerRef,
1254
- onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
97
+ onClick: Combination.composeEventHandlers(props.onClick, context.onOpenToggle)
1255
98
  }
1256
99
  );
1257
100
  }
@@ -1264,7 +107,7 @@ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {
1264
107
  var DialogPortal = (props) => {
1265
108
  const { __scopeDialog, forceMount, children, container } = props;
1266
109
  const context = useDialogContext(PORTAL_NAME, __scopeDialog);
1267
- return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React__namespace.Children.map(children, (child) => /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Portal$1, { asChild: true, container, children: child }) })) });
110
+ return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React__namespace.Children.map(children, (child) => /* @__PURE__ */ jsxRuntime.jsx(Combination.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Combination.Portal, { asChild: true, container, children: child }) })) });
1268
111
  };
1269
112
  DialogPortal.displayName = PORTAL_NAME;
1270
113
  var OVERLAY_NAME = "DialogOverlay";
@@ -1273,7 +116,7 @@ var DialogOverlay = React__namespace.forwardRef(
1273
116
  const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
1274
117
  const { forceMount = portalContext.forceMount, ...overlayProps } = props;
1275
118
  const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
1276
- return context.modal ? /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
119
+ return context.modal ? /* @__PURE__ */ jsxRuntime.jsx(Combination.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
1277
120
  }
1278
121
  );
1279
122
  DialogOverlay.displayName = OVERLAY_NAME;
@@ -1284,8 +127,8 @@ var DialogOverlayImpl = React__namespace.forwardRef(
1284
127
  return (
1285
128
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1286
129
  // ie. when `Overlay` and `Content` are siblings
1287
- /* @__PURE__ */ jsxRuntime.jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsxRuntime.jsx(
1288
- Primitive.div,
130
+ /* @__PURE__ */ jsxRuntime.jsx(Combination.RemoveScroll, { as: Combination.Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsxRuntime.jsx(
131
+ Combination.Primitive.div,
1289
132
  {
1290
133
  "data-state": getState(context.open),
1291
134
  ...overlayProps,
@@ -1302,7 +145,7 @@ var DialogContent = React__namespace.forwardRef(
1302
145
  const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
1303
146
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
1304
147
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
1305
- return /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntime.jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
148
+ return /* @__PURE__ */ jsxRuntime.jsx(Combination.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntime.jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
1306
149
  }
1307
150
  );
1308
151
  DialogContent.displayName = CONTENT_NAME;
@@ -1310,7 +153,7 @@ var DialogContentModal = React__namespace.forwardRef(
1310
153
  (props, forwardedRef) => {
1311
154
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
1312
155
  const contentRef = React__namespace.useRef(null);
1313
- const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
156
+ const composedRefs = Combination.useComposedRefs(forwardedRef, context.contentRef, contentRef);
1314
157
  React__namespace.useEffect(() => {
1315
158
  const content = contentRef.current;
1316
159
  if (content) return component.hideOthers(content);
@@ -1322,17 +165,17 @@ var DialogContentModal = React__namespace.forwardRef(
1322
165
  ref: composedRefs,
1323
166
  trapFocus: context.open,
1324
167
  disableOutsidePointerEvents: true,
1325
- onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
168
+ onCloseAutoFocus: Combination.composeEventHandlers(props.onCloseAutoFocus, (event) => {
1326
169
  event.preventDefault();
1327
170
  context.triggerRef.current?.focus();
1328
171
  }),
1329
- onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
172
+ onPointerDownOutside: Combination.composeEventHandlers(props.onPointerDownOutside, (event) => {
1330
173
  const originalEvent = event.detail.originalEvent;
1331
174
  const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
1332
175
  const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
1333
176
  if (isRightClick) event.preventDefault();
1334
177
  }),
1335
- onFocusOutside: composeEventHandlers(
178
+ onFocusOutside: Combination.composeEventHandlers(
1336
179
  props.onFocusOutside,
1337
180
  (event) => event.preventDefault()
1338
181
  )
@@ -1385,11 +228,11 @@ var DialogContentImpl = React__namespace.forwardRef(
1385
228
  const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
1386
229
  const context = useDialogContext(CONTENT_NAME, __scopeDialog);
1387
230
  const contentRef = React__namespace.useRef(null);
1388
- const composedRefs = useComposedRefs(forwardedRef, contentRef);
1389
- useFocusGuards();
231
+ const composedRefs = Combination.useComposedRefs(forwardedRef, contentRef);
232
+ Combination.useFocusGuards();
1390
233
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1391
234
  /* @__PURE__ */ jsxRuntime.jsx(
1392
- FocusScope,
235
+ Combination.FocusScope,
1393
236
  {
1394
237
  asChild: true,
1395
238
  loop: true,
@@ -1397,7 +240,7 @@ var DialogContentImpl = React__namespace.forwardRef(
1397
240
  onMountAutoFocus: onOpenAutoFocus,
1398
241
  onUnmountAutoFocus: onCloseAutoFocus,
1399
242
  children: /* @__PURE__ */ jsxRuntime.jsx(
1400
- DismissableLayer,
243
+ Combination.DismissableLayer,
1401
244
  {
1402
245
  role: "dialog",
1403
246
  id: context.contentId,
@@ -1423,7 +266,7 @@ var DialogTitle = React__namespace.forwardRef(
1423
266
  (props, forwardedRef) => {
1424
267
  const { __scopeDialog, ...titleProps } = props;
1425
268
  const context = useDialogContext(TITLE_NAME, __scopeDialog);
1426
- return /* @__PURE__ */ jsxRuntime.jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
269
+ return /* @__PURE__ */ jsxRuntime.jsx(Combination.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
1427
270
  }
1428
271
  );
1429
272
  DialogTitle.displayName = TITLE_NAME;
@@ -1432,7 +275,7 @@ var DialogDescription = React__namespace.forwardRef(
1432
275
  (props, forwardedRef) => {
1433
276
  const { __scopeDialog, ...descriptionProps } = props;
1434
277
  const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
1435
- return /* @__PURE__ */ jsxRuntime.jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
278
+ return /* @__PURE__ */ jsxRuntime.jsx(Combination.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
1436
279
  }
1437
280
  );
1438
281
  DialogDescription.displayName = DESCRIPTION_NAME;
@@ -1442,12 +285,12 @@ var DialogClose = React__namespace.forwardRef(
1442
285
  const { __scopeDialog, ...closeProps } = props;
1443
286
  const context = useDialogContext(CLOSE_NAME, __scopeDialog);
1444
287
  return /* @__PURE__ */ jsxRuntime.jsx(
1445
- Primitive.button,
288
+ Combination.Primitive.button,
1446
289
  {
1447
290
  type: "button",
1448
291
  ...closeProps,
1449
292
  ref: forwardedRef,
1450
- onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
293
+ onClick: Combination.composeEventHandlers(props.onClick, () => context.onOpenChange(false))
1451
294
  }
1452
295
  );
1453
296
  }
@@ -1457,7 +300,7 @@ function getState(open) {
1457
300
  return open ? "open" : "closed";
1458
301
  }
1459
302
  var TITLE_WARNING_NAME = "DialogTitleWarning";
1460
- var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
303
+ var [WarningProvider, useWarningContext] = Combination.createContext2(TITLE_WARNING_NAME, {
1461
304
  contentName: CONTENT_NAME,
1462
305
  titleName: TITLE_NAME,
1463
306
  docsSlug: "dialog"
@@ -1499,7 +342,7 @@ var Description = DialogDescription;
1499
342
 
1500
343
  /** Use `Modal` to display information that needs immediate action from a user. */
1501
344
  var Modal = function (_a) {
1502
- var title = _a.title, description = _a.description, ariaDescribedBy = _a.ariaDescribedBy, isOpen = _a.isOpen, actions = _a.actions, onRequestClose = _a.onRequestClose, children = _a.children, _b = _a.role, role = _b === void 0 ? "dialog" : _b, _c = _a.shouldReturnFocus, shouldReturnFocus = _c === void 0 ? true : _c, _d = _a.isContentScrollable, isContentScrollable = _d === void 0 ? false : _d, _e = _a.size, size = _e === void 0 ? "l" : _e, props = index.__rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size"]);
345
+ var title = _a.title, description = _a.description, ariaDescribedBy = _a.ariaDescribedBy, isOpen = _a.isOpen, actions = _a.actions, onRequestClose = _a.onRequestClose, children = _a.children, _b = _a.role, role = _b === void 0 ? "dialog" : _b, _c = _a.shouldReturnFocus, shouldReturnFocus = _c === void 0 ? true : _c, _d = _a.isContentScrollable, isContentScrollable = _d === void 0 ? false : _d, _e = _a.size, size = _e === void 0 ? "l" : _e, props = index_es.__rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size"]);
1503
346
  var _f = component.useThemeElement(), themeElement = _f[0], setThemeElement = _f[1];
1504
347
  var triggerRef = React.useRef(null);
1505
348
  var setTriggerElement = function () {
@@ -1513,7 +356,7 @@ var Modal = function (_a) {
1513
356
  };
1514
357
  var canShowClose = role !== "alertdialog" && onRequestClose;
1515
358
  var hasContent = description || children;
1516
- var ariaProps = index.__assign({}, (ariaDescribedBy ? { "aria-describedby": ariaDescribedBy } : {}));
359
+ var ariaProps = index_es.__assign({}, (ariaDescribedBy ? { "aria-describedby": ariaDescribedBy } : {}));
1517
360
  var closeModal = function () {
1518
361
  if (role !== "alertdialog" && onRequestClose) {
1519
362
  onRequestClose();
@@ -1523,9 +366,9 @@ var Modal = function (_a) {
1523
366
  React__default["default"].createElement(Root, { open: isOpen },
1524
367
  React__default["default"].createElement(Portal, { container: themeElement },
1525
368
  React__default["default"].createElement(Overlay, { className: "arc-Modal-overlay" },
1526
- React__default["default"].createElement(Content, index.__assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, "aria-modal": "true", className: index$1.classNames("arc-Modal-dialog", "arc-Modal-dialog--".concat(size), {
369
+ React__default["default"].createElement(Content, index_es.__assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, "aria-modal": "true", className: index.classNames("arc-Modal-dialog", "arc-Modal-dialog--".concat(size), {
1527
370
  "arc-Modal-dialog--maxHeightWindow": isContentScrollable
1528
- }) }, index.filterDataAttrs(props)),
371
+ }) }, index_es.filterDataAttrs(props)),
1529
372
  React__default["default"].createElement("div", { className: "arc-Modal-section" },
1530
373
  React__default["default"].createElement(Surface.Surface, null,
1531
374
  React__default["default"].createElement(Title, { asChild: true },
@@ -1541,7 +384,7 @@ var Modal = function (_a) {
1541
384
  actions && (React__default["default"].createElement("div", { className: "arc-Modal-section" },
1542
385
  React__default["default"].createElement(Surface.Surface, null,
1543
386
  React__default["default"].createElement("div", { className: "arc-Modal-actions" }, actions.map(function (props, i) { return (React__default["default"].createElement("div", { key: "arc-modal-button-".concat(i), className: "arc-Modal-actionButton" },
1544
- React__default["default"].createElement(ButtonV2.ButtonV2, index.__assign({ isFullWidth: true }, props)))); }))))),
387
+ React__default["default"].createElement(ButtonV2.ButtonV2, index_es.__assign({ isFullWidth: true }, props)))); }))))),
1545
388
  canShowClose && (React__default["default"].createElement("div", { className: "arc-Modal-iconContainer" },
1546
389
  React__default["default"].createElement("button", { "aria-label": "close", onClick: closeModal, className: "arc-Modal-closeButton" },
1547
390
  React__default["default"].createElement(ThemeIcon.ThemeIcon, { size: 32, icon: "modalClose" }))))))))));