@arc-ui/components 11.6.0 → 11.8.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 (308) hide show
  1. package/dist/Alert/Alert.cjs.d.ts +1 -1
  2. package/dist/Alert/Alert.cjs.js +12 -91
  3. package/dist/Alert/Alert.esm.d.ts +1 -1
  4. package/dist/Alert/Alert.esm.js +5 -84
  5. package/dist/Badge/Badge.cjs.js +4 -4
  6. package/dist/Badge/Badge.esm.js +5 -5
  7. package/dist/Box/Box.cjs.d.ts +40 -0
  8. package/dist/Box/Box.cjs.js +32 -0
  9. package/dist/Box/Box.esm.d.ts +40 -0
  10. package/dist/Box/Box.esm.js +24 -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 +4 -4
  18. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -1
  19. package/dist/Breadcrumbs/Breadcrumbs.esm.js +4 -4
  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/Columns/Columns.cjs.d.ts +1 -1
  33. package/dist/Columns/Columns.esm.d.ts +1 -1
  34. package/dist/Curve/Curve.cjs.d.ts +1 -1
  35. package/dist/Curve/Curve.cjs.js +1 -1
  36. package/dist/Curve/Curve.esm.d.ts +1 -1
  37. package/dist/Curve/Curve.esm.js +1 -1
  38. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  39. package/dist/Disclosure/Disclosure.cjs.js +2 -2
  40. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  41. package/dist/Disclosure/Disclosure.esm.js +2 -2
  42. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
  43. package/dist/DisclosureMini/DisclosureMini.cjs.js +3 -3
  44. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
  45. package/dist/DisclosureMini/DisclosureMini.esm.js +3 -3
  46. package/dist/Filter/Filter.cjs.d.ts +1 -1
  47. package/dist/Filter/Filter.cjs.js +2 -2
  48. package/dist/Filter/Filter.esm.d.ts +1 -1
  49. package/dist/Filter/Filter.esm.js +2 -2
  50. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  51. package/dist/FormControl/FormControl.cjs.js +4 -4
  52. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  53. package/dist/FormControl/FormControl.esm.js +4 -4
  54. package/dist/Group/Group.cjs.d.ts +1 -1
  55. package/dist/Group/Group.cjs.js +2 -2
  56. package/dist/Group/Group.esm.d.ts +1 -1
  57. package/dist/Group/Group.esm.js +2 -2
  58. package/dist/Heading/Heading.cjs.d.ts +1 -1
  59. package/dist/Heading/Heading.cjs.js +2 -2
  60. package/dist/Heading/Heading.esm.d.ts +1 -1
  61. package/dist/Heading/Heading.esm.js +2 -2
  62. package/dist/Icon/Icon.cjs.d.ts +1 -1
  63. package/dist/Icon/Icon.cjs.js +2 -2
  64. package/dist/Icon/Icon.esm.d.ts +1 -1
  65. package/dist/Icon/Icon.esm.js +2 -2
  66. package/dist/Image/Image.cjs.d.ts +1 -1
  67. package/dist/Image/Image.cjs.js +2 -1
  68. package/dist/Image/Image.esm.d.ts +1 -1
  69. package/dist/Image/Image.esm.js +1 -1
  70. package/dist/Markup/Markup.cjs.js +1 -1
  71. package/dist/Markup/Markup.esm.js +1 -1
  72. package/dist/Modal/Modal.cjs.d.ts +53 -0
  73. package/dist/Modal/Modal.cjs.js +677 -0
  74. package/dist/Modal/Modal.esm.d.ts +53 -0
  75. package/dist/Modal/Modal.esm.js +669 -0
  76. package/dist/Modal/package.json +7 -0
  77. package/dist/Pagination/Pagination.cjs.js +6 -6
  78. package/dist/Pagination/Pagination.esm.js +6 -6
  79. package/dist/PaginationSimple/PaginationSimple.cjs.js +6 -6
  80. package/dist/PaginationSimple/PaginationSimple.esm.js +6 -6
  81. package/dist/Poster/Poster.cjs.d.ts +1 -1
  82. package/dist/Poster/Poster.cjs.js +3 -3
  83. package/dist/Poster/Poster.esm.d.ts +1 -1
  84. package/dist/Poster/Poster.esm.js +3 -3
  85. package/dist/ProgressBar/ProgressBar.cjs.js +7 -7
  86. package/dist/ProgressBar/ProgressBar.esm.js +8 -8
  87. package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +89 -0
  88. package/dist/ProgressStepper/ProgressStepper.cjs.js +152 -0
  89. package/dist/ProgressStepper/ProgressStepper.esm.d.ts +89 -0
  90. package/dist/ProgressStepper/ProgressStepper.esm.js +144 -0
  91. package/dist/ProgressStepper/package.json +7 -0
  92. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
  93. package/dist/RadioGroup/RadioGroup.cjs.js +5 -5
  94. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
  95. package/dist/RadioGroup/RadioGroup.esm.js +5 -5
  96. package/dist/Rule/Rule.cjs.js +1 -1
  97. package/dist/Rule/Rule.esm.js +1 -1
  98. package/dist/ScrollToTop/ScrollToTop.cjs.js +2 -2
  99. package/dist/ScrollToTop/ScrollToTop.esm.js +2 -2
  100. package/dist/Select/Select.cjs.d.ts +1 -1
  101. package/dist/Select/Select.cjs.js +453 -916
  102. package/dist/Select/Select.esm.d.ts +1 -1
  103. package/dist/Select/Select.esm.js +419 -882
  104. package/dist/SiteFooter/SiteFooter.cjs.d.ts +1 -1
  105. package/dist/SiteFooter/SiteFooter.cjs.js +4 -4
  106. package/dist/SiteFooter/SiteFooter.esm.d.ts +1 -1
  107. package/dist/SiteFooter/SiteFooter.esm.js +5 -5
  108. package/dist/SiteHeader/SiteHeader.cjs.d.ts +1 -1
  109. package/dist/SiteHeader/SiteHeader.cjs.js +6 -6
  110. package/dist/SiteHeader/SiteHeader.esm.d.ts +1 -1
  111. package/dist/SiteHeader/SiteHeader.esm.js +6 -6
  112. package/dist/Surface/Surface.cjs.d.ts +1 -1
  113. package/dist/Surface/Surface.cjs.js +1 -1
  114. package/dist/Surface/Surface.esm.d.ts +1 -1
  115. package/dist/Surface/Surface.esm.js +1 -1
  116. package/dist/Switch/Switch.cjs.d.ts +1 -1
  117. package/dist/Switch/Switch.cjs.js +242 -18
  118. package/dist/Switch/Switch.esm.d.ts +1 -1
  119. package/dist/Switch/Switch.esm.js +236 -12
  120. package/dist/Tabs/Tabs.cjs.d.ts +75 -0
  121. package/dist/Tabs/Tabs.cjs.js +514 -0
  122. package/dist/Tabs/Tabs.esm.d.ts +75 -0
  123. package/dist/Tabs/Tabs.esm.js +506 -0
  124. package/dist/Tabs/package.json +7 -0
  125. package/dist/Tag/Tag.cjs.js +2 -2
  126. package/dist/Tag/Tag.esm.js +2 -2
  127. package/dist/Text/Text.cjs.d.ts +1 -1
  128. package/dist/Text/Text.cjs.js +2 -2
  129. package/dist/Text/Text.esm.d.ts +1 -1
  130. package/dist/Text/Text.esm.js +2 -2
  131. package/dist/TextArea/TextArea.cjs.d.ts +4 -1
  132. package/dist/TextArea/TextArea.cjs.js +22 -21
  133. package/dist/TextArea/TextArea.esm.d.ts +4 -1
  134. package/dist/TextArea/TextArea.esm.js +22 -21
  135. package/dist/TextInput/TextInput.cjs.d.ts +1 -1
  136. package/dist/TextInput/TextInput.cjs.js +5 -5
  137. package/dist/TextInput/TextInput.esm.d.ts +1 -1
  138. package/dist/TextInput/TextInput.esm.js +5 -5
  139. package/dist/Toast/Toast.cjs.d.ts +52 -0
  140. package/dist/Toast/Toast.cjs.js +743 -0
  141. package/dist/Toast/Toast.esm.d.ts +52 -0
  142. package/dist/Toast/Toast.esm.js +735 -0
  143. package/dist/Toast/package.json +7 -0
  144. package/dist/Truncate/Truncate.cjs.js +3 -2
  145. package/dist/Truncate/Truncate.esm.js +3 -2
  146. package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -1
  147. package/dist/UniversalHeader/UniversalHeader.cjs.js +2 -2
  148. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -1
  149. package/dist/UniversalHeader/UniversalHeader.esm.js +2 -2
  150. package/dist/_shared/cjs/{BrandLogo-8008f0c4.js → BrandLogo-8107d59f.js} +1 -1
  151. package/dist/_shared/cjs/{Breadcrumbs-8b554370.js → Breadcrumbs-0906dd10.js} +10 -10
  152. package/dist/_shared/cjs/BtIconTick-42fcc5ec.js +91 -0
  153. package/dist/_shared/cjs/{Button-27512fee.d.ts → Button-5aaa6776.d.ts} +4 -0
  154. package/dist/_shared/cjs/{Button-27512fee.js → Button-5aaa6776.js} +4 -4
  155. package/dist/_shared/cjs/{Card-804ab0e5.js → Card-fd189ba8.js} +4 -4
  156. package/dist/_shared/cjs/{Checkbox-21d3c4f6.js → Checkbox-02c546ca.js} +2 -2
  157. package/dist/_shared/cjs/Columns-e90798f8.d.ts +1 -1
  158. package/dist/_shared/cjs/{Curve-b05589d8.d.ts → Curve-781ef633.d.ts} +5 -2
  159. package/dist/_shared/cjs/{Curve-b05589d8.js → Curve-781ef633.js} +5 -2
  160. package/dist/_shared/cjs/{DisclosureMini-067e0319.js → DisclosureMini-52706ee6.js} +2 -2
  161. package/dist/_shared/cjs/{Filter-f7d2fbda.js → Filter-a7574fe7.js} +1 -1
  162. package/dist/_shared/cjs/{FormControl-9aaddd54.js → FormControl-1e1bf2bf.js} +2 -2
  163. package/dist/_shared/cjs/{Group-d83f8c2e.js → Group-f85dd4c0.js} +1 -1
  164. package/dist/_shared/cjs/{Heading-d45f6a7f.d.ts → Heading-e3332dcf.d.ts} +4 -0
  165. package/dist/_shared/cjs/{Heading-d45f6a7f.js → Heading-e3332dcf.js} +3 -3
  166. package/dist/_shared/cjs/{Icon-9ae8dbe1.js → Icon-e1dd45eb.js} +1 -1
  167. package/dist/_shared/cjs/{Image-3bf4b4f3.js → Image-0e393cbf.js} +2 -0
  168. package/dist/_shared/cjs/{Poster-e05bbe13.d.ts → Poster-faea1ad3.d.ts} +1 -1
  169. package/dist/_shared/cjs/{Poster-e05bbe13.js → Poster-faea1ad3.js} +2 -2
  170. package/dist/_shared/{esm/RadioGroup-1fd0f389.d.ts → cjs/RadioGroup-d7664b0c.d.ts} +1 -1
  171. package/dist/_shared/cjs/{RadioGroup-81805ef9.js → RadioGroup-d7664b0c.js} +2 -2
  172. package/dist/_shared/cjs/{SiteFooter-c540b5f1.js → SiteFooter-5da774e1.js} +3 -3
  173. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +3 -3
  174. package/dist/_shared/cjs/{SiteHeader.rehydrator-f7fa2efe.js → SiteHeader.rehydrator-acc9d8c4.js} +4 -4
  175. package/dist/_shared/cjs/{Surface-6da0a78e.d.ts → Surface-b7c51b2b.d.ts} +3 -2
  176. package/dist/_shared/cjs/{Surface-6da0a78e.js → Surface-b7c51b2b.js} +1 -1
  177. package/dist/_shared/{esm/Text-00e9743b.d.ts → cjs/Text-fa447e2d.d.ts} +4 -0
  178. package/dist/_shared/cjs/{Text-6f2827e6.js → Text-fa447e2d.js} +3 -3
  179. package/dist/_shared/{esm/TextInput-7ed03a48.d.ts → cjs/TextInput-13050538.d.ts} +3 -1
  180. package/dist/_shared/{esm/TextInput-1631dbc4.d.ts → cjs/TextInput-f4549637.d.ts} +1 -1
  181. package/dist/_shared/cjs/{TextInput-33314fc4.js → TextInput-f4549637.js} +2 -2
  182. package/dist/_shared/cjs/{UniversalHeader-cc1d9e5a.js → UniversalHeader-da622e1a.js} +1 -1
  183. package/dist/_shared/cjs/extends-bb8ffacd.js +21 -0
  184. package/dist/_shared/cjs/index-27b53d49.js +174 -0
  185. package/dist/_shared/cjs/index-699086a7.d.ts +1 -1
  186. package/dist/_shared/cjs/index-74488a9f.d.ts +1 -1
  187. package/dist/_shared/cjs/{index.module-af7c85f2.js → index-952918c9.js} +199 -110
  188. package/dist/_shared/cjs/index-96c4d581.js +289 -0
  189. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  190. package/dist/_shared/cjs/index-e340924e.d.ts +1 -1
  191. package/dist/_shared/cjs/index-e6d20018.d.ts +1 -1
  192. package/dist/_shared/cjs/index-eb06f640.d.ts +1 -1
  193. package/dist/_shared/cjs/index-ec260f5e.js +869 -0
  194. package/dist/_shared/cjs/index-f419cf04.d.ts +1 -1
  195. package/dist/_shared/cjs/index-fb4b8fda.js +47 -0
  196. package/dist/_shared/cjs/index.module-bbcc4e18.js +126 -0
  197. package/dist/_shared/esm/{BrandLogo-56699561.js → BrandLogo-9ec620e8.js} +1 -1
  198. package/dist/_shared/esm/{Breadcrumbs-04590057.js → Breadcrumbs-dafa8dde.js} +10 -10
  199. package/dist/_shared/esm/BtIconTick-5fe50cc7.js +83 -0
  200. package/dist/_shared/esm/{Button-d319fa11.d.ts → Button-d1dbcf79.d.ts} +4 -0
  201. package/dist/_shared/esm/{Button-d319fa11.js → Button-d1dbcf79.js} +4 -4
  202. package/dist/_shared/esm/{Card-e79eb6c8.js → Card-e62c3ff6.js} +4 -4
  203. package/dist/_shared/esm/{Checkbox-94300d8c.js → Checkbox-d8891198.js} +2 -2
  204. package/dist/_shared/esm/Columns-8704515b.d.ts +1 -1
  205. package/dist/_shared/esm/{Curve-3e87b1bc.d.ts → Curve-bbc5589c.d.ts} +5 -2
  206. package/dist/_shared/esm/{Curve-3e87b1bc.js → Curve-bbc5589c.js} +5 -2
  207. package/dist/_shared/esm/{DisclosureMini-022beae3.js → DisclosureMini-9b819941.js} +2 -2
  208. package/dist/_shared/esm/{Filter-41b391e3.js → Filter-a01aed11.js} +1 -1
  209. package/dist/_shared/esm/{FormControl-5e3fdca3.js → FormControl-f18e2f59.js} +2 -2
  210. package/dist/_shared/esm/{Group-d62c3f56.js → Group-fb26fd32.js} +1 -1
  211. package/dist/_shared/esm/{Heading-b61432fb.d.ts → Heading-0f629151.d.ts} +4 -0
  212. package/dist/_shared/esm/{Heading-b61432fb.js → Heading-0f629151.js} +3 -3
  213. package/dist/_shared/esm/{Icon-fd247973.js → Icon-c1af47bc.js} +1 -1
  214. package/dist/_shared/esm/{Image-3596ce55.js → Image-3ed3863c.js} +2 -1
  215. package/dist/_shared/esm/{Poster-107d6954.d.ts → Poster-a83ae770.d.ts} +1 -1
  216. package/dist/_shared/esm/{Poster-107d6954.js → Poster-a83ae770.js} +2 -2
  217. package/dist/_shared/{cjs/RadioGroup-81805ef9.d.ts → esm/RadioGroup-be16d5d3.d.ts} +1 -1
  218. package/dist/_shared/esm/{RadioGroup-1fd0f389.js → RadioGroup-be16d5d3.js} +2 -2
  219. package/dist/_shared/esm/{SiteFooter-8075a9bd.js → SiteFooter-a182cb18.js} +3 -3
  220. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +3 -3
  221. package/dist/_shared/esm/{SiteHeader.rehydrator-4da8ac64.js → SiteHeader.rehydrator-023b7b76.js} +4 -4
  222. package/dist/_shared/esm/{Surface-bb100ef8.d.ts → Surface-dde51789.d.ts} +3 -2
  223. package/dist/_shared/esm/{Surface-bb100ef8.js → Surface-dde51789.js} +1 -1
  224. package/dist/_shared/{cjs/Text-6f2827e6.d.ts → esm/Text-40457811.d.ts} +4 -0
  225. package/dist/_shared/esm/{Text-00e9743b.js → Text-40457811.js} +3 -3
  226. package/dist/_shared/{cjs/TextInput-7ed03a48.d.ts → esm/TextInput-13050538.d.ts} +3 -1
  227. package/dist/_shared/{cjs/TextInput-33314fc4.d.ts → esm/TextInput-4424c195.d.ts} +1 -1
  228. package/dist/_shared/esm/{TextInput-1631dbc4.js → TextInput-4424c195.js} +2 -2
  229. package/dist/_shared/esm/{UniversalHeader-7926abde.js → UniversalHeader-1c5a886d.js} +1 -1
  230. package/dist/_shared/esm/extends-4575346e.js +19 -0
  231. package/dist/_shared/esm/{index.module-599b86dd.js → index-22aad354.js} +196 -105
  232. package/dist/_shared/esm/index-369dce7f.js +847 -0
  233. package/dist/_shared/esm/index-699086a7.d.ts +1 -1
  234. package/dist/_shared/esm/index-74488a9f.d.ts +1 -1
  235. package/dist/_shared/esm/index-8000d9e3.js +168 -0
  236. package/dist/_shared/esm/index-94ecc5f8.js +280 -0
  237. package/dist/_shared/esm/index-bed18a88.js +26 -0
  238. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  239. package/dist/_shared/esm/index-e340924e.d.ts +1 -1
  240. package/dist/_shared/esm/index-e6d20018.d.ts +1 -1
  241. package/dist/_shared/esm/index-eb06f640.d.ts +1 -1
  242. package/dist/_shared/esm/index-f419cf04.d.ts +1 -1
  243. package/dist/_shared/esm/index.module-5ed90b21.js +122 -0
  244. package/dist/index.es.js +2808 -1035
  245. package/dist/index.es.js.map +1 -1
  246. package/dist/index.js +3015 -1241
  247. package/dist/index.js.map +1 -1
  248. package/dist/styles.css +1 -1
  249. package/dist/types/components/Box/Box.d.ts +36 -0
  250. package/dist/types/components/Box/index.d.ts +1 -0
  251. package/dist/types/components/Button/Button.d.ts +4 -0
  252. package/dist/types/components/Columns/Columns.d.ts +1 -1
  253. package/dist/types/components/Columns/index.d.ts +1 -1
  254. package/dist/types/components/Curve/Curve.d.ts +5 -2
  255. package/dist/types/components/Heading/Heading.d.ts +4 -0
  256. package/dist/types/components/Image/index.d.ts +1 -1
  257. package/dist/types/components/MediaCard/MediaCard.d.ts +57 -0
  258. package/dist/types/components/MediaCard/index.d.ts +1 -0
  259. package/dist/types/components/Modal/Modal.d.ts +31 -9
  260. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +28 -0
  261. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +62 -0
  262. package/dist/types/components/ProgressStepper/index.d.ts +1 -0
  263. package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -0
  264. package/dist/types/components/Surface/Surface.d.ts +2 -1
  265. package/dist/types/components/Surface/index.d.ts +1 -1
  266. package/dist/types/components/Tabs/Tab/Tab.d.ts +22 -0
  267. package/dist/types/components/Tabs/Tab/index.d.ts +1 -0
  268. package/dist/types/components/Tabs/TabContent/TabContent.d.ts +12 -0
  269. package/dist/types/components/Tabs/TabContent/index.d.ts +1 -0
  270. package/dist/types/components/Tabs/Tabs.d.ts +27 -0
  271. package/dist/types/components/Tabs/TabsList/TabsList.d.ts +20 -0
  272. package/dist/types/components/Tabs/TabsList/index.d.ts +1 -0
  273. package/dist/types/components/Tabs/index.d.ts +1 -0
  274. package/dist/types/components/Text/Text.d.ts +4 -0
  275. package/dist/types/components/TextArea/TextArea.d.ts +3 -0
  276. package/dist/types/components/TextInput/TextInput.d.ts +2 -0
  277. package/dist/types/components/Toast/Toast.d.ts +14 -0
  278. package/dist/types/components/Toast/ToastNotification.d.ts +39 -0
  279. package/dist/types/components/Toast/index.d.ts +1 -0
  280. package/dist/types/components/index.d.ts +1 -0
  281. package/dist/types/styles.d.ts +6 -0
  282. package/package.json +8 -6
  283. /package/dist/_shared/cjs/{BrandLogo-8008f0c4.d.ts → BrandLogo-8107d59f.d.ts} +0 -0
  284. /package/dist/_shared/cjs/{Breadcrumbs-8b554370.d.ts → Breadcrumbs-0906dd10.d.ts} +0 -0
  285. /package/dist/_shared/cjs/{Card-804ab0e5.d.ts → Card-fd189ba8.d.ts} +0 -0
  286. /package/dist/_shared/cjs/{Checkbox-21d3c4f6.d.ts → Checkbox-02c546ca.d.ts} +0 -0
  287. /package/dist/_shared/cjs/{DisclosureMini-067e0319.d.ts → DisclosureMini-52706ee6.d.ts} +0 -0
  288. /package/dist/_shared/cjs/{Filter-f7d2fbda.d.ts → Filter-a7574fe7.d.ts} +0 -0
  289. /package/dist/_shared/cjs/{FormControl-9aaddd54.d.ts → FormControl-1e1bf2bf.d.ts} +0 -0
  290. /package/dist/_shared/cjs/{Group-d83f8c2e.d.ts → Group-f85dd4c0.d.ts} +0 -0
  291. /package/dist/_shared/cjs/{Icon-9ae8dbe1.d.ts → Icon-e1dd45eb.d.ts} +0 -0
  292. /package/dist/_shared/cjs/{Image-3bf4b4f3.d.ts → Image-0e393cbf.d.ts} +0 -0
  293. /package/dist/_shared/cjs/{SiteFooter-c540b5f1.d.ts → SiteFooter-5da774e1.d.ts} +0 -0
  294. /package/dist/_shared/cjs/{SiteHeader.rehydrator-f7fa2efe.d.ts → SiteHeader.rehydrator-acc9d8c4.d.ts} +0 -0
  295. /package/dist/_shared/cjs/{UniversalHeader-cc1d9e5a.d.ts → UniversalHeader-da622e1a.d.ts} +0 -0
  296. /package/dist/_shared/esm/{BrandLogo-56699561.d.ts → BrandLogo-9ec620e8.d.ts} +0 -0
  297. /package/dist/_shared/esm/{Breadcrumbs-04590057.d.ts → Breadcrumbs-dafa8dde.d.ts} +0 -0
  298. /package/dist/_shared/esm/{Card-e79eb6c8.d.ts → Card-e62c3ff6.d.ts} +0 -0
  299. /package/dist/_shared/esm/{Checkbox-94300d8c.d.ts → Checkbox-d8891198.d.ts} +0 -0
  300. /package/dist/_shared/esm/{DisclosureMini-022beae3.d.ts → DisclosureMini-9b819941.d.ts} +0 -0
  301. /package/dist/_shared/esm/{Filter-41b391e3.d.ts → Filter-a01aed11.d.ts} +0 -0
  302. /package/dist/_shared/esm/{FormControl-5e3fdca3.d.ts → FormControl-f18e2f59.d.ts} +0 -0
  303. /package/dist/_shared/esm/{Group-d62c3f56.d.ts → Group-fb26fd32.d.ts} +0 -0
  304. /package/dist/_shared/esm/{Icon-fd247973.d.ts → Icon-c1af47bc.d.ts} +0 -0
  305. /package/dist/_shared/esm/{Image-3596ce55.d.ts → Image-3ed3863c.d.ts} +0 -0
  306. /package/dist/_shared/esm/{SiteFooter-8075a9bd.d.ts → SiteFooter-a182cb18.d.ts} +0 -0
  307. /package/dist/_shared/esm/{SiteHeader.rehydrator-4da8ac64.d.ts → SiteHeader.rehydrator-023b7b76.d.ts} +0 -0
  308. /package/dist/_shared/esm/{UniversalHeader-7926abde.d.ts → UniversalHeader-1c5a886d.d.ts} +0 -0
