@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,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC } from "react";
4
- import { FormControlProps } from "./FormControl-5e3fdca3";
4
+ import { FormControlProps } from "./FormControl-1e1bf2bf";
5
5
  type EventType = React.ChangeEvent<HTMLInputElement>;
6
6
  /**
7
7
  * Use `TextInput` to allow custom user text entry with a keyboard.
@@ -11,6 +11,8 @@ interface TextInputProps extends Omit<FormControlProps, "children" | "elementTyp
11
11
  /**
12
12
  * Uncontrolled default value of the TextInput. If the TextInput is controlled
13
13
  * via `value`/`onChange`, `defaultValue` will be ignored.
14
+ *
15
+ * `defaultValue` is not to be used instead of helper text.
14
16
  */
15
17
  defaultValue?: string;
16
18
  /**
@@ -1,4 +1,4 @@
1
- import { TextInputProps } from "./TextInput-7ed03a48";
1
+ import { TextInputProps } from "./TextInput-13050538";
2
2
  /**
3
3
  * Infer the correct inputMode, pattern and type if specifying a `number` type.
4
4
  */
@@ -3,8 +3,8 @@
3
3
  var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
4
4
  var index = require('./index-45bfb67b.js');
5
5
  var React = require('react');
6
- var FormControl = require('./FormControl-9aaddd54.js');
7
- var Surface = require('./Surface-6da0a78e.js');
6
+ var FormControl = require('./FormControl-1e1bf2bf.js');
7
+ var Surface = require('./Surface-b7c51b2b.js');
8
8
  var VisuallyHidden = require('./VisuallyHidden-e2c8b291.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -2,7 +2,7 @@
2
2
 
3
3
  var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
4
4
  var React = require('react');
5
- var Surface = require('./Surface-6da0a78e.js');
5
+ var Surface = require('./Surface-b7c51b2b.js');
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ function _extends() {
4
+ _extends = Object.assign || function (target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+
8
+ for (var key in source) {
9
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
10
+ target[key] = source[key];
11
+ }
12
+ }
13
+ }
14
+
15
+ return target;
16
+ };
17
+
18
+ return _extends.apply(this, arguments);
19
+ }
20
+
21
+ exports._extends = _extends;
@@ -0,0 +1,174 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index = require('./index-952918c9.js');
5
+ var _extends = require('./extends-bb8ffacd.js');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ /* -------------------------------------------------------------------------------------------------
12
+ * Slot
13
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
14
+ const { children: children , ...slotProps } = props;
15
+ const childrenArray = React.Children.toArray(children);
16
+ const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
17
+ if (slottable) {
18
+ // the new element to render is the one passed as a child of `Slottable`
19
+ const newElement = slottable.props.children;
20
+ const newChildren = childrenArray.map((child)=>{
21
+ if (child === slottable) {
22
+ // because the new element will be the one rendered, we are only interested
23
+ // in grabbing its children (`newElement.props.children`)
24
+ if (React.Children.count(newElement) > 1) return React.Children.only(null);
25
+ return /*#__PURE__*/ React.isValidElement(newElement) ? newElement.props.children : null;
26
+ } else return child;
27
+ });
28
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
29
+ ref: forwardedRef
30
+ }), /*#__PURE__*/ React.isValidElement(newElement) ? /*#__PURE__*/ React.cloneElement(newElement, undefined, newChildren) : null);
31
+ }
32
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
33
+ ref: forwardedRef
34
+ }), children);
35
+ });
36
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
37
+ /* -------------------------------------------------------------------------------------------------
38
+ * SlotClone
39
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
40
+ const { children: children , ...slotProps } = props;
41
+ if (/*#__PURE__*/ React.isValidElement(children)) return /*#__PURE__*/ React.cloneElement(children, {
42
+ ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
43
+ ref: forwardedRef ? index.$6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
44
+ });
45
+ return React.Children.count(children) > 1 ? React.Children.only(null) : null;
46
+ });
47
+ $5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
48
+ /* -------------------------------------------------------------------------------------------------
49
+ * Slottable
50
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
51
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, children);
52
+ };
53
+ /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
54
+ return /*#__PURE__*/ React.isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
55
+ }
56
+ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
57
+ // all child props should override
58
+ const overrideProps = {
59
+ ...childProps
60
+ };
61
+ for(const propName in childProps){
62
+ const slotPropValue = slotProps[propName];
63
+ const childPropValue = childProps[propName];
64
+ const isHandler = /^on[A-Z]/.test(propName);
65
+ if (isHandler) {
66
+ // if the handler exists on both, we compose them
67
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{
68
+ childPropValue(...args);
69
+ slotPropValue(...args);
70
+ };
71
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
72
+ } else if (propName === 'style') overrideProps[propName] = {
73
+ ...slotPropValue,
74
+ ...childPropValue
75
+ };
76
+ else if (propName === 'className') overrideProps[propName] = [
77
+ slotPropValue,
78
+ childPropValue
79
+ ].filter(Boolean).join(' ');
80
+ }
81
+ return {
82
+ ...slotProps,
83
+ ...overrideProps
84
+ };
85
+ }
86
+
87
+ // We have resorted to returning slots directly rather than exposing primitives that can then
88
+ // be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
89
+ // This is because we encountered issues with generic types that cannot be statically analysed
90
+ // due to creating them dynamically via createCollection.
91
+ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
92
+ /* -----------------------------------------------------------------------------------------------
93
+ * CollectionProvider
94
+ * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';
95
+ const [createCollectionContext, createCollectionScope] = index.$c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME);
96
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
97
+ collectionRef: {
98
+ current: null
99
+ },
100
+ itemMap: new Map()
101
+ });
102
+ const CollectionProvider = (props)=>{
103
+ const { scope: scope , children: children } = props;
104
+ const ref = React__default["default"].useRef(null);
105
+ const itemMap = React__default["default"].useRef(new Map()).current;
106
+ return /*#__PURE__*/ React__default["default"].createElement(CollectionProviderImpl, {
107
+ scope: scope,
108
+ itemMap: itemMap,
109
+ collectionRef: ref
110
+ }, children);
111
+ };
112
+ /* -----------------------------------------------------------------------------------------------
113
+ * CollectionSlot
114
+ * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';
115
+ const CollectionSlot = /*#__PURE__*/ React__default["default"].forwardRef((props, forwardedRef)=>{
116
+ const { scope: scope , children: children } = props;
117
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
118
+ const composedRefs = index.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
119
+ return /*#__PURE__*/ React__default["default"].createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
120
+ ref: composedRefs
121
+ }, children);
122
+ });
123
+ /* -----------------------------------------------------------------------------------------------
124
+ * CollectionItem
125
+ * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';
126
+ const ITEM_DATA_ATTR = 'data-radix-collection-item';
127
+ const CollectionItemSlot = /*#__PURE__*/ React__default["default"].forwardRef((props, forwardedRef)=>{
128
+ const { scope: scope , children: children , ...itemData } = props;
129
+ const ref = React__default["default"].useRef(null);
130
+ const composedRefs = index.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
131
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
132
+ React__default["default"].useEffect(()=>{
133
+ context.itemMap.set(ref, {
134
+ ref: ref,
135
+ ...itemData
136
+ });
137
+ return ()=>void context.itemMap.delete(ref)
138
+ ;
139
+ });
140
+ return /*#__PURE__*/ React__default["default"].createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
141
+ [ITEM_DATA_ATTR]: '',
142
+ ref: composedRefs
143
+ }, children);
144
+ });
145
+ /* -----------------------------------------------------------------------------------------------
146
+ * useCollection
147
+ * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {
148
+ const context = useCollectionContext(name + 'CollectionConsumer', scope);
149
+ const getItems = React__default["default"].useCallback(()=>{
150
+ const collectionNode = context.collectionRef.current;
151
+ if (!collectionNode) return [];
152
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
153
+ const items = Array.from(context.itemMap.values());
154
+ const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
155
+ );
156
+ return orderedItems;
157
+ }, [
158
+ context.collectionRef,
159
+ context.itemMap
160
+ ]);
161
+ return getItems;
162
+ }
163
+ return [
164
+ {
165
+ Provider: CollectionProvider,
166
+ Slot: CollectionSlot,
167
+ ItemSlot: CollectionItemSlot
168
+ },
169
+ useCollection,
170
+ createCollectionScope
171
+ ];
172
+ }
173
+
174
+ exports.$e02a7d9cb1dc128c$export$c74125a8e3af6bb2 = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2;
@@ -1,2 +1,2 @@
1
- export { Item } from "./SiteHeader.rehydrator-f7fa2efe";
1
+ export { Item } from "./SiteHeader.rehydrator-acc9d8c4";
2
2
  export {};
@@ -1,2 +1,2 @@
1
1
  export { SubNavItem } from "./SubNavItem-a84d1bf4";
2
- export { default as SubNavItemRehydrator } from "./SiteHeader.rehydrator-f7fa2efe";
2
+ export { default as SubNavItemRehydrator } from "./SiteHeader.rehydrator-acc9d8c4";
@@ -1,26 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
+ var _extends = require('./extends-bb8ffacd.js');
4
5
  var $7SXl2$reactdom = require('react-dom');
5
6
 
6
- function _extends() {
7
- _extends = Object.assign || function (target) {
8
- for (var i = 1; i < arguments.length; i++) {
9
- var source = arguments[i];
10
-
11
- for (var key in source) {
12
- if (Object.prototype.hasOwnProperty.call(source, key)) {
13
- target[key] = source[key];
14
- }
15
- }
16
- }
17
-
18
- return target;
19
- };
20
-
21
- return _extends.apply(this, arguments);
22
- }
23
-
24
7
  function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
25
8
  return function handleEvent(event) {
26
9
  originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
@@ -28,6 +11,29 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
28
11
  };
29
12
  }
30
13
 
14
+ /**
15
+ * Set a given ref to a given value
16
+ * This utility takes care of different types of refs: callback refs and RefObject(s)
17
+ */ function $6ed0406888f73fc4$var$setRef(ref, value) {
18
+ if (typeof ref === 'function') ref(value);
19
+ else if (ref !== null && ref !== undefined) ref.current = value;
20
+ }
21
+ /**
22
+ * A utility to compose multiple refs together
23
+ * Accepts callback refs and RefObject(s)
24
+ */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
25
+ return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
26
+ )
27
+ ;
28
+ }
29
+ /**
30
+ * A custom hook that composes multiple refs
31
+ * Accepts callback refs and RefObject(s)
32
+ */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
33
+ // eslint-disable-next-line react-hooks/exhaustive-deps
34
+ return React.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
35
+ }
36
+
31
37
  /* -------------------------------------------------------------------------------------------------
32
38
  * createContextScope
33
39
  * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
@@ -126,26 +132,61 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
126
132
  }
127
133
 
128
134
  /**
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(ref, value) {
132
- if (typeof ref === 'function') ref(value);
133
- else if (ref !== null && ref !== undefined) ref.current = value;
135
+ * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
136
+ * prop or avoid re-executing effects when passed as a dependency
137
+ */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
138
+ const callbackRef = React.useRef(callback);
139
+ React.useEffect(()=>{
140
+ callbackRef.current = callback;
141
+ }); // https://github.com/facebook/react/issues/19240
142
+ return React.useMemo(()=>(...args)=>{
143
+ var _callbackRef$current;
144
+ return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
145
+ }
146
+ , []);
134
147
  }
