@arc-ui/components 11.6.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 (261) 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 -1
  17. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +3 -3
  18. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -1
  19. package/dist/Breadcrumbs/Breadcrumbs.esm.js +3 -3
  20. package/dist/Button/Button.cjs.d.ts +1 -1
  21. package/dist/Button/Button.cjs.js +3 -3
  22. package/dist/Button/Button.esm.d.ts +1 -1
  23. package/dist/Button/Button.esm.js +3 -3
  24. package/dist/Card/Card.cjs.d.ts +1 -1
  25. package/dist/Card/Card.cjs.js +5 -5
  26. package/dist/Card/Card.esm.d.ts +1 -1
  27. package/dist/Card/Card.esm.js +5 -5
  28. package/dist/Checkbox/Checkbox.cjs.d.ts +1 -1
  29. package/dist/Checkbox/Checkbox.cjs.js +5 -5
  30. package/dist/Checkbox/Checkbox.esm.d.ts +1 -1
  31. package/dist/Checkbox/Checkbox.esm.js +5 -5
  32. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  33. package/dist/Disclosure/Disclosure.cjs.js +2 -2
  34. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  35. package/dist/Disclosure/Disclosure.esm.js +2 -2
  36. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
  37. package/dist/DisclosureMini/DisclosureMini.cjs.js +3 -3
  38. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
  39. package/dist/DisclosureMini/DisclosureMini.esm.js +3 -3
  40. package/dist/Filter/Filter.cjs.d.ts +1 -1
  41. package/dist/Filter/Filter.cjs.js +2 -2
  42. package/dist/Filter/Filter.esm.d.ts +1 -1
  43. package/dist/Filter/Filter.esm.js +2 -2
  44. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  45. package/dist/FormControl/FormControl.cjs.js +4 -4
  46. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  47. package/dist/FormControl/FormControl.esm.js +4 -4
  48. package/dist/Group/Group.cjs.d.ts +1 -1
  49. package/dist/Group/Group.cjs.js +2 -2
  50. package/dist/Group/Group.esm.d.ts +1 -1
  51. package/dist/Group/Group.esm.js +2 -2
  52. package/dist/Heading/Heading.cjs.d.ts +1 -1
  53. package/dist/Heading/Heading.cjs.js +2 -2
  54. package/dist/Heading/Heading.esm.d.ts +1 -1
  55. package/dist/Heading/Heading.esm.js +2 -2
  56. package/dist/Icon/Icon.cjs.d.ts +1 -1
  57. package/dist/Icon/Icon.cjs.js +2 -2
  58. package/dist/Icon/Icon.esm.d.ts +1 -1
  59. package/dist/Icon/Icon.esm.js +2 -2
  60. package/dist/Image/Image.cjs.d.ts +1 -1
  61. package/dist/Image/Image.cjs.js +2 -1
  62. package/dist/Image/Image.esm.d.ts +1 -1
  63. package/dist/Image/Image.esm.js +1 -1
  64. package/dist/Markup/Markup.cjs.js +1 -1
  65. package/dist/Markup/Markup.esm.js +1 -1
  66. package/dist/MediaCard/MediaCard.cjs.d.ts +61 -0
  67. package/dist/MediaCard/MediaCard.cjs.js +31 -0
  68. package/dist/MediaCard/MediaCard.esm.d.ts +61 -0
  69. package/dist/MediaCard/MediaCard.esm.js +23 -0
  70. package/dist/MediaCard/package.json +7 -0
  71. package/dist/Modal/Modal.cjs.d.ts +31 -0
  72. package/dist/Modal/Modal.cjs.js +388 -0
  73. package/dist/Modal/Modal.esm.d.ts +31 -0
  74. package/dist/Modal/Modal.esm.js +380 -0
  75. package/dist/Modal/package.json +7 -0
  76. package/dist/Pagination/Pagination.cjs.js +2 -2
  77. package/dist/Pagination/Pagination.esm.js +2 -2
  78. package/dist/PaginationSimple/PaginationSimple.cjs.js +2 -2
  79. package/dist/PaginationSimple/PaginationSimple.esm.js +2 -2
  80. package/dist/Poster/Poster.cjs.d.ts +1 -1
  81. package/dist/Poster/Poster.cjs.js +3 -3
  82. package/dist/Poster/Poster.esm.d.ts +1 -1
  83. package/dist/Poster/Poster.esm.js +3 -3
  84. package/dist/ProgressBar/ProgressBar.cjs.js +4 -4
  85. package/dist/ProgressBar/ProgressBar.esm.js +4 -4
  86. package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +89 -0
  87. package/dist/ProgressStepper/ProgressStepper.cjs.js +152 -0
  88. package/dist/ProgressStepper/ProgressStepper.esm.d.ts +89 -0
  89. package/dist/ProgressStepper/ProgressStepper.esm.js +144 -0
  90. package/dist/ProgressStepper/package.json +7 -0
  91. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
  92. package/dist/RadioGroup/RadioGroup.cjs.js +5 -5
  93. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
  94. package/dist/RadioGroup/RadioGroup.esm.js +5 -5
  95. package/dist/Rule/Rule.cjs.js +1 -1
  96. package/dist/Rule/Rule.esm.js +1 -1
  97. package/dist/ScrollToTop/ScrollToTop.cjs.js +2 -2
  98. package/dist/ScrollToTop/ScrollToTop.esm.js +2 -2
  99. package/dist/Select/Select.cjs.d.ts +1 -1
  100. package/dist/Select/Select.cjs.js +20 -1418
  101. package/dist/Select/Select.esm.d.ts +1 -1
  102. package/dist/Select/Select.esm.js +10 -1389
  103. package/dist/SiteFooter/SiteFooter.cjs.d.ts +1 -1
  104. package/dist/SiteFooter/SiteFooter.cjs.js +3 -3
  105. package/dist/SiteFooter/SiteFooter.esm.d.ts +1 -1
  106. package/dist/SiteFooter/SiteFooter.esm.js +4 -4
  107. package/dist/SiteHeader/SiteHeader.cjs.d.ts +1 -1
  108. package/dist/SiteHeader/SiteHeader.cjs.js +6 -6
  109. package/dist/SiteHeader/SiteHeader.esm.d.ts +1 -1
  110. package/dist/SiteHeader/SiteHeader.esm.js +6 -6
  111. package/dist/Surface/Surface.cjs.d.ts +1 -1
  112. package/dist/Surface/Surface.cjs.js +1 -1
  113. package/dist/Surface/Surface.esm.d.ts +1 -1
  114. package/dist/Surface/Surface.esm.js +1 -1
  115. package/dist/Switch/Switch.cjs.d.ts +1 -1
  116. package/dist/Switch/Switch.cjs.js +8 -7
  117. package/dist/Switch/Switch.esm.d.ts +1 -1
  118. package/dist/Switch/Switch.esm.js +7 -6
  119. package/dist/Tag/Tag.cjs.js +2 -2
  120. package/dist/Tag/Tag.esm.js +2 -2
  121. package/dist/Text/Text.cjs.d.ts +1 -1
  122. package/dist/Text/Text.cjs.js +2 -2
  123. package/dist/Text/Text.esm.d.ts +1 -1
  124. package/dist/Text/Text.esm.js +2 -2
  125. package/dist/TextArea/TextArea.cjs.d.ts +1 -1
  126. package/dist/TextArea/TextArea.cjs.js +20 -20
  127. package/dist/TextArea/TextArea.esm.d.ts +1 -1
  128. package/dist/TextArea/TextArea.esm.js +20 -20
  129. package/dist/TextInput/TextInput.cjs.js +5 -5
  130. package/dist/TextInput/TextInput.esm.js +5 -5
  131. package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -1
  132. package/dist/UniversalHeader/UniversalHeader.cjs.js +2 -2
  133. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -1
  134. package/dist/UniversalHeader/UniversalHeader.esm.js +2 -2
  135. package/dist/_shared/cjs/Box-ebe2b7be.d.ts +39 -0
  136. package/dist/_shared/cjs/Box-ebe2b7be.js +30 -0
  137. package/dist/_shared/cjs/{BrandLogo-8008f0c4.js → BrandLogo-8107d59f.js} +1 -1
  138. package/dist/_shared/cjs/{Breadcrumbs-8b554370.js → Breadcrumbs-9f580f69.js} +1 -1
  139. package/dist/_shared/cjs/{Button-27512fee.js → Button-b4d6ccc8.js} +2 -2
  140. package/dist/_shared/cjs/{Card-804ab0e5.js → Card-f1108bfe.js} +4 -4
  141. package/dist/_shared/cjs/{Checkbox-21d3c4f6.js → Checkbox-c927b62f.js} +2 -2
  142. package/dist/_shared/cjs/{DisclosureMini-067e0319.js → DisclosureMini-2a10006e.js} +2 -2
  143. package/dist/_shared/cjs/{Filter-f7d2fbda.js → Filter-a7574fe7.js} +1 -1
  144. package/dist/_shared/cjs/{FormControl-9aaddd54.js → FormControl-78b007b7.js} +2 -2
  145. package/dist/_shared/cjs/{Group-d83f8c2e.js → Group-f85dd4c0.js} +1 -1
  146. package/dist/_shared/cjs/{Heading-d45f6a7f.js → Heading-ed1cb455.js} +1 -1
  147. package/dist/_shared/cjs/{Icon-9ae8dbe1.js → Icon-e1dd45eb.js} +1 -1
  148. package/dist/_shared/cjs/{Image-3bf4b4f3.js → Image-0e393cbf.js} +2 -0
  149. package/dist/_shared/cjs/{Poster-e05bbe13.d.ts → Poster-faea1ad3.d.ts} +1 -1
  150. package/dist/_shared/cjs/{Poster-e05bbe13.js → Poster-faea1ad3.js} +2 -2
  151. package/dist/_shared/{esm/RadioGroup-1fd0f389.d.ts → cjs/RadioGroup-8e17de70.d.ts} +1 -1
  152. package/dist/_shared/cjs/{RadioGroup-81805ef9.js → RadioGroup-8e17de70.js} +2 -2
  153. package/dist/_shared/cjs/{SiteFooter-c540b5f1.js → SiteFooter-9f7f9c2d.js} +2 -2
  154. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +3 -3
  155. package/dist/_shared/cjs/{SiteHeader.rehydrator-f7fa2efe.js → SiteHeader.rehydrator-ccbebde6.js} +4 -4
  156. package/dist/_shared/cjs/{Surface-6da0a78e.d.ts → Surface-b7c51b2b.d.ts} +3 -2
  157. package/dist/_shared/cjs/{Surface-6da0a78e.js → Surface-b7c51b2b.js} +1 -1
  158. package/dist/_shared/cjs/{Text-6f2827e6.js → Text-555a29a4.js} +1 -1
  159. package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +1 -1
  160. package/dist/_shared/{esm/TextInput-1631dbc4.d.ts → cjs/TextInput-b768e346.d.ts} +2 -2
  161. package/dist/_shared/cjs/{TextInput-33314fc4.js → TextInput-b768e346.js} +2 -2
  162. package/dist/_shared/cjs/{UniversalHeader-cc1d9e5a.js → UniversalHeader-da622e1a.js} +1 -1
  163. package/dist/_shared/cjs/index-31fbb076.js +1416 -0
  164. package/dist/_shared/cjs/index-699086a7.d.ts +1 -1
  165. package/dist/_shared/cjs/index-74488a9f.d.ts +1 -1
  166. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  167. package/dist/_shared/cjs/index-e340924e.d.ts +1 -1
  168. package/dist/_shared/cjs/index-e6d20018.d.ts +1 -1
  169. package/dist/_shared/cjs/index-eb06f640.d.ts +1 -1
  170. package/dist/_shared/cjs/index-f419cf04.d.ts +1 -1
  171. package/dist/_shared/cjs/index.module-5ea728f4.js +23 -0
  172. package/dist/_shared/cjs/{index.module-af7c85f2.js → index.module-9b87a34d.js} +84 -103
  173. package/dist/_shared/esm/Box-06d99d8a.d.ts +39 -0
  174. package/dist/_shared/esm/Box-06d99d8a.js +24 -0
  175. package/dist/_shared/esm/{BrandLogo-56699561.js → BrandLogo-9ec620e8.js} +1 -1
  176. package/dist/_shared/esm/{Breadcrumbs-04590057.js → Breadcrumbs-5dc0afa7.js} +1 -1
  177. package/dist/_shared/esm/{Button-d319fa11.js → Button-9c3b0b11.js} +2 -2
  178. package/dist/_shared/esm/{Card-e79eb6c8.js → Card-79b6eae0.js} +4 -4
  179. package/dist/_shared/esm/{Checkbox-94300d8c.js → Checkbox-2d144384.js} +2 -2
  180. package/dist/_shared/esm/{DisclosureMini-022beae3.js → DisclosureMini-78a8f392.js} +2 -2
  181. package/dist/_shared/esm/{Filter-41b391e3.js → Filter-a01aed11.js} +1 -1
  182. package/dist/_shared/esm/{FormControl-5e3fdca3.js → FormControl-2fa7aae5.js} +2 -2
  183. package/dist/_shared/esm/{Group-d62c3f56.js → Group-fb26fd32.js} +1 -1
  184. package/dist/_shared/esm/{Heading-b61432fb.js → Heading-ee6bec51.js} +1 -1
  185. package/dist/_shared/esm/{Icon-fd247973.js → Icon-c1af47bc.js} +1 -1
  186. package/dist/_shared/esm/{Image-3596ce55.js → Image-3ed3863c.js} +2 -1
  187. package/dist/_shared/esm/{Poster-107d6954.d.ts → Poster-a83ae770.d.ts} +1 -1
  188. package/dist/_shared/esm/{Poster-107d6954.js → Poster-a83ae770.js} +2 -2
  189. package/dist/_shared/{cjs/RadioGroup-81805ef9.d.ts → esm/RadioGroup-65b8c8bf.d.ts} +1 -1
  190. package/dist/_shared/esm/{RadioGroup-1fd0f389.js → RadioGroup-65b8c8bf.js} +2 -2
  191. package/dist/_shared/esm/{SiteFooter-8075a9bd.js → SiteFooter-51bdc7df.js} +2 -2
  192. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +3 -3
  193. package/dist/_shared/esm/{SiteHeader.rehydrator-4da8ac64.js → SiteHeader.rehydrator-382d1c03.js} +4 -4
  194. package/dist/_shared/esm/{Surface-bb100ef8.d.ts → Surface-dde51789.d.ts} +3 -2
  195. package/dist/_shared/esm/{Surface-bb100ef8.js → Surface-dde51789.js} +1 -1
  196. package/dist/_shared/esm/{Text-00e9743b.js → Text-14deb70e.js} +1 -1
  197. package/dist/_shared/esm/{TextInput-1631dbc4.js → TextInput-62bb7dee.js} +2 -2
  198. package/dist/_shared/esm/TextInput-7ed03a48.d.ts +1 -1
  199. package/dist/_shared/esm/{UniversalHeader-7926abde.js → UniversalHeader-1c5a886d.js} +1 -1
  200. package/dist/_shared/esm/index-4fa635bd.js +1386 -0
  201. package/dist/_shared/esm/index-699086a7.d.ts +1 -1
  202. package/dist/_shared/esm/index-74488a9f.d.ts +1 -1
  203. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  204. package/dist/_shared/esm/index-e340924e.d.ts +1 -1
  205. package/dist/_shared/esm/index-e6d20018.d.ts +1 -1
  206. package/dist/_shared/esm/index-eb06f640.d.ts +1 -1
  207. package/dist/_shared/esm/index-f419cf04.d.ts +1 -1
  208. package/dist/_shared/esm/{index.module-599b86dd.js → index.module-216016b5.js} +86 -104
  209. package/dist/_shared/esm/index.module-88179159.js +21 -0
  210. package/dist/index.es.js +1 -1
  211. package/dist/index.es.js.map +1 -1
  212. package/dist/index.js +1 -1
  213. package/dist/index.js.map +1 -1
  214. package/dist/styles.css +1 -1
  215. package/dist/types/components/Box/Box.d.ts +36 -0
  216. package/dist/types/components/Box/index.d.ts +1 -0
  217. package/dist/types/components/Image/index.d.ts +1 -1
  218. package/dist/types/components/MediaCard/MediaCard.d.ts +57 -0
  219. package/dist/types/components/MediaCard/index.d.ts +1 -0
  220. package/dist/types/components/Modal/Modal.stories-wip.d.ts +9 -0
  221. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +28 -0
  222. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +62 -0
  223. package/dist/types/components/ProgressStepper/index.d.ts +1 -0
  224. package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -0
  225. package/dist/types/components/Surface/Surface.d.ts +2 -1
  226. package/dist/types/components/Surface/index.d.ts +1 -1
  227. package/dist/types/styles.d.ts +5 -0
  228. package/package.json +4 -4
  229. /package/dist/_shared/cjs/{BrandLogo-8008f0c4.d.ts → BrandLogo-8107d59f.d.ts} +0 -0
  230. /package/dist/_shared/cjs/{Breadcrumbs-8b554370.d.ts → Breadcrumbs-9f580f69.d.ts} +0 -0
  231. /package/dist/_shared/cjs/{Button-27512fee.d.ts → Button-b4d6ccc8.d.ts} +0 -0
  232. /package/dist/_shared/cjs/{Card-804ab0e5.d.ts → Card-f1108bfe.d.ts} +0 -0
  233. /package/dist/_shared/cjs/{Checkbox-21d3c4f6.d.ts → Checkbox-c927b62f.d.ts} +0 -0
  234. /package/dist/_shared/cjs/{DisclosureMini-067e0319.d.ts → DisclosureMini-2a10006e.d.ts} +0 -0
  235. /package/dist/_shared/cjs/{Filter-f7d2fbda.d.ts → Filter-a7574fe7.d.ts} +0 -0
  236. /package/dist/_shared/cjs/{FormControl-9aaddd54.d.ts → FormControl-78b007b7.d.ts} +0 -0
  237. /package/dist/_shared/cjs/{Group-d83f8c2e.d.ts → Group-f85dd4c0.d.ts} +0 -0
  238. /package/dist/_shared/cjs/{Heading-d45f6a7f.d.ts → Heading-ed1cb455.d.ts} +0 -0
  239. /package/dist/_shared/cjs/{Icon-9ae8dbe1.d.ts → Icon-e1dd45eb.d.ts} +0 -0
  240. /package/dist/_shared/cjs/{Image-3bf4b4f3.d.ts → Image-0e393cbf.d.ts} +0 -0
  241. /package/dist/_shared/cjs/{SiteFooter-c540b5f1.d.ts → SiteFooter-9f7f9c2d.d.ts} +0 -0
  242. /package/dist/_shared/cjs/{SiteHeader.rehydrator-f7fa2efe.d.ts → SiteHeader.rehydrator-ccbebde6.d.ts} +0 -0
  243. /package/dist/_shared/cjs/{Text-6f2827e6.d.ts → Text-555a29a4.d.ts} +0 -0
  244. /package/dist/_shared/cjs/{UniversalHeader-cc1d9e5a.d.ts → UniversalHeader-da622e1a.d.ts} +0 -0
  245. /package/dist/_shared/esm/{BrandLogo-56699561.d.ts → BrandLogo-9ec620e8.d.ts} +0 -0
  246. /package/dist/_shared/esm/{Breadcrumbs-04590057.d.ts → Breadcrumbs-5dc0afa7.d.ts} +0 -0
  247. /package/dist/_shared/esm/{Button-d319fa11.d.ts → Button-9c3b0b11.d.ts} +0 -0
  248. /package/dist/_shared/esm/{Card-e79eb6c8.d.ts → Card-79b6eae0.d.ts} +0 -0
  249. /package/dist/_shared/esm/{Checkbox-94300d8c.d.ts → Checkbox-2d144384.d.ts} +0 -0
  250. /package/dist/_shared/esm/{DisclosureMini-022beae3.d.ts → DisclosureMini-78a8f392.d.ts} +0 -0
  251. /package/dist/_shared/esm/{Filter-41b391e3.d.ts → Filter-a01aed11.d.ts} +0 -0
  252. /package/dist/_shared/esm/{FormControl-5e3fdca3.d.ts → FormControl-2fa7aae5.d.ts} +0 -0
  253. /package/dist/_shared/esm/{Group-d62c3f56.d.ts → Group-fb26fd32.d.ts} +0 -0
  254. /package/dist/_shared/esm/{Heading-b61432fb.d.ts → Heading-ee6bec51.d.ts} +0 -0
  255. /package/dist/_shared/esm/{Icon-fd247973.d.ts → Icon-c1af47bc.d.ts} +0 -0
  256. /package/dist/_shared/esm/{Image-3596ce55.d.ts → Image-3ed3863c.d.ts} +0 -0
  257. /package/dist/_shared/esm/{SiteFooter-8075a9bd.d.ts → SiteFooter-51bdc7df.d.ts} +0 -0
  258. /package/dist/_shared/esm/{SiteHeader.rehydrator-4da8ac64.d.ts → SiteHeader.rehydrator-382d1c03.d.ts} +0 -0
  259. /package/dist/_shared/esm/{Text-00e9743b.d.ts → Text-14deb70e.d.ts} +0 -0
  260. /package/dist/_shared/{cjs/TextInput-33314fc4.d.ts → esm/TextInput-62bb7dee.d.ts} +0 -0
  261. /package/dist/_shared/esm/{UniversalHeader-7926abde.d.ts → UniversalHeader-1c5a886d.d.ts} +0 -0