@@ -1,24 +1,153 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
1
2
  import { c as classNames } from '../_shared/esm/index-2ae58626.js';
2
3
  import * as React$1 from 'react';
3
- import React__default, { useContext, createContext, useEffect, forwardRef, useState, createElement, useRef, useCallback, Fragment, useMemo, useId } from 'react';
4
- import { $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, b as $5e63c961fc1ce211$export$8c6ed5c666ac1360, c as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a, d as $8927f6f2acc4f386$export$250ffa63cdc0d034, _ as _extends, e as $e42e1063c40fb3ef$export$b9ecd428b558ff10, f as $8927f6f2acc4f386$export$6d1a0317bde7de7f, g as $9f79659886946c16$export$e5c5a5f917a5871c, h as $71cd76cc60e0454e$export$6f32135080cb4c3, i as $010c2913dbd2fe3d$export$5cae361ad82dce8b } from '../_shared/esm/index.module-599b86dd.js';
5
- import $7SXl2$reactdom, { createPortal } from 'react-dom';
4
+ import React__default, { createContext, useMemo, createElement, useContext, useCallback, forwardRef, useEffect, useRef, useState, Fragment, useId } from 'react';
5
+ import { _ as _extends } from '../_shared/esm/extends-4575346e.js';
6
+ import $7SXl2$reactdom, { flushSync, createPortal } from 'react-dom';
7
+ import { $ as $5e63c961fc1ce211$export$8c6ed5c666ac1360, a as $9f79659886946c16$export$e5c5a5f917a5871c, b as $010c2913dbd2fe3d$export$5cae361ad82dce8b } from '../_shared/esm/index.module-5ed90b21.js';
8
+ import { h as hideOthers, $ as $01b9c$RemoveScroll } from '../_shared/esm/index-369dce7f.js';
6
9
  import { B as BtIconChevronDown2Px_2 } from '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