135
- /**
136
- * A utility to compose multiple refs together
137
- * Accepts callback refs and RefObject(s)
138
- */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
139
- return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
140
- )
141
- ;
148
+
149
+ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
150
+ const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
151
+ defaultProp: defaultProp,
152
+ onChange: onChange
153
+ });
154
+ const isControlled = prop !== undefined;
155
+ const value1 = isControlled ? prop : uncontrolledProp;
156
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
157
+ const setValue = React.useCallback((nextValue)=>{
158
+ if (isControlled) {
159
+ const setter = nextValue;
160
+ const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
161
+ if (value !== prop) handleChange(value);
162
+ } else setUncontrolledProp(nextValue);
163
+ }, [
164
+ isControlled,
165
+ prop,
166
+ setUncontrolledProp,
167
+ handleChange
168
+ ]);
169
+ return [
170
+ value1,
171
+ setValue
172
+ ];
142
173
  }
143
- /**
144
- * A custom hook that composes multiple refs
145
- * Accepts callback refs and RefObject(s)
146
- */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
147
- // eslint-disable-next-line react-hooks/exhaustive-deps
148
- return React.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
174
+ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
175
+ const uncontrolledState = React.useState(defaultProp);
176
+ const [value] = uncontrolledState;
177
+ const prevValueRef = React.useRef(value);
178
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
179
+ React.useEffect(()=>{
180
+ if (prevValueRef.current !== value) {
181
+ handleChange(value);
182
+ prevValueRef.current = value;
183
+ }
184
+ }, [
185
+ value,
186
+ prevValueRef,
187
+ handleChange
188
+ ]);
189
+ return uncontrolledState;
149
190
  }
