@arc-ui/components 11.5.0 → 11.7.0

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 (315) hide show
  1. package/dist/Alert/Alert.cjs.d.ts +1 -1
  2. package/dist/Alert/Alert.cjs.js +4 -4
  3. package/dist/Alert/Alert.esm.d.ts +1 -1
  4. package/dist/Alert/Alert.esm.js +4 -4
  5. package/dist/Badge/Badge.cjs.js +2 -2
  6. package/dist/Badge/Badge.esm.js +2 -2
  7. package/dist/Box/Box.cjs.d.ts +1 -0
  8. package/dist/Box/Box.cjs.js +13 -0
  9. package/dist/Box/Box.esm.d.ts +1 -0
  10. package/dist/Box/Box.esm.js +5 -0
  11. package/dist/Box/package.json +7 -0
  12. package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
  13. package/dist/BrandLogo/BrandLogo.cjs.js +2 -2
  14. package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
  15. package/dist/BrandLogo/BrandLogo.esm.js +2 -2
  16. package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
  17. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +10 -642
  18. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
  19. package/dist/Breadcrumbs/Breadcrumbs.esm.js +9 -641
  20. package/dist/Button/Button.cjs.d.ts +1 -1
  21. package/dist/Button/Button.cjs.js +4 -3
  22. package/dist/Button/Button.esm.d.ts +1 -1
  23. package/dist/Button/Button.esm.js +4 -3
  24. package/dist/Card/Card.cjs.d.ts +1 -130
  25. package/dist/Card/Card.cjs.js +12 -119
  26. package/dist/Card/Card.esm.d.ts +1 -130
  27. package/dist/Card/Card.esm.js +11 -118
  28. package/dist/Checkbox/Checkbox.cjs.d.ts +1 -64
  29. package/dist/Checkbox/Checkbox.cjs.js +11 -60
  30. package/dist/Checkbox/Checkbox.esm.d.ts +1 -64
  31. package/dist/Checkbox/Checkbox.esm.js +10 -59
  32. package/dist/Columns/Columns.cjs.d.ts +1 -76
  33. package/dist/Columns/Columns.cjs.js +6 -52
  34. package/dist/Columns/Columns.esm.d.ts +1 -76
  35. package/dist/Columns/Columns.esm.js +5 -51
  36. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  37. package/dist/Disclosure/Disclosure.cjs.js +2 -2
  38. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  39. package/dist/Disclosure/Disclosure.esm.js +2 -2
  40. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
  41. package/dist/DisclosureMini/DisclosureMini.cjs.js +3 -3
  42. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
  43. package/dist/DisclosureMini/DisclosureMini.esm.js +3 -3
  44. package/dist/Filter/Filter.cjs.d.ts +1 -0
  45. package/dist/Filter/Filter.cjs.js +13 -0
  46. package/dist/Filter/Filter.esm.d.ts +1 -0
  47. package/dist/Filter/Filter.esm.js +5 -0
  48. package/dist/Filter/package.json +7 -0
  49. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  50. package/dist/FormControl/FormControl.cjs.js +4 -5
  51. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  52. package/dist/FormControl/FormControl.esm.js +4 -5
  53. package/dist/Group/Group.cjs.d.ts +1 -46
  54. package/dist/Group/Group.cjs.js +6 -43
  55. package/dist/Group/Group.esm.d.ts +1 -46
  56. package/dist/Group/Group.esm.js +5 -42
  57. package/dist/Heading/Heading.cjs.d.ts +1 -1
  58. package/dist/Heading/Heading.cjs.js +2 -2
  59. package/dist/Heading/Heading.esm.d.ts +1 -1
  60. package/dist/Heading/Heading.esm.js +2 -2
  61. package/dist/Icon/Icon.cjs.d.ts +1 -1
  62. package/dist/Icon/Icon.cjs.js +2 -2
  63. package/dist/Icon/Icon.esm.d.ts +1 -1
  64. package/dist/Icon/Icon.esm.js +2 -2
  65. package/dist/Image/Image.cjs.d.ts +1 -1
  66. package/dist/Image/Image.cjs.js +2 -1
  67. package/dist/Image/Image.esm.d.ts +1 -1
  68. package/dist/Image/Image.esm.js +1 -1
  69. package/dist/Markup/Markup.cjs.js +1 -1
  70. package/dist/Markup/Markup.esm.js +1 -1
  71. package/dist/MediaCard/MediaCard.cjs.d.ts +61 -0
  72. package/dist/MediaCard/MediaCard.cjs.js +31 -0
  73. package/dist/MediaCard/MediaCard.esm.d.ts +61 -0
  74. package/dist/MediaCard/MediaCard.esm.js +23 -0
  75. package/dist/MediaCard/package.json +7 -0
  76. package/dist/Modal/Modal.cjs.d.ts +31 -0
  77. package/dist/Modal/Modal.cjs.js +388 -0
  78. package/dist/Modal/Modal.esm.d.ts +31 -0
  79. package/dist/Modal/Modal.esm.js +380 -0
  80. package/dist/Modal/package.json +7 -0
  81. package/dist/Pagination/Pagination.cjs.d.ts +20 -0
  82. package/dist/Pagination/Pagination.cjs.js +87 -0
  83. package/dist/Pagination/Pagination.esm.d.ts +20 -0
  84. package/dist/Pagination/Pagination.esm.js +79 -0
  85. package/dist/Pagination/package.json +7 -0
  86. package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +28 -0
  87. package/dist/PaginationSimple/PaginationSimple.cjs.js +47 -0
  88. package/dist/PaginationSimple/PaginationSimple.esm.d.ts +28 -0
  89. package/dist/PaginationSimple/PaginationSimple.esm.js +39 -0
  90. package/dist/PaginationSimple/package.json +7 -0
  91. package/dist/Poster/Poster.cjs.d.ts +1 -81
  92. package/dist/Poster/Poster.cjs.js +8 -45
  93. package/dist/Poster/Poster.esm.d.ts +1 -81
  94. package/dist/Poster/Poster.esm.js +7 -44
  95. package/dist/ProgressBar/ProgressBar.cjs.js +4 -4
  96. package/dist/ProgressBar/ProgressBar.esm.js +4 -4
  97. package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +89 -0
  98. package/dist/ProgressStepper/ProgressStepper.cjs.js +152 -0
  99. package/dist/ProgressStepper/ProgressStepper.esm.d.ts +89 -0
  100. package/dist/ProgressStepper/ProgressStepper.esm.js +144 -0
  101. package/dist/ProgressStepper/package.json +7 -0
  102. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
  103. package/dist/RadioGroup/RadioGroup.cjs.js +9 -68
  104. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
  105. package/dist/RadioGroup/RadioGroup.esm.js +8 -67
  106. package/dist/Rule/Rule.cjs.js +1 -1
  107. package/dist/Rule/Rule.esm.js +1 -1
  108. package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +25 -0
  109. package/dist/ScrollToTop/ScrollToTop.cjs.js +68 -0
  110. package/dist/ScrollToTop/ScrollToTop.esm.d.ts +25 -0
  111. package/dist/ScrollToTop/ScrollToTop.esm.js +60 -0
  112. package/dist/ScrollToTop/package.json +7 -0
  113. package/dist/Select/Select.cjs.d.ts +2 -2
  114. package/dist/Select/Select.cjs.js +20 -1419
  115. package/dist/Select/Select.esm.d.ts +2 -2
  116. package/dist/Select/Select.esm.js +10 -1390
  117. package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
  118. package/dist/SiteFooter/SiteFooter.cjs.js +10 -65
  119. package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
  120. package/dist/SiteFooter/SiteFooter.esm.js +12 -66
  121. package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -260
  122. package/dist/SiteHeader/SiteHeader.cjs.js +17 -669
  123. package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -260
  124. package/dist/SiteHeader/SiteHeader.esm.js +15 -667
  125. package/dist/Surface/Surface.cjs.d.ts +1 -1
  126. package/dist/Surface/Surface.cjs.js +1 -1
  127. package/dist/Surface/Surface.esm.d.ts +1 -1
  128. package/dist/Surface/Surface.esm.js +1 -1
  129. package/dist/Switch/Switch.cjs.d.ts +2 -2
  130. package/dist/Switch/Switch.cjs.js +8 -7
  131. package/dist/Switch/Switch.esm.d.ts +2 -2
  132. package/dist/Switch/Switch.esm.js +7 -6
  133. package/dist/Tag/Tag.cjs.js +2 -2
  134. package/dist/Tag/Tag.esm.js +2 -2
  135. package/dist/Text/Text.cjs.d.ts +1 -1
  136. package/dist/Text/Text.cjs.js +2 -2
  137. package/dist/Text/Text.esm.d.ts +1 -1
  138. package/dist/Text/Text.esm.js +2 -2
  139. package/dist/TextArea/TextArea.cjs.d.ts +61 -0
  140. package/dist/TextArea/TextArea.cjs.js +87 -0
  141. package/dist/TextArea/TextArea.esm.d.ts +61 -0
  142. package/dist/TextArea/TextArea.esm.js +79 -0
  143. package/dist/TextArea/package.json +7 -0
  144. package/dist/TextInput/TextInput.cjs.d.ts +1 -75
  145. package/dist/TextInput/TextInput.cjs.js +10 -76
  146. package/dist/TextInput/TextInput.esm.d.ts +1 -75
  147. package/dist/TextInput/TextInput.esm.js +9 -75
  148. package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -26
  149. package/dist/UniversalHeader/UniversalHeader.cjs.js +5 -30
  150. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -26
  151. package/dist/UniversalHeader/UniversalHeader.esm.js +4 -29
  152. package/dist/_shared/cjs/Box-ebe2b7be.d.ts +39 -0
  153. package/dist/_shared/cjs/Box-ebe2b7be.js +30 -0
  154. package/dist/_shared/cjs/{BrandLogo-8008f0c4.js → BrandLogo-8107d59f.js} +1 -1
  155. package/dist/_shared/cjs/Breadcrumbs-9f580f69.d.ts +61 -0
  156. package/dist/_shared/cjs/Breadcrumbs-9f580f69.js +106 -0
  157. package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
  158. package/dist/_shared/cjs/{Button-5dff284a.js → Button-b4d6ccc8.js} +8 -29
  159. package/dist/_shared/cjs/Card-f1108bfe.d.ts +136 -0
  160. package/dist/_shared/cjs/Card-f1108bfe.js +124 -0
  161. package/dist/_shared/cjs/Checkbox-c927b62f.d.ts +64 -0
  162. package/dist/_shared/cjs/Checkbox-c927b62f.js +62 -0
  163. package/dist/_shared/cjs/Columns-e90798f8.d.ts +76 -0
  164. package/dist/_shared/cjs/Columns-e90798f8.js +57 -0
  165. package/dist/_shared/cjs/{DisclosureMini-5af13d3c.js → DisclosureMini-2a10006e.js} +5 -3
  166. package/dist/_shared/cjs/Filter-a7574fe7.d.ts +83 -0
  167. package/dist/_shared/cjs/Filter-a7574fe7.js +121 -0
  168. package/dist/_shared/{esm/FormControl-0744f93f.d.ts → cjs/FormControl-78b007b7.d.ts} +4 -0
  169. package/dist/_shared/cjs/{FormControl-42360ae8.js → FormControl-78b007b7.js} +10 -10
  170. package/dist/_shared/cjs/Group-f85dd4c0.d.ts +46 -0
  171. package/dist/_shared/cjs/Group-f85dd4c0.js +48 -0
  172. package/dist/_shared/cjs/{Heading-d45f6a7f.js → Heading-ed1cb455.js} +1 -1
  173. package/dist/_shared/cjs/{Icon-9ae8dbe1.js → Icon-e1dd45eb.js} +1 -1
  174. package/dist/_shared/cjs/{Image-3bf4b4f3.js → Image-0e393cbf.js} +2 -0
  175. package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +27 -0
  176. package/dist/_shared/cjs/NavItem-df20237c.d.ts +43 -0
  177. package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +49 -0
  178. package/dist/_shared/cjs/Poster-faea1ad3.d.ts +81 -0
  179. package/dist/_shared/cjs/Poster-faea1ad3.js +50 -0
  180. package/dist/_shared/cjs/RadioGroup-8e17de70.d.ts +97 -0
  181. package/dist/_shared/cjs/RadioGroup-8e17de70.js +70 -0
  182. package/dist/_shared/cjs/SiteFooter-9f7f9c2d.d.ts +62 -0
  183. package/dist/_shared/cjs/SiteFooter-9f7f9c2d.js +73 -0
  184. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
  185. package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.d.ts +78 -0
  186. package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.js +673 -0
  187. package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
  188. package/dist/_shared/cjs/{Surface-6da0a78e.d.ts → Surface-b7c51b2b.d.ts} +3 -2
  189. package/dist/_shared/cjs/{Surface-6da0a78e.js → Surface-b7c51b2b.js} +1 -1
  190. package/dist/_shared/cjs/{Text-6f2827e6.js → Text-555a29a4.js} +1 -1
  191. package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
  192. package/dist/_shared/cjs/TextInput-b768e346.d.ts +10 -0
  193. package/dist/_shared/cjs/TextInput-b768e346.js +78 -0
  194. package/dist/_shared/cjs/UniversalHeader-da622e1a.d.ts +26 -0
  195. package/dist/_shared/cjs/UniversalHeader-da622e1a.js +35 -0
  196. package/dist/_shared/cjs/debounce-506538c5.js +544 -0
  197. package/dist/_shared/cjs/index-31fbb076.js +1416 -0
  198. package/dist/_shared/cjs/index-699086a7.d.ts +2 -0
  199. package/dist/_shared/cjs/index-74488a9f.d.ts +2 -0
  200. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  201. package/dist/_shared/cjs/index-e340924e.d.ts +2 -0
  202. package/dist/_shared/cjs/index-e6d20018.d.ts +3 -0
  203. package/dist/_shared/cjs/index-eb06f640.d.ts +2 -0
  204. package/dist/_shared/cjs/index-f419cf04.d.ts +2 -0
  205. package/dist/_shared/cjs/index.module-5ea728f4.js +23 -0
  206. package/dist/_shared/cjs/{index.module-af7c85f2.js → index.module-9b87a34d.js} +84 -103
  207. package/dist/_shared/esm/Box-06d99d8a.d.ts +39 -0
  208. package/dist/_shared/esm/Box-06d99d8a.js +24 -0
  209. package/dist/_shared/esm/{BrandLogo-56699561.js → BrandLogo-9ec620e8.js} +1 -1
  210. package/dist/_shared/esm/Breadcrumbs-5dc0afa7.d.ts +61 -0
  211. package/dist/_shared/esm/Breadcrumbs-5dc0afa7.js +100 -0
  212. package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
  213. package/dist/_shared/esm/{Button-61241dd0.js → Button-9c3b0b11.js} +4 -25
  214. package/dist/_shared/esm/Card-79b6eae0.d.ts +136 -0
  215. package/dist/_shared/esm/Card-79b6eae0.js +118 -0
  216. package/dist/_shared/esm/Checkbox-2d144384.d.ts +64 -0
  217. package/dist/_shared/esm/Checkbox-2d144384.js +56 -0
  218. package/dist/_shared/esm/Columns-8704515b.d.ts +76 -0
  219. package/dist/_shared/esm/Columns-8704515b.js +51 -0
  220. package/dist/_shared/esm/{DisclosureMini-322fccc0.js → DisclosureMini-78a8f392.js} +5 -3
  221. package/dist/_shared/esm/Filter-a01aed11.d.ts +83 -0
  222. package/dist/_shared/esm/Filter-a01aed11.js +115 -0
  223. package/dist/_shared/{cjs/FormControl-42360ae8.d.ts → esm/FormControl-2fa7aae5.d.ts} +4 -0
  224. package/dist/_shared/esm/{FormControl-0744f93f.js → FormControl-2fa7aae5.js} +10 -10
  225. package/dist/_shared/esm/Group-fb26fd32.d.ts +46 -0
  226. package/dist/_shared/esm/Group-fb26fd32.js +42 -0
  227. package/dist/_shared/esm/{Heading-b61432fb.js → Heading-ee6bec51.js} +1 -1
  228. package/dist/_shared/esm/{Icon-fd247973.js → Icon-c1af47bc.js} +1 -1
  229. package/dist/_shared/esm/{Image-3596ce55.js → Image-3ed3863c.js} +2 -1
  230. package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +27 -0
  231. package/dist/_shared/esm/NavItem-df20237c.d.ts +43 -0
  232. package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +49 -0
  233. package/dist/_shared/esm/Poster-a83ae770.d.ts +81 -0
  234. package/dist/_shared/esm/Poster-a83ae770.js +44 -0
  235. package/dist/_shared/esm/RadioGroup-65b8c8bf.d.ts +97 -0
  236. package/dist/_shared/esm/RadioGroup-65b8c8bf.js +64 -0
  237. package/dist/_shared/esm/SiteFooter-51bdc7df.d.ts +62 -0
  238. package/dist/_shared/esm/SiteFooter-51bdc7df.js +67 -0
  239. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
  240. package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.d.ts +78 -0
  241. package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.js +666 -0
  242. package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
  243. package/dist/_shared/esm/{Surface-bb100ef8.d.ts → Surface-dde51789.d.ts} +3 -2
  244. package/dist/_shared/esm/{Surface-bb100ef8.js → Surface-dde51789.js} +1 -1
  245. package/dist/_shared/esm/{Text-00e9743b.js → Text-14deb70e.js} +1 -1
  246. package/dist/_shared/esm/TextInput-62bb7dee.d.ts +10 -0
  247. package/dist/_shared/esm/TextInput-62bb7dee.js +72 -0
  248. package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
  249. package/dist/_shared/esm/UniversalHeader-1c5a886d.d.ts +26 -0
  250. package/dist/_shared/esm/UniversalHeader-1c5a886d.js +29 -0
  251. package/dist/_shared/esm/debounce-e228705f.js +542 -0
  252. package/dist/_shared/esm/index-4fa635bd.js +1386 -0
  253. package/dist/_shared/esm/index-699086a7.d.ts +2 -0
  254. package/dist/_shared/esm/index-74488a9f.d.ts +2 -0
  255. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  256. package/dist/_shared/esm/index-e340924e.d.ts +2 -0
  257. package/dist/_shared/esm/index-e6d20018.d.ts +3 -0
  258. package/dist/_shared/esm/index-eb06f640.d.ts +2 -0
  259. package/dist/_shared/esm/index-f419cf04.d.ts +2 -0
  260. package/dist/_shared/esm/{index.module-599b86dd.js → index.module-216016b5.js} +86 -104
  261. package/dist/_shared/esm/index.module-88179159.js +21 -0
  262. package/dist/index.es.js +179 -28
  263. package/dist/index.es.js.map +1 -1
  264. package/dist/index.js +180 -27
  265. package/dist/index.js.map +1 -1
  266. package/dist/styles.css +1 -1
  267. package/dist/types/components/Box/Box.d.ts +36 -0
  268. package/dist/types/components/Box/index.d.ts +1 -0
  269. package/dist/types/components/Filter/Filter.d.ts +38 -0
  270. package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +16 -0
  271. package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +12 -0
  272. package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +12 -0
  273. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +12 -0
  274. package/dist/types/components/Filter/index.d.ts +1 -0
  275. package/dist/types/components/FormControl/FormControl.d.ts +4 -0
  276. package/dist/types/components/Image/index.d.ts +1 -1
  277. package/dist/types/components/MediaCard/MediaCard.d.ts +57 -0
  278. package/dist/types/components/MediaCard/index.d.ts +1 -0
  279. package/dist/types/components/Modal/Modal.stories-wip.d.ts +9 -0
  280. package/dist/types/components/Pagination/Pagination.d.ts +19 -0
  281. package/dist/types/components/Pagination/index.d.ts +1 -0
  282. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +27 -0
  283. package/dist/types/components/PaginationSimple/index.d.ts +1 -0
  284. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +28 -0
  285. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +62 -0
  286. package/dist/types/components/ProgressStepper/index.d.ts +1 -0
  287. package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -0
  288. package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
  289. package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +24 -0
  290. package/dist/types/components/ScrollToTop/index.d.ts +1 -0
  291. package/dist/types/components/Select/Select.d.ts +1 -1
  292. package/dist/types/components/Surface/Surface.d.ts +2 -1
  293. package/dist/types/components/Surface/index.d.ts +1 -1
  294. package/dist/types/components/Switch/Switch.d.ts +1 -1
  295. package/dist/types/components/TextArea/TextArea.d.ts +60 -0
  296. package/dist/types/components/TextArea/index.d.ts +1 -0
  297. package/dist/types/components/TextInput/TextInput.d.ts +1 -1
  298. package/dist/types/components/index.d.ts +2 -0
  299. package/dist/types/hooks/use-pagination.d.ts +1 -0
  300. package/dist/types/styles.d.ts +10 -0
  301. package/package.json +4 -4
  302. /package/dist/_shared/cjs/{BrandLogo-8008f0c4.d.ts → BrandLogo-8107d59f.d.ts} +0 -0
  303. /package/dist/_shared/cjs/{Button-5dff284a.d.ts → Button-b4d6ccc8.d.ts} +0 -0
  304. /package/dist/_shared/cjs/{DisclosureMini-5af13d3c.d.ts → DisclosureMini-2a10006e.d.ts} +0 -0
  305. /package/dist/_shared/cjs/{Heading-d45f6a7f.d.ts → Heading-ed1cb455.d.ts} +0 -0
  306. /package/dist/_shared/cjs/{Icon-9ae8dbe1.d.ts → Icon-e1dd45eb.d.ts} +0 -0
  307. /package/dist/_shared/cjs/{Image-3bf4b4f3.d.ts → Image-0e393cbf.d.ts} +0 -0
  308. /package/dist/_shared/cjs/{Text-6f2827e6.d.ts → Text-555a29a4.d.ts} +0 -0
  309. /package/dist/_shared/esm/{BrandLogo-56699561.d.ts → BrandLogo-9ec620e8.d.ts} +0 -0
  310. /package/dist/_shared/esm/{Button-61241dd0.d.ts → Button-9c3b0b11.d.ts} +0 -0
  311. /package/dist/_shared/esm/{DisclosureMini-322fccc0.d.ts → DisclosureMini-78a8f392.d.ts} +0 -0
  312. /package/dist/_shared/esm/{Heading-b61432fb.d.ts → Heading-ee6bec51.d.ts} +0 -0
  313. /package/dist/_shared/esm/{Icon-fd247973.d.ts → Icon-c1af47bc.d.ts} +0 -0
  314. /package/dist/_shared/esm/{Image-3596ce55.d.ts → Image-3ed3863c.d.ts} +0 -0
  315. /package/dist/_shared/esm/{Text-00e9743b.d.ts → Text-14deb70e.d.ts} +0 -0