@@ -2,45 +2,27 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('../_shared/cjs/index-45bfb67b.js');
5
+ var index$1 = require('../_shared/cjs/index-45bfb67b.js');
6
6
  var React$1 = require('react');
7
- var index_module = require('../_shared/cjs/index.module-af7c85f2.js');
7
+ var index_module = require('../_shared/cjs/index.module-9b87a34d.js');
8
8
  var $7SXl2$reactdom = require('react-dom');
9
+ var index = require('../_shared/cjs/index-31fbb076.js');
10
+ var index_module$1 = require('../_shared/cjs/index.module-5ea728f4.js');
9
11
  var BtIconChevronDown2Px = require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
10
12
  var BtIconTickAlt2Px = require('../_shared/cjs/BtIconTickAlt2Px-bdf06f8c.js');
11
- var Icon = require('../_shared/cjs/Icon-9ae8dbe1.js');
12
- var FormControl = require('../_shared/cjs/FormControl-9aaddd54.js');
13
- var Surface = require('../_shared/cjs/Surface-6da0a78e.js');
13
+ var Icon = require('../_shared/cjs/Icon-e1dd45eb.js');
14
+ var FormControl = require('../_shared/cjs/FormControl-78b007b7.js');
15
+ var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
14
16
  var Base = require('../_shared/cjs/Base-569e4334.js');