150
191
 
151
192
  /* -------------------------------------------------------------------------------------------------
@@ -165,11 +206,11 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
165
206
  return /*#__PURE__*/ React.isValidElement(newElement) ? newElement.props.children : null;
166
207
  } else return child;
167
208
  });
168
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
209
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
169
210
  ref: forwardedRef
170
211
  }), /*#__PURE__*/ React.isValidElement(newElement) ? /*#__PURE__*/ React.cloneElement(newElement, undefined, newChildren) : null);
171
212
  }
172
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
213
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
173
214
  ref: forwardedRef
174
215
  }), children);
175
216
  });
@@ -180,7 +221,7 @@ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
180
221
  const { children: children , ...slotProps } = props;
181
222
  if (/*#__PURE__*/ React.isValidElement(children)) return /*#__PURE__*/ React.cloneElement(children, {
182
223
  ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
183
- ref: $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref)
224
+ ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
184
225
  });
185
226
  return React.Children.count(children) > 1 ? React.Children.only(null) : null;
186
227
  });
@@ -228,9 +269,11 @@ const $8927f6f2acc4f386$var$NODES = [
228
269
  'a',
229
270
  'button',
230
271
  'div',
272
+ 'form',
231
273
  'h2',
232
274
  'h3',
233
275
  'img',
276
+ 'input',
234
277
  'label',
235
278
  'li',
236
279
  'nav',
@@ -251,7 +294,7 @@ const $8927f6f2acc4f386$var$NODES = [
251
294
  React.useEffect(()=>{
252
295
  window[Symbol.for('radix-ui')] = true;
253
296
  }, []);
254
- return /*#__PURE__*/ React.createElement(Comp, _extends({}, primitiveProps, {
297
+ return /*#__PURE__*/ React.createElement(Comp, _extends._extends({}, primitiveProps, {
255
298
  ref: forwardedRef
256
299
  }));
257
300
  });
@@ -303,21 +346,6 @@ const $8927f6f2acc4f386$var$NODES = [
303
346
  );
304
347
  }
305
348
 
306
- /**
307
- * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
308
- * prop or avoid re-executing effects when passed as a dependency
309
- */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
310
- const callbackRef = React.useRef(callback);
311
- React.useEffect(()=>{
312
- callbackRef.current = callback;
313
- }); // https://github.com/facebook/react/issues/19240
314
- return React.useMemo(()=>(...args)=>{
315
- var _callbackRef$current;
316
- return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
317
- }
318
- , []);
319
- }
320
-
321
349
  /**
322
350
  * On the server, React emits a warning when calling `useLayoutEffect`.
323
351
  * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
@@ -326,75 +354,136 @@ const $8927f6f2acc4f386$var$NODES = [
326
354
  * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
327
355
  */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
328
356
 
329
- function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
330
- const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
331
- defaultProp: defaultProp,
332
- onChange: onChange
357
+ function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
358
+ return React.useReducer((state, event)=>{
359
+ const nextState = machine[state][event];
360
+ return nextState !== null && nextState !== void 0 ? nextState : state;
361
+ }, initialState);
362
+ }
363
+
364
+
365
+ const $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{
366
+ const { present: present , children: children } = props;
367
+ const presence = $921a889cee6df7e8$var$usePresence(present);
368
+ const child = typeof children === 'function' ? children({
369
+ present: presence.isPresent
370
+ }) : React.Children.only(children);
371
+ const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref, child.ref);
372
+ const forceMount = typeof children === 'function';
373
+ return forceMount || presence.isPresent ? /*#__PURE__*/ React.cloneElement(child, {
374
+ ref: ref
375
+ }) : null;
376
+ };
377
+ $921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
378
+ /* -------------------------------------------------------------------------------------------------
379
+ * usePresence
380
+ * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {
381
+ const [node1, setNode] = React.useState();
382
+ const stylesRef = React.useRef({});
383
+ const prevPresentRef = React.useRef(present);
384
+ const prevAnimationNameRef = React.useRef('none');
385
+ const initialState = present ? 'mounted' : 'unmounted';
386
+ const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {
387
+ mounted: {
388
+ UNMOUNT: 'unmounted',
389
+ ANIMATION_OUT: 'unmountSuspended'
390
+ },
391
+ unmountSuspended: {
392
+ MOUNT: 'mounted',
393
+ ANIMATION_END: 'unmounted'
394
+ },
395
+ unmounted: {
396
+ MOUNT: 'mounted'
397
+ }
333
398
  });
334
- const isControlled = prop !== undefined;
335
- const value1 = isControlled ? prop : uncontrolledProp;
336
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
337
- const setValue = React.useCallback((nextValue)=>{
338
- if (isControlled) {
339
- const setter = nextValue;
340
- const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
341
- if (value !== prop) handleChange(value);
342
- } else setUncontrolledProp(nextValue);
399
+ React.useEffect(()=>{
400
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
401
+ prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
343
402
  }, [
344
- isControlled,
345
- prop,
346
- setUncontrolledProp,
347
- handleChange
403
+ state
348
404
  ]);
349
- return [
350
- value1,
351
- setValue
352
- ];
353
- }
354
- function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
355
- const uncontrolledState = React.useState(defaultProp);
356
- const [value] = uncontrolledState;
357
- const prevValueRef = React.useRef(value);
358
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
359
- React.useEffect(()=>{
360
- if (prevValueRef.current !== value) {
361
- handleChange(value);
362
- prevValueRef.current = value;
405
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
406
+ const styles = stylesRef.current;
407
+ const wasPresent = prevPresentRef.current;
408
+ const hasPresentChanged = wasPresent !== present;
409
+ if (hasPresentChanged) {
410
+ const prevAnimationName = prevAnimationNameRef.current;
411
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
412
+ if (present) send('MOUNT');
413
+ else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run
414
+ // so we unmount instantly
415
+ send('UNMOUNT');
416
+ else {
417
+ /**
418
+ * When `present` changes to `false`, we check changes to animation-name to
419
+ * determine whether an animation has started. We chose this approach (reading
420
+ * computed styles) because there is no `animationrun` event and `animationstart`
421
+ * fires after `animation-delay` has expired which would be too late.
422
+ */ const isAnimating = prevAnimationName !== currentAnimationName;
423
+ if (wasPresent && isAnimating) send('ANIMATION_OUT');
424
+ else send('UNMOUNT');
425
+ }
426
+ prevPresentRef.current = present;
363
427
  }
