@arc-ui/components 11.7.0 → 11.9.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 (249) hide show
  1. package/dist/Alert/Alert.cjs.d.ts +1 -1
  2. package/dist/Alert/Alert.cjs.js +10 -89
  3. package/dist/Alert/Alert.esm.d.ts +1 -1
  4. package/dist/Alert/Alert.esm.js +3 -82
  5. package/dist/Badge/Badge.cjs.d.ts +4 -0
  6. package/dist/Badge/Badge.cjs.js +4 -4
  7. package/dist/Badge/Badge.esm.d.ts +4 -0
  8. package/dist/Badge/Badge.esm.js +5 -5
  9. package/dist/Box/Box.cjs.d.ts +40 -1
  10. package/dist/Box/Box.cjs.js +25 -6
  11. package/dist/Box/Box.esm.d.ts +40 -1
  12. package/dist/Box/Box.esm.js +24 -5
  13. package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -1
  14. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +2 -2
  15. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -1
  16. package/dist/Breadcrumbs/Breadcrumbs.esm.js +2 -2
  17. package/dist/Button/Button.cjs.d.ts +1 -1
  18. package/dist/Button/Button.cjs.js +1 -1
  19. package/dist/Button/Button.esm.d.ts +1 -1
  20. package/dist/Button/Button.esm.js +1 -1
  21. package/dist/Card/Card.cjs.d.ts +1 -1
  22. package/dist/Card/Card.cjs.js +2 -2
  23. package/dist/Card/Card.esm.d.ts +1 -1
  24. package/dist/Card/Card.esm.js +2 -2
  25. package/dist/Checkbox/Checkbox.cjs.d.ts +1 -1
  26. package/dist/Checkbox/Checkbox.cjs.js +4 -4
  27. package/dist/Checkbox/Checkbox.esm.d.ts +1 -1
  28. package/dist/Checkbox/Checkbox.esm.js +4 -4
  29. package/dist/Columns/Columns.cjs.d.ts +1 -1
  30. package/dist/Columns/Columns.esm.d.ts +1 -1
  31. package/dist/Curve/Curve.cjs.d.ts +1 -1
  32. package/dist/Curve/Curve.cjs.js +1 -1
  33. package/dist/Curve/Curve.esm.d.ts +1 -1
  34. package/dist/Curve/Curve.esm.js +1 -1
  35. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  36. package/dist/Disclosure/Disclosure.cjs.js +1 -1
  37. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  38. package/dist/Disclosure/Disclosure.esm.js +1 -1
  39. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
  40. package/dist/DisclosureMini/DisclosureMini.cjs.js +2 -2
  41. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
  42. package/dist/DisclosureMini/DisclosureMini.esm.js +2 -2
  43. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  44. package/dist/FormControl/FormControl.cjs.js +3 -3
  45. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  46. package/dist/FormControl/FormControl.esm.js +3 -3
  47. package/dist/Heading/Heading.cjs.d.ts +1 -1
  48. package/dist/Heading/Heading.cjs.js +1 -1
  49. package/dist/Heading/Heading.esm.d.ts +1 -1
  50. package/dist/Heading/Heading.esm.js +1 -1
  51. package/dist/Modal/Modal.cjs.d.ts +31 -9
  52. package/dist/Modal/Modal.cjs.js +450 -161
  53. package/dist/Modal/Modal.esm.d.ts +31 -9
  54. package/dist/Modal/Modal.esm.js +423 -134
  55. package/dist/Pagination/Pagination.cjs.js +4 -4
  56. package/dist/Pagination/Pagination.esm.js +4 -4
  57. package/dist/PaginationSimple/PaginationSimple.cjs.js +4 -4
  58. package/dist/PaginationSimple/PaginationSimple.esm.js +4 -4
  59. package/dist/ProgressBar/ProgressBar.cjs.js +5 -5
  60. package/dist/ProgressBar/ProgressBar.esm.js +6 -6
  61. package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +1 -89
  62. package/dist/ProgressStepper/ProgressStepper.cjs.js +10 -144
  63. package/dist/ProgressStepper/ProgressStepper.esm.d.ts +1 -89
  64. package/dist/ProgressStepper/ProgressStepper.esm.js +9 -143
  65. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
  66. package/dist/RadioGroup/RadioGroup.cjs.js +4 -4
  67. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
  68. package/dist/RadioGroup/RadioGroup.esm.js +4 -4
  69. package/dist/Select/Select.cjs.d.ts +1 -1
  70. package/dist/Select/Select.cjs.js +995 -60
  71. package/dist/Select/Select.esm.d.ts +1 -1
  72. package/dist/Select/Select.esm.js +948 -32
  73. package/dist/SiteFooter/SiteFooter.cjs.d.ts +1 -1
  74. package/dist/SiteFooter/SiteFooter.cjs.js +2 -2
  75. package/dist/SiteFooter/SiteFooter.esm.d.ts +1 -1
  76. package/dist/SiteFooter/SiteFooter.esm.js +3 -3
  77. package/dist/SiteHeader/SiteHeader.cjs.d.ts +1 -1
  78. package/dist/SiteHeader/SiteHeader.cjs.js +3 -3
  79. package/dist/SiteHeader/SiteHeader.esm.d.ts +1 -1
  80. package/dist/SiteHeader/SiteHeader.esm.js +3 -3
  81. package/dist/Switch/Switch.cjs.d.ts +1 -1
  82. package/dist/Switch/Switch.cjs.js +241 -18
  83. package/dist/Switch/Switch.esm.d.ts +1 -1
  84. package/dist/Switch/Switch.esm.js +234 -11
  85. package/dist/Tabs/Tabs.cjs.d.ts +1 -0
  86. package/dist/Tabs/Tabs.cjs.js +20 -0
  87. package/dist/Tabs/Tabs.esm.d.ts +1 -0
  88. package/dist/Tabs/Tabs.esm.js +12 -0
  89. package/dist/Tabs/package.json +7 -0
  90. package/dist/Text/Text.cjs.d.ts +1 -1
  91. package/dist/Text/Text.cjs.js +1 -1
  92. package/dist/Text/Text.esm.d.ts +1 -1
  93. package/dist/Text/Text.esm.js +1 -1
  94. package/dist/TextArea/TextArea.cjs.d.ts +4 -1
  95. package/dist/TextArea/TextArea.cjs.js +30 -17
  96. package/dist/TextArea/TextArea.esm.d.ts +4 -1
  97. package/dist/TextArea/TextArea.esm.js +30 -17
  98. package/dist/TextInput/TextInput.cjs.d.ts +1 -1
  99. package/dist/TextInput/TextInput.cjs.js +4 -4
  100. package/dist/TextInput/TextInput.esm.d.ts +1 -1
  101. package/dist/TextInput/TextInput.esm.js +4 -4
  102. package/dist/Toast/Toast.cjs.d.ts +1 -0
  103. package/dist/Toast/Toast.cjs.js +23 -0
  104. package/dist/Toast/Toast.esm.d.ts +1 -0
  105. package/dist/Toast/Toast.esm.js +15 -0
  106. package/dist/Toast/package.json +7 -0
  107. package/dist/Truncate/Truncate.cjs.js +3 -2
  108. package/dist/Truncate/Truncate.esm.js +3 -2
  109. package/dist/_shared/cjs/{Breadcrumbs-9f580f69.js → Breadcrumbs-0906dd10.js} +9 -9
  110. package/dist/_shared/cjs/BtIconTick-42fcc5ec.js +91 -0
  111. package/dist/_shared/{esm/Button-9c3b0b11.d.ts → cjs/Button-5aaa6776.d.ts} +4 -0
  112. package/dist/_shared/cjs/{Button-b4d6ccc8.js → Button-5aaa6776.js} +2 -2
  113. package/dist/_shared/cjs/{Card-f1108bfe.js → Card-fd189ba8.js} +1 -1
  114. package/dist/_shared/cjs/{Checkbox-c927b62f.js → Checkbox-02c546ca.js} +1 -1
  115. package/dist/_shared/cjs/Columns-e90798f8.d.ts +1 -1
  116. package/dist/_shared/cjs/{Curve-b05589d8.d.ts → Curve-781ef633.d.ts} +5 -2
  117. package/dist/_shared/cjs/{Curve-b05589d8.js → Curve-781ef633.js} +5 -2
  118. package/dist/_shared/cjs/{DisclosureMini-2a10006e.js → DisclosureMini-52706ee6.js} +1 -1
  119. package/dist/_shared/cjs/{FormControl-78b007b7.js → FormControl-1e1bf2bf.js} +1 -1
  120. package/dist/_shared/cjs/{Heading-ed1cb455.d.ts → Heading-e3332dcf.d.ts} +4 -0
  121. package/dist/_shared/cjs/{Heading-ed1cb455.js → Heading-e3332dcf.js} +2 -2
  122. package/dist/{MediaCard/MediaCard.cjs.d.ts → _shared/cjs/MediaCard-9483ad5f.d.ts} +3 -4
  123. package/dist/_shared/cjs/ProgressStepper-f740d7bb.d.ts +89 -0
  124. package/dist/_shared/cjs/ProgressStepper-f740d7bb.js +149 -0
  125. package/dist/_shared/{esm/RadioGroup-65b8c8bf.d.ts → cjs/RadioGroup-d7664b0c.d.ts} +1 -1
  126. package/dist/_shared/cjs/{RadioGroup-8e17de70.js → RadioGroup-d7664b0c.js} +1 -1
  127. package/dist/_shared/cjs/{SiteFooter-9f7f9c2d.js → SiteFooter-5da774e1.js} +1 -1
  128. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +2 -2
  129. package/dist/_shared/cjs/{SiteHeader.rehydrator-ccbebde6.js → SiteHeader.rehydrator-acc9d8c4.js} +2 -2
  130. package/dist/_shared/cjs/Tabs-fda49692.d.ts +75 -0
  131. package/dist/_shared/cjs/Tabs-fda49692.js +510 -0
  132. package/dist/_shared/{esm/Text-14deb70e.d.ts → cjs/Text-fa447e2d.d.ts} +4 -0
  133. package/dist/_shared/cjs/{Text-555a29a4.js → Text-fa447e2d.js} +2 -2
  134. package/dist/_shared/cjs/{TextInput-7ed03a48.d.ts → TextInput-13050538.d.ts} +3 -1
  135. package/dist/_shared/{esm/TextInput-62bb7dee.d.ts → cjs/TextInput-f4549637.d.ts} +1 -1
  136. package/dist/_shared/cjs/{TextInput-b768e346.js → TextInput-f4549637.js} +1 -1
  137. package/dist/_shared/cjs/Toast-0cb23cae.d.ts +52 -0
  138. package/dist/_shared/cjs/Toast-0cb23cae.js +739 -0
  139. package/dist/_shared/cjs/extends-bb8ffacd.js +21 -0
  140. package/dist/_shared/cjs/index-27b53d49.js +174 -0
  141. package/dist/_shared/cjs/index-699086a7.d.ts +1 -1
  142. package/dist/_shared/cjs/index-74488a9f.d.ts +1 -1
  143. package/dist/_shared/cjs/{index.module-9b87a34d.js → index-952918c9.js} +141 -33
  144. package/dist/_shared/cjs/index-96c4d581.js +289 -0
  145. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  146. package/dist/_shared/cjs/index-e340924e.d.ts +1 -1
  147. package/dist/_shared/cjs/index-e6d20018.d.ts +1 -1
  148. package/dist/_shared/cjs/index-eb06f640.d.ts +1 -1
  149. package/dist/_shared/cjs/{index-31fbb076.js → index-ec260f5e.js} +0 -547
  150. package/dist/_shared/cjs/index-f419cf04.d.ts +1 -1
  151. package/dist/_shared/cjs/index-fb4b8fda.js +47 -0
  152. package/dist/_shared/cjs/index.module-bbcc4e18.js +126 -0
  153. package/dist/_shared/esm/{Breadcrumbs-5dc0afa7.js → Breadcrumbs-dafa8dde.js} +9 -9
  154. package/dist/_shared/esm/BtIconTick-5fe50cc7.js +83 -0
  155. package/dist/_shared/{cjs/Button-b4d6ccc8.d.ts → esm/Button-d1dbcf79.d.ts} +4 -0
  156. package/dist/_shared/esm/{Button-9c3b0b11.js → Button-d1dbcf79.js} +2 -2
  157. package/dist/_shared/esm/{Card-79b6eae0.js → Card-e62c3ff6.js} +1 -1
  158. package/dist/_shared/esm/{Checkbox-2d144384.js → Checkbox-d8891198.js} +1 -1
  159. package/dist/_shared/esm/Columns-8704515b.d.ts +1 -1
  160. package/dist/_shared/esm/{Curve-3e87b1bc.d.ts → Curve-bbc5589c.d.ts} +5 -2
  161. package/dist/_shared/esm/{Curve-3e87b1bc.js → Curve-bbc5589c.js} +5 -2
  162. package/dist/_shared/esm/{DisclosureMini-78a8f392.js → DisclosureMini-9b819941.js} +1 -1
  163. package/dist/_shared/esm/{FormControl-2fa7aae5.js → FormControl-f18e2f59.js} +1 -1
  164. package/dist/_shared/esm/{Heading-ee6bec51.d.ts → Heading-0f629151.d.ts} +4 -0
  165. package/dist/_shared/esm/{Heading-ee6bec51.js → Heading-0f629151.js} +2 -2
  166. package/dist/{MediaCard/MediaCard.esm.d.ts → _shared/esm/MediaCard-9483ad5f.d.ts} +3 -4
  167. package/dist/_shared/esm/ProgressStepper-7ab88f4c.d.ts +89 -0
  168. package/dist/_shared/esm/ProgressStepper-7ab88f4c.js +143 -0
  169. package/dist/_shared/{cjs/RadioGroup-8e17de70.d.ts → esm/RadioGroup-be16d5d3.d.ts} +1 -1
  170. package/dist/_shared/esm/{RadioGroup-65b8c8bf.js → RadioGroup-be16d5d3.js} +1 -1
  171. package/dist/_shared/esm/{SiteFooter-51bdc7df.js → SiteFooter-a182cb18.js} +1 -1
  172. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +2 -2
  173. package/dist/_shared/esm/{SiteHeader.rehydrator-382d1c03.js → SiteHeader.rehydrator-023b7b76.js} +2 -2
  174. package/dist/_shared/esm/Tabs-5af0b940.d.ts +75 -0
  175. package/dist/_shared/esm/Tabs-5af0b940.js +504 -0
  176. package/dist/_shared/{cjs/Text-555a29a4.d.ts → esm/Text-40457811.d.ts} +4 -0
  177. package/dist/_shared/esm/{Text-14deb70e.js → Text-40457811.js} +2 -2
  178. package/dist/_shared/esm/{TextInput-7ed03a48.d.ts → TextInput-13050538.d.ts} +3 -1
  179. package/dist/_shared/{cjs/TextInput-b768e346.d.ts → esm/TextInput-4424c195.d.ts} +3 -3
  180. package/dist/_shared/esm/{TextInput-62bb7dee.js → TextInput-4424c195.js} +1 -1
  181. package/dist/_shared/esm/Toast-43795e91.d.ts +52 -0
  182. package/dist/_shared/esm/Toast-43795e91.js +733 -0
  183. package/dist/_shared/esm/extends-4575346e.js +19 -0
  184. package/dist/_shared/esm/{index.module-216016b5.js → index-22aad354.js} +138 -29
  185. package/dist/_shared/esm/{index-4fa635bd.js → index-369dce7f.js} +2 -541
  186. package/dist/_shared/esm/index-699086a7.d.ts +1 -1
  187. package/dist/_shared/esm/index-74488a9f.d.ts +1 -1
  188. package/dist/_shared/esm/index-8000d9e3.js +168 -0
  189. package/dist/_shared/esm/index-94ecc5f8.js +280 -0
  190. package/dist/_shared/esm/index-bed18a88.js +26 -0
  191. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  192. package/dist/_shared/esm/index-e340924e.d.ts +1 -1
  193. package/dist/_shared/esm/index-e6d20018.d.ts +1 -1
  194. package/dist/_shared/esm/index-eb06f640.d.ts +1 -1
  195. package/dist/_shared/esm/index-f419cf04.d.ts +1 -1
  196. package/dist/_shared/esm/index.module-5ed90b21.js +122 -0
  197. package/dist/index.es.js +5036 -1358
  198. package/dist/index.es.js.map +1 -1
  199. package/dist/index.js +5358 -1668
  200. package/dist/index.js.map +1 -1
  201. package/dist/styles.css +1 -1
  202. package/dist/types/components/Badge/Badge.d.ts +4 -0
  203. package/dist/types/components/Button/Button.d.ts +4 -0
  204. package/dist/types/components/Columns/Columns.d.ts +1 -1
  205. package/dist/types/components/Columns/index.d.ts +1 -1
  206. package/dist/types/components/Curve/Curve.d.ts +5 -2
  207. package/dist/types/components/Heading/Heading.d.ts +4 -0
  208. package/dist/types/components/Modal/Modal.d.ts +31 -9
  209. package/dist/types/components/Tabs/Tab/Tab.d.ts +22 -0
  210. package/dist/types/components/Tabs/Tab/index.d.ts +1 -0
  211. package/dist/types/components/Tabs/TabContent/TabContent.d.ts +12 -0
  212. package/dist/types/components/Tabs/TabContent/index.d.ts +1 -0
  213. package/dist/types/components/Tabs/Tabs.d.ts +27 -0
  214. package/dist/types/components/Tabs/TabsList/TabsList.d.ts +20 -0
  215. package/dist/types/components/Tabs/TabsList/index.d.ts +1 -0
  216. package/dist/types/components/Tabs/index.d.ts +1 -0
  217. package/dist/types/components/Text/Text.d.ts +4 -0
  218. package/dist/types/components/TextArea/TextArea.d.ts +3 -0
  219. package/dist/types/components/TextInput/TextInput.d.ts +2 -0
  220. package/dist/types/components/Toast/Toast.d.ts +14 -0
  221. package/dist/types/components/Toast/ToastNotification.d.ts +39 -0
  222. package/dist/types/components/Toast/index.d.ts +1 -0
  223. package/dist/types/components/index.d.ts +18 -6
  224. package/dist/types/styles.d.ts +3 -2
  225. package/package.json +8 -6
  226. package/dist/MediaCard/MediaCard.cjs.js +0 -31
  227. package/dist/MediaCard/MediaCard.esm.js +0 -23
  228. package/dist/MediaCard/package.json +0 -7
  229. package/dist/_shared/cjs/Box-ebe2b7be.d.ts +0 -39
  230. package/dist/_shared/cjs/Box-ebe2b7be.js +0 -30
  231. package/dist/_shared/cjs/index.module-5ea728f4.js +0 -23
  232. package/dist/_shared/esm/Box-06d99d8a.d.ts +0 -39
  233. package/dist/_shared/esm/Box-06d99d8a.js +0 -24
  234. package/dist/_shared/esm/index.module-88179159.js +0 -21
  235. package/dist/types/components/Modal/Modal.stories-wip.d.ts +0 -9
  236. /package/dist/_shared/cjs/{Breadcrumbs-9f580f69.d.ts → Breadcrumbs-0906dd10.d.ts} +0 -0
  237. /package/dist/_shared/cjs/{Card-f1108bfe.d.ts → Card-fd189ba8.d.ts} +0 -0
  238. /package/dist/_shared/cjs/{Checkbox-c927b62f.d.ts → Checkbox-02c546ca.d.ts} +0 -0
  239. /package/dist/_shared/cjs/{DisclosureMini-2a10006e.d.ts → DisclosureMini-52706ee6.d.ts} +0 -0
  240. /package/dist/_shared/cjs/{FormControl-78b007b7.d.ts → FormControl-1e1bf2bf.d.ts} +0 -0
  241. /package/dist/_shared/cjs/{SiteFooter-9f7f9c2d.d.ts → SiteFooter-5da774e1.d.ts} +0 -0
  242. /package/dist/_shared/cjs/{SiteHeader.rehydrator-ccbebde6.d.ts → SiteHeader.rehydrator-acc9d8c4.d.ts} +0 -0
  243. /package/dist/_shared/esm/{Breadcrumbs-5dc0afa7.d.ts → Breadcrumbs-dafa8dde.d.ts} +0 -0
  244. /package/dist/_shared/esm/{Card-79b6eae0.d.ts → Card-e62c3ff6.d.ts} +0 -0
  245. /package/dist/_shared/esm/{Checkbox-2d144384.d.ts → Checkbox-d8891198.d.ts} +0 -0
  246. /package/dist/_shared/esm/{DisclosureMini-78a8f392.d.ts → DisclosureMini-9b819941.d.ts} +0 -0
  247. /package/dist/_shared/esm/{FormControl-2fa7aae5.d.ts → FormControl-f18e2f59.d.ts} +0 -0
  248. /package/dist/_shared/esm/{SiteFooter-51bdc7df.d.ts → SiteFooter-a182cb18.d.ts} +0 -0
  249. /package/dist/_shared/esm/{SiteHeader.rehydrator-382d1c03.d.ts → SiteHeader.rehydrator-023b7b76.d.ts} +0 -0