7
10
  import { B as BtIconTickAlt2Px_2 } from '../_shared/esm/BtIconTickAlt2Px-da97e9ae.js';
8
- import { I as Icon } from '../_shared/esm/Icon-fd247973.js';
9
- import { F as FormControl } from '../_shared/esm/FormControl-5e3fdca3.js';
10
- import { C as Context } from '../_shared/esm/Surface-bb100ef8.js';
11
+ import { I as Icon } from '../_shared/esm/Icon-c1af47bc.js';
12
+ import { F as FormControl } from '../_shared/esm/FormControl-f18e2f59.js';
13
+ import { C as Context } from '../_shared/esm/Surface-dde51789.js';
11
14
  import { A as ArcRootElementContext } from '../_shared/esm/Base-6c01e0ec.js';
12
- import '../_shared/esm/filter-data-attrs-afdb7d32.js';
13
15
  import '../_shared/esm/suffix-modifier-7e640670.js';
14
16
  import '../_shared/esm/BtIconAlert-55a6ed5c.js';
15
- import '../_shared/esm/DisclosureMini-022beae3.js';
16
- import '../_shared/esm/Text-00e9743b.js';
17
+ import '../_shared/esm/DisclosureMini-9b819941.js';
18
+ import '../_shared/esm/Text-40457811.js';
17
19
 
18
20
  function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) {
19
21
  return Math.min(max, Math.max(min, value));
20
22
  }
21
23
 
24
+ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
25
+ return function handleEvent(event) {
26
+ originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
27
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
28
+ };
29
+ }
30
+
31
+ /* -------------------------------------------------------------------------------------------------
32
+ * createContextScope
33
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
34
+ let defaultContexts = [];
35
+ /* -----------------------------------------------------------------------------------------------
36
+ * createContext
37
+ * ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
38
+ const BaseContext = /*#__PURE__*/ createContext(defaultContext);
39
+ const index = defaultContexts.length;
40
+ defaultContexts = [
41
+ ...defaultContexts,
42
+ defaultContext
43
+ ];
44
+ function Provider(props) {
45
+ const { scope: scope , children: children , ...context } = props;
46
+ const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change
47
+ // eslint-disable-next-line react-hooks/exhaustive-deps
48
+ const value = useMemo(()=>context
49
+ , Object.values(context));
50
+ return /*#__PURE__*/ createElement(Context.Provider, {
51
+ value: value
52
+ }, children);
53
+ }
54
+ function useContext$1(consumerName, scope) {
55
+ const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
56
+ const context = useContext(Context);
57
+ if (context) return context;
58
+ if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.
59
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
60
+ }
61
+ Provider.displayName = rootComponentName + 'Provider';
62
+ return [
63
+ Provider,
64
+ useContext$1
65
+ ];
66
+ }
67
+ /* -----------------------------------------------------------------------------------------------
68
+ * createScope
69
+ * ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{
70
+ const scopeContexts = defaultContexts.map((defaultContext)=>{
71
+ return /*#__PURE__*/ createContext(defaultContext);
72
+ });
73
+ return function useScope(scope) {
74
+ const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
75
+ return useMemo(()=>({
76
+ [`__scope${scopeName}`]: {
77
+ ...scope,
78
+ [scopeName]: contexts
79
+ }
80
+ })
81
+ , [
82
+ scope,
83
+ contexts
84
+ ]);
85
+ };
86
+ };
87
+ createScope.scopeName = scopeName;
88
+ return [
89
+ $c512c27ab02ef895$export$fd42f52fd3ae1109,
90
+ $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
91
+ ];
92
+ }
93
+ /* -------------------------------------------------------------------------------------------------
94
+ * composeContextScopes
95
+ * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
96
+ const baseScope = scopes[0];
97
+ if (scopes.length === 1) return baseScope;
98
+ const createScope1 = ()=>{
99
+ const scopeHooks = scopes.map((createScope)=>({
100
+ useScope: createScope(),
101
+ scopeName: createScope.scopeName
102
+ })
103
+ );
104
+ return function useComposedScopes(overrideScopes) {
105
+ const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{
106
+ // We are calling a hook inside a callback which React warns against to avoid inconsistent
107
+ // renders, however, scoping doesn't have render side effects so we ignore the rule.
108
+ // eslint-disable-next-line react-hooks/rules-of-hooks
109
+ const scopeProps = useScope(overrideScopes);
110
+ const currentScope = scopeProps[`__scope${scopeName}`];
111
+ return {
112
+ ...nextScopes,
113
+ ...currentScope
114
+ };
115
+ }, {});
116
+ return useMemo(()=>({
117
+ [`__scope${baseScope.scopeName}`]: nextScopes1
118
+ })
119
+ , [
120
+ nextScopes1
121
+ ]);
122
+ };
123
+ };
124
+ createScope1.scopeName = baseScope.scopeName;
125
+ return createScope1;
126
+ }
127
+
128
+ /**
129
+ * Set a given ref to a given value
130
+ * This utility takes care of different types of refs: callback refs and RefObject(s)
131
+ */ function $6ed0406888f73fc4$var$setRef$1(ref, value) {
132
+ if (typeof ref === 'function') ref(value);
133
+ else if (ref !== null && ref !== undefined) ref.current = value;
134
+ }
135
+ /**
136
+ * A utility to compose multiple refs together
137
+ * Accepts callback refs and RefObject(s)
138
+ */ function $6ed0406888f73fc4$export$43e446d32b3d21af$1(...refs) {
139
+ return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef$1(ref, node)
140
+ )
141
+ ;
142
+ }
143
+ /**
144
+ * A custom hook that composes multiple refs
145
+ * Accepts callback refs and RefObject(s)
146
+ */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(...refs) {
147
+ // eslint-disable-next-line react-hooks/exhaustive-deps
148
+ return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af$1(...refs), refs);
149
+ }
150
+
22
151
  // We have resorted to returning slots directly rather than exposing primitives that can then
23
152
  // be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
24
153
  // This is because we encountered issues with generic types that cannot be statically analysed
@@ -50,7 +179,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
50
179
  const CollectionSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
51
180
  const { scope: scope , children: children } = props;
52
181
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
53
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
182
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.collectionRef);
54
183
  return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
55
184
  ref: composedRefs
56
185
  }, children);
@@ -62,7 +191,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
62
191
  const CollectionItemSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
63
192
  const { scope: scope , children: children , ...itemData } = props;
64
193
  const ref = React__default.useRef(null);
65
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
194
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
66
195
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
67
196
  React__default.useEffect(()=>{
68
197
  context.itemMap.set(ref, {
@@ -112,10 +241,104 @@ const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ createContext(undef
112
241
  return localDir || globalDir || 'ltr';
113
242
  }
114
243
 
244
+ const $8927f6f2acc4f386$var$NODES$2 = [
245
+ 'a',
246
+ 'button',
247
+ 'div',
248
+ 'h2',
249
+ 'h3',
250
+ 'img',
251
+ 'label',
252
+ 'li',
253
+ 'nav',
254
+ 'ol',
255
+ 'p',
256
+ 'span',
257
+ 'svg',
258
+ 'ul'
259
+ ]; // Temporary while we await merge of this fix:
260
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
261
+ // prettier-ignore
262
+ /* -------------------------------------------------------------------------------------------------
263
+ * Primitive
264
+ * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034$2 = $8927f6f2acc4f386$var$NODES$2.reduce((primitive, node)=>{
265
+ const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
266
+ const { asChild: asChild , ...primitiveProps } = props;
267
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
268
+ useEffect(()=>{
269
+ window[Symbol.for('radix-ui')] = true;
270
+ }, []);
271
+ return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
272
+ ref: forwardedRef
273
+ }));
274
+ });
275
+ Node.displayName = `Primitive.${node}`;
276
+ return {
277
+ ...primitive,
278
+ [node]: Node
279
+ };
280
+ }, {});
281
+ /* -------------------------------------------------------------------------------------------------
282
+ * Utils
283
+ * -----------------------------------------------------------------------------------------------*/ /**
284
+ * Flush custom event dispatch
285
+ * https://github.com/radix-ui/primitives/pull/1378
286
+ *
287
+ * React batches *all* event handlers since version 18, this introduces certain considerations when using custom event types.
288
+ *
289
+ * Internally, React prioritises events in the following order:
290
+ * - discrete
291
+ * - continuous
292
+ * - default
293
+ *
294
+ * https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350
295
+ *
296
+ * `discrete` is an important distinction as updates within these events are applied immediately.
297
+ * React however, is not able to infer the priority of custom event types due to how they are detected internally.
298
+ * Because of this, it's possible for updates from custom events to be unexpectedly batched when
299
+ * dispatched by another `discrete` event.
300
+ *
301
+ * In order to ensure that updates from custom events are applied predictably, we need to manually flush the batch.
302
+ * This utility should be used when dispatching a custom event from within another `discrete` event, this utility
303
+ * is not nessesary when dispatching known event types, or if dispatching a custom type inside a non-discrete event.
304
+ * For example:
305
+ *
306
+ * dispatching a known click 👎
307
+ * target.dispatchEvent(new Event(‘click’))
308
+ *
309
+ * dispatching a custom type within a non-discrete event 👎
310
+ * onScroll={(event) => event.target.dispatchEvent(new CustomEvent(‘customType’))}
311
+ *
312
+ * dispatching a custom type within a `discrete` event 👍
313
+ * onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))}
314
+ *
315
+ * Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use
316
+ * this utility with them. This is because it's possible for those handlers to be called implicitly during render
317
+ * e.g. when focus is within a component as it is unmounted, or when managing focus on mount.
318
+ */ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
319
+ if (target) flushSync(()=>target.dispatchEvent(event)
320
+ );
321
+ }
322
+
323
+ /**
324
+ * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
325
+ * prop or avoid re-executing effects when passed as a dependency
326
+ */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(callback) {
327
+ const callbackRef = useRef(callback);
328
+ useEffect(()=>{
329
+ callbackRef.current = callback;
330
+ }); // https://github.com/facebook/react/issues/19240
331
+ return useMemo(()=>(...args)=>{
332
+ var _callbackRef$current;
333
+ return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
334
+ }
335
+ , []);
336
+ }
337
+
115
338
  /**
116
339
  * Listens for when the escape key is down
117
340
  */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
118
- const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
341
+ const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onEscapeKeyDownProp);
119
342
  useEffect(()=>{
120
343
  const handleKeyDown = (event)=>{
121
344
  if (event.key === 'Escape') onEscapeKeyDown(event);
@@ -145,7 +368,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
145
368
  const [node1, setNode] = useState(null);
146
369
  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;
147
370
  const [, force] = useState({});
148
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setNode(node)
371
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setNode(node)
149
372
  );
150
373
  const layers = Array.from(context.layers);
151
374
  const [highestLayerWithOutsidePointerEventsDisabled] = [
@@ -229,7 +452,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
229
452
  return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
230
453
  ;
231
454
  }, []);
232
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
455
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.div, _extends({}, layerProps, {
233
456
  ref: composedRefs,
234
457
  style: {
235
458
  pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
@@ -245,7 +468,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
245
468
  * to mimic layer dismissing behaviour present in OS.
246
469
  * Returns props to pass to the node we want to check for outside events.
247
470
  */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
248
- const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
471
+ const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onPointerDownOutside);
249
472
  const isPointerInsideReactTreeRef = useRef(false);
250
473
  const handleClickRef = useRef(()=>{});
251
474
  useEffect(()=>{
@@ -313,7 +536,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
313
536
  * Listens for when focus happens outside a react subtree.
314
537
  * Returns props to pass to the root (node) of the subtree we want to check.
315
538
  */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
316
- const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
539
+ const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onFocusOutside);
317
540
  const isFocusInsideReactTreeRef = useRef(false);
318
541
  useEffect(()=>{
319
542
  const handleFocus = (event)=>{
@@ -383,6 +606,82 @@ function $3db38b7d1fb3fe6a$var$createFocusGuard() {
383
606
  return element;
384
607
  }
385
608
 
609
+ /**
610
+ * Set a given ref to a given value
611
+ * This utility takes care of different types of refs: callback refs and RefObject(s)
612
+ */ function $6ed0406888f73fc4$var$setRef(ref, value) {
613
+ if (typeof ref === 'function') ref(value);
614
+ else if (ref !== null && ref !== undefined) ref.current = value;
615
+ }
616
+ /**
617
+ * A utility to compose multiple refs together
618
+ * Accepts callback refs and RefObject(s)
619
+ */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
620
+ return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
621
+ )
622
+ ;
623
+ }
624
+ /**
625
+ * A custom hook that composes multiple refs
626
+ * Accepts callback refs and RefObject(s)
627
+ */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
628
+ // eslint-disable-next-line react-hooks/exhaustive-deps
629
+ return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
630
+ }
631
+
632
+ const $8927f6f2acc4f386$var$NODES$1 = [
633
+ 'a',
634
+ 'button',
635
+ 'div',
636
+ 'h2',
637
+ 'h3',
638
+ 'img',
639
+ 'label',
640
+ 'li',
641
+ 'nav',
642
+ 'ol',
643
+ 'p',
644
+ 'span',
645
+ 'svg',
646
+ 'ul'
647
+ ]; // Temporary while we await merge of this fix:
648
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
649
+ // prettier-ignore
650
+ /* -------------------------------------------------------------------------------------------------
651
+ * Primitive
652
+ * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034$1 = $8927f6f2acc4f386$var$NODES$1.reduce((primitive, node)=>{
653
+ const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
654
+ const { asChild: asChild , ...primitiveProps } = props;
655
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
656
+ useEffect(()=>{
657
+ window[Symbol.for('radix-ui')] = true;
658
+ }, []);
659
+ return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
660
+ ref: forwardedRef
661
+ }));
662
+ });
663
+ Node.displayName = `Primitive.${node}`;
664
+ return {
665
+ ...primitive,
666
+ [node]: Node
667
+ };
668
+ }, {});
669
+
670
+ /**
671
+ * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
672
+ * prop or avoid re-executing effects when passed as a dependency
673
+ */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
674
+ const callbackRef = useRef(callback);
675
+ useEffect(()=>{
676
+ callbackRef.current = callback;
677
+ }); // https://github.com/facebook/react/issues/19240
678
+ return useMemo(()=>(...args)=>{
679
+ var _callbackRef$current;
680
+ return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
681
+ }
682
+ , []);
683
+ }
684
+
386
685
  const $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';
387
686
  const $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';
388
687
  const $d3863c46a17e8a28$var$EVENT_OPTIONS = {
@@ -503,7 +802,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ forwardRef((prop
503
802
  trapped,
504
803
  focusScope.paused
505
804
  ]);
506
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
805
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
507
806
  tabIndex: -1
508
807
  }, scopeProps, {
509
808
  ref: composedRefs,
@@ -644,11 +943,92 @@ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
644
943
  const $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
645
944
  var _globalThis$document;
646
945
  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;
647
- return container ? /*#__PURE__*/ $7SXl2$reactdom.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, portalProps, {
946
+ return container ? /*#__PURE__*/ $7SXl2$reactdom.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.div, _extends({}, portalProps, {
648
947
  ref: forwardedRef
649
948
  })), container) : null;
650
949
  });
651
950
 
951
+ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
952
+ const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
953
+ defaultProp: defaultProp,
954
+ onChange: onChange
955
+ });
956
+ const isControlled = prop !== undefined;
957
+ const value1 = isControlled ? prop : uncontrolledProp;
958
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
959
+ const setValue = useCallback((nextValue)=>{
960
+ if (isControlled) {
961
+ const setter = nextValue;
962
+ const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
963
+ if (value !== prop) handleChange(value);
964
+ } else setUncontrolledProp(nextValue);
965
+ }, [
966
+ isControlled,
967
+ prop,
968
+ setUncontrolledProp,
969
+ handleChange
970
+ ]);
971
+ return [
972
+ value1,
973
+ setValue
974
+ ];
975
+ }
976
+ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
977
+ const uncontrolledState = useState(defaultProp);
978
+ const [value] = uncontrolledState;
979
+ const prevValueRef = useRef(value);
980
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
981
+ useEffect(()=>{
982
+ if (prevValueRef.current !== value) {
983
+ handleChange(value);
984
+ prevValueRef.current = value;
985
+ }
986
+ }, [
987
+ value,
988
+ prevValueRef,
989
+ handleChange
990
+ ]);
991
+ return uncontrolledState;
992
+ }
993
+
994
+ const $8927f6f2acc4f386$var$NODES = [
995
+ 'a',
996
+ 'button',
997
+ 'div',
998
+ 'h2',
999
+ 'h3',
1000
+ 'img',
1001
+ 'label',
1002
+ 'li',
1003
+ 'nav',
1004
+ 'ol',
1005
+ 'p',
1006
+ 'span',
1007
+ 'svg',
1008
+ 'ul'
1009
+ ]; // Temporary while we await merge of this fix:
1010
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
1011
+ // prettier-ignore
1012
+ /* -------------------------------------------------------------------------------------------------
1013
+ * Primitive
1014
+ * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{
1015
+ const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
1016
+ const { asChild: asChild , ...primitiveProps } = props;
1017
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
1018
+ useEffect(()=>{
1019
+ window[Symbol.for('radix-ui')] = true;
1020
+ }, []);
1021
+ return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
1022
+ ref: forwardedRef
1023
+ }));
1024
+ });
1025
+ Node.displayName = `Primitive.${node}`;
1026
+ return {
1027
+ ...primitive,
1028
+ [node]: Node
1029
+ };
1030
+ }, {});
1031
+
652
1032
  const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
653
1033
  return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, props, {
654
1034
  ref: forwardedRef,
@@ -669,849 +1049,6 @@ const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ forwardRef((prop
669
1049
  }));
670
1050
  });
671
1051
 
672
- var getDefaultParent = function (originalTarget) {
673
- if (typeof document === 'undefined') {
674
- return null;
675
- }
676
- var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
677
- return sampleTarget.ownerDocument.body;
678
- };
679
- var counterMap = new WeakMap();
680
- var uncontrolledNodes = new WeakMap();
681
- var markerMap = {};
682
- var lockCount = 0;
683
- var unwrapHost = function (node) {
684
- return node && (node.host || unwrapHost(node.parentNode));
685
- };
686
- var correctTargets = function (parent, targets) {
687
- return targets.map(function (target) {
688
- if (parent.contains(target)) {
689
- return target;
690
- }
691
- var correctedTarget = unwrapHost(target);
692
- if (correctedTarget && parent.contains(correctedTarget)) {
693
- return correctedTarget;
694
- }
695
- console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');
696
- return null;
697
- }).filter(function (x) { return Boolean(x); });
698
- };
699
- /**
700
- * Marks everything except given node(or nodes) as aria-hidden
701
- * @param {Element | Element[]} originalTarget - elements to keep on the page
702
- * @param [parentNode] - top element, defaults to document.body
703
- * @param {String} [markerName] - a special attribute to mark every node
704
- * @param {String} [controlAttribute] - html Attribute to control
705
- * @return {Undo} undo command
706
- */
707
- var applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {
708
- var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
709
- if (!markerMap[markerName]) {
710
- markerMap[markerName] = new WeakMap();
711
- }
712
- var markerCounter = markerMap[markerName];
713
- var hiddenNodes = [];
714
- var elementsToKeep = new Set();
715
- var elementsToStop = new Set(targets);
716
- var keep = function (el) {
717
- if (!el || elementsToKeep.has(el)) {
718
- return;
719
- }
720
- elementsToKeep.add(el);
721
- keep(el.parentNode);
722
- };
723
- targets.forEach(keep);
724
- var deep = function (parent) {
725
- if (!parent || elementsToStop.has(parent)) {
726
- return;
727
- }
728
- Array.prototype.forEach.call(parent.children, function (node) {
729
- if (elementsToKeep.has(node)) {
730
- deep(node);
731
- }
732
- else {
733
- var attr = node.getAttribute(controlAttribute);
734
- var alreadyHidden = attr !== null && attr !== 'false';
735
- var counterValue = (counterMap.get(node) || 0) + 1;
736
- var markerValue = (markerCounter.get(node) || 0) + 1;
737
- counterMap.set(node, counterValue);
738
- markerCounter.set(node, markerValue);
739
- hiddenNodes.push(node);
740
- if (counterValue === 1 && alreadyHidden) {
741
- uncontrolledNodes.set(node, true);
742
- }
743
- if (markerValue === 1) {
744
- node.setAttribute(markerName, 'true');
745
- }
746
- if (!alreadyHidden) {
747
- node.setAttribute(controlAttribute, 'true');
748
- }
749
- }
750
- });
751
- };
752
- deep(parentNode);
753
- elementsToKeep.clear();
754
- lockCount++;
755
- return function () {
756
- hiddenNodes.forEach(function (node) {
757
- var counterValue = counterMap.get(node) - 1;
758
- var markerValue = markerCounter.get(node) - 1;
759
- counterMap.set(node, counterValue);
760
- markerCounter.set(node, markerValue);
761
- if (!counterValue) {
762
- if (!uncontrolledNodes.has(node)) {
763
- node.removeAttribute(controlAttribute);
764
- }
765
- uncontrolledNodes.delete(node);
766
- }
767
- if (!markerValue) {
768
- node.removeAttribute(markerName);
769
- }
770
- });
771
- lockCount--;
772
- if (!lockCount) {
773
- // clear
774
- counterMap = new WeakMap();
775
- counterMap = new WeakMap();
776
- uncontrolledNodes = new WeakMap();
777
- markerMap = {};
778
- }
779
- };
780
- };
781
- /**
782
- * Marks everything except given node(or nodes) as aria-hidden
783
- * @param {Element | Element[]} originalTarget - elements to keep on the page
784
- * @param [parentNode] - top element, defaults to document.body
785
- * @param {String} [markerName] - a special attribute to mark every node
786
- * @return {Undo} undo command
787
- */
788
- var hideOthers = function (originalTarget, parentNode, markerName) {
789
- if (markerName === void 0) { markerName = 'data-aria-hidden'; }
790
- var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
791
- var activeParentNode = parentNode || getDefaultParent(originalTarget);
792
- if (!activeParentNode) {
793
- return function () { return null; };
794
- }
795
- // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10
796
- targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));
797
- return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');
798
- };
799
-
800
- /******************************************************************************
801
- Copyright (c) Microsoft Corporation.
802
-
803
- Permission to use, copy, modify, and/or distribute this software for any
804
- purpose with or without fee is hereby granted.
805
-
806
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
807
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
808
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
809
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
810
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
811
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
812
- PERFORMANCE OF THIS SOFTWARE.
813
- ***************************************************************************** */
814
-
815
- var __assign$1 = function() {
816
- __assign$1 = Object.assign || function __assign(t) {
817
- for (var s, i = 1, n = arguments.length; i < n; i++) {
818
- s = arguments[i];
819
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
820
- }
821
- return t;
822
- };
823
- return __assign$1.apply(this, arguments);
824
- };
825
-
826
- function __rest$1(s, e) {
827
- var t = {};
828
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
829
- t[p] = s[p];
830
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
831
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
832
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
833
- t[p[i]] = s[p[i]];
834
- }
835
- return t;
836
- }
837
-
838
- function __spreadArray(to, from, pack) {
839
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
840
- if (ar || !(i in from)) {
841
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
842
- ar[i] = from[i];
843
- }
844
- }
845
- return to.concat(ar || Array.prototype.slice.call(from));
846
- }
847
-
848
- var zeroRightClassName = 'right-scroll-bar-position';
849
- var fullWidthClassName = 'width-before-scroll-bar';
850
- var noScrollbarsClassName = 'with-scroll-bars-hidden';
851
- /**
852
- * Name of a CSS variable containing the amount of "hidden" scrollbar
853
- * ! might be undefined ! use will fallback!
854
- */
855
- var removedBarSizeVariable = '--removed-body-scroll-bar-size';
856
-
857
- /**
858
- * Assigns a value for a given ref, no matter of the ref format
859
- * @param {RefObject} ref - a callback function or ref object
860
- * @param value - a new value
861
- *
862
- * @see https://github.com/theKashey/use-callback-ref#assignref
863
- * @example
864
- * const refObject = useRef();
865
- * const refFn = (ref) => {....}
866
- *
867
- * assignRef(refObject, "refValue");
868
- * assignRef(refFn, "refValue");
869
- */
870
- function assignRef(ref, value) {
871
- if (typeof ref === 'function') {
872
- ref(value);
873
- }
874
- else if (ref) {
875
- ref.current = value;
876
- }
877
- return ref;
878
- }
879
-
880
- /**
881
- * creates a MutableRef with ref change callback
882
- * @param initialValue - initial ref value
883
- * @param {Function} callback - a callback to run when value changes
884
- *
885
- * @example
886
- * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
887
- * ref.current = 1;
888
- * // prints 0 -> 1
889
- *
890
- * @see https://reactjs.org/docs/hooks-reference.html#useref
891
- * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
892
- * @returns {MutableRefObject}
893
- */
894
- function useCallbackRef(initialValue, callback) {
895
- var ref = useState(function () { return ({
896
- // value
897
- value: initialValue,
898
- // last callback
899
- callback: callback,
900
- // "memoized" public interface
901
- facade: {
902
- get current() {
903
- return ref.value;
904
- },
905
- set current(value) {
906
- var last = ref.value;
907
- if (last !== value) {
908
- ref.value = value;
909
- ref.callback(value, last);
910
- }
911
- },
912
- },
913
- }); })[0];
914
- // update callback
915
- ref.callback = callback;
916
- return ref.facade;
917
- }
918
-
919
- /**
920
- * Merges two or more refs together providing a single interface to set their value
921
- * @param {RefObject|Ref} refs
922
- * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
923
- *
924
- * @see {@link mergeRefs} a version without buit-in memoization
925
- * @see https://github.com/theKashey/use-callback-ref#usemergerefs
926
- * @example
927
- * const Component = React.forwardRef((props, ref) => {
928
- * const ownRef = useRef();
929
- * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
930
- * return <div ref={domRef}>...</div>
931
- * }
932
- */
933
- function useMergeRefs(refs, defaultValue) {
934
- return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });
935
- }
936
-
937
- /*! *****************************************************************************
938
- Copyright (c) Microsoft Corporation.
939
-
940
- Permission to use, copy, modify, and/or distribute this software for any
941
- purpose with or without fee is hereby granted.
942
-
943
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
944
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
945
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
946
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
947
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
948
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
949
- PERFORMANCE OF THIS SOFTWARE.
950
- ***************************************************************************** */
951
-
952
- var __assign = function() {
953
- __assign = Object.assign || function __assign(t) {
954
- for (var s, i = 1, n = arguments.length; i < n; i++) {
955
- s = arguments[i];
956
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
957
- }
958
- return t;
959
- };
960
- return __assign.apply(this, arguments);
961
- };
962
-
963
- function __rest(s, e) {
964
- var t = {};
965
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
966
- t[p] = s[p];
967
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
968
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
969
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
970
- t[p[i]] = s[p[i]];
971
- }
972
- return t;
973
- }
974
-
975
- function ItoI(a) {
976
- return a;
977
- }
978
- function innerCreateMedium(defaults, middleware) {
979
- if (middleware === void 0) { middleware = ItoI; }
980
- var buffer = [];
981
- var assigned = false;
982
- var medium = {
983
- read: function () {
984
- if (assigned) {
985
- throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
986
- }
987
- if (buffer.length) {
988
- return buffer[buffer.length - 1];
989
- }
990
- return defaults;
991
- },
992
- useMedium: function (data) {
993
- var item = middleware(data, assigned);
994
- buffer.push(item);
995
- return function () {
996
- buffer = buffer.filter(function (x) { return x !== item; });
997
- };
998
- },
999
- assignSyncMedium: function (cb) {
1000
- assigned = true;
1001
- while (buffer.length) {
1002
- var cbs = buffer;
1003
- buffer = [];
1004
- cbs.forEach(cb);
1005
- }
1006
- buffer = {
1007
- push: function (x) { return cb(x); },
1008
- filter: function () { return buffer; },
1009
- };
1010
- },
1011
- assignMedium: function (cb) {
1012
- assigned = true;
1013
- var pendingQueue = [];
1014
- if (buffer.length) {
1015
- var cbs = buffer;
1016
- buffer = [];
1017
- cbs.forEach(cb);
1018
- pendingQueue = buffer;
1019
- }
1020
- var executeQueue = function () {
1021
- var cbs = pendingQueue;
1022
- pendingQueue = [];
1023
- cbs.forEach(cb);
1024
- };
1025
- var cycle = function () { return Promise.resolve().then(executeQueue); };
1026
- cycle();
1027
- buffer = {
1028
- push: function (x) {
1029
- pendingQueue.push(x);
1030
- cycle();
1031
- },
1032
- filter: function (filter) {
1033
- pendingQueue = pendingQueue.filter(filter);
1034
- return buffer;
1035
- },
1036
- };
1037
- },
1038
- };
1039
- return medium;
1040
- }
1041
- // eslint-disable-next-line @typescript-eslint/ban-types
1042
- function createSidecarMedium(options) {
1043
- if (options === void 0) { options = {}; }
1044
- var medium = innerCreateMedium(null);
1045
- medium.options = __assign({ async: true, ssr: false }, options);
1046
- return medium;
1047
- }
1048
-
1049
- var SideCar$1 = function (_a) {
1050
- var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
1051
- if (!sideCar) {
1052
- throw new Error('Sidecar: please provide `sideCar` property to import the right car');
1053
- }
1054
- var Target = sideCar.read();
1055
- if (!Target) {
1056
- throw new Error('Sidecar medium not found');
1057
- }
1058
- return React$1.createElement(Target, __assign({}, rest));
1059
- };
1060
- SideCar$1.isSideCarExport = true;
1061
- function exportSidecar(medium, exported) {
1062
- medium.useMedium(exported);
1063
- return SideCar$1;
1064
- }
1065
-
1066
- var effectCar = createSidecarMedium();
1067
-
1068
- var nothing = function () {
1069
- return;
1070
- };
1071
- /**
1072
- * Removes scrollbar from the page and contain the scroll within the Lock
1073
- */
1074
- var RemoveScroll = React$1.forwardRef(function (props, parentRef) {
1075
- var ref = React$1.useRef(null);
1076
- var _a = React$1.useState({
1077
- onScrollCapture: nothing,
1078
- onWheelCapture: nothing,
1079
- onTouchMoveCapture: nothing,
1080
- }), callbacks = _a[0], setCallbacks = _a[1];
1081
- 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"]);
1082
- var SideCar = sideCar;
1083
- var containerRef = useMergeRefs([ref, parentRef]);
1084
- var containerProps = __assign$1(__assign$1({}, rest), callbacks);
1085
- return (React$1.createElement(React$1.Fragment, null,
1086
- enabled && (React$1.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),
1087
- forwardProps ? (React$1.cloneElement(React$1.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef }))) : (React$1.createElement(Container, __assign$1({}, containerProps, { className: className, ref: containerRef }), children))));
1088
- });
1089
- RemoveScroll.defaultProps = {
1090
- enabled: true,
1091
- removeScrollBar: true,
1092
- inert: false,
1093
- };
1094
- RemoveScroll.classNames = {
1095
- fullWidth: fullWidthClassName,
1096
- zeroRight: zeroRightClassName,
1097
- };
1098
-
1099
- var getNonce = function () {
1100
- if (typeof __webpack_nonce__ !== 'undefined') {
1101
- return __webpack_nonce__;
1102
- }
1103
- return undefined;
1104
- };
1105
-
1106
- function makeStyleTag() {
1107
- if (!document)
1108
- return null;
1109
- var tag = document.createElement('style');
1110
- tag.type = 'text/css';
1111
- var nonce = getNonce();
1112
- if (nonce) {
1113
- tag.setAttribute('nonce', nonce);
1114
- }
1115
- return tag;
1116
- }
1117
- function injectStyles(tag, css) {
1118
- // @ts-ignore
1119
- if (tag.styleSheet) {
1120
- // @ts-ignore
1121
- tag.styleSheet.cssText = css;
1122
- }
1123
- else {
1124
- tag.appendChild(document.createTextNode(css));
1125
- }
1126
- }
1127
- function insertStyleTag(tag) {
1128
- var head = document.head || document.getElementsByTagName('head')[0];
1129
- head.appendChild(tag);
1130
- }
1131
- var stylesheetSingleton = function () {
1132
- var counter = 0;
1133
- var stylesheet = null;
1134
- return {
1135
- add: function (style) {
1136
- if (counter == 0) {
1137
- if ((stylesheet = makeStyleTag())) {
1138
- injectStyles(stylesheet, style);
1139
- insertStyleTag(stylesheet);
1140
- }
1141
- }
1142
- counter++;
1143
- },
1144
- remove: function () {
1145
- counter--;
1146
- if (!counter && stylesheet) {
1147
- stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
1148
- stylesheet = null;
1149
- }
1150
- },
1151
- };
1152
- };
1153
-
1154
- /**
1155
- * creates a hook to control style singleton
1156
- * @see {@link styleSingleton} for a safer component version
1157
- * @example
1158
- * ```tsx
1159
- * const useStyle = styleHookSingleton();
1160
- * ///
1161
- * useStyle('body { overflow: hidden}');
1162
- */
1163
- var styleHookSingleton = function () {
1164
- var sheet = stylesheetSingleton();
1165
- return function (styles, isDynamic) {
1166
- React$1.useEffect(function () {
1167
- sheet.add(styles);
1168
- return function () {
1169
- sheet.remove();
1170
- };
1171
- }, [styles && isDynamic]);
1172
- };
1173
- };
1174
-
1175
- /**
1176
- * create a Component to add styles on demand
1177
- * - styles are added when first instance is mounted
1178
- * - styles are removed when the last instance is unmounted
1179
- * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
1180
- */
1181
- var styleSingleton = function () {
1182
- var useStyle = styleHookSingleton();
1183
- var Sheet = function (_a) {
1184
- var styles = _a.styles, dynamic = _a.dynamic;
1185
- useStyle(styles, dynamic);
1186
- return null;
1187
- };
1188
- return Sheet;
1189
- };
1190
-
1191
- var zeroGap = {
1192
- left: 0,
1193
- top: 0,
1194
- right: 0,
1195
- gap: 0,
1196
- };
1197
- var parse = function (x) { return parseInt(x || '', 10) || 0; };
1198
- var getOffset = function (gapMode) {
1199
- var cs = window.getComputedStyle(document.body);
1200
- var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
1201
- var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
1202
- var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
1203
- return [parse(left), parse(top), parse(right)];
1204
- };
1205
- var getGapWidth = function (gapMode) {
1206
- if (gapMode === void 0) { gapMode = 'margin'; }
1207
- if (typeof window === 'undefined') {
1208
- return zeroGap;
1209
- }
1210
- var offsets = getOffset(gapMode);
1211
- var documentWidth = document.documentElement.clientWidth;
1212
- var windowWidth = window.innerWidth;
1213
- return {
1214
- left: offsets[0],
1215
- top: offsets[1],
1216
- right: offsets[2],
1217
- gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
1218
- };
1219
- };
1220
-
1221
- var Style = styleSingleton();
1222
- // important tip - once we measure scrollBar width and remove them
1223
- // we could not repeat this operation
1224
- // thus we are using style-singleton - only the first "yet correct" style will be applied.
1225
- var getStyles = function (_a, allowRelative, gapMode, important) {
1226
- var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
1227
- if (gapMode === void 0) { gapMode = 'margin'; }
1228
- 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([
1229
- allowRelative && "position: relative ".concat(important, ";"),
1230
- gapMode === 'margin' &&
1231
- "\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 "),
1232
- gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
1233
- ]
1234
- .filter(Boolean)
1235
- .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");
1236
- };
1237
- /**
1238
- * Removes page scrollbar and blocks page scroll when mounted
1239
- */
1240
- var RemoveScrollBar = function (props) {
1241
- var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;
1242
- /*
1243
- gap will be measured on every component mount
1244
- however it will be used only by the "first" invocation
1245
- due to singleton nature of <Style
1246
- */
1247
- var gap = React$1.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
1248
- return React$1.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
1249
- };
1250
-
1251
- var passiveSupported = false;
1252
- if (typeof window !== 'undefined') {
1253
- try {
1254
- var options = Object.defineProperty({}, 'passive', {
1255
- get: function () {
1256
- passiveSupported = true;
1257
- return true;
1258
- },
1259
- });
1260
- // @ts-ignore
1261
- window.addEventListener('test', options, options);
1262
- // @ts-ignore
1263
- window.removeEventListener('test', options, options);
1264
- }
1265
- catch (err) {
1266
- passiveSupported = false;
1267
- }
1268
- }
1269
- var nonPassive = passiveSupported ? { passive: false } : false;
1270
-
1271
- var alwaysContainsScroll = function (node) {
1272
- // textarea will always _contain_ scroll inside self. It only can be hidden
1273
- return node.tagName === 'TEXTAREA';
1274
- };
1275
- var elementCanBeScrolled = function (node, overflow) {
1276
- var styles = window.getComputedStyle(node);
1277
- return (
1278
- // not-not-scrollable
1279
- styles[overflow] !== 'hidden' &&
1280
- // contains scroll inside self
1281
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
1282
- };
1283
- var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
1284
- var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
1285
- var locationCouldBeScrolled = function (axis, node) {
1286
- var current = node;
1287
- do {
1288
- // Skip over shadow root
1289
- if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
1290
- current = current.host;
1291
- }
1292
- var isScrollable = elementCouldBeScrolled(axis, current);
1293
- if (isScrollable) {
1294
- var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];
1295
- if (s > d) {
1296
- return true;
1297
- }
1298
- }
1299
- current = current.parentNode;
1300
- } while (current && current !== document.body);
1301
- return false;
1302
- };
1303
- var getVScrollVariables = function (_a) {
1304
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
1305
- return [
1306
- scrollTop,
1307
- scrollHeight,
1308
- clientHeight,
1309
- ];
1310
- };
1311
- var getHScrollVariables = function (_a) {
1312
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
1313
- return [
1314
- scrollLeft,
1315
- scrollWidth,
1316
- clientWidth,
1317
- ];
1318
- };
1319
- var elementCouldBeScrolled = function (axis, node) {
1320
- return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
1321
- };
1322
- var getScrollVariables = function (axis, node) {
1323
- return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
1324
- };
1325
- var getDirectionFactor = function (axis, direction) {
1326
- /**
1327
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
1328
- * and then increasingly negative as you scroll towards the end of the content.
1329
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
1330
- */
1331
- return axis === 'h' && direction === 'rtl' ? -1 : 1;
1332
- };
1333
- var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
1334
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
1335
- var delta = directionFactor * sourceDelta;
1336
- // find scrollable target
1337
- var target = event.target;
1338
- var targetInLock = endTarget.contains(target);
1339
- var shouldCancelScroll = false;
1340
- var isDeltaPositive = delta > 0;
1341
- var availableScroll = 0;
1342
- var availableScrollTop = 0;
1343
- do {
1344
- var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
1345
- var elementScroll = scroll_1 - capacity - directionFactor * position;
1346
- if (position || elementScroll) {
1347
- if (elementCouldBeScrolled(axis, target)) {
1348
- availableScroll += elementScroll;
1349
- availableScrollTop += position;
1350
- }
1351
- }
1352
- target = target.parentNode;
1353
- } while (
1354
- // portaled content
1355
- (!targetInLock && target !== document.body) ||
1356
- // self content
1357
- (targetInLock && (endTarget.contains(target) || endTarget === target)));
1358
- if (isDeltaPositive && ((noOverscroll && availableScroll === 0) || (!noOverscroll && delta > availableScroll))) {
1359
- shouldCancelScroll = true;
1360
- }
1361
- else if (!isDeltaPositive &&
1362
- ((noOverscroll && availableScrollTop === 0) || (!noOverscroll && -delta > availableScrollTop))) {
1363
- shouldCancelScroll = true;
1364
- }
1365
- return shouldCancelScroll;
1366
- };
1367
-
1368
- var getTouchXY = function (event) {
1369
- return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
1370
- };
1371
- var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
1372
- var extractRef = function (ref) {
1373
- return ref && 'current' in ref ? ref.current : ref;
1374
- };
1375
- var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
1376
- var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
1377
- var idCounter = 0;
1378
- var lockStack = [];
1379
- function RemoveScrollSideCar(props) {
1380
- var shouldPreventQueue = React$1.useRef([]);
1381
- var touchStartRef = React$1.useRef([0, 0]);
1382
- var activeAxis = React$1.useRef();
1383
- var id = React$1.useState(idCounter++)[0];
1384
- var Style = React$1.useState(function () { return styleSingleton(); })[0];
1385
- var lastProps = React$1.useRef(props);
1386
- React$1.useEffect(function () {
1387
- lastProps.current = props;
1388
- }, [props]);
1389
- React$1.useEffect(function () {
1390
- if (props.inert) {
1391
- document.body.classList.add("block-interactivity-".concat(id));
1392
- var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
1393
- allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
1394
- return function () {
1395
- document.body.classList.remove("block-interactivity-".concat(id));
1396
- allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
1397
- };
1398
- }
1399
- return;
1400
- }, [props.inert, props.lockRef.current, props.shards]);
1401
- var shouldCancelEvent = React$1.useCallback(function (event, parent) {
1402
- if ('touches' in event && event.touches.length === 2) {
1403
- return !lastProps.current.allowPinchZoom;
1404
- }
1405
- var touch = getTouchXY(event);
1406
- var touchStart = touchStartRef.current;
1407
- var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
1408
- var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
1409
- var currentAxis;
1410
- var target = event.target;
1411
- var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
1412
- // allow horizontal touch move on Range inputs. They will not cause any scroll
1413
- if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
1414
- return false;
1415
- }
1416
- var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1417
- if (!canBeScrolledInMainDirection) {
1418
- return true;
1419
- }
1420
- if (canBeScrolledInMainDirection) {
1421
- currentAxis = moveDirection;
1422
- }
1423
- else {
1424
- currentAxis = moveDirection === 'v' ? 'h' : 'v';
1425
- canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
1426
- // other axis might be not scrollable
1427
- }
1428
- if (!canBeScrolledInMainDirection) {
1429
- return false;
1430
- }
1431
- if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
1432
- activeAxis.current = currentAxis;
1433
- }
1434
- if (!currentAxis) {
1435
- return true;
1436
- }
1437
- var cancelingAxis = activeAxis.current || currentAxis;
1438
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
1439
- }, []);
1440
- var shouldPrevent = React$1.useCallback(function (_event) {
1441
- var event = _event;
1442
- if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
1443
- // not the last active
1444
- return;
1445
- }
1446
- var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
1447
- var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];
1448
- // self event, and should be canceled
1449
- if (sourceEvent && sourceEvent.should) {
1450
- if (event.cancelable) {
1451
- event.preventDefault();
1452
- }
1453
- return;
1454
- }
1455
- // outside or shard event
1456
- if (!sourceEvent) {
1457
- var shardNodes = (lastProps.current.shards || [])
1458
- .map(extractRef)
1459
- .filter(Boolean)
1460
- .filter(function (node) { return node.contains(event.target); });
1461
- var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
1462
- if (shouldStop) {
1463
- if (event.cancelable) {
1464
- event.preventDefault();
1465
- }
1466
- }
1467
- }
1468
- }, []);
1469
- var shouldCancel = React$1.useCallback(function (name, delta, target, should) {
1470
- var event = { name: name, delta: delta, target: target, should: should };
1471
- shouldPreventQueue.current.push(event);
1472
- setTimeout(function () {
1473
- shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
1474
- }, 1);
1475
- }, []);
1476
- var scrollTouchStart = React$1.useCallback(function (event) {
1477
- touchStartRef.current = getTouchXY(event);
1478
- activeAxis.current = undefined;
1479
- }, []);
1480
- var scrollWheel = React$1.useCallback(function (event) {
1481
- shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1482
- }, []);
1483
- var scrollTouchMove = React$1.useCallback(function (event) {
1484
- shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1485
- }, []);
1486
- React$1.useEffect(function () {
1487
- lockStack.push(Style);
1488
- props.setCallbacks({
1489
- onScrollCapture: scrollWheel,
1490
- onWheelCapture: scrollWheel,
1491
- onTouchMoveCapture: scrollTouchMove,
1492
- });
1493
- document.addEventListener('wheel', shouldPrevent, nonPassive);
1494
- document.addEventListener('touchmove', shouldPrevent, nonPassive);
1495
- document.addEventListener('touchstart', scrollTouchStart, nonPassive);
1496
- return function () {
1497
- lockStack = lockStack.filter(function (inst) { return inst !== Style; });
1498
- document.removeEventListener('wheel', shouldPrevent, nonPassive);
1499
- document.removeEventListener('touchmove', shouldPrevent, nonPassive);
1500
- document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
1501
- };
1502
- }, []);
1503
- var removeScrollBar = props.removeScrollBar, inert = props.inert;
1504
- return (React$1.createElement(React$1.Fragment, null,
1505
- inert ? React$1.createElement(Style, { styles: generateStyle(id) }) : null,
1506
- removeScrollBar ? React$1.createElement(RemoveScrollBar, { gapMode: "margin" }) : null));
1507
- }
1508
-
1509
- var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
1510
-
1511
- var ReactRemoveScroll = React$1.forwardRef(function (props, ref) { return (React$1.createElement(RemoveScroll, __assign$1({}, props, { ref: ref, sideCar: SideCar }))); });
1512
- ReactRemoveScroll.classNames = RemoveScroll.classNames;
1513
- var $01b9c$RemoveScroll = ReactRemoveScroll;
1514
-
1515
1052
  const $cc7e05a45900e73f$var$OPEN_KEYS = [
1516
1053
  ' ',
1517
1054
  'Enter',
@@ -1611,7 +1148,7 @@ const $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ forwardRef((props
1611
1148
  const { __scopeSelect: __scopeSelect , disabled: disabled = false , ...triggerProps } = props;
1612
1149
  const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$TRIGGER_NAME, __scopeSelect);
1613
1150
  const isDisabled = context.disabled || disabled;
1614
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onTriggerChange);
1151
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.onTriggerChange);
1615
1152
  const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);
1616
1153
  const [searchRef, handleTypeaheadSearch, resetTypeahead] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{
1617
1154
  const enabledItems = getItems().filter((item)=>!item.disabled
@@ -1627,7 +1164,7 @@ const $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ forwardRef((props
1627
1164
  resetTypeahead();
1628
1165
  }
1629
1166
  };
1630
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
1167
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.button, _extends({
1631
1168
  type: "button",
1632
1169
  role: "combobox",
1633
1170
  "aria-controls": context.contentId,
@@ -1687,14 +1224,14 @@ const $cc7e05a45900e73f$export$e288731fd71264f0 = /*#__PURE__*/ forwardRef((prop
1687
1224
  const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$VALUE_NAME, __scopeSelect);
1688
1225
  const { onValueNodeHasChildrenChange: onValueNodeHasChildrenChange } = context;
1689
1226
  const hasChildren = children !== undefined;
1690
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onValueNodeChange);
1227
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.onValueNodeChange);
1691
1228
  $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
1692
1229
  onValueNodeHasChildrenChange(hasChildren);
1693
1230
  }, [
1694
1231
  onValueNodeHasChildrenChange,
1695
1232
  hasChildren
1696
1233
  ]);
1697
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, valueProps, {
1234
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.span, _extends({}, valueProps, {
1698
1235
  ref: composedRefs // we don't want events from the portalled `SelectValue` children to bubble
1699
1236
  ,
1700
1237
  style: {
@@ -1704,7 +1241,7 @@ const $cc7e05a45900e73f$export$e288731fd71264f0 = /*#__PURE__*/ forwardRef((prop
1704
1241
  });
1705
1242
  const $cc7e05a45900e73f$export$99b400cabb58c515 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
1706
1243
  const { __scopeSelect: __scopeSelect , children: children , ...iconProps } = props;
1707
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
1244
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.span, _extends({
1708
1245
  "aria-hidden": true
1709
1246
  }, iconProps, {
1710
1247
  ref: forwardedRef
@@ -1740,7 +1277,7 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ forwardRef((props,
1740
1277
  const [contentWrapper, setContentWrapper] = useState(null);
1741
1278
  const [content, setContent] = useState(null);
1742
1279
  const [viewport, setViewport] = useState(null);
1743
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContent(node)
1280
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setContent(node)
1744
1281
  );
1745
1282
  const [selectedItem, setSelectedItem] = useState(null);
1746
1283
  const [selectedItemText, setSelectedItemText] = useState(null);
@@ -2100,7 +1637,7 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ forwardRef((props,
2100
1637
  const $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
2101
1638
  const { __scopeSelect: __scopeSelect , ...viewportProps } = props;
2102
1639
  const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);
2103
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentContext.onViewportChange);
1640
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, contentContext.onViewportChange);
2104
1641
  const prevScrollTopRef = useRef(0);
2105
1642
  return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement("style", {
2106
1643
  dangerouslySetInnerHTML: {
@@ -2108,7 +1645,7 @@ const $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ forwardRef((prop
2108
1645
  }
2109
1646
  }), /*#__PURE__*/ createElement($cc7e05a45900e73f$var$Collection.Slot, {
2110
1647
  scope: __scopeSelect
2111
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
1648
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.div, _extends({
2112
1649
  "data-radix-select-viewport": "",
2113
1650
  role: "presentation"
2114
1651
  }, viewportProps, {
@@ -2163,7 +1700,7 @@ const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ forwardRef((prop
2163
1700
  const isSelected = context.value === value;
2164
1701
  const [textValue, setTextValue] = useState(textValueProp !== null && textValueProp !== void 0 ? textValueProp : '');
2165
1702
  const [isFocused, setIsFocused] = useState(false);
2166
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>{
1703
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>{
2167
1704
  var _contentContext$itemR;
2168
1705
  return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);
2169
1706
  });
@@ -2191,7 +1728,7 @@ const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ forwardRef((prop
2191
1728
  value: value,
2192
1729
  disabled: disabled,
2193
1730
  textValue: textValue
2194
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
1731
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.div, _extends({
2195
1732
  role: "option",
2196
1733
  "aria-labelledby": textId,
2197
1734
  "data-highlighted": isFocused ? '' : undefined // `isFocused` caveat fixes stuttering in VoiceOver
@@ -2244,7 +1781,7 @@ const $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ forwardRef((prop
2244
1781
  const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
2245
1782
  const nativeOptionsContext = $cc7e05a45900e73f$var$useSelectNativeOptionsContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
2246
1783
  const [itemTextNode, setItemTextNode] = useState(null);
2247
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setItemTextNode(node)
1784
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setItemTextNode(node)
2248
1785
  , itemContext.onItemTextChange, (node)=>{
2249
1786
  var _contentContext$itemT;
2250
1787
  return (_contentContext$itemT = contentContext.itemTextRefCallback) === null || _contentContext$itemT === void 0 ? void 0 : _contentContext$itemT.call(contentContext, node, itemContext.value, itemContext.disabled);
@@ -2270,7 +1807,7 @@ const $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ forwardRef((prop
2270
1807
  onNativeOptionRemove,
2271
1808
  nativeOption
2272
1809
  ]);
2273
- return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
1810
+ return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.span, _extends({
2274
1811
  id: itemContext.textId
2275
1812
  }, itemTextProps, {
2276
1813
  ref: composedRefs
@@ -2282,7 +1819,7 @@ const $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ forwardRef((prop
2282
1819
  const $cc7e05a45900e73f$export$6b9198de19accfe6 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
2283
1820
  const { __scopeSelect: __scopeSelect , ...itemIndicatorProps } = props;
2284
1821
  const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_INDICATOR_NAME, __scopeSelect);
2285
- return itemContext.isSelected ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
1822
+ return itemContext.isSelected ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.span, _extends({
2286
1823
  "aria-hidden": true
2287
1824
  }, itemIndicatorProps, {
2288
1825
  ref: forwardedRef
@@ -2294,7 +1831,7 @@ const $cc7e05a45900e73f$export$6b9198de19accfe6 = /*#__PURE__*/ forwardRef((prop
2294
1831
  const $cc7e05a45900e73f$export$d8117927658af6d7 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
2295
1832
  const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
2296
1833
  const [canScrollUp1, setCanScrollUp] = useState(false);
2297
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentContext.onScrollButtonChange);
1834
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, contentContext.onScrollButtonChange);
2298
1835
  $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
2299
1836
  if (contentContext.viewport && contentContext.isPositioned) {
2300
1837
  const viewport = contentContext.viewport;
@@ -2325,7 +1862,7 @@ const $cc7e05a45900e73f$export$d8117927658af6d7 = /*#__PURE__*/ forwardRef((prop
2325
1862
  const $cc7e05a45900e73f$export$ff951e476c12189 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
2326
1863
  const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
2327
1864
  const [canScrollDown1, setCanScrollDown] = useState(false);
2328
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentContext.onScrollButtonChange);
1865
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, contentContext.onScrollButtonChange);
2329
1866
  $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
2330
1867
  if (contentContext.viewport && contentContext.isPositioned) {
2331
1868
  const viewport = contentContext.viewport;
@@ -2382,7 +1919,7 @@ const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ forwardRef((p
2382
1919
  }, [
2383
1920
  getItems
2384
1921
  ]);
2385
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
1922
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$2.div, _extends({
2386
1923
  "aria-hidden": true
2387
1924
  }, scrollIndicatorProps, {
2388
1925
  ref: forwardedRef,
@@ -2403,7 +1940,7 @@ const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ forwardRef((p
2403
1940
  /* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$BubbleSelect = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
2404
1941
  const { value: value , ...selectProps } = props;
2405
1942
  const ref = useRef(null);
2406
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
1943
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
2407
1944
  const prevValue = $010c2913dbd2fe3d$export$5cae361ad82dce8b(value); // Bubble value change to parents (e.g form change event)
2408
1945
  useEffect(()=>{
2409
1946
  const select = ref.current;
@@ -2441,7 +1978,7 @@ const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ forwardRef((p
2441
1978
  });
2442
1979
  $cc7e05a45900e73f$var$BubbleSelect.displayName = 'BubbleSelect';
2443
1980
  function $cc7e05a45900e73f$var$useTypeaheadSearch(onSearchChange) {
2444
- const handleSearchChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onSearchChange);
1981
+ const handleSearchChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onSearchChange);
2445
1982
  const searchRef = useRef('');
2446
1983
  const timerRef = useRef(0);
2447
1984
  const handleTypeaheadSearch = useCallback((key)=>{
@@ -2541,7 +2078,7 @@ var BtIconChevronUp2Px_2 = BtIconChevronUp2Px;
2541
2078
 
2542
2079
  /** Use `Select` to choose from a dropdown list of options. */
2543
2080
  var Select = function (_a) {
2544
- var isRequired = _a.isRequired, isDisabled = _a.isDisabled, placeholder = _a.placeholder, label = _a.label, options = _a.options, onOpenChange = _a.onOpenChange, isDefaultOpen = _a.isDefaultOpen, defaultValue = _a.defaultValue, errorMessage = _a.errorMessage, labelSize = _a.labelSize, helper = _a.helper, name = _a.name, isFluid = _a.isFluid, onBlur = _a.onBlur, onChange = _a.onChange, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure;
2081
+ var isRequired = _a.isRequired, isDisabled = _a.isDisabled, placeholder = _a.placeholder, label = _a.label, options = _a.options, onOpenChange = _a.onOpenChange, isDefaultOpen = _a.isDefaultOpen, defaultValue = _a.defaultValue, errorMessage = _a.errorMessage, labelSize = _a.labelSize, helper = _a.helper, name = _a.name, isFluid = _a.isFluid, onBlur = _a.onBlur, onChange = _a.onChange, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest(_a, ["isRequired", "isDisabled", "placeholder", "label", "options", "onOpenChange", "isDefaultOpen", "defaultValue", "errorMessage", "labelSize", "helper", "name", "isFluid", "onBlur", "onChange", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
2545
2082
  var id = useId();
2546
2083
  var arcRootElement = useContext(ArcRootElementContext);
2547
2084
  var surface = useContext(Context).surface;
@@ -2556,11 +2093,11 @@ var Select = function (_a) {
2556
2093
  };
2557
2094
  return (React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, label: label, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", isDisabled: isDisabled, disclosureText: disclosureText, disclosureTitle: disclosureTitle, onClickDisclosure: onClickDisclosure },
2558
2095
  React__default.createElement($cc7e05a45900e73f$export$be92b6f5f03c0fe9, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value: selectedValue, onOpenChange: onOpenChange, onValueChange: function (value) { return onValueChange(value); } },
2559
- React__default.createElement($cc7e05a45900e73f$export$41fb9f06171c75f4, { id: id, name: name, onBlur: onBlur, className: classNames("arc-Select-trigger", {
2096
+ React__default.createElement($cc7e05a45900e73f$export$41fb9f06171c75f4, __assign({ id: id, name: name, onBlur: onBlur, className: classNames("arc-Select-trigger", {
2560
2097
  "arc-Select-trigger--constrained": !isFluid,
2561
2098
  "arc-Select-trigger--onDarkSurface": surface === "dark",
2562
2099
  "arc-Select-trigger--invalid": errorMessage
2563
- }) },
2100
+ }) }, filterDataAttrs(props)),
2564
2101
  React__default.createElement($cc7e05a45900e73f$export$4c8d1a57a761ef94, { asChild: true, "aria-label": getSelectedValueName(selectedValue) }, !selectedValue ? (React__default.createElement("span", { "aria-hidden": true, className: "arc-Select-placeHolder" }, placeholder)) : (React__default.createElement("span", { className: "arc-Select-valueItem" }, getSelectedValueName(selectedValue)))),
2565
2102
  React__default.createElement($cc7e05a45900e73f$export$f04a61298a47a40f, { className: "arc-Select-triggerIcon" },
2566
2103
  React__default.createElement(Icon, { icon: BtIconChevronDown2Px_2, size: 20 }))),