364
428
  }, [
365
- value,
366
- prevValueRef,
367
- handleChange
429
+ present,
430
+ send
368
431
  ]);
369
- return uncontrolledState;
370
- }
371
-
372
- function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
373
- const ref = React.useRef({
374
- value: value,
375
- previous: value
376
- }); // We compare values before making an update to ensure that
377
- // a change has been made. This ensures the previous value is
378
- // persisted correctly between renders.
379
- return React.useMemo(()=>{
380
- if (ref.current.value !== value) {
381
- ref.current.previous = ref.current.value;
382
- ref.current.value = value;
383
- }
384
- return ref.current.previous;
432
+ $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
433
+ if (node1) {
434
+ /**
435
+ * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`
436
+ * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we
437
+ * make sure we only trigger ANIMATION_END for the currently active animation.
438
+ */ const handleAnimationEnd = (event)=>{
439
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
440
+ const isCurrentAnimation = currentAnimationName.includes(event.animationName);
441
+ if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied
442
+ // a frame after the animation ends, creating a flash of visible content.
443
+ // By manually flushing we ensure they sync within a frame, removing the flash.
444
+ $7SXl2$reactdom.flushSync(()=>send('ANIMATION_END')
445
+ );
446
+ };
447
+ const handleAnimationStart = (event)=>{
448
+ if (event.target === node1) // if animation occurred, store its name as the previous animation.
449
+ prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
450
+ };
451
+ node1.addEventListener('animationstart', handleAnimationStart);
452
+ node1.addEventListener('animationcancel', handleAnimationEnd);
453
+ node1.addEventListener('animationend', handleAnimationEnd);
454
+ return ()=>{
455
+ node1.removeEventListener('animationstart', handleAnimationStart);
456
+ node1.removeEventListener('animationcancel', handleAnimationEnd);
457
+ node1.removeEventListener('animationend', handleAnimationEnd);
458
+ };
459
+ } else // Transition to the unmounted state if the node is removed prematurely.
460
+ // We avoid doing so during cleanup as the node may change but still exist.
461
+ send('ANIMATION_END');
385
462
  }, [
386
- value
463
+ node1,
464
+ send
387
465
  ]);