@@ -0,0 +1,388 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var index_module = require('../_shared/cjs/index.module-9b87a34d.js');
7
+ var index = require('../_shared/cjs/index-31fbb076.js');
8
+ var $7SXl2$reactdom = require('react-dom');
9
+ var Icon = require('../_shared/cjs/Icon-e1dd45eb.js');
10
+ var BtIconCrossAlt2Px = require('../_shared/cjs/BtIconCrossAlt2Px-30dc2688.js');
11
+ var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-e2c8b291.js');
12
+ var Base = require('../_shared/cjs/Base-569e4334.js');
13
+ var Heading = require('../_shared/cjs/Heading-ed1cb455.js');
14
+ var Text = require('../_shared/cjs/Text-555a29a4.js');
15
+ require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
16
+ require('../_shared/cjs/index-45bfb67b.js');
17
+ require('../_shared/cjs/suffix-modifier-1ee2da04.js');
18
+ require('../_shared/cjs/Surface-b7c51b2b.js');
19
+
20
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
+
22
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
+
24
+ function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
25
+ return React.useReducer((state, event)=>{
26
+ const nextState = machine[state][event];
27
+ return nextState !== null && nextState !== void 0 ? nextState : state;
28
+ }, initialState);
29
+ }
30
+
31
+
32
+ const $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{
33
+ const { present: present , children: children } = props;
34
+ const presence = $921a889cee6df7e8$var$usePresence(present);
35
+ const child = typeof children === 'function' ? children({
36
+ present: presence.isPresent
37
+ }) : React.Children.only(children);
38
+ const ref = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref, child.ref);
39
+ const forceMount = typeof children === 'function';
40
+ return forceMount || presence.isPresent ? /*#__PURE__*/ React.cloneElement(child, {
41
+ ref: ref
42
+ }) : null;
43
+ };
44
+ $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
45
+ /* -------------------------------------------------------------------------------------------------
46
+ * usePresence
47
+ * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {
48
+ const [node1, setNode] = React.useState();
49
+ const stylesRef = React.useRef({});
50
+ const prevPresentRef = React.useRef(present);
51
+ const prevAnimationNameRef = React.useRef('none');
52
+ const initialState = present ? 'mounted' : 'unmounted';
53
+ const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {
54
+ mounted: {
55
+ UNMOUNT: 'unmounted',
56
+ ANIMATION_OUT: 'unmountSuspended'
57
+ },
58
+ unmountSuspended: {
59
+ MOUNT: 'mounted',
60
+ ANIMATION_END: 'unmounted'
61
+ },
62
+ unmounted: {
63
+ MOUNT: 'mounted'
64
+ }
65
+ });
66
+ React.useEffect(()=>{
67
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
68
+ prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
69
+ }, [
70
+ state
71
+ ]);
72
+ index_module.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
73
+ const styles = stylesRef.current;
74
+ const wasPresent = prevPresentRef.current;
75
+ const hasPresentChanged = wasPresent !== present;
76
+ if (hasPresentChanged) {
77
+ const prevAnimationName = prevAnimationNameRef.current;
78
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
79
+ if (present) send('MOUNT');
80
+ else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run
81
+ // so we unmount instantly
82
+ send('UNMOUNT');
83
+ else {
84
+ /**
85
+ * When `present` changes to `false`, we check changes to animation-name to
86
+ * determine whether an animation has started. We chose this approach (reading
87
+ * computed styles) because there is no `animationrun` event and `animationstart`
88
+ * fires after `animation-delay` has expired which would be too late.
89
+ */ const isAnimating = prevAnimationName !== currentAnimationName;
90
+ if (wasPresent && isAnimating) send('ANIMATION_OUT');
91
+ else send('UNMOUNT');
92
+ }
93
+ prevPresentRef.current = present;
94
+ }
95
+ }, [
96
+ present,
97
+ send
98
+ ]);
99
+ index_module.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
100
+ if (node1) {
101
+ /**
102
+ * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`
103
+ * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we
104
+ * make sure we only trigger ANIMATION_END for the currently active animation.
105
+ */ const handleAnimationEnd = (event)=>{
106
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
107
+ const isCurrentAnimation = currentAnimationName.includes(event.animationName);
108
+ if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied
109
+ // a frame after the animation ends, creating a flash of visible content.
110
+ // By manually flushing we ensure they sync within a frame, removing the flash.
111
+ $7SXl2$reactdom.flushSync(()=>send('ANIMATION_END')
112
+ );
113
+ };
114
+ const handleAnimationStart = (event)=>{
115
+ if (event.target === node1) // if animation occurred, store its name as the previous animation.
116
+ prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
117
+ };
118
+ node1.addEventListener('animationstart', handleAnimationStart);
119
+ node1.addEventListener('animationcancel', handleAnimationEnd);
120
+ node1.addEventListener('animationend', handleAnimationEnd);
121
+ return ()=>{
122
+ node1.removeEventListener('animationstart', handleAnimationStart);
123
+ node1.removeEventListener('animationcancel', handleAnimationEnd);
124
+ node1.removeEventListener('animationend', handleAnimationEnd);
125
+ };
126
+ } else // Transition to the unmounted state if the node is removed prematurely.
127
+ // We avoid doing so during cleanup as the node may change but still exist.
128
+ send('ANIMATION_END');
129
+ }, [
130
+ node1,
131
+ send
132
+ ]);
133
+ return {
134
+ isPresent: [
135
+ 'mounted',
136
+ 'unmountSuspended'
137
+ ].includes(state),
138
+ ref: React.useCallback((node)=>{
139
+ if (node) stylesRef.current = getComputedStyle(node);
140
+ setNode(node);
141
+ }, [])
142
+ };
143
+ }
144
+ /* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {
145
+ return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';
146
+ }
147
+
148
+ /* -------------------------------------------------------------------------------------------------
149
+ * Dialog
150
+ * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DIALOG_NAME = 'Dialog';
151
+ const [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = index_module.$c512c27ab02ef895$export$50c7b4e9d9f19c1($5d3850c4d0b4e6c7$var$DIALOG_NAME);
152
+ const [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);
153
+ const $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{
154
+ const { __scopeDialog: __scopeDialog , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;
155
+ const triggerRef = React.useRef(null);
156
+ const contentRef = React.useRef(null);
157
+ const [open = false, setOpen] = index_module.$71cd76cc60e0454e$export$6f32135080cb4c3({
158
+ prop: openProp,
159
+ defaultProp: defaultOpen,
160
+ onChange: onOpenChange
161
+ });
162
+ return /*#__PURE__*/ React.createElement($5d3850c4d0b4e6c7$var$DialogProvider, {
163
+ scope: __scopeDialog,
164
+ triggerRef: triggerRef,
165
+ contentRef: contentRef,
166
+ contentId: index.$1746a345f3d73bb7$export$f680877a34711e37(),
167
+ titleId: index.$1746a345f3d73bb7$export$f680877a34711e37(),
168
+ descriptionId: index.$1746a345f3d73bb7$export$f680877a34711e37(),
169
+ open: open,
170
+ onOpenChange: setOpen,
171
+ onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
172
+ )
173
+ , [
174
+ setOpen
175
+ ]),
176
+ modal: modal
177
+ }, children);
178
+ };
179
+ /* -------------------------------------------------------------------------------------------------
180
+ * DialogPortal
181
+ * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$PORTAL_NAME = 'DialogPortal';
182
+ const [$5d3850c4d0b4e6c7$var$PortalProvider, $5d3850c4d0b4e6c7$var$usePortalContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, {
183
+ forceMount: undefined
184
+ });
185
+ const $5d3850c4d0b4e6c7$export$dad7c95542bacce0 = (props)=>{
186
+ const { __scopeDialog: __scopeDialog , forceMount: forceMount , children: children , container: container } = props;
187
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, __scopeDialog);
188
+ return /*#__PURE__*/ React.createElement($5d3850c4d0b4e6c7$var$PortalProvider, {
189
+ scope: __scopeDialog,
190
+ forceMount: forceMount
191
+ }, React.Children.map(children, (child)=>/*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
192
+ present: forceMount || context.open
193
+ }, /*#__PURE__*/ React.createElement(index.$f1701beae083dbae$export$602eac185826482c, {
194
+ asChild: true,
195
+ container: container
196
+ }, child))
197
+ ));
198
+ };
199
+ /* -------------------------------------------------------------------------------------------------
200
+ * DialogOverlay
201
+ * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$OVERLAY_NAME = 'DialogOverlay';
202
+ const $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
203
+ const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);
204
+ const { forceMount: forceMount = portalContext.forceMount , ...overlayProps } = props;
205
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);
206
+ return context.modal ? /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
207
+ present: forceMount || context.open
208
+ }, /*#__PURE__*/ React.createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, index_module._extends({}, overlayProps, {
209
+ ref: forwardedRef
210
+ }))) : null;
211
+ });
212
+ const $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
213
+ const { __scopeDialog: __scopeDialog , ...overlayProps } = props;
214
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, __scopeDialog);
215
+ return(/*#__PURE__*/ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
216
+ // ie. when `Overlay` and `Content` are siblings
217
+ React.createElement(index.$01b9c$RemoveScroll, {
218
+ as: index_module.$5e63c961fc1ce211$export$8c6ed5c666ac1360,
219
+ allowPinchZoom: true,
220
+ shards: [
221
+ context.contentRef
222
+ ]
223
+ }, /*#__PURE__*/ React.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.div, index_module._extends({
224
+ "data-state": $5d3850c4d0b4e6c7$var$getState(context.open)
225
+ }, overlayProps, {
226
+ ref: forwardedRef // We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.
227
+ ,
228
+ style: {
229
+ pointerEvents: 'auto',
230
+ ...overlayProps.style
231
+ }
232
+ }))));
233
+ });
234
+ /* -------------------------------------------------------------------------------------------------
235
+ * DialogContent
236
+ * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CONTENT_NAME = 'DialogContent';
237
+ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
238
+ const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
239
+ const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;
240
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
241
+ return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
242
+ present: forceMount || context.open
243
+ }, context.modal ? /*#__PURE__*/ React.createElement($5d3850c4d0b4e6c7$var$DialogContentModal, index_module._extends({}, contentProps, {
244
+ ref: forwardedRef
245
+ })) : /*#__PURE__*/ React.createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, index_module._extends({}, contentProps, {
246
+ ref: forwardedRef
247
+ })));
248
+ });
249
+ /* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentModal = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
250
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
251
+ const contentRef = React.useRef(null);
252
+ const composedRefs = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)
253
+ React.useEffect(()=>{
254
+ const content = contentRef.current;
255
+ if (content) return index.hideOthers(content);
256
+ }, []);
257
+ return /*#__PURE__*/ React.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, index_module._extends({}, props, {
258
+ ref: composedRefs // we make sure focus isn't trapped once `DialogContent` has been closed
259
+ ,
260
+ trapFocus: context.open,
261
+ disableOutsidePointerEvents: true,
262
+ onCloseAutoFocus: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onCloseAutoFocus, (event)=>{
263
+ var _context$triggerRef$c;
264
+ event.preventDefault();
265
+ (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
266
+ }),
267
+ onPointerDownOutside: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event)=>{
268
+ const originalEvent = event.detail.originalEvent;
269
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
270
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick; // If the event is a right-click, we shouldn't close because
271
+ // it is effectively as if we right-clicked the `Overlay`.
272
+ if (isRightClick) event.preventDefault();
273
+ }) // When focus is trapped, a `focusout` event may still happen.
274
+ ,
275
+ onFocusOutside: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusOutside, (event)=>event.preventDefault()
276
+ )
277
+ }));
278
+ });
279
+ /* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentNonModal = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
280
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
281
+ const hasInteractedOutsideRef = React.useRef(false);
282
+ return /*#__PURE__*/ React.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, index_module._extends({}, props, {
283
+ ref: forwardedRef,
284
+ trapFocus: false,
285
+ disableOutsidePointerEvents: false,
286
+ onCloseAutoFocus: (event)=>{
287
+ var _props$onCloseAutoFoc;
288
+ (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
289
+ if (!event.defaultPrevented) {
290
+ var _context$triggerRef$c2;
291
+ if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus(); // Always prevent auto focus because we either focus manually or want user agent focus
292
+ event.preventDefault();
293
+ }
294
+ hasInteractedOutsideRef.current = false;
295
+ },
296
+ onInteractOutside: (event)=>{
297
+ var _props$onInteractOuts, _context$triggerRef$c3;
298
+ (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
299
+ if (!event.defaultPrevented) hasInteractedOutsideRef.current = true; // Prevent dismissing when clicking the trigger.
300
+ // As the trigger is already setup to close, without doing so would
301
+ // cause it to close and immediately open.
302
+ //
303
+ // We use `onInteractOutside` as some browsers also
304
+ // focus on pointer down, creating the same issue.
305
+ const target = event.target;
306
+ const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);
307
+ if (targetIsTrigger) event.preventDefault();
308
+ }
309
+ }));
310
+ });
311
+ /* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
312
+ const { __scopeDialog: __scopeDialog , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , ...contentProps } = props;
313
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, __scopeDialog);
314
+ const contentRef = React.useRef(null);
315
+ const composedRefs = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be
316
+ // the last element in the DOM (beacuse of the `Portal`)
317
+ index.$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
318
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(index.$d3863c46a17e8a28$export$20e40289641fbbb6, {
319
+ asChild: true,
320
+ loop: true,
321
+ trapped: trapFocus,
322
+ onMountAutoFocus: onOpenAutoFocus,
323
+ onUnmountAutoFocus: onCloseAutoFocus
324
+ }, /*#__PURE__*/ React.createElement(index.$5cb92bef7577960e$export$177fb62ff3ec1f22, index_module._extends({
325
+ role: "dialog",
326
+ id: context.contentId,
327
+ "aria-describedby": context.descriptionId,
328
+ "aria-labelledby": context.titleId,
329
+ "data-state": $5d3850c4d0b4e6c7$var$getState(context.open)
330
+ }, contentProps, {
331
+ ref: composedRefs,
332
+ onDismiss: ()=>context.onOpenChange(false)
333
+ }))), false);
334
+ });
335
+ /* -------------------------------------------------------------------------------------------------
336
+ * DialogTitle
337
+ * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TITLE_NAME = 'DialogTitle';
338
+ const $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
339
+ const { __scopeDialog: __scopeDialog , ...titleProps } = props;
340
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);
341
+ return /*#__PURE__*/ React.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.h2, index_module._extends({
342
+ id: context.titleId
343
+ }, titleProps, {
344
+ ref: forwardedRef
345
+ }));
346
+ });
347
+ /* -------------------------------------------------------------------------------------------------
348
+ * DialogDescription
349
+ * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = 'DialogDescription';
350
+ const $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
351
+ const { __scopeDialog: __scopeDialog , ...descriptionProps } = props;
352
+ const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);
353
+ return /*#__PURE__*/ React.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.p, index_module._extends({
354
+ id: context.descriptionId
355
+ }, descriptionProps, {
356
+ ref: forwardedRef
357
+ }));
358
+ });
359
+ /* -----------------------------------------------------------------------------------------------*/ function $5d3850c4d0b4e6c7$var$getState(open) {
360
+ return open ? 'open' : 'closed';
361
+ }
362
+ const $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2d174ce01153;
363
+ const $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;
364
+ const $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;
365
+ const $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d9565de1e068cf;
366
+ const $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;
367
+ const $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;
368
+
369
+ var Modal = function (_a) {
370
+ var title = _a.title, isOpen = _a.isOpen, onClose = _a.onClose, description = _a.description, children = _a.children, _b = _a.showDescription, showDescription = _b === void 0 ? true : _b;
371
+ var arcRootElement = React.useContext(Base.ArcRootElementContext);
372
+ var modalDescription = React__default["default"].createElement(showDescription ? Text.Text : VisuallyHidden.VisuallyHidden, { children: description });
373
+ return (React__default["default"].createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { open: isOpen },
374
+ React__default["default"].createElement($5d3850c4d0b4e6c7$export$602eac185826482c, { container: arcRootElement },
375
+ React__default["default"].createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { className: "arc-Modal-overlay" },
376
+ React__default["default"].createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { onEscapeKeyDown: onClose, onInteractOutside: onClose, className: "arc-Modal-dialog" },
377
+ React__default["default"].createElement("div", { className: "arc-Modal-content" },
378
+ React__default["default"].createElement("div", { className: "arc-Modal-textWrapper" },
379
+ React__default["default"].createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0, { className: "arc-Modal-title" },
380
+ React__default["default"].createElement(Heading.Heading, { size: "m" }, title)),
381
+ React__default["default"].createElement($5d3850c4d0b4e6c7$export$393edc798c47379d, null, modalDescription)),
382
+ children),
383
+ React__default["default"].createElement("div", { className: "arc-Modal-iconContainer" },
384
+ React__default["default"].createElement("button", { "aria-label": "close", onClick: onClose, className: "arc-Modal-closeButton" },
385
+ React__default["default"].createElement(Icon.Icon, { size: 32, icon: BtIconCrossAlt2Px.BtIconCrossAlt2Px_2 }))))))));
386
+ };
387
+
388
+ exports.Modal = Modal;
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ declare const Modal: FC<ModalProps>;
5
+ interface ModalProps {
6
+ /**
7
+ * title for the modal dialog, announced when opened
8
+ */
9
+ title: string;
10
+ /**
11
+ * description for the modal dialog, announced when opened
12
+ */
13
+ description: string;
14
+ /**
15
+ * Function to be called when the modal has been requested to close.
16
+ */
17
+ onClose: () => void;
18
+ /**
19
+ * determines whether the description is visible. If set to false it will be visually hidden, but will still be announaced by screen readers. Set to true by default.
20
+ */
21
+ showDescription?: boolean;
22
+ /**
23
+ * Set modal open or closed
24
+ */
25
+ isOpen?: boolean;
26
+ /**
27
+ * content for the modal
28
+ */
29
+ children?: React.ReactNode;
30
+ }
31
+ export { Modal };