@@ -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-ccbebde6";
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-ccbebde6";
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);
@@ -148,14 +131,6 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
148
131
  return createScope1;
149
132
  }
150
133
 
151
- /**
152
- * On the server, React emits a warning when calling `useLayoutEffect`.
153
- * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
154
- * We use this safe version which suppresses the warning by replacing it with a noop on the server.
155
- *
156
- * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
157
- */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
158
-
159
134
  /**
160
135
  * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
161
136
  * prop or avoid re-executing effects when passed as a dependency
@@ -231,11 +206,11 @@ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp ,
231
206
  return /*#__PURE__*/ React.isValidElement(newElement) ? newElement.props.children : null;
232
207
  } else return child;
233
208
  });
234
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
209
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
235
210
  ref: forwardedRef
236
211
  }), /*#__PURE__*/ React.isValidElement(newElement) ? /*#__PURE__*/ React.cloneElement(newElement, undefined, newChildren) : null);
237
212
  }
238
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
213
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
239
214
  ref: forwardedRef
240
215
  }), children);
241
216
  });
@@ -246,7 +221,7 @@ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
246
221
  const { children: children , ...slotProps } = props;
247
222
  if (/*#__PURE__*/ React.isValidElement(children)) return /*#__PURE__*/ React.cloneElement(children, {
248
223
  ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
249
- ref: $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref)
224
+ ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
250
225
  });
251
226
  return React.Children.count(children) > 1 ? React.Children.only(null) : null;
252
227
  });
@@ -294,9 +269,11 @@ const $8927f6f2acc4f386$var$NODES = [
294
269
  'a',
295
270
  'button',
296
271
  'div',
272
+ 'form',
297
273
  'h2',
298
274
  'h3',
299
275
  'img',
276
+ 'input',
300
277
  'label',
301
278
  'li',
302
279
  'nav',
@@ -317,7 +294,7 @@ const $8927f6f2acc4f386$var$NODES = [
317
294
  React.useEffect(()=>{
318
295
  window[Symbol.for('radix-ui')] = true;
319
296
  }, []);
320
- return /*#__PURE__*/ React.createElement(Comp, _extends({}, primitiveProps, {
297
+ return /*#__PURE__*/ React.createElement(Comp, _extends._extends({}, primitiveProps, {
321
298
  ref: forwardedRef
322
299
  }));
323
300
  });
@@ -369,13 +346,144 @@ const $8927f6f2acc4f386$var$NODES = [
369
346
  );
370
347
  }
371
348
 
372
- exports.$5e63c961fc1ce211$export$8c6ed5c666ac1360 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;
349
+ /**
350
+ * On the server, React emits a warning when calling `useLayoutEffect`.
351
+ * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
352
+ * We use this safe version which suppresses the warning by replacing it with a noop on the server.
353
+ *
354
+ * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
355
+ */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
356
+
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
+ }
398
+ });
399
+ React.useEffect(()=>{
400
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
401
+ prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
402
+ }, [
403
+ state
404
+ ]);
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;
427
+ }
428
+ }, [
429
+ present,
430
+ send
431
+ ]);
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');
462
+ }, [
463
+ node1,
464
+ send
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';
479
+ }
480
+
481
+ exports.$6ed0406888f73fc4$export$43e446d32b3d21af = $6ed0406888f73fc4$export$43e446d32b3d21af;
373
482
  exports.$6ed0406888f73fc4$export$c7b2cbe3552a0d05 = $6ed0406888f73fc4$export$c7b2cbe3552a0d05;
374
483
  exports.$71cd76cc60e0454e$export$6f32135080cb4c3 = $71cd76cc60e0454e$export$6f32135080cb4c3;
375
484
  exports.$8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$export$250ffa63cdc0d034;
376
485
  exports.$8927f6f2acc4f386$export$6d1a0317bde7de7f = $8927f6f2acc4f386$export$6d1a0317bde7de7f;
377
- exports.$9f79659886946c16$export$e5c5a5f917a5871c = $9f79659886946c16$export$e5c5a5f917a5871c;
486
+ exports.$921a889cee6df7e8$export$99c2b779aa4e8b8b = $921a889cee6df7e8$export$99c2b779aa4e8b8b;
378
487
  exports.$b1b2314f5f9a1d84$export$25bec8c6f54ee79a = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a;
379
488
  exports.$c512c27ab02ef895$export$50c7b4e9d9f19c1 = $c512c27ab02ef895$export$50c7b4e9d9f19c1;
380
489
  exports.$e42e1063c40fb3ef$export$b9ecd428b558ff10 = $e42e1063c40fb3ef$export$b9ecd428b558ff10;
381
- exports._extends = _extends;