15
17
  require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
16
18
  require('../_shared/cjs/suffix-modifier-1ee2da04.js');
17
19
  require('../_shared/cjs/BtIconAlert-637db790.js');
18
- require('../_shared/cjs/DisclosureMini-067e0319.js');
19
- require('../_shared/cjs/Text-6f2827e6.js');
20
+ require('../_shared/cjs/DisclosureMini-2a10006e.js');
21
+ require('../_shared/cjs/Text-555a29a4.js');
20
22
 
21
23
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
24
 
23
- function _interopNamespace(e) {
24
- if (e && e.__esModule) return e;
25
- var n = Object.create(null);
26
- if (e) {
27
- Object.keys(e).forEach(function (k) {
28
- if (k !== 'default') {
29
- var d = Object.getOwnPropertyDescriptor(e, k);
30
- Object.defineProperty(n, k, d.get ? d : {
31
- enumerable: true,
32
- get: function () { return e[k]; }
33
- });
34
- }
35
- });
36
- }
37
- n["default"] = e;
38
- return Object.freeze(n);
39
- }
40
-
41
25
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
42
- var React__namespace = /*#__PURE__*/_interopNamespace(React$1);
43
- var $7SXl2$reactdom__default = /*#__PURE__*/_interopDefaultLegacy($7SXl2$reactdom);
44
26
 
45
27
  function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) {
46
28
  return Math.min(max, Math.max(min, value));
@@ -139,543 +121,6 @@ const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ React$1.createConte
139
121
  return localDir || globalDir || 'ltr';
140
122
  }
141
123
 