466
+ return {
467
+ isPresent: [
468
+ 'mounted',
469
+ 'unmountSuspended'
470
+ ].includes(state),
471
+ ref: React.useCallback((node)=>{
472
+ if (node) stylesRef.current = getComputedStyle(node);
473
+ setNode(node);
474
+ }, [])
475
+ };
476
+ }
477
+ /* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {
478
+ return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';
388
479
  }
389
480
 
390
- exports.$010c2913dbd2fe3d$export$5cae361ad82dce8b = $010c2913dbd2fe3d$export$5cae361ad82dce8b;
391
- exports.$5e63c961fc1ce211$export$8c6ed5c666ac1360 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;
481
+ exports.$6ed0406888f73fc4$export$43e446d32b3d21af = $6ed0406888f73fc4$export$43e446d32b3d21af;
392
482
  exports.$6ed0406888f73fc4$export$c7b2cbe3552a0d05 = $6ed0406888f73fc4$export$c7b2cbe3552a0d05;
393
483
  exports.$71cd76cc60e0454e$export$6f32135080cb4c3 = $71cd76cc60e0454e$export$6f32135080cb4c3;
394
484
  exports.$8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$export$250ffa63cdc0d034;
395
485
  exports.$8927f6f2acc4f386$export$6d1a0317bde7de7f = $8927f6f2acc4f386$export$6d1a0317bde7de7f;
396
- exports.$9f79659886946c16$export$e5c5a5f917a5871c = $9f79659886946c16$export$e5c5a5f917a5871c;
486
+ exports.$921a889cee6df7e8$export$99c2b779aa4e8b8b = $921a889cee6df7e8$export$99c2b779aa4e8b8b;
397
487
  exports.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a;
398
488
  exports.$c512c27ab02ef895$export$50c7b4e9d9f19c1 = $c512c27ab02ef895$export$50c7b4e9d9f19c1;
399
489
  exports.$e42e1063c40fb3ef$export$b9ecd428b558ff10 = $e42e1063c40fb3ef$export$b9ecd428b558ff10;
400
- exports._extends = _extends;