@arc-ui/components 12.0.0 → 13.0.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 (253) hide show
  1. package/lib/Alert/styles.css +1 -1
  2. package/lib/Align/styles.css +1 -1
  3. package/lib/AppButton/styles.css +1 -1
  4. package/lib/Avatar/styles.css +1 -1
  5. package/lib/AvatarGroup/styles.css +1 -1
  6. package/lib/Badge/styles.css +1 -1
  7. package/lib/Banner/Banner.cjs +3 -3
  8. package/lib/Banner/Banner.mjs +3 -3
  9. package/lib/Box/styles.css +1 -1
  10. package/lib/BrandLogo/styles.css +1 -1
  11. package/lib/Breadcrumbs/Breadcrumbs.cjs +7 -7
  12. package/lib/Breadcrumbs/Breadcrumbs.mjs +7 -7
  13. package/lib/Breadcrumbs/styles.css +1 -1
  14. package/lib/Button/Button.cjs +1 -1
  15. package/lib/Button/Button.mjs +1 -1
  16. package/lib/Button/styles.css +1 -1
  17. package/lib/ButtonGroup/ButtonGroup.cjs +6 -3
  18. package/lib/ButtonGroup/ButtonGroup.mjs +6 -3
  19. package/lib/ButtonGroup/styles.css +1 -1
  20. package/lib/ButtonV2/ButtonV2.cjs +1 -1
  21. package/lib/ButtonV2/ButtonV2.mjs +1 -1
  22. package/lib/ButtonV2/styles.css +1 -1
  23. package/lib/Calendar/Calendar.cjs +6 -6
  24. package/lib/Calendar/Calendar.mjs +6 -6
  25. package/lib/Calendar/styles.css +1 -1
  26. package/lib/CardFooter/styles.css +1 -1
  27. package/lib/CardHeading/CardHeading.cjs +1 -1
  28. package/lib/CardHeading/CardHeading.mjs +1 -1
  29. package/lib/CardHeading/styles.css +1 -1
  30. package/lib/Carousel/Carousel.cjs +348 -8
  31. package/lib/Carousel/Carousel.mjs +348 -8
  32. package/lib/Carousel/styles.css +1 -1
  33. package/lib/Checkbox/Checkbox.cjs +7 -7
  34. package/lib/Checkbox/Checkbox.mjs +8 -8
  35. package/lib/Checkbox/styles.css +1 -1
  36. package/lib/CheckboxIcon/CheckboxIcon.cjs +1 -1
  37. package/lib/CheckboxIcon/CheckboxIcon.mjs +1 -1
  38. package/lib/CheckboxIcon/styles.css +1 -1
  39. package/lib/Columns/styles.css +1 -1
  40. package/lib/ComboBox/ComboBox.cjs +13 -13
  41. package/lib/ComboBox/ComboBox.mjs +14 -14
  42. package/lib/ComboBox/styles.css +1 -1
  43. package/lib/ContentSwitcher/ContentSwitcher.cjs +1 -1
  44. package/lib/ContentSwitcher/ContentSwitcher.mjs +4 -4
  45. package/lib/ContentSwitcher/styles.css +1 -1
  46. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +7 -7
  47. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +7 -7
  48. package/lib/ContentSwitcherDropdown/styles.css +1 -1
  49. package/lib/DatePicker/DatePicker.cjs +18 -18
  50. package/lib/DatePicker/DatePicker.mjs +19 -19
  51. package/lib/DatePicker/styles.css +1 -1
  52. package/lib/Disclosure/styles.css +1 -1
  53. package/lib/DisclosureMini/styles.css +1 -1
  54. package/lib/Download/styles.css +1 -1
  55. package/lib/Drawer/Drawer.cjs +36 -28
  56. package/lib/Drawer/Drawer.mjs +36 -28
  57. package/lib/Drawer/styles.css +1 -1
  58. package/lib/Elevation/styles.css +1 -1
  59. package/lib/Filter/styles.css +1 -1
  60. package/lib/FormControl/styles.css +1 -1
  61. package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +2 -2
  62. package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +2 -2
  63. package/lib/GhostedHeroBanner/styles.css +1 -1
  64. package/lib/GradientPageBackground/GradientPageBackground.cjs +3 -3
  65. package/lib/GradientPageBackground/GradientPageBackground.mjs +3 -3
  66. package/lib/GradientPageBackground/styles.css +1 -1
  67. package/lib/Grid/styles.css +1 -1
  68. package/lib/Group/styles.css +1 -1
  69. package/lib/Heading/styles.css +1 -1
  70. package/lib/HeroBanner/HeroBanner.cjs +3 -3
  71. package/lib/HeroBanner/HeroBanner.mjs +3 -3
  72. package/lib/HeroBanner/styles.css +1 -1
  73. package/lib/HeroButton/HeroButton.cjs +3 -3
  74. package/lib/HeroButton/HeroButton.mjs +4 -4
  75. package/lib/HeroButton/styles.css +1 -1
  76. package/lib/Hidden/styles.css +1 -1
  77. package/lib/HorizontalCard/HorizontalCard.cjs +1 -1
  78. package/lib/HorizontalCard/HorizontalCard.mjs +1 -1
  79. package/lib/HorizontalCard/styles.css +1 -1
  80. package/lib/Icon/styles.css +1 -1
  81. package/lib/Image/styles.css +1 -1
  82. package/lib/ImpactCard/ImpactCard.cjs +4 -4
  83. package/lib/ImpactCard/ImpactCard.mjs +4 -4
  84. package/lib/ImpactCard/styles.css +1 -1
  85. package/lib/InformationCard/InformationCard.cjs +7 -7
  86. package/lib/InformationCard/InformationCard.mjs +7 -7
  87. package/lib/InformationCard/styles.css +1 -1
  88. package/lib/Link/styles.css +1 -1
  89. package/lib/Markup/styles.css +1 -1
  90. package/lib/MediaCard/MediaCard.cjs +5 -5
  91. package/lib/MediaCard/MediaCard.mjs +5 -5
  92. package/lib/MediaCard/styles.css +1 -1
  93. package/lib/Menu/Menu.cjs +17 -16
  94. package/lib/Menu/Menu.mjs +17 -16
  95. package/lib/Menu/styles.css +1 -1
  96. package/lib/Modal/Modal.cjs +7 -7
  97. package/lib/Modal/Modal.mjs +7 -7
  98. package/lib/Modal/styles.css +1 -1
  99. package/lib/NavigationHeader/NavigationHeader.cjs +38 -50
  100. package/lib/NavigationHeader/NavigationHeader.mjs +39 -51
  101. package/lib/NavigationHeader/styles.css +1 -1
  102. package/lib/Pagination/styles.css +1 -1
  103. package/lib/PaginationSimple/styles.css +1 -1
  104. package/lib/Popover/Popover.cjs +7 -7
  105. package/lib/Popover/Popover.mjs +7 -7
  106. package/lib/Popover/styles.css +1 -1
  107. package/lib/Poster/styles.css +1 -1
  108. package/lib/ProgressBar/ProgressBar.cjs +2 -2
  109. package/lib/ProgressBar/ProgressBar.mjs +2 -2
  110. package/lib/ProgressBar/styles.css +1 -1
  111. package/lib/ProgressStepper/ProgressStepper.cjs +2 -2
  112. package/lib/ProgressStepper/ProgressStepper.mjs +2 -2
  113. package/lib/ProgressStepper/styles.css +1 -1
  114. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +76 -121
  115. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +77 -123
  116. package/lib/ProgressStepperOverflow/styles.css +1 -1
  117. package/lib/RadioCardGroup/RadioCardGroup.cjs +12 -8
  118. package/lib/RadioCardGroup/RadioCardGroup.mjs +12 -8
  119. package/lib/RadioCardGroup/styles.css +1 -1
  120. package/lib/RadioGroup/RadioGroup.cjs +6 -6
  121. package/lib/RadioGroup/RadioGroup.mjs +7 -7
  122. package/lib/RadioGroup/styles.css +1 -1
  123. package/lib/Rule/Rule.cjs +1 -1
  124. package/lib/Rule/Rule.mjs +1 -1
  125. package/lib/Rule/styles.css +1 -1
  126. package/lib/ScrollToTop/ScrollToTop.cjs +1 -1
  127. package/lib/ScrollToTop/ScrollToTop.mjs +1 -1
  128. package/lib/ScrollToTop/styles.css +1 -1
  129. package/lib/Section/styles.css +1 -1
  130. package/lib/Select/Select.cjs +6 -6
  131. package/lib/Select/Select.mjs +6 -6
  132. package/lib/Select/styles.css +1 -1
  133. package/lib/SemanticHeading/styles.css +1 -1
  134. package/lib/SiteFooter/styles.css +1 -1
  135. package/lib/SiteFooterV2/SiteFooterV2.cjs +1 -1
  136. package/lib/SiteFooterV2/SiteFooterV2.mjs +1 -1
  137. package/lib/SiteFooterV2/styles.css +1 -1
  138. package/lib/SiteHeaderV2/SiteHeaderV2.cjs +13 -9
  139. package/lib/SiteHeaderV2/SiteHeaderV2.mjs +13 -9
  140. package/lib/SiteHeaderV2/styles.css +1 -1
  141. package/lib/Skeleton/styles.css +1 -1
  142. package/lib/SkipLink/SkipLink.cjs +2 -2
  143. package/lib/SkipLink/SkipLink.mjs +3 -3
  144. package/lib/SkipLink/styles.css +1 -1
  145. package/lib/Spinner/styles.css +1 -1
  146. package/lib/Surface/styles.css +1 -1
  147. package/lib/Switch/Switch.mjs +1 -1
  148. package/lib/Switch/styles.css +1 -1
  149. package/lib/TabbedBanner/TabbedBanner.cjs +9 -9
  150. package/lib/TabbedBanner/TabbedBanner.mjs +12 -12
  151. package/lib/TabbedBanner/styles.css +1 -1
  152. package/lib/Tabs/Tabs.mjs +3 -3
  153. package/lib/Tabs/styles.css +1 -1
  154. package/lib/Tag/styles.css +1 -1
  155. package/lib/TemplateBanner/TemplateBanner.cjs +1 -1
  156. package/lib/TemplateBanner/TemplateBanner.mjs +1 -1
  157. package/lib/TemplateBanner/styles.css +1 -1
  158. package/lib/Text/styles.css +1 -1
  159. package/lib/TextArea/TextArea.cjs +3 -3
  160. package/lib/TextArea/TextArea.mjs +4 -4
  161. package/lib/TextArea/styles.css +1 -1
  162. package/lib/TextInput/TextInput.cjs +4 -4
  163. package/lib/TextInput/TextInput.mjs +4 -4
  164. package/lib/TextInput/styles.css +1 -1
  165. package/lib/Theme/Theme.cjs +1 -1
  166. package/lib/Theme/Theme.mjs +1 -1
  167. package/lib/Theme/styles.css +1 -1
  168. package/lib/ThemeIcon/styles.css +1 -1
  169. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +1 -1
  170. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
  171. package/lib/ThumbnailSignpost/styles.css +1 -1
  172. package/lib/Toast/Toast.mjs +2 -2
  173. package/lib/Toast/styles.css +1 -1
  174. package/lib/Tooltip/Tooltip.cjs +3 -3
  175. package/lib/Tooltip/Tooltip.mjs +3 -3
  176. package/lib/Tooltip/styles.css +1 -1
  177. package/lib/Truncate/styles.css +1 -1
  178. package/lib/TypographyCard/TypographyCard.cjs +4 -4
  179. package/lib/TypographyCard/TypographyCard.mjs +4 -4
  180. package/lib/TypographyCard/styles.css +1 -1
  181. package/lib/UniversalHeader/styles.css +1 -1
  182. package/lib/VerticalSpace/styles.css +1 -1
  183. package/lib/VideoPlayer/VideoPlayer.cjs +3 -3
  184. package/lib/VideoPlayer/VideoPlayer.mjs +3 -3
  185. package/lib/VideoPlayer/styles.css +1 -1
  186. package/lib/Visible/styles.css +1 -1
  187. package/lib/VisuallyHidden/styles.css +1 -1
  188. package/lib/_shared/cjs/{Button-BN4jUsg5.cjs → Button-CrevzrTg.cjs} +3 -3
  189. package/lib/_shared/cjs/{ButtonV2-bUu36xW8.cjs → ButtonV2-CxyploaQ.cjs} +3 -3
  190. package/lib/_shared/cjs/{Calendar-BvPNEvfm.cjs → Calendar-CdLn9iv6.cjs} +7 -7
  191. package/lib/_shared/cjs/{CardHeading-lGy1u6eD.cjs → CardHeading-C84m67_F.cjs} +2 -2
  192. package/lib/_shared/cjs/{CheckboxIcon-BTkdXfpp.cjs → CheckboxIcon-BzY1S_ud.cjs} +6 -5
  193. package/lib/_shared/cjs/{Combination-6m6aOXZq.cjs → Combination-Cm62lfyr.cjs} +1 -1
  194. package/lib/_shared/cjs/{ContentSwitcherDropdown-BLXyhXVS.cjs → ContentSwitcherDropdown-6IGRpV54.cjs} +2 -2
  195. package/lib/_shared/cjs/{ContentSwitcherList-BgAW2IhJ.cjs → ContentSwitcherList-Di7RS8ue.cjs} +28 -17
  196. package/lib/_shared/cjs/{Popover-CYcqjefw.cjs → Popover-BtvRErpC.cjs} +7 -4
  197. package/lib/_shared/cjs/{ProgressStepper-DTZQabiV.cjs → ProgressStepper-Cs6vX7Th.cjs} +19 -18
  198. package/lib/_shared/cjs/{Rule-jmvOpci7.cjs → Rule-essaguo_.cjs} +2 -2
  199. package/lib/_shared/cjs/{TemplateBanner-CzDAL0lq.cjs → TemplateBanner-DyXBKuMw.cjs} +2 -2
  200. package/lib/_shared/cjs/{TextInput-BHzuoI7E.cjs → TextInput-C_K2PLf5.cjs} +6 -6
  201. package/lib/_shared/cjs/{Tooltip-CEb7YEP2.cjs → Tooltip-CdmWvrnr.cjs} +2 -2
  202. package/lib/_shared/cjs/{arc-breakpoints-Cl4-g1TC.cjs → arc-breakpoints-uADxN-b4.cjs} +1 -1
  203. package/lib/_shared/cjs/{index-BGGFOAAx.cjs → index-BBDa9gnQ.cjs} +2 -2
  204. package/lib/_shared/cjs/{index-D9onmVh5.cjs → index-BDUrOKEW.cjs} +3 -3
  205. package/lib/_shared/cjs/{index-CklPiHsS.cjs → index-B_WZUATb.cjs} +2 -2
  206. package/lib/_shared/cjs/{index-B11wQrRa.cjs → index-BdJeAKfz.cjs} +1 -1
  207. package/lib/_shared/cjs/{index-CDVpHNP8.cjs → index-Dgn0408w.cjs} +4 -4
  208. package/lib/_shared/cjs/{index-DXNM3D1d.cjs → index-DlWZZNwu.cjs} +2 -2
  209. package/lib/_shared/cjs/{index-BWfgSvRQ.cjs → index-DsqYRMfM.cjs} +4 -4
  210. package/lib/_shared/cjs/{index-KrMgv4q_.cjs → index-WO7l1Mfx.cjs} +3 -3
  211. package/lib/_shared/cjs/{index.es-Dbvw_3_e.cjs → index.es-BAsay4oe.cjs} +1 -1
  212. package/lib/_shared/cjs/{use-media-query-DqZqShGX.cjs → use-media-query-BJV2IbHi.cjs} +4 -4
  213. package/lib/_shared/esm/{Button-DTiOFT9M.mjs → Button-Benn9Qop.mjs} +4 -4
  214. package/lib/_shared/esm/{ButtonV2-ByW5P8Hq.mjs → ButtonV2-CgjYgfZA.mjs} +4 -4
  215. package/lib/_shared/esm/{Calendar-DzsQqJlh.mjs → Calendar-CzFIMyD1.mjs} +8 -8
  216. package/lib/_shared/esm/{CardHeading-CfPEEmBO.mjs → CardHeading-CV14vmox.mjs} +2 -2
  217. package/lib/_shared/esm/{CheckboxIcon-BcVQe6mC.mjs → CheckboxIcon-CzRn1j8X.mjs} +6 -5
  218. package/lib/_shared/esm/{Combination-BQ4XBtF-.mjs → Combination-BW0YAEZD.mjs} +1 -1
  219. package/lib/_shared/esm/{ContentSwitcherDropdown-ckPG4pry.mjs → ContentSwitcherDropdown-CwoMd63a.mjs} +2 -2
  220. package/lib/_shared/esm/{ContentSwitcherList-i4m4nAzP.mjs → ContentSwitcherList-Bvp9Zl85.mjs} +30 -19
  221. package/lib/_shared/esm/{Popover-BHCEpLSa.mjs → Popover-DRQSgAog.mjs} +7 -4
  222. package/lib/_shared/esm/{ProgressStepper-CujHLQsm.mjs → ProgressStepper-DTPHHVFe.mjs} +20 -19
  223. package/lib/_shared/esm/{Rule-I1w3EaZi.mjs → Rule-Bz3QPezk.mjs} +3 -3
  224. package/lib/_shared/esm/{TemplateBanner-CZSTdma0.mjs → TemplateBanner-BPzuH5bz.mjs} +2 -2
  225. package/lib/_shared/esm/{TextInput-CZaNXVHl.mjs → TextInput-BCvKXfM_.mjs} +8 -8
  226. package/lib/_shared/esm/{Tooltip-BpSzN3Tx.mjs → Tooltip-DY8nS1to.mjs} +2 -2
  227. package/lib/_shared/esm/{arc-breakpoints-Br78xe-f.mjs → arc-breakpoints-ChQgbftE.mjs} +1 -1
  228. package/lib/_shared/esm/{index-u47CK8Y0.mjs → index-B3ewsmrD.mjs} +2 -2
  229. package/lib/_shared/esm/{index-GCEHSsY8.mjs → index-BMmvMegf.mjs} +2 -2
  230. package/lib/_shared/esm/{index-DXHprNQ6.mjs → index-C_mwuZg6.mjs} +1 -1
  231. package/lib/_shared/esm/{index-BWkI4Dwz.mjs → index-CfXVJXLq.mjs} +3 -3
  232. package/lib/_shared/esm/{index-CWHcEz3_.mjs → index-Cgsjp3NL.mjs} +1 -1
  233. package/lib/_shared/esm/{index-CN4hP3Wu.mjs → index-CjeQnMcn.mjs} +3 -3
  234. package/lib/_shared/esm/{index-BFKdmv_g.mjs → index-DNvlT7G_.mjs} +3 -3
  235. package/lib/_shared/esm/{index-Do2wfP-X.mjs → index-Dd3yZ_Kk.mjs} +4 -4
  236. package/lib/_shared/esm/{index-vnVJe9rH.mjs → index-Dfz5UgHo.mjs} +4 -4
  237. package/lib/_shared/esm/{index-Bz2JQq34.mjs → index-DkAfUbDx.mjs} +2 -2
  238. package/lib/_shared/esm/{index-6HtUz28p.mjs → index-Drb5ngQr.mjs} +1 -1
  239. package/lib/_shared/esm/{index.es-f0R-yhhl.mjs → index.es-99J0r2va.mjs} +2 -2
  240. package/lib/_shared/esm/{use-media-query-BmsMeo2M.mjs → use-media-query-l6Sou0dd.mjs} +4 -4
  241. package/lib/index.cjs +662 -346
  242. package/lib/index.cjs.map +1 -1
  243. package/lib/index.d.cts +1063 -328
  244. package/lib/index.d.mts +1063 -328
  245. package/lib/index.js.map +1 -1
  246. package/lib/index.mjs +663 -348
  247. package/lib/index.mjs.map +1 -1
  248. package/lib/styles.css +2 -2
  249. package/lib/use-media-query/use-media-query.cjs +1 -1
  250. package/lib/use-media-query/use-media-query.mjs +1 -1
  251. package/package.json +14 -12
  252. package/lib/_shared/cjs/capitalise-first-letter-CdhexpSx.cjs +0 -8
  253. package/lib/_shared/esm/capitalise-first-letter-Cubg2CS1.mjs +0 -6
package/lib/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import * as React from 'react';
3
- import React__default, { createContext, useContext, useId as useId$1, useRef, useState, useEffect, forwardRef, isValidElement, cloneElement, useMemo, useCallback, useReducer, useLayoutEffect, createElement, Children, Fragment as Fragment$1, Suspense, useImperativeHandle } from 'react';
3
+ import React__default, { createContext, useContext, useId as useId$1, useRef, useState, useEffect, isValidElement, cloneElement, useMemo, useCallback, useReducer, useLayoutEffect, createElement, forwardRef, Children, Fragment as Fragment$1, Suspense } from 'react';
4
4
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
5
5
  import * as ReactDOM from 'react-dom';
6
6
  import ReactDOM__default, { flushSync, createPortal } from 'react-dom';
@@ -847,7 +847,7 @@ var BannerRow = function (_a) {
847
847
 
848
848
  /** Use `TemplateBanner` as a base structure for banner components; other banner variants extend or consume this template. */
849
849
  var TemplateBanner = function (_a) {
850
- var heading = _a.heading, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, label = _a.label, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, text = _a.text, img = _a.img, _d = _a.contentRatio, contentRatio = _d === void 0 ? "1/1" : _d, children = _a.children, _e = _a.alignment, alignment = _e === void 0 ? "center" : _e, additionalTopMargin = _a.additionalTopMargin, _f = _a.minHeight, minHeight = _f === void 0 ? 454 : _f, minHeightM = _a.minHeightM, minHeightL = _a.minHeightL, minHeightXL = _a.minHeightXL, _g = _a.headingSize, headingSize = _g === void 0 ? "xl" : _g, _h = _a.isReversed, isReversed = _h === void 0 ? false : _h, _j = _a.isElevated, isElevated = _j === void 0 ? false : _j, _k = _a.headingLevel, headingLevel = _k === void 0 ? "2" : _k, _l = _a.type, type = _l === void 0 ? "light" : _l, props = __rest(_a, ["heading", "fontStyle", "label", "labelLevel", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "minHeightM", "minHeightL", "minHeightXL", "headingSize", "isReversed", "isElevated", "headingLevel", "type"]);
850
+ var heading = _a.heading, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, label = _a.label, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, text = _a.text, img = _a.img, _d = _a.contentRatio, contentRatio = _d === void 0 ? "1/1" : _d, children = _a.children, _e = _a.alignment, alignment = _e === void 0 ? "center" : _e, additionalTopMargin = _a.additionalTopMargin, _f = _a.minHeight, minHeight = _f === void 0 ? 454 : _f, minHeightM = _a.minHeightM, minHeightL = _a.minHeightL, minHeightXL = _a.minHeightXL, _g = _a.headingSize, headingSize = _g === void 0 ? "xl" : _g, _h = _a.isReversed, isReversed = _h === void 0 ? false : _h, _j = _a.isElevated, isElevated = _j === void 0 ? false : _j, _k = _a.headingLevel, headingLevel = _k === void 0 ? "2" : _k, _l = _a.headingWordWrap, headingWordWrap = _l === void 0 ? false : _l, _m = _a.type, type = _m === void 0 ? "light" : _m, props = __rest(_a, ["heading", "fontStyle", "label", "labelLevel", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "minHeightM", "minHeightL", "minHeightXL", "headingSize", "isReversed", "isElevated", "headingLevel", "headingWordWrap", "type"]);
851
851
  var backgrounds = {
852
852
  dark: "dark-brand-02",
853
853
  light: "light-white",
@@ -892,7 +892,7 @@ var TemplateBanner = function (_a) {
892
892
  label && (React__default.createElement(React__default.Fragment, null,
893
893
  React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline", isWordWrap: false }, label),
894
894
  React__default.createElement(VerticalSpace, { size: "8" }))),
895
- React__default.createElement(Heading, { level: headingLevel, size: headingSize, fontStyle: fontStyle, isWordWrap: false }, heading),
895
+ React__default.createElement(Heading, { level: headingLevel, size: headingSize, fontStyle: fontStyle, isWordWrap: headingWordWrap }, heading),
896
896
  text && (React__default.createElement(React__default.Fragment, null,
897
897
  React__default.createElement(VerticalSpace, { size: "16" }),
898
898
  React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
@@ -907,8 +907,8 @@ var TemplateBanner = function (_a) {
907
907
 
908
908
  /** Use `Banner` to promote key content or products with bold visuals and messaging. */
909
909
  var Banner = function (_a) {
910
- var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.type, type = _f === void 0 ? "light" : _f, _g = _a.alignment, alignment = _g === void 0 ? "center" : _g, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "type", "alignment"]);
911
- return (React__default.createElement(TemplateBanner, __assign({ heading: heading, label: label, text: text, img: img, contentRatio: contentRatio, minHeight: minHeight, isReversed: isReversed, isElevated: isElevated, headingLevel: headingLevel, type: type, headingSize: "m", alignment: alignment }, filterAttrs(props)), children));
910
+ var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.type, type = _f === void 0 ? "light" : _f, _g = _a.alignment, alignment = _g === void 0 ? "center" : _g, _h = _a.headingWordWrap, headingWordWrap = _h === void 0 ? false : _h, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "type", "alignment", "headingWordWrap"]);
911
+ return (React__default.createElement(TemplateBanner, __assign({ heading: heading, label: label, text: text, img: img, contentRatio: contentRatio, minHeight: minHeight, isReversed: isReversed, isElevated: isElevated, headingLevel: headingLevel, type: type, headingSize: "m", alignment: alignment, headingWordWrap: headingWordWrap }, filterAttrs(props)), children));
912
912
  };
913
913
 
914
914
  /**
@@ -1644,7 +1644,7 @@ var Breadcrumbs = function (_a) {
1644
1644
  window.removeEventListener("resize", handleResize);
1645
1645
  handleResize.cancel();
1646
1646
  };
1647
- }, []);
1647
+ }, [children]);
1648
1648
  var items = React__default.Children.toArray(children);
1649
1649
  return (React__default.createElement("nav", __assign({ "aria-label": "Breadcrumbs", className: classNames({
1650
1650
  "arc-Breadcrumbs": true,
@@ -1684,22 +1684,22 @@ var handleLinkClick = function (_a) {
1684
1684
  };
1685
1685
  };
1686
1686
 
1687
- var BreadcrumbsLink = React__default.forwardRef(function (_a, ref) {
1688
- var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children;
1689
- return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", { onClick: onClick, className: classNames({
1687
+ var BreadcrumbsLink = function (_a) {
1688
+ var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children, ref = _a.ref, props = __rest(_a, ["onClick", "href", "isActive", "children", "ref"]);
1689
+ return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", __assign({ onClick: onClick, className: classNames({
1690
1690
  "arc-Breadcrumbs-text": true,
1691
1691
  "arc-Breadcrumbs-text--active": isActive,
1692
- }) }, children)) : (React__default.createElement("a", __assign({}, (onClick && ref
1692
+ }) }, filterAttrs(props)), children)) : (React__default.createElement("a", __assign({}, (onClick && ref
1693
1693
  ? { onClick: onClick }
1694
- : { onClick: handleLinkClick({ handler: onClick }) }), { className: "arc-Breadcrumbs-text", ref: ref, href: href }), children))));
1695
- });
1694
+ : { onClick: handleLinkClick({ handler: onClick }) }), { className: "arc-Breadcrumbs-text", ref: ref, href: href }, filterAttrs(props)), children))));
1695
+ };
1696
1696
 
1697
1697
  /**
1698
1698
  * Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
1699
1699
  */
1700
- var Button = forwardRef(function (_a, ref) {
1700
+ var Button = function (_a) {
1701
1701
  var _b;
1702
- var ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, _h = _a.size, size = _h === void 0 ? "m" : _h, supportingText = _a.supportingText, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "size", "supportingText", "target", "type", "form"]);
1702
+ var ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, _h = _a.size, size = _h === void 0 ? "m" : _h, supportingText = _a.supportingText, target = _a.target, type = _a.type, form = _a.form, ref = _a.ref, props = __rest(_a, ["ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "size", "supportingText", "target", "type", "form", "ref"]);
1703
1703
  var surface = useContext(Context$3).surface;
1704
1704
  var buttonClasses = classNames((_b = {
1705
1705
  "arc-Button": true,
@@ -1727,7 +1727,7 @@ var Button = forwardRef(function (_a, ref) {
1727
1727
  React__default.createElement("span", { className: "arc-Button-inner" },
1728
1728
  buttonText,
1729
1729
  buttonIcon)));
1730
- });
1730
+ };
1731
1731
  var ButtonIcon = function (_a) {
1732
1732
  var icon = _a.icon, isChevron = _a.isChevron, isBeforeText = _a.isBeforeText;
1733
1733
  return (React__default.createElement("span", { className: "arc-Button-icon" }, isChevron ? (React__default.createElement(ThemeIcon, { icon: isBeforeText ? "buttonLeft" : "buttonRight" })) : (React__default.createElement(Icon$1, { icon: icon }))));
@@ -1745,8 +1745,8 @@ var Spinner = function (_a) {
1745
1745
  /**
1746
1746
  * Use `ButtonV2` for our most up to date Call To Action button, offering Primary, Secondary, Tertiary, Compact and Error states.
1747
1747
  */
1748
- var ButtonV2 = forwardRef(function (_a, ref) {
1749
- var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, iconActive = _a.iconActive, _c = _a.iconPosition, iconPosition = _c === void 0 ? "beforeText" : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, isSpan = _a.isSpan, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["label", "buttonStyle", "icon", "iconActive", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form"]);
1748
+ var ButtonV2 = function (_a) {
1749
+ var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, iconActive = _a.iconActive, _c = _a.iconPosition, iconPosition = _c === void 0 ? "beforeText" : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, isSpan = _a.isSpan, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, ref = _a.ref, props = __rest(_a, ["label", "buttonStyle", "icon", "iconActive", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form", "ref"]);
1750
1750
  var surface = useContext(Context$3).surface;
1751
1751
  var ButtonElement = isSpan ? "span" : "button";
1752
1752
  var iconSizes = {
@@ -1790,7 +1790,7 @@ var ButtonV2 = forwardRef(function (_a, ref) {
1790
1790
  return (React__default.createElement("a", __assign({}, commonProps, { className: ButtonV2Classes, href: href, rel: rel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, target: target }), renderButtonContent()));
1791
1791
  }
1792
1792
  return (React__default.createElement(ButtonElement, __assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }), renderButtonContent()));
1793
- });
1793
+ };
1794
1794
 
1795
1795
  /**
1796
1796
  * Use `ButtonGroup` to group multiple buttons together, ensuring consistent sizing, spacing,
@@ -1808,7 +1808,10 @@ var ButtonGroup = function (_a) {
1808
1808
  "arc-ButtonGroup--vertical": orientation === "vertical",
1809
1809
  }), role: "group", "aria-label": ariaLabel }, filterAttrs(props)), React__default.Children.map(children, function (child) {
1810
1810
  if (isValidElement(child) && isArcButton(child.type)) {
1811
- return cloneElement(child, __assign(__assign({}, child.props), { size: size, isFullWidth: isFullWidth }));
1811
+ return cloneElement(child, {
1812
+ size: size,
1813
+ isFullWidth: isFullWidth,
1814
+ });
1812
1815
  }
1813
1816
  return null;
1814
1817
  })));
@@ -2003,7 +2006,7 @@ function startOfMonth(dirtyDate) {
2003
2006
 
2004
2007
  /**
2005
2008
  * Do not edit directly
2006
- * Generated on Tue, 18 Nov 2025 18:15:01 GMT
2009
+ * Generated on Tue, 23 Dec 2025 14:36:38 GMT
2007
2010
  */
2008
2011
  var ArcSizeBreakpointsXs = "320px";
2009
2012
  var ArcSizeBreakpointsS = "636px";
@@ -2171,11 +2174,11 @@ var useMediaQuery = function (mediaQuery) {
2171
2174
  return window.matchMedia(query).matches;
2172
2175
  };
2173
2176
  var _a = useState(false), matches = _a[0], setMatches = _a[1];
2174
- // Handles the change event of the media query.
2175
- var handleChange = function () {
2176
- setMatches(getMatches(mediaQuery));
2177
- };
2178
2177
  useEffect(function () {
2178
+ // Handles the change event of the media query.
2179
+ var handleChange = function () {
2180
+ setMatches(getMatches(mediaQuery));
2181
+ };
2179
2182
  var matchMedia = window.matchMedia(mediaQuery);
2180
2183
  // Triggered at the first client-side load and if query changes
2181
2184
  handleChange();
@@ -2787,9 +2790,9 @@ function subDays(dirtyDate, dirtyAmount) {
2787
2790
  return addDays(dirtyDate, -amount);
2788
2791
  }
2789
2792
 
2790
- var defaultOptions$1 = {};
2793
+ var defaultOptions$3 = {};
2791
2794
  function getDefaultOptions() {
2792
- return defaultOptions$1;
2795
+ return defaultOptions$3;
2793
2796
  }
2794
2797
 
2795
2798
  /**
@@ -5248,8 +5251,8 @@ function cleanEscapedString(input) {
5248
5251
 
5249
5252
  var ArcCalendarContext = createContext(null);
5250
5253
 
5251
- var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
5252
- var date = _a.date, shouldRender = _a.shouldRender, isFocusWithinDayGrid = _a.isFocusWithinDayGrid;
5254
+ var CalendarDayNumber = function (_a) {
5255
+ var autoFocusRef = _a.ref, date = _a.date, shouldRender = _a.shouldRender, isFocusWithinDayGrid = _a.isFocusWithinDayGrid;
5253
5256
  var context = useContext(ArcCalendarContext);
5254
5257
  var isFocusDate = context && isEqual$1(date, context.focusDate);
5255
5258
  var tableCellRef = useCallback(function (el) {
@@ -5310,7 +5313,7 @@ var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
5310
5313
  React__default.createElement("div", { className: "arc-CalendarDayNumber-buttonInner" },
5311
5314
  React__default.createElement(Text, { size: "s" },
5312
5315
  React__default.createElement("span", { "aria-hidden": true }, getDate(date)))))))));
5313
- });
5316
+ };
5314
5317
 
5315
5318
  /**
5316
5319
  * Do not edit directly
@@ -6075,6 +6078,131 @@ var Calendar = function (_a) {
6075
6078
  onCancelClick && (React__default.createElement(CalendarFooter, { onCancelClick: onCancelButtonClick }))))));
6076
6079
  };
6077
6080
 
6081
+ const defaultOptions$2 = {
6082
+ active: true,
6083
+ breakpoints: {},
6084
+ snapped: 'is-snapped',
6085
+ inView: 'is-in-view',
6086
+ draggable: 'is-draggable',
6087
+ dragging: 'is-dragging',
6088
+ loop: 'is-loop'
6089
+ };
6090
+
6091
+ function normalizeClassNames(classNames) {
6092
+ const normalized = Array.isArray(classNames) ? classNames : [classNames];
6093
+ return normalized.filter(Boolean);
6094
+ }
6095
+ function removeClass(node, classNames) {
6096
+ if (!node || !classNames.length) return;
6097
+ node.classList.remove(...classNames);
6098
+ }
6099
+ function addClass(node, classNames) {
6100
+ if (!node || !classNames.length) return;
6101
+ node.classList.add(...classNames);
6102
+ }
6103
+
6104
+ function ClassNames(userOptions = {}) {
6105
+ let options;
6106
+ let emblaApi;
6107
+ let root;
6108
+ let slides;
6109
+ let snappedIndexes = [];
6110
+ let inViewIndexes = [];
6111
+ const selectedEvents = ['select'];
6112
+ const draggingEvents = ['pointerDown', 'pointerUp'];
6113
+ const inViewEvents = ['slidesInView'];
6114
+ const classNames = {
6115
+ snapped: [],
6116
+ inView: [],
6117
+ draggable: [],
6118
+ dragging: [],
6119
+ loop: []
6120
+ };
6121
+ function init(emblaApiInstance, optionsHandler) {
6122
+ emblaApi = emblaApiInstance;
6123
+ const {
6124
+ mergeOptions,
6125
+ optionsAtMedia
6126
+ } = optionsHandler;
6127
+ const optionsBase = mergeOptions(defaultOptions$2, ClassNames.globalOptions);
6128
+ const allOptions = mergeOptions(optionsBase, userOptions);
6129
+ options = optionsAtMedia(allOptions);
6130
+ root = emblaApi.rootNode();
6131
+ slides = emblaApi.slideNodes();
6132
+ const {
6133
+ watchDrag,
6134
+ loop
6135
+ } = emblaApi.internalEngine().options;
6136
+ const isDraggable = !!watchDrag;
6137
+ if (options.loop && loop) {
6138
+ classNames.loop = normalizeClassNames(options.loop);
6139
+ addClass(root, classNames.loop);
6140
+ }
6141
+ if (options.draggable && isDraggable) {
6142
+ classNames.draggable = normalizeClassNames(options.draggable);
6143
+ addClass(root, classNames.draggable);
6144
+ }
6145
+ if (options.dragging) {
6146
+ classNames.dragging = normalizeClassNames(options.dragging);
6147
+ draggingEvents.forEach(evt => emblaApi.on(evt, toggleDraggingClass));
6148
+ }
6149
+ if (options.snapped) {
6150
+ classNames.snapped = normalizeClassNames(options.snapped);
6151
+ selectedEvents.forEach(evt => emblaApi.on(evt, toggleSnappedClasses));
6152
+ toggleSnappedClasses();
6153
+ }
6154
+ if (options.inView) {
6155
+ classNames.inView = normalizeClassNames(options.inView);
6156
+ inViewEvents.forEach(evt => emblaApi.on(evt, toggleInViewClasses));
6157
+ toggleInViewClasses();
6158
+ }
6159
+ }
6160
+ function destroy() {
6161
+ draggingEvents.forEach(evt => emblaApi.off(evt, toggleDraggingClass));
6162
+ selectedEvents.forEach(evt => emblaApi.off(evt, toggleSnappedClasses));
6163
+ inViewEvents.forEach(evt => emblaApi.off(evt, toggleInViewClasses));
6164
+ removeClass(root, classNames.loop);
6165
+ removeClass(root, classNames.draggable);
6166
+ removeClass(root, classNames.dragging);
6167
+ toggleSlideClasses([], snappedIndexes, classNames.snapped);
6168
+ toggleSlideClasses([], inViewIndexes, classNames.inView);
6169
+ Object.keys(classNames).forEach(classNameKey => {
6170
+ const key = classNameKey;
6171
+ classNames[key] = [];
6172
+ });
6173
+ }
6174
+ function toggleDraggingClass(_, evt) {
6175
+ const toggleClass = evt === 'pointerDown' ? addClass : removeClass;
6176
+ toggleClass(root, classNames.dragging);
6177
+ }
6178
+ function toggleSlideClasses(addClassIndexes = [], removeClassIndexes = [], classNames) {
6179
+ const removeClassSlides = removeClassIndexes.map(index => slides[index]);
6180
+ const addClassSlides = addClassIndexes.map(index => slides[index]);
6181
+ removeClassSlides.forEach(slide => removeClass(slide, classNames));
6182
+ addClassSlides.forEach(slide => addClass(slide, classNames));
6183
+ return addClassIndexes;
6184
+ }
6185
+ function toggleSnappedClasses() {
6186
+ const {
6187
+ slideRegistry
6188
+ } = emblaApi.internalEngine();
6189
+ const newSnappedIndexes = slideRegistry[emblaApi.selectedScrollSnap()];
6190
+ snappedIndexes = toggleSlideClasses(newSnappedIndexes, snappedIndexes, classNames.snapped);
6191
+ }
6192
+ function toggleInViewClasses() {
6193
+ const newInViewIndexes = emblaApi.slidesInView();
6194
+ inViewIndexes = toggleSlideClasses(newInViewIndexes, inViewIndexes, classNames.inView);
6195
+ }
6196
+ const self = {
6197
+ name: 'classNames',
6198
+ options: userOptions,
6199
+ init,
6200
+ destroy
6201
+ };
6202
+ return self;
6203
+ }
6204
+ ClassNames.globalOptions = undefined;
6205
+
6078
6206
  function isObject$1(subject) {
6079
6207
  return Object.prototype.toString.call(subject) === '[object Object]';
6080
6208
  }
@@ -7526,7 +7654,7 @@ function EventHandler() {
7526
7654
  return self;
7527
7655
  }
7528
7656
 
7529
- const defaultOptions = {
7657
+ const defaultOptions$1 = {
7530
7658
  align: 'center',
7531
7659
  axis: 'x',
7532
7660
  container: null,
@@ -7610,7 +7738,7 @@ function EmblaCarousel(root, userOptions, userPlugins) {
7610
7738
  const reInit = reActivate;
7611
7739
  let destroyed = false;
7612
7740
  let engine;
7613
- let optionsBase = mergeOptions(defaultOptions, EmblaCarousel.globalOptions);
7741
+ let optionsBase = mergeOptions(defaultOptions$1, EmblaCarousel.globalOptions);
7614
7742
  let options = mergeOptions(optionsBase);
7615
7743
  let pluginList = [];
7616
7744
  let pluginApis;
@@ -7801,6 +7929,199 @@ function useEmblaCarousel(options = {}, plugins = []) {
7801
7929
  }
7802
7930
  useEmblaCarousel.globalOptions = undefined;
7803
7931
 
7932
+ const defaultOptions = {
7933
+ active: true,
7934
+ breakpoints: {},
7935
+ delay: 4000,
7936
+ jump: false,
7937
+ playOnInit: true,
7938
+ stopOnFocusIn: true,
7939
+ stopOnInteraction: true,
7940
+ stopOnMouseEnter: false,
7941
+ stopOnLastSnap: false,
7942
+ rootNode: null
7943
+ };
7944
+
7945
+ function normalizeDelay(emblaApi, delay) {
7946
+ const scrollSnaps = emblaApi.scrollSnapList();
7947
+ if (typeof delay === 'number') {
7948
+ return scrollSnaps.map(() => delay);
7949
+ }
7950
+ return delay(scrollSnaps, emblaApi);
7951
+ }
7952
+ function getAutoplayRootNode(emblaApi, rootNode) {
7953
+ const emblaRootNode = emblaApi.rootNode();
7954
+ return rootNode && rootNode(emblaRootNode) || emblaRootNode;
7955
+ }
7956
+
7957
+ function Autoplay(userOptions = {}) {
7958
+ let options;
7959
+ let emblaApi;
7960
+ let destroyed;
7961
+ let delay;
7962
+ let timerStartTime = null;
7963
+ let timerId = 0;
7964
+ let autoplayActive = false;
7965
+ let mouseIsOver = false;
7966
+ let playOnDocumentVisible = false;
7967
+ let jump = false;
7968
+ function init(emblaApiInstance, optionsHandler) {
7969
+ emblaApi = emblaApiInstance;
7970
+ const {
7971
+ mergeOptions,
7972
+ optionsAtMedia
7973
+ } = optionsHandler;
7974
+ const optionsBase = mergeOptions(defaultOptions, Autoplay.globalOptions);
7975
+ const allOptions = mergeOptions(optionsBase, userOptions);
7976
+ options = optionsAtMedia(allOptions);
7977
+ if (emblaApi.scrollSnapList().length <= 1) return;
7978
+ jump = options.jump;
7979
+ destroyed = false;
7980
+ delay = normalizeDelay(emblaApi, options.delay);
7981
+ const {
7982
+ eventStore,
7983
+ ownerDocument
7984
+ } = emblaApi.internalEngine();
7985
+ const isDraggable = !!emblaApi.internalEngine().options.watchDrag;
7986
+ const root = getAutoplayRootNode(emblaApi, options.rootNode);
7987
+ eventStore.add(ownerDocument, 'visibilitychange', visibilityChange);
7988
+ if (isDraggable) {
7989
+ emblaApi.on('pointerDown', pointerDown);
7990
+ }
7991
+ if (isDraggable && !options.stopOnInteraction) {
7992
+ emblaApi.on('pointerUp', pointerUp);
7993
+ }
7994
+ if (options.stopOnMouseEnter) {
7995
+ eventStore.add(root, 'mouseenter', mouseEnter);
7996
+ }
7997
+ if (options.stopOnMouseEnter && !options.stopOnInteraction) {
7998
+ eventStore.add(root, 'mouseleave', mouseLeave);
7999
+ }
8000
+ if (options.stopOnFocusIn) {
8001
+ emblaApi.on('slideFocusStart', stopAutoplay);
8002
+ }
8003
+ if (options.stopOnFocusIn && !options.stopOnInteraction) {
8004
+ eventStore.add(emblaApi.containerNode(), 'focusout', startAutoplay);
8005
+ }
8006
+ if (options.playOnInit) startAutoplay();
8007
+ }
8008
+ function destroy() {
8009
+ emblaApi.off('pointerDown', pointerDown).off('pointerUp', pointerUp).off('slideFocusStart', stopAutoplay);
8010
+ stopAutoplay();
8011
+ destroyed = true;
8012
+ autoplayActive = false;
8013
+ }
8014
+ function setTimer() {
8015
+ const {
8016
+ ownerWindow
8017
+ } = emblaApi.internalEngine();
8018
+ ownerWindow.clearTimeout(timerId);
8019
+ timerId = ownerWindow.setTimeout(next, delay[emblaApi.selectedScrollSnap()]);
8020
+ timerStartTime = new Date().getTime();
8021
+ emblaApi.emit('autoplay:timerset');
8022
+ }
8023
+ function clearTimer() {
8024
+ const {
8025
+ ownerWindow
8026
+ } = emblaApi.internalEngine();
8027
+ ownerWindow.clearTimeout(timerId);
8028
+ timerId = 0;
8029
+ timerStartTime = null;
8030
+ emblaApi.emit('autoplay:timerstopped');
8031
+ }
8032
+ function startAutoplay() {
8033
+ if (destroyed) return;
8034
+ if (documentIsHidden()) {
8035
+ playOnDocumentVisible = true;
8036
+ return;
8037
+ }
8038
+ if (!autoplayActive) emblaApi.emit('autoplay:play');
8039
+ setTimer();
8040
+ autoplayActive = true;
8041
+ }
8042
+ function stopAutoplay() {
8043
+ if (destroyed) return;
8044
+ if (autoplayActive) emblaApi.emit('autoplay:stop');
8045
+ clearTimer();
8046
+ autoplayActive = false;
8047
+ }
8048
+ function visibilityChange() {
8049
+ if (documentIsHidden()) {
8050
+ playOnDocumentVisible = autoplayActive;
8051
+ return stopAutoplay();
8052
+ }
8053
+ if (playOnDocumentVisible) startAutoplay();
8054
+ }
8055
+ function documentIsHidden() {
8056
+ const {
8057
+ ownerDocument
8058
+ } = emblaApi.internalEngine();
8059
+ return ownerDocument.visibilityState === 'hidden';
8060
+ }
8061
+ function pointerDown() {
8062
+ if (!mouseIsOver) stopAutoplay();
8063
+ }
8064
+ function pointerUp() {
8065
+ if (!mouseIsOver) startAutoplay();
8066
+ }
8067
+ function mouseEnter() {
8068
+ mouseIsOver = true;
8069
+ stopAutoplay();
8070
+ }
8071
+ function mouseLeave() {
8072
+ mouseIsOver = false;
8073
+ startAutoplay();
8074
+ }
8075
+ function play(jumpOverride) {
8076
+ if (typeof jumpOverride !== 'undefined') jump = jumpOverride;
8077
+ startAutoplay();
8078
+ }
8079
+ function stop() {
8080
+ if (autoplayActive) stopAutoplay();
8081
+ }
8082
+ function reset() {
8083
+ if (autoplayActive) startAutoplay();
8084
+ }
8085
+ function isPlaying() {
8086
+ return autoplayActive;
8087
+ }
8088
+ function next() {
8089
+ const {
8090
+ index
8091
+ } = emblaApi.internalEngine();
8092
+ const nextIndex = index.clone().add(1).get();
8093
+ const lastIndex = emblaApi.scrollSnapList().length - 1;
8094
+ const kill = options.stopOnLastSnap && nextIndex === lastIndex;
8095
+ if (emblaApi.canScrollNext()) {
8096
+ emblaApi.scrollNext(jump);
8097
+ } else {
8098
+ emblaApi.scrollTo(0, jump);
8099
+ }
8100
+ emblaApi.emit('autoplay:select');
8101
+ if (kill) return stopAutoplay();
8102
+ startAutoplay();
8103
+ }
8104
+ function timeUntilNext() {
8105
+ if (!timerStartTime) return null;
8106
+ const currentDelay = delay[emblaApi.selectedScrollSnap()];
8107
+ const timePastSinceStart = new Date().getTime() - timerStartTime;
8108
+ return currentDelay - timePastSinceStart;
8109
+ }
8110
+ const self = {
8111
+ name: 'autoplay',
8112
+ options: userOptions,
8113
+ init,
8114
+ destroy,
8115
+ play,
8116
+ stop,
8117
+ reset,
8118
+ isPlaying,
8119
+ timeUntilNext
8120
+ };
8121
+ return self;
8122
+ }
8123
+ Autoplay.globalOptions = undefined;
8124
+
7804
8125
  var XS_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsXs, ")");
7805
8126
  var S_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsS, ")");
7806
8127
  var M_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsM, ")");
@@ -7875,9 +8196,29 @@ var KeyNames;
7875
8196
  })(KeyNames || (KeyNames = {}));
7876
8197
 
7877
8198
  var Carousel = function (_a) {
7878
- var children = _a.children, responsive = _a.responsive, _b = _a.itemsToScroll, itemsToScroll = _b === void 0 ? 1 : _b, _c = _a.itemsPerSlide, itemsPerSlide = _c === void 0 ? 1 : _c, _d = _a.withGutter, withGutter = _d === void 0 ? true : _d, _e = _a.loop, loop = _e === void 0 ? false : _e, _f = _a.isPartialVisible, isPartialVisible = _f === void 0 ? false : _f;
8199
+ var children = _a.children, responsive = _a.responsive, _b = _a.itemsToScroll, itemsToScroll = _b === void 0 ? 1 : _b, _c = _a.itemsPerSlide, itemsPerSlide = _c === void 0 ? 1 : _c, _d = _a.withGutter, withGutter = _d === void 0 ? true : _d, _e = _a.loop, loop = _e === void 0 ? false : _e, _f = _a.isPartialVisible, isPartialVisible = _f === void 0 ? false : _f, autoplay = _a.autoplay, isPlaying = _a.isPlaying, fade = _a.fade;
7879
8200
  var id = useId$1();
7880
- var _g = useEmblaCarousel(getOptions(itemsToScroll, loop, responsive)), emblaRef = _g[0], emblaApi = _g[1];
8201
+ var autoPlayOptions = autoplay
8202
+ ? __assign({ playOnInit: true, delay: 3000, stopOnInteraction: true, stopOnMouseEnter: false, stopOnFocusIn: true, stopOnLastSnap: false }, autoplay) : undefined;
8203
+ var _g = useEmblaCarousel(__assign(__assign({}, getOptions(itemsToScroll, loop, responsive)), (fade ? { inViewThreshold: 0.74 } : {})), __spreadArray(__spreadArray([], (autoPlayOptions ? [Autoplay(autoPlayOptions)] : []), true), (fade
8204
+ ? [
8205
+ ClassNames({
8206
+ inView: "arc-Carousel-slide--isInView",
8207
+ }),
8208
+ ]
8209
+ : []), true)), emblaRef = _g[0], emblaApi = _g[1];
8210
+ useEffect(function () {
8211
+ var _a;
8212
+ if (!emblaApi || !autoplay)
8213
+ return;
8214
+ var autoplayPlugin = (_a = emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.plugins()) === null || _a === void 0 ? void 0 : _a.autoplay;
8215
+ if (isPlaying) {
8216
+ autoplayPlugin.play();
8217
+ }
8218
+ if (isPlaying == false) {
8219
+ autoplayPlugin.stop();
8220
+ }
8221
+ }, [emblaApi, isPlaying, autoplay]);
7881
8222
  var _h = useState(), dotButtonFocusIndex = _h[0], setCarouselDotButtonFocusIndex = _h[1];
7882
8223
  var prevButtonRef = useRef(null);
7883
8224
  var _j = useState(0), visibleSlideIndex = _j[0], setVisibleSlideIndex = _j[1];
@@ -7955,7 +8296,9 @@ var Carousel = function (_a) {
7955
8296
  React__default.createElement("div", { ref: emblaRef, className: classNames("arc-Carousel-viewport", {
7956
8297
  "arc-Carousel-viewport--gutter": withGutter,
7957
8298
  }) },
7958
- React__default.createElement("div", { className: "arc-Carousel-slider", role: "region", "aria-roledescription": "carousel" }, React__default.Children.map(children, function (child, i) { return (React__default.createElement("div", { onKeyDown: onSlideKeyDown, style: { flex: "0 0 ".concat(slideWidth, "%"), width: "".concat(slideWidth, "%") }, className: "arc-Carousel-slide", key: "".concat(id, "-option-").concat(i), role: "group", "aria-roledescription": "slide" }, child)); })))),
8299
+ React__default.createElement("div", { className: "arc-Carousel-slider", role: "region", "aria-roledescription": "carousel" }, React__default.Children.map(children, function (child, i) { return (React__default.createElement("div", { onKeyDown: onSlideKeyDown, style: { flex: "0 0 ".concat(slideWidth, "%"), width: "".concat(slideWidth, "%") }, className: classNames("arc-Carousel-slide", {
8300
+ "arc-Carousel-slide--fade": fade,
8301
+ }), key: "".concat(id, "-option-").concat(i), role: "group", "aria-roledescription": "slide" }, child)); })))),
7959
8302
  React__default.createElement("div", { className: "arc-Carousel-nav" },
7960
8303
  React__default.createElement("button", { "data-testid": "previous-button", ref: prevButtonRef, className: classNames("arc-Carousel-navButton", {
7961
8304
  "arc-Carousel-navButton--hidden": !prevButtonEnabled,
@@ -8075,15 +8418,16 @@ var FormControl = function (_a) {
8075
8418
 
8076
8419
  /** Use `CheckboxIcon` to display a visual checkbox indicator that reflects a checked, unchecked, or indeterminate state. */
8077
8420
  var CheckboxIcon = function (_a) {
8078
- var id = _a.id, name = _a.name, checked = _a.checked, _b = _a.indeterminate, indeterminate = _b === void 0 ? false : _b, isDisabled = _a.isDisabled, isRequired = _a.isRequired, _c = _a.size, size = _c === void 0 ? "m" : _c, value = _a.value, error = _a.error, ariaDescribedBy = _a.ariaDescribedBy, onBlur = _a.onBlur, onChange = _a.onChange, props = __rest(_a, ["id", "name", "checked", "indeterminate", "isDisabled", "isRequired", "size", "value", "error", "ariaDescribedBy", "onBlur", "onChange"]);
8421
+ var id = _a.id, name = _a.name, checked = _a.checked, _b = _a.indeterminate, indeterminate = _b === void 0 ? false : _b, isDisabled = _a.isDisabled, isRequired = _a.isRequired, _c = _a.size, size = _c === void 0 ? "m" : _c, value = _a.value, error = _a.error, ariaDescribedBy = _a.ariaDescribedBy, onBlur = _a.onBlur, onChange = _a.onChange, ref = _a.ref, props = __rest(_a, ["id", "name", "checked", "indeterminate", "isDisabled", "isRequired", "size", "value", "error", "ariaDescribedBy", "onBlur", "onChange", "ref"]);
8079
8422
  var requirementStatus = useContext(Context$2).requirementStatus;
8080
8423
  var internalRef = useRef(null);
8081
8424
  var surface = useContext(Context$3).surface;
8425
+ var inputRef = (ref || internalRef);
8082
8426
  useEffect(function () {
8083
- if (internalRef.current) {
8084
- internalRef.current.indeterminate = indeterminate;
8427
+ if (inputRef.current) {
8428
+ inputRef.current.indeterminate = indeterminate;
8085
8429
  }
8086
- }, [indeterminate, checked]);
8430
+ }, [indeterminate, checked, inputRef]);
8087
8431
  var tickSize = {
8088
8432
  s: 14,
8089
8433
  m: 18,
@@ -8111,7 +8455,7 @@ var CheckboxIcon = function (_a) {
8111
8455
  ? true
8112
8456
  : indeterminate && checked
8113
8457
  ? "mixed"
8114
- : false, className: classNames("arc-CheckboxIcon-input"), disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: internalRef, required: isRequired, type: "checkbox", value: value }, checkedProps, props)),
8458
+ : false, className: classNames("arc-CheckboxIcon-input"), disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: inputRef, required: isRequired, type: "checkbox", value: value }, checkedProps, props)),
8115
8459
  React__default.createElement("span", { className: classNames("arc-CheckboxIcon-box") }, indeterminate ? (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none" },
8116
8460
  React__default.createElement("rect", { x: "4", y: "8", width: "7.51", height: "1", rx: "0.5", fill: "currentColor" }))) : (React__default.createElement(ThemeIcon, { icon: "checkboxChecked", size: tickSize[size] })))));
8117
8461
  };
@@ -8119,8 +8463,8 @@ var CheckboxIcon = function (_a) {
8119
8463
  /**
8120
8464
  * Use `Checkbox` to allow users to select individual options.
8121
8465
  */
8122
- var Checkbox = forwardRef(function (_a) {
8123
- var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, _e = _a.hideLabel, hideLabel = _e === void 0 ? false : _e, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _f = _a.size, size = _f === void 0 ? "m" : _f, value = _a.value, _g = _a.checkboxAlignment, checkboxAlignment = _g === void 0 ? "center" : _g, _h = _a.indeterminate, indeterminate = _h === void 0 ? false : _h, _j = _a.isError, isError = _j === void 0 ? false : _j, _k = _a.isErrorAlert, isErrorAlert = _k === void 0 ? false : _k, props = __rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "hideLabel", "name", "onBlur", "onChange", "size", "value", "checkboxAlignment", "indeterminate", "isError", "isErrorAlert"]);
8466
+ var Checkbox = function (_a) {
8467
+ var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, _e = _a.hideLabel, hideLabel = _e === void 0 ? false : _e, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _f = _a.size, size = _f === void 0 ? "m" : _f, value = _a.value, _g = _a.checkboxAlignment, checkboxAlignment = _g === void 0 ? "center" : _g, _h = _a.indeterminate, indeterminate = _h === void 0 ? false : _h, _j = _a.isError, isError = _j === void 0 ? false : _j, _k = _a.isErrorAlert, isErrorAlert = _k === void 0 ? false : _k, ref = _a.ref, props = __rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "hideLabel", "name", "onBlur", "onChange", "size", "value", "checkboxAlignment", "indeterminate", "isError", "isErrorAlert", "ref"]);
8124
8468
  var requirementStatus = useContext(Context$2).requirementStatus;
8125
8469
  var surface = useContext(Context$3).surface;
8126
8470
  var idError = useAriaDescribedby({
@@ -8138,7 +8482,7 @@ var Checkbox = forwardRef(function (_a) {
8138
8482
  "arc-Checkbox--invalid": errorMessage || isError,
8139
8483
  "arc-Checkbox--small": size === "s",
8140
8484
  "arc-Checkbox--onDarkSurface": surface === "dark",
8141
- }) }, filterAttrs(props)),
8485
+ }), ref: ref }, filterAttrs(props)),
8142
8486
  React__default.createElement("label", { id: idLabel, htmlFor: id, className: classNames("arc-Checkbox-label", {
8143
8487
  "arc-Checkbox-label--top": checkboxAlignment === "top",
8144
8488
  }) },
@@ -8148,15 +8492,15 @@ var Checkbox = forwardRef(function (_a) {
8148
8492
  })), hideLabel ? (React__default.createElement(VisuallyHidden$2, null,
8149
8493
  label,
8150
8494
  !isRequired && requirementStatus !== "optional" ? (React__default.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
8151
- helper && (React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper)))) : (React__default.createElement(React__default.Fragment, null,
8495
+ helper && React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper))) : (React__default.createElement(React__default.Fragment, null,
8152
8496
  label,
8153
8497
  !isRequired && requirementStatus !== "optional" ? (React__default.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
8154
- helper && (React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper)))))),
8498
+ helper && React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper))))),
8155
8499
  errorMessage && (React__default.createElement("div", { id: idError, className: "arc-Checkbox-error", role: isErrorAlert ? "alert" : undefined },
8156
8500
  React__default.createElement("span", { className: "arc-Checkbox-error--icon", "aria-label": "Error. " },
8157
8501
  React__default.createElement(ThemeIcon, { icon: "checkboxError" })),
8158
8502
  errorMessage))));
8159
- });
8503
+ };
8160
8504
 
8161
8505
  /**
8162
8506
  * Use `Columns` to compose layouts on a 12-column grid. Place within `Section` components to align with any sibling `Grid` components.
@@ -8889,9 +9233,9 @@ var count = 0;
8889
9233
  function useId(deterministicId) {
8890
9234
  const [id, setId] = React.useState(useReactId());
8891
9235
  useLayoutEffect2(() => {
8892
- if (!deterministicId) setId((reactId) => reactId ?? String(count++));
9236
+ setId((reactId) => reactId ?? String(count++));
8893
9237
  }, [deterministicId]);
8894
- return deterministicId || (id ? `radix-${id}` : "");
9238
+ return (id ? `radix-${id}` : "");
8895
9239
  }
8896
9240
 
8897
9241
  /**
@@ -12743,8 +13087,8 @@ var reducer = function (initialOptions) {
12743
13087
  };
12744
13088
 
12745
13089
  /** Use `ComboBox` to provide a searchable dropdown list that allows users to select from or filter through multiple options. */
12746
- var ComboBox = forwardRef(function (_a, ref) {
12747
- var name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, label = _a.label, helper = _a.helper, id = _a.id, initialOptions = _a.options, hideLabel = _a.hideLabel, isFluid = _a.isFluid, errorMessage = _a.errorMessage, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, listBoxAriaLabel = _a.listBoxAriaLabel, _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.isMultiSelectable, isMultiSelectable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.isAutocomplete, isAutocomplete = _g === void 0 ? false : _g, props = __rest(_a, ["name", "onBlur", "onFocus", "label", "helper", "id", "options", "hideLabel", "isFluid", "errorMessage", "disclosureTitle", "disclosureText", "onClickDisclosure", "listBoxAriaLabel", "defaultValue", "labelSize", "isMultiSelectable", "isDisabled", "isRequired", "isAutocomplete"]);
13090
+ var ComboBox = function (_a) {
13091
+ var ref = _a.ref, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, label = _a.label, helper = _a.helper, id = _a.id, initialOptions = _a.options, hideLabel = _a.hideLabel, isFluid = _a.isFluid, errorMessage = _a.errorMessage, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, listBoxAriaLabel = _a.listBoxAriaLabel, _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.isMultiSelectable, isMultiSelectable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.isAutocomplete, isAutocomplete = _g === void 0 ? false : _g, props = __rest(_a, ["ref", "name", "onBlur", "onFocus", "label", "helper", "id", "options", "hideLabel", "isFluid", "errorMessage", "disclosureTitle", "disclosureText", "onClickDisclosure", "listBoxAriaLabel", "defaultValue", "labelSize", "isMultiSelectable", "isDisabled", "isRequired", "isAutocomplete"]);
12748
13092
  var listBoxId = useId$1();
12749
13093
  var listItemRefs = useRef([]);
12750
13094
  var containerRef = useRef(null);
@@ -12780,9 +13124,7 @@ var ComboBox = forwardRef(function (_a, ref) {
12780
13124
  var selectedOptionIsAboveOverFlow = listItemEl.offsetTop < listEl.scrollTop;
12781
13125
  if (selectedOptionIsBelowOverFlow) {
12782
13126
  listEl.scrollTop =
12783
- listItemEl.offsetTop +
12784
- listItemEl.offsetHeight -
12785
- listEl.offsetHeight;
13127
+ listItemEl.offsetTop + listItemEl.offsetHeight - listEl.offsetHeight;
12786
13128
  }
12787
13129
  if (selectedOptionIsAboveOverFlow) {
12788
13130
  listEl.scrollTop = listItemEl.offsetTop;
@@ -12895,7 +13237,9 @@ var ComboBox = forwardRef(function (_a, ref) {
12895
13237
  React__default.createElement(Content2$4, { align: "start", sideOffset: 5, onInteractOutside: onInteractOutside, onOpenAutoFocus: onOpenAutoFocus },
12896
13238
  React__default.createElement("div", { className: "arc-ComboBox-listboxContainer" },
12897
13239
  React__default.createElement(Box, { elevationLevel: "1" },
12898
- React__default.createElement("ul", { ref: setScrollPosition, id: listBoxId, className: "arc-ComboBox-list", role: "listbox", "aria-label": listBoxAriaLabel, "aria-multiselectable": isMultiSelectable }, options.length ? (options.map(function (option, i) { return (React__default.createElement("li", { id: "".concat(listBoxId, "-").concat(i), ref: function (el) { return (listItemRefs.current[i] = el); }, key: option, className: classNames("arc-ComboBox-listItem", {
13240
+ React__default.createElement("ul", { ref: setScrollPosition, id: listBoxId, className: "arc-ComboBox-list", role: "listbox", "aria-label": listBoxAriaLabel, "aria-multiselectable": isMultiSelectable }, options.length ? (options.map(function (option, i) { return (React__default.createElement("li", { id: "".concat(listBoxId, "-").concat(i), ref: function (el) {
13241
+ listItemRefs.current[i] = el;
13242
+ }, key: option, className: classNames("arc-ComboBox-listItem", {
12899
13243
  "arc-ComboBox-listItem--highlighted": i === highlightedOptionIndex,
12900
13244
  }), onMouseDown: onItemClick(option), role: "option", "aria-selected": isSelected(option, selectedOptions) },
12901
13245
  React__default.createElement("div", { className: "arc-ComboBox-listItemText" }, option),
@@ -12903,7 +13247,7 @@ var ComboBox = forwardRef(function (_a, ref) {
12903
13247
  "arc-ComboBox-listItemIcon--visible": isSelected(option, selectedOptions),
12904
13248
  }) },
12905
13249
  React__default.createElement(ThemeIcon, { size: 20, icon: "selectIndicator" })))); })) : (React__default.createElement("li", { className: "arc-ComboBox-listItem", role: "option", "aria-selected": false, "aria-disabled": true }, "No matches found")))))))))));
12906
- });
13250
+ };
12907
13251
 
12908
13252
  function _extends() {
12909
13253
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -13870,11 +14214,12 @@ var ContentSwitcher = function (_a) {
13870
14214
  React__default.createElement($69cb30bb0017df05$export$be92b6f5f03c0fe9, __assign({ className: "arc-ContentSwitcher-root", defaultValue: defaultValue, onValueChange: onValueChange, activationMode: activationMode, value: value }, filterAttrs(props)), children)));
13871
14215
  };
13872
14216
 
13873
- var ContentSwitcherTab = forwardRef(function (_a, ref) {
13874
- var label = _a.label, value = _a.value, onClick = _a.onClick, onFocus = _a.onFocus, props = __rest(_a, ["label", "value", "onClick", "onFocus"]);
13875
- return (React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, __assign({ className: "arc-ContentSwitcherTab", value: value, ref: ref, onClick: onClick, onFocus: onFocus }, filterAttrs(props)),
13876
- React__default.createElement(Text, { size: "m" }, label)));
13877
- });
14217
+ var ContentSwitcherTab = function (_a) {
14218
+ var label = _a.label, value = _a.value, onClick = _a.onClick, onFocus = _a.onFocus, ref = _a.ref, props = __rest(_a, ["label", "value", "onClick", "onFocus", "ref"]);
14219
+ return (React__default.createElement(Surface, { isTransparent: true },
14220
+ React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, __assign({ className: "arc-ContentSwitcherTab", value: value, ref: ref, onClick: onClick, onFocus: onFocus }, filterAttrs(props)),
14221
+ React__default.createElement(Text, { size: "m" }, label))));
14222
+ };
13878
14223
 
13879
14224
  var ContentSwitcherContent = function (_a) {
13880
14225
  var children = _a.children, value = _a.value, _b = _a.hidden, hidden = _b === void 0 ? undefined : _b, _c = _a.forceMount, forceMount = _c === void 0 ? true : _c, props = __rest(_a, ["children", "value", "hidden", "forceMount"]);
@@ -13889,13 +14234,6 @@ var ContentSwitcherList = function (_a) {
13889
14234
  var _d = useState(0), contentSwitcherListWidth = _d[0], setContentSwitcherListWidth = _d[1];
13890
14235
  var tabRefs = useRef([]);
13891
14236
  var listRef = useRef(null);
13892
- var checkOverflow = function () {
13893
- if (listRef.current) {
13894
- setRightOverflow(listRef.current.scrollLeft + listRef.current.clientWidth <
13895
- listRef.current.scrollWidth - 1);
13896
- setLeftOverflow(listRef.current.scrollLeft > 0);
13897
- }
13898
- };
13899
14237
  var scrollTabIntoView = function (tabRef) {
13900
14238
  if (tabRef.current && listRef.current) {
13901
14239
  var scrollLeft = tabRef.current.offsetLeft -
@@ -13914,6 +14252,13 @@ var ContentSwitcherList = function (_a) {
13914
14252
  }, 100);
13915
14253
  useEffect(function () {
13916
14254
  var list = listRef.current;
14255
+ var checkOverflow = function () {
14256
+ if (listRef.current) {
14257
+ setRightOverflow(listRef.current.scrollLeft + listRef.current.clientWidth <
14258
+ listRef.current.scrollWidth - 1);
14259
+ setLeftOverflow(listRef.current.scrollLeft > 0);
14260
+ }
14261
+ };
13917
14262
  var updateLayout = function () {
13918
14263
  checkOverflow();
13919
14264
  handleResize();
@@ -13931,7 +14276,7 @@ var ContentSwitcherList = function (_a) {
13931
14276
  window.removeEventListener("resize", updateLayout);
13932
14277
  handleResize.cancel();
13933
14278
  };
13934
- }, [children, checkOverflow, handleResize]);
14279
+ }, [children, handleResize]);
13935
14280
  return (React__default.createElement("span", { className: classNames("arc-ContentSwitcherList-wrapper", {
13936
14281
  "arc-ContentSwitcherList-wrapper--isInset": isInset,
13937
14282
  }), tabIndex: -1 },
@@ -13940,14 +14285,23 @@ var ContentSwitcherList = function (_a) {
13940
14285
  "arc-ContentSwitcherList--isJustified": isJustified,
13941
14286
  }), ref: listRef, "aria-label": ariaLabel }, filterAttrs(props)),
13942
14287
  React__default.createElement("div", { className: "arc-ContentSwitcherList-inner" }, React__default.Children.map(children, function (child, index) {
13943
- if (tabRefs) {
14288
+ if (!React__default.isValidElement(child)) {
14289
+ return null;
14290
+ }
14291
+ if (tabRefs.current[index] !== null) {
13944
14292
  return React__default.cloneElement(child, {
13945
- ref: function (el) { return (tabRefs.current[index] = el); },
14293
+ ref: function (el) {
14294
+ tabRefs.current[index] = el;
14295
+ },
13946
14296
  onClick: function () {
13947
- return scrollTabIntoView({ current: tabRefs.current[index] });
14297
+ var el = tabRefs.current[index];
14298
+ if (el)
14299
+ scrollTabIntoView({ current: el });
13948
14300
  },
13949
14301
  onFocus: function () {
13950
- return scrollTabIntoView({ current: tabRefs.current[index] });
14302
+ var el = tabRefs.current[index];
14303
+ if (el)
14304
+ scrollTabIntoView({ current: el });
13951
14305
  },
13952
14306
  });
13953
14307
  }
@@ -16723,9 +17077,9 @@ var TrailingSlot = function (_a) {
16723
17077
  };
16724
17078
 
16725
17079
  /** Use `TextInput` as a single-line field that allows users to enter short text, such as names, email, search queries or passwords. */
16726
- var TextInputComponent = forwardRef(function (_a, ref) {
17080
+ var TextInputComponent = function (_a) {
16727
17081
  var _b;
16728
- var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _g = _a.type, type = _g === void 0 ? "text" : _g, _h = _a.showPassword, showPassword = _h === void 0 ? false : _h, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _j = _a.size, size = _j === void 0 ? "m" : _j, leadingSlot = _a.leadingSlot, trailingSlot = _a.trailingSlot, _k = _a.inputAlignment, inputAlignment = _k === void 0 ? "left" : _k, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, isErrorAlert = _a.isErrorAlert, prefix = _a.prefix, suffix = _a.suffix, clearButton = _a.clearButton, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "maxLength", "minLength", "name", "onBlur", "onFocus", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "size", "leadingSlot", "trailingSlot", "inputAlignment", "width", "autoComplete", "isLoading", "isErrorAlert", "prefix", "suffix", "clearButton"]);
17082
+ var ref = _a.ref, _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _g = _a.type, type = _g === void 0 ? "text" : _g, _h = _a.showPassword, showPassword = _h === void 0 ? false : _h, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _j = _a.size, size = _j === void 0 ? "m" : _j, leadingSlot = _a.leadingSlot, trailingSlot = _a.trailingSlot, _k = _a.inputAlignment, inputAlignment = _k === void 0 ? "left" : _k, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, isErrorAlert = _a.isErrorAlert, prefix = _a.prefix, suffix = _a.suffix, clearButton = _a.clearButton, props = __rest(_a, ["ref", "defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "maxLength", "minLength", "name", "onBlur", "onFocus", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "size", "leadingSlot", "trailingSlot", "inputAlignment", "width", "autoComplete", "isLoading", "isErrorAlert", "prefix", "suffix", "clearButton"]);
16729
17083
  var _l = useState(false), showPasswordToggle = _l[0], setShowPasswordToggle = _l[1];
16730
17084
  var inferredInputProps = useNumericInput({
16731
17085
  inputMode: inputMode,
@@ -16764,12 +17118,12 @@ var TextInputComponent = forwardRef(function (_a, ref) {
16764
17118
  isLoading ||
16765
17119
  (clearButton === null || clearButton === void 0 ? void 0 : clearButton.onClick)) && (React__default.createElement(TrailingSlot, { showPassword: showPassword, isReadOnly: isReadOnly, isLoading: isLoading, clearButton: clearButton, trailingSlot: trailingSlot, isPasswordVisible: showPasswordToggle, onTogglePassword: function () { return setShowPasswordToggle(function (prev) { return !prev; }); }, size: size, isDisabled: isDisabled })),
16766
17120
  suffix && (React__default.createElement("span", { className: "arc-TextInput-suffix arc-TextInput-affixes", "aria-hidden": true }, suffix))))));
16767
- });
17121
+ };
16768
17122
  /**
16769
17123
  * Use `TextInput` to allow users to enter short form text.
16770
17124
  */
16771
- var TextInput = forwardRef(function (props, ref) { return React__default.createElement(TextInputComponent, __assign({ ref: ref }, props)); });
16772
- var TextInputWithPlaceHolder = forwardRef(function (props, ref) { return React__default.createElement(TextInputComponent, __assign({ ref: ref }, props)); });
17125
+ var TextInput = function (props) { return (React__default.createElement(TextInputComponent, __assign({}, props))); };
17126
+ var TextInputWithPlaceHolder = function (props) { return React__default.createElement(TextInputComponent, __assign({}, props)); };
16773
17127
 
16774
17128
  var formatDate = function (value) {
16775
17129
  return format(value, DATE_FORMAT);
@@ -16904,8 +17258,8 @@ function validateRangeOnBlur(_a) {
16904
17258
  /**
16905
17259
  * Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
16906
17260
  */
16907
- var DatePicker = forwardRef(function (_a, ref) {
16908
- var errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, label = _a.label, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.value, value = _c === void 0 ? "" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, onClickDisclosure = _a.onClickDisclosure, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, type = _a.type, _d = _a.isFluid, isFluid = _d === void 0 ? false : _d, _e = _a.selectionType, selectionType = _e === void 0 ? "single" : _e, disabledDates = _a.disabledDates, minDate = _a.minDate, maxDate = _a.maxDate, props = __rest(_a, ["errorMessage", "helper", "id", "label", "isDisabled", "isReadOnly", "isRequired", "size", "value", "name", "onBlur", "onChange", "onDateSelect", "onRangeSelect", "onClickDisclosure", "disclosureTitle", "disclosureText", "type", "isFluid", "selectionType", "disabledDates", "minDate", "maxDate"]);
17261
+ var DatePicker = function (_a) {
17262
+ var errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, label = _a.label, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.value, value = _c === void 0 ? "" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, onClickDisclosure = _a.onClickDisclosure, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, type = _a.type, _d = _a.isFluid, isFluid = _d === void 0 ? false : _d, _e = _a.selectionType, selectionType = _e === void 0 ? "single" : _e, disabledDates = _a.disabledDates, minDate = _a.minDate, maxDate = _a.maxDate, ref = _a.ref, props = __rest(_a, ["errorMessage", "helper", "id", "label", "isDisabled", "isReadOnly", "isRequired", "size", "value", "name", "onBlur", "onChange", "onDateSelect", "onRangeSelect", "onClickDisclosure", "disclosureTitle", "disclosureText", "type", "isFluid", "selectionType", "disabledDates", "minDate", "maxDate", "ref"]);
16909
17263
  var _f = useThemeElement(), themeElement = _f[0], setThemeElement = _f[1];
16910
17264
  var _g = useState("Choose date"), ariaLabel = _g[0], setAriaLabel = _g[1];
16911
17265
  var _h = useState(false), showCalendar = _h[0], setShowCalendar = _h[1];
@@ -17049,7 +17403,7 @@ var DatePicker = forwardRef(function (_a, ref) {
17049
17403
  React__default.createElement(Portal$5, { container: themeElement },
17050
17404
  React__default.createElement(Content2$4, { align: "start", "aria-modal": "true", "aria-label": "Choose Date", className: "arc-DatePicker-modal", onOpenAutoFocus: handleAutoFocus, onCloseAutoFocus: handleCalendarClose },
17051
17405
  React__default.createElement(Calendar, { autoFocusOnMount: true, type: type, onCancelClick: onCancelClick, selectionType: selectionType, selectedDate: convertDateStringToDate(value), selectedRange: convertRangeStringToDates(value), disabledDates: disabledDates, minDate: minDate, maxDate: maxDate, onDateSelect: handleDateSelect, onRangeSelect: handleRangeSelect }))))));
17052
- });
17406
+ };
17053
17407
 
17054
17408
  var lowerCaseDateFormat = DATE_FORMAT.toLowerCase();
17055
17409
  var DatePickerRange = function (_a) {
@@ -17079,7 +17433,7 @@ var DatePickerRange = function (_a) {
17079
17433
  if (inputEnd.value !== undefined && inputEnd.value !== endValue) {
17080
17434
  setEndValue(inputEnd.value);
17081
17435
  }
17082
- }, [inputStart.value, inputEnd.value]);
17436
+ }, [inputStart.value, inputEnd.value, endValue, startValue]);
17083
17437
  var handleIconClick = function (_a) {
17084
17438
  var ref = _a.ref, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, input = _a.input;
17085
17439
  if (ref &&
@@ -17614,6 +17968,17 @@ var Drawer = function (_a) {
17614
17968
  var newHeight = dragRef.current.startH - dragRef.current.deltaY;
17615
17969
  setDrawerHeight(Math.round(newHeight));
17616
17970
  };
17971
+ var onHandleDown = function (e) {
17972
+ if (!contentRef.current)
17973
+ return;
17974
+ dragRef.current.active = true;
17975
+ // record where the pointer was when dragging started
17976
+ dragRef.current.startY = e.clientY;
17977
+ // record inital height of drawer
17978
+ dragRef.current.startH = contentRef.current.clientHeight;
17979
+ // keep moving drawer even if cursor has left pill
17980
+ e.target.setPointerCapture(e.pointerId);
17981
+ };
17617
17982
  var resolveToPx = function (input) {
17618
17983
  // if already a number, assume px
17619
17984
  if (typeof input === "number")
@@ -17630,19 +17995,24 @@ var Drawer = function (_a) {
17630
17995
  var numericValue = Number(str);
17631
17996
  return Number.isFinite(numericValue) ? numericValue : undefined;
17632
17997
  };
17633
- var onHandleUpCore = function (e) {
17634
- if (!dragRef.current.active || !contentRef.current)
17998
+ var onHandleUpCore = function (e, keyboardDeltaY) {
17999
+ if (!contentRef.current)
17635
18000
  return;
18001
+ // if the user scrolls down
17636
18002
  if (dragDownToDismiss && contentRef.current.clientHeight < 100) {
17637
18003
  dragRef.current.active = false;
17638
18004
  dragRef.current.deltaY = 0;
17639
- e.currentTarget.releasePointerCapture(e.pointerId);
18005
+ if (e instanceof PointerEvent && (e === null || e === void 0 ? void 0 : e.currentTarget)) {
18006
+ e.currentTarget.releasePointerCapture(e.pointerId);
18007
+ }
17640
18008
  setDrawerHeight(undefined);
17641
18009
  onRequestClose();
17642
18010
  return;
17643
18011
  }
17644
18012
  dragRef.current.active = false;
17645
- e.currentTarget.releasePointerCapture(e.pointerId);
18013
+ if (e instanceof PointerEvent && (e === null || e === void 0 ? void 0 : e.currentTarget)) {
18014
+ e.currentTarget.releasePointerCapture(e.pointerId);
18015
+ }
17646
18016
  var currentHeight = contentRef.current.clientHeight;
17647
18017
  // turn all snapPoints into px values. Order the values.
17648
18018
  var snapsPx = (normalisedSnapPoints !== null && normalisedSnapPoints !== void 0 ? normalisedSnapPoints : [])
@@ -17650,9 +18020,9 @@ var Drawer = function (_a) {
17650
18020
  .filter(function (value) { return value !== undefined; }) // remove undefined values
17651
18021
  .sort(function (a, b) { return a - b; });
17652
18022
  var targetSnap = undefined;
18023
+ var deltaY = Math.sign(dragRef.current.deltaY);
17653
18024
  if (snapBehaviour === "next") {
17654
- var deltaY = Math.sign(dragRef.current.deltaY);
17655
- if (deltaY === -1) {
18025
+ if (deltaY <= -1) {
17656
18026
  // User scrolled up
17657
18027
  for (var i = 0; i < snapsPx.length; i++) {
17658
18028
  if (snapsPx[i] > currentHeight) {
@@ -17664,7 +18034,7 @@ var Drawer = function (_a) {
17664
18034
  }
17665
18035
  }
17666
18036
  }
17667
- else if (deltaY === 1) {
18037
+ else if (deltaY >= 1) {
17668
18038
  // User scrolled down
17669
18039
  for (var i = 0; i < snapsPx.length; i++) {
17670
18040
  if (snapsPx[i] < currentHeight) {
@@ -17705,17 +18075,6 @@ var Drawer = function (_a) {
17705
18075
  }
17706
18076
  setDrawerHeight(targetSnap);
17707
18077
  };
17708
- var onHandleDown = function (e) {
17709
- if (!contentRef.current)
17710
- return;
17711
- dragRef.current.active = true;
17712
- // record where the pointer was when dragging started
17713
- dragRef.current.startY = e.clientY;
17714
- // record inital height of drawer
17715
- dragRef.current.startH = contentRef.current.clientHeight;
17716
- // keep moving drawer even if cursor has left pill
17717
- e.target.setPointerCapture(e.pointerId);
17718
- };
17719
18078
  return (React__default.createElement("div", { ref: setThemeElement },
17720
18079
  React__default.createElement(Root$1, { open: isOpen },
17721
18080
  React__default.createElement(Portal$1, { container: themeElement },
@@ -17732,16 +18091,16 @@ var Drawer = function (_a) {
17732
18091
  React__default.createElement("button", { "aria-label": "close", onClick: onRequestClose, className: "arc-Drawer-closeButton" },
17733
18092
  React__default.createElement(ThemeIcon, { size: 32, icon: "drawerClose" })),
17734
18093
  draggable && position === "bottom" && (React__default.createElement("div", { className: "arc-Drawer-dragHandle", onPointerDown: onHandleDown, onPointerUp: onHandleUp, onPointerMove: onHandleMove, onClick: onHandleClick, role: "separator", "aria-label": "Drag to resize the drawer" },
17735
- React__default.createElement("div", { className: "arc-Drawer-dragHandlePill", "data-testid": "arc-Drawer-dragHandlePill" })))),
18094
+ React__default.createElement("div", { className: "arc-Drawer-dragHandlePill", tabIndex: -1, "data-testid": "arc-Drawer-dragHandlePill" })))),
17736
18095
  children)))))));
17737
18096
  };
17738
18097
 
17739
18098
  /**
17740
18099
  * Use `Rule` to display a horizontal or vertical rule.
17741
18100
  */
17742
- var Rule = function (_a, props) {
18101
+ var Rule = function (_a) {
17743
18102
  var _b;
17744
- var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
18103
+ var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c, props = __rest(_a, ["orientation"]);
17745
18104
  var surface = useContext(Context$3).surface;
17746
18105
  return (React__default.createElement("hr", __assign({ className: classNames((_b = {
17747
18106
  "arc-Rule": true
@@ -17752,24 +18111,27 @@ var Rule = function (_a, props) {
17752
18111
  };
17753
18112
 
17754
18113
  var DrawerHeader = function (_a) {
17755
- var title = _a.title, _b = _a.isFixed, isFixed = _b === void 0 ? false : _b, isResponsive = _a.isResponsive, props = __rest(_a, ["title", "isFixed", "isResponsive"]);
18114
+ var title = _a.title, _b = _a.isFixed, isFixed = _b === void 0 ? false : _b, isResponsive = _a.isResponsive, children = _a.children, _c = _a.isFullBleed, isFullBleed = _c === void 0 ? false : _c, _d = _a.titleWordWrap, titleWordWrap = _d === void 0 ? false : _d, props = __rest(_a, ["title", "isFixed", "isResponsive", "children", "isFullBleed", "titleWordWrap"]);
17756
18115
  return (React__default.createElement(React__default.Fragment, null,
17757
18116
  React__default.createElement("div", __assign({ className: classNames("arc-DrawerHeader", {
17758
18117
  "arc-DrawerHeader--isFixed": isFixed,
18118
+ "arc-DrawerHeader--isFullBleed": isFullBleed,
17759
18119
  }) }, filterAttrs(props)),
17760
18120
  React__default.createElement("div", { className: "arc-DrawerHeader-content" },
17761
- React__default.createElement("div", { className: "arc-DrawerHeader-titleContainer" },
18121
+ title && !children && (React__default.createElement("div", { className: "arc-DrawerHeader-titleContainer" },
17762
18122
  React__default.createElement(Title, { asChild: true },
17763
- React__default.createElement(Heading, { isResponsive: isResponsive, size: "m" }, title)))),
18123
+ React__default.createElement(Heading, { isResponsive: isResponsive, size: "m", isWordWrap: titleWordWrap }, title)))),
18124
+ children && !title && children),
17764
18125
  isFixed && (React__default.createElement("div", { className: "arc-DrawerHeader-divider" },
17765
18126
  React__default.createElement(Rule, null))))));
17766
18127
  };
17767
18128
 
17768
18129
  var DrawerFooter = function (_a) {
17769
- var isFixed = _a.isFixed, children = _a.children;
18130
+ var isFixed = _a.isFixed, _b = _a.isFullBleed, isFullBleed = _b === void 0 ? false : _b, children = _a.children;
17770
18131
  return (React__default.createElement(React__default.Fragment, null,
17771
18132
  React__default.createElement("div", { className: classNames("arc-DrawerFooter", {
17772
18133
  "arc-DrawerFooter--isFixed": isFixed,
18134
+ "arc-DrawerFooter--isFullBleed": isFullBleed,
17773
18135
  }) },
17774
18136
  isFixed && (React__default.createElement("div", { className: "arc-DrawerFooter-divider" },
17775
18137
  React__default.createElement(Rule, null))),
@@ -17898,13 +18260,13 @@ var FilterItem = function (_a) {
17898
18260
  * Use `GhostedHeroBanner` to grab attention and convey the main message or purpose of a webpage
17899
18261
  */
17900
18262
  var GhostedHeroBanner = function (_a) {
17901
- var heading = _a.heading, headingLevel = _a.headingLevel, label = _a.label, text = _a.text, img = _a.img, children = _a.children, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, props = __rest(_a, ["heading", "headingLevel", "label", "text", "img", "children", "fontStyle"]);
18263
+ var heading = _a.heading, headingLevel = _a.headingLevel, label = _a.label, text = _a.text, img = _a.img, children = _a.children, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, _c = _a.headingWordWrap, headingWordWrap = _c === void 0 ? false : _c, props = __rest(_a, ["heading", "headingLevel", "label", "text", "img", "children", "fontStyle", "headingWordWrap"]);
17902
18264
  return (React__default.createElement("div", __assign({ className: "arc-GhostedHeroBanner" }, filterAttrs(props)),
17903
18265
  React__default.createElement("div", { className: "arc-GhostedHeroBanner-content" },
17904
18266
  label && (React__default.createElement(React__default.Fragment, null,
17905
18267
  React__default.createElement(Heading, { fontStyle: "overline" }, label),
17906
18268
  React__default.createElement(VerticalSpace, { size: "8" }))),
17907
- React__default.createElement(Heading, { level: headingLevel, size: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle }, heading),
18269
+ React__default.createElement(Heading, { level: headingLevel, size: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle, isWordWrap: headingWordWrap }, heading),
17908
18270
  text && (React__default.createElement(React__default.Fragment, null,
17909
18271
  React__default.createElement(VerticalSpace, { size: "16" }),
17910
18272
  React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
@@ -18105,11 +18467,11 @@ var GroupItem = function (_a) {
18105
18467
 
18106
18468
  /** Use `HeroBanner` to promote key content or products with bold visuals and messaging. */
18107
18469
  var HeroBanner = function (_a) {
18108
- var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.extendBeyondContainer, extendBeyondContainer = _f === void 0 ? false : _f, _g = _a.type, type = _g === void 0 ? "light" : _g, _h = _a.fontStyle, fontStyle = _h === void 0 ? "default" : _h, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "extendBeyondContainer", "type", "fontStyle"]);
18470
+ var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.extendBeyondContainer, extendBeyondContainer = _f === void 0 ? false : _f, _g = _a.type, type = _g === void 0 ? "light" : _g, _h = _a.fontStyle, fontStyle = _h === void 0 ? "default" : _h, _j = _a.headingWordWrap, headingWordWrap = _j === void 0 ? false : _j, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "extendBeyondContainer", "type", "fontStyle", "headingWordWrap"]);
18109
18471
  return (React__default.createElement(ConditionalWrapper, { condition: extendBeyondContainer, wrapper: function (children) { return (React__default.createElement("div", { className: classNames({
18110
18472
  "arc-HeroBanner--expanded": extendBeyondContainer,
18111
18473
  }) }, children)); } },
18112
- React__default.createElement(TemplateBanner, __assign({ heading: heading, label: label, text: text, img: img, contentRatio: contentRatio, minHeight: minHeight, isReversed: isReversed, isElevated: isElevated, headingLevel: headingLevel, type: type, headingSize: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle, alignment: "center" }, filterAttrs(props)), children)));
18474
+ React__default.createElement(TemplateBanner, __assign({ heading: heading, label: label, text: text, img: img, contentRatio: contentRatio, minHeight: minHeight, isReversed: isReversed, isElevated: isElevated, headingLevel: headingLevel, type: type, headingSize: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle, alignment: "center", headingWordWrap: headingWordWrap }, filterAttrs(props)), children)));
18113
18475
  };
18114
18476
 
18115
18477
  /**
@@ -18147,8 +18509,8 @@ const ArcIconWarn =
18147
18509
  /**
18148
18510
  * Use `HeroButton` as the most prominent call-to-action. It should be used sparingly at the most important parts of a user journey only.
18149
18511
  */
18150
- var HeroButton = forwardRef(function (_a, ref) {
18151
- var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, ariaLabel = _a.ariaLabel, _c = _a.isLoading, isLoading = _c === void 0 ? false : _c, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["label", "buttonStyle", "icon", "ariaLabel", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form"]);
18512
+ var HeroButton = function (_a) {
18513
+ var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, ariaLabel = _a.ariaLabel, _c = _a.isLoading, isLoading = _c === void 0 ? false : _c, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, ref = _a.ref, props = __rest(_a, ["label", "buttonStyle", "icon", "ariaLabel", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form", "ref"]);
18152
18514
  var surface = useContext(Context$3).surface;
18153
18515
  var HeroButtonClasses = classNames("arc-HeroButton", ["arc-HeroButton--".concat(camelcase(buttonStyle))], {
18154
18516
  "arc-HeroButton--onDarkSurface": surface === "dark",
@@ -18184,7 +18546,7 @@ var HeroButton = forwardRef(function (_a, ref) {
18184
18546
  : HeroButtonIcons[icon] }))),
18185
18547
  isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
18186
18548
  React__default.createElement(Spinner, { size: "xxl" }))))));
18187
- });
18549
+ };
18188
18550
 
18189
18551
  /** Use `Hidden` to hide it's children at specific breakpoints */
18190
18552
  var Hidden = function (_a) {
@@ -18225,8 +18587,8 @@ var CardFooter = function (_a) {
18225
18587
 
18226
18588
  /** Use `CardHeading` internally within card components to display a title, icon, or leading content at the top of a card. */
18227
18589
  var CardHeading = function (_a) {
18228
- var onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onBlur = _a.onBlur, onFocus = _a.onFocus, href = _a.href, heading = _a.heading, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d;
18229
- return (React__default.createElement(Heading, { level: headingLevel, size: size, isWordWrap: false }, href ? (React__default.createElement("a", __assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterAttrs(linkData)), heading)) : (heading)));
18590
+ var onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onBlur = _a.onBlur, onFocus = _a.onFocus, href = _a.href, heading = _a.heading, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, _e = _a.headingWordWrap, headingWordWrap = _e === void 0 ? false : _e;
18591
+ return (React__default.createElement(Heading, { level: headingLevel, size: size, isWordWrap: headingWordWrap }, href ? (React__default.createElement("a", __assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterAttrs(linkData)), heading)) : (heading)));
18230
18592
  };
18231
18593
 
18232
18594
  /** Use `HorizontalCard` to display card content in a horizontal layout. */
@@ -18250,8 +18612,8 @@ var HorizontalCard = function (_a) {
18250
18612
 
18251
18613
  /** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
18252
18614
  var ImpactCard = function (_a) {
18253
- var url = _a.url, onClick = _a.onClick, heading = _a.heading, img = _a.img, label = _a.label, minHeight = _a.minHeight, _b = _a.headingSize, headingSize = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.pathway, pathway = _d === void 0 ? "light" : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.buttonIcon, buttonIcon = _f === void 0 ? "arrow" : _f, _g = _a.labelLevel, labelLevel = _g === void 0 ? "3" : _g, props = __rest(_a, ["url", "onClick", "heading", "img", "label", "minHeight", "headingSize", "linkData", "pathway", "headingLevel", "buttonIcon", "labelLevel"]);
18254
- var _h = useState(false), showHoverState = _h[0], setShowHoverState = _h[1];
18615
+ var url = _a.url, onClick = _a.onClick, heading = _a.heading, img = _a.img, label = _a.label, minHeight = _a.minHeight, _b = _a.headingSize, headingSize = _b === void 0 ? "m" : _b, _c = _a.headingWordWrap, headingWordWrap = _c === void 0 ? false : _c, _d = _a.linkData, linkData = _d === void 0 ? {} : _d, _e = _a.pathway, pathway = _e === void 0 ? "light" : _e, _f = _a.headingLevel, headingLevel = _f === void 0 ? "2" : _f, _g = _a.buttonIcon, buttonIcon = _g === void 0 ? "arrow" : _g, _h = _a.labelLevel, labelLevel = _h === void 0 ? "3" : _h, props = __rest(_a, ["url", "onClick", "heading", "img", "label", "minHeight", "headingSize", "headingWordWrap", "linkData", "pathway", "headingLevel", "buttonIcon", "labelLevel"]);
18616
+ var _j = useState(false), showHoverState = _j[0], setShowHoverState = _j[1];
18255
18617
  var surface = useContext(Context$3).surface;
18256
18618
  var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
18257
18619
  var isDarkPathway = pathway === "dark";
@@ -18267,7 +18629,7 @@ var ImpactCard = function (_a) {
18267
18629
  label && (React__default.createElement("div", { className: "arc-ImpactCard-label" },
18268
18630
  React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label),
18269
18631
  React__default.createElement(VerticalSpace, { size: "16" }))),
18270
- React__default.createElement(CardHeading, { heading: heading, size: headingSize, headingLevel: headingLevel, linkData: linkData, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) })),
18632
+ React__default.createElement(CardHeading, { heading: heading, size: headingSize, headingLevel: headingLevel, linkData: linkData, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false), headingWordWrap: headingWordWrap })),
18271
18633
  React__default.createElement(CardFooter, { buttonIcon: buttonIcon, showButton: true, isDarkPathway: isDarkPathway, isHovered: showHoverState })));
18272
18634
  };
18273
18635
 
@@ -18289,7 +18651,7 @@ const BtIconArrowRightFill =
18289
18651
 
18290
18652
  /** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
18291
18653
  var InformationCard = function (_a) {
18292
- var cardUrl = _a.cardUrl, onClick = _a.onClick, heading = _a.heading, text = _a.text, label = _a.label, footerLogo = _a.footerLogo, button = _a.button, image = _a.image, badges = _a.badges, icon = _a.icon, minHeight = _a.minHeight, minHeights = _a.minHeights, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel", "labelLevel"]);
18654
+ var cardUrl = _a.cardUrl, onClick = _a.onClick, heading = _a.heading, text = _a.text, label = _a.label, footerLogo = _a.footerLogo, button = _a.button, image = _a.image, badges = _a.badges, icon = _a.icon, minHeight = _a.minHeight, minHeights = _a.minHeights, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, headingWordWrap = _a.headingWordWrap, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel", "labelLevel", "headingWordWrap"]);
18293
18655
  var surface = useContext(Context$3).surface;
18294
18656
  var _d = useState(false), showHoverState = _d[0], setShowHoverState = _d[1];
18295
18657
  var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
@@ -18311,7 +18673,7 @@ var InformationCard = function (_a) {
18311
18673
  window.removeEventListener("resize", checkMinHeight);
18312
18674
  checkMinHeight.cancel();
18313
18675
  };
18314
- }, [minHeights, ArcBreakpoints]);
18676
+ }, [minHeights, checkMinHeight]);
18315
18677
  return (React__default.createElement("div", __assign({ style: { minHeight: minHeight ? minHeight : minimumHeight }, className: classNames("arc-InformationCard", {
18316
18678
  "arc-InformationCard--isALink": cardUrl,
18317
18679
  "arc-InformationCard--outlined": cardUrl && showHoverState,
@@ -18328,7 +18690,7 @@ var InformationCard = function (_a) {
18328
18690
  label && (React__default.createElement(React__default.Fragment, null,
18329
18691
  React__default.createElement("div", { className: "arc-InformationCard-label" },
18330
18692
  React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label)))),
18331
- React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
18693
+ React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false), headingWordWrap: headingWordWrap }),
18332
18694
  text && React__default.createElement(Text, null, text)),
18333
18695
  (button || badges || footerLogo) && (React__default.createElement("div", { className: "arc-InformationCard-footer" },
18334
18696
  badges && (React__default.createElement(React__default.Fragment, null,
@@ -18369,10 +18731,10 @@ var VideoPlayer$1 = React__default.lazy(function () {
18369
18731
  * Use `MediaCard` to contain content and an image about a single subject.
18370
18732
  */
18371
18733
  var MediaCard = function (_a) {
18372
- var media = _a.media, url = _a.url, onClick = _a.onClick, heading = _a.heading, label = _a.label, _b = _a.labelLevel, labelLevel = _b === void 0 ? "3" : _b, text = _a.text, metaText = _a.metaText, minHeight = _a.minHeight, _c = _a.buttonIcon, buttonIcon = _c === void 0 ? "arrow" : _c, _d = _a.isContained, isContained = _d === void 0 ? true : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, props = __rest(_a, ["media", "url", "onClick", "heading", "label", "labelLevel", "text", "metaText", "minHeight", "buttonIcon", "isContained", "headingLevel"]);
18734
+ var media = _a.media, url = _a.url, onClick = _a.onClick, heading = _a.heading, label = _a.label, _b = _a.labelLevel, labelLevel = _b === void 0 ? "3" : _b, text = _a.text, metaText = _a.metaText, minHeight = _a.minHeight, _c = _a.buttonIcon, buttonIcon = _c === void 0 ? "arrow" : _c, _d = _a.isContained, isContained = _d === void 0 ? true : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.headingWordWrap, headingWordWrap = _f === void 0 ? false : _f, props = __rest(_a, ["media", "url", "onClick", "heading", "label", "labelLevel", "text", "metaText", "minHeight", "buttonIcon", "isContained", "headingLevel", "headingWordWrap"]);
18373
18735
  var surface = useContext(Context$3).surface;
18374
- var _f = useState(false), isClient = _f[0], setIsClient = _f[1];
18375
- var _g = useState(false), showHoverState = _g[0], setShowHoverState = _g[1];
18736
+ var _g = useState(false), isClient = _g[0], setIsClient = _g[1];
18737
+ var _h = useState(false), showHoverState = _h[0], setShowHoverState = _h[1];
18376
18738
  var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
18377
18739
  useEffect(function () {
18378
18740
  setIsClient(true);
@@ -18391,7 +18753,7 @@ var MediaCard = function (_a) {
18391
18753
  label && (React__default.createElement("div", { className: "arc-MediaCard-label" },
18392
18754
  React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label),
18393
18755
  React__default.createElement(VerticalSpace, { size: "16" }))),
18394
- React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: media.type !== "video" ? url : undefined, onClick: media.type !== "video" ? onClick : undefined, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
18756
+ React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: media.type !== "video" ? url : undefined, onClick: media.type !== "video" ? onClick : undefined, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false), headingWordWrap: headingWordWrap }),
18395
18757
  React__default.createElement("div", { className: "arc-MediaCard-textContainer" }, text && (React__default.createElement(React__default.Fragment, null,
18396
18758
  React__default.createElement(VerticalSpace, { size: "16" }),
18397
18759
  React__default.createElement(Text, null, text),
@@ -19839,7 +20201,8 @@ var MenuItem = function (_a) {
19839
20201
  /**
19840
20202
  * Visual separator used to divide groups of menu items.
19841
20203
  */
19842
- var MenuSeparator = function (props) {
20204
+ var MenuSeparator = function (_a) {
20205
+ var props = __rest(_a, []);
19843
20206
  return (React__default.createElement(Separator2, __assign({ className: "arc-MenuSeparator" }, filterAttrs(props)),
19844
20207
  React__default.createElement(Rule, null)));
19845
20208
  };
@@ -19847,8 +20210,8 @@ var MenuSeparator = function (props) {
19847
20210
  /**
19848
20211
  * The component that pops out when the dropdown menu is open.
19849
20212
  */
19850
- var MenuContent = React__default.forwardRef(function (_a, ref) {
19851
- var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, _b = _a.align, align = _b === void 0 ? "start" : _b, alignOffset = _a.alignOffset, side = _a.side, initalTitle = _a.initalTitle, isFluidToViewport = _a.isFluidToViewport, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "align", "alignOffset", "side", "initalTitle", "isFluidToViewport"]);
20213
+ var MenuContent = function (_a) {
20214
+ var ref = _a.ref, children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, _b = _a.align, align = _b === void 0 ? "start" : _b, alignOffset = _a.alignOffset, side = _a.side, initalTitle = _a.initalTitle, isFluidToViewport = _a.isFluidToViewport, props = __rest(_a, ["ref", "children", "width", "minWidth", "maxWidth", "align", "alignOffset", "side", "initalTitle", "isFluidToViewport"]);
19852
20215
  var _c = useMenuContext(), isMobileMenu = _c.isMobileMenu, stack = _c.stack, goBack = _c.goBack, defaultWidth = _c.defaultWidth, reset = _c.reset;
19853
20216
  if (!isMobileMenu) {
19854
20217
  return (React__default.createElement(Content2, __assign({ ref: ref, style: { width: width !== null && width !== void 0 ? width : defaultWidth, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 12, loop: true, collisionPadding: 0, forceMount: true, align: align, alignOffset: alignOffset, side: side }, filterAttrs(props)),
@@ -19869,7 +20232,7 @@ var MenuContent = React__default.forwardRef(function (_a, ref) {
19869
20232
  React__default.createElement(MenuItem, { onClick: goBack, leadingIcon: BtIconChevronLeftMid }, prevTitle),
19870
20233
  React__default.createElement(MenuSeparator, null))),
19871
20234
  React__default.createElement("div", { key: stack.length, className: "arc-MenuContent-content arc-MenuContent-fade" }, active)));
19872
- });
20235
+ };
19873
20236
 
19874
20237
  /**
19875
20238
  * Displays footer content at the bottom of the menu.
@@ -19994,21 +20357,21 @@ var MenuItemMultiLevel = function (_a) {
19994
20357
  if (!trigger || !pairedContent) {
19995
20358
  console.warn("MenuItemMultiLevel requires both a Trigger and Portal");
19996
20359
  }
19997
- // Inject content into the trigger, skip rendering the portal in mobile
20360
+ // Inject content into the trigger, skip rendering the portal in mobile
19998
20361
  return React__default.cloneElement(trigger, { pairedContent: pairedContent });
19999
20362
  };
20000
20363
 
20001
20364
  /**
20002
20365
  * The multi-level menu content that pops out when a menu item with children is hovered or clicked.
20003
20366
  */
20004
- var MenuItemMultiLevelContent = React__default.forwardRef(function (_a, ref) {
20005
- var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "alignOffset"]);
20367
+ var MenuItemMultiLevelContent = function (_a) {
20368
+ var ref = _a.ref, children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["ref", "children", "width", "minWidth", "maxWidth", "alignOffset"]);
20006
20369
  var _b = useMenuContext(), isMobileMenu = _b.isMobileMenu, defaultWidth = _b.defaultWidth;
20007
20370
  if (isMobileMenu) {
20008
20371
  return React__default.createElement(React__default.Fragment, null, children);
20009
20372
  }
20010
20373
  return (React__default.createElement(SubContent2, __assign({ ref: ref, style: { width: width !== null && width !== void 0 ? width : defaultWidth, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 24, collisionPadding: 12, avoidCollisions: true, alignOffset: alignOffset }, filterAttrs(props)), children));
20011
- });
20374
+ };
20012
20375
  MenuItemMultiLevelContent.displayName = "MenuItemMultiLevelContent";
20013
20376
 
20014
20377
  /**
@@ -20065,7 +20428,7 @@ var MenuTrigger = function (_a) {
20065
20428
  /** Use `Modal` to display information that needs immediate action from a user. */
20066
20429
  var Modal = function (_a) {
20067
20430
  var _b;
20068
- var title = _a.title, description = _a.description, ariaDescribedBy = _a.ariaDescribedBy, isOpen = _a.isOpen, actions = _a.actions, onRequestClose = _a.onRequestClose, children = _a.children, _c = _a.role, role = _c === void 0 ? "dialog" : _c, _d = _a.shouldReturnFocus, shouldReturnFocus = _d === void 0 ? true : _d, _e = _a.isContentScrollable, isContentScrollable = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "l" : _f, _g = _a.fullBleed, fullBleed = _g === void 0 ? false : _g, customWidths = _a.customWidths, props = __rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size", "fullBleed", "customWidths"]);
20431
+ var title = _a.title, description = _a.description, ariaDescribedBy = _a.ariaDescribedBy, isOpen = _a.isOpen, actions = _a.actions, onRequestClose = _a.onRequestClose, children = _a.children, _c = _a.role, role = _c === void 0 ? "dialog" : _c, _d = _a.shouldReturnFocus, shouldReturnFocus = _d === void 0 ? true : _d, _e = _a.isContentScrollable, isContentScrollable = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "l" : _f, _g = _a.fullBleed, fullBleed = _g === void 0 ? false : _g, customWidths = _a.customWidths, titleWordWrap = _a.titleWordWrap, props = __rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size", "fullBleed", "customWidths", "titleWordWrap"]);
20069
20432
  var _h = useThemeElement(), themeElement = _h[0], setThemeElement = _h[1];
20070
20433
  var triggerRef = useRef(null);
20071
20434
  var setTriggerElement = function () {
@@ -20106,7 +20469,7 @@ var Modal = function (_a) {
20106
20469
  React__default.createElement(VerticalSpace, { size: "24" }),
20107
20470
  React__default.createElement(Surface, null,
20108
20471
  React__default.createElement(Title, { asChild: true },
20109
- React__default.createElement(Heading, { level: "1", size: "m" }, title))),
20472
+ React__default.createElement(Heading, { level: "1", size: "m", isWordWrap: titleWordWrap }, title))),
20110
20473
  React__default.createElement(VerticalSpace, { size: "12" })))),
20111
20474
  React__default.createElement("div", { className: "arc-Modal-content" },
20112
20475
  title && description && (React__default.createElement("div", { className: "arc-Modal-section" },
@@ -20207,8 +20570,8 @@ var PaginationSimple = function (_a) {
20207
20570
  * Use `Popover` to display content in a portal, triggered by a button.
20208
20571
  */
20209
20572
  var Popover = function (_a) {
20210
- var align = _a.align, ariaLabel = _a.ariaLabel, alignOffset = _a.alignOffset, _b = _a.arrow, arrow = _b === void 0 ? true : _b, _c = _a.background, background = _c === void 0 ? "light" : _c, children = _a.children, content = _a.content, _d = _a.asChild, asChild = _d === void 0 ? false : _d, _e = _a.maxWidth, maxWidth = _e === void 0 ? 452 : _e, minHeight = _a.minHeight, onCloseAutoFocus = _a.onCloseAutoFocus, onEscapeKeyDown = _a.onEscapeKeyDown, onFocusOutside = _a.onFocusOutside, onInteractOutside = _a.onInteractOutside, onOpenAutoFocus = _a.onOpenAutoFocus, onPointerDownOutside = _a.onPointerDownOutside, onOpenChange = _a.onOpenChange, open = _a.open, _f = _a.constrainToViewport, constrainToViewport = _f === void 0 ? true : _f, side = _a.side, _g = _a.sideOffset, sideOffset = _g === void 0 ? 0 : _g, _h = _a.zIndex, zIndex = _h === void 0 ? 100 : _h, _j = _a.hideWhenDetached, hideWhenDetached = _j === void 0 ? false : _j, _k = _a.useBespokeTrigger, useBespokeTrigger = _k === void 0 ? false : _k, props = __rest(_a, ["align", "ariaLabel", "alignOffset", "arrow", "background", "children", "content", "asChild", "maxWidth", "minHeight", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onInteractOutside", "onOpenAutoFocus", "onPointerDownOutside", "onOpenChange", "open", "constrainToViewport", "side", "sideOffset", "zIndex", "hideWhenDetached", "useBespokeTrigger"]);
20211
- var _l = useThemeElement(), themeElement = _l[0], setThemeElement = _l[1];
20573
+ var align = _a.align, ariaLabel = _a.ariaLabel, alignOffset = _a.alignOffset, _b = _a.arrow, arrow = _b === void 0 ? true : _b, _c = _a.background, background = _c === void 0 ? "light" : _c, children = _a.children, content = _a.content, _d = _a.asChild, asChild = _d === void 0 ? false : _d, _e = _a.maxWidth, maxWidth = _e === void 0 ? 452 : _e, minHeight = _a.minHeight, onCloseAutoFocus = _a.onCloseAutoFocus, onEscapeKeyDown = _a.onEscapeKeyDown, onFocusOutside = _a.onFocusOutside, onInteractOutside = _a.onInteractOutside, onOpenAutoFocus = _a.onOpenAutoFocus, onPointerDownOutside = _a.onPointerDownOutside, onOpenChange = _a.onOpenChange, open = _a.open, _f = _a.constrainToViewport, constrainToViewport = _f === void 0 ? true : _f, side = _a.side, _g = _a.sideOffset, sideOffset = _g === void 0 ? 0 : _g, _h = _a.zIndex, zIndex = _h === void 0 ? 100 : _h, _j = _a.hideWhenDetached, hideWhenDetached = _j === void 0 ? false : _j, _k = _a.useBespokeTrigger, useBespokeTrigger = _k === void 0 ? false : _k, _l = _a.isFluidToViewport, isFluidToViewport = _l === void 0 ? false : _l, _m = _a.contentMargin, contentMargin = _m === void 0 ? false : _m, _o = _a.isFullBleed, isFullBleed = _o === void 0 ? false : _o, props = __rest(_a, ["align", "ariaLabel", "alignOffset", "arrow", "background", "children", "content", "asChild", "maxWidth", "minHeight", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onInteractOutside", "onOpenAutoFocus", "onPointerDownOutside", "onOpenChange", "open", "constrainToViewport", "side", "sideOffset", "zIndex", "hideWhenDetached", "useBespokeTrigger", "isFluidToViewport", "contentMargin", "isFullBleed"]);
20574
+ var _p = useThemeElement(), themeElement = _p[0], setThemeElement = _p[1];
20212
20575
  var alignOffsetDefault = align === "center" ? 0 : -16;
20213
20576
  return (React__default.createElement("div", __assign({ className: "arc-Popover" }, filterAttrs(props)),
20214
20577
  React__default.createElement(Root2$3, { open: open, onOpenChange: onOpenChange },
@@ -20222,6 +20585,9 @@ var Popover = function (_a) {
20222
20585
  "arc-Popover-content--dark": background === "dark",
20223
20586
  "arc-Popover-content--brand": background === "brand",
20224
20587
  "arc-Popover-content--constrainToViewport": constrainToViewport,
20588
+ "arc-Popover-content--isFluidToViewport": isFluidToViewport,
20589
+ "arc-Popover-content--contentMargin": contentMargin,
20590
+ "arc-Popover-content--isFullBleed": isFullBleed,
20225
20591
  }), style: { maxWidth: maxWidth, minHeight: minHeight }, "aria-labelledby": "popover-content" },
20226
20592
  content && React__default.createElement("div", { id: "popover-content" }, content),
20227
20593
  arrow && (React__default.createElement(PopoverArrow, { className: "arc-Popover-arrow" })))))))))));
@@ -20281,7 +20647,7 @@ var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
20281
20647
  * Use `ProgressBar` to show the progress of a specific task within a page.
20282
20648
  */
20283
20649
  var ProgressBar = function (_a) {
20284
- var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, props = __rest(_a, ["state", "value", "isIndeterminate", "headline", "ariaLabel", "action", "title", "description", "displayValue"]);
20650
+ var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, _e = _a.headlineWordWrap, headlineWordWrap = _e === void 0 ? false : _e, props = __rest(_a, ["state", "value", "isIndeterminate", "headline", "ariaLabel", "action", "title", "description", "displayValue", "headlineWordWrap"]);
20285
20651
  var progressValue = Math.min(100, Math.max(0, value));
20286
20652
  var autoFocusRef = function (canFocus) { return function (el) {
20287
20653
  canFocus && el && el.focus();
@@ -20289,7 +20655,7 @@ var ProgressBar = function (_a) {
20289
20655
  return (React__default.createElement("div", __assign({ "data-testid": "progress", className: classNames("arc-ProgressBar", "arc-ProgressBar--".concat(state)) }, filterAttrs(props)),
20290
20656
  React__default.createElement("div", { className: "arc-ProgressBar-titleDisplayValueContainer" },
20291
20657
  React__default.createElement("div", { className: "arc-ProgressBar-titleContainer" },
20292
- headline && React__default.createElement(Heading, { size: "s" }, headline),
20658
+ headline && (React__default.createElement(Heading, { size: "s", isWordWrap: headlineWordWrap }, headline)),
20293
20659
  headline && title && React__default.createElement(VerticalSpace, { size: "4" }),
20294
20660
  title && React__default.createElement(Text, null, title)),
20295
20661
  displayValue && (React__default.createElement("div", { "data-testid": "display-value", className: "arc-ProgressBar-displayValueContainer" },
@@ -20440,11 +20806,6 @@ function requireMiniSvgDataUri () {
20440
20806
  var miniSvgDataUriExports = requireMiniSvgDataUri();
20441
20807
  var svgToMiniDataURI = /*@__PURE__*/getDefaultExportFromCjs(miniSvgDataUriExports);
20442
20808
 
20443
- // src/capitalise-first-letter/capitalise-first-letter.ts
20444
- var capitaliseFirstLetter = (word) => {
20445
- return word.charAt(0).toUpperCase() + word.slice(1);
20446
- };
20447
-
20448
20809
  var Error$1 = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <g clipPath=\"url(#a)\">\n <path\n d=\"m13.06 12 2.845-2.845a.75.75 0 0 0-1.06-1.06L12 10.94 9.155 8.095a.75.75 0 0 0-1.06 1.06L10.939 12l-2.844 2.845a.75.75 0 1 0 1.06 1.06L12 13.061l2.845 2.844a.75.75 0 0 0 1.06-1.06L13.06 12Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <rect width=\"24\" height=\"24\" rx=\"12\" />\n </clipPath>\n </defs>\n </svg>\n ";
20449
20810
 
20450
20811
  var Warning = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path\n d=\"M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z\"\n fill=\"currentColor\"\n stroke=\"currentColor\"\n strokeWidth=\".3\"\n />\n </svg>\n";
@@ -20455,7 +20816,8 @@ var Current = "\n <svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w
20455
20816
 
20456
20817
  var ProgressStepperItem = function (_a) {
20457
20818
  var _b;
20458
- var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _c = _a.direction, direction = _c === void 0 ? "horizontal" : _c, _d = _a.status, status = _d === void 0 ? "todo" : _d, _e = _a.size, size = _e === void 0 ? "large" : _e, isFluid = _a.isFluid, invertLabelPosition = _a.invertLabelPosition, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "isFluid", "invertLabelPosition", "ariaLabel", "onClick", "previousStep", "stepContent", "isStepContentHidden"]);
20819
+ var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _c = _a.direction, direction = _c === void 0 ? "horizontal" : _c, _d = _a.status, status = _d === void 0 ? "todo" : _d, _e = _a.size, size = _e === void 0 ? "large" : _e, isFluid = _a.isFluid, invertLabelPosition = _a.invertLabelPosition, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, isViewing = _a.isViewing, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "isFluid", "invertLabelPosition", "ariaLabel", "onClick", "previousStep", "stepContent", "isStepContentHidden", "isViewing"]);
20820
+ var id = useId$1();
20459
20821
  var statusIcons = {
20460
20822
  todo: undefined,
20461
20823
  completed: Complete,
@@ -20468,181 +20830,137 @@ var ProgressStepperItem = function (_a) {
20468
20830
  onClick && onClick();
20469
20831
  };
20470
20832
  var statusIcon = statusIcons[status];
20471
- return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
20833
+ var accessibleStatusLabel = "".concat(status === "todo" ? "to do" : status).concat(isViewing ? " - currently viewing" : "");
20834
+ return (React__default.createElement("li", __assign({ "data-progress-stepper-item-id": id, className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
20472
20835
  "arc-ProgressStepperItem--vertical": direction === "vertical",
20473
20836
  "arc-ProgressStepperItem--isFluid": isFluid && direction !== "vertical",
20474
20837
  "arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
20475
20838
  },
20476
- _b["arc-ProgressStepperItem--hasInteractiveStatus"] = status !== "todo",
20839
+ _b["arc-ProgressStepperItem--hasInteractiveStatus"] = onClick || titleHref || status !== "todo",
20477
20840
  _b["arc-ProgressStepperItem--invertLabelPosition"] = direction !== "vertical" && invertLabelPosition,
20478
20841
  _b)) }, filterAttrs(props)),
20479
20842
  React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSection" },
20480
20843
  React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
20481
20844
  React__default.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
20482
20845
  "arc-ProgressStepperItem-statusIcon--small": size === "small",
20483
- }) }, status === "todo" ? null : status === "current" ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React__default.createElement(Icon$1, { icon: statusIcon && svgToMiniDataURI(statusIcon) }))))),
20846
+ }) },
20847
+ status === "todo" && !isViewing ? null : isViewing ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (status !== "current" && (React__default.createElement(Icon$1, { icon: statusIcon && svgToMiniDataURI(statusIcon) }))),
20848
+ status === "current" && isViewing === undefined ? (React__default.createElement(Icon$1, { icon: statusIcon && svgToMiniDataURI(statusIcon) })) : null))),
20484
20849
  React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
20485
- titleHref || onClick ? (React__default.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler },
20486
- title,
20487
- status !== "todo" ? (React__default.createElement(VisuallyHidden$2, null,
20488
- ":",
20489
- capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden$2, null, ":To do")))) : (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" },
20490
- title,
20491
- status !== "todo" ? (React__default.createElement(VisuallyHidden$2, null,
20492
- ":",
20493
- capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden$2, null, ":To do")))),
20494
- React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
20850
+ React__default.createElement(ConditionalWrapper, { condition: Boolean(titleHref || onClick), wrapper: function (children) { return (React__default.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler, "aria-label": ariaLabel ||
20851
+ (status !== "current"
20852
+ ? "".concat(title, ", ").concat(accessibleStatusLabel)
20853
+ : undefined), "aria-current": status === "current" && "step" }, children)); }, fallback: function (children) { return (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" },
20854
+ children,
20855
+ React__default.createElement(VisuallyHidden$2, null, " - ".concat(accessibleStatusLabel)))); } }, title),
20856
+ subTitle && (React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle)),
20495
20857
  stepContent && !isStepContentHidden && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
20496
20858
  React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" }, stepContent))))));
20497
20859
  };
20498
20860
 
20499
20861
  /** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
20500
20862
  var ProgressStepper = function (_a) {
20501
- var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, invertLabelPosition = _a.invertLabelPosition, ref = _a.ref, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable", "invertLabelPosition", "ref"]);
20863
+ var ref = _a.ref, children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, invertLabelPosition = _a.invertLabelPosition, currentStep = _a.currentStep, props = __rest(_a, ["ref", "children", "size", "isFluid", "direction", "isExpandable", "invertLabelPosition", "currentStep"]);
20502
20864
  var items = React__default.Children.toArray(children);
20503
20865
  var getStepStatus = function (item) {
20504
20866
  var _a;
20505
20867
  return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
20506
20868
  };
20507
- return (React__default.createElement("div", __assign({ ref: ref, className: classNames("arc-ProgressStepper", {
20869
+ return (React__default.createElement("ol", __assign({ ref: ref, className: classNames("arc-ProgressStepper", {
20508
20870
  "arc-ProgressStepper--vertical": direction === "vertical",
20509
20871
  }) }, filterAttrs(props)), items.map(function (item, index) { return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
20510
- React__default.createElement(ProgressStepperItem, __assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, invertLabelPosition: invertLabelPosition, direction: direction, isExpandable: isExpandable, size: size, previousStep: getStepStatus(items[index - 1]) }, filterAttrs(item.props))))); })));
20872
+ React__default.createElement(ProgressStepperItem, __assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, ariaLabel: item.props.ariaLabel, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, invertLabelPosition: invertLabelPosition, direction: direction, isExpandable: isExpandable, size: size, isViewing: currentStep !== undefined ? currentStep === index : undefined, previousStep: getStepStatus(items[index - 1]) }, filterAttrs(item.props))))); })));
20511
20873
  };
20512
20874
 
20513
20875
  /** Use `ProgressStepperOverflow` to wrap `ProgressStepperItem`s and allow overflow behaviour. */
20514
- var ProgressStepperOverflow = forwardRef(function (_a, stepperRef) {
20515
- var children = _a.children, onIndexChange = _a.onIndexChange, onLoadStep = _a.onLoadStep, size = _a.size, invertLabelPosition = _a.invertLabelPosition, _b = _a.offsetLeft, offsetLeft = _b === void 0 ? 24 : _b, props = __rest(_a, ["children", "onIndexChange", "onLoadStep", "size", "invertLabelPosition", "offsetLeft"]);
20516
- var _c = useState(onLoadStep ? onLoadStep : 0), activeIndex = _c[0], setActiveIndex = _c[1];
20517
- var _d = useState(0), closestScrolledIndex = _d[0], setClosestScrolledIndex = _d[1];
20518
- var _e = useState(true), lastStepVisible = _e[0], setLastStepVisible = _e[1];
20519
- var containerRef = useRef(null);
20520
- useImperativeHandle(stepperRef, function () { return ({
20521
- handleStepScroll: handleStepScroll,
20522
- scrollToStep: scrollToStep,
20523
- handleViewScroll: handleViewScroll,
20524
- isLastChildVisible: isLastChildVisible,
20525
- }); });
20526
- // Add Horizontal Scroll Event Listener
20876
+ var ProgressStepperOverflow = function (_a) {
20877
+ var ref = _a.ref, children = _a.children, size = _a.size, invertLabelPosition = _a.invertLabelPosition, _b = _a.offsetLeft, offsetLeft = _b === void 0 ? 24 : _b, props = __rest(_a, ["ref", "children", "size", "invertLabelPosition", "offsetLeft"]);
20878
+ return (React__default.createElement("div", __assign({ className: "arc-ProgressStepperOverflow", style: { paddingLeft: offsetLeft } }, filterAttrs(props)),
20879
+ React__default.createElement(ProgressStepper, { ref: ref, size: size, invertLabelPosition: invertLabelPosition, isFluid: false }, children)));
20880
+ };
20881
+
20882
+ var useProgressStepperOverflow = function (_a) {
20883
+ var _b = _a === void 0 ? {} : _a, onLoadStep = _b.onLoadStep, _c = _b.increment, increment = _c === void 0 ? 1 : _c, _d = _b.offsetLeft, offsetLeft = _d === void 0 ? 24 : _d;
20884
+ var stepperRef = useRef(null);
20885
+ var _e = useState({}), itemVisibility = _e[0], setItemVisibility = _e[1];
20527
20886
  useEffect(function () {
20528
20887
  var _a, _b;
20529
- var checkClosest = debounce(function () {
20530
- var closestIndex = findClosestIndex();
20531
- setClosestScrolledIndex(closestIndex);
20532
- }, 100);
20533
- var checkLastChild = debounce(function () {
20534
- var lastVisible = isLastChildVisible();
20535
- if (lastVisible) {
20536
- setLastStepVisible(true);
20537
- }
20538
- else
20539
- setLastStepVisible(false);
20540
- }, 100);
20541
- (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener("scroll", checkLastChild);
20542
- (_b = containerRef.current) === null || _b === void 0 ? void 0 : _b.addEventListener("scroll", checkClosest);
20543
- return function () {
20544
- var _a;
20545
- (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", checkClosest);
20546
- checkLastChild.cancel();
20547
- };
20888
+ var el = (_a = stepperRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
20889
+ var stepperItems = Array.from(((_b = stepperRef.current) === null || _b === void 0 ? void 0 : _b.children) || []);
20890
+ var observer = new IntersectionObserver(function (entries) {
20891
+ var newEntries = entries.reduce(function (acc, entry) {
20892
+ var _a;
20893
+ var el = entry.target;
20894
+ return __assign(__assign({}, acc), (_a = {}, _a["".concat(el.dataset.progressStepperItemId)] = entry.intersectionRatio, _a));
20895
+ }, {});
20896
+ setItemVisibility(function (current) { return (__assign(__assign({}, current), newEntries)); });
20897
+ }, {
20898
+ root: el,
20899
+ threshold: [0, 0.25, 0.5, 0.75, 1],
20900
+ });
20901
+ stepperItems.forEach(function (item) { return observer.observe(item); });
20902
+ return function () { return observer.disconnect(); };
20548
20903
  }, []);
20549
- // Scroll to activeIndex
20550
- useEffect(function () {
20551
- scrollTo();
20552
- }, [activeIndex]);
20553
- // Exposing changes in activeIndex outside of component
20554
20904
  useEffect(function () {
20555
- onIndexChange === null || onIndexChange === void 0 ? void 0 : onIndexChange(closestScrolledIndex);
20556
- isLastChildVisible();
20557
- }, [closestScrolledIndex, onIndexChange, lastStepVisible]);
20558
- // helper functions - start
20559
- var getProgressStepper = function () { var _a; return (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.firstChild; };
20560
- var getStepChildren = function () {
20561
- var _a;
20562
- return Array.from(((_a = getProgressStepper()) === null || _a === void 0 ? void 0 : _a.children) || []);
20563
- };
20564
- var getLeftRects = function (children) {
20565
- var container = getProgressStepper();
20566
- if (!container)
20567
- return [];
20568
- var parentRect = container.getBoundingClientRect();
20569
- return children.map(function (child) {
20570
- var childRect = child.getBoundingClientRect();
20571
- return {
20572
- left: childRect.left - parentRect.left,
20573
- };
20574
- });
20575
- };
20576
- var indexOfClosest = function (values) {
20577
- return values.indexOf(Math.min.apply(Math, values));
20578
- };
20579
- // helper functions - end
20580
- var isLastChildVisible = function () {
20581
- var _a;
20582
- var steps = getStepChildren();
20583
- var lastStep = steps[steps.length - 1];
20584
- var rect = lastStep.getBoundingClientRect();
20585
- var containerRect = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
20586
- return rect.right <= containerRect.right;
20587
- };
20588
- // Used for onScroll function of scrolling without buttons
20589
- var findClosestIndex = function () {
20590
- var _a, _b;
20591
- var children = getStepChildren();
20592
- var scrolledAmount = (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.scrollLeft) !== null && _b !== void 0 ? _b : 0;
20593
- // compare the scrolled amount to the intial left edge distance for each step
20594
- var getScrollDistances = function (children, scrolledAmount) {
20595
- return getLeftRects(children).map(function (rect) {
20596
- return Math.abs(scrolledAmount - rect.left);
20597
- });
20598
- };
20599
- var closestIndex = indexOfClosest(getScrollDistances(children, scrolledAmount));
20600
- return closestIndex;
20601
- };
20602
- // Scroll active step to the far left of the page
20603
- var scrollTo = function () {
20604
20905
  var _a, _b;
20605
- var activeStep = (_a = getProgressStepper()) === null || _a === void 0 ? void 0 : _a.children[activeIndex];
20606
- if (activeStep) {
20607
- (_b = containerRef.current) === null || _b === void 0 ? void 0 : _b.scrollTo({
20608
- left: activeStep.offsetLeft - offsetLeft,
20906
+ if (onLoadStep) {
20907
+ var container = (_a = stepperRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
20908
+ var stepperItems = Array.from(((_b = stepperRef.current) === null || _b === void 0 ? void 0 : _b.children) || []);
20909
+ var itemToScrollTo = stepperItems[Math.max(0, onLoadStep)];
20910
+ container === null || container === void 0 ? void 0 : container.scrollTo({
20911
+ left: itemToScrollTo.offsetLeft - offsetLeft,
20609
20912
  behavior: "smooth",
20610
20913
  });
20611
20914
  }
20915
+ }, [onLoadStep, offsetLeft]);
20916
+ var _f = useMemo(function () {
20917
+ var visibilityRatios = Object.values(itemVisibility);
20918
+ var isFirstStepVisible = visibilityRatios[0] === 1;
20919
+ var isLastStepVisible = visibilityRatios[visibilityRatios.length - 1] === 1;
20920
+ return { isFirstStepVisible: isFirstStepVisible, isLastStepVisible: isLastStepVisible };
20921
+ }, [itemVisibility]), isFirstStepVisible = _f.isFirstStepVisible, isLastStepVisible = _f.isLastStepVisible;
20922
+ var currentIndex = Math.max(Object.values(itemVisibility).findIndex(function (value) { return value >= 0.5; }), 0);
20923
+ var scrollToStep = function (index) {
20924
+ var _a, _b;
20925
+ var container = (_a = stepperRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
20926
+ var stepperItems = Array.from(((_b = stepperRef.current) === null || _b === void 0 ? void 0 : _b.children) || []);
20927
+ var itemToScrollTo = stepperItems[Math.max(0, index)];
20928
+ container === null || container === void 0 ? void 0 : container.scrollTo({
20929
+ left: itemToScrollTo.offsetLeft - offsetLeft,
20930
+ behavior: "smooth",
20931
+ });
20612
20932
  };
20613
- var handleStepScroll = function (increment) {
20614
- // Account for any manual scrolling set closest index to active index
20615
- setActiveIndex(closestScrolledIndex);
20616
- var newIndex = closestScrolledIndex + increment;
20617
- setActiveIndex(newIndex);
20618
- // If clicking backwards to include half visible step
20619
- if (closestScrolledIndex + increment === activeIndex) {
20620
- scrollTo();
20621
- }
20622
- if (closestScrolledIndex + increment < 0) {
20623
- setActiveIndex(0);
20624
- scrollTo();
20625
- }
20626
- };
20627
- // Used to scroll by Parent width
20628
- var handleViewScroll = function (direction) {
20933
+ var onViewScroll = function (direction) {
20629
20934
  var _a;
20630
- var clientWidth = ((_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) || 0;
20631
- var stepper = containerRef.current;
20632
- if (!stepper)
20935
+ var container = (_a = stepperRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
20936
+ if (!container)
20633
20937
  return;
20634
- stepper.scrollBy({
20635
- left: direction ? clientWidth : -clientWidth,
20938
+ container.scrollBy({
20939
+ left: direction ? container.clientWidth : -container.clientWidth,
20636
20940
  behavior: "smooth",
20637
20941
  });
20638
20942
  };
20639
- // Used to set a specific step to jump to on a button click
20640
- var scrollToStep = function (step) {
20641
- setActiveIndex(step);
20943
+ var onPreviousStep = function () {
20944
+ var newStep = Math.max(currentIndex - increment, 0);
20945
+ scrollToStep(newStep);
20642
20946
  };
20643
- return (React__default.createElement("div", __assign({ ref: containerRef, className: "arc-ProgressStepperOverflow", style: { paddingLeft: offsetLeft } }, filterAttrs(props)),
20644
- React__default.createElement(ProgressStepper, { size: size, invertLabelPosition: invertLabelPosition, isFluid: false }, children)));
20645
- });
20947
+ var onNextStep = function () {
20948
+ var _a;
20949
+ var stepperItems = Array.from(((_a = stepperRef.current) === null || _a === void 0 ? void 0 : _a.children) || []);
20950
+ var newStep = Math.min(currentIndex + increment, stepperItems.length);
20951
+ scrollToStep(newStep);
20952
+ };
20953
+ return {
20954
+ stepperRef: stepperRef,
20955
+ onNextStep: onNextStep,
20956
+ onPreviousStep: onPreviousStep,
20957
+ onViewScroll: onViewScroll,
20958
+ currentIndex: currentIndex,
20959
+ scrollToStep: scrollToStep,
20960
+ isFirstStepVisible: isFirstStepVisible,
20961
+ isLastStepVisible: isLastStepVisible,
20962
+ };
20963
+ };
20646
20964
 
20647
20965
  var RadioContext$1 = createContext({});
20648
20966
  var Provider$3 = RadioContext$1.Provider;
@@ -20671,8 +20989,13 @@ var RadioCardGroup = function (_a) {
20671
20989
  }) }, children)))));
20672
20990
  };
20673
20991
 
20674
- var RadioCard = forwardRef(function (_a, ref) {
20675
- var id = _a.id, icon = _a.icon, label = _a.label, support = _a.support, isDisabled = _a.isDisabled, checked = _a.checked, defaultChecked = _a.defaultChecked, changeEvent = _a.changeEvent, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, children = _a.children, _b = _a.controlLocation, controlLocation = _b === void 0 ? "right" : _b, _c = _a.hideButton, hideButton = _c === void 0 ? false : _c;
20992
+ // src/capitalise-first-letter/capitalise-first-letter.ts
20993
+ var capitaliseFirstLetter = (word) => {
20994
+ return word.charAt(0).toUpperCase() + word.slice(1);
20995
+ };
20996
+
20997
+ var RadioCard = function (_a) {
20998
+ var ref = _a.ref, id = _a.id, icon = _a.icon, label = _a.label, support = _a.support, isDisabled = _a.isDisabled, checked = _a.checked, defaultChecked = _a.defaultChecked, changeEvent = _a.changeEvent, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, children = _a.children, _b = _a.controlLocation, controlLocation = _b === void 0 ? "right" : _b, _c = _a.hideButton, hideButton = _c === void 0 ? false : _c;
20676
20999
  var surface = useContext(Context$3).surface;
20677
21000
  var idLabel = "".concat(id, "-label");
20678
21001
  return (React__default.createElement("div", { className: classNames("arc-RadioCard", {
@@ -20692,19 +21015,19 @@ var RadioCard = forwardRef(function (_a, ref) {
20692
21015
  !hideButton && (React__default.createElement("div", { className: classNames("arc-RadioCard-radioIcon", {
20693
21016
  "arc-RadioCard-radioIcon--isSelected": checked,
20694
21017
  }) }))))));
20695
- });
21018
+ };
20696
21019
 
20697
21020
  /**
20698
21021
  * Radio Card component.
20699
21022
  */
20700
- var RadioCardGroupInput = forwardRef(function (_a, ref) {
20701
- var icon = _a.icon, support = _a.support, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, children = _a.children, controlLocation = _a.controlLocation, hideButton = _a.hideButton, props = __rest(_a, ["icon", "support", "id", "isDisabled", "label", "value", "children", "controlLocation", "hideButton"]);
21023
+ var RadioCardGroupInput = function (_a) {
21024
+ var ref = _a.ref, icon = _a.icon, support = _a.support, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, children = _a.children, controlLocation = _a.controlLocation, hideButton = _a.hideButton, props = __rest(_a, ["ref", "icon", "support", "id", "isDisabled", "label", "value", "children", "controlLocation", "hideButton"]);
20702
21025
  var _b = useRadioContext$1(), name = _b.name, changeEvent = _b.changeEvent, checkedValue = _b.checkedValue, groupDisabled = _b.groupDisabled;
20703
21026
  var isChecked = checkedValue === value ? true : false;
20704
21027
  var checked = typeof changeEvent !== "function" ? undefined : isChecked;
20705
21028
  var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
20706
21029
  return (React__default.createElement(RadioCard, __assign({ icon: icon, ref: ref, id: id, support: support, label: label, name: name, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, value: value, isDisabled: isDisabled || groupDisabled, controlLocation: controlLocation, hideButton: hideButton }, props), children));
20707
- });
21030
+ };
20708
21031
 
20709
21032
  var RadioContext = createContext({});
20710
21033
  var Provider$2 = RadioContext.Provider;
@@ -20731,8 +21054,8 @@ var RadioGroup = function (_a) {
20731
21054
  React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
20732
21055
  };
20733
21056
 
20734
- var RadioGroupButton = forwardRef(function (_a, ref) {
20735
- var id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin, isError = _a.isError;
21057
+ var RadioGroupButton = function (_a) {
21058
+ var ref = _a.ref, id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin, isError = _a.isError;
20736
21059
  var surface = useContext(Context$3).surface;
20737
21060
  var idLabel = "".concat(id, "-label");
20738
21061
  return (React__default.createElement("div", { className: classNames({
@@ -20754,25 +21077,25 @@ var RadioGroupButton = forwardRef(function (_a, ref) {
20754
21077
  }) },
20755
21078
  hideLabel ? React__default.createElement(VisuallyHidden$2, null, label) : label,
20756
21079
  helper && (React__default.createElement("span", { className: "arc-RadioGroupButton-helper" }, helper))))));
20757
- });
21080
+ };
20758
21081
 
20759
21082
  /**
20760
21083
  * Radio Button component.
20761
21084
  */
20762
- var RadioGroupInput = forwardRef(function (_a, ref) {
20763
- var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, _b = _a.radioButtonAlignment, radioButtonAlignment = _b === void 0 ? "center" : _b, value = _a.value, isError = _a.isError, props = __rest(_a, ["helper", "id", "isDisabled", "label", "radioButtonAlignment", "value", "isError"]);
21085
+ var RadioGroupInput = function (_a) {
21086
+ var ref = _a.ref, helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, _b = _a.radioButtonAlignment, radioButtonAlignment = _b === void 0 ? "center" : _b, value = _a.value, isError = _a.isError, props = __rest(_a, ["ref", "helper", "id", "isDisabled", "label", "radioButtonAlignment", "value", "isError"]);
20764
21087
  var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, name = _c.name, size = _c.size;
20765
21088
  var isChecked = checkedValue === value ? true : false;
20766
21089
  var checked = typeof changeEvent !== "function" ? undefined : isChecked;
20767
21090
  var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
20768
21091
  return (React__default.createElement(RadioGroupButton, __assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled, size: size, radioButtonAlignment: radioButtonAlignment, label: label, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, blurEvent: blurEvent, value: value, isError: isError }, props)));
20769
- });
21092
+ };
20770
21093
 
20771
21094
  /**
20772
21095
  * Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
20773
21096
  */
20774
21097
  var ScrollToTop = function (_a) {
20775
- var _b = _a.appear, appear = _b === void 0 ? "always" : _b, _c = _a.isFixed, isFixed = _c === void 0 ? true : _c, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, _e = _a.zIndex, zIndex = _e === void 0 ? 100 : _e, _f = _a.focusColor, focusColor = _f === void 0 ? "magenta" : _f, props = __rest(_a, ["appear", "isFixed", "fill", "zIndex", "focusColor"]);
21098
+ var _b = _a.appear, appear = _b === void 0 ? "always" : _b, _c = _a.isFixed, isFixed = _c === void 0 ? true : _c, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, _e = _a.zIndex, zIndex = _e === void 0 ? 100 : _e, _f = _a.focusColor, focusColor = _f === void 0 ? "primary" : _f, props = __rest(_a, ["appear", "isFixed", "fill", "zIndex", "focusColor"]);
20776
21099
  var _g = useState(false), hasScrolled = _g[0], setHasScrolled = _g[1];
20777
21100
  useEffect(function () {
20778
21101
  var handleScroll = debounce(function () {
@@ -21029,7 +21352,7 @@ var SiteHeaderV2 = function (_a) {
21029
21352
  var _j = useState(false), hasClientSideJavaScript = _j[0], setHasClientSideJavaScript = _j[1];
21030
21353
  var _k = useState(false), menuOpen = _k[0], setMenuOpen = _k[1];
21031
21354
  var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
21032
- var menubarRef = useRef();
21355
+ var menubarRef = useRef(null);
21033
21356
  useEffect(function () {
21034
21357
  if (!isMinWidthArcBreakpointL && menuOpen) {
21035
21358
  document.body.classList.add("arc-body--overflowHidden");
@@ -21130,11 +21453,12 @@ var SiteHeaderV2Item = function (_a) {
21130
21453
  var SiteHeaderV2ItemGroup = function (_a) {
21131
21454
  var children = _a.children, href = _a.href, title = _a.title, subtitle = _a.subtitle, onClick = _a.onClick, viewAllTitle = _a.viewAllTitle, props = __rest(_a, ["children", "href", "title", "subtitle", "onClick", "viewAllTitle"]);
21132
21455
  var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
21133
- var ElementType = title ? "details" : "div";
21456
+ var ElementType = title && !isMinWidthArcBreakpointL ? "details" : "div";
21457
+ var ElementTypeSummary = isMinWidthArcBreakpointL ? "div" : "summary";
21134
21458
  return (React__default.createElement("li", { className: "arc-SiteHeaderV2ItemGroup" },
21135
21459
  React__default.createElement(ElementType, __assign({ className: "arc-SiteHeaderV2ItemGroup-details", open: Boolean(title && isMinWidthArcBreakpointL) }, filterAttrs(props)),
21136
21460
  title ? (React__default.createElement(React__default.Fragment, null,
21137
- React__default.createElement("summary", { tabIndex: isMinWidthArcBreakpointL ? -1 : 0, className: "arc-SiteHeaderV2ItemGroup-summary" }, href ? (React__default.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-heading" },
21461
+ React__default.createElement(ElementTypeSummary, { tabIndex: isMinWidthArcBreakpointL ? -1 : 0, className: "arc-SiteHeaderV2ItemGroup-summary" }, href ? (React__default.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-heading" },
21138
21462
  React__default.createElement(ConditionalWrapper, { condition: isMinWidthArcBreakpointL, wrapper: function (children) { return (React__default.createElement("a", { onClick: handleLinkClick({
21139
21463
  handler: onClick,
21140
21464
  }), className: "arc-SiteHeaderV2ItemGroup-title", href: href }, children)); }, fallback: function (children) { return (React__default.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-title" }, children)); } }, title),
@@ -21170,6 +21494,9 @@ var SiteHeaderV2Panel = function (_a) {
21170
21494
  // by listening to clicks on the entire document and acting accordingly.
21171
21495
  var handleClick = function (e) {
21172
21496
  var _a, _b, _c, _d;
21497
+ // null check for navItemRef
21498
+ if (!(navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current))
21499
+ return;
21173
21500
  (_b = (_a = menubarRef === null || menubarRef === void 0 ? void 0 : menubarRef.current) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.add("noFocus");
21174
21501
  // Don't close the Panel…
21175
21502
  if (
@@ -21312,7 +21639,7 @@ var SiteHeaderV2ViewAll = function (_a) {
21312
21639
  var SiteHeaderV2NavItem = function (_a) {
21313
21640
  var _b, _c, _d, _e, _f;
21314
21641
  var children = _a.children, href = _a.href, isCurrent = _a.isCurrent, onClick = _a.onClick, title = _a.title, isPrimary = _a.isPrimary, opensFirstWithPanel = _a.opensFirstWithPanel, subTitle = _a.subTitle, props = __rest(_a, ["children", "href", "isCurrent", "onClick", "title", "isPrimary", "opensFirstWithPanel", "subTitle"]);
21315
- var navItem = useRef();
21642
+ var navItem = useRef(null);
21316
21643
  var _g = useState(false), panelOpen = _g[0], setPanelOpen = _g[1];
21317
21644
  var _h = useState(true), openSecondaryWithSubNav = _h[0], setOpenSecondaryWithSubNav = _h[1];
21318
21645
  var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
@@ -21423,7 +21750,7 @@ var Provider = Context.Provider;
21423
21750
  var SiteHeaderV2NavItemWithSubNav = function (_a) {
21424
21751
  var _b, _c, _d, _e, _f;
21425
21752
  var href = _a.href, slot1 = _a.slot1, slot2 = _a.slot2, slot3 = _a.slot3, slot4 = _a.slot4, slot5 = _a.slot5, slot6 = _a.slot6, _g = _a.subTitle, subTitle = _g === void 0 ? null : _g, title = _a.title, onViewAllClick = _a.onViewAllClick, isPrimary = _a.isPrimary, opensFirstWithPanel = _a.opensFirstWithPanel, viewAllTitle = _a.viewAllTitle, props = __rest(_a, ["href", "slot1", "slot2", "slot3", "slot4", "slot5", "slot6", "subTitle", "title", "onViewAllClick", "isPrimary", "opensFirstWithPanel", "viewAllTitle"]);
21426
- var navItem = useRef();
21753
+ var navItem = useRef(null);
21427
21754
  var _h = useState(true), defaultItem = _h[0], setDefaultItem = _h[1];
21428
21755
  var _j = useState(false), panelOpen = _j[0], setPanelOpen = _j[1];
21429
21756
  var _k = useState(false), horizontalPanelOpen = _k[0], setHorizontalPanelOpen = _k[1];
@@ -21531,7 +21858,7 @@ var SiteHeaderV2SubNavItem = function (_a) {
21531
21858
  var _b, _c;
21532
21859
  var children = _a.children, _d = _a.isDefaultItem, isDefaultItem = _d === void 0 ? false : _d, href = _a.href, onClick = _a.onClick, offsetXL = _a.offsetXL, subTitle = _a.subTitle, title = _a.title, viewAllTitle = _a.viewAllTitle, icon = _a.icon, props = __rest(_a, ["children", "isDefaultItem", "href", "onClick", "offsetXL", "subTitle", "title", "viewAllTitle", "icon"]);
21533
21860
  var navItem = useContext(Context).navItem;
21534
- var subNavItem = useRef();
21861
+ var subNavItem = useRef(null);
21535
21862
  var _e = useState(false), panelOpen = _e[0], setPanelOpen = _e[1];
21536
21863
  var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
21537
21864
  useEffect(function () {
@@ -21589,8 +21916,8 @@ var Skeleton = function (_a) {
21589
21916
  };
21590
21917
 
21591
21918
  /** Use `SkipLink` to help keyboard-only users skip to the main content on a page. */
21592
- var SkipLink = function (_a, props) {
21593
- var children = _a.children;
21919
+ var SkipLink = function (_a) {
21920
+ var children = _a.children, props = __rest(_a, ["children"]);
21594
21921
  return (React__default.createElement("div", __assign({ className: "arc-SkipLink" }, filterAttrs(props)), children));
21595
21922
  };
21596
21923
 
@@ -21949,8 +22276,8 @@ var Tag = function (_a) {
21949
22276
  };
21950
22277
 
21951
22278
  /** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
21952
- var TextArea = forwardRef(function (_a, ref) {
21953
- var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, width = _a.width, autoComplete = _a.autoComplete, _j = _a.minHeight, minHeight = _j === void 0 ? "116px" : _j, maxHeight = _a.maxHeight, isErrorAlert = _a.isErrorAlert, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onFocus", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width", "autoComplete", "minHeight", "maxHeight", "isErrorAlert"]);
22279
+ var TextArea = function (_a) {
22280
+ var ref = _a.ref, _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, width = _a.width, autoComplete = _a.autoComplete, _j = _a.minHeight, minHeight = _j === void 0 ? "116px" : _j, maxHeight = _a.maxHeight, isErrorAlert = _a.isErrorAlert, props = __rest(_a, ["ref", "defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onFocus", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width", "autoComplete", "minHeight", "maxHeight", "isErrorAlert"]);
21954
22281
  var surface = useContext(Context$3).surface;
21955
22282
  var ourRef = useRef(null);
21956
22283
  var _k = useState((value && value.length) || (defaultValue && defaultValue.length) || 0), characterCount = _k[0], setCharacterCount = _k[1];
@@ -21999,13 +22326,13 @@ var TextArea = forwardRef(function (_a, ref) {
21999
22326
  minHeight: minHeight,
22000
22327
  marginTop: hideLabel ? 0 : undefined,
22001
22328
  }, "aria-describedby": ariaDescribedby, autoComplete: autoComplete })));
22002
- });
22329
+ };
22003
22330
 
22004
22331
  // package.json
22005
22332
  var package_default = {
22006
22333
  name: "@arc-ui/helpers",
22007
22334
  private: true,
22008
- version: "12.0.0",
22335
+ version: "13.0.0",
22009
22336
  type: "module",
22010
22337
  homepage: "https://ui.digital-ent-int.bt.com",
22011
22338
  author: "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
@@ -23075,9 +23402,9 @@ var Truncate = function (_a) {
23075
23402
 
23076
23403
  /** Use `TypographyCard` for content that benefits from larger and energetic typography. */
23077
23404
  var TypographyCard = function (_a) {
23078
- var url = _a.url, onClick = _a.onClick, heading = _a.heading, metaText = _a.metaText, label = _a.label, minHeight = _a.minHeight, _b = _a.headingSize, headingSize = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.pathway, pathway = _d === void 0 ? "light" : _d, _e = _a.buttonIcon, buttonIcon = _e === void 0 ? "arrow" : _e, _f = _a.headingLevel, headingLevel = _f === void 0 ? "2" : _f, _g = _a.labelLevel, labelLevel = _g === void 0 ? "3" : _g, props = __rest(_a, ["url", "onClick", "heading", "metaText", "label", "minHeight", "headingSize", "linkData", "pathway", "buttonIcon", "headingLevel", "labelLevel"]);
23405
+ var url = _a.url, onClick = _a.onClick, heading = _a.heading, metaText = _a.metaText, label = _a.label, minHeight = _a.minHeight, _b = _a.headingSize, headingSize = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.pathway, pathway = _d === void 0 ? "light" : _d, _e = _a.buttonIcon, buttonIcon = _e === void 0 ? "arrow" : _e, _f = _a.headingLevel, headingLevel = _f === void 0 ? "2" : _f, _g = _a.labelLevel, labelLevel = _g === void 0 ? "3" : _g, _h = _a.headingWordWrap, headingWordWrap = _h === void 0 ? false : _h, props = __rest(_a, ["url", "onClick", "heading", "metaText", "label", "minHeight", "headingSize", "linkData", "pathway", "buttonIcon", "headingLevel", "labelLevel", "headingWordWrap"]);
23079
23406
  var surface = useContext(Context$3).surface;
23080
- var _h = useState(false), showHoverState = _h[0], setShowHoverState = _h[1];
23407
+ var _j = useState(false), showHoverState = _j[0], setShowHoverState = _j[1];
23081
23408
  var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
23082
23409
  var isDarkPathway = pathway === "dark";
23083
23410
  return (React__default.createElement("div", __assign({ style: { minHeight: minHeight }, className: classNames("arc-TypographyCard", {
@@ -23090,7 +23417,7 @@ var TypographyCard = function (_a) {
23090
23417
  label && (React__default.createElement("div", { className: "arc-TypographyCard-label" },
23091
23418
  React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label),
23092
23419
  React__default.createElement(VerticalSpace, { size: "16" }))),
23093
- React__default.createElement(CardHeading, { size: headingSize, linkData: linkData, heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) })),
23420
+ React__default.createElement(CardHeading, { size: headingSize, linkData: linkData, heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false), headingWordWrap: headingWordWrap })),
23094
23421
  React__default.createElement(CardFooter, { showButton: true, isDarkPathway: isDarkPathway, buttonIcon: buttonIcon, metaText: metaText, isHovered: showHoverState })));
23095
23422
  };
23096
23423
 
@@ -26244,10 +26571,10 @@ var ReactPlayerVimeo = /*@__PURE__*/getDefaultExportFromCjs(vimeoExports);
26244
26571
  * Use `VideoPlayer` to embed videos from YouTube or Vimeo.
26245
26572
  */
26246
26573
  var VideoPlayer = function (_a) {
26247
- var title = _a.title, description = _a.description, transcriptLink = _a.transcriptLink, transcriptContent = _a.transcriptContent, light = _a.light, url = _a.url, onReady = _a.onReady, onPlay = _a.onPlay, onStart = _a.onStart, onPause = _a.onPause, onError = _a.onError, onEnded = _a.onEnded, _b = _a.isBorderRadius, isBorderRadius = _b === void 0 ? false : _b, _c = _a.isSupportingTextHidden, isSupportingTextHidden = _c === void 0 ? false : _c, props = __rest(_a, ["title", "description", "transcriptLink", "transcriptContent", "light", "url", "onReady", "onPlay", "onStart", "onPause", "onError", "onEnded", "isBorderRadius", "isSupportingTextHidden"]);
26574
+ var title = _a.title, description = _a.description, transcriptLink = _a.transcriptLink, transcriptContent = _a.transcriptContent, light = _a.light, url = _a.url, onReady = _a.onReady, onPlay = _a.onPlay, onStart = _a.onStart, onPause = _a.onPause, onError = _a.onError, onEnded = _a.onEnded, _b = _a.isBorderRadius, isBorderRadius = _b === void 0 ? false : _b, _c = _a.isSupportingTextHidden, isSupportingTextHidden = _c === void 0 ? false : _c, _d = _a.titleWordWrap, titleWordWrap = _d === void 0 ? false : _d, props = __rest(_a, ["title", "description", "transcriptLink", "transcriptContent", "light", "url", "onReady", "onPlay", "onStart", "onPause", "onError", "onEnded", "isBorderRadius", "isSupportingTextHidden", "titleWordWrap"]);
26248
26575
  var TextWrapper = isSupportingTextHidden ? VisuallyHidden$2 : "div";
26249
26576
  var isVimeo = new URL(url).hostname.includes("vimeo");
26250
- var _d = useState(false), isClient = _d[0], setIsClient = _d[1];
26577
+ var _e = useState(false), isClient = _e[0], setIsClient = _e[1];
26251
26578
  // https://nextjs.org/docs/messages/react-hydration-error#solution-1-using-useeffect-to-run-on-the-client-only
26252
26579
  useEffect(function () {
26253
26580
  setIsClient(true);
@@ -26278,7 +26605,7 @@ var VideoPlayer = function (_a) {
26278
26605
  : isClient && React__default.createElement(ReactPlayerYoutube, __assign({}, playerProps))),
26279
26606
  React__default.createElement(TextWrapper, null,
26280
26607
  React__default.createElement(VerticalSpace, { size: "24" }),
26281
- React__default.createElement(Heading, { level: "3", size: "s" }, title),
26608
+ React__default.createElement(Heading, { level: "3", size: "s", isWordWrap: titleWordWrap }, title),
26282
26609
  React__default.createElement(VerticalSpace, { size: "8" }),
26283
26610
  React__default.createElement(Text, null, description)),
26284
26611
  transcriptLink && (React__default.createElement(React__default.Fragment, null,
@@ -26359,14 +26686,14 @@ var NavigationHeaderInlineAction = function (_a) {
26359
26686
  React__default.createElement(Text, { size: "l" }, text))));
26360
26687
  };
26361
26688
 
26362
- var NavigationHeaderButton = forwardRef(function (_a, ref) {
26363
- var isActive = _a.isActive, children = _a.children, onClick = _a.onClick, _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, props = __rest(_a, ["isActive", "children", "onClick", "isPadded"]);
26689
+ var NavigationHeaderButton = function (_a) {
26690
+ var ref = _a.ref, isActive = _a.isActive, children = _a.children, onClick = _a.onClick, _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, props = __rest(_a, ["ref", "isActive", "children", "onClick", "isPadded"]);
26364
26691
  var surface = useContext(Context$3).surface;
26365
26692
  return (React__default.createElement("button", __assign({}, props, { ref: ref, onClick: onClick, className: classNames("arc-NavigationHeaderButton", suffixModifier("arc-NavigationHeaderButton--on", surface), {
26366
26693
  "arc-NavigationHeaderButton--active": isActive,
26367
26694
  "arc-NavigationHeaderButton--padded": isPadded,
26368
26695
  }) }), children));
26369
- });
26696
+ };
26370
26697
 
26371
26698
  var NavigationHeaderDisclosure = function (_a) {
26372
26699
  var heading = _a.heading, children = _a.children;
@@ -26381,7 +26708,7 @@ var NavigationHeaderDisclosure = function (_a) {
26381
26708
  if (containerRef.current && containerRef.current.firstChild && isOpen) {
26382
26709
  containerRef.current.firstChild.focus();
26383
26710
  }
26384
- }, [isOpen, containerRef.current]);
26711
+ }, [isOpen]);
26385
26712
  return (React__default.createElement("details", { className: classNames("arc-NavigationHeaderDisclosure", suffixModifier("arc-NavigationHeaderDisclosure--on", surface)), open: isOpen },
26386
26713
  React__default.createElement("summary", { "aria-expanded": isOpen, onClick: handleOnClick, className: "arc-NavigationHeaderDisclosure-summary" },
26387
26714
  React__default.createElement("span", { className: "arc-NavigationHeaderDisclosure-heading" }, heading),
@@ -26412,12 +26739,12 @@ var NavigationHeaderMenuLink = function (_a) {
26412
26739
  React__default.createElement(ThemeIcon, { size: 28, icon: "navigationHeaderMenuLinkLarge" })))))));
26413
26740
  };
26414
26741
 
26415
- var NavigationHeaderCloseButton = React__default.forwardRef(function (_a, ref) {
26416
- var onClick = _a.onClick, props = __rest(_a, ["onClick"]);
26742
+ var NavigationHeaderCloseButton = function (_a) {
26743
+ var ref = _a.ref, onClick = _a.onClick, props = __rest(_a, ["ref", "onClick"]);
26417
26744
  var surface = useContext(Context$3).surface;
26418
26745
  return (React__default.createElement("button", __assign({}, props, { ref: ref, "aria-label": "close", onClick: onClick, className: classNames("arc-NavigationHeaderCloseButton", suffixModifier("arc-NavigationHeaderCloseButton--on", surface)) }),
26419
26746
  React__default.createElement(ThemeIcon, { size: 32, icon: "navigationHeaderClose" })));
26420
- });
26747
+ };
26421
26748
 
26422
26749
  var NavigationHeaderBurgerMenu = function (_a) {
26423
26750
  var navItems = _a.navItems, actions = _a.actions, header = _a.header, footer = _a.footer, logo = _a.logo, background = _a.background, onOpenChange = _a.onOpenChange, _b = _a.pathway, pathway = _b === void 0 ? "invert" : _b;
@@ -26437,24 +26764,25 @@ var NavigationHeaderBurgerMenu = function (_a) {
26437
26764
  };
26438
26765
  useEffect(function () {
26439
26766
  onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(isOpen);
26440
- }, [isOpen]);
26767
+ }, [isOpen, onOpenChange]);
26441
26768
  // Close the menu if the nav or trigger is hidden
26442
26769
  useEffect(function () {
26770
+ var trigger = triggerRef.current;
26443
26771
  var resizeObserver = new ResizeObserver(function (entries) {
26444
26772
  var entry = entries[0];
26445
26773
  if (!checkElementVisibility(entry.target) && isOpen) {
26446
26774
  setIsOpen(false);
26447
26775
  }
26448
26776
  });
26449
- if (triggerRef.current) {
26450
- resizeObserver.observe(triggerRef.current);
26777
+ if (trigger) {
26778
+ resizeObserver.observe(trigger);
26451
26779
  }
26452
26780
  return function () {
26453
- if (triggerRef.current) {
26454
- resizeObserver.unobserve(triggerRef.current);
26781
+ if (trigger) {
26782
+ resizeObserver.unobserve(trigger);
26455
26783
  }
26456
26784
  };
26457
- }, [isOpen, setIsOpen, triggerRef.current]);
26785
+ }, [isOpen, setIsOpen]);
26458
26786
  var colorScheme = useMemo(function () {
26459
26787
  var colorConfig = {
26460
26788
  light: {
@@ -26551,6 +26879,7 @@ var NavigationHeaderDropdown = function (_a) {
26551
26879
  var navigationHeaderContext = useContext(NavigationHeaderContext);
26552
26880
  // Close the dropdown if the nav or trigger is hidden
26553
26881
  useEffect(function () {
26882
+ var trigger = triggerRef.current;
26554
26883
  var resizeObserver = new ResizeObserver(function (entries) {
26555
26884
  var entry = entries[0];
26556
26885
  if (!checkElementVisibility(entry.target) && isOpen) {
@@ -26558,20 +26887,15 @@ var NavigationHeaderDropdown = function (_a) {
26558
26887
  setIsTooltipOpen(false);
26559
26888
  }
26560
26889
  });
26561
- if (triggerRef.current) {
26562
- resizeObserver.observe(triggerRef.current);
26890
+ if (trigger) {
26891
+ resizeObserver.observe(trigger);
26563
26892
  }
26564
26893
  return function () {
26565
- if (triggerRef.current) {
26566
- resizeObserver.unobserve(triggerRef.current);
26894
+ if (trigger) {
26895
+ resizeObserver.unobserve(trigger);
26567
26896
  }
26568
26897
  };
26569
- }, [
26570
- isOpen,
26571
- setIsOpen,
26572
- navigationHeaderContext === null || navigationHeaderContext === void 0 ? void 0 : navigationHeaderContext.setIsSubMenuItemActive,
26573
- triggerRef.current,
26574
- ]);
26898
+ }, [isOpen, setIsOpen, navigationHeaderContext]);
26575
26899
  // if focus isnt going anywhere else and closed via keyboard, return focus to the trigger
26576
26900
  var onCloseAutoFocus = function () {
26577
26901
  var _a, _b;
@@ -26699,14 +27023,10 @@ var NavigationHeaderSubnav = function (_a) {
26699
27023
  return function () {
26700
27024
  document.removeEventListener("click", handleClickOutside);
26701
27025
  };
26702
- }, [
26703
- setIsOpen,
26704
- dialogRef.current,
26705
- containerRef.current,
26706
- navigationHeaderContext === null || navigationHeaderContext === void 0 ? void 0 : navigationHeaderContext.setIsSubMenuItemActive,
26707
- ]);
27026
+ }, [setIsOpen, navigationHeaderContext]);
26708
27027
  // Close the subnav if the trigger is hidden and the submenu is open
26709
27028
  useEffect(function () {
27029
+ var trigger = triggerRef.current;
26710
27030
  var resizeObserver = new ResizeObserver(function (entries) {
26711
27031
  var entry = entries[0];
26712
27032
  if (!checkElementVisibility(entry.target) && isOpen) {
@@ -26714,20 +27034,15 @@ var NavigationHeaderSubnav = function (_a) {
26714
27034
  navigationHeaderContext === null || navigationHeaderContext === void 0 ? void 0 : navigationHeaderContext.setIsSubMenuItemActive(false);
26715
27035
  }
26716
27036
  });
26717
- if (triggerRef.current) {
26718
- resizeObserver.observe(triggerRef.current);
27037
+ if (trigger) {
27038
+ resizeObserver.observe(trigger);
26719
27039
  }
26720
27040
  return function () {
26721
- if (triggerRef.current) {
26722
- resizeObserver.unobserve(triggerRef.current);
27041
+ if (trigger) {
27042
+ resizeObserver.unobserve(trigger);
26723
27043
  }
26724
27044
  };
26725
- }, [
26726
- isOpen,
26727
- setIsOpen,
26728
- navigationHeaderContext === null || navigationHeaderContext === void 0 ? void 0 : navigationHeaderContext.setIsSubMenuItemActive,
26729
- triggerRef.current,
26730
- ]);
27045
+ }, [isOpen, setIsOpen, navigationHeaderContext]);
26731
27046
  return (React__default.createElement("div", { ref: containerRef },
26732
27047
  React__default.createElement(NavigationHeaderButton, { "data-sub-nav-item": true, ref: triggerRef, isActive: isOpen, "aria-label": ariaLabel, onClick: onTriggerClick }, trigger),
26733
27048
  React__default.createElement(Root$1, { open: isOpen, modal: false },
@@ -27827,5 +28142,5 @@ var Preview$1 = /*#__PURE__*/_mergeNamespaces({
27827
28142
  default: Preview
27828
28143
  }, [PreviewExports]);
27829
28144
 
27830
- export { Alert, Align, AppButton, Avatar, AvatarGroup, Badge, Banner, Box, BrandLogo, colors as BrandLogoColors, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, Button, ButtonGroup, ButtonV2, Calendar, Carousel, Checkbox, CheckboxIcon, Columns, ColumnsCol, ComboBox, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, ContentSwitcherList, ContentSwitcherTab, DATE_FORMAT, DatePicker, DatePickerRange, Disclosure, DisclosureMini, Download, Drawer, DrawerContent, DrawerFooter, DrawerHeader, Elevation, Filter, FilterControl, FilterControls, FilterItem, FilterItems, FormControl, Context$2 as FormControlContext, GhostedHeroBanner, GradientPageBackground, Grid, GridCol, GridRow, Group$1 as Group, GroupItem, Heading, HeroBanner, HeroButton, Hidden, HorizontalCard, Icon$1 as Icon, colors$1 as IconColors, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, ImageSource, ImpactCard, InformationCard, InputIcon, Link, Markup, MediaCard, Menu, MenuContent, MenuFooter, MenuGroup, MenuGroupSingleSelect, MenuHeader, MenuItem, MenuItemCheckbox, MenuItemContentTemplate, MenuItemMultiLevel, MenuItemMultiLevelContent, MenuItemMultiLevelTrigger, MenuItemSingleSelect, MenuLabel, MenuPortal, MenuScrollable, MenuSeparator, MenuTrigger, Modal, NavigationHeader, NavigationHeaderAction, NavigationHeaderActionBar, NavigationHeaderPage, Pagination, PaginationSimple, Popover, Poster, PosterImage, PosterVideo, ProgressBar, ProgressStepper, ProgressStepperItem, ProgressStepperOverflow, RadioCardGroup, RadioCardGroupInput, RadioGroup, RadioGroupButton, RadioGroupInput, Rule, ScrollToTop, Section, Select, SemanticHeading, SiteFooter, SiteFooterItem, SiteFooterItemGroup, SiteFooterV2, SiteFooterV2Item, SiteFooterV2ItemGroup, SiteFooterV2Main, SiteFooterV2Utility, SiteHeaderV2, SiteHeaderV2Column, SiteHeaderV2Item, SiteHeaderV2ItemGroup, SiteHeaderV2NavItem, SiteHeaderV2NavItemWithSubNav, SiteHeaderV2NodeItem, SiteHeaderV2SubNavItem, SiteHeaderV2VerticalDivider, Skeleton, SkipLink, SkipLinkItem, Spinner, Surface, Context$3 as SurfaceContext, Switch, TabbedBanner, Tabs, TabsContent, TabsItem, TabsList, Tag, TemplateBanner, Text, TextArea, TextInput, Theme, ThemeIcon, ThumbnailSignpost, Toast, ToastNotification, Tooltip, Truncate, TypographyCard, UniversalHeader, UniversalHeaderItem, VerticalSpace, VideoPlayer, Visible, VisuallyHidden$2 as VisuallyHidden, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery };
28145
+ export { Alert, Align, AppButton, Avatar, AvatarGroup, Badge, Banner, Box, BrandLogo, colors as BrandLogoColors, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, Button, ButtonGroup, ButtonV2, Calendar, Carousel, Checkbox, CheckboxIcon, Columns, ColumnsCol, ComboBox, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, ContentSwitcherList, ContentSwitcherTab, DATE_FORMAT, DatePicker, DatePickerRange, Disclosure, DisclosureMini, Download, Drawer, DrawerContent, DrawerFooter, DrawerHeader, Elevation, Filter, FilterControl, FilterControls, FilterItem, FilterItems, FormControl, Context$2 as FormControlContext, GhostedHeroBanner, GradientPageBackground, Grid, GridCol, GridRow, Group$1 as Group, GroupItem, Heading, HeroBanner, HeroButton, Hidden, HorizontalCard, Icon$1 as Icon, colors$1 as IconColors, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, ImageSource, ImpactCard, InformationCard, InputIcon, Link, Markup, MediaCard, Menu, MenuContent, MenuFooter, MenuGroup, MenuGroupSingleSelect, MenuHeader, MenuItem, MenuItemCheckbox, MenuItemContentTemplate, MenuItemMultiLevel, MenuItemMultiLevelContent, MenuItemMultiLevelTrigger, MenuItemSingleSelect, MenuLabel, MenuPortal, MenuScrollable, MenuSeparator, MenuTrigger, Modal, NavigationHeader, NavigationHeaderAction, NavigationHeaderActionBar, NavigationHeaderPage, Pagination, PaginationSimple, Popover, Poster, PosterImage, PosterVideo, ProgressBar, ProgressStepper, ProgressStepperItem, ProgressStepperOverflow, RadioCardGroup, RadioCardGroupInput, RadioGroup, RadioGroupButton, RadioGroupInput, Rule, ScrollToTop, Section, Select, SemanticHeading, SiteFooter, SiteFooterItem, SiteFooterItemGroup, SiteFooterV2, SiteFooterV2Item, SiteFooterV2ItemGroup, SiteFooterV2Main, SiteFooterV2Utility, SiteHeaderV2, SiteHeaderV2Column, SiteHeaderV2Item, SiteHeaderV2ItemGroup, SiteHeaderV2NavItem, SiteHeaderV2NavItemWithSubNav, SiteHeaderV2NodeItem, SiteHeaderV2SubNavItem, SiteHeaderV2VerticalDivider, Skeleton, SkipLink, SkipLinkItem, Spinner, Surface, Context$3 as SurfaceContext, Switch, TabbedBanner, Tabs, TabsContent, TabsItem, TabsList, Tag, TemplateBanner, Text, TextArea, TextInput, Theme, ThemeIcon, ThumbnailSignpost, Toast, ToastNotification, Tooltip, Truncate, TypographyCard, UniversalHeader, UniversalHeaderItem, VerticalSpace, VideoPlayer, Visible, VisuallyHidden$2 as VisuallyHidden, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery, useProgressStepperOverflow };
27831
28146
  //# sourceMappingURL=index.mjs.map