142
- /**
143
- * Listens for when the escape key is down
144
- */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
145
- const onEscapeKeyDown = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
146
- React$1.useEffect(()=>{
147
- const handleKeyDown = (event)=>{
148
- if (event.key === 'Escape') onEscapeKeyDown(event);
149
- };
150
- ownerDocument.addEventListener('keydown', handleKeyDown);
151
- return ()=>ownerDocument.removeEventListener('keydown', handleKeyDown)
152
- ;
153
- }, [
154
- onEscapeKeyDown,
155
- ownerDocument
156
- ]);
157
- }
158
-
159
- const $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';
160
- const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';
161
- const $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';
162
- let $5cb92bef7577960e$var$originalBodyPointerEvents;
163
- const $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ React$1.createContext({
164
- layers: new Set(),
165
- layersWithOutsidePointerEventsDisabled: new Set(),
166
- branches: new Set()
167
- });
168
- const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ React$1.forwardRef((props, forwardedRef)=>{
169
- var _node$ownerDocument;
170
- const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;
171
- const context = React$1.useContext($5cb92bef7577960e$var$DismissableLayerContext);
172
- const [node1, setNode] = React$1.useState(null);
173
- const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
174
- const [, force] = React$1.useState({});
175
- const composedRefs = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setNode(node)
176
- );
177
- const layers = Array.from(context.layers);
178
- const [highestLayerWithOutsidePointerEventsDisabled] = [
179
- ...context.layersWithOutsidePointerEventsDisabled
180
- ].slice(-1); // prettier-ignore
181
- const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled); // prettier-ignore
182
- const index = node1 ? layers.indexOf(node1) : -1;
183
- const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
184
- const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
185
- const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{
186
- const target = event.target;
187
- const isPointerDownOnBranch = [
188
- ...context.branches
189
- ].some((branch)=>branch.contains(target)
190
- );
191
- if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
192
- onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
193
- onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
194
- if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
195
- }, ownerDocument);
196
- const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{
197
- const target = event.target;
198
- const isFocusInBranch = [
199
- ...context.branches
200
- ].some((branch)=>branch.contains(target)
201
- );
202
- if (isFocusInBranch) return;
203
- onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
204
- onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
205
- if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
206
- }, ownerDocument);
207
- $addc16e1bbe58fd0$export$3a72a57244d6e765((event)=>{
208
- const isHighestLayer = index === context.layers.size - 1;
209
- if (!isHighestLayer) return;
210
- onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
211
- if (!event.defaultPrevented && onDismiss) {
212
- event.preventDefault();
213
- onDismiss();
214
- }
215
- }, ownerDocument);
216
- React$1.useEffect(()=>{
217
- if (!node1) return;
218
- if (disableOutsidePointerEvents) {
219
- if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
220
- $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
221
- ownerDocument.body.style.pointerEvents = 'none';
222
- }
223
- context.layersWithOutsidePointerEventsDisabled.add(node1);
224
- }
225
- context.layers.add(node1);
226
- $5cb92bef7577960e$var$dispatchUpdate();
227
- return ()=>{
228
- if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
229
- };
230
- }, [
231
- node1,
232
- ownerDocument,
233
- disableOutsidePointerEvents,
234
- context
235
- ]);
236
- /**
237
- * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect
238
- * because a change to `disableOutsidePointerEvents` would remove this layer from the stack
239
- * and add it to the end again so the layering order wouldn't be _creation order_.
240
- * We only want them to be removed from context stacks when unmounted.
241
- */ React$1.useEffect(()=>{
242
- return ()=>{
243
- if (!node1) return;
244
- context.layers.delete(node1);
245
- context.layersWithOutsidePointerEventsDisabled.delete(node1);
246
- $5cb92bef7577960e$var$dispatchUpdate();
247
- };
248
- }, [
249
- node1,
250
- context
251
- ]);
252
- React$1.useEffect(()=>{
253
- const handleUpdate = ()=>force({})
254
- ;
255
- document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
256
- return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
257
- ;
258
- }, []);
259
- return /*#__PURE__*/ React$1.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.div, index_module._extends({}, layerProps, {
260
- ref: composedRefs,
261
- style: {
262
- pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
263
- ...props.style
264
- },
265
- onFocusCapture: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusCapture, focusOutside.onFocusCapture),
266
- onBlurCapture: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onBlurCapture, focusOutside.onBlurCapture),
267
- onPointerDownCapture: index_module.$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
268
- }));
269
- });
270
- /* -----------------------------------------------------------------------------------------------*/ /**
271
- * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`
272
- * to mimic layer dismissing behaviour present in OS.
273
- * Returns props to pass to the node we want to check for outside events.
274
- */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
275
- const handlePointerDownOutside = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
276
- const isPointerInsideReactTreeRef = React$1.useRef(false);
277
- const handleClickRef = React$1.useRef(()=>{});
278
- React$1.useEffect(()=>{
279
- const handlePointerDown = (event)=>{
280
- if (event.target && !isPointerInsideReactTreeRef.current) {
281
- const eventDetail = {
282
- originalEvent: event
283
- };
284
- function handleAndDispatchPointerDownOutsideEvent() {
285
- $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {
286
- discrete: true
287
- });
288
- }
289
- /**
290
- * On touch devices, we need to wait for a click event because browsers implement
291
- * a ~350ms delay between the time the user stops touching the display and when the
292
- * browser executres events. We need to ensure we don't reactivate pointer-events within
293
- * this timeframe otherwise the browser may execute events that should have been prevented.
294
- *
295
- * Additionally, this also lets us deal automatically with cancellations when a click event
296
- * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.
297
- *
298
- * This is why we also continuously remove the previous listener, because we cannot be
299
- * certain that it was raised, and therefore cleaned-up.
300
- */ if (event.pointerType === 'touch') {
301
- ownerDocument.removeEventListener('click', handleClickRef.current);
302
- handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;
303
- ownerDocument.addEventListener('click', handleClickRef.current, {
304
- once: true
305
- });
306
- } else handleAndDispatchPointerDownOutsideEvent();
307
- }
308
- isPointerInsideReactTreeRef.current = false;
309
- };
310
- /**
311
- * if this hook executes in a component that mounts via a `pointerdown` event, the event
312
- * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid
313
- * this by delaying the event listener registration on the document.
314
- * This is not React specific, but rather how the DOM works, ie:
315
- * ```
316
- * button.addEventListener('pointerdown', () => {
317
- * console.log('I will log');
318
- * document.addEventListener('pointerdown', () => {
319
- * console.log('I will also log');
320
- * })
321
- * });
322
- */ const timerId = window.setTimeout(()=>{
323
- ownerDocument.addEventListener('pointerdown', handlePointerDown);
324
- }, 0);
325
- return ()=>{
326
- window.clearTimeout(timerId);
327
- ownerDocument.removeEventListener('pointerdown', handlePointerDown);
328
- ownerDocument.removeEventListener('click', handleClickRef.current);
329
- };
330
- }, [
331
- ownerDocument,
332
- handlePointerDownOutside
333
- ]);
334
- return {
335
- // ensures we check React component tree (not just DOM tree)
336
- onPointerDownCapture: ()=>isPointerInsideReactTreeRef.current = true
337
- };
338
- }
339
- /**
340
- * Listens for when focus happens outside a react subtree.
341
- * Returns props to pass to the root (node) of the subtree we want to check.
342
- */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
343
- const handleFocusOutside = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
344
- const isFocusInsideReactTreeRef = React$1.useRef(false);
345
- React$1.useEffect(()=>{
346
- const handleFocus = (event)=>{
347
- if (event.target && !isFocusInsideReactTreeRef.current) {
348
- const eventDetail = {
349
- originalEvent: event
350
- };
351
- $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
352
- discrete: false
353
- });
354
- }
355
- };
356
- ownerDocument.addEventListener('focusin', handleFocus);
357
- return ()=>ownerDocument.removeEventListener('focusin', handleFocus)
358
- ;
359
- }, [
360
- ownerDocument,
361
- handleFocusOutside
362
- ]);
363
- return {
364
- onFocusCapture: ()=>isFocusInsideReactTreeRef.current = true
365
- ,
366
- onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false
367
- };
368
- }
369
- function $5cb92bef7577960e$var$dispatchUpdate() {
370
- const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
371
- document.dispatchEvent(event);
372
- }
373
- function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {
374
- const target = detail.originalEvent.target;
375
- const event = new CustomEvent(name, {
376
- bubbles: false,
377
- cancelable: true,
378
- detail: detail
379
- });
380
- if (handler) target.addEventListener(name, handler, {
381
- once: true
382
- });
383
- if (discrete) index_module.$8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
384
- else target.dispatchEvent(event);
385
- }
386
-
387
- /** Number of components which have requested interest to have focus guards */ let $3db38b7d1fb3fe6a$var$count = 0;
388
- /**
389
- * Injects a pair of focus guards at the edges of the whole DOM tree
390
- * to ensure `focusin` & `focusout` events can be caught consistently.
391
- */ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
392
- React$1.useEffect(()=>{
393
- var _edgeGuards$, _edgeGuards$2;
394
- const edgeGuards = document.querySelectorAll('[data-radix-focus-guard]');
395
- document.body.insertAdjacentElement('afterbegin', (_edgeGuards$ = edgeGuards[0]) !== null && _edgeGuards$ !== void 0 ? _edgeGuards$ : $3db38b7d1fb3fe6a$var$createFocusGuard());
396
- document.body.insertAdjacentElement('beforeend', (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());
397
- $3db38b7d1fb3fe6a$var$count++;
398
- return ()=>{
399
- if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll('[data-radix-focus-guard]').forEach((node)=>node.remove()
400
- );
401
- $3db38b7d1fb3fe6a$var$count--;
402
- };
403
- }, []);
404
- }
405
- function $3db38b7d1fb3fe6a$var$createFocusGuard() {
406
- const element = document.createElement('span');
407
- element.setAttribute('data-radix-focus-guard', '');
408
- element.tabIndex = 0;
409
- element.style.cssText = 'outline: none; opacity: 0; position: fixed; pointer-events: none';
410
- return element;
411
- }
412
-
413
- const $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';
414
- const $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';
415
- const $d3863c46a17e8a28$var$EVENT_OPTIONS = {
416
- bubbles: false,
417
- cancelable: true
418
- };
419
- const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ React$1.forwardRef((props, forwardedRef)=>{
420
- const { loop: loop = false , trapped: trapped = false , onMountAutoFocus: onMountAutoFocusProp , onUnmountAutoFocus: onUnmountAutoFocusProp , ...scopeProps } = props;
421
- const [container1, setContainer] = React$1.useState(null);
422
- const onMountAutoFocus = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onMountAutoFocusProp);
423
- const onUnmountAutoFocus = index_module.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onUnmountAutoFocusProp);
424
- const lastFocusedElementRef = React$1.useRef(null);
425
- const composedRefs = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContainer(node)
426
- );
427
- const focusScope = React$1.useRef({
428
- paused: false,
429
- pause () {
430
- this.paused = true;
431
- },
432
- resume () {
433
- this.paused = false;
434
- }
435
- }).current; // Takes care of trapping focus if focus is moved outside programmatically for example
436
- React$1.useEffect(()=>{
437
- if (trapped) {
438
- function handleFocusIn(event) {
439
- if (focusScope.paused || !container1) return;
440
- const target = event.target;
441
- if (container1.contains(target)) lastFocusedElementRef.current = target;
442
- else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
443
- select: true
444
- });
445
- }
446
- function handleFocusOut(event) {
447
- if (focusScope.paused || !container1) return;
448
- if (!container1.contains(event.relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
449
- select: true
450
- });
451
- }
452
- document.addEventListener('focusin', handleFocusIn);
453
- document.addEventListener('focusout', handleFocusOut);
454
- return ()=>{
455
- document.removeEventListener('focusin', handleFocusIn);
456
- document.removeEventListener('focusout', handleFocusOut);
457
- };
458
- }
459
- }, [
460
- trapped,
461
- container1,
462
- focusScope.paused
463
- ]);
464
- React$1.useEffect(()=>{
465
- if (container1) {
466
- $d3863c46a17e8a28$var$focusScopesStack.add(focusScope);
467
- const previouslyFocusedElement = document.activeElement;
468
- const hasFocusedCandidate = container1.contains(previouslyFocusedElement);
469
- if (!hasFocusedCandidate) {
470
- const mountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);
471
- container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
472
- container1.dispatchEvent(mountEvent);
473
- if (!mountEvent.defaultPrevented) {
474
- $d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {
475
- select: true
476
- });
477
- if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);
478
- }
479
- }
480
- return ()=>{
481
- container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus); // We hit a react bug (fixed in v17) with focusing in unmount.
482
- // We need to delay the focus a little to get around it for now.
483
- // See: https://github.com/facebook/react/issues/17894
484
- setTimeout(()=>{
485
- const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);
486
- container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
487
- container1.dispatchEvent(unmountEvent);
488
- if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {
489
- select: true
490
- });
491
- // we need to remove the listener after we `dispatchEvent`
492
- container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
493
- $d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);
494
- }, 0);
495
- };
496
- }
497
- }, [
498
- container1,
499
- onMountAutoFocus,
500
- onUnmountAutoFocus,
501
- focusScope
502
- ]); // Takes care of looping focus (when tabbing whilst at the edges)
503
- const handleKeyDown = React$1.useCallback((event)=>{
504
- if (!loop && !trapped) return;
505
- if (focusScope.paused) return;
506
- const isTabKey = event.key === 'Tab' && !event.altKey && !event.ctrlKey && !event.metaKey;
507
- const focusedElement = document.activeElement;
508
- if (isTabKey && focusedElement) {
509
- const container = event.currentTarget;
510
- const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);
511
- const hasTabbableElementsInside = first && last; // we can only wrap focus if we have tabbable edges
512
- if (!hasTabbableElementsInside) {
513
- if (focusedElement === container) event.preventDefault();
514
- } else {
515
- if (!event.shiftKey && focusedElement === last) {
516
- event.preventDefault();
517
- if (loop) $d3863c46a17e8a28$var$focus(first, {
518
- select: true
519
- });
520
- } else if (event.shiftKey && focusedElement === first) {
521
- event.preventDefault();
522
- if (loop) $d3863c46a17e8a28$var$focus(last, {
523
- select: true
524
- });
525
- }
526
- }
527
- }
528
- }, [
529
- loop,
530
- trapped,
531
- focusScope.paused
532
- ]);
533
- return /*#__PURE__*/ React$1.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.div, index_module._extends({
534
- tabIndex: -1
535
- }, scopeProps, {
536
- ref: composedRefs,
537
- onKeyDown: handleKeyDown
538
- }));
539
- });
540
- /* -------------------------------------------------------------------------------------------------
541
- * Utils
542
- * -----------------------------------------------------------------------------------------------*/ /**
543
- * Attempts focusing the first element in a list of candidates.
544
- * Stops when focus has actually moved.
545
- */ function $d3863c46a17e8a28$var$focusFirst(candidates, { select: select = false } = {}) {
546
- const previouslyFocusedElement = document.activeElement;
547
- for (const candidate of candidates){
548
- $d3863c46a17e8a28$var$focus(candidate, {
549
- select: select
550
- });
551
- if (document.activeElement !== previouslyFocusedElement) return;
552
- }
553
- }
554
- /**
555
- * Returns the first and last tabbable elements inside a container.
556
- */ function $d3863c46a17e8a28$var$getTabbableEdges(container) {
557
- const candidates = $d3863c46a17e8a28$var$getTabbableCandidates(container);
558
- const first = $d3863c46a17e8a28$var$findVisible(candidates, container);
559
- const last = $d3863c46a17e8a28$var$findVisible(candidates.reverse(), container);
560
- return [
561
- first,
562
- last
563
- ];
564
- }
565
- /**
566
- * Returns a list of potential tabbable candidates.
567
- *
568
- * NOTE: This is only a close approximation. For example it doesn't take into account cases like when
569
- * elements are not visible. This cannot be worked out easily by just reading a property, but rather
570
- * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.
571
- *
572
- * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker
573
- * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1
574
- */ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {
575
- const nodes = [];
576
- const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
577
- acceptNode: (node)=>{
578
- const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';
579
- if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the
580
- // runtime's understanding of tabbability, so this automatically accounts
581
- // for any kind of element that could be tabbed to.
582
- return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
583
- }
584
- });
585
- while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it
586
- // hinders accessibility to have tab order different from visual order.
587
- return nodes;
588
- }
589
- /**
590
- * Returns the first visible element in a list.
591
- * NOTE: Only checks visibility up to the `container`.
592
- */ function $d3863c46a17e8a28$var$findVisible(elements, container) {
593
- for (const element of elements){
594
- // we stop checking if it's hidden at the `container` level (excluding)
595
- if (!$d3863c46a17e8a28$var$isHidden(element, {
596
- upTo: container
597
- })) return element;
598
- }
599
- }
600
- function $d3863c46a17e8a28$var$isHidden(node, { upTo: upTo }) {
601
- if (getComputedStyle(node).visibility === 'hidden') return true;
602
- while(node){
603
- // we stop at `upTo` (excluding it)
604
- if (upTo !== undefined && node === upTo) return false;
605
- if (getComputedStyle(node).display === 'none') return true;
606
- node = node.parentElement;
607
- }
608
- return false;
609
- }
610
- function $d3863c46a17e8a28$var$isSelectableInput(element) {
611
- return element instanceof HTMLInputElement && 'select' in element;
612
- }
613
- function $d3863c46a17e8a28$var$focus(element, { select: select = false } = {}) {
614
- // only focus if that element is focusable
615
- if (element && element.focus) {
616
- const previouslyFocusedElement = document.activeElement; // NOTE: we prevent scrolling on focus, to minimize jarring transitions for users
617
- element.focus({
618
- preventScroll: true
619
- }); // only select if its not the same element, it supports selection and we need to select
620
- if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();
621
- }
622
- }
623
- /* -------------------------------------------------------------------------------------------------
624
- * FocusScope stack
625
- * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();
626
- function $d3863c46a17e8a28$var$createFocusScopesStack() {
627
- /** A stack of focus scopes, with the active one at the top */ let stack = [];
628
- return {
629
- add (focusScope) {
630
- // pause the currently active focus scope (at the top of the stack)
631
- const activeFocusScope = stack[0];
632
- if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
633
- // remove in case it already exists (because we'll re-add it at the top of the stack)
634
- stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);
635
- stack.unshift(focusScope);
636
- },
637
- remove (focusScope) {
638
- var _stack$;
639
- stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);
640
- (_stack$ = stack[0]) === null || _stack$ === void 0 || _stack$.resume();
641
- }
642
- };
643
- }
644
- function $d3863c46a17e8a28$var$arrayRemove(array, item) {
645
- const updatedArray = [
646
- ...array
647
- ];
648
- const index = updatedArray.indexOf(item);
649
- if (index !== -1) updatedArray.splice(index, 1);
650
- return updatedArray;
651
- }
652
- function $d3863c46a17e8a28$var$removeLinks(items) {
653
- return items.filter((item)=>item.tagName !== 'A'
654
- );
655
- }
656
-
657
- const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
658
- );
659
- let $1746a345f3d73bb7$var$count = 0;
660
- function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
661
- const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
662
- index_module.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
663
- if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
664
- );
665
- }, [
666
- deterministicId
667
- ]);
668
- return deterministicId || (id ? `radix-${id}` : '');
669
- }
670
-
671
- const $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ React$1.forwardRef((props, forwardedRef)=>{
672
- var _globalThis$document;
673
- const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;
674
- return container ? /*#__PURE__*/ $7SXl2$reactdom__default["default"].createPortal(/*#__PURE__*/ React$1.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.div, index_module._extends({}, portalProps, {
675
- ref: forwardedRef
676
- })), container) : null;
677
- });
678
-
679
124
  const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ React$1.forwardRef((props, forwardedRef)=>{
680
125
  return /*#__PURE__*/ React$1.createElement(index_module.$8927f6f2acc4f386$export$250ffa63cdc0d034.span, index_module._extends({}, props, {
681
126
  ref: forwardedRef,
@@ -696,849 +141,6 @@ const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ React$1.forwardR
696
141
  }));
697
142
  });
698
143
 
699
- var getDefaultParent = function (originalTarget) {
700
- if (typeof document === 'undefined') {
701
- return null;
702
- }
703
- var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
704
- return sampleTarget.ownerDocument.body;
705
- };
706
- var counterMap = new WeakMap();
707
- var uncontrolledNodes = new WeakMap();
708
- var markerMap = {};
709
- var lockCount = 0;
710
- var unwrapHost = function (node) {
711
- return node && (node.host || unwrapHost(node.parentNode));
712
- };
713
- var correctTargets = function (parent, targets) {
714
- return targets.map(function (target) {
715
- if (parent.contains(target)) {
716
- return target;
717
- }
718
- var correctedTarget = unwrapHost(target);
719
- if (correctedTarget && parent.contains(correctedTarget)) {
720
- return correctedTarget;
721
- }
722
- console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');
723
- return null;
724
- }).filter(function (x) { return Boolean(x); });
725
- };
726
- /**
727
- * Marks everything except given node(or nodes) as aria-hidden
728
- * @param {Element | Element[]} originalTarget - elements to keep on the page
729
- * @param [parentNode] - top element, defaults to document.body
730
- * @param {String} [markerName] - a special attribute to mark every node
731
- * @param {String} [controlAttribute] - html Attribute to control
732
- * @return {Undo} undo command
733
- */
734
- var applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {
735
- var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
736
- if (!markerMap[markerName]) {
737
- markerMap[markerName] = new WeakMap();
738
- }
739
- var markerCounter = markerMap[markerName];
740
- var hiddenNodes = [];
741
- var elementsToKeep = new Set();
742
- var elementsToStop = new Set(targets);
743
- var keep = function (el) {
744
- if (!el || elementsToKeep.has(el)) {
745
- return;
746
- }
747
- elementsToKeep.add(el);
748
- keep(el.parentNode);
749
- };
750
- targets.forEach(keep);
751
- var deep = function (parent) {
752
- if (!parent || elementsToStop.has(parent)) {
753
- return;
754
- }
755
- Array.prototype.forEach.call(parent.children, function (node) {
756
- if (elementsToKeep.has(node)) {
757
- deep(node);
758
- }
759
- else {
760
- var attr = node.getAttribute(controlAttribute);
761
- var alreadyHidden = attr !== null && attr !== 'false';
762
- var counterValue = (counterMap.get(node) || 0) + 1;
763
- var markerValue = (markerCounter.get(node) || 0) + 1;
764
- counterMap.set(node, counterValue);
765
- markerCounter.set(node, markerValue);
766
- hiddenNodes.push(node);
767
- if (counterValue === 1 && alreadyHidden) {
768
- uncontrolledNodes.set(node, true);
769
- }
770
- if (markerValue === 1) {
771
- node.setAttribute(markerName, 'true');
772
- }
773
- if (!alreadyHidden) {
774
- node.setAttribute(controlAttribute, 'true');
775
- }
776
- }
777
- });
778
- };
779
- deep(parentNode);
780
- elementsToKeep.clear();
781
- lockCount++;
782
- return function () {
783
- hiddenNodes.forEach(function (node) {
784
- var counterValue = counterMap.get(node) - 1;
785
- var markerValue = markerCounter.get(node) - 1;
786
- counterMap.set(node, counterValue);
787
- markerCounter.set(node, markerValue);
788
- if (!counterValue) {
789
- if (!uncontrolledNodes.has(node)) {
790
- node.removeAttribute(controlAttribute);
791
- }
792
- uncontrolledNodes.delete(node);
793
- }
794
- if (!markerValue) {
795
- node.removeAttribute(markerName);
796
- }
797
- });
798
- lockCount--;
799
- if (!lockCount) {
800
- // clear
801
- counterMap = new WeakMap();
802
- counterMap = new WeakMap();
803
- uncontrolledNodes = new WeakMap();
804
- markerMap = {};
805
- }
806
- };
807
- };
808
- /**
809
- * Marks everything except given node(or nodes) as aria-hidden
810
- * @param {Element | Element[]} originalTarget - elements to keep on the page
811
- * @param [parentNode] - top element, defaults to document.body
812
- * @param {String} [markerName] - a special attribute to mark every node
813
- * @return {Undo} undo command
814
- */
815
- var hideOthers = function (originalTarget, parentNode, markerName) {
816
- if (markerName === void 0) { markerName = 'data-aria-hidden'; }
817
- var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
818
- var activeParentNode = parentNode || getDefaultParent(originalTarget);
819
- if (!activeParentNode) {
820
- return function () { return null; };
821
- }
822
- // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10
823
- targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));
824
- return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');
825
- };
826
-
827
- /******************************************************************************
828
- Copyright (c) Microsoft Corporation.
829
-
830
- Permission to use, copy, modify, and/or distribute this software for any
831
- purpose with or without fee is hereby granted.
832
-
833
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
834
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
835
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
836
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
837
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
838
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
839
- PERFORMANCE OF THIS SOFTWARE.
840
- ***************************************************************************** */
841
-
842
- var __assign$1 = function() {
843
- __assign$1 = Object.assign || function __assign(t) {
844
- for (var s, i = 1, n = arguments.length; i < n; i++) {
845
- s = arguments[i];
846
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
847
- }
848
- return t;
849
- };
850
- return __assign$1.apply(this, arguments);
851
- };
852
-
853
- function __rest$1(s, e) {
854
- var t = {};
855
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
856
- t[p] = s[p];
857
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
858
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
859
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
860
- t[p[i]] = s[p[i]];
861
- }
862
- return t;
863
- }
864
-
865
- function __spreadArray(to, from, pack) {
866
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
867
- if (ar || !(i in from)) {
868
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
869
- ar[i] = from[i];
870
- }
871
- }
872
- return to.concat(ar || Array.prototype.slice.call(from));
873
- }
874
-
875
- var zeroRightClassName = 'right-scroll-bar-position';
876
- var fullWidthClassName = 'width-before-scroll-bar';
877
- var noScrollbarsClassName = 'with-scroll-bars-hidden';
878
- /**
879
- * Name of a CSS variable containing the amount of "hidden" scrollbar
880
- * ! might be undefined ! use will fallback!
881
- */
882
- var removedBarSizeVariable = '--removed-body-scroll-bar-size';
883
-
884
- /**
885
- * Assigns a value for a given ref, no matter of the ref format
886
- * @param {RefObject} ref - a callback function or ref object
887
- * @param value - a new value
888
- *
889
- * @see https://github.com/theKashey/use-callback-ref#assignref
890
- * @example
891
- * const refObject = useRef();
892
- * const refFn = (ref) => {....}
893
- *
894
- * assignRef(refObject, "refValue");
895
- * assignRef(refFn, "refValue");
896
- */
897
- function assignRef(ref, value) {
898
- if (typeof ref === 'function') {
899
- ref(value);
900
- }
901
- else if (ref) {
902
- ref.current = value;
903
- }
904
- return ref;
905
- }
906
-
907
- /**
908
- * creates a MutableRef with ref change callback
909
- * @param initialValue - initial ref value
910
- * @param {Function} callback - a callback to run when value changes
911
- *
912
- * @example
913
- * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
914
- * ref.current = 1;
915
- * // prints 0 -> 1
916
- *
917
- * @see https://reactjs.org/docs/hooks-reference.html#useref
918
- * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
919
- * @returns {MutableRefObject}
920
- */
921
- function useCallbackRef(initialValue, callback) {
922
- var ref = React$1.useState(function () { return ({
923
- // value
924
- value: initialValue,
925
- // last callback
926
- callback: callback,
927
- // "memoized" public interface
928
- facade: {
929
- get current() {
930
- return ref.value;
931
- },
932
- set current(value) {
933
- var last = ref.value;
934
- if (last !== value) {
935
- ref.value = value;
936
- ref.callback(value, last);
937
- }
938
- },
939
- },
940
- }); })[0];
941
- // update callback
942
- ref.callback = callback;
943
- return ref.facade;
944
- }
945
-
946
- /**
947
- * Merges two or more refs together providing a single interface to set their value
948
- * @param {RefObject|Ref} refs
949
- * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
950
- *
951
- * @see {@link mergeRefs} a version without buit-in memoization
952
- * @see https://github.com/theKashey/use-callback-ref#usemergerefs
953
- * @example
954
- * const Component = React.forwardRef((props, ref) => {
955
- * const ownRef = useRef();
956
- * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
957
- * return <div ref={domRef}>...</div>
958
- * }
959
- */
960
- function useMergeRefs(refs, defaultValue) {
961
- return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });
962
- }
963
-
964
- /*! *****************************************************************************
965
- Copyright (c) Microsoft Corporation.
966
-
967
- Permission to use, copy, modify, and/or distribute this software for any
968
- purpose with or without fee is hereby granted.
969
-
970
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
971
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
972
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
973
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
974
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
975
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
976
- PERFORMANCE OF THIS SOFTWARE.
977
- ***************************************************************************** */
978
-
979
- var __assign = function() {
980
- __assign = Object.assign || function __assign(t) {
981
- for (var s, i = 1, n = arguments.length; i < n; i++) {
982
- s = arguments[i];
983
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
984
- }
985
- return t;
986
- };
987
- return __assign.apply(this, arguments);
988
- };
989
-
990
- function __rest(s, e) {
991
- var t = {};
992
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
993
- t[p] = s[p];
994
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
995
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
996
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
997
- t[p[i]] = s[p[i]];
998
- }
999
- return t;
1000
- }
1001
-
1002
- function ItoI(a) {
1003
- return a;
1004
- }
1005
- function innerCreateMedium(defaults, middleware) {
1006
- if (middleware === void 0) { middleware = ItoI; }
1007
- var buffer = [];
1008
- var assigned = false;
1009
- var medium = {
1010
- read: function () {
1011
- if (assigned) {
1012
- throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
1013
- }
1014
- if (buffer.length) {
1015
- return buffer[buffer.length - 1];
1016
- }
1017
- return defaults;
1018
- },
1019
- useMedium: function (data) {
1020
- var item = middleware(data, assigned);
1021
- buffer.push(item);
1022
- return function () {
1023
- buffer = buffer.filter(function (x) { return x !== item; });
1024
- };
1025
- },
1026
- assignSyncMedium: function (cb) {
1027
- assigned = true;
1028
- while (buffer.length) {
1029
- var cbs = buffer;
1030
- buffer = [];
1031
- cbs.forEach(cb);
1032
- }
1033
- buffer = {
1034
- push: function (x) { return cb(x); },
1035
- filter: function () { return buffer; },
1036
- };
1037
- },
1038
- assignMedium: function (cb) {
1039
- assigned = true;
1040
- var pendingQueue = [];
1041
- if (buffer.length) {
1042
- var cbs = buffer;
1043
- buffer = [];
1044
- cbs.forEach(cb);
1045
- pendingQueue = buffer;
1046
- }
1047
- var executeQueue = function () {
1048
- var cbs = pendingQueue;
1049
- pendingQueue = [];
1050
- cbs.forEach(cb);
1051
- };
1052
- var cycle = function () { return Promise.resolve().then(executeQueue); };
1053
- cycle();
1054
- buffer = {
1055
- push: function (x) {
1056
- pendingQueue.push(x);
1057
- cycle();
1058
- },
1059
- filter: function (filter) {
1060
- pendingQueue = pendingQueue.filter(filter);
1061
- return buffer;
1062
- },
1063
- };
1064
- },
1065
- };
1066
- return medium;
1067
- }
1068
- // eslint-disable-next-line @typescript-eslint/ban-types
1069
- function createSidecarMedium(options) {
1070
- if (options === void 0) { options = {}; }
1071
- var medium = innerCreateMedium(null);
1072
- medium.options = __assign({ async: true, ssr: false }, options);
1073
- return medium;
1074
- }
1075
-
1076
- var SideCar$1 = function (_a) {
1077
- var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
1078
- if (!sideCar) {
1079
- throw new Error('Sidecar: please provide `sideCar` property to import the right car');
1080
- }
1081
- var Target = sideCar.read();
1082
- if (!Target) {
1083
- throw new Error('Sidecar medium not found');
1084
- }
1085
- return React__namespace.createElement(Target, __assign({}, rest));
1086
- };
1087
- SideCar$1.isSideCarExport = true;
1088
- function exportSidecar(medium, exported) {
1089
- medium.useMedium(exported);
1090
- return SideCar$1;
1091
- }
1092
-
1093
- var effectCar = createSidecarMedium();
1094
-
1095
- var nothing = function () {
1096
- return;
1097
- };
1098
- /**
1099
- * Removes scrollbar from the page and contain the scroll within the Lock
1100
- */
1101
- var RemoveScroll = React__namespace.forwardRef(function (props, parentRef) {
1102
- var ref = React__namespace.useRef(null);
1103
- var _a = React__namespace.useState({
1104
- onScrollCapture: nothing,
1105
- onWheelCapture: nothing,
1106
- onTouchMoveCapture: nothing,
1107
- }), callbacks = _a[0], setCallbacks = _a[1];
1108
- 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, rest = __rest$1(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]);
1109
- var SideCar = sideCar;
1110
- var containerRef = useMergeRefs([ref, parentRef]);
1111
- var containerProps = __assign$1(__assign$1({}, rest), callbacks);
1112
- return (React__namespace.createElement(React__namespace.Fragment, null,
1113
- enabled && (React__namespace.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),
1114
- forwardProps ? (React__namespace.cloneElement(React__namespace.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef }))) : (React__namespace.createElement(Container, __assign$1({}, containerProps, { className: className, ref: containerRef }), children))));
1115
- });
1116
- RemoveScroll.defaultProps = {
1117
- enabled: true,
1118
- removeScrollBar: true,
1119
- inert: false,
1120
- };
1121
- RemoveScroll.classNames = {
1122
- fullWidth: fullWidthClassName,
1123
- zeroRight: zeroRightClassName,
1124
- };
1125
-
1126
- var getNonce = function () {
1127
- if (typeof __webpack_nonce__ !== 'undefined') {
1128
- return __webpack_nonce__;
1129
- }
1130
- return undefined;
1131
- };
1132
-
1133
- function makeStyleTag() {
1134
- if (!document)
1135
- return null;
1136
- var tag = document.createElement('style');
1137
- tag.type = 'text/css';
1138
- var nonce = getNonce();
1139
- if (nonce) {
1140
- tag.setAttribute('nonce', nonce);
1141
- }
1142
- return tag;
1143
- }
1144
- function injectStyles(tag, css) {
1145
- // @ts-ignore
1146
- if (tag.styleSheet) {
1147
- // @ts-ignore
1148
- tag.styleSheet.cssText = css;
1149
- }
1150
- else {
1151
- tag.appendChild(document.createTextNode(css));
1152
- }
1153
- }
1154
- function insertStyleTag(tag) {
1155
- var head = document.head || document.getElementsByTagName('head')[0];
1156
- head.appendChild(tag);
1157
- }
1158
- var stylesheetSingleton = function () {
1159
- var counter = 0;
1160
- var stylesheet = null;
1161
- return {
1162
- add: function (style) {
1163
- if (counter == 0) {
1164
- if ((stylesheet = makeStyleTag())) {
1165
- injectStyles(stylesheet, style);
1166
- insertStyleTag(stylesheet);
1167
- }
1168
- }
1169
- counter++;
1170
- },
1171
- remove: function () {
1172
- counter--;
1173
- if (!counter && stylesheet) {
1174
- stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
1175
- stylesheet = null;
1176
- }
1177
- },
1178
- };
1179
- };
1180
-
1181
- /**
1182
- * creates a hook to control style singleton
1183
- * @see {@link styleSingleton} for a safer component version
1184
- * @example
1185
- * ```tsx
1186
- * const useStyle = styleHookSingleton();
1187
- * ///
1188
- * useStyle('body { overflow: hidden}');
1189
- */
1190
- var styleHookSingleton = function () {
1191
- var sheet = stylesheetSingleton();
1192
- return function (styles, isDynamic) {
1193
- React__namespace.useEffect(function () {
1194
- sheet.add(styles);
1195
- return function () {
1196
- sheet.remove();
1197
- };
1198
- }, [styles && isDynamic]);
1199
- };
1200
- };
1201
-
1202
- /**
1203
- * create a Component to add styles on demand
1204
- * - styles are added when first instance is mounted
1205
- * - styles are removed when the last instance is unmounted
1206
- * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
1207
- */
1208
- var styleSingleton = function () {
1209
- var useStyle = styleHookSingleton();
1210
- var Sheet = function (_a) {
1211
- var styles = _a.styles, dynamic = _a.dynamic;
1212
- useStyle(styles, dynamic);
1213
- return null;
1214
- };
1215
- return Sheet;
1216
- };
1217
-
1218
- var zeroGap = {
1219
- left: 0,
1220
- top: 0,
1221
- right: 0,
1222
- gap: 0,
1223
- };
1224
- var parse = function (x) { return parseInt(x || '', 10) || 0; };
1225
- var getOffset = function (gapMode) {
1226
- var cs = window.getComputedStyle(document.body);
1227
- var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
1228
- var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
1229
- var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
1230
- return [parse(left), parse(top), parse(right)];
1231
- };
1232
- var getGapWidth = function (gapMode) {
1233
- if (gapMode === void 0) { gapMode = 'margin'; }
1234
- if (typeof window === 'undefined') {
1235
- return zeroGap;
1236
- }
1237
- var offsets = getOffset(gapMode);
1238
- var documentWidth = document.documentElement.clientWidth;
1239
- var windowWidth = window.innerWidth;
1240
- return {
1241
- left: offsets[0],
1242
- top: offsets[1],
1243
- right: offsets[2],
1244
- gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
1245
- };
1246
- };
1247
-
1248
- var Style = styleSingleton();
1249
- // important tip - once we measure scrollBar width and remove them
1250
- // we could not repeat this operation
1251
- // thus we are using style-singleton - only the first "yet correct" style will be applied.
1252
- var getStyles = function (_a, allowRelative, gapMode, important) {
1253
- var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
1254
- if (gapMode === void 0) { gapMode = 'margin'; }
1255
- return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
1256
- allowRelative && "position: relative ".concat(important, ";"),
1257
- gapMode === 'margin' &&
1258
- "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
1259
- gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
1260
- ]
1261
- .filter(Boolean)
1262
- .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
1263
- };
1264
- /**
1265
- * Removes page scrollbar and blocks page scroll when mounted
1266
- */
1267
- var RemoveScrollBar = function (props) {
1268
- var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;
1269
- /*
1270
- gap will be measured on every component mount
1271
- however it will be used only by the "first" invocation
1272
- due to singleton nature of <Style
1273
- */
1274
- var gap = React__namespace.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
1275
- return React__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
1276
- };
1277
-
1278
- var passiveSupported = false;
1279
- if (typeof window !== 'undefined') {
1280
- try {
1281
- var options = Object.defineProperty({}, 'passive', {
1282
- get: function () {
1283
- passiveSupported = true;
1284
- return true;
1285
- },
1286
- });
1287
- // @ts-ignore
1288
- window.addEventListener('test', options, options);
1289
- // @ts-ignore
1290
- window.removeEventListener('test', options, options);
1291
- }
1292
- catch (err) {
1293
- passiveSupported = false;
1294
- }
1295
- }
1296
- var nonPassive = passiveSupported ? { passive: false } : false;
1297
-
1298
- var alwaysContainsScroll = function (node) {
1299
- // textarea will always _contain_ scroll inside self. It only can be hidden
1300
- return node.tagName === 'TEXTAREA';
1301
- };
1302
- var elementCanBeScrolled = function (node, overflow) {
1303
- var styles = window.getComputedStyle(node);
1304
- return (
1305
- // not-not-scrollable
1306
- styles[overflow] !== 'hidden' &&
1307
- // contains scroll inside self
1308
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
1309
- };
1310
- var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
1311
- var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
1312
- var locationCouldBeScrolled = function (axis, node) {
1313
- var current = node;
1314
- do {
1315
- // Skip over shadow root
1316
- if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
1317
- current = current.host;
1318
- }
1319
- var isScrollable = elementCouldBeScrolled(axis, current);
1320
- if (isScrollable) {
1321
- var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];
1322
- if (s > d) {
1323
- return true;
1324
- }
1325
- }
1326
- current = current.parentNode;
1327
- } while (current && current !== document.body);
1328
- return false;
1329
- };
1330
- var getVScrollVariables = function (_a) {
1331
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
1332
- return [
1333
- scrollTop,
1334
- scrollHeight,
1335
- clientHeight,
1336
- ];
1337
- };
1338
- var getHScrollVariables = function (_a) {
1339
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
1340
- return [
1341
- scrollLeft,
1342
- scrollWidth,
1343
- clientWidth,
1344
- ];
1345
- };
1346
- var elementCouldBeScrolled = function (axis, node) {
1347
- return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
1348
- };
1349
- var getScrollVariables = function (axis, node) {
1350
- return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
1351
- };
1352
- var getDirectionFactor = function (axis, direction) {
1353
- /**
1354
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
1355
- * and then increasingly negative as you scroll towards the end of the content.
1356
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
1357
- */
1358
- return axis === 'h' && direction === 'rtl' ? -1 : 1;
1359
- };
1360
- var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
1361
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
1362
- var delta = directionFactor * sourceDelta;
1363
- // find scrollable target
1364
- var target = event.target;
1365
- var targetInLock = endTarget.contains(target);
1366
- var shouldCancelScroll = false;
1367
- var isDeltaPositive = delta > 0;
1368
- var availableScroll = 0;
1369
- var availableScrollTop = 0;
1370
- do {
1371
- var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
1372
- var elementScroll = scroll_1 - capacity - directionFactor * position;
1373
- if (position || elementScroll) {
1374
- if (elementCouldBeScrolled(axis, target)) {
1375
- availableScroll += elementScroll;
1376
- availableScrollTop += position;
1377
- }
1378
- }
1379
- target = target.parentNode;
1380
- } while (
1381
- // portaled content
1382
- (!targetInLock && target !== document.body) ||
1383
- // self content
1384
- (targetInLock && (endTarget.contains(target) || endTarget === target)));
1385
- if (isDeltaPositive && ((noOverscroll && availableScroll === 0) || (!noOverscroll && delta > availableScroll))) {
1386
- shouldCancelScroll = true;
1387
- }
1388
- else if (!isDeltaPositive &&
1389
- ((noOverscroll && availableScrollTop === 0) || (!noOverscroll && -delta > availableScrollTop))) {
1390
- shouldCancelScroll = true;
1391
- }
1392
- return shouldCancelScroll;
1393
- };
1394
-
1395
- var getTouchXY = function (event) {
1396
- return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
1397
- };
1398
- var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
1399
- var extractRef = function (ref) {
1400
- return ref && 'current' in ref ? ref.current : ref;
1401
- };
1402
- var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
1403
- var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
1404
- var idCounter = 0;
1405
- var lockStack = [];
1406
- function RemoveScrollSideCar(props) {
1407
- var shouldPreventQueue = React__namespace.useRef([]);
1408
- var touchStartRef = React__namespace.useRef([0, 0]);
1409
- var activeAxis = React__namespace.useRef();
1410
- var id = React__namespace.useState(idCounter++)[0];
1411
- var Style = React__namespace.useState(function () { return styleSingleton(); })[0];
1412
- var lastProps = React__namespace.useRef(props);
1413
- React__namespace.useEffect(function () {
1414
- lastProps.current = props;
1415
- }, [props]);
1416
- React__namespace.useEffect(function () {
1417
- if (props.inert) {
1418
- document.body.classList.add("block-interactivity-".concat(id));
1419
- var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
1420
- allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
1421
- return function () {
1422
- document.body.classList.remove("block-interactivity-".concat(id));
1423
- allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
1424
- };
1425
- }
1426
- return;
1427
- }, [props.inert, props.lockRef.current, props.shards]);
1428
- var shouldCancelEvent = React__namespace.useCallback(function (event, parent) {
1429
- if ('touches' in event && event.touches.length === 2) {
1430
- return !lastProps.current.allowPinchZoom;
1431
- }
1432
- var touch = getTouchXY(event);
1433
- var touchStart = touchStartRef.current;
1434
- var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
1435
- var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
1436
- var currentAxis;
1437
- var target = event.target;
1438
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
1439
- // allow horizontal touch move on Range inputs. They will not cause any scroll
1440
- if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
1441
- return false;
1442
- }
1443
- var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1444
- if (!canBeScrolledInMainDirection) {
1445
- return true;
1446
- }
1447
- if (canBeScrolledInMainDirection) {
1448
- currentAxis = moveDirection;
1449
- }
1450
- else {
1451
- currentAxis = moveDirection === 'v' ? 'h' : 'v';
1452
- canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1453
- // other axis might be not scrollable
1454
- }
1455
- if (!canBeScrolledInMainDirection) {
1456
- return false;
1457
- }
1458
- if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
1459
- activeAxis.current = currentAxis;
1460
- }
1461
- if (!currentAxis) {
1462
- return true;
1463
- }
1464
- var cancelingAxis = activeAxis.current || currentAxis;
1465
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
1466
- }, []);
1467
- var shouldPrevent = React__namespace.useCallback(function (_event) {
1468
- var event = _event;
1469
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
1470
- // not the last active
1471
- return;
1472
- }
1473
- var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
1474
- var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];
1475
- // self event, and should be canceled
1476
- if (sourceEvent && sourceEvent.should) {
1477
- if (event.cancelable) {
1478
- event.preventDefault();
1479
- }
1480
- return;
1481
- }
1482
- // outside or shard event
1483
- if (!sourceEvent) {
1484
- var shardNodes = (lastProps.current.shards || [])
1485
- .map(extractRef)
1486
- .filter(Boolean)
1487
- .filter(function (node) { return node.contains(event.target); });
1488
- var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
1489
- if (shouldStop) {
1490
- if (event.cancelable) {
1491
- event.preventDefault();
1492
- }
1493
- }
1494
- }
1495
- }, []);
1496
- var shouldCancel = React__namespace.useCallback(function (name, delta, target, should) {
1497
- var event = { name: name, delta: delta, target: target, should: should };
1498
- shouldPreventQueue.current.push(event);
1499
- setTimeout(function () {
1500
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
1501
- }, 1);
1502
- }, []);
1503
- var scrollTouchStart = React__namespace.useCallback(function (event) {
1504
- touchStartRef.current = getTouchXY(event);
1505
- activeAxis.current = undefined;
1506
- }, []);
1507
- var scrollWheel = React__namespace.useCallback(function (event) {
1508
- shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1509
- }, []);
1510
- var scrollTouchMove = React__namespace.useCallback(function (event) {
1511
- shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1512
- }, []);
1513
- React__namespace.useEffect(function () {
1514
- lockStack.push(Style);
1515
- props.setCallbacks({
1516
- onScrollCapture: scrollWheel,
1517
- onWheelCapture: scrollWheel,
1518
- onTouchMoveCapture: scrollTouchMove,
1519
- });
1520
- document.addEventListener('wheel', shouldPrevent, nonPassive);
1521
- document.addEventListener('touchmove', shouldPrevent, nonPassive);
1522
- document.addEventListener('touchstart', scrollTouchStart, nonPassive);
1523
- return function () {
1524
- lockStack = lockStack.filter(function (inst) { return inst !== Style; });
1525
- document.removeEventListener('wheel', shouldPrevent, nonPassive);
1526
- document.removeEventListener('touchmove', shouldPrevent, nonPassive);
1527
- document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
1528
- };
1529
- }, []);
1530
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
1531
- return (React__namespace.createElement(React__namespace.Fragment, null,
1532
- inert ? React__namespace.createElement(Style, { styles: generateStyle(id) }) : null,
1533
- removeScrollBar ? React__namespace.createElement(RemoveScrollBar, { gapMode: "margin" }) : null));
1534
- }
1535
-
1536
- var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
1537
-
1538
- var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(RemoveScroll, __assign$1({}, props, { ref: ref, sideCar: SideCar }))); });
1539
- ReactRemoveScroll.classNames = RemoveScroll.classNames;
1540
- var $01b9c$RemoveScroll = ReactRemoveScroll;
1541
-
1542
144
  const $cc7e05a45900e73f$var$OPEN_KEYS = [
1543
145
  ' ',
1544
146
  'Enter',
@@ -1592,7 +194,7 @@ const $cc7e05a45900e73f$export$ef9b1a59e592288f = (props)=>{
1592
194
  onValueNodeChange: setValueNode,
1593
195
  valueNodeHasChildren: valueNodeHasChildren,
1594
196
  onValueNodeHasChildrenChange: setValueNodeHasChildren,
1595
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
197
+ contentId: index.$1746a345f3d73bb7$export$f680877a34711e37(),
1596
198
  value: value,
1597
199
  onValueChange: setValue,
1598
200
  open: open,
@@ -1738,7 +340,7 @@ const $cc7e05a45900e73f$export$99b400cabb58c515 = /*#__PURE__*/ React$1.forwardR
1738
340
  }), children || '▼');
1739
341
  });
1740
342
  const $cc7e05a45900e73f$export$b2af6c9944296213 = (props)=>{
1741
- return /*#__PURE__*/ React$1.createElement($f1701beae083dbae$export$602eac185826482c, index_module._extends({
343
+ return /*#__PURE__*/ React$1.createElement(index.$f1701beae083dbae$export$602eac185826482c, index_module._extends({
1742
344
  asChild: true
1743
345
  }, props));
1744
346
  };
@@ -1777,12 +379,12 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ React$1.forwardRef
1777
379
  const shouldExpandOnScrollRef = React$1.useRef(false);
1778
380
  const firstValidItemFoundRef = React$1.useRef(false); // aria-hide everything except the content (better supported equivalent to setting aria-modal)
1779
381
  React$1.useEffect(()=>{
1780
- if (content) return hideOthers(content);
382
+ if (content) return index.hideOthers(content);
1781
383
  }, [
1782
384
  content
1783
385
  ]); // Make sure the whole tree has focus guards as our `Select` may be
1784
386
  // the last element in the DOM (because of the `Portal`)
1785
- $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
387
+ index.$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
1786
388
  const [contentZIndex, setContentZIndex] = React$1.useState();
1787
389
  index_module.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
1788
390
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
@@ -2035,7 +637,7 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ React$1.forwardRef
2035
637
  isPositioned: isPositioned,
2036
638
  shouldExpandOnScrollRef: shouldExpandOnScrollRef,
2037
639
  searchRef: searchRef
2038
- }, /*#__PURE__*/ React$1.createElement($01b9c$RemoveScroll, {
640
+ }, /*#__PURE__*/ React$1.createElement(index.$01b9c$RemoveScroll, {
2039
641
  as: index_module.$5e63c961fc1ce211$export$8c6ed5c666ac1360,
2040
642
  allowPinchZoom: true
2041
643
  }, /*#__PURE__*/ React$1.createElement("div", {
@@ -2046,7 +648,7 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ React$1.forwardRef
2046
648
  position: 'fixed',
2047
649
  zIndex: contentZIndex
2048
650
  }
2049
- }, /*#__PURE__*/ React$1.createElement($d3863c46a17e8a28$export$20e40289641fbbb6, {
651
+ }, /*#__PURE__*/ React$1.createElement(index.$d3863c46a17e8a28$export$20e40289641fbbb6, {
2050
652
  asChild: true // we make sure we're not trapping once it's been closed
2051
653
  ,
2052
654
  trapped: context.open,
@@ -2061,7 +663,7 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ React$1.forwardRef
2061
663
  });
2062
664
  event.preventDefault();
2063
665
  })
2064
- }, /*#__PURE__*/ React$1.createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, index_module._extends({
666
+ }, /*#__PURE__*/ React$1.createElement(index.$5cb92bef7577960e$export$177fb62ff3ec1f22, index_module._extends({
2065
667
  role: "listbox",
2066
668
  id: context.contentId,
2067
669
  "data-state": context.open ? 'open' : 'closed',
@@ -2194,7 +796,7 @@ const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ React$1.forwardR
2194
796
  var _contentContext$itemR;
2195
797
  return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);
2196
798
  });
2197
- const textId = $1746a345f3d73bb7$export$f680877a34711e37();
799
+ const textId = index.$1746a345f3d73bb7$export$f680877a34711e37();
2198
800
  const handleSelect = ()=>{
2199
801
  if (!disabled) {
2200
802
  context.onValueChange(value);
@@ -2431,7 +1033,7 @@ const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ React$1.forwa
2431
1033
  const { value: value , ...selectProps } = props;
2432
1034
  const ref = React$1.useRef(null);
2433
1035
  const composedRefs = index_module.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
2434
- const prevValue = index_module.$010c2913dbd2fe3d$export$5cae361ad82dce8b(value); // Bubble value change to parents (e.g form change event)
1036
+ const prevValue = index_module$1.$010c2913dbd2fe3d$export$5cae361ad82dce8b(value); // Bubble value change to parents (e.g form change event)
2435
1037
  React$1.useEffect(()=>{
2436
1038
  const select = ref.current;
2437
1039
  const selectProto = window.HTMLSelectElement.prototype;
@@ -2583,7 +1185,7 @@ var Select = function (_a) {
2583
1185
  };
2584
1186
  return (React__default["default"].createElement(FormControl.FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, label: label, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", isDisabled: isDisabled, disclosureText: disclosureText, disclosureTitle: disclosureTitle, onClickDisclosure: onClickDisclosure },
2585
1187
  React__default["default"].createElement($cc7e05a45900e73f$export$be92b6f5f03c0fe9, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value: selectedValue, onOpenChange: onOpenChange, onValueChange: function (value) { return onValueChange(value); } },
2586
- React__default["default"].createElement($cc7e05a45900e73f$export$41fb9f06171c75f4, { id: id, name: name, onBlur: onBlur, className: index.classNames("arc-Select-trigger", {
1188
+ React__default["default"].createElement($cc7e05a45900e73f$export$41fb9f06171c75f4, { id: id, name: name, onBlur: onBlur, className: index$1.classNames("arc-Select-trigger", {
2587
1189
  "arc-Select-trigger--constrained": !isFluid,
2588
1190
  "arc-Select-trigger--onDarkSurface": surface === "dark",
2589
1191
  "arc-Select-trigger--invalid": errorMessage
@@ -2592,7 +1194,7 @@ var Select = function (_a) {
2592
1194
  React__default["default"].createElement($cc7e05a45900e73f$export$f04a61298a47a40f, { className: "arc-Select-triggerIcon" },
2593
1195
  React__default["default"].createElement(Icon.Icon, { icon: BtIconChevronDown2Px.BtIconChevronDown2Px_2, size: 20 }))),
2594
1196
  React__default["default"].createElement($cc7e05a45900e73f$export$602eac185826482c, { container: arcRootElement },
2595
- React__default["default"].createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2, { className: index.classNames("arc-Select-content", {
1197
+ React__default["default"].createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2, { className: index$1.classNames("arc-Select-content", {
2596
1198
  "arc-Select-content--onDarkSurface": surface === "dark"
2597
1199
  }) },
2598
1200
  React__default["default"].createElement($cc7e05a45900e73f$export$2f60d3ec9ad468f2, { className: "arc-Select-scrollButton" },