@arc-ui/components 12.0.0-beta.16 → 12.0.0-beta.18

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 (251) hide show
  1. package/lib/Alert/Alert.cjs +1 -1
  2. package/lib/Alert/Alert.mjs +1 -1
  3. package/lib/Alert/styles.css +1 -1
  4. package/lib/Align/styles.css +1 -1
  5. package/lib/AppButton/styles.css +1 -1
  6. package/lib/Avatar/styles.css +1 -1
  7. package/lib/AvatarGroup/styles.css +1 -1
  8. package/lib/Badge/styles.css +1 -1
  9. package/lib/Banner/Banner.cjs +6 -6
  10. package/lib/Banner/Banner.mjs +6 -6
  11. package/lib/Box/styles.css +1 -1
  12. package/lib/BrandLogo/styles.css +1 -1
  13. package/lib/Breadcrumbs/Breadcrumbs.cjs +2 -2
  14. package/lib/Breadcrumbs/Breadcrumbs.mjs +2 -2
  15. package/lib/Breadcrumbs/styles.css +1 -1
  16. package/lib/Button/Button.cjs +2 -2
  17. package/lib/Button/Button.mjs +2 -2
  18. package/lib/Button/styles.css +1 -1
  19. package/lib/ButtonGroup/ButtonGroup.cjs +3 -3
  20. package/lib/ButtonGroup/ButtonGroup.mjs +3 -3
  21. package/lib/ButtonGroup/styles.css +1 -1
  22. package/lib/ButtonV2/ButtonV2.cjs +2 -2
  23. package/lib/ButtonV2/ButtonV2.mjs +2 -2
  24. package/lib/ButtonV2/styles.css +1 -1
  25. package/lib/Calendar/Calendar.cjs +4 -4
  26. package/lib/Calendar/Calendar.mjs +4 -4
  27. package/lib/Calendar/styles.css +1 -1
  28. package/lib/CardFooter/CardFooter.cjs +2 -4
  29. package/lib/CardFooter/CardFooter.mjs +2 -4
  30. package/lib/CardFooter/styles.css +1 -1
  31. package/lib/CardHeading/styles.css +1 -1
  32. package/lib/Carousel/Carousel.cjs +1 -1
  33. package/lib/Carousel/Carousel.mjs +1 -1
  34. package/lib/Carousel/styles.css +1 -1
  35. package/lib/Checkbox/styles.css +1 -1
  36. package/lib/Columns/styles.css +1 -1
  37. package/lib/ComboBox/ComboBox.cjs +6 -6
  38. package/lib/ComboBox/ComboBox.mjs +6 -6
  39. package/lib/ComboBox/styles.css +1 -1
  40. package/lib/ContentSwitcher/styles.css +1 -1
  41. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +6 -4
  42. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +6 -4
  43. package/lib/ContentSwitcherDropdown/styles.css +1 -1
  44. package/lib/DatePicker/DatePicker.cjs +9 -9
  45. package/lib/DatePicker/DatePicker.mjs +9 -9
  46. package/lib/DatePicker/styles.css +1 -1
  47. package/lib/Disclosure/styles.css +1 -1
  48. package/lib/DisclosureMini/styles.css +1 -1
  49. package/lib/Download/styles.css +1 -1
  50. package/lib/Drawer/Drawer.cjs +3 -3
  51. package/lib/Drawer/Drawer.mjs +3 -3
  52. package/lib/Drawer/styles.css +1 -1
  53. package/lib/Elevation/styles.css +1 -1
  54. package/lib/Filter/styles.css +1 -1
  55. package/lib/FormControl/styles.css +1 -1
  56. package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +31 -0
  57. package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +29 -0
  58. package/lib/GhostedHeroBanner/styles.css +1 -0
  59. package/lib/GradientBackground/GradientBackground.cjs +19 -0
  60. package/lib/GradientBackground/GradientBackground.mjs +17 -0
  61. package/lib/GradientBackground/styles.css +1 -0
  62. package/lib/Grid/styles.css +1 -1
  63. package/lib/Group/styles.css +1 -1
  64. package/lib/Heading/styles.css +1 -1
  65. package/lib/HeroBanner/HeroBanner.cjs +6 -6
  66. package/lib/HeroBanner/HeroBanner.mjs +6 -6
  67. package/lib/HeroBanner/styles.css +1 -1
  68. package/lib/HeroButton/HeroButton.cjs +2 -2
  69. package/lib/HeroButton/HeroButton.mjs +2 -2
  70. package/lib/HeroButton/styles.css +1 -1
  71. package/lib/Hidden/styles.css +1 -1
  72. package/lib/HorizontalCard/HorizontalCard.cjs +2 -4
  73. package/lib/HorizontalCard/HorizontalCard.mjs +2 -4
  74. package/lib/HorizontalCard/styles.css +1 -1
  75. package/lib/Icon/Icon.cjs +1 -1
  76. package/lib/Icon/Icon.mjs +1 -1
  77. package/lib/Icon/styles.css +1 -1
  78. package/lib/Image/styles.css +1 -1
  79. package/lib/ImpactCard/ImpactCard.cjs +2 -4
  80. package/lib/ImpactCard/ImpactCard.mjs +2 -4
  81. package/lib/ImpactCard/styles.css +1 -1
  82. package/lib/InformationCard/InformationCard.cjs +4 -4
  83. package/lib/InformationCard/InformationCard.mjs +4 -4
  84. package/lib/InformationCard/styles.css +1 -1
  85. package/lib/Link/Link.cjs +9 -22
  86. package/lib/Link/Link.mjs +9 -22
  87. package/lib/Link/styles.css +1 -1
  88. package/lib/Markup/styles.css +1 -1
  89. package/lib/MediaCard/MediaCard.cjs +4 -6
  90. package/lib/MediaCard/MediaCard.mjs +4 -6
  91. package/lib/MediaCard/styles.css +1 -1
  92. package/lib/Menu/Menu.cjs +261 -0
  93. package/lib/Menu/Menu.mjs +243 -0
  94. package/lib/Menu/styles.css +1 -0
  95. package/lib/Modal/Modal.cjs +18 -12
  96. package/lib/Modal/Modal.mjs +18 -12
  97. package/lib/Modal/styles.css +1 -1
  98. package/lib/Pagination/styles.css +1 -1
  99. package/lib/PaginationSimple/PaginationSimple.cjs +15 -49
  100. package/lib/PaginationSimple/PaginationSimple.mjs +15 -49
  101. package/lib/PaginationSimple/styles.css +1 -1
  102. package/lib/Popover/Popover.cjs +7 -7
  103. package/lib/Popover/Popover.mjs +7 -7
  104. package/lib/Popover/styles.css +1 -1
  105. package/lib/Poster/styles.css +1 -1
  106. package/lib/ProgressBar/styles.css +1 -1
  107. package/lib/ProgressStepper/ProgressStepper.cjs +8 -23
  108. package/lib/ProgressStepper/ProgressStepper.mjs +8 -23
  109. package/lib/ProgressStepper/styles.css +1 -1
  110. package/lib/RadioCardGroup/RadioCardGroup.cjs +2 -2
  111. package/lib/RadioCardGroup/RadioCardGroup.mjs +3 -3
  112. package/lib/RadioCardGroup/styles.css +1 -1
  113. package/lib/RadioGroup/styles.css +1 -1
  114. package/lib/Rule/styles.css +1 -1
  115. package/lib/ScrollToTop/ScrollToTop.cjs +8 -17
  116. package/lib/ScrollToTop/ScrollToTop.mjs +8 -17
  117. package/lib/ScrollToTop/styles.css +1 -1
  118. package/lib/Section/styles.css +1 -1
  119. package/lib/Select/Select.cjs +4 -3
  120. package/lib/Select/Select.mjs +4 -3
  121. package/lib/Select/styles.css +1 -1
  122. package/lib/SiteFooter/SiteFooter.cjs +1 -1
  123. package/lib/SiteFooter/SiteFooter.mjs +1 -1
  124. package/lib/SiteFooter/styles.css +1 -1
  125. package/lib/SiteFooterV2/SiteFooterV2.cjs +5 -5
  126. package/lib/SiteFooterV2/SiteFooterV2.mjs +5 -5
  127. package/lib/SiteFooterV2/styles.css +1 -1
  128. package/lib/SiteHeaderV2/SiteHeaderV2.cjs +11 -11
  129. package/lib/SiteHeaderV2/SiteHeaderV2.mjs +12 -12
  130. package/lib/SiteHeaderV2/styles.css +1 -1
  131. package/lib/Skeleton/styles.css +1 -1
  132. package/lib/SkipLink/styles.css +1 -1
  133. package/lib/Spinner/styles.css +1 -1
  134. package/lib/Surface/styles.css +1 -1
  135. package/lib/Switch/Switch.cjs +3 -2
  136. package/lib/Switch/Switch.mjs +3 -2
  137. package/lib/Switch/styles.css +1 -1
  138. package/lib/TabbedBanner/TabbedBanner.cjs +13 -10
  139. package/lib/TabbedBanner/TabbedBanner.mjs +13 -10
  140. package/lib/TabbedBanner/styles.css +1 -1
  141. package/lib/Tabs/Tabs.cjs +1 -1
  142. package/lib/Tabs/Tabs.mjs +1 -1
  143. package/lib/Tabs/styles.css +1 -1
  144. package/lib/Tag/Tag.cjs +15 -37
  145. package/lib/Tag/Tag.mjs +15 -37
  146. package/lib/Tag/styles.css +1 -1
  147. package/lib/TemplateBanner/TemplateBanner.cjs +6 -6
  148. package/lib/TemplateBanner/TemplateBanner.mjs +6 -6
  149. package/lib/TemplateBanner/styles.css +1 -1
  150. package/lib/Text/styles.css +1 -1
  151. package/lib/TextArea/TextArea.cjs +34 -26
  152. package/lib/TextArea/TextArea.mjs +34 -26
  153. package/lib/TextArea/styles.css +1 -1
  154. package/lib/TextInput/styles.css +1 -1
  155. package/lib/Theme/Theme.cjs +1 -1
  156. package/lib/Theme/Theme.mjs +1 -1
  157. package/lib/Theme/styles.css +1 -1
  158. package/lib/ThemeIcon/styles.css +1 -1
  159. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +4 -4
  160. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +4 -4
  161. package/lib/ThumbnailSignpost/styles.css +1 -1
  162. package/lib/Toast/styles.css +1 -1
  163. package/lib/Tooltip/Tooltip.cjs +1 -1
  164. package/lib/Tooltip/Tooltip.mjs +1 -1
  165. package/lib/Tooltip/styles.css +1 -1
  166. package/lib/Truncate/styles.css +1 -1
  167. package/lib/TypographyCard/TypographyCard.cjs +2 -4
  168. package/lib/TypographyCard/TypographyCard.mjs +2 -4
  169. package/lib/TypographyCard/styles.css +1 -1
  170. package/lib/UniversalHeader/styles.css +1 -1
  171. package/lib/VerticalSpace/styles.css +1 -1
  172. package/lib/VideoPlayer/VideoPlayer.cjs +12 -5
  173. package/lib/VideoPlayer/VideoPlayer.mjs +12 -5
  174. package/lib/VideoPlayer/styles.css +1 -1
  175. package/lib/Visible/styles.css +1 -1
  176. package/lib/VisuallyHidden/styles.css +1 -1
  177. package/lib/_shared/cjs/BannerImage-kdAKagG-.cjs +13 -0
  178. package/lib/_shared/cjs/BtIconArrowRight-Bm5PIn_6.cjs +11 -0
  179. package/lib/_shared/cjs/BtIconChevronRight2Px-CIRaur2B.cjs +20 -0
  180. package/lib/_shared/cjs/BtIconChevronRightMid-eGxk3ae6.cjs +11 -0
  181. package/lib/_shared/cjs/{Button-b36K7-Cf.cjs → Button-CKTa6bQL.cjs} +1 -1
  182. package/lib/_shared/cjs/{ButtonV2-s8OF4enU.cjs → ButtonV2-CRNNZ_nd.cjs} +15 -4
  183. package/lib/_shared/cjs/{Calendar-D58QIWQz.cjs → Calendar-C5C0evEy.cjs} +17 -40
  184. package/lib/_shared/cjs/{CardFooter-B2ljCf25.cjs → CardFooter-DwE-u0Om.cjs} +9 -45
  185. package/lib/_shared/cjs/{Combination-iNPq-pNP.cjs → Combination-B-rSVLfT.cjs} +2 -0
  186. package/lib/_shared/cjs/{ComboBox-CmVMpsxn.cjs → ComboBox-BIMxZhJp.cjs} +10 -20
  187. package/lib/_shared/cjs/{ContentSwitcherDropdown-CWP2-zun.cjs → ContentSwitcherDropdown-CAWaAMZN.cjs} +4 -2
  188. package/lib/_shared/cjs/{DatePicker-Cx5VZpwJ.cjs → DatePicker-BgU6iidG.cjs} +2 -2
  189. package/lib/_shared/cjs/HeroButton-CiIygZ16.cjs +82 -0
  190. package/lib/_shared/cjs/Icon-KMACQ1i3.cjs +39 -0
  191. package/lib/_shared/cjs/{MediaCard-DkTTTQNz.cjs → MediaCard-kcqfmeue.cjs} +2 -2
  192. package/lib/_shared/cjs/MenuSubContent-Bs2_ebS3.cjs +1330 -0
  193. package/lib/_shared/cjs/{RadioCardGroupInput-DT0Xce4L.cjs → RadioCardGroupInput-BmntgyWB.cjs} +1 -1
  194. package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-XnnzUfOs.cjs → SiteHeaderV2NavItemWithSubNav-DgoCW2W3.cjs} +8 -7
  195. package/lib/_shared/cjs/{TemplateBanner-BCbI7NLb.cjs → TemplateBanner-BMi77IGK.cjs} +10 -18
  196. package/lib/_shared/cjs/{index-DbQ2PCr3.cjs → index-Bt7hfZBc.cjs} +1 -1
  197. package/lib/_shared/cjs/{index-BcWpGxUd.cjs → index-C_Rl7v2g.cjs} +27 -94
  198. package/lib/_shared/cjs/{index-Cn7XSNle.cjs → index-CaO6cOF0.cjs} +3 -3
  199. package/lib/_shared/cjs/index-CqYNiqix.cjs +137 -0
  200. package/lib/_shared/cjs/{index-BMs6MHwq.cjs → index-DAr_oO4-.cjs} +2 -2
  201. package/lib/_shared/cjs/{index-DNgUhsBO.cjs → index-Dv1xvB_E.cjs} +1 -1
  202. package/lib/_shared/cjs/index-EFXw1jWg.cjs +97 -0
  203. package/lib/_shared/cjs/{index.es-CY6h69at.cjs → index.es-sqSQUWYg.cjs} +1 -1
  204. package/lib/_shared/esm/BannerImage-BTsixvUH.mjs +11 -0
  205. package/lib/_shared/esm/BtIconArrowRight-DpUmY3g3.mjs +9 -0
  206. package/lib/_shared/esm/BtIconChevronRight2Px-DzWb16fR.mjs +17 -0
  207. package/lib/_shared/esm/BtIconChevronRightMid-DE4lmVaG.mjs +9 -0
  208. package/lib/_shared/esm/{Button-DtmI3xYm.mjs → Button-9L4AksQP.mjs} +1 -1
  209. package/lib/_shared/esm/{ButtonV2-CkFdHviV.mjs → ButtonV2-2U4PvnpS.mjs} +15 -4
  210. package/lib/_shared/esm/{Calendar-C_b271wl.mjs → Calendar-L6u3D8xb.mjs} +17 -40
  211. package/lib/_shared/esm/{CardFooter-6APGUbK4.mjs → CardFooter-CgDDDI7Z.mjs} +9 -45
  212. package/lib/_shared/esm/{Combination-CFD0IA8r.mjs → Combination-BpO6XTeS.mjs} +1 -1
  213. package/lib/_shared/esm/{ComboBox-CTx_umV_.mjs → ComboBox-DUTrEu0N.mjs} +10 -20
  214. package/lib/_shared/esm/{ContentSwitcherDropdown-DuN_n1jh.mjs → ContentSwitcherDropdown-dktkyAjY.mjs} +4 -2
  215. package/lib/_shared/esm/{DatePicker-CIdfpUqM.mjs → DatePicker-CccSfg17.mjs} +2 -2
  216. package/lib/_shared/esm/HeroButton-HYskwyvn.mjs +80 -0
  217. package/lib/_shared/esm/Icon-MZfaoOo9.mjs +36 -0
  218. package/lib/_shared/esm/{MediaCard-_6xVVmiF.mjs → MediaCard-CjTDOvmx.mjs} +2 -2
  219. package/lib/_shared/esm/MenuSubContent-Cv9mSn58.mjs +1297 -0
  220. package/lib/_shared/esm/{RadioCardGroupInput-CwYJBtmO.mjs → RadioCardGroupInput-Cy1r7M8l.mjs} +1 -1
  221. package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-C_rohQhn.mjs → SiteHeaderV2NavItemWithSubNav-BLqiSeEC.mjs} +8 -7
  222. package/lib/_shared/esm/{TemplateBanner-Cckao4N8.mjs → TemplateBanner-zc4VmeeW.mjs} +10 -18
  223. package/lib/_shared/esm/index-BbAu4d3T.mjs +76 -0
  224. package/lib/_shared/esm/index-CL6dwOYV.mjs +135 -0
  225. package/lib/_shared/esm/{index-CpOcAL8k.mjs → index-CYUcQl4W.mjs} +3 -71
  226. package/lib/_shared/esm/{index-ZYyu0Vjh.mjs → index-CxrL7jIX.mjs} +3 -3
  227. package/lib/_shared/esm/{index-DNxTGgc1.mjs → index-DLovItWo.mjs} +1 -1
  228. package/lib/_shared/esm/{index-BUp5JjoD.mjs → index-DXTwueLZ.mjs} +1 -1
  229. package/lib/_shared/esm/{index-pkbjTTz_.mjs → index-J5IHetgg.mjs} +2 -2
  230. package/lib/_shared/esm/{index.es-JItYKukj.mjs → index.es-C3WGtwrW.mjs} +2 -2
  231. package/lib/index.cjs +2457 -1014
  232. package/lib/index.cjs.map +1 -1
  233. package/lib/index.d.cts +800 -431
  234. package/lib/index.d.mts +800 -431
  235. package/lib/index.js.map +1 -1
  236. package/lib/index.mjs +2437 -1014
  237. package/lib/index.mjs.map +1 -1
  238. package/lib/styles.css +22 -8
  239. package/package.json +11 -8
  240. package/lib/_shared/cjs/BtIconArrowRight-BX-bj8Y6.cjs +0 -27
  241. package/lib/_shared/cjs/BtIconChevronRight2Px-CnplmEFZ.cjs +0 -41
  242. package/lib/_shared/cjs/BtIconChevronRightMid-C6zjDEMv.cjs +0 -25
  243. package/lib/_shared/cjs/BtIconPlayFill-WUt-9eLl.cjs +0 -27
  244. package/lib/_shared/cjs/HeroButton-CrsC6Q7A.cjs +0 -124
  245. package/lib/_shared/cjs/Icon-DdqFr6bT.cjs +0 -52
  246. package/lib/_shared/esm/BtIconArrowRight-CTjAzV9X.mjs +0 -25
  247. package/lib/_shared/esm/BtIconChevronRight2Px-CWIIvs1E.mjs +0 -38
  248. package/lib/_shared/esm/BtIconChevronRightMid-DB68JQ0u.mjs +0 -23
  249. package/lib/_shared/esm/BtIconPlayFill-DEoVOrOQ.mjs +0 -25
  250. package/lib/_shared/esm/HeroButton-x7krReay.mjs +0 -122
  251. package/lib/_shared/esm/Icon-B626JGP1.mjs +0 -49
package/lib/index.cjs CHANGED
@@ -405,34 +405,20 @@ var backgroundsBT = __spreadArray([], backgroundsShared, true);
405
405
  */
406
406
  var Icon$1 = function (_a) {
407
407
  var _b;
408
- var testId = _a.testId, icon = _a.icon, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.isInline, isInline = _d === void 0 ? false : _d, _e = _a.isPresentationIcon, isPresentationIcon = _e === void 0 ? false : _e, label = _a.label, size = _a.size, props = __rest(_a, ["testId", "icon", "color", "isInline", "isPresentationIcon", "label", "size"]);
408
+ var testId = _a.testId, icon = _a.icon, label = _a.label, size = _a.size, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.isInline, isInline = _d === void 0 ? false : _d, props = __rest(_a, ["testId", "icon", "label", "size", "color", "isInline"]);
409
409
  var surface = React.useContext(Context$3).surface;
410
- var presentationIconProps = {
411
- role: "presentation",
412
- "aria-hidden": true,
413
- };
414
- var renderIcon = function () {
415
- if (!icon)
416
- return null;
417
- var accessibleProps = isPresentationIcon ? presentationIconProps : {};
418
- if (typeof icon === "function") {
419
- var IconComponent = icon || (function () { return React.createElement(React.Fragment, null); });
420
- return React.createElement(IconComponent, __assign({}, accessibleProps));
421
- }
422
- if (React.isValidElement(icon) && icon.type === "svg") {
423
- return React.cloneElement(icon, accessibleProps);
424
- }
425
- return null;
426
- };
427
- return (React.createElement("span", __assign({ "data-testid": testId, "aria-label": label, className: classNames((_b = {},
410
+ var iconUrl = icon ? "url(\"".concat(icon, "\")") : undefined;
411
+ return (React.createElement("span", __assign({ "data-testid": testId, "aria-label": label, role: label ? "img" : undefined, className: classNames((_b = {},
428
412
  _b["arc-Icon"] = true,
429
- _b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
430
413
  _b["arc-Icon--inline"] = isInline,
414
+ _b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
431
415
  _b["arc-Icon--onDarkSurface"] = surface === "dark",
432
- _b)), role: label ? "img" : undefined, style: {
416
+ _b)), style: {
433
417
  height: size,
434
418
  width: size,
435
- } }, filterAttrs(props)), renderIcon()));
419
+ maskImage: iconUrl,
420
+ WebkitMaskImage: iconUrl,
421
+ } }, filterAttrs(props))));
436
422
  };
437
423
  var colors$1 = [
438
424
  "auto",
@@ -440,6 +426,7 @@ var colors$1 = [
440
426
  "statusRed",
441
427
  "statusAmber",
442
428
  "statusGreen",
429
+ "gradient",
443
430
  ];
444
431
 
445
432
  var ThemeIcon = function (_a) {
@@ -685,7 +672,7 @@ var Badge = function (_a) {
685
672
 
686
673
  /**
687
674
  * Do not edit directly
688
- * Generated on Thu, 06 Mar 2025 14:17:53 GMT
675
+ * Generated on Mon, 19 May 2025 14:54:16 GMT
689
676
  */
690
677
  var ArcSizeBreakpointsXs = "320px";
691
678
  var ArcSizeBreakpointsS = "636px";
@@ -847,26 +834,6 @@ var VerticalSpace = function (_a) {
847
834
  _b)) }, filterAttrs(props))));
848
835
  };
849
836
 
850
- /**
851
- * Use `Text` to display text.
852
- */
853
- var Text = function (_a) {
854
- var _b;
855
- var _c = _a.align, align = _c === void 0 ? "left" : _c, children = _a.children, id = _a.id, _d = _a.isInline, isInline = _d === void 0 ? false : _d, _e = _a.isMeasured, isMeasured = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "m" : _f, _g = _a.tone, tone = _g === void 0 ? "default" : _g, _h = _a.elementType, elementType = _h === void 0 ? "span" : _h, props = __rest(_a, ["align", "children", "id", "isInline", "isMeasured", "size", "tone", "elementType"]);
856
- var surface = React.useContext(Context$3).surface;
857
- var Element = elementType;
858
- return (React.createElement(Element, __assign({ id: id, className: classNames((_b = {
859
- "arc-Text": true
860
- },
861
- _b[suffixModifier("arc-Text--align", align)] = align !== "left",
862
- _b["arc-Text--inline"] = isInline,
863
- _b["arc-Text--measured"] = isMeasured,
864
- _b["arc-Text--size".concat(size && size.toUpperCase())] = size && size !== "m",
865
- _b["arc-Text--".concat(tone)] = tone !== "default",
866
- _b["arc-Text--onDarkSurface"] = surface === "dark",
867
- _b)) }, filterAttrs(props)), children));
868
- };
869
-
870
837
  /**
871
838
  * Use `Box` as a simple way to group bespoke content and interactive elements together.
872
839
  */
@@ -919,8 +886,8 @@ var GridRow = function (_a) {
919
886
  };
920
887
 
921
888
  var BannerImage = function (_a) {
922
- var sources = _a.sources, props = __rest(_a, ["sources"]);
923
- return (React.createElement(Image, __assign({ fadeOnLoad: true }, props), sources &&
889
+ var sources = _a.sources, ariaHidden = _a.ariaHidden, props = __rest(_a, ["sources", "ariaHidden"]);
890
+ return (React.createElement(Image, __assign({ "aria-hidden": ariaHidden, fadeOnLoad: true }, props), sources &&
924
891
  sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); })));
925
892
  };
926
893
 
@@ -939,7 +906,7 @@ var TemplateBanner = function (_a) {
939
906
  };
940
907
  var isContained = type === "contained";
941
908
  var borderWidth = isContained && !isElevated ? "thin" : undefined;
942
- var direction = isReversed && isMinWidthArcBreakpointM ? "row" : "row-reverse";
909
+ var direction = isReversed && isMinWidthArcBreakpointM ? "row-reverse" : "row";
943
910
  var columnWithImgWidths = {
944
911
  "1/0": 12,
945
912
  "2/3": 8,
@@ -951,14 +918,10 @@ var TemplateBanner = function (_a) {
951
918
  React.createElement(Box, { isBorderRadius: true, "data-testid": "arc-TemplateBanner-box", borderWidth: borderWidth, surface: backgrounds[type], isSurfaceTransparent: !isContained },
952
919
  React.createElement(Grid, { isGutterless: true, isFluid: true },
953
920
  React.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow", direction: direction },
954
- img && contentRatio !== "1/0" && (React.createElement(GridCol, __assign({ "data-coltype": "img", "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
955
- ? { m: imageAlignment[img.alignment || "center"] }
956
- : undefined, xs: 12, order: { xs: isContained && isReversed ? 0 : 1, m: 0 } }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
957
- React.createElement(BannerImage, __assign({}, img)))),
958
921
  React.createElement(GridCol, { "data-testid": "arc-TemplateBanner-contentCol", align: {
959
922
  m: alignment === "start" ? "start" : "center",
960
923
  xs: !img || contentRatio === "1/0" ? "center" : "start",
961
- }, xs: 12, m: img ? columnWithImgWidths[contentRatio] : 12 },
924
+ }, xs: 12, order: { xs: isContained && isReversed ? 1 : 0, m: 0 }, m: img ? columnWithImgWidths[contentRatio] : 12 },
962
925
  React.createElement("div", { className: classNames("arc-TemplateBanner-content", {
963
926
  "arc-TemplateBanner-content--additionalTopMargin": additionalTopMargin && alignment === "start",
964
927
  }) },
@@ -968,11 +931,14 @@ var TemplateBanner = function (_a) {
968
931
  React.createElement(Heading, { level: headingLevel, size: headingSize }, heading),
969
932
  text && (React.createElement(React.Fragment, null,
970
933
  React.createElement(VerticalSpace, { size: "16" }),
971
- React.createElement("p", { className: "arc-TemplateBanner-text" },
972
- React.createElement(Text, null, text)))),
934
+ React.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
973
935
  children && (React.createElement(React.Fragment, null,
974
936
  React.createElement(VerticalSpace, { size: "32" }),
975
- children)))))))));
937
+ children)))),
938
+ img && contentRatio !== "1/0" && (React.createElement(GridCol, __assign({ "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
939
+ ? { m: imageAlignment[img.alignment || "center"] }
940
+ : undefined, xs: 12 }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
941
+ React.createElement(BannerImage, __assign({ ariaHidden: true }, img)))))))));
976
942
  };
977
943
 
978
944
  var Banner = function (_a) {
@@ -1653,39 +1619,21 @@ function requireDebounce () {
1653
1619
  var debounceExports = requireDebounce();
1654
1620
  var debounce = /*@__PURE__*/getDefaultExportFromCjs(debounceExports);
1655
1621
 
1656
- const BtIconChevronLeft2Px = (props) =>
1657
- /*#__PURE__*/ React.createElement(
1658
- "svg",
1659
- Object.assign(
1660
- {
1661
- xmlns: "http://www.w3.org/2000/svg",
1662
- viewBox: "0 0 32 32",
1663
- },
1664
- props,
1665
- ),
1666
- /*#__PURE__*/ React.createElement("defs", null),
1667
- /*#__PURE__*/ React.createElement("path", {
1668
- d: "M22.5,29.99854a.99676.99676,0,0,1-.707-.293L8.08594,15.99268,21.793,2.294A1.00023,1.00023,0,0,1,23.207,3.709l-12.293,12.28467L23.207,28.2915a1,1,0,0,1-.707,1.707Z",
1669
- fill: "currentColor",
1670
- }),
1671
- );
1622
+ /**
1623
+ * Do not edit directly
1624
+ * Generated file
1625
+ */
1672
1626
 
1673
- const BtIconChevronRight2Px = (props) =>
1674
- /*#__PURE__*/ React.createElement(
1675
- "svg",
1676
- Object.assign(
1677
- {
1678
- xmlns: "http://www.w3.org/2000/svg",
1679
- viewBox: "0 0 32 32",
1680
- },
1681
- props,
1682
- ),
1683
- /*#__PURE__*/ React.createElement("defs", null),
1684
- /*#__PURE__*/ React.createElement("path", {
1685
- d: "M9.5,29.99854A1.00025,1.00025,0,0,1,8.793,28.291l12.293-12.28467L8.793,3.7085A.99989.99989,0,0,1,10.207,2.29443l13.707,13.71289L10.207,29.70605A.99827.99827,0,0,1,9.5,29.99854Z",
1686
- fill: "currentColor",
1687
- }),
1688
- );
1627
+ const BtIconChevronLeft2Px =
1628
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M22.5 29.999a1 1 0 0 1-.707-.293L8.086 15.993 21.793 2.294a1 1 0 0 1 1.414 1.415L10.914 15.994l12.293 12.298a1 1 0 0 1-.707 1.706'/%3e%3c/svg%3e";
1629
+
1630
+ /**
1631
+ * Do not edit directly
1632
+ * Generated file
1633
+ */
1634
+
1635
+ const BtIconChevronRight2Px =
1636
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M9.5 29.999a1 1 0 0 1-.707-1.708l12.293-12.285L8.793 3.71a1 1 0 0 1 1.414-1.415l13.707 13.713-13.707 13.7a1 1 0 0 1-.707.292'/%3e%3c/svg%3e";
1689
1637
 
1690
1638
  var BreadcrumbsItem = function (_a) {
1691
1639
  var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children;
@@ -1829,8 +1777,9 @@ var Spinner = function (_a) {
1829
1777
  };
1830
1778
 
1831
1779
  var ButtonV2 = React.forwardRef(function (_a, ref) {
1832
- var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, _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, 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", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form"]);
1780
+ var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, _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", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form"]);
1833
1781
  var surface = React.useContext(Context$3).surface;
1782
+ var ButtonElement = isSpan ? "span" : "button";
1834
1783
  var iconSizes = {
1835
1784
  s: 16,
1836
1785
  m: 32,
@@ -1845,6 +1794,16 @@ var ButtonV2 = React.forwardRef(function (_a, ref) {
1845
1794
  "arc-ButtonV2--withIconBeforeText": iconPosition === "beforeText" && (icon || isLoading),
1846
1795
  });
1847
1796
  var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, filterAttrs(props));
1797
+ var getIconColor = function (buttonStyle) {
1798
+ switch (buttonStyle) {
1799
+ case "compact":
1800
+ case "secondary":
1801
+ case "tertiary":
1802
+ return surface === "light" ? "gradient" : "auto";
1803
+ default:
1804
+ return "auto";
1805
+ }
1806
+ };
1848
1807
  var buttonContent = (React.createElement("span", { className: classNames("arc-ButtonV2-inner", {
1849
1808
  "arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
1850
1809
  }) },
@@ -1852,11 +1811,11 @@ var ButtonV2 = React.forwardRef(function (_a, ref) {
1852
1811
  isLoading && (React.createElement("span", { className: "arc-ButtonV2-icon" },
1853
1812
  React.createElement(Spinner, { size: size }))),
1854
1813
  icon && !isLoading && (React.createElement("span", { className: "arc-ButtonV2-icon" },
1855
- React.createElement(Icon$1, { size: iconSizes[size], icon: icon })))));
1814
+ React.createElement(Icon$1, { color: getIconColor(buttonStyle), size: iconSizes[size], icon: icon })))));
1856
1815
  if (href && !isLoading) {
1857
1816
  return (React.createElement("a", __assign({}, commonProps, { className: ButtonV2Classes, href: href, rel: rel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, target: target }), buttonContent));
1858
1817
  }
1859
- return (React.createElement("button", __assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }),
1818
+ return (React.createElement(ButtonElement, __assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }),
1860
1819
  React.createElement("span", { className: classNames("arc-ButtonV2-inner", {
1861
1820
  "arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
1862
1821
  }) }, buttonContent)));
@@ -5115,6 +5074,26 @@ function cleanEscapedString(input) {
5115
5074
  return matched[1].replace(doubleQuoteRegExp, "'");
5116
5075
  }
5117
5076
 
5077
+ /**
5078
+ * Use `Text` to display text.
5079
+ */
5080
+ var Text = function (_a) {
5081
+ var _b;
5082
+ var _c = _a.align, align = _c === void 0 ? "left" : _c, children = _a.children, id = _a.id, _d = _a.isInline, isInline = _d === void 0 ? false : _d, _e = _a.isMeasured, isMeasured = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "m" : _f, _g = _a.tone, tone = _g === void 0 ? "default" : _g, _h = _a.elementType, elementType = _h === void 0 ? "span" : _h, props = __rest(_a, ["align", "children", "id", "isInline", "isMeasured", "size", "tone", "elementType"]);
5083
+ var surface = React.useContext(Context$3).surface;
5084
+ var Element = elementType;
5085
+ return (React.createElement(Element, __assign({ id: id, className: classNames((_b = {
5086
+ "arc-Text": true
5087
+ },
5088
+ _b[suffixModifier("arc-Text--align", align)] = align !== "left",
5089
+ _b["arc-Text--inline"] = isInline,
5090
+ _b["arc-Text--measured"] = isMeasured,
5091
+ _b["arc-Text--size".concat(size && size.toUpperCase())] = size && size !== "m",
5092
+ _b["arc-Text--".concat(tone)] = tone !== "default",
5093
+ _b["arc-Text--onDarkSurface"] = surface === "dark",
5094
+ _b)) }, filterAttrs(props)), children));
5095
+ };
5096
+
5118
5097
  var ArcCalendarContext = React.createContext(null);
5119
5098
 
5120
5099
  var CalendarDayNumber = React.forwardRef(function (_a, autoFocusRef) {
@@ -5181,24 +5160,13 @@ var CalendarDayNumber = React.forwardRef(function (_a, autoFocusRef) {
5181
5160
  React.createElement("span", { "aria-hidden": true }, getDate(date)))))))));
5182
5161
  });
5183
5162
 
5184
- const BtIconChevronDownMid = (props) =>
5185
- /*#__PURE__*/ React.createElement(
5186
- "svg",
5187
- Object.assign(
5188
- {
5189
- viewBox: "0 0 32 32",
5190
- fill: "none",
5191
- xmlns: "http://www.w3.org/2000/svg",
5192
- },
5193
- props,
5194
- ),
5195
- /*#__PURE__*/ React.createElement("path", {
5196
- fillRule: "evenodd",
5197
- clipRule: "evenodd",
5198
- d: "M16.0001 18.0909L21.7041 12.3935C21.9566 12.1415 22.2987 12 22.6554 12C23.0121 12 23.3543 12.1415 23.6068 12.3935C23.7316 12.5181 23.8306 12.6661 23.8982 12.829C23.9657 12.9919 24.0005 13.1665 24.0005 13.3429C24.0005 13.5192 23.9657 13.6938 23.8982 13.8567C23.8306 14.0196 23.7316 14.1676 23.6068 14.2922L16.9508 20.9402C16.6983 21.1918 16.3565 21.3331 16.0001 21.3331C15.6437 21.3331 15.3018 21.1918 15.0494 20.9402L8.39342 14.2922C8.26861 14.1676 8.16959 14.0196 8.10202 13.8567C8.03446 13.6938 7.99969 13.5192 7.99969 13.3429C7.99969 13.1665 8.03446 12.9919 8.10202 12.829C8.16959 12.6661 8.26861 12.5181 8.39342 12.3935C8.6459 12.1415 8.98804 12 9.34475 12C9.70147 12 10.0436 12.1415 10.2961 12.3935L16.0001 18.0909Z",
5199
- fill: "currentColor",
5200
- }),
5201
- );
5163
+ /**
5164
+ * Do not edit directly
5165
+ * Generated file
5166
+ */
5167
+
5168
+ const BtIconChevronDownMid =
5169
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='m16 18.09 5.704-5.696a1.347 1.347 0 0 1 2.296.949 1.34 1.34 0 0 1-.393.95L16.95 20.94a1.347 1.347 0 0 1-1.902 0l-6.656-6.648A1.342 1.342 0 0 1 9.345 12c.356 0 .699.142.951.393z' clip-rule='evenodd'/%3e%3c/svg%3e";
5202
5170
 
5203
5171
  var CalendarDateSelect = function (_a) {
5204
5172
  var ariaLabel = _a.ariaLabel, onChange = _a.onChange, name = _a.name, value = _a.value, displayValue = _a.displayValue, options = _a.options;
@@ -5392,43 +5360,21 @@ var CalendarDayGrid = function (_a) {
5392
5360
  React.createElement("tbody", { onKeyDown: handleKeyDown }, getWeeksInMonth(month).map(function (week, i) { return (React.createElement("tr", { key: "".concat(month.getTime(), "-week-").concat(i) }, week.map(function (day) { return (React.createElement(CalendarDayNumber, { ref: autoFocusRef, shouldRender: isSameMonth(month, day), key: day.getTime(), date: day, isFocusWithinDayGrid: isFocusWithinDayGrid })); }))); }))))); })));
5393
5361
  };
5394
5362
 
5395
- const BtIconChevronLeftMid = (props) =>
5396
- /*#__PURE__*/ React.createElement(
5397
- "svg",
5398
- Object.assign(
5399
- {
5400
- viewBox: "0 0 16 16",
5401
- fill: "none",
5402
- xmlns: "http://www.w3.org/2000/svg",
5403
- },
5404
- props,
5405
- ),
5406
- /*#__PURE__*/ React.createElement("path", {
5407
- fillRule: "evenodd",
5408
- clipRule: "evenodd",
5409
- d: "M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
5410
- fill: "currentColor",
5411
- }),
5412
- );
5363
+ /**
5364
+ * Do not edit directly
5365
+ * Generated file
5366
+ */
5413
5367
 
5414
- const BtIconChevronRightMid = (props) =>
5415
- /*#__PURE__*/ React.createElement(
5416
- "svg",
5417
- Object.assign(
5418
- {
5419
- viewBox: "0 0 16 16",
5420
- fill: "none",
5421
- xmlns: "http://www.w3.org/2000/svg",
5422
- },
5423
- props,
5424
- ),
5425
- /*#__PURE__*/ React.createElement("path", {
5426
- fillRule: "evenodd",
5427
- clipRule: "evenodd",
5428
- d: "M9.04543 8.0002L6.19676 5.1482C6.07077 5.02196 6 4.85089 6 4.67253C6 4.49418 6.07077 4.32311 6.19676 4.19687C6.25906 4.13446 6.33304 4.08495 6.41449 4.05117C6.49594 4.01739 6.58325 4 6.67143 4C6.75961 4 6.84692 4.01739 6.92837 4.05117C7.00982 4.08495 7.0838 4.13446 7.1461 4.19687L10.4701 7.52487C10.5959 7.65108 10.6665 7.82201 10.6665 8.0002C10.6665 8.1784 10.5959 8.34932 10.4701 8.47553L7.1461 11.8035C7.0838 11.8659 7.00982 11.9155 6.92837 11.9492C6.84692 11.983 6.75961 12.0004 6.67143 12.0004C6.58325 12.0004 6.49594 11.983 6.41449 11.9492C6.33304 11.9155 6.25906 11.8659 6.19676 11.8035C6.07077 11.6773 6 11.5062 6 11.3279C6 11.1495 6.07077 10.9784 6.19676 10.8522L9.04543 8.0002Z",
5429
- fill: "currentColor",
5430
- }),
5431
- );
5368
+ const BtIconChevronLeftMid =
5369
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='m7.621 8 2.849 2.852a.673.673 0 0 1-.732 1.097.7.7 0 0 1-.218-.145L6.196 8.476a.673.673 0 0 1 0-.951L9.52 4.197a.67.67 0 0 1 1.146.476c0 .178-.07.349-.196.475z' clip-rule='evenodd'/%3e%3c/svg%3e";
5370
+
5371
+ /**
5372
+ * Do not edit directly
5373
+ * Generated file
5374
+ */
5375
+
5376
+ const BtIconChevronRightMid =
5377
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='M9.045 8 6.197 5.148a.673.673 0 0 1 .731-1.097.7.7 0 0 1 .218.146l3.324 3.328a.673.673 0 0 1 0 .95l-3.324 3.329A.67.67 0 0 1 6 11.328c0-.178.07-.35.197-.476z' clip-rule='evenodd'/%3e%3c/svg%3e";
5432
5378
 
5433
5379
  var CalendarNavButton = function (_a) {
5434
5380
  var isDisabled = _a.isDisabled, onClick = _a.onClick, direction = _a.direction, ariaLabel = _a.ariaLabel;
@@ -8057,6 +8003,44 @@ var Checkbox = React.forwardRef(function (_a, ref) {
8057
8003
  errorMessage))));
8058
8004
  });
8059
8005
 
8006
+ /**
8007
+ * Use `Columns` to compose layouts on a 12-column grid.
8008
+ */
8009
+ var Columns = function (_a) {
8010
+ var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, _c = _a.isExtended, isExtended = _c === void 0 ? false : _c, props = __rest(_a, ["children", "isGutterless", "isExtended"]);
8011
+ return (React.createElement("div", __assign({ className: classNames({
8012
+ "arc-Columns": true,
8013
+ "arc-Columns--regular": !isExtended,
8014
+ "arc-Columns--extended": isExtended,
8015
+ "arc-Columns--gutterless": isGutterless,
8016
+ }) }, filterAttrs(props)),
8017
+ React.createElement("div", { className: "arc-Columns-inner" }, children)));
8018
+ };
8019
+ var ColumnsCol = function (_a) {
8020
+ var _b;
8021
+ var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
8022
+ return (React.createElement("div", __assign({ className: classNames((_b = {},
8023
+ _b["arc-Columns-col"] = true,
8024
+ _b[suffixModifier("arc-Columns-col--align", align || "")] = align,
8025
+ _b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
8026
+ _b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
8027
+ _b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
8028
+ _b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
8029
+ _b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
8030
+ _b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
8031
+ typeof offsetS !== "undefined" ||
8032
+ typeof offsetM !== "undefined" ||
8033
+ typeof offsetL !== "undefined" ||
8034
+ typeof offsetXL !== "undefined",
8035
+ _b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
8036
+ _b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
8037
+ _b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
8038
+ _b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
8039
+ _b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
8040
+ _b["arc-Columns-col--debugVisible"] = isDebugVisible,
8041
+ _b)) }, filterAttrs(props)), children));
8042
+ };
8043
+
8060
8044
  // packages/core/primitive/src/primitive.tsx
8061
8045
  function composeEventHandlers$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
8062
8046
  return function handleEvent(event) {
@@ -8542,7 +8526,7 @@ function createFocusGuard() {
8542
8526
 
8543
8527
  var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
8544
8528
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
8545
- var EVENT_OPTIONS = { bubbles: false, cancelable: true };
8529
+ var EVENT_OPTIONS$1 = { bubbles: false, cancelable: true };
8546
8530
  var FOCUS_SCOPE_NAME = "FocusScope";
8547
8531
  var FocusScope = React__namespace.forwardRef((props, forwardedRef) => {
8548
8532
  const {
@@ -8607,11 +8591,11 @@ var FocusScope = React__namespace.forwardRef((props, forwardedRef) => {
8607
8591
  const previouslyFocusedElement = document.activeElement;
8608
8592
  const hasFocusedCandidate = container.contains(previouslyFocusedElement);
8609
8593
  if (!hasFocusedCandidate) {
8610
- const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
8594
+ const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS$1);
8611
8595
  container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
8612
8596
  container.dispatchEvent(mountEvent);
8613
8597
  if (!mountEvent.defaultPrevented) {
8614
- focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
8598
+ focusFirst$2(removeLinks(getTabbableCandidates(container)), { select: true });
8615
8599
  if (document.activeElement === previouslyFocusedElement) {
8616
8600
  focus(container);
8617
8601
  }
@@ -8620,7 +8604,7 @@ var FocusScope = React__namespace.forwardRef((props, forwardedRef) => {
8620
8604
  return () => {
8621
8605
  container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
8622
8606
  setTimeout(() => {
8623
- const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
8607
+ const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS$1);
8624
8608
  container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
8625
8609
  container.dispatchEvent(unmountEvent);
8626
8610
  if (!unmountEvent.defaultPrevented) {
@@ -8660,7 +8644,7 @@ var FocusScope = React__namespace.forwardRef((props, forwardedRef) => {
8660
8644
  return /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
8661
8645
  });
8662
8646
  FocusScope.displayName = FOCUS_SCOPE_NAME;
8663
- function focusFirst(candidates, { select = false } = {}) {
8647
+ function focusFirst$2(candidates, { select = false } = {}) {
8664
8648
  const previouslyFocusedElement = document.activeElement;
8665
8649
  for (const candidate of candidates) {
8666
8650
  focus(candidate, { select });
@@ -10909,7 +10893,7 @@ var Arrow$3 = React__namespace.forwardRef((props, forwardedRef) => {
10909
10893
  );
10910
10894
  });
10911
10895
  Arrow$3.displayName = NAME$3;
10912
- var Root$3 = Arrow$3;
10896
+ var Root$4 = Arrow$3;
10913
10897
 
10914
10898
  // packages/react/use-size/src/useSize.tsx
10915
10899
  function useSize(element) {
@@ -10956,11 +10940,11 @@ var Popper$1 = (props) => {
10956
10940
  return /* @__PURE__ */ jsxRuntime.jsx(PopperProvider$1, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
10957
10941
  };
10958
10942
  Popper$1.displayName = POPPER_NAME$1;
10959
- var ANCHOR_NAME$2 = "PopperAnchor";
10943
+ var ANCHOR_NAME$3 = "PopperAnchor";
10960
10944
  var PopperAnchor$1 = React__namespace.forwardRef(
10961
10945
  (props, forwardedRef) => {
10962
10946
  const { __scopePopper, virtualRef, ...anchorProps } = props;
10963
- const context = usePopperContext$1(ANCHOR_NAME$2, __scopePopper);
10947
+ const context = usePopperContext$1(ANCHOR_NAME$3, __scopePopper);
10964
10948
  const ref = React__namespace.useRef(null);
10965
10949
  const composedRefs = useComposedRefs$1(forwardedRef, ref);
10966
10950
  React__namespace.useEffect(() => {
@@ -10969,9 +10953,9 @@ var PopperAnchor$1 = React__namespace.forwardRef(
10969
10953
  return virtualRef ? null : /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { ...anchorProps, ref: composedRefs });
10970
10954
  }
10971
10955
  );
10972
- PopperAnchor$1.displayName = ANCHOR_NAME$2;
10973
- var CONTENT_NAME$5 = "PopperContent";
10974
- var [PopperContentProvider$1, useContentContext$1] = createPopperContext$1(CONTENT_NAME$5);
10956
+ PopperAnchor$1.displayName = ANCHOR_NAME$3;
10957
+ var CONTENT_NAME$7 = "PopperContent";
10958
+ var [PopperContentProvider$1, useContentContext$1] = createPopperContext$1(CONTENT_NAME$7);
10975
10959
  var PopperContent$1 = React__namespace.forwardRef(
10976
10960
  (props, forwardedRef) => {
10977
10961
  const {
@@ -10990,7 +10974,7 @@ var PopperContent$1 = React__namespace.forwardRef(
10990
10974
  onPlaced,
10991
10975
  ...contentProps
10992
10976
  } = props;
10993
- const context = usePopperContext$1(CONTENT_NAME$5, __scopePopper);
10977
+ const context = usePopperContext$1(CONTENT_NAME$7, __scopePopper);
10994
10978
  const [content, setContent] = React__namespace.useState(null);
10995
10979
  const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
10996
10980
  const [arrow$1, setArrow] = React__namespace.useState(null);
@@ -11113,8 +11097,8 @@ var PopperContent$1 = React__namespace.forwardRef(
11113
11097
  );
11114
11098
  }
11115
11099
  );
11116
- PopperContent$1.displayName = CONTENT_NAME$5;
11117
- var ARROW_NAME$4 = "PopperArrow";
11100
+ PopperContent$1.displayName = CONTENT_NAME$7;
11101
+ var ARROW_NAME$6 = "PopperArrow";
11118
11102
  var OPPOSITE_SIDE$1 = {
11119
11103
  top: "bottom",
11120
11104
  right: "left",
@@ -11123,7 +11107,7 @@ var OPPOSITE_SIDE$1 = {
11123
11107
  };
11124
11108
  var PopperArrow$1 = React__namespace.forwardRef(function PopperArrow2(props, forwardedRef) {
11125
11109
  const { __scopePopper, ...arrowProps } = props;
11126
- const contentContext = useContentContext$1(ARROW_NAME$4, __scopePopper);
11110
+ const contentContext = useContentContext$1(ARROW_NAME$6, __scopePopper);
11127
11111
  const baseSide = OPPOSITE_SIDE$1[contentContext.placedSide];
11128
11112
  return (
11129
11113
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
@@ -11153,7 +11137,7 @@ var PopperArrow$1 = React__namespace.forwardRef(function PopperArrow2(props, for
11153
11137
  visibility: contentContext.shouldHideArrow ? "hidden" : void 0
11154
11138
  },
11155
11139
  children: /* @__PURE__ */ jsxRuntime.jsx(
11156
- Root$3,
11140
+ Root$4,
11157
11141
  {
11158
11142
  ...arrowProps,
11159
11143
  ref: forwardedRef,
@@ -11168,7 +11152,7 @@ var PopperArrow$1 = React__namespace.forwardRef(function PopperArrow2(props, for
11168
11152
  )
11169
11153
  );
11170
11154
  });
11171
- PopperArrow$1.displayName = ARROW_NAME$4;
11155
+ PopperArrow$1.displayName = ARROW_NAME$6;
11172
11156
  function isNotNull$1(value) {
11173
11157
  return value !== null;
11174
11158
  }
@@ -11207,20 +11191,20 @@ function getSideAndAlignFromPlacement$1(placement) {
11207
11191
  const [side, align = "center"] = placement.split("-");
11208
11192
  return [side, align];
11209
11193
  }
11210
- var Root2$3 = Popper$1;
11194
+ var Root2$4 = Popper$1;
11211
11195
  var Anchor$1 = PopperAnchor$1;
11212
11196
  var Content$2 = PopperContent$1;
11213
11197
  var Arrow$2 = PopperArrow$1;
11214
11198
 
11215
- var PORTAL_NAME$5 = "Portal";
11216
- var Portal$5 = React__namespace.forwardRef((props, forwardedRef) => {
11199
+ var PORTAL_NAME$7 = "Portal";
11200
+ var Portal$6 = React__namespace.forwardRef((props, forwardedRef) => {
11217
11201
  const { container: containerProp, ...portalProps } = props;
11218
11202
  const [mounted, setMounted] = React__namespace.useState(false);
11219
11203
  useLayoutEffect2(() => setMounted(true), []);
11220
11204
  const container = containerProp || mounted && globalThis?.document?.body;
11221
11205
  return container ? ReactDOM.createPortal(/* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { ...portalProps, ref: forwardedRef }), container) : null;
11222
11206
  });
11223
- Portal$5.displayName = PORTAL_NAME$5;
11207
+ Portal$6.displayName = PORTAL_NAME$7;
11224
11208
 
11225
11209
  function useStateMachine$1(initialState, machine) {
11226
11210
  return React__namespace.useReducer((state, event) => {
@@ -12223,7 +12207,7 @@ var POPOVER_NAME = "Popover";
12223
12207
  var [createPopoverContext, createPopoverScope] = createContextScope$1(POPOVER_NAME, [
12224
12208
  createPopperScope$1
12225
12209
  ]);
12226
- var usePopperScope$2 = createPopperScope$1();
12210
+ var usePopperScope$3 = createPopperScope$1();
12227
12211
  var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
12228
12212
  var Popover$1 = (props) => {
12229
12213
  const {
@@ -12234,7 +12218,7 @@ var Popover$1 = (props) => {
12234
12218
  onOpenChange,
12235
12219
  modal = false
12236
12220
  } = props;
12237
- const popperScope = usePopperScope$2(__scopePopover);
12221
+ const popperScope = usePopperScope$3(__scopePopover);
12238
12222
  const triggerRef = React__namespace.useRef(null);
12239
12223
  const [hasCustomAnchor, setHasCustomAnchor] = React__namespace.useState(false);
12240
12224
  const [open = false, setOpen] = useControllableState({
@@ -12242,7 +12226,7 @@ var Popover$1 = (props) => {
12242
12226
  defaultProp: defaultOpen,
12243
12227
  onChange: onOpenChange
12244
12228
  });
12245
- return /* @__PURE__ */ jsxRuntime.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
12229
+ return /* @__PURE__ */ jsxRuntime.jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
12246
12230
  PopoverProvider,
12247
12231
  {
12248
12232
  scope: __scopePopover,
@@ -12260,12 +12244,12 @@ var Popover$1 = (props) => {
12260
12244
  ) });
12261
12245
  };
12262
12246
  Popover$1.displayName = POPOVER_NAME;
12263
- var ANCHOR_NAME$1 = "PopoverAnchor";
12247
+ var ANCHOR_NAME$2 = "PopoverAnchor";
12264
12248
  var PopoverAnchor = React__namespace.forwardRef(
12265
12249
  (props, forwardedRef) => {
12266
12250
  const { __scopePopover, ...anchorProps } = props;
12267
- const context = usePopoverContext(ANCHOR_NAME$1, __scopePopover);
12268
- const popperScope = usePopperScope$2(__scopePopover);
12251
+ const context = usePopoverContext(ANCHOR_NAME$2, __scopePopover);
12252
+ const popperScope = usePopperScope$3(__scopePopover);
12269
12253
  const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
12270
12254
  React__namespace.useEffect(() => {
12271
12255
  onCustomAnchorAdd();
@@ -12274,13 +12258,13 @@ var PopoverAnchor = React__namespace.forwardRef(
12274
12258
  return /* @__PURE__ */ jsxRuntime.jsx(Anchor$1, { ...popperScope, ...anchorProps, ref: forwardedRef });
12275
12259
  }
12276
12260
  );
12277
- PopoverAnchor.displayName = ANCHOR_NAME$1;
12278
- var TRIGGER_NAME$3 = "PopoverTrigger";
12261
+ PopoverAnchor.displayName = ANCHOR_NAME$2;
12262
+ var TRIGGER_NAME$4 = "PopoverTrigger";
12279
12263
  var PopoverTrigger = React__namespace.forwardRef(
12280
12264
  (props, forwardedRef) => {
12281
12265
  const { __scopePopover, ...triggerProps } = props;
12282
- const context = usePopoverContext(TRIGGER_NAME$3, __scopePopover);
12283
- const popperScope = usePopperScope$2(__scopePopover);
12266
+ const context = usePopoverContext(TRIGGER_NAME$4, __scopePopover);
12267
+ const popperScope = usePopperScope$3(__scopePopover);
12284
12268
  const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
12285
12269
  const trigger = /* @__PURE__ */ jsxRuntime.jsx(
12286
12270
  Primitive$1.button,
@@ -12298,30 +12282,30 @@ var PopoverTrigger = React__namespace.forwardRef(
12298
12282
  return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsxRuntime.jsx(Anchor$1, { asChild: true, ...popperScope, children: trigger });
12299
12283
  }
12300
12284
  );
12301
- PopoverTrigger.displayName = TRIGGER_NAME$3;
12302
- var PORTAL_NAME$4 = "PopoverPortal";
12303
- var [PortalProvider$2, usePortalContext$2] = createPopoverContext(PORTAL_NAME$4, {
12285
+ PopoverTrigger.displayName = TRIGGER_NAME$4;
12286
+ var PORTAL_NAME$6 = "PopoverPortal";
12287
+ var [PortalProvider$3, usePortalContext$3] = createPopoverContext(PORTAL_NAME$6, {
12304
12288
  forceMount: void 0
12305
12289
  });
12306
12290
  var PopoverPortal = (props) => {
12307
12291
  const { __scopePopover, forceMount, children, container } = props;
12308
- const context = usePopoverContext(PORTAL_NAME$4, __scopePopover);
12309
- return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider$2, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Portal$5, { asChild: true, container, children }) }) });
12292
+ const context = usePopoverContext(PORTAL_NAME$6, __scopePopover);
12293
+ return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider$3, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Portal$6, { asChild: true, container, children }) }) });
12310
12294
  };
12311
- PopoverPortal.displayName = PORTAL_NAME$4;
12312
- var CONTENT_NAME$4 = "PopoverContent";
12295
+ PopoverPortal.displayName = PORTAL_NAME$6;
12296
+ var CONTENT_NAME$6 = "PopoverContent";
12313
12297
  var PopoverContent = React__namespace.forwardRef(
12314
12298
  (props, forwardedRef) => {
12315
- const portalContext = usePortalContext$2(CONTENT_NAME$4, props.__scopePopover);
12299
+ const portalContext = usePortalContext$3(CONTENT_NAME$6, props.__scopePopover);
12316
12300
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
12317
- const context = usePopoverContext(CONTENT_NAME$4, props.__scopePopover);
12301
+ const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
12318
12302
  return /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntime.jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
12319
12303
  }
12320
12304
  );
12321
- PopoverContent.displayName = CONTENT_NAME$4;
12305
+ PopoverContent.displayName = CONTENT_NAME$6;
12322
12306
  var PopoverContentModal = React__namespace.forwardRef(
12323
12307
  (props, forwardedRef) => {
12324
- const context = usePopoverContext(CONTENT_NAME$4, props.__scopePopover);
12308
+ const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
12325
12309
  const contentRef = React__namespace.useRef(null);
12326
12310
  const composedRefs = useComposedRefs$1(forwardedRef, contentRef);
12327
12311
  const isRightClickOutsideRef = React__namespace.useRef(false);
@@ -12361,7 +12345,7 @@ var PopoverContentModal = React__namespace.forwardRef(
12361
12345
  );
12362
12346
  var PopoverContentNonModal = React__namespace.forwardRef(
12363
12347
  (props, forwardedRef) => {
12364
- const context = usePopoverContext(CONTENT_NAME$4, props.__scopePopover);
12348
+ const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
12365
12349
  const hasInteractedOutsideRef = React__namespace.useRef(false);
12366
12350
  const hasPointerDownOutsideRef = React__namespace.useRef(false);
12367
12351
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -12413,8 +12397,8 @@ var PopoverContentImpl = React__namespace.forwardRef(
12413
12397
  onInteractOutside,
12414
12398
  ...contentProps
12415
12399
  } = props;
12416
- const context = usePopoverContext(CONTENT_NAME$4, __scopePopover);
12417
- const popperScope = usePopperScope$2(__scopePopover);
12400
+ const context = usePopoverContext(CONTENT_NAME$6, __scopePopover);
12401
+ const popperScope = usePopperScope$3(__scopePopover);
12418
12402
  useFocusGuards();
12419
12403
  return /* @__PURE__ */ jsxRuntime.jsx(
12420
12404
  FocusScope,
@@ -12479,40 +12463,31 @@ var PopoverClose = React__namespace.forwardRef(
12479
12463
  }
12480
12464
  );
12481
12465
  PopoverClose.displayName = CLOSE_NAME$1;
12482
- var ARROW_NAME$3 = "PopoverArrow";
12466
+ var ARROW_NAME$5 = "PopoverArrow";
12483
12467
  var PopoverArrow = React__namespace.forwardRef(
12484
12468
  (props, forwardedRef) => {
12485
12469
  const { __scopePopover, ...arrowProps } = props;
12486
- const popperScope = usePopperScope$2(__scopePopover);
12470
+ const popperScope = usePopperScope$3(__scopePopover);
12487
12471
  return /* @__PURE__ */ jsxRuntime.jsx(Arrow$2, { ...popperScope, ...arrowProps, ref: forwardedRef });
12488
12472
  }
12489
12473
  );
12490
- PopoverArrow.displayName = ARROW_NAME$3;
12474
+ PopoverArrow.displayName = ARROW_NAME$5;
12491
12475
  function getState$1(open) {
12492
12476
  return open ? "open" : "closed";
12493
12477
  }
12494
- var Root2$2 = Popover$1;
12495
- var Anchor2 = PopoverAnchor;
12496
- var Trigger$2 = PopoverTrigger;
12497
- var Portal$4 = PopoverPortal;
12498
- var Content2$2 = PopoverContent;
12478
+ var Root2$3 = Popover$1;
12479
+ var Anchor2$1 = PopoverAnchor;
12480
+ var Trigger$3 = PopoverTrigger;
12481
+ var Portal$5 = PopoverPortal;
12482
+ var Content2$4 = PopoverContent;
12499
12483
 
12500
- const BtIconChevronDown2Px = (props) =>
12501
- /*#__PURE__*/ React.createElement(
12502
- "svg",
12503
- Object.assign(
12504
- {
12505
- xmlns: "http://www.w3.org/2000/svg",
12506
- viewBox: "0 0 32 32",
12507
- },
12508
- props,
12509
- ),
12510
- /*#__PURE__*/ React.createElement("defs", null),
12511
- /*#__PURE__*/ React.createElement("path", {
12512
- d: "M15.99316,23.91406,2.294,10.207A.99989.99989,0,1,1,3.708,8.793l12.28515,12.293L28.292,8.793A.99989.99989,0,1,1,29.70605,10.207Z",
12513
- fill: "currentColor",
12514
- }),
12515
- );
12484
+ /**
12485
+ * Do not edit directly
12486
+ * Generated file
12487
+ */
12488
+
12489
+ const BtIconChevronDown2Px =
12490
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M15.993 23.914 2.294 10.207a1 1 0 1 1 1.414-1.414l12.285 12.293L28.292 8.793a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
12516
12491
 
12517
12492
  var filterOptions = function (options, value) {
12518
12493
  return options.filter(function (option) {
@@ -12739,7 +12714,7 @@ var ComboBox = React.forwardRef(function (_a, ref) {
12739
12714
  "arc-ComboBox--constrained": !isFluid,
12740
12715
  }) },
12741
12716
  React.createElement("div", { ref: containerRef },
12742
- React.createElement(Root2$2, { open: isExpanded },
12717
+ React.createElement(Root2$3, { open: isExpanded },
12743
12718
  React.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure },
12744
12719
  React.createElement("div", { onClick: onInputClick, className: classNames("arc-ComboBox-container", {
12745
12720
  "arc-ComboBox-container--cursor": isAutocomplete,
@@ -12758,10 +12733,10 @@ var ComboBox = React.forwardRef(function (_a, ref) {
12758
12733
  isAutocomplete && (React.createElement("div", { className: classNames("arc-ComboBox-inputIcon", {
12759
12734
  "arc-ComboBox-inputIcon--expanded": isExpanded,
12760
12735
  }) },
12761
- React.createElement(Icon$1, { isPresentationIcon: true, icon: BtIconChevronDown2Px, size: 24 }))))),
12762
- React.createElement(Anchor2, null),
12763
- React.createElement(Portal$4, { container: themeElement },
12764
- React.createElement(Content2$2, { align: "start", sideOffset: 5, onInteractOutside: onInteractOutside, onOpenAutoFocus: onOpenAutoFocus },
12736
+ React.createElement(Icon$1, { icon: BtIconChevronDown2Px, size: 24 }))))),
12737
+ React.createElement(Anchor2$1, null),
12738
+ React.createElement(Portal$5, { container: themeElement },
12739
+ React.createElement(Content2$4, { align: "start", sideOffset: 5, onInteractOutside: onInteractOutside, onOpenAutoFocus: onOpenAutoFocus },
12765
12740
  React.createElement("div", { className: "arc-ComboBox-listboxContainer" },
12766
12741
  React.createElement(Box, { elevationLevel: "1" },
12767
12742
  React.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.createElement("li", { id: "".concat(listBoxId, "-").concat(i), ref: function (el) { return (listItemRefs.current[i] = el); }, key: option, className: classNames("arc-ComboBox-listItem", {
@@ -12774,44 +12749,6 @@ var ComboBox = React.forwardRef(function (_a, ref) {
12774
12749
  React.createElement(ThemeIcon, { size: 20, icon: "selectIndicator" })))); })) : (React.createElement("li", { className: "arc-ComboBox-listItem", role: "option", "aria-selected": false, "aria-disabled": true }, "No matches found")))))))))));
12775
12750
  });
12776
12751
 
12777
- /**
12778
- * Use `Columns` to compose layouts on a 12-column grid.
12779
- */
12780
- var Columns = function (_a) {
12781
- var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, _c = _a.isExtended, isExtended = _c === void 0 ? false : _c, props = __rest(_a, ["children", "isGutterless", "isExtended"]);
12782
- return (React.createElement("div", __assign({ className: classNames({
12783
- "arc-Columns": true,
12784
- "arc-Columns--regular": !isExtended,
12785
- "arc-Columns--extended": isExtended,
12786
- "arc-Columns--gutterless": isGutterless,
12787
- }) }, filterAttrs(props)),
12788
- React.createElement("div", { className: "arc-Columns-inner" }, children)));
12789
- };
12790
- var ColumnsCol = function (_a) {
12791
- var _b;
12792
- var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
12793
- return (React.createElement("div", __assign({ className: classNames((_b = {},
12794
- _b["arc-Columns-col"] = true,
12795
- _b[suffixModifier("arc-Columns-col--align", align || "")] = align,
12796
- _b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
12797
- _b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
12798
- _b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
12799
- _b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
12800
- _b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
12801
- _b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
12802
- typeof offsetS !== "undefined" ||
12803
- typeof offsetM !== "undefined" ||
12804
- typeof offsetL !== "undefined" ||
12805
- typeof offsetXL !== "undefined",
12806
- _b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
12807
- _b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
12808
- _b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
12809
- _b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
12810
- _b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
12811
- _b["arc-Columns-col--debugVisible"] = isDebugVisible,
12812
- _b)) }, filterAttrs(props)), children));
12813
- };
12814
-
12815
12752
  function _extends() {
12816
12753
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
12817
12754
  for (var e = 1; e < arguments.length; e++) {
@@ -13978,14 +13915,14 @@ var VisuallyHidden$1 = React__namespace.forwardRef(
13978
13915
  VisuallyHidden$1.displayName = NAME$2;
13979
13916
 
13980
13917
  var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
13981
- var SELECTION_KEYS = [" ", "Enter"];
13918
+ var SELECTION_KEYS$1 = [" ", "Enter"];
13982
13919
  var SELECT_NAME = "Select";
13983
- var [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME);
13920
+ var [Collection$2, useCollection$2, createCollectionScope$2] = createCollection(SELECT_NAME);
13984
13921
  var [createSelectContext, createSelectScope] = createContextScope$1(SELECT_NAME, [
13985
- createCollectionScope,
13922
+ createCollectionScope$2,
13986
13923
  createPopperScope$1
13987
13924
  ]);
13988
- var usePopperScope$1 = createPopperScope$1();
13925
+ var usePopperScope$2 = createPopperScope$1();
13989
13926
  var [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);
13990
13927
  var [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);
13991
13928
  var Select$1 = (props) => {
@@ -14005,7 +13942,7 @@ var Select$1 = (props) => {
14005
13942
  required,
14006
13943
  form
14007
13944
  } = props;
14008
- const popperScope = usePopperScope$1(__scopeSelect);
13945
+ const popperScope = usePopperScope$2(__scopeSelect);
14009
13946
  const [trigger, setTrigger] = React__namespace.useState(null);
14010
13947
  const [valueNode, setValueNode] = React__namespace.useState(null);
14011
13948
  const [valueNodeHasChildren, setValueNodeHasChildren] = React__namespace.useState(false);
@@ -14024,7 +13961,7 @@ var Select$1 = (props) => {
14024
13961
  const isFormControl = trigger ? form || !!trigger.closest("form") : true;
14025
13962
  const [nativeOptionsSet, setNativeOptionsSet] = React__namespace.useState(/* @__PURE__ */ new Set());
14026
13963
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
14027
- return /* @__PURE__ */ jsxRuntime.jsx(Root2$3, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsxs(
13964
+ return /* @__PURE__ */ jsxRuntime.jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsxs(
14028
13965
  SelectProvider,
14029
13966
  {
14030
13967
  required,
@@ -14044,7 +13981,7 @@ var Select$1 = (props) => {
14044
13981
  triggerPointerDownPosRef,
14045
13982
  disabled,
14046
13983
  children: [
14047
- /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx(
13984
+ /* @__PURE__ */ jsxRuntime.jsx(Collection$2.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx(
14048
13985
  SelectNativeOptionsProvider,
14049
13986
  {
14050
13987
  scope: props.__scopeSelect,
@@ -14085,15 +14022,15 @@ var Select$1 = (props) => {
14085
14022
  ) });
14086
14023
  };
14087
14024
  Select$1.displayName = SELECT_NAME;
14088
- var TRIGGER_NAME$2 = "SelectTrigger";
14025
+ var TRIGGER_NAME$3 = "SelectTrigger";
14089
14026
  var SelectTrigger = React__namespace.forwardRef(
14090
14027
  (props, forwardedRef) => {
14091
14028
  const { __scopeSelect, disabled = false, ...triggerProps } = props;
14092
- const popperScope = usePopperScope$1(__scopeSelect);
14093
- const context = useSelectContext(TRIGGER_NAME$2, __scopeSelect);
14029
+ const popperScope = usePopperScope$2(__scopeSelect);
14030
+ const context = useSelectContext(TRIGGER_NAME$3, __scopeSelect);
14094
14031
  const isDisabled = context.disabled || disabled;
14095
14032
  const composedRefs = useComposedRefs$1(forwardedRef, context.onTriggerChange);
14096
- const getItems = useCollection(__scopeSelect);
14033
+ const getItems = useCollection$2(__scopeSelect);
14097
14034
  const pointerTypeRef = React__namespace.useRef("touch");
14098
14035
  const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
14099
14036
  const enabledItems = getItems().filter((item) => !item.disabled);
@@ -14162,7 +14099,7 @@ var SelectTrigger = React__namespace.forwardRef(
14162
14099
  ) });
14163
14100
  }
14164
14101
  );
14165
- SelectTrigger.displayName = TRIGGER_NAME$2;
14102
+ SelectTrigger.displayName = TRIGGER_NAME$3;
14166
14103
  var VALUE_NAME = "SelectValue";
14167
14104
  var SelectValue = React__namespace.forwardRef(
14168
14105
  (props, forwardedRef) => {
@@ -14194,15 +14131,15 @@ var SelectIcon = React__namespace.forwardRef(
14194
14131
  }
14195
14132
  );
14196
14133
  SelectIcon.displayName = ICON_NAME;
14197
- var PORTAL_NAME$3 = "SelectPortal";
14134
+ var PORTAL_NAME$5 = "SelectPortal";
14198
14135
  var SelectPortal = (props) => {
14199
- return /* @__PURE__ */ jsxRuntime.jsx(Portal$5, { asChild: true, ...props });
14136
+ return /* @__PURE__ */ jsxRuntime.jsx(Portal$6, { asChild: true, ...props });
14200
14137
  };
14201
- SelectPortal.displayName = PORTAL_NAME$3;
14202
- var CONTENT_NAME$3 = "SelectContent";
14138
+ SelectPortal.displayName = PORTAL_NAME$5;
14139
+ var CONTENT_NAME$5 = "SelectContent";
14203
14140
  var SelectContent = React__namespace.forwardRef(
14204
14141
  (props, forwardedRef) => {
14205
- const context = useSelectContext(CONTENT_NAME$3, props.__scopeSelect);
14142
+ const context = useSelectContext(CONTENT_NAME$5, props.__scopeSelect);
14206
14143
  const [fragment, setFragment] = React__namespace.useState();
14207
14144
  useLayoutEffect2(() => {
14208
14145
  setFragment(new DocumentFragment());
@@ -14210,16 +14147,16 @@ var SelectContent = React__namespace.forwardRef(
14210
14147
  if (!context.open) {
14211
14148
  const frag = fragment;
14212
14149
  return frag ? ReactDOM__namespace.createPortal(
14213
- /* @__PURE__ */ jsxRuntime.jsx(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: props.children }) }) }),
14150
+ /* @__PURE__ */ jsxRuntime.jsx(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx(Collection$2.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: props.children }) }) }),
14214
14151
  frag
14215
14152
  ) : null;
14216
14153
  }
14217
14154
  return /* @__PURE__ */ jsxRuntime.jsx(SelectContentImpl, { ...props, ref: forwardedRef });
14218
14155
  }
14219
14156
  );
14220
- SelectContent.displayName = CONTENT_NAME$3;
14157
+ SelectContent.displayName = CONTENT_NAME$5;
14221
14158
  var CONTENT_MARGIN = 10;
14222
- var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$3);
14159
+ var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$5);
14223
14160
  var CONTENT_IMPL_NAME = "SelectContentImpl";
14224
14161
  var SelectContentImpl = React__namespace.forwardRef(
14225
14162
  (props, forwardedRef) => {
@@ -14244,7 +14181,7 @@ var SelectContentImpl = React__namespace.forwardRef(
14244
14181
  //
14245
14182
  ...contentProps
14246
14183
  } = props;
14247
- const context = useSelectContext(CONTENT_NAME$3, __scopeSelect);
14184
+ const context = useSelectContext(CONTENT_NAME$5, __scopeSelect);
14248
14185
  const [content, setContent] = React__namespace.useState(null);
14249
14186
  const [viewport, setViewport] = React__namespace.useState(null);
14250
14187
  const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
@@ -14252,7 +14189,7 @@ var SelectContentImpl = React__namespace.forwardRef(
14252
14189
  const [selectedItemText, setSelectedItemText] = React__namespace.useState(
14253
14190
  null
14254
14191
  );
14255
- const getItems = useCollection(__scopeSelect);
14192
+ const getItems = useCollection$2(__scopeSelect);
14256
14193
  const [isPositioned, setIsPositioned] = React__namespace.useState(false);
14257
14194
  const firstValidItemFoundRef = React__namespace.useRef(false);
14258
14195
  React__namespace.useEffect(() => {
@@ -14457,12 +14394,12 @@ SelectContentImpl.displayName = CONTENT_IMPL_NAME;
14457
14394
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
14458
14395
  var SelectItemAlignedPosition = React__namespace.forwardRef((props, forwardedRef) => {
14459
14396
  const { __scopeSelect, onPlaced, ...popperProps } = props;
14460
- const context = useSelectContext(CONTENT_NAME$3, __scopeSelect);
14461
- const contentContext = useSelectContentContext(CONTENT_NAME$3, __scopeSelect);
14397
+ const context = useSelectContext(CONTENT_NAME$5, __scopeSelect);
14398
+ const contentContext = useSelectContentContext(CONTENT_NAME$5, __scopeSelect);
14462
14399
  const [contentWrapper, setContentWrapper] = React__namespace.useState(null);
14463
14400
  const [content, setContent] = React__namespace.useState(null);
14464
14401
  const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
14465
- const getItems = useCollection(__scopeSelect);
14402
+ const getItems = useCollection$2(__scopeSelect);
14466
14403
  const shouldExpandOnScrollRef = React__namespace.useRef(false);
14467
14404
  const shouldRepositionRef = React__namespace.useRef(true);
14468
14405
  const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
@@ -14626,7 +14563,7 @@ var SelectPopperPosition = React__namespace.forwardRef((props, forwardedRef) =>
14626
14563
  collisionPadding = CONTENT_MARGIN,
14627
14564
  ...popperProps
14628
14565
  } = props;
14629
- const popperScope = usePopperScope$1(__scopeSelect);
14566
+ const popperScope = usePopperScope$2(__scopeSelect);
14630
14567
  return /* @__PURE__ */ jsxRuntime.jsx(
14631
14568
  Content$2,
14632
14569
  {
@@ -14652,7 +14589,7 @@ var SelectPopperPosition = React__namespace.forwardRef((props, forwardedRef) =>
14652
14589
  );
14653
14590
  });
14654
14591
  SelectPopperPosition.displayName = POPPER_POSITION_NAME;
14655
- var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$3, {});
14592
+ var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$5, {});
14656
14593
  var VIEWPORT_NAME = "SelectViewport";
14657
14594
  var SelectViewport = React__namespace.forwardRef(
14658
14595
  (props, forwardedRef) => {
@@ -14671,7 +14608,7 @@ var SelectViewport = React__namespace.forwardRef(
14671
14608
  nonce
14672
14609
  }
14673
14610
  ),
14674
- /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx(
14611
+ /* @__PURE__ */ jsxRuntime.jsx(Collection$2.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsxRuntime.jsx(
14675
14612
  Primitive$1.div,
14676
14613
  {
14677
14614
  "data-radix-select-viewport": "",
@@ -14721,8 +14658,8 @@ var SelectViewport = React__namespace.forwardRef(
14721
14658
  }
14722
14659
  );
14723
14660
  SelectViewport.displayName = VIEWPORT_NAME;
14724
- var GROUP_NAME = "SelectGroup";
14725
- var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
14661
+ var GROUP_NAME$3 = "SelectGroup";
14662
+ var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME$3);
14726
14663
  var SelectGroup = React__namespace.forwardRef(
14727
14664
  (props, forwardedRef) => {
14728
14665
  const { __scopeSelect, ...groupProps } = props;
@@ -14730,18 +14667,18 @@ var SelectGroup = React__namespace.forwardRef(
14730
14667
  return /* @__PURE__ */ jsxRuntime.jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
14731
14668
  }
14732
14669
  );
14733
- SelectGroup.displayName = GROUP_NAME;
14734
- var LABEL_NAME = "SelectLabel";
14670
+ SelectGroup.displayName = GROUP_NAME$3;
14671
+ var LABEL_NAME$2 = "SelectLabel";
14735
14672
  var SelectLabel = React__namespace.forwardRef(
14736
14673
  (props, forwardedRef) => {
14737
14674
  const { __scopeSelect, ...labelProps } = props;
14738
- const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
14675
+ const groupContext = useSelectGroupContext(LABEL_NAME$2, __scopeSelect);
14739
14676
  return /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
14740
14677
  }
14741
14678
  );
14742
- SelectLabel.displayName = LABEL_NAME;
14743
- var ITEM_NAME = "SelectItem";
14744
- var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
14679
+ SelectLabel.displayName = LABEL_NAME$2;
14680
+ var ITEM_NAME$3 = "SelectItem";
14681
+ var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$3);
14745
14682
  var SelectItem = React__namespace.forwardRef(
14746
14683
  (props, forwardedRef) => {
14747
14684
  const {
@@ -14751,8 +14688,8 @@ var SelectItem = React__namespace.forwardRef(
14751
14688
  textValue: textValueProp,
14752
14689
  ...itemProps
14753
14690
  } = props;
14754
- const context = useSelectContext(ITEM_NAME, __scopeSelect);
14755
- const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
14691
+ const context = useSelectContext(ITEM_NAME$3, __scopeSelect);
14692
+ const contentContext = useSelectContentContext(ITEM_NAME$3, __scopeSelect);
14756
14693
  const isSelected = context.value === value;
14757
14694
  const [textValue, setTextValue] = React__namespace.useState(textValueProp ?? "");
14758
14695
  const [isFocused, setIsFocused] = React__namespace.useState(false);
@@ -14785,7 +14722,7 @@ var SelectItem = React__namespace.forwardRef(
14785
14722
  setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
14786
14723
  }, []),
14787
14724
  children: /* @__PURE__ */ jsxRuntime.jsx(
14788
- Collection.ItemSlot,
14725
+ Collection$2.ItemSlot,
14789
14726
  {
14790
14727
  scope: __scopeSelect,
14791
14728
  value,
@@ -14831,7 +14768,7 @@ var SelectItem = React__namespace.forwardRef(
14831
14768
  onKeyDown: composeEventHandlers$1(itemProps.onKeyDown, (event) => {
14832
14769
  const isTypingAhead = contentContext.searchRef?.current !== "";
14833
14770
  if (isTypingAhead && event.key === " ") return;
14834
- if (SELECTION_KEYS.includes(event.key)) handleSelect();
14771
+ if (SELECTION_KEYS$1.includes(event.key)) handleSelect();
14835
14772
  if (event.key === " ") event.preventDefault();
14836
14773
  })
14837
14774
  }
@@ -14842,7 +14779,7 @@ var SelectItem = React__namespace.forwardRef(
14842
14779
  );
14843
14780
  }
14844
14781
  );
14845
- SelectItem.displayName = ITEM_NAME;
14782
+ SelectItem.displayName = ITEM_NAME$3;
14846
14783
  var ITEM_TEXT_NAME = "SelectItemText";
14847
14784
  var SelectItemText = React__namespace.forwardRef(
14848
14785
  (props, forwardedRef) => {
@@ -14875,15 +14812,15 @@ var SelectItemText = React__namespace.forwardRef(
14875
14812
  }
14876
14813
  );
14877
14814
  SelectItemText.displayName = ITEM_TEXT_NAME;
14878
- var ITEM_INDICATOR_NAME = "SelectItemIndicator";
14815
+ var ITEM_INDICATOR_NAME$1 = "SelectItemIndicator";
14879
14816
  var SelectItemIndicator = React__namespace.forwardRef(
14880
14817
  (props, forwardedRef) => {
14881
14818
  const { __scopeSelect, ...itemIndicatorProps } = props;
14882
- const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
14819
+ const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME$1, __scopeSelect);
14883
14820
  return itemContext.isSelected ? /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
14884
14821
  }
14885
14822
  );
14886
- SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
14823
+ SelectItemIndicator.displayName = ITEM_INDICATOR_NAME$1;
14887
14824
  var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
14888
14825
  var SelectScrollUpButton = React__namespace.forwardRef((props, forwardedRef) => {
14889
14826
  const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
@@ -14955,7 +14892,7 @@ var SelectScrollButtonImpl = React__namespace.forwardRef((props, forwardedRef) =
14955
14892
  const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
14956
14893
  const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
14957
14894
  const autoScrollTimerRef = React__namespace.useRef(null);
14958
- const getItems = useCollection(__scopeSelect);
14895
+ const getItems = useCollection$2(__scopeSelect);
14959
14896
  const clearAutoScrollTimer = React__namespace.useCallback(() => {
14960
14897
  if (autoScrollTimerRef.current !== null) {
14961
14898
  window.clearInterval(autoScrollTimerRef.current);
@@ -14993,25 +14930,25 @@ var SelectScrollButtonImpl = React__namespace.forwardRef((props, forwardedRef) =
14993
14930
  }
14994
14931
  );
14995
14932
  });
14996
- var SEPARATOR_NAME = "SelectSeparator";
14933
+ var SEPARATOR_NAME$2 = "SelectSeparator";
14997
14934
  var SelectSeparator = React__namespace.forwardRef(
14998
14935
  (props, forwardedRef) => {
14999
14936
  const { __scopeSelect, ...separatorProps } = props;
15000
14937
  return /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
15001
14938
  }
15002
14939
  );
15003
- SelectSeparator.displayName = SEPARATOR_NAME;
15004
- var ARROW_NAME$2 = "SelectArrow";
14940
+ SelectSeparator.displayName = SEPARATOR_NAME$2;
14941
+ var ARROW_NAME$4 = "SelectArrow";
15005
14942
  var SelectArrow = React__namespace.forwardRef(
15006
14943
  (props, forwardedRef) => {
15007
14944
  const { __scopeSelect, ...arrowProps } = props;
15008
- const popperScope = usePopperScope$1(__scopeSelect);
15009
- const context = useSelectContext(ARROW_NAME$2, __scopeSelect);
15010
- const contentContext = useSelectContentContext(ARROW_NAME$2, __scopeSelect);
14945
+ const popperScope = usePopperScope$2(__scopeSelect);
14946
+ const context = useSelectContext(ARROW_NAME$4, __scopeSelect);
14947
+ const contentContext = useSelectContentContext(ARROW_NAME$4, __scopeSelect);
15011
14948
  return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsxRuntime.jsx(Arrow$2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
15012
14949
  }
15013
14950
  );
15014
- SelectArrow.displayName = ARROW_NAME$2;
14951
+ SelectArrow.displayName = ARROW_NAME$4;
15015
14952
  function shouldShowPlaceholder(value) {
15016
14953
  return value === "" || value === void 0;
15017
14954
  }
@@ -15068,7 +15005,7 @@ function findNextItem(items, search, currentItem) {
15068
15005
  const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);
15069
15006
  const normalizedSearch = isRepeated ? search[0] : search;
15070
15007
  const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;
15071
- let wrappedItems = wrapArray(items, Math.max(currentItemIndex, 0));
15008
+ let wrappedItems = wrapArray$2(items, Math.max(currentItemIndex, 0));
15072
15009
  const excludeCurrentItem = normalizedSearch.length === 1;
15073
15010
  if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v) => v !== currentItem);
15074
15011
  const nextItem = wrappedItems.find(
@@ -15076,19 +15013,19 @@ function findNextItem(items, search, currentItem) {
15076
15013
  );
15077
15014
  return nextItem !== currentItem ? nextItem : void 0;
15078
15015
  }
15079
- function wrapArray(array, startIndex) {
15016
+ function wrapArray$2(array, startIndex) {
15080
15017
  return array.map((_, index) => array[(startIndex + index) % array.length]);
15081
15018
  }
15082
- var Root2$1 = Select$1;
15083
- var Trigger$1 = SelectTrigger;
15019
+ var Root2$2 = Select$1;
15020
+ var Trigger$2 = SelectTrigger;
15084
15021
  var Value = SelectValue;
15085
15022
  var Icon = SelectIcon;
15086
- var Portal$3 = SelectPortal;
15087
- var Content2$1 = SelectContent;
15023
+ var Portal$4 = SelectPortal;
15024
+ var Content2$3 = SelectContent;
15088
15025
  var Viewport = SelectViewport;
15089
- var Item = SelectItem;
15026
+ var Item$1 = SelectItem;
15090
15027
  var ItemText = SelectItemText;
15091
- var ItemIndicator = SelectItemIndicator;
15028
+ var ItemIndicator$1 = SelectItemIndicator;
15092
15029
  var ScrollUpButton = SelectScrollUpButton;
15093
15030
  var ScrollDownButton = SelectScrollDownButton;
15094
15031
 
@@ -15118,7 +15055,7 @@ var ContentSwitcherDropdown = function (_a) {
15118
15055
  return current.label.length > longest.length ? current.label : longest;
15119
15056
  }, ""));
15120
15057
  return (React.createElement(React.Fragment, null,
15121
- React.createElement(Root2$1, { defaultValue: defaultValue, onValueChange: onValueChangeHandler, value: selectValue },
15058
+ React.createElement(Root2$2, { defaultValue: defaultValue, onValueChange: onValueChangeHandler, value: selectValue },
15122
15059
  React.createElement("span", __assign({ className: classNames("arc-ContentSwitcherDropdown-selectTriggerWrapper", {
15123
15060
  "arc-ContentSwitcherDropdown-selectTriggerWrapper--isInset": isInset,
15124
15061
  "arc-ContentSwitcherDropdown-selectTriggerWrapper--isFluid": isFluid,
@@ -15127,16 +15064,17 @@ var ContentSwitcherDropdown = function (_a) {
15127
15064
  width: width ? width : LongestLabelWidth + 84,
15128
15065
  },
15129
15066
  }), filterAttrs(props)),
15130
- React.createElement(Trigger$1, { className: "arc-ContentSwitcherDropdown-selectTrigger", "aria-label": ariaLabel },
15067
+ React.createElement(Trigger$2, { className: "arc-ContentSwitcherDropdown-selectTrigger", "aria-label": ariaLabel },
15131
15068
  React.createElement(Value, null),
15132
15069
  React.createElement(Icon, { className: "arc-ContentSwitcherDropdown-selectTriggerIcon" },
15133
- React.createElement(ThemeIcon, { size: 24, icon: "selectTrigger" })))),
15134
- React.createElement(Portal$3, { container: themeElement },
15135
- React.createElement(Content2$1, { className: "arc-ContentSwitcherDropdown-selectContent", sideOffset: 8, position: "popper" },
15070
+ React.createElement(ThemeIcon, { size: 24, icon: "selectTrigger" })),
15071
+ React.createElement(VisuallyHidden$2, null, ". This is a content switcher. Use the dropdown to select a section. The content below will update based on your selection."))),
15072
+ React.createElement(Portal$4, { container: themeElement },
15073
+ React.createElement(Content2$3, { className: "arc-ContentSwitcherDropdown-selectContent", sideOffset: 8, position: "popper" },
15136
15074
  React.createElement(ScrollUpButton, null),
15137
- React.createElement(Viewport, null, tabs.map(function (item, index) { return (React.createElement(Item, { value: item.value, key: index, className: "arc-ContentSwitcherDropdown-selectItem", id: "arc-content-switcher-dropdown-trigger-".concat(item.value) },
15075
+ React.createElement(Viewport, null, tabs.map(function (item, index) { return (React.createElement(Item$1, { value: item.value, key: index, className: "arc-ContentSwitcherDropdown-selectItem", id: "arc-content-switcher-dropdown-trigger-".concat(item.value) },
15138
15076
  React.createElement(ItemText, null, item.label),
15139
- React.createElement(ItemIndicator, null,
15077
+ React.createElement(ItemIndicator$1, null,
15140
15078
  React.createElement(ThemeIcon, { size: 24, icon: "selectIndicator" })))); })),
15141
15079
  React.createElement(ScrollDownButton, null)))),
15142
15080
  React.Children.map(children, function (child) {
@@ -15511,10 +15449,10 @@ var DatePicker = React.forwardRef(function (_a, ref) {
15511
15449
  label: ariaLabel,
15512
15450
  ref: buttonRef,
15513
15451
  }, placeholder: placeHolder, errorMessage: errorMessage, helper: helper, id: id, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, label: label, labelSize: labelSize, maxLength: selectionType === "range" ? 23 : 10, name: name, onBlur: handleBlur, onChange: handleChange, onClickDisclosure: onClickDisclosure, type: "text", value: value, disclosureTitle: disclosureTitle, disclosureText: disclosureText, inputSize: inputSize }, props, filterAttrs(props))),
15514
- React.createElement(Root2$2, __assign({ open: showCalendar, onOpenChange: handleCalendarOpenChange }, filterAttrs(props)),
15515
- React.createElement(Anchor2, null),
15516
- React.createElement(Portal$4, { container: themeElement },
15517
- React.createElement(Content2$2, { align: "start", "aria-modal": "true", "aria-label": "Choose Date", className: "arc-DatePicker-modal", onOpenAutoFocus: handleAutoFocus, onCloseAutoFocus: handleCalendarClose },
15452
+ React.createElement(Root2$3, __assign({ open: showCalendar, onOpenChange: handleCalendarOpenChange }, filterAttrs(props)),
15453
+ React.createElement(Anchor2$1, null),
15454
+ React.createElement(Portal$5, { container: themeElement },
15455
+ React.createElement(Content2$4, { align: "start", "aria-modal": "true", "aria-label": "Choose Date", className: "arc-DatePicker-modal", onOpenAutoFocus: handleAutoFocus, onCloseAutoFocus: handleCalendarClose },
15518
15456
  React.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 }))))));
15519
15457
  });
15520
15458
 
@@ -15540,6 +15478,35 @@ var Disclosure = function (_a) {
15540
15478
  React.createElement("div", { className: "arc-Disclosure-details" }, children)));
15541
15479
  };
15542
15480
 
15481
+ var Download = function (_a) {
15482
+ var name = _a.name, onClick = _a.onClick, description = _a.description, href = _a.href, type = _a.type, size = _a.size, _b = _a.icon, icon = _b === void 0 ? "downloadFile" : _b, _c = _a.isCompact, isCompact = _c === void 0 ? false : _c, _d = _a.isFullWidth, isFullWidth = _d === void 0 ? true : _d;
15483
+ var linkProps = href
15484
+ ? {
15485
+ href: href,
15486
+ download: true,
15487
+ target: "_blank",
15488
+ rel: "noreferrer",
15489
+ }
15490
+ : {
15491
+ role: "button",
15492
+ };
15493
+ return (React.createElement("a", __assign({}, linkProps, { className: classNames("arc-Download", {
15494
+ "arc-Download--maxContent": !isFullWidth,
15495
+ "arc-Download--compact": isCompact,
15496
+ }), "aria-label": name, onClick: onClick }),
15497
+ React.createElement("div", { className: "arc-Download-iconContainer" },
15498
+ React.createElement(ThemeIcon, { size: isCompact ? 40 : 64, icon: icon })),
15499
+ React.createElement("div", { className: "arc-Download-contentContainer" },
15500
+ React.createElement("span", { className: "arc-Download-name" }, name),
15501
+ React.createElement(Text, { tone: "muted", size: "xs" },
15502
+ type,
15503
+ "\u00A0",
15504
+ size && "| ".concat(size)),
15505
+ description && (React.createElement(React.Fragment, null,
15506
+ React.createElement(VerticalSpace, { size: "4" }),
15507
+ React.createElement(Text, { tone: "supporting" }, description))))));
15508
+ };
15509
+
15543
15510
  const LEFT = "Left";
15544
15511
  const RIGHT = "Right";
15545
15512
  const UP = "Up";
@@ -15844,11 +15811,11 @@ var Dialog = (props) => {
15844
15811
  );
15845
15812
  };
15846
15813
  Dialog.displayName = DIALOG_NAME;
15847
- var TRIGGER_NAME$1 = "DialogTrigger";
15814
+ var TRIGGER_NAME$2 = "DialogTrigger";
15848
15815
  var DialogTrigger = React__namespace.forwardRef(
15849
15816
  (props, forwardedRef) => {
15850
15817
  const { __scopeDialog, ...triggerProps } = props;
15851
- const context = useDialogContext(TRIGGER_NAME$1, __scopeDialog);
15818
+ const context = useDialogContext(TRIGGER_NAME$2, __scopeDialog);
15852
15819
  const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
15853
15820
  return /* @__PURE__ */ jsxRuntime.jsx(
15854
15821
  Primitive$1.button,
@@ -15865,21 +15832,21 @@ var DialogTrigger = React__namespace.forwardRef(
15865
15832
  );
15866
15833
  }
15867
15834
  );
15868
- DialogTrigger.displayName = TRIGGER_NAME$1;
15869
- var PORTAL_NAME$2 = "DialogPortal";
15870
- var [PortalProvider$1, usePortalContext$1] = createDialogContext(PORTAL_NAME$2, {
15835
+ DialogTrigger.displayName = TRIGGER_NAME$2;
15836
+ var PORTAL_NAME$4 = "DialogPortal";
15837
+ var [PortalProvider$2, usePortalContext$2] = createDialogContext(PORTAL_NAME$4, {
15871
15838
  forceMount: void 0
15872
15839
  });
15873
15840
  var DialogPortal = (props) => {
15874
15841
  const { __scopeDialog, forceMount, children, container } = props;
15875
- const context = useDialogContext(PORTAL_NAME$2, __scopeDialog);
15876
- return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider$1, { scope: __scopeDialog, forceMount, children: React__namespace.Children.map(children, (child) => /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Portal$5, { asChild: true, container, children: child }) })) });
15842
+ const context = useDialogContext(PORTAL_NAME$4, __scopeDialog);
15843
+ return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider$2, { scope: __scopeDialog, forceMount, children: React__namespace.Children.map(children, (child) => /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Portal$6, { asChild: true, container, children: child }) })) });
15877
15844
  };
15878
- DialogPortal.displayName = PORTAL_NAME$2;
15845
+ DialogPortal.displayName = PORTAL_NAME$4;
15879
15846
  var OVERLAY_NAME = "DialogOverlay";
15880
15847
  var DialogOverlay = React__namespace.forwardRef(
15881
15848
  (props, forwardedRef) => {
15882
- const portalContext = usePortalContext$1(OVERLAY_NAME, props.__scopeDialog);
15849
+ const portalContext = usePortalContext$2(OVERLAY_NAME, props.__scopeDialog);
15883
15850
  const { forceMount = portalContext.forceMount, ...overlayProps } = props;
15884
15851
  const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
15885
15852
  return context.modal ? /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
@@ -15905,19 +15872,19 @@ var DialogOverlayImpl = React__namespace.forwardRef(
15905
15872
  );
15906
15873
  }
15907
15874
  );
15908
- var CONTENT_NAME$2 = "DialogContent";
15875
+ var CONTENT_NAME$4 = "DialogContent";
15909
15876
  var DialogContent = React__namespace.forwardRef(
15910
15877
  (props, forwardedRef) => {
15911
- const portalContext = usePortalContext$1(CONTENT_NAME$2, props.__scopeDialog);
15878
+ const portalContext = usePortalContext$2(CONTENT_NAME$4, props.__scopeDialog);
15912
15879
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
15913
- const context = useDialogContext(CONTENT_NAME$2, props.__scopeDialog);
15880
+ const context = useDialogContext(CONTENT_NAME$4, props.__scopeDialog);
15914
15881
  return /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntime.jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
15915
15882
  }
15916
15883
  );
15917
- DialogContent.displayName = CONTENT_NAME$2;
15884
+ DialogContent.displayName = CONTENT_NAME$4;
15918
15885
  var DialogContentModal = React__namespace.forwardRef(
15919
15886
  (props, forwardedRef) => {
15920
- const context = useDialogContext(CONTENT_NAME$2, props.__scopeDialog);
15887
+ const context = useDialogContext(CONTENT_NAME$4, props.__scopeDialog);
15921
15888
  const contentRef = React__namespace.useRef(null);
15922
15889
  const composedRefs = useComposedRefs$1(forwardedRef, context.contentRef, contentRef);
15923
15890
  React__namespace.useEffect(() => {
@@ -15951,7 +15918,7 @@ var DialogContentModal = React__namespace.forwardRef(
15951
15918
  );
15952
15919
  var DialogContentNonModal = React__namespace.forwardRef(
15953
15920
  (props, forwardedRef) => {
15954
- const context = useDialogContext(CONTENT_NAME$2, props.__scopeDialog);
15921
+ const context = useDialogContext(CONTENT_NAME$4, props.__scopeDialog);
15955
15922
  const hasInteractedOutsideRef = React__namespace.useRef(false);
15956
15923
  const hasPointerDownOutsideRef = React__namespace.useRef(false);
15957
15924
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -15992,7 +15959,7 @@ var DialogContentNonModal = React__namespace.forwardRef(
15992
15959
  var DialogContentImpl = React__namespace.forwardRef(
15993
15960
  (props, forwardedRef) => {
15994
15961
  const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
15995
- const context = useDialogContext(CONTENT_NAME$2, __scopeDialog);
15962
+ const context = useDialogContext(CONTENT_NAME$4, __scopeDialog);
15996
15963
  const contentRef = React__namespace.useRef(null);
15997
15964
  const composedRefs = useComposedRefs$1(forwardedRef, contentRef);
15998
15965
  useFocusGuards();
@@ -16067,7 +16034,7 @@ function getState(open) {
16067
16034
  }
16068
16035
  var TITLE_WARNING_NAME = "DialogTitleWarning";
16069
16036
  var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
16070
- contentName: CONTENT_NAME$2,
16037
+ contentName: CONTENT_NAME$4,
16071
16038
  titleName: TITLE_NAME,
16072
16039
  docsSlug: "dialog"
16073
16040
  });
@@ -16099,8 +16066,8 @@ var DescriptionWarning = ({ contentRef, descriptionId }) => {
16099
16066
  }, [MESSAGE, contentRef, descriptionId]);
16100
16067
  return null;
16101
16068
  };
16102
- var Root$2 = Dialog;
16103
- var Portal$2 = DialogPortal;
16069
+ var Root$3 = Dialog;
16070
+ var Portal$3 = DialogPortal;
16104
16071
  var Overlay = DialogOverlay;
16105
16072
  var Content$1 = DialogContent;
16106
16073
  var Title = DialogTitle;
@@ -16150,8 +16117,8 @@ var Drawer = function (_a) {
16150
16117
  }
16151
16118
  : {};
16152
16119
  return (React.createElement("div", { ref: setThemeElement },
16153
- React.createElement(Root$2, { open: isOpen },
16154
- React.createElement(Portal$2, { container: themeElement },
16120
+ React.createElement(Root$3, { open: isOpen },
16121
+ React.createElement(Portal$3, { container: themeElement },
16155
16122
  React.createElement(Overlay, { style: exitTransitionStyle.overlay, className: classNames("arc-Drawer-overlay", {
16156
16123
  "arc-Drawer-overlay--visible": isOverlayVisible,
16157
16124
  }) },
@@ -16175,35 +16142,6 @@ var Drawer = function (_a) {
16175
16142
  React.createElement(VerticalSpace, { size: "32" }))))))));
16176
16143
  };
16177
16144
 
16178
- var Download = function (_a) {
16179
- var name = _a.name, onClick = _a.onClick, description = _a.description, href = _a.href, type = _a.type, size = _a.size, _b = _a.icon, icon = _b === void 0 ? "downloadFile" : _b, _c = _a.isCompact, isCompact = _c === void 0 ? false : _c, _d = _a.isFullWidth, isFullWidth = _d === void 0 ? true : _d;
16180
- var linkProps = href
16181
- ? {
16182
- href: href,
16183
- download: true,
16184
- target: "_blank",
16185
- rel: "noreferrer",
16186
- }
16187
- : {
16188
- role: "button",
16189
- };
16190
- return (React.createElement("a", __assign({}, linkProps, { className: classNames("arc-Download", {
16191
- "arc-Download--maxContent": !isFullWidth,
16192
- "arc-Download--compact": isCompact,
16193
- }), "aria-label": name, onClick: onClick }),
16194
- React.createElement("div", { className: "arc-Download-iconContainer" },
16195
- React.createElement(ThemeIcon, { size: isCompact ? 40 : 64, icon: icon })),
16196
- React.createElement("div", { className: "arc-Download-contentContainer" },
16197
- React.createElement("span", { className: "arc-Download-name" }, name),
16198
- React.createElement(Text, { tone: "muted", size: "xs" },
16199
- type,
16200
- "\u00A0",
16201
- size && "| ".concat(size)),
16202
- description && (React.createElement(React.Fragment, null,
16203
- React.createElement(VerticalSpace, { size: "4" }),
16204
- React.createElement(Text, { tone: "supporting" }, description))))));
16205
- };
16206
-
16207
16145
  /**
16208
16146
  * Use `Elevation` to elevate what matters.
16209
16147
  */
@@ -16310,10 +16248,37 @@ var FilterItem = function (_a) {
16310
16248
  return React.createElement("div", { className: "arc-FilterItem" }, children);
16311
16249
  };
16312
16250
 
16251
+ var GhostedHeroBanner = function (_a) {
16252
+ var heading = _a.heading, headingLevel = _a.headingLevel, label = _a.label, text = _a.text, img = _a.img, children = _a.children, props = __rest(_a, ["heading", "headingLevel", "label", "text", "img", "children"]);
16253
+ return (React.createElement("div", __assign({ className: "arc-GhostedHeroBanner" }, filterAttrs(props)),
16254
+ React.createElement("div", { className: "arc-GhostedHeroBanner-content" },
16255
+ label && (React.createElement(React.Fragment, null,
16256
+ React.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
16257
+ React.createElement(VerticalSpace, { size: "8" }))),
16258
+ React.createElement(Heading, { level: headingLevel, size: "xl" }, heading),
16259
+ text && (React.createElement(React.Fragment, null,
16260
+ React.createElement(VerticalSpace, { size: "16" }),
16261
+ React.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
16262
+ children && (React.createElement(React.Fragment, null,
16263
+ React.createElement(VerticalSpace, { size: "32" }),
16264
+ children))),
16265
+ React.createElement("div", { className: "arc-GhostedHeroBanner-image " }, img && React.createElement(BannerImage, __assign({ ariaHidden: true }, img)))));
16266
+ };
16267
+
16268
+ var GradientBackground = function (_a) {
16269
+ var _b;
16270
+ var _c = _a.type, type = _c === void 0 ? "lightOne" : _c, children = _a.children, scrim = _a.scrim, props = __rest(_a, ["type", "children", "scrim"]);
16271
+ return (React.createElement("div", __assign({ className: classNames("arc-GradientBackground", "arc-GradientBackground--".concat(type), (_b = {},
16272
+ _b["arc-GradientBackground-scrim--".concat(scrim)] = scrim,
16273
+ _b)) }, filterAttrs(props)),
16274
+ React.createElement("div", { className: "arc-GradientBackground-content" },
16275
+ React.createElement(Surface, { isTransparent: true, background: type === "lightOne" ? "light-white" : "dark-black" }, children))));
16276
+ };
16277
+
16313
16278
  /**
16314
16279
  * Use `Group` to arrange flexible items in a row.
16315
16280
  */
16316
- var Group = function (_a) {
16281
+ var Group$1 = function (_a) {
16317
16282
  var _b;
16318
16283
  var children = _a.children, _c = _a.grow, grow = _c === void 0 ? false : _c, _d = _a.growEqual, growEqual = _d === void 0 ? false : _d, _e = _a.gutterBorder, gutterBorder = _e === void 0 ? false : _e, _f = _a.noWrap, noWrap = _f === void 0 ? false : _f, _g = _a.isExtended, isExtended = _g === void 0 ? false : _g, props = __rest(_a, ["children", "grow", "growEqual", "gutterBorder", "noWrap", "isExtended"]);
16319
16284
  var surface = React.useContext(Context$3).surface;
@@ -16348,78 +16313,37 @@ var HeroBanner = function (_a) {
16348
16313
  React.createElement(TemplateBanner, __assign({ heading: heading, label: label, text: text, img: img, contentRatio: contentRatio, minHeight: minHeight, isReversed: isReversed, isElevated: isElevated, headingLevel: headingLevel, type: type, headingSize: "xl", alignment: "center" }, filterAttrs(props)), children)));
16349
16314
  };
16350
16315
 
16351
- const BtIconArrowAltRight = (props) =>
16352
- /*#__PURE__*/ React.createElement(
16353
- "svg",
16354
- Object.assign(
16355
- {
16356
- xmlns: "http://www.w3.org/2000/svg",
16357
- viewBox: "0 0 32 32",
16358
- },
16359
- props,
16360
- ),
16361
- /*#__PURE__*/ React.createElement("defs", null),
16362
- /*#__PURE__*/ React.createElement("path", {
16363
- d: "M18.85352,11.64648a.49995.49995,0,0,0-.707.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.49995.49995,0,1,0,.707.707L23.207,16Z",
16364
- fill: "currentColor",
16365
- }),
16366
- );
16316
+ /**
16317
+ * Do not edit directly
16318
+ * Generated file
16319
+ */
16367
16320
 
16368
- const BtIconArrowAltDown = (props) =>
16369
- /*#__PURE__*/ React.createElement(
16370
- "svg",
16371
- Object.assign(
16372
- {
16373
- xmlns: "http://www.w3.org/2000/svg",
16374
- viewBox: "0 0 32 32",
16375
- },
16376
- props,
16377
- ),
16378
- /*#__PURE__*/ React.createElement("defs", null),
16379
- /*#__PURE__*/ React.createElement("path", {
16380
- d: "M20.35352,18.14648a.49983.49983,0,0,0-.707,0L16.5,21.293V9.5a.5.5,0,0,0-1,0V21.293l-3.14648-3.14648a.49995.49995,0,1,0-.707.707L16,23.207l4.35352-4.35352A.49982.49982,0,0,0,20.35352,18.14648Z",
16381
- fill: "currentColor",
16382
- }),
16383
- );
16321
+ const BtIconArrowAltRight =
16322
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M18.854 11.646a.5.5 0 0 0-.707.707l3.146 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16Z'/%3e%3c/svg%3e";
16384
16323
 
16385
- const ArcIconPlay = (props) =>
16386
- /*#__PURE__*/ React.createElement(
16387
- "svg",
16388
- Object.assign(
16389
- {
16390
- viewBox: "0 0 56 56",
16391
- fill: "none",
16392
- xmlns: "http://www.w3.org/2000/svg",
16393
- },
16394
- props,
16395
- ),
16396
- /*#__PURE__*/ React.createElement("path", {
16397
- d: "M36.4683 26.3206L23.9068 19.0686C23.6123 18.8984 23.2783 18.8088 22.9382 18.8086C22.5981 18.8084 22.264 18.8978 21.9694 19.0677C21.6748 19.2376 21.4301 19.4821 21.26 19.7765C21.0898 20.071 21.0001 20.4051 21 20.7451V35.2491C20.9985 35.5899 21.087 35.9251 21.2566 36.2207C21.4263 36.5162 21.671 36.7617 21.9661 36.9323C22.2612 37.1028 22.5961 37.1923 22.9369 37.1918C23.2777 37.1912 23.6123 37.1006 23.9068 36.9291L36.4683 29.6754C36.7626 29.5053 37.007 29.2608 37.1769 28.9664C37.3469 28.6719 37.4363 28.338 37.4363 27.998C37.4363 27.6581 37.3469 27.3241 37.1769 27.0297C37.007 26.7352 36.7626 26.4907 36.4683 26.3206ZM35.5933 28.1599L23.0318 35.4136C23.0035 35.4306 22.9711 35.4396 22.9381 35.4396C22.9052 35.4396 22.8728 35.4306 22.8445 35.4136C22.815 35.3977 22.7906 35.3739 22.7739 35.3448C22.7572 35.3158 22.7489 35.2826 22.75 35.2491V20.7451C22.7494 20.7122 22.7579 20.6797 22.7745 20.6513C22.7912 20.6229 22.8154 20.5996 22.8445 20.5841C22.8727 20.567 22.9051 20.5579 22.9381 20.5579C22.9712 20.5579 23.0036 20.567 23.0318 20.5841L35.5933 27.8344C35.6226 27.8505 35.647 27.8743 35.6637 27.9034C35.6803 27.9324 35.6887 27.9654 35.6878 27.9989C35.6882 28.0318 35.6796 28.0642 35.663 28.0926C35.6463 28.121 35.6222 28.1442 35.5933 28.1599Z",
16398
- fill: "currentColor",
16399
- }),
16400
- );
16324
+ /**
16325
+ * Do not edit directly
16326
+ * Generated file
16327
+ */
16401
16328
 
16402
- const ArcIconWarn = (props) =>
16403
- /*#__PURE__*/ React.createElement(
16404
- "svg",
16405
- Object.assign(
16406
- {
16407
- xmlns: "http://www.w3.org/2000/svg",
16408
- viewBox: "0 0 32 32",
16409
- },
16410
- props,
16411
- ),
16412
- /*#__PURE__*/ React.createElement("path", {
16413
- className: "cls-1",
16414
- fill: "currentColor",
16415
- d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z",
16416
- }),
16417
- /*#__PURE__*/ React.createElement("path", {
16418
- className: "cls-1",
16419
- d: "M16.00488,19.00977a.49972.49972,0,0,0,.5-.5L16.50684,9.5a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,19.00977Z",
16420
- fill: "currentColor",
16421
- }),
16422
- );
16329
+ const BtIconArrowAltDown =
16330
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M20.354 18.146a.5.5 0 0 0-.707 0L16.5 21.293V9.5a.5.5 0 0 0-1 0v11.793l-3.146-3.146a.5.5 0 1 0-.707.707L16 23.207l4.354-4.354a.5.5 0 0 0 0-.707'/%3e%3c/svg%3e";
16331
+
16332
+ /**
16333
+ * Do not edit directly
16334
+ * Generated file
16335
+ */
16336
+
16337
+ const ArcIconPlay =
16338
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 56 56'%3e%3cpath fill='currentColor' d='M36.468 26.32 23.907 19.07A1.938 1.938 0 0 0 21 20.745V35.25a1.935 1.935 0 0 0 2.907 1.68l12.561-7.254a1.938 1.938 0 0 0 0-3.354m-.875 1.84-12.561 7.254a.18.18 0 0 1-.187 0 .18.18 0 0 1-.095-.165V20.745a.18.18 0 0 1 .095-.16.18.18 0 0 1 .187 0l12.561 7.25a.18.18 0 0 1 .095.164.18.18 0 0 1-.095.16'/%3e%3c/svg%3e";
16339
+
16340
+ /**
16341
+ * Do not edit directly
16342
+ * Generated file
16343
+ */
16344
+
16345
+ const ArcIconWarn =
16346
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M16 20.993a1 1 0 1 0 0 2 1 1 0 1 0 0-2M16.005 19.01a.5.5 0 0 0 .5-.5l.002-9.01a.5.5 0 0 0-1 0l-.002 9.01a.5.5 0 0 0 .5.5'/%3e%3c/svg%3e";
16423
16347
 
16424
16348
  var HeroButton = React.forwardRef(function (_a, ref) {
16425
16349
  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"]);
@@ -16445,7 +16369,7 @@ var HeroButton = React.forwardRef(function (_a, ref) {
16445
16369
  isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
16446
16370
  React.createElement(Spinner, { size: "xxl" }))),
16447
16371
  icon && !isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
16448
- React.createElement(Icon$1, { size: 48, icon: buttonStyle === "warning"
16372
+ React.createElement(Icon$1, { testId: "hero-button-icon", size: 48, icon: buttonStyle === "warning"
16449
16373
  ? HeroButtonIcons["warning"]
16450
16374
  : HeroButtonIcons[icon] }))))));
16451
16375
  }
@@ -16453,7 +16377,7 @@ var HeroButton = React.forwardRef(function (_a, ref) {
16453
16377
  React.createElement("span", { className: classNames("arc-HeroButton-inner") },
16454
16378
  label && React.createElement("span", { className: "arc-HeroButton-label" }, label),
16455
16379
  icon && !isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
16456
- React.createElement(Icon$1, { size: 48, icon: buttonStyle === "warning"
16380
+ React.createElement(Icon$1, { testId: "hero-button-icon", size: 48, icon: buttonStyle === "warning"
16457
16381
  ? HeroButtonIcons["warning"]
16458
16382
  : HeroButtonIcons[icon] }))),
16459
16383
  isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
@@ -16471,96 +16395,21 @@ var Hidden = function (_a) {
16471
16395
  }) }, filterAttrs(props)), children));
16472
16396
  };
16473
16397
 
16474
- const BtIconArrowRight = (props) =>
16475
- /*#__PURE__*/ React.createElement(
16476
- "svg",
16477
- Object.assign(
16478
- {
16479
- xmlns: "http://www.w3.org/2000/svg",
16480
- viewBox: "0 0 32 32",
16481
- },
16482
- props,
16483
- ),
16484
- /*#__PURE__*/ React.createElement("defs", null),
16485
- /*#__PURE__*/ React.createElement("path", {
16486
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
16487
- fill: "currentColor",
16488
- }),
16489
- /*#__PURE__*/ React.createElement("path", {
16490
- d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
16491
- fill: "currentColor",
16492
- }),
16493
- );
16494
-
16495
- const BtIconPlay = (props) =>
16496
- /*#__PURE__*/ React.createElement(
16497
- "svg",
16498
- Object.assign(
16499
- {
16500
- xmlns: "http://www.w3.org/2000/svg",
16501
- viewBox: "0 0 32 32",
16502
- },
16503
- props,
16504
- ),
16505
- /*#__PURE__*/ React.createElement("defs", null),
16506
- /*#__PURE__*/ React.createElement("path", {
16507
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
16508
- fill: "currentColor",
16509
- }),
16510
- /*#__PURE__*/ React.createElement("path", {
16511
- d: "M20.83887,15.03955,13.66113,10.896A1.107,1.107,0,0,0,12,11.85449v8.2876a1.10534,1.10534,0,0,0,1.66113.95947L20.83887,16.957a1.10688,1.10688,0,0,0,0-1.91748Zm-.5,1.05176-7.17774,4.14453a.10437.10437,0,0,1-.10742-.00049A.10314.10314,0,0,1,13,20.14209v-8.2876a.10229.10229,0,0,1,.05371-.09277.10284.10284,0,0,1,.10742,0l7.17774,4.14307a.10421.10421,0,0,1,.05371.09375A.10285.10285,0,0,1,20.33887,16.09131Z",
16512
- fill: "currentColor",
16513
- }),
16514
- );
16515
-
16516
- const BtIconArrowRightFill = (props) =>
16517
- /*#__PURE__*/ React.createElement(
16518
- "svg",
16519
- Object.assign(
16520
- {
16521
- xmlns: "http://www.w3.org/2000/svg",
16522
- viewBox: "0 0 32 32",
16523
- },
16524
- props,
16525
- ),
16526
- /*#__PURE__*/ React.createElement("defs", null),
16527
- /*#__PURE__*/ React.createElement("path", {
16528
- d: "M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm16.85352-4.35352L23.207,16l-4.35351,4.35352a.5.5,0,0,1-.707-.707L21.293,16.5H9.5a.5.5,0,0,1,0-1H21.293l-3.14649-3.14648a.5.5,0,0,1,.707-.707Z",
16529
- fill: "currentColor",
16530
- }),
16531
- );
16532
-
16533
- const BtIconPlayFill = (props) =>
16534
- /*#__PURE__*/ React.createElement(
16535
- "svg",
16536
- Object.assign(
16537
- {
16538
- xmlns: "http://www.w3.org/2000/svg",
16539
- viewBox: "0 0 32 32",
16540
- },
16541
- props,
16542
- ),
16543
- /*#__PURE__*/ React.createElement("defs", null),
16544
- /*#__PURE__*/ React.createElement("path", {
16545
- d: "M13.16113,11.76172a.10284.10284,0,0,0-.10742,0A.10229.10229,0,0,0,13,11.85449v8.2876a.10314.10314,0,0,0,.05371.09326.10451.10451,0,0,0,.10742.00049l7.17774-4.14453a.10285.10285,0,0,0,.05371-.09277.10421.10421,0,0,0-.05371-.09375Z",
16546
- fill: "currentColor",
16547
- }),
16548
- /*#__PURE__*/ React.createElement("path", {
16549
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.83887,14.957-7.17774,4.14453A1.10791,1.10791,0,0,1,12,20.14209v-8.2876a1.107,1.107,0,0,1,1.66113-.95849l7.17774,4.14355a1.10688,1.10688,0,0,1,0,1.91748Z",
16550
- fill: "currentColor",
16551
- }),
16552
- );
16398
+ var ArrowRight = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M18.146 11.646a.5.5 0 0 0 0 .707l3.147 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16l-4.354-4.354a.5.5 0 0 0-.707 0'/%3e%3c/svg%3e";
16399
+ var ArrowRightFill = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2 14 14 0 0 0 2 16m16.854-4.354L23.207 16l-4.354 4.354a.5.5 0 0 1-.707-.707l3.147-3.147H9.5a.5.5 0 0 1 0-1h11.793l-3.146-3.146a.5.5 0 0 1 .707-.707'/%3e%3c/svg%3e";
16400
+ var Play = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='m20.839 15.04-7.178-4.144a1.107 1.107 0 0 0-1.661.958v8.288a1.105 1.105 0 0 0 1.661.96l7.178-4.145a1.107 1.107 0 0 0 0-1.917m-.5 1.051-7.178 4.145a.1.1 0 0 1-.107 0 .1.1 0 0 1-.054-.094v-8.288a.1.1 0 0 1 .054-.092.1.1 0 0 1 .107 0l7.178 4.143a.1.1 0 0 1 .054.094.1.1 0 0 1-.054.092'/%3e%3c/svg%3e";
16401
+ var PlayFill = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m4.839 14.957-7.178 4.145a1.108 1.108 0 0 1-1.661-.96v-8.288a1.107 1.107 0 0 1 1.661-.958l7.178 4.144a1.107 1.107 0 0 1 0 1.917'/%3e%3c/svg%3e";
16553
16402
 
16554
16403
  var CardFooter = function (_a) {
16555
16404
  var metaText = _a.metaText, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.buttonSize, buttonSize = _c === void 0 ? "m" : _c, _d = _a.isDarkPathway, isDarkPathway = _d === void 0 ? false : _d, _e = _a.showButton, showButton = _e === void 0 ? true : _e, _f = _a.isHovered, isHovered = _f === void 0 ? false : _f;
16556
16405
  var icons = {
16557
16406
  arrow: {
16558
- regular: BtIconArrowRight,
16559
- filled: BtIconArrowRightFill,
16407
+ regular: ArrowRight,
16408
+ filled: ArrowRightFill,
16560
16409
  },
16561
16410
  play: {
16562
- regular: BtIconPlay,
16563
- filled: BtIconPlayFill,
16411
+ regular: Play,
16412
+ filled: PlayFill,
16564
16413
  },
16565
16414
  };
16566
16415
  return (React.createElement("div", { className: classNames("arc-CardFooter", {
@@ -16585,6 +16434,24 @@ var CardHeading = function (_a) {
16585
16434
  return (React.createElement(Heading, { level: headingLevel, size: size }, href ? (React.createElement("a", __assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterAttrs(linkData)), heading)) : (heading)));
16586
16435
  };
16587
16436
 
16437
+ var HorizontalCard = function (_a) {
16438
+ var text = _a.text, heading = _a.heading, headingLevel = _a.headingLevel, img = _a.img, metaText = _a.metaText, url = _a.url, onClick = _a.onClick, props = __rest(_a, ["text", "heading", "headingLevel", "img", "metaText", "url", "onClick"]);
16439
+ var _b = React.useState(false), showHoverState = _b[0], setShowHoverState = _b[1];
16440
+ var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
16441
+ return (React.createElement("div", __assign({ className: classNames("arc-HorizontalCard", {
16442
+ "arc-HorizontalCard--outlined": (url || onclick) && showHoverState,
16443
+ }) }, filterAttrs(props)),
16444
+ (img === null || img === void 0 ? void 0 : img.src) && (React.createElement("div", { className: "arc-HorizontalCard-image" },
16445
+ React.createElement(Image, __assign({ fit: "cover", anchor: "C" }, img)))),
16446
+ React.createElement("div", { className: "arc-HorizontalCard-content" },
16447
+ React.createElement(VerticalSpace, { size: "12" }),
16448
+ React.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
16449
+ React.createElement(VerticalSpace, { size: "12" }),
16450
+ React.createElement(Text, null, text),
16451
+ React.createElement(VerticalSpace, { size: "24" }),
16452
+ React.createElement(CardFooter, { metaText: metaText, buttonIcon: "arrow", isHovered: showHoverState, buttonSize: "s" }))));
16453
+ };
16454
+
16588
16455
  /** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
16589
16456
  var ImpactCard = function (_a) {
16590
16457
  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, props = __rest(_a, ["url", "onClick", "heading", "img", "label", "minHeight", "headingSize", "linkData", "pathway", "headingLevel", "buttonIcon"]);
@@ -16606,6 +16473,14 @@ var ImpactCard = function (_a) {
16606
16473
  React.createElement(CardFooter, { buttonIcon: buttonIcon, showButton: true, isDarkPathway: isDarkPathway, isHovered: showHoverState })));
16607
16474
  };
16608
16475
 
16476
+ /**
16477
+ * Do not edit directly
16478
+ * Generated file
16479
+ */
16480
+
16481
+ const BtIconArrowRight =
16482
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 27a13 13 0 1 1 13-13 13.015 13.015 0 0 1-13 13'/%3e%3cpath d='M18.146 11.646a.5.5 0 0 0 0 .707l3.147 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16l-4.354-4.354a.5.5 0 0 0-.707 0'/%3e%3c/svg%3e";
16483
+
16609
16484
  /**
16610
16485
  * Provides an object of breakpoints for responsive designs.
16611
16486
  *
@@ -16624,181 +16499,1738 @@ var ArcBreakpoints = {
16624
16499
  xs: parseInt(ArcSizeBreakpointsXs, 10),
16625
16500
  };
16626
16501
 
16627
- /** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
16628
- var InformationCard = function (_a) {
16629
- 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, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel"]);
16630
- var surface = React.useContext(Context$3).surface;
16631
- var _c = React.useState(false), showHoverState = _c[0], setShowHoverState = _c[1];
16632
- var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
16633
- var _d = React.useState(undefined), minimumHeight = _d[0], setMinimumHeight = _d[1];
16634
- var checkMinHeight = debounce(function () {
16635
- for (var _i = 0, _a = Object.entries(ArcBreakpoints); _i < _a.length; _i++) {
16636
- var _b = _a[_i], key = _b[0], value = _b[1];
16637
- if (window.innerWidth > value) {
16638
- setMinimumHeight(minHeights === null || minHeights === void 0 ? void 0 : minHeights[key]);
16639
- return;
16502
+ /** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
16503
+ var InformationCard = function (_a) {
16504
+ 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, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel"]);
16505
+ var surface = React.useContext(Context$3).surface;
16506
+ var _c = React.useState(false), showHoverState = _c[0], setShowHoverState = _c[1];
16507
+ var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
16508
+ var _d = React.useState(undefined), minimumHeight = _d[0], setMinimumHeight = _d[1];
16509
+ var checkMinHeight = debounce(function () {
16510
+ for (var _i = 0, _a = Object.entries(ArcBreakpoints); _i < _a.length; _i++) {
16511
+ var _b = _a[_i], key = _b[0], value = _b[1];
16512
+ if (window.innerWidth > value) {
16513
+ setMinimumHeight(minHeights === null || minHeights === void 0 ? void 0 : minHeights[key]);
16514
+ return;
16515
+ }
16516
+ }
16517
+ setMinimumHeight(undefined);
16518
+ }, 100);
16519
+ React.useEffect(function () {
16520
+ checkMinHeight();
16521
+ window.addEventListener("resize", checkMinHeight);
16522
+ return function () {
16523
+ window.removeEventListener("resize", checkMinHeight);
16524
+ };
16525
+ }, [minHeights, ArcBreakpoints]);
16526
+ return (React.createElement("div", __assign({ style: { minHeight: minHeight ? minHeight : minimumHeight }, className: classNames("arc-InformationCard", {
16527
+ "arc-InformationCard--isALink": cardUrl,
16528
+ "arc-InformationCard--outlined": cardUrl && showHoverState,
16529
+ "arc-InformationCard--onDarkSurface": surface === "dark",
16530
+ }) }, filterAttrs(props)),
16531
+ React.createElement(Surface, { growVertically: true, background: "light-white" },
16532
+ React.createElement("div", { className: "arc-InformationCard-innerContainer" },
16533
+ image && (React.createElement("div", { className: "arc-InformationCard-img" },
16534
+ React.createElement(Image, __assign({ alt: "" }, image)))),
16535
+ icon && (React.createElement(React.Fragment, null,
16536
+ React.createElement("div", { className: "arc-InformationCard-icon" },
16537
+ React.createElement(Icon$1, { testId: "information-card-icon", icon: icon })))),
16538
+ React.createElement("div", { className: "arc-InformationCard-contentContainer" },
16539
+ label && (React.createElement(React.Fragment, null,
16540
+ React.createElement("div", { className: "arc-InformationCard-label" }, label.toUpperCase()))),
16541
+ React.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
16542
+ text && React.createElement(Text, null, text)),
16543
+ (button || badges || footerLogo) && (React.createElement("div", { className: "arc-InformationCard-footer" },
16544
+ badges && (React.createElement(React.Fragment, null,
16545
+ React.createElement("div", { className: "arc-InformationCard-badgeContainer" }, badges.map(function (_a, i) {
16546
+ var text = _a.text, badgeProps = __rest(_a, ["text"]);
16547
+ return (React.createElement("div", { className: "arc-InformationCard-badge", key: "information-card-badge-".concat(i) },
16548
+ React.createElement(Badge, __assign({}, badgeProps), text)));
16549
+ })))),
16550
+ React.createElement("div", { className: "arc-InformationCard-footerItems" },
16551
+ button && !cardUrl && (React.createElement("div", { className: "arc-InformationCard-footerButtonContainer" },
16552
+ React.createElement(ButtonV2, __assign({}, button, { size: "m", iconPosition: "beforeText", buttonStyle: "compact", icon: BtIconArrowRight })))),
16553
+ footerLogo && (React.createElement("div", { className: "arc-InformationCard-footerLogoContainer" },
16554
+ React.createElement(Image, __assign({}, footerLogo)))))))))));
16555
+ };
16556
+
16557
+ /**
16558
+ * Do not edit directly
16559
+ * Generated file
16560
+ */
16561
+
16562
+ const BtIconNewWindow =
16563
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M24.702 7.018a.5.5 0 0 0-.191-.039h-7.005a.5.5 0 0 0 0 1h5.798l-8.16 8.16a.5.5 0 1 0 .708.707l8.159-8.16v5.774a.5.5 0 1 0 1 0V7.48a.5.5 0 0 0-.31-.462'/%3e%3cpath d='M26.852 3.99H5.184a1.2 1.2 0 0 0-1.2 1.201v21.7a1.104 1.104 0 0 0 1.102 1.103h21.766a1.18 1.18 0 0 0 1.178-1.18V5.17a1.18 1.18 0 0 0-1.178-1.178m.178 22.825a.18.18 0 0 1-.178.179H5.086a.104.104 0 0 1-.103-.103V5.19a.2.2 0 0 1 .2-.2h21.669a.18.18 0 0 1 .178.178Z'/%3e%3c/svg%3e";
16564
+
16565
+ /**
16566
+ * Use `Link` to direct users to a new page or piece of information.
16567
+ */
16568
+ var Link = function (_a) {
16569
+ var id = _a.id, href = _a.href, title = _a.title, rel = _a.rel, target = _a.target, children = _a.children, onClick = _a.onClick, screenReaderText = _a.screenReaderText, _b = _a.isButton, isButton = _b === void 0 ? false : _b, _c = _a.isImplied, isImplied = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, props = __rest(_a, ["id", "href", "title", "rel", "target", "children", "onClick", "screenReaderText", "isButton", "isImplied", "size"]);
16570
+ var surface = React.useContext(Context$3).surface;
16571
+ var isExternalLink = target === "_blank";
16572
+ var textArray = children.split(" ");
16573
+ var firstText = textArray.slice(0, -1).join(" ");
16574
+ var lastWord = textArray[textArray.length - 1];
16575
+ var commonProps = {
16576
+ id: id,
16577
+ onClick: onClick,
16578
+ className: classNames("arc-Link", "arc-Link--".concat(size), {
16579
+ "arc-Link--onDarkSurface": surface === "dark",
16580
+ "arc-Link--onLightSurface": surface !== "dark",
16581
+ "arc-Link--isImplied": isImplied,
16582
+ }),
16583
+ };
16584
+ var elementProps = {
16585
+ a: __assign(__assign({}, commonProps), { href: href, title: title, target: target, rel: rel }),
16586
+ button: __assign({}, commonProps),
16587
+ span: __assign({}, commonProps),
16588
+ };
16589
+ var LinkElement = isButton ? "button" : href ? "a" : "span";
16590
+ return (React.createElement(LinkElement, __assign({}, elementProps[LinkElement], filterAttrs(props)),
16591
+ React.createElement("div", { className: "arc-Link-wrapper" },
16592
+ React.createElement(VisuallyHidden$2, null,
16593
+ screenReaderText || children,
16594
+ isExternalLink && " (Opens in new window)"),
16595
+ firstText && (React.createElement("span", { "aria-hidden": true, className: "arc-Link-text" },
16596
+ firstText,
16597
+ "\u00A0")),
16598
+ React.createElement("span", { className: "arc-Link-iconWrapper" },
16599
+ React.createElement("span", { "aria-hidden": true, className: "arc-Link-text" }, lastWord),
16600
+ isExternalLink && (React.createElement(Icon$1, { icon: BtIconNewWindow, size: size === "s" ? 20 : 24 }))))));
16601
+ };
16602
+
16603
+ /**
16604
+ * Use `Markup` to display HTML-formatted text.
16605
+ */
16606
+ var Markup = function (_a) {
16607
+ var children = _a.children, _b = _a.isMeasured, isMeasured = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isMeasured"]);
16608
+ var surface = React.useContext(Context$3).surface;
16609
+ return (React.createElement("div", __assign({ className: classNames({
16610
+ "arc-Markup": true,
16611
+ "arc-Markup--measured": isMeasured,
16612
+ "arc-Markup--onDarkSurface": surface === "dark",
16613
+ }) }, filterAttrs(props)), children));
16614
+ };
16615
+
16616
+ var VideoPlayer$1 = React.lazy(function () {
16617
+ return Promise.resolve().then(function () { return index; }).then(function (_a) {
16618
+ var VideoPlayer = _a.VideoPlayer;
16619
+ return ({
16620
+ default: VideoPlayer,
16621
+ });
16622
+ });
16623
+ });
16624
+ /**
16625
+ * Use `MediaCard` to contain content and an image about a single subject.
16626
+ */
16627
+ var MediaCard = function (_a) {
16628
+ var media = _a.media, url = _a.url, onClick = _a.onClick, heading = _a.heading, label = _a.label, text = _a.text, metaText = _a.metaText, minHeight = _a.minHeight, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.isContained, isContained = _c === void 0 ? true : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, props = __rest(_a, ["media", "url", "onClick", "heading", "label", "text", "metaText", "minHeight", "buttonIcon", "isContained", "headingLevel"]);
16629
+ var surface = React.useContext(Context$3).surface;
16630
+ var _e = React.useState(false), isClient = _e[0], setIsClient = _e[1];
16631
+ var _f = React.useState(false), showHoverState = _f[0], setShowHoverState = _f[1];
16632
+ var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
16633
+ var headingSpacing = isMinWidthArcBreakpointS ? "16" : "8";
16634
+ var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
16635
+ React.useEffect(function () {
16636
+ setIsClient(true);
16637
+ }, []);
16638
+ return (React.createElement("div", __assign({ style: { minHeight: minHeight }, className: classNames("arc-MediaCard", {
16639
+ "arc-MediaCard--outlined": url && isContained && showHoverState,
16640
+ "arc-MediaCard--contained": isContained,
16641
+ "arc-MediaCard--onDarkSurface": surface === "dark",
16642
+ }) }, filterAttrs(props)),
16643
+ React.createElement(ConditionalWrapper, { condition: isContained, wrapper: function (children) { return (React.createElement(Surface, { growVertically: true, background: "light-white" }, children)); } },
16644
+ media.type === "img" && (React.createElement("div", { className: "arc-MediaCard-imgContainer" },
16645
+ React.createElement(Image, __assign({}, media)))),
16646
+ media.type === "video" && isClient && (React.createElement(React.Suspense, { fallback: null },
16647
+ React.createElement(VideoPlayer$1, __assign({ isSupportingTextHidden: true }, media)))),
16648
+ React.createElement("div", { className: "arc-MediaCard-content" },
16649
+ label && (React.createElement(React.Fragment, null,
16650
+ React.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
16651
+ React.createElement(VerticalSpace, { size: headingSpacing }))),
16652
+ React.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) }),
16653
+ React.createElement("div", { className: "arc-MediaCard-textContainer" }, text && (React.createElement(React.Fragment, null,
16654
+ React.createElement(VerticalSpace, { size: headingSpacing }),
16655
+ React.createElement(Text, null, text),
16656
+ (url || metaText) && React.createElement(VerticalSpace, { size: "24" })))),
16657
+ React.createElement(CardFooter, { buttonIcon: buttonIcon, metaText: metaText, showButton: Boolean(url) && media.type !== "video", isHovered: showHoverState })))));
16658
+ };
16659
+
16660
+ var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
16661
+ var EVENT_OPTIONS = { bubbles: false, cancelable: true };
16662
+ var GROUP_NAME$2 = "RovingFocusGroup";
16663
+ var [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(GROUP_NAME$2);
16664
+ var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope$1(
16665
+ GROUP_NAME$2,
16666
+ [createCollectionScope$1]
16667
+ );
16668
+ var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME$2);
16669
+ var RovingFocusGroup = React__namespace.forwardRef(
16670
+ (props, forwardedRef) => {
16671
+ return /* @__PURE__ */ jsxRuntime.jsx(Collection$1.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(Collection$1.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });
16672
+ }
16673
+ );
16674
+ RovingFocusGroup.displayName = GROUP_NAME$2;
16675
+ var RovingFocusGroupImpl = React__namespace.forwardRef((props, forwardedRef) => {
16676
+ const {
16677
+ __scopeRovingFocusGroup,
16678
+ orientation,
16679
+ loop = false,
16680
+ dir,
16681
+ currentTabStopId: currentTabStopIdProp,
16682
+ defaultCurrentTabStopId,
16683
+ onCurrentTabStopIdChange,
16684
+ onEntryFocus,
16685
+ preventScrollOnEntryFocus = false,
16686
+ ...groupProps
16687
+ } = props;
16688
+ const ref = React__namespace.useRef(null);
16689
+ const composedRefs = useComposedRefs$1(forwardedRef, ref);
16690
+ const direction = useDirection(dir);
16691
+ const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({
16692
+ prop: currentTabStopIdProp,
16693
+ defaultProp: defaultCurrentTabStopId,
16694
+ onChange: onCurrentTabStopIdChange
16695
+ });
16696
+ const [isTabbingBackOut, setIsTabbingBackOut] = React__namespace.useState(false);
16697
+ const handleEntryFocus = useCallbackRef$1(onEntryFocus);
16698
+ const getItems = useCollection$1(__scopeRovingFocusGroup);
16699
+ const isClickFocusRef = React__namespace.useRef(false);
16700
+ const [focusableItemsCount, setFocusableItemsCount] = React__namespace.useState(0);
16701
+ React__namespace.useEffect(() => {
16702
+ const node = ref.current;
16703
+ if (node) {
16704
+ node.addEventListener(ENTRY_FOCUS, handleEntryFocus);
16705
+ return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);
16706
+ }
16707
+ }, [handleEntryFocus]);
16708
+ return /* @__PURE__ */ jsxRuntime.jsx(
16709
+ RovingFocusProvider,
16710
+ {
16711
+ scope: __scopeRovingFocusGroup,
16712
+ orientation,
16713
+ dir: direction,
16714
+ loop,
16715
+ currentTabStopId,
16716
+ onItemFocus: React__namespace.useCallback(
16717
+ (tabStopId) => setCurrentTabStopId(tabStopId),
16718
+ [setCurrentTabStopId]
16719
+ ),
16720
+ onItemShiftTab: React__namespace.useCallback(() => setIsTabbingBackOut(true), []),
16721
+ onFocusableItemAdd: React__namespace.useCallback(
16722
+ () => setFocusableItemsCount((prevCount) => prevCount + 1),
16723
+ []
16724
+ ),
16725
+ onFocusableItemRemove: React__namespace.useCallback(
16726
+ () => setFocusableItemsCount((prevCount) => prevCount - 1),
16727
+ []
16728
+ ),
16729
+ children: /* @__PURE__ */ jsxRuntime.jsx(
16730
+ Primitive$1.div,
16731
+ {
16732
+ tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
16733
+ "data-orientation": orientation,
16734
+ ...groupProps,
16735
+ ref: composedRefs,
16736
+ style: { outline: "none", ...props.style },
16737
+ onMouseDown: composeEventHandlers$1(props.onMouseDown, () => {
16738
+ isClickFocusRef.current = true;
16739
+ }),
16740
+ onFocus: composeEventHandlers$1(props.onFocus, (event) => {
16741
+ const isKeyboardFocus = !isClickFocusRef.current;
16742
+ if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {
16743
+ const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
16744
+ event.currentTarget.dispatchEvent(entryFocusEvent);
16745
+ if (!entryFocusEvent.defaultPrevented) {
16746
+ const items = getItems().filter((item) => item.focusable);
16747
+ const activeItem = items.find((item) => item.active);
16748
+ const currentItem = items.find((item) => item.id === currentTabStopId);
16749
+ const candidateItems = [activeItem, currentItem, ...items].filter(
16750
+ Boolean
16751
+ );
16752
+ const candidateNodes = candidateItems.map((item) => item.ref.current);
16753
+ focusFirst$1(candidateNodes, preventScrollOnEntryFocus);
16754
+ }
16755
+ }
16756
+ isClickFocusRef.current = false;
16757
+ }),
16758
+ onBlur: composeEventHandlers$1(props.onBlur, () => setIsTabbingBackOut(false))
16759
+ }
16760
+ )
16761
+ }
16762
+ );
16763
+ });
16764
+ var ITEM_NAME$2 = "RovingFocusGroupItem";
16765
+ var RovingFocusGroupItem = React__namespace.forwardRef(
16766
+ (props, forwardedRef) => {
16767
+ const {
16768
+ __scopeRovingFocusGroup,
16769
+ focusable = true,
16770
+ active = false,
16771
+ tabStopId,
16772
+ ...itemProps
16773
+ } = props;
16774
+ const autoId = useId();
16775
+ const id = tabStopId || autoId;
16776
+ const context = useRovingFocusContext(ITEM_NAME$2, __scopeRovingFocusGroup);
16777
+ const isCurrentTabStop = context.currentTabStopId === id;
16778
+ const getItems = useCollection$1(__scopeRovingFocusGroup);
16779
+ const { onFocusableItemAdd, onFocusableItemRemove } = context;
16780
+ React__namespace.useEffect(() => {
16781
+ if (focusable) {
16782
+ onFocusableItemAdd();
16783
+ return () => onFocusableItemRemove();
16784
+ }
16785
+ }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);
16786
+ return /* @__PURE__ */ jsxRuntime.jsx(
16787
+ Collection$1.ItemSlot,
16788
+ {
16789
+ scope: __scopeRovingFocusGroup,
16790
+ id,
16791
+ focusable,
16792
+ active,
16793
+ children: /* @__PURE__ */ jsxRuntime.jsx(
16794
+ Primitive$1.span,
16795
+ {
16796
+ tabIndex: isCurrentTabStop ? 0 : -1,
16797
+ "data-orientation": context.orientation,
16798
+ ...itemProps,
16799
+ ref: forwardedRef,
16800
+ onMouseDown: composeEventHandlers$1(props.onMouseDown, (event) => {
16801
+ if (!focusable) event.preventDefault();
16802
+ else context.onItemFocus(id);
16803
+ }),
16804
+ onFocus: composeEventHandlers$1(props.onFocus, () => context.onItemFocus(id)),
16805
+ onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
16806
+ if (event.key === "Tab" && event.shiftKey) {
16807
+ context.onItemShiftTab();
16808
+ return;
16809
+ }
16810
+ if (event.target !== event.currentTarget) return;
16811
+ const focusIntent = getFocusIntent(event, context.orientation, context.dir);
16812
+ if (focusIntent !== void 0) {
16813
+ if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;
16814
+ event.preventDefault();
16815
+ const items = getItems().filter((item) => item.focusable);
16816
+ let candidateNodes = items.map((item) => item.ref.current);
16817
+ if (focusIntent === "last") candidateNodes.reverse();
16818
+ else if (focusIntent === "prev" || focusIntent === "next") {
16819
+ if (focusIntent === "prev") candidateNodes.reverse();
16820
+ const currentIndex = candidateNodes.indexOf(event.currentTarget);
16821
+ candidateNodes = context.loop ? wrapArray$1(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);
16822
+ }
16823
+ setTimeout(() => focusFirst$1(candidateNodes));
16824
+ }
16825
+ })
16826
+ }
16827
+ )
16828
+ }
16829
+ );
16830
+ }
16831
+ );
16832
+ RovingFocusGroupItem.displayName = ITEM_NAME$2;
16833
+ var MAP_KEY_TO_FOCUS_INTENT = {
16834
+ ArrowLeft: "prev",
16835
+ ArrowUp: "prev",
16836
+ ArrowRight: "next",
16837
+ ArrowDown: "next",
16838
+ PageUp: "first",
16839
+ Home: "first",
16840
+ PageDown: "last",
16841
+ End: "last"
16842
+ };
16843
+ function getDirectionAwareKey(key, dir) {
16844
+ if (dir !== "rtl") return key;
16845
+ return key === "ArrowLeft" ? "ArrowRight" : key === "ArrowRight" ? "ArrowLeft" : key;
16846
+ }
16847
+ function getFocusIntent(event, orientation, dir) {
16848
+ const key = getDirectionAwareKey(event.key, dir);
16849
+ if (orientation === "vertical" && ["ArrowLeft", "ArrowRight"].includes(key)) return void 0;
16850
+ if (orientation === "horizontal" && ["ArrowUp", "ArrowDown"].includes(key)) return void 0;
16851
+ return MAP_KEY_TO_FOCUS_INTENT[key];
16852
+ }
16853
+ function focusFirst$1(candidates, preventScroll = false) {
16854
+ const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
16855
+ for (const candidate of candidates) {
16856
+ if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
16857
+ candidate.focus({ preventScroll });
16858
+ if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
16859
+ }
16860
+ }
16861
+ function wrapArray$1(array, startIndex) {
16862
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
16863
+ }
16864
+ var Root$2 = RovingFocusGroup;
16865
+ var Item = RovingFocusGroupItem;
16866
+
16867
+ var SELECTION_KEYS = ["Enter", " "];
16868
+ var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
16869
+ var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
16870
+ var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
16871
+ var SUB_OPEN_KEYS = {
16872
+ ltr: [...SELECTION_KEYS, "ArrowRight"],
16873
+ rtl: [...SELECTION_KEYS, "ArrowLeft"]
16874
+ };
16875
+ var SUB_CLOSE_KEYS = {
16876
+ ltr: ["ArrowLeft"],
16877
+ rtl: ["ArrowRight"]
16878
+ };
16879
+ var MENU_NAME = "Menu";
16880
+ var [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);
16881
+ var [createMenuContext, createMenuScope] = createContextScope$1(MENU_NAME, [
16882
+ createCollectionScope,
16883
+ createPopperScope$1,
16884
+ createRovingFocusGroupScope
16885
+ ]);
16886
+ var usePopperScope$1 = createPopperScope$1();
16887
+ var useRovingFocusGroupScope = createRovingFocusGroupScope();
16888
+ var [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);
16889
+ var [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);
16890
+ var Menu$1 = (props) => {
16891
+ const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;
16892
+ const popperScope = usePopperScope$1(__scopeMenu);
16893
+ const [content, setContent] = React__namespace.useState(null);
16894
+ const isUsingKeyboardRef = React__namespace.useRef(false);
16895
+ const handleOpenChange = useCallbackRef$1(onOpenChange);
16896
+ const direction = useDirection(dir);
16897
+ React__namespace.useEffect(() => {
16898
+ const handleKeyDown = () => {
16899
+ isUsingKeyboardRef.current = true;
16900
+ document.addEventListener("pointerdown", handlePointer, { capture: true, once: true });
16901
+ document.addEventListener("pointermove", handlePointer, { capture: true, once: true });
16902
+ };
16903
+ const handlePointer = () => isUsingKeyboardRef.current = false;
16904
+ document.addEventListener("keydown", handleKeyDown, { capture: true });
16905
+ return () => {
16906
+ document.removeEventListener("keydown", handleKeyDown, { capture: true });
16907
+ document.removeEventListener("pointerdown", handlePointer, { capture: true });
16908
+ document.removeEventListener("pointermove", handlePointer, { capture: true });
16909
+ };
16910
+ }, []);
16911
+ return /* @__PURE__ */ jsxRuntime.jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
16912
+ MenuProvider,
16913
+ {
16914
+ scope: __scopeMenu,
16915
+ open,
16916
+ onOpenChange: handleOpenChange,
16917
+ content,
16918
+ onContentChange: setContent,
16919
+ children: /* @__PURE__ */ jsxRuntime.jsx(
16920
+ MenuRootProvider,
16921
+ {
16922
+ scope: __scopeMenu,
16923
+ onClose: React__namespace.useCallback(() => handleOpenChange(false), [handleOpenChange]),
16924
+ isUsingKeyboardRef,
16925
+ dir: direction,
16926
+ modal,
16927
+ children
16928
+ }
16929
+ )
16930
+ }
16931
+ ) });
16932
+ };
16933
+ Menu$1.displayName = MENU_NAME;
16934
+ var ANCHOR_NAME$1 = "MenuAnchor";
16935
+ var MenuAnchor = React__namespace.forwardRef(
16936
+ (props, forwardedRef) => {
16937
+ const { __scopeMenu, ...anchorProps } = props;
16938
+ const popperScope = usePopperScope$1(__scopeMenu);
16939
+ return /* @__PURE__ */ jsxRuntime.jsx(Anchor$1, { ...popperScope, ...anchorProps, ref: forwardedRef });
16940
+ }
16941
+ );
16942
+ MenuAnchor.displayName = ANCHOR_NAME$1;
16943
+ var PORTAL_NAME$3 = "MenuPortal";
16944
+ var [PortalProvider$1, usePortalContext$1] = createMenuContext(PORTAL_NAME$3, {
16945
+ forceMount: void 0
16946
+ });
16947
+ var MenuPortal$1 = (props) => {
16948
+ const { __scopeMenu, forceMount, children, container } = props;
16949
+ const context = useMenuContext(PORTAL_NAME$3, __scopeMenu);
16950
+ return /* @__PURE__ */ jsxRuntime.jsx(PortalProvider$1, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Portal$6, { asChild: true, container, children }) }) });
16951
+ };
16952
+ MenuPortal$1.displayName = PORTAL_NAME$3;
16953
+ var CONTENT_NAME$3 = "MenuContent";
16954
+ var [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME$3);
16955
+ var MenuContent$1 = React__namespace.forwardRef(
16956
+ (props, forwardedRef) => {
16957
+ const portalContext = usePortalContext$1(CONTENT_NAME$3, props.__scopeMenu);
16958
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
16959
+ const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
16960
+ const rootContext = useMenuRootContext(CONTENT_NAME$3, props.__scopeMenu);
16961
+ return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsxRuntime.jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });
16962
+ }
16963
+ );
16964
+ var MenuRootContentModal = React__namespace.forwardRef(
16965
+ (props, forwardedRef) => {
16966
+ const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
16967
+ const ref = React__namespace.useRef(null);
16968
+ const composedRefs = useComposedRefs$1(forwardedRef, ref);
16969
+ React__namespace.useEffect(() => {
16970
+ const content = ref.current;
16971
+ if (content) return hideOthers(content);
16972
+ }, []);
16973
+ return /* @__PURE__ */ jsxRuntime.jsx(
16974
+ MenuContentImpl,
16975
+ {
16976
+ ...props,
16977
+ ref: composedRefs,
16978
+ trapFocus: context.open,
16979
+ disableOutsidePointerEvents: context.open,
16980
+ disableOutsideScroll: true,
16981
+ onFocusOutside: composeEventHandlers$1(
16982
+ props.onFocusOutside,
16983
+ (event) => event.preventDefault(),
16984
+ { checkForDefaultPrevented: false }
16985
+ ),
16986
+ onDismiss: () => context.onOpenChange(false)
16987
+ }
16988
+ );
16989
+ }
16990
+ );
16991
+ var MenuRootContentNonModal = React__namespace.forwardRef((props, forwardedRef) => {
16992
+ const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
16993
+ return /* @__PURE__ */ jsxRuntime.jsx(
16994
+ MenuContentImpl,
16995
+ {
16996
+ ...props,
16997
+ ref: forwardedRef,
16998
+ trapFocus: false,
16999
+ disableOutsidePointerEvents: false,
17000
+ disableOutsideScroll: false,
17001
+ onDismiss: () => context.onOpenChange(false)
17002
+ }
17003
+ );
17004
+ });
17005
+ var MenuContentImpl = React__namespace.forwardRef(
17006
+ (props, forwardedRef) => {
17007
+ const {
17008
+ __scopeMenu,
17009
+ loop = false,
17010
+ trapFocus,
17011
+ onOpenAutoFocus,
17012
+ onCloseAutoFocus,
17013
+ disableOutsidePointerEvents,
17014
+ onEntryFocus,
17015
+ onEscapeKeyDown,
17016
+ onPointerDownOutside,
17017
+ onFocusOutside,
17018
+ onInteractOutside,
17019
+ onDismiss,
17020
+ disableOutsideScroll,
17021
+ ...contentProps
17022
+ } = props;
17023
+ const context = useMenuContext(CONTENT_NAME$3, __scopeMenu);
17024
+ const rootContext = useMenuRootContext(CONTENT_NAME$3, __scopeMenu);
17025
+ const popperScope = usePopperScope$1(__scopeMenu);
17026
+ const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
17027
+ const getItems = useCollection(__scopeMenu);
17028
+ const [currentItemId, setCurrentItemId] = React__namespace.useState(null);
17029
+ const contentRef = React__namespace.useRef(null);
17030
+ const composedRefs = useComposedRefs$1(forwardedRef, contentRef, context.onContentChange);
17031
+ const timerRef = React__namespace.useRef(0);
17032
+ const searchRef = React__namespace.useRef("");
17033
+ const pointerGraceTimerRef = React__namespace.useRef(0);
17034
+ const pointerGraceIntentRef = React__namespace.useRef(null);
17035
+ const pointerDirRef = React__namespace.useRef("right");
17036
+ const lastPointerXRef = React__namespace.useRef(0);
17037
+ const ScrollLockWrapper = disableOutsideScroll ? ReactRemoveScroll : React__namespace.Fragment;
17038
+ const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot$1, allowPinchZoom: true } : void 0;
17039
+ const handleTypeaheadSearch = (key) => {
17040
+ const search = searchRef.current + key;
17041
+ const items = getItems().filter((item) => !item.disabled);
17042
+ const currentItem = document.activeElement;
17043
+ const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;
17044
+ const values = items.map((item) => item.textValue);
17045
+ const nextMatch = getNextMatch(values, search, currentMatch);
17046
+ const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;
17047
+ (function updateSearch(value) {
17048
+ searchRef.current = value;
17049
+ window.clearTimeout(timerRef.current);
17050
+ if (value !== "") timerRef.current = window.setTimeout(() => updateSearch(""), 1e3);
17051
+ })(search);
17052
+ if (newItem) {
17053
+ setTimeout(() => newItem.focus());
17054
+ }
17055
+ };
17056
+ React__namespace.useEffect(() => {
17057
+ return () => window.clearTimeout(timerRef.current);
17058
+ }, []);
17059
+ useFocusGuards();
17060
+ const isPointerMovingToSubmenu = React__namespace.useCallback((event) => {
17061
+ const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;
17062
+ return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);
17063
+ }, []);
17064
+ return /* @__PURE__ */ jsxRuntime.jsx(
17065
+ MenuContentProvider,
17066
+ {
17067
+ scope: __scopeMenu,
17068
+ searchRef,
17069
+ onItemEnter: React__namespace.useCallback(
17070
+ (event) => {
17071
+ if (isPointerMovingToSubmenu(event)) event.preventDefault();
17072
+ },
17073
+ [isPointerMovingToSubmenu]
17074
+ ),
17075
+ onItemLeave: React__namespace.useCallback(
17076
+ (event) => {
17077
+ if (isPointerMovingToSubmenu(event)) return;
17078
+ contentRef.current?.focus();
17079
+ setCurrentItemId(null);
17080
+ },
17081
+ [isPointerMovingToSubmenu]
17082
+ ),
17083
+ onTriggerLeave: React__namespace.useCallback(
17084
+ (event) => {
17085
+ if (isPointerMovingToSubmenu(event)) event.preventDefault();
17086
+ },
17087
+ [isPointerMovingToSubmenu]
17088
+ ),
17089
+ pointerGraceTimerRef,
17090
+ onPointerGraceIntentChange: React__namespace.useCallback((intent) => {
17091
+ pointerGraceIntentRef.current = intent;
17092
+ }, []),
17093
+ children: /* @__PURE__ */ jsxRuntime.jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsxRuntime.jsx(
17094
+ FocusScope,
17095
+ {
17096
+ asChild: true,
17097
+ trapped: trapFocus,
17098
+ onMountAutoFocus: composeEventHandlers$1(onOpenAutoFocus, (event) => {
17099
+ event.preventDefault();
17100
+ contentRef.current?.focus({ preventScroll: true });
17101
+ }),
17102
+ onUnmountAutoFocus: onCloseAutoFocus,
17103
+ children: /* @__PURE__ */ jsxRuntime.jsx(
17104
+ DismissableLayer$1,
17105
+ {
17106
+ asChild: true,
17107
+ disableOutsidePointerEvents,
17108
+ onEscapeKeyDown,
17109
+ onPointerDownOutside,
17110
+ onFocusOutside,
17111
+ onInteractOutside,
17112
+ onDismiss,
17113
+ children: /* @__PURE__ */ jsxRuntime.jsx(
17114
+ Root$2,
17115
+ {
17116
+ asChild: true,
17117
+ ...rovingFocusGroupScope,
17118
+ dir: rootContext.dir,
17119
+ orientation: "vertical",
17120
+ loop,
17121
+ currentTabStopId: currentItemId,
17122
+ onCurrentTabStopIdChange: setCurrentItemId,
17123
+ onEntryFocus: composeEventHandlers$1(onEntryFocus, (event) => {
17124
+ if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
17125
+ }),
17126
+ preventScrollOnEntryFocus: true,
17127
+ children: /* @__PURE__ */ jsxRuntime.jsx(
17128
+ Content$2,
17129
+ {
17130
+ role: "menu",
17131
+ "aria-orientation": "vertical",
17132
+ "data-state": getOpenState(context.open),
17133
+ "data-radix-menu-content": "",
17134
+ dir: rootContext.dir,
17135
+ ...popperScope,
17136
+ ...contentProps,
17137
+ ref: composedRefs,
17138
+ style: { outline: "none", ...contentProps.style },
17139
+ onKeyDown: composeEventHandlers$1(contentProps.onKeyDown, (event) => {
17140
+ const target = event.target;
17141
+ const isKeyDownInside = target.closest("[data-radix-menu-content]") === event.currentTarget;
17142
+ const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;
17143
+ const isCharacterKey = event.key.length === 1;
17144
+ if (isKeyDownInside) {
17145
+ if (event.key === "Tab") event.preventDefault();
17146
+ if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);
17147
+ }
17148
+ const content = contentRef.current;
17149
+ if (event.target !== content) return;
17150
+ if (!FIRST_LAST_KEYS.includes(event.key)) return;
17151
+ event.preventDefault();
17152
+ const items = getItems().filter((item) => !item.disabled);
17153
+ const candidateNodes = items.map((item) => item.ref.current);
17154
+ if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();
17155
+ focusFirst(candidateNodes);
17156
+ }),
17157
+ onBlur: composeEventHandlers$1(props.onBlur, (event) => {
17158
+ if (!event.currentTarget.contains(event.target)) {
17159
+ window.clearTimeout(timerRef.current);
17160
+ searchRef.current = "";
17161
+ }
17162
+ }),
17163
+ onPointerMove: composeEventHandlers$1(
17164
+ props.onPointerMove,
17165
+ whenMouse((event) => {
17166
+ const target = event.target;
17167
+ const pointerXHasChanged = lastPointerXRef.current !== event.clientX;
17168
+ if (event.currentTarget.contains(target) && pointerXHasChanged) {
17169
+ const newDir = event.clientX > lastPointerXRef.current ? "right" : "left";
17170
+ pointerDirRef.current = newDir;
17171
+ lastPointerXRef.current = event.clientX;
17172
+ }
17173
+ })
17174
+ )
17175
+ }
17176
+ )
17177
+ }
17178
+ )
17179
+ }
17180
+ )
17181
+ }
17182
+ ) })
17183
+ }
17184
+ );
17185
+ }
17186
+ );
17187
+ MenuContent$1.displayName = CONTENT_NAME$3;
17188
+ var GROUP_NAME$1 = "MenuGroup";
17189
+ var MenuGroup$1 = React__namespace.forwardRef(
17190
+ (props, forwardedRef) => {
17191
+ const { __scopeMenu, ...groupProps } = props;
17192
+ return /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { role: "group", ...groupProps, ref: forwardedRef });
17193
+ }
17194
+ );
17195
+ MenuGroup$1.displayName = GROUP_NAME$1;
17196
+ var LABEL_NAME$1 = "MenuLabel";
17197
+ var MenuLabel$1 = React__namespace.forwardRef(
17198
+ (props, forwardedRef) => {
17199
+ const { __scopeMenu, ...labelProps } = props;
17200
+ return /* @__PURE__ */ jsxRuntime.jsx(Primitive$1.div, { ...labelProps, ref: forwardedRef });
17201
+ }
17202
+ );
17203
+ MenuLabel$1.displayName = LABEL_NAME$1;
17204
+ var ITEM_NAME$1 = "MenuItem";
17205
+ var ITEM_SELECT = "menu.itemSelect";
17206
+ var MenuItem$1 = React__namespace.forwardRef(
17207
+ (props, forwardedRef) => {
17208
+ const { disabled = false, onSelect, ...itemProps } = props;
17209
+ const ref = React__namespace.useRef(null);
17210
+ const rootContext = useMenuRootContext(ITEM_NAME$1, props.__scopeMenu);
17211
+ const contentContext = useMenuContentContext(ITEM_NAME$1, props.__scopeMenu);
17212
+ const composedRefs = useComposedRefs$1(forwardedRef, ref);
17213
+ const isPointerDownRef = React__namespace.useRef(false);
17214
+ const handleSelect = () => {
17215
+ const menuItem = ref.current;
17216
+ if (!disabled && menuItem) {
17217
+ const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });
17218
+ menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });
17219
+ dispatchDiscreteCustomEvent$1(menuItem, itemSelectEvent);
17220
+ if (itemSelectEvent.defaultPrevented) {
17221
+ isPointerDownRef.current = false;
17222
+ } else {
17223
+ rootContext.onClose();
17224
+ }
17225
+ }
17226
+ };
17227
+ return /* @__PURE__ */ jsxRuntime.jsx(
17228
+ MenuItemImpl,
17229
+ {
17230
+ ...itemProps,
17231
+ ref: composedRefs,
17232
+ disabled,
17233
+ onClick: composeEventHandlers$1(props.onClick, handleSelect),
17234
+ onPointerDown: (event) => {
17235
+ props.onPointerDown?.(event);
17236
+ isPointerDownRef.current = true;
17237
+ },
17238
+ onPointerUp: composeEventHandlers$1(props.onPointerUp, (event) => {
17239
+ if (!isPointerDownRef.current) event.currentTarget?.click();
17240
+ }),
17241
+ onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
17242
+ const isTypingAhead = contentContext.searchRef.current !== "";
17243
+ if (disabled || isTypingAhead && event.key === " ") return;
17244
+ if (SELECTION_KEYS.includes(event.key)) {
17245
+ event.currentTarget.click();
17246
+ event.preventDefault();
17247
+ }
17248
+ })
17249
+ }
17250
+ );
17251
+ }
17252
+ );
17253
+ MenuItem$1.displayName = ITEM_NAME$1;
17254
+ var MenuItemImpl = React__namespace.forwardRef(
17255
+ (props, forwardedRef) => {
17256
+ const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;
17257
+ const contentContext = useMenuContentContext(ITEM_NAME$1, __scopeMenu);
17258
+ const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
17259
+ const ref = React__namespace.useRef(null);
17260
+ const composedRefs = useComposedRefs$1(forwardedRef, ref);
17261
+ const [isFocused, setIsFocused] = React__namespace.useState(false);
17262
+ const [textContent, setTextContent] = React__namespace.useState("");
17263
+ React__namespace.useEffect(() => {
17264
+ const menuItem = ref.current;
17265
+ if (menuItem) {
17266
+ setTextContent((menuItem.textContent ?? "").trim());
17267
+ }
17268
+ }, [itemProps.children]);
17269
+ return /* @__PURE__ */ jsxRuntime.jsx(
17270
+ Collection.ItemSlot,
17271
+ {
17272
+ scope: __scopeMenu,
17273
+ disabled,
17274
+ textValue: textValue ?? textContent,
17275
+ children: /* @__PURE__ */ jsxRuntime.jsx(Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
17276
+ Primitive$1.div,
17277
+ {
17278
+ role: "menuitem",
17279
+ "data-highlighted": isFocused ? "" : void 0,
17280
+ "aria-disabled": disabled || void 0,
17281
+ "data-disabled": disabled ? "" : void 0,
17282
+ ...itemProps,
17283
+ ref: composedRefs,
17284
+ onPointerMove: composeEventHandlers$1(
17285
+ props.onPointerMove,
17286
+ whenMouse((event) => {
17287
+ if (disabled) {
17288
+ contentContext.onItemLeave(event);
17289
+ } else {
17290
+ contentContext.onItemEnter(event);
17291
+ if (!event.defaultPrevented) {
17292
+ const item = event.currentTarget;
17293
+ item.focus({ preventScroll: true });
17294
+ }
17295
+ }
17296
+ })
17297
+ ),
17298
+ onPointerLeave: composeEventHandlers$1(
17299
+ props.onPointerLeave,
17300
+ whenMouse((event) => contentContext.onItemLeave(event))
17301
+ ),
17302
+ onFocus: composeEventHandlers$1(props.onFocus, () => setIsFocused(true)),
17303
+ onBlur: composeEventHandlers$1(props.onBlur, () => setIsFocused(false))
17304
+ }
17305
+ ) })
17306
+ }
17307
+ );
17308
+ }
17309
+ );
17310
+ var CHECKBOX_ITEM_NAME$1 = "MenuCheckboxItem";
17311
+ var MenuCheckboxItem$1 = React__namespace.forwardRef(
17312
+ (props, forwardedRef) => {
17313
+ const { checked = false, onCheckedChange, ...checkboxItemProps } = props;
17314
+ return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsxRuntime.jsx(
17315
+ MenuItem$1,
17316
+ {
17317
+ role: "menuitemcheckbox",
17318
+ "aria-checked": isIndeterminate(checked) ? "mixed" : checked,
17319
+ ...checkboxItemProps,
17320
+ ref: forwardedRef,
17321
+ "data-state": getCheckedState(checked),
17322
+ onSelect: composeEventHandlers$1(
17323
+ checkboxItemProps.onSelect,
17324
+ () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),
17325
+ { checkForDefaultPrevented: false }
17326
+ )
17327
+ }
17328
+ ) });
17329
+ }
17330
+ );
17331
+ MenuCheckboxItem$1.displayName = CHECKBOX_ITEM_NAME$1;
17332
+ var RADIO_GROUP_NAME$1 = "MenuRadioGroup";
17333
+ var [RadioGroupProvider, useRadioGroupContext] = createMenuContext(
17334
+ RADIO_GROUP_NAME$1,
17335
+ { value: void 0, onValueChange: () => {
17336
+ } }
17337
+ );
17338
+ var MenuRadioGroup$1 = React__namespace.forwardRef(
17339
+ (props, forwardedRef) => {
17340
+ const { value, onValueChange, ...groupProps } = props;
17341
+ const handleValueChange = useCallbackRef$1(onValueChange);
17342
+ return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsxRuntime.jsx(MenuGroup$1, { ...groupProps, ref: forwardedRef }) });
17343
+ }
17344
+ );
17345
+ MenuRadioGroup$1.displayName = RADIO_GROUP_NAME$1;
17346
+ var RADIO_ITEM_NAME$1 = "MenuRadioItem";
17347
+ var MenuRadioItem$1 = React__namespace.forwardRef(
17348
+ (props, forwardedRef) => {
17349
+ const { value, ...radioItemProps } = props;
17350
+ const context = useRadioGroupContext(RADIO_ITEM_NAME$1, props.__scopeMenu);
17351
+ const checked = value === context.value;
17352
+ return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsxRuntime.jsx(
17353
+ MenuItem$1,
17354
+ {
17355
+ role: "menuitemradio",
17356
+ "aria-checked": checked,
17357
+ ...radioItemProps,
17358
+ ref: forwardedRef,
17359
+ "data-state": getCheckedState(checked),
17360
+ onSelect: composeEventHandlers$1(
17361
+ radioItemProps.onSelect,
17362
+ () => context.onValueChange?.(value),
17363
+ { checkForDefaultPrevented: false }
17364
+ )
17365
+ }
17366
+ ) });
17367
+ }
17368
+ );
17369
+ MenuRadioItem$1.displayName = RADIO_ITEM_NAME$1;
17370
+ var ITEM_INDICATOR_NAME = "MenuItemIndicator";
17371
+ var [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(
17372
+ ITEM_INDICATOR_NAME,
17373
+ { checked: false }
17374
+ );
17375
+ var MenuItemIndicator = React__namespace.forwardRef(
17376
+ (props, forwardedRef) => {
17377
+ const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;
17378
+ const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);
17379
+ return /* @__PURE__ */ jsxRuntime.jsx(
17380
+ Presence$1,
17381
+ {
17382
+ present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
17383
+ children: /* @__PURE__ */ jsxRuntime.jsx(
17384
+ Primitive$1.span,
17385
+ {
17386
+ ...itemIndicatorProps,
17387
+ ref: forwardedRef,
17388
+ "data-state": getCheckedState(indicatorContext.checked)
17389
+ }
17390
+ )
17391
+ }
17392
+ );
17393
+ }
17394
+ );
17395
+ MenuItemIndicator.displayName = ITEM_INDICATOR_NAME;
17396
+ var SEPARATOR_NAME$1 = "MenuSeparator";
17397
+ var MenuSeparator$1 = React__namespace.forwardRef(
17398
+ (props, forwardedRef) => {
17399
+ const { __scopeMenu, ...separatorProps } = props;
17400
+ return /* @__PURE__ */ jsxRuntime.jsx(
17401
+ Primitive$1.div,
17402
+ {
17403
+ role: "separator",
17404
+ "aria-orientation": "horizontal",
17405
+ ...separatorProps,
17406
+ ref: forwardedRef
17407
+ }
17408
+ );
17409
+ }
17410
+ );
17411
+ MenuSeparator$1.displayName = SEPARATOR_NAME$1;
17412
+ var ARROW_NAME$3 = "MenuArrow";
17413
+ var MenuArrow = React__namespace.forwardRef(
17414
+ (props, forwardedRef) => {
17415
+ const { __scopeMenu, ...arrowProps } = props;
17416
+ const popperScope = usePopperScope$1(__scopeMenu);
17417
+ return /* @__PURE__ */ jsxRuntime.jsx(Arrow$2, { ...popperScope, ...arrowProps, ref: forwardedRef });
17418
+ }
17419
+ );
17420
+ MenuArrow.displayName = ARROW_NAME$3;
17421
+ var SUB_NAME = "MenuSub";
17422
+ var [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);
17423
+ var MenuSub$1 = (props) => {
17424
+ const { __scopeMenu, children, open = false, onOpenChange } = props;
17425
+ const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);
17426
+ const popperScope = usePopperScope$1(__scopeMenu);
17427
+ const [trigger, setTrigger] = React__namespace.useState(null);
17428
+ const [content, setContent] = React__namespace.useState(null);
17429
+ const handleOpenChange = useCallbackRef$1(onOpenChange);
17430
+ React__namespace.useEffect(() => {
17431
+ if (parentMenuContext.open === false) handleOpenChange(false);
17432
+ return () => handleOpenChange(false);
17433
+ }, [parentMenuContext.open, handleOpenChange]);
17434
+ return /* @__PURE__ */ jsxRuntime.jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
17435
+ MenuProvider,
17436
+ {
17437
+ scope: __scopeMenu,
17438
+ open,
17439
+ onOpenChange: handleOpenChange,
17440
+ content,
17441
+ onContentChange: setContent,
17442
+ children: /* @__PURE__ */ jsxRuntime.jsx(
17443
+ MenuSubProvider,
17444
+ {
17445
+ scope: __scopeMenu,
17446
+ contentId: useId(),
17447
+ triggerId: useId(),
17448
+ trigger,
17449
+ onTriggerChange: setTrigger,
17450
+ children
17451
+ }
17452
+ )
17453
+ }
17454
+ ) });
17455
+ };
17456
+ MenuSub$1.displayName = SUB_NAME;
17457
+ var SUB_TRIGGER_NAME$1 = "MenuSubTrigger";
17458
+ var MenuSubTrigger$1 = React__namespace.forwardRef(
17459
+ (props, forwardedRef) => {
17460
+ const context = useMenuContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
17461
+ const rootContext = useMenuRootContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
17462
+ const subContext = useMenuSubContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
17463
+ const contentContext = useMenuContentContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
17464
+ const openTimerRef = React__namespace.useRef(null);
17465
+ const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;
17466
+ const scope = { __scopeMenu: props.__scopeMenu };
17467
+ const clearOpenTimer = React__namespace.useCallback(() => {
17468
+ if (openTimerRef.current) window.clearTimeout(openTimerRef.current);
17469
+ openTimerRef.current = null;
17470
+ }, []);
17471
+ React__namespace.useEffect(() => clearOpenTimer, [clearOpenTimer]);
17472
+ React__namespace.useEffect(() => {
17473
+ const pointerGraceTimer = pointerGraceTimerRef.current;
17474
+ return () => {
17475
+ window.clearTimeout(pointerGraceTimer);
17476
+ onPointerGraceIntentChange(null);
17477
+ };
17478
+ }, [pointerGraceTimerRef, onPointerGraceIntentChange]);
17479
+ return /* @__PURE__ */ jsxRuntime.jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsxRuntime.jsx(
17480
+ MenuItemImpl,
17481
+ {
17482
+ id: subContext.triggerId,
17483
+ "aria-haspopup": "menu",
17484
+ "aria-expanded": context.open,
17485
+ "aria-controls": subContext.contentId,
17486
+ "data-state": getOpenState(context.open),
17487
+ ...props,
17488
+ ref: composeRefs$1(forwardedRef, subContext.onTriggerChange),
17489
+ onClick: (event) => {
17490
+ props.onClick?.(event);
17491
+ if (props.disabled || event.defaultPrevented) return;
17492
+ event.currentTarget.focus();
17493
+ if (!context.open) context.onOpenChange(true);
17494
+ },
17495
+ onPointerMove: composeEventHandlers$1(
17496
+ props.onPointerMove,
17497
+ whenMouse((event) => {
17498
+ contentContext.onItemEnter(event);
17499
+ if (event.defaultPrevented) return;
17500
+ if (!props.disabled && !context.open && !openTimerRef.current) {
17501
+ contentContext.onPointerGraceIntentChange(null);
17502
+ openTimerRef.current = window.setTimeout(() => {
17503
+ context.onOpenChange(true);
17504
+ clearOpenTimer();
17505
+ }, 100);
17506
+ }
17507
+ })
17508
+ ),
17509
+ onPointerLeave: composeEventHandlers$1(
17510
+ props.onPointerLeave,
17511
+ whenMouse((event) => {
17512
+ clearOpenTimer();
17513
+ const contentRect = context.content?.getBoundingClientRect();
17514
+ if (contentRect) {
17515
+ const side = context.content?.dataset.side;
17516
+ const rightSide = side === "right";
17517
+ const bleed = rightSide ? -5 : 5;
17518
+ const contentNearEdge = contentRect[rightSide ? "left" : "right"];
17519
+ const contentFarEdge = contentRect[rightSide ? "right" : "left"];
17520
+ contentContext.onPointerGraceIntentChange({
17521
+ area: [
17522
+ // Apply a bleed on clientX to ensure that our exit point is
17523
+ // consistently within polygon bounds
17524
+ { x: event.clientX + bleed, y: event.clientY },
17525
+ { x: contentNearEdge, y: contentRect.top },
17526
+ { x: contentFarEdge, y: contentRect.top },
17527
+ { x: contentFarEdge, y: contentRect.bottom },
17528
+ { x: contentNearEdge, y: contentRect.bottom }
17529
+ ],
17530
+ side
17531
+ });
17532
+ window.clearTimeout(pointerGraceTimerRef.current);
17533
+ pointerGraceTimerRef.current = window.setTimeout(
17534
+ () => contentContext.onPointerGraceIntentChange(null),
17535
+ 300
17536
+ );
17537
+ } else {
17538
+ contentContext.onTriggerLeave(event);
17539
+ if (event.defaultPrevented) return;
17540
+ contentContext.onPointerGraceIntentChange(null);
17541
+ }
17542
+ })
17543
+ ),
17544
+ onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
17545
+ const isTypingAhead = contentContext.searchRef.current !== "";
17546
+ if (props.disabled || isTypingAhead && event.key === " ") return;
17547
+ if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {
17548
+ context.onOpenChange(true);
17549
+ context.content?.focus();
17550
+ event.preventDefault();
17551
+ }
17552
+ })
17553
+ }
17554
+ ) });
17555
+ }
17556
+ );
17557
+ MenuSubTrigger$1.displayName = SUB_TRIGGER_NAME$1;
17558
+ var SUB_CONTENT_NAME$1 = "MenuSubContent";
17559
+ var MenuSubContent$1 = React__namespace.forwardRef(
17560
+ (props, forwardedRef) => {
17561
+ const portalContext = usePortalContext$1(CONTENT_NAME$3, props.__scopeMenu);
17562
+ const { forceMount = portalContext.forceMount, ...subContentProps } = props;
17563
+ const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
17564
+ const rootContext = useMenuRootContext(CONTENT_NAME$3, props.__scopeMenu);
17565
+ const subContext = useMenuSubContext(SUB_CONTENT_NAME$1, props.__scopeMenu);
17566
+ const ref = React__namespace.useRef(null);
17567
+ const composedRefs = useComposedRefs$1(forwardedRef, ref);
17568
+ return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(
17569
+ MenuContentImpl,
17570
+ {
17571
+ id: subContext.contentId,
17572
+ "aria-labelledby": subContext.triggerId,
17573
+ ...subContentProps,
17574
+ ref: composedRefs,
17575
+ align: "start",
17576
+ side: rootContext.dir === "rtl" ? "left" : "right",
17577
+ disableOutsidePointerEvents: false,
17578
+ disableOutsideScroll: false,
17579
+ trapFocus: false,
17580
+ onOpenAutoFocus: (event) => {
17581
+ if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();
17582
+ event.preventDefault();
17583
+ },
17584
+ onCloseAutoFocus: (event) => event.preventDefault(),
17585
+ onFocusOutside: composeEventHandlers$1(props.onFocusOutside, (event) => {
17586
+ if (event.target !== subContext.trigger) context.onOpenChange(false);
17587
+ }),
17588
+ onEscapeKeyDown: composeEventHandlers$1(props.onEscapeKeyDown, (event) => {
17589
+ rootContext.onClose();
17590
+ event.preventDefault();
17591
+ }),
17592
+ onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
17593
+ const isKeyDownInside = event.currentTarget.contains(event.target);
17594
+ const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);
17595
+ if (isKeyDownInside && isCloseKey) {
17596
+ context.onOpenChange(false);
17597
+ subContext.trigger?.focus();
17598
+ event.preventDefault();
17599
+ }
17600
+ })
17601
+ }
17602
+ ) }) }) });
17603
+ }
17604
+ );
17605
+ MenuSubContent$1.displayName = SUB_CONTENT_NAME$1;
17606
+ function getOpenState(open) {
17607
+ return open ? "open" : "closed";
17608
+ }
17609
+ function isIndeterminate(checked) {
17610
+ return checked === "indeterminate";
17611
+ }
17612
+ function getCheckedState(checked) {
17613
+ return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
17614
+ }
17615
+ function focusFirst(candidates) {
17616
+ const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
17617
+ for (const candidate of candidates) {
17618
+ if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
17619
+ candidate.focus();
17620
+ if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
17621
+ }
17622
+ }
17623
+ function wrapArray(array, startIndex) {
17624
+ return array.map((_, index) => array[(startIndex + index) % array.length]);
17625
+ }
17626
+ function getNextMatch(values, search, currentMatch) {
17627
+ const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);
17628
+ const normalizedSearch = isRepeated ? search[0] : search;
17629
+ const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;
17630
+ let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));
17631
+ const excludeCurrentMatch = normalizedSearch.length === 1;
17632
+ if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);
17633
+ const nextMatch = wrappedValues.find(
17634
+ (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())
17635
+ );
17636
+ return nextMatch !== currentMatch ? nextMatch : void 0;
17637
+ }
17638
+ function isPointInPolygon$1(point, polygon) {
17639
+ const { x, y } = point;
17640
+ let inside = false;
17641
+ for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
17642
+ const xi = polygon[i].x;
17643
+ const yi = polygon[i].y;
17644
+ const xj = polygon[j].x;
17645
+ const yj = polygon[j].y;
17646
+ const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;
17647
+ if (intersect) inside = !inside;
17648
+ }
17649
+ return inside;
17650
+ }
17651
+ function isPointerInGraceArea(event, area) {
17652
+ if (!area) return false;
17653
+ const cursorPos = { x: event.clientX, y: event.clientY };
17654
+ return isPointInPolygon$1(cursorPos, area);
17655
+ }
17656
+ function whenMouse(handler) {
17657
+ return (event) => event.pointerType === "mouse" ? handler(event) : void 0;
17658
+ }
17659
+ var Root3$1 = Menu$1;
17660
+ var Anchor2 = MenuAnchor;
17661
+ var Portal$2 = MenuPortal$1;
17662
+ var Content2$2 = MenuContent$1;
17663
+ var Group = MenuGroup$1;
17664
+ var Label = MenuLabel$1;
17665
+ var Item2$1 = MenuItem$1;
17666
+ var CheckboxItem = MenuCheckboxItem$1;
17667
+ var RadioGroup$1 = MenuRadioGroup$1;
17668
+ var RadioItem = MenuRadioItem$1;
17669
+ var ItemIndicator = MenuItemIndicator;
17670
+ var Separator = MenuSeparator$1;
17671
+ var Arrow2$1 = MenuArrow;
17672
+ var Sub = MenuSub$1;
17673
+ var SubTrigger = MenuSubTrigger$1;
17674
+ var SubContent = MenuSubContent$1;
17675
+
17676
+ var DROPDOWN_MENU_NAME = "DropdownMenu";
17677
+ var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope$1(
17678
+ DROPDOWN_MENU_NAME,
17679
+ [createMenuScope]
17680
+ );
17681
+ var useMenuScope = createMenuScope();
17682
+ var [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);
17683
+ var DropdownMenu = (props) => {
17684
+ const {
17685
+ __scopeDropdownMenu,
17686
+ children,
17687
+ dir,
17688
+ open: openProp,
17689
+ defaultOpen,
17690
+ onOpenChange,
17691
+ modal = true
17692
+ } = props;
17693
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17694
+ const triggerRef = React__namespace.useRef(null);
17695
+ const [open = false, setOpen] = useControllableState({
17696
+ prop: openProp,
17697
+ defaultProp: defaultOpen,
17698
+ onChange: onOpenChange
17699
+ });
17700
+ return /* @__PURE__ */ jsxRuntime.jsx(
17701
+ DropdownMenuProvider,
17702
+ {
17703
+ scope: __scopeDropdownMenu,
17704
+ triggerId: useId(),
17705
+ triggerRef,
17706
+ contentId: useId(),
17707
+ open,
17708
+ onOpenChange: setOpen,
17709
+ onOpenToggle: React__namespace.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
17710
+ modal,
17711
+ children: /* @__PURE__ */ jsxRuntime.jsx(Root3$1, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })
17712
+ }
17713
+ );
17714
+ };
17715
+ DropdownMenu.displayName = DROPDOWN_MENU_NAME;
17716
+ var TRIGGER_NAME$1 = "DropdownMenuTrigger";
17717
+ var DropdownMenuTrigger = React__namespace.forwardRef(
17718
+ (props, forwardedRef) => {
17719
+ const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
17720
+ const context = useDropdownMenuContext(TRIGGER_NAME$1, __scopeDropdownMenu);
17721
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17722
+ return /* @__PURE__ */ jsxRuntime.jsx(Anchor2, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsxRuntime.jsx(
17723
+ Primitive$1.button,
17724
+ {
17725
+ type: "button",
17726
+ id: context.triggerId,
17727
+ "aria-haspopup": "menu",
17728
+ "aria-expanded": context.open,
17729
+ "aria-controls": context.open ? context.contentId : void 0,
17730
+ "data-state": context.open ? "open" : "closed",
17731
+ "data-disabled": disabled ? "" : void 0,
17732
+ disabled,
17733
+ ...triggerProps,
17734
+ ref: composeRefs$1(forwardedRef, context.triggerRef),
17735
+ onPointerDown: composeEventHandlers$1(props.onPointerDown, (event) => {
17736
+ if (!disabled && event.button === 0 && event.ctrlKey === false) {
17737
+ context.onOpenToggle();
17738
+ if (!context.open) event.preventDefault();
17739
+ }
17740
+ }),
17741
+ onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
17742
+ if (disabled) return;
17743
+ if (["Enter", " "].includes(event.key)) context.onOpenToggle();
17744
+ if (event.key === "ArrowDown") context.onOpenChange(true);
17745
+ if (["Enter", " ", "ArrowDown"].includes(event.key)) event.preventDefault();
17746
+ })
17747
+ }
17748
+ ) });
17749
+ }
17750
+ );
17751
+ DropdownMenuTrigger.displayName = TRIGGER_NAME$1;
17752
+ var PORTAL_NAME$2 = "DropdownMenuPortal";
17753
+ var DropdownMenuPortal = (props) => {
17754
+ const { __scopeDropdownMenu, ...portalProps } = props;
17755
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17756
+ return /* @__PURE__ */ jsxRuntime.jsx(Portal$2, { ...menuScope, ...portalProps });
17757
+ };
17758
+ DropdownMenuPortal.displayName = PORTAL_NAME$2;
17759
+ var CONTENT_NAME$2 = "DropdownMenuContent";
17760
+ var DropdownMenuContent = React__namespace.forwardRef(
17761
+ (props, forwardedRef) => {
17762
+ const { __scopeDropdownMenu, ...contentProps } = props;
17763
+ const context = useDropdownMenuContext(CONTENT_NAME$2, __scopeDropdownMenu);
17764
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17765
+ const hasInteractedOutsideRef = React__namespace.useRef(false);
17766
+ return /* @__PURE__ */ jsxRuntime.jsx(
17767
+ Content2$2,
17768
+ {
17769
+ id: context.contentId,
17770
+ "aria-labelledby": context.triggerId,
17771
+ ...menuScope,
17772
+ ...contentProps,
17773
+ ref: forwardedRef,
17774
+ onCloseAutoFocus: composeEventHandlers$1(props.onCloseAutoFocus, (event) => {
17775
+ if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
17776
+ hasInteractedOutsideRef.current = false;
17777
+ event.preventDefault();
17778
+ }),
17779
+ onInteractOutside: composeEventHandlers$1(props.onInteractOutside, (event) => {
17780
+ const originalEvent = event.detail.originalEvent;
17781
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
17782
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
17783
+ if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;
17784
+ }),
17785
+ style: {
17786
+ ...props.style,
17787
+ // re-namespace exposed content custom properties
17788
+ ...{
17789
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
17790
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
17791
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
17792
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
17793
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
17794
+ }
17795
+ }
17796
+ }
17797
+ );
17798
+ }
17799
+ );
17800
+ DropdownMenuContent.displayName = CONTENT_NAME$2;
17801
+ var GROUP_NAME = "DropdownMenuGroup";
17802
+ var DropdownMenuGroup = React__namespace.forwardRef(
17803
+ (props, forwardedRef) => {
17804
+ const { __scopeDropdownMenu, ...groupProps } = props;
17805
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17806
+ return /* @__PURE__ */ jsxRuntime.jsx(Group, { ...menuScope, ...groupProps, ref: forwardedRef });
17807
+ }
17808
+ );
17809
+ DropdownMenuGroup.displayName = GROUP_NAME;
17810
+ var LABEL_NAME = "DropdownMenuLabel";
17811
+ var DropdownMenuLabel = React__namespace.forwardRef(
17812
+ (props, forwardedRef) => {
17813
+ const { __scopeDropdownMenu, ...labelProps } = props;
17814
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17815
+ return /* @__PURE__ */ jsxRuntime.jsx(Label, { ...menuScope, ...labelProps, ref: forwardedRef });
17816
+ }
17817
+ );
17818
+ DropdownMenuLabel.displayName = LABEL_NAME;
17819
+ var ITEM_NAME = "DropdownMenuItem";
17820
+ var DropdownMenuItem = React__namespace.forwardRef(
17821
+ (props, forwardedRef) => {
17822
+ const { __scopeDropdownMenu, ...itemProps } = props;
17823
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17824
+ return /* @__PURE__ */ jsxRuntime.jsx(Item2$1, { ...menuScope, ...itemProps, ref: forwardedRef });
17825
+ }
17826
+ );
17827
+ DropdownMenuItem.displayName = ITEM_NAME;
17828
+ var CHECKBOX_ITEM_NAME = "DropdownMenuCheckboxItem";
17829
+ var DropdownMenuCheckboxItem = React__namespace.forwardRef((props, forwardedRef) => {
17830
+ const { __scopeDropdownMenu, ...checkboxItemProps } = props;
17831
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17832
+ return /* @__PURE__ */ jsxRuntime.jsx(CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });
17833
+ });
17834
+ DropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;
17835
+ var RADIO_GROUP_NAME = "DropdownMenuRadioGroup";
17836
+ var DropdownMenuRadioGroup = React__namespace.forwardRef((props, forwardedRef) => {
17837
+ const { __scopeDropdownMenu, ...radioGroupProps } = props;
17838
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17839
+ return /* @__PURE__ */ jsxRuntime.jsx(RadioGroup$1, { ...menuScope, ...radioGroupProps, ref: forwardedRef });
17840
+ });
17841
+ DropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;
17842
+ var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
17843
+ var DropdownMenuRadioItem = React__namespace.forwardRef((props, forwardedRef) => {
17844
+ const { __scopeDropdownMenu, ...radioItemProps } = props;
17845
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17846
+ return /* @__PURE__ */ jsxRuntime.jsx(RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });
17847
+ });
17848
+ DropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;
17849
+ var INDICATOR_NAME = "DropdownMenuItemIndicator";
17850
+ var DropdownMenuItemIndicator = React__namespace.forwardRef((props, forwardedRef) => {
17851
+ const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
17852
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17853
+ return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
17854
+ });
17855
+ DropdownMenuItemIndicator.displayName = INDICATOR_NAME;
17856
+ var SEPARATOR_NAME = "DropdownMenuSeparator";
17857
+ var DropdownMenuSeparator = React__namespace.forwardRef((props, forwardedRef) => {
17858
+ const { __scopeDropdownMenu, ...separatorProps } = props;
17859
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17860
+ return /* @__PURE__ */ jsxRuntime.jsx(Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });
17861
+ });
17862
+ DropdownMenuSeparator.displayName = SEPARATOR_NAME;
17863
+ var ARROW_NAME$2 = "DropdownMenuArrow";
17864
+ var DropdownMenuArrow = React__namespace.forwardRef(
17865
+ (props, forwardedRef) => {
17866
+ const { __scopeDropdownMenu, ...arrowProps } = props;
17867
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17868
+ return /* @__PURE__ */ jsxRuntime.jsx(Arrow2$1, { ...menuScope, ...arrowProps, ref: forwardedRef });
17869
+ }
17870
+ );
17871
+ DropdownMenuArrow.displayName = ARROW_NAME$2;
17872
+ var DropdownMenuSub = (props) => {
17873
+ const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;
17874
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17875
+ const [open = false, setOpen] = useControllableState({
17876
+ prop: openProp,
17877
+ defaultProp: defaultOpen,
17878
+ onChange: onOpenChange
17879
+ });
17880
+ return /* @__PURE__ */ jsxRuntime.jsx(Sub, { ...menuScope, open, onOpenChange: setOpen, children });
17881
+ };
17882
+ var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
17883
+ var DropdownMenuSubTrigger = React__namespace.forwardRef((props, forwardedRef) => {
17884
+ const { __scopeDropdownMenu, ...subTriggerProps } = props;
17885
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17886
+ return /* @__PURE__ */ jsxRuntime.jsx(SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });
17887
+ });
17888
+ DropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;
17889
+ var SUB_CONTENT_NAME = "DropdownMenuSubContent";
17890
+ var DropdownMenuSubContent = React__namespace.forwardRef((props, forwardedRef) => {
17891
+ const { __scopeDropdownMenu, ...subContentProps } = props;
17892
+ const menuScope = useMenuScope(__scopeDropdownMenu);
17893
+ return /* @__PURE__ */ jsxRuntime.jsx(
17894
+ SubContent,
17895
+ {
17896
+ ...menuScope,
17897
+ ...subContentProps,
17898
+ ref: forwardedRef,
17899
+ style: {
17900
+ ...props.style,
17901
+ // re-namespace exposed content custom properties
17902
+ ...{
17903
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
17904
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
17905
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
17906
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
17907
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
17908
+ }
17909
+ }
17910
+ }
17911
+ );
17912
+ });
17913
+ DropdownMenuSubContent.displayName = SUB_CONTENT_NAME;
17914
+ var Root2$1 = DropdownMenu;
17915
+ var Trigger$1 = DropdownMenuTrigger;
17916
+ var Portal2 = DropdownMenuPortal;
17917
+ var Content2$1 = DropdownMenuContent;
17918
+ var Group2 = DropdownMenuGroup;
17919
+ var Label2 = DropdownMenuLabel;
17920
+ var Item2 = DropdownMenuItem;
17921
+ var CheckboxItem2 = DropdownMenuCheckboxItem;
17922
+ var RadioGroup2 = DropdownMenuRadioGroup;
17923
+ var RadioItem2 = DropdownMenuRadioItem;
17924
+ var Separator2 = DropdownMenuSeparator;
17925
+ var Sub2 = DropdownMenuSub;
17926
+ var SubTrigger2 = DropdownMenuSubTrigger;
17927
+ var SubContent2 = DropdownMenuSubContent;
17928
+
17929
+ /**
17930
+ * Contains all the parts of a dropdown menu.
17931
+ */
17932
+ var Menu = function (_a) {
17933
+ var defaultOpen = _a.defaultOpen, open = _a.open, onOpenChange = _a.onOpenChange, _b = _a.modal, modal = _b === void 0 ? false : _b, children = _a.children, props = __rest(_a, ["defaultOpen", "open", "onOpenChange", "modal", "children"]);
17934
+ return (React.createElement(Root2$1, __assign({ defaultOpen: defaultOpen, open: open, onOpenChange: onOpenChange, modal: modal }, filterAttrs(props)), children));
17935
+ };
17936
+
17937
+ var MenuItemContentTemplate = function (_a) {
17938
+ var leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, trailingIcon = _a.trailingIcon, children = _a.children;
17939
+ return (React.createElement(React.Fragment, null,
17940
+ React.createElement("div", { className: "arc-MenuItem-content" },
17941
+ leadingIcon && (React.createElement("div", { className: "arc-MenuItem-leadingIcon" },
17942
+ React.createElement(Icon$1, { icon: leadingIcon, size: 24 }))),
17943
+ React.createElement("div", { className: "arc-MenuItem-text" },
17944
+ React.createElement(Text, { size: "m" }, children),
17945
+ supportingText && React.createElement(Text, { size: "xs" }, supportingText))),
17946
+ keyCommands || trailingIcon ? (React.createElement("div", { className: "arc-MenuItem-actions" },
17947
+ keyCommands && (React.createElement("div", { className: "arc-MenuItem-keyCommands" }, keyCommands)),
17948
+ trailingIcon && (React.createElement("div", { className: "arc-MenuItem-trailingIcon" },
17949
+ React.createElement(Icon$1, { icon: trailingIcon, size: 24 }))))) : null));
17950
+ };
17951
+
17952
+ var MenuCheckboxItem = function (_a) {
17953
+ var children = _a.children, checked = _a.checked, onCheckedChange = _a.onCheckedChange, isDisabled = _a.isDisabled, onSelect = _a.onSelect, id = _a.id, _b = _a.shouldKeepOpen, shouldKeepOpen = _b === void 0 ? true : _b, props = __rest(_a, ["children", "checked", "onCheckedChange", "isDisabled", "onSelect", "id", "shouldKeepOpen"]);
17954
+ return (React.createElement(CheckboxItem2, __assign({ className: "arc-MenuItem arc-MenuCheckboxItem", checked: checked, onCheckedChange: onCheckedChange, disabled: isDisabled, onSelect: function (event) {
17955
+ if (shouldKeepOpen) {
17956
+ event.preventDefault();
17957
+ onCheckedChange === null || onCheckedChange === void 0 ? void 0 : onCheckedChange(!checked);
17958
+ }
17959
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect(event);
17960
+ }, id: id }, filterAttrs(props)),
17961
+ React.createElement("div", { className: classNames("arc-MenuCheckboxItem-box", {
17962
+ "arc-MenuCheckboxItem-box--checked": checked,
17963
+ }) }, checked && (React.createElement("svg", { style: { width: 14, height: 11 }, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
17964
+ React.createElement("path", { d: "M5.99459 14L0.350576 8.23277C0.126079 8.00285 0 7.69132 0 7.36653C0 7.04173 0.126079 6.7302 0.350576 6.50028C0.578979 6.27752 0.88258 6.15324 1.19832 6.15324C1.51405 6.15324 1.81765 6.27752 2.04606 6.50028L5.99459 10.535L15.9385 0.374054C16.0491 0.25703 16.1814 0.163688 16.3277 0.0994738C16.474 0.0352599 16.6313 0.00145997 16.7905 4.626e-05C16.9497 -0.00136745 17.1076 0.0296342 17.255 0.0912406C17.4023 0.152847 17.5362 0.243825 17.6488 0.358867C17.7614 0.473908 17.8504 0.610709 17.9107 0.761287C17.971 0.911865 18.0013 1.0732 18 1.23589C17.9986 1.39858 17.9655 1.55936 17.9026 1.70884C17.8398 1.85833 17.7485 1.99352 17.6339 2.10655L5.99459 14Z", fill: "currentColor" })))),
17965
+ React.createElement(MenuItemContentTemplate, null, children)));
17966
+ };
17967
+
17968
+ /**
17969
+ * The component that pops out when the dropdown menu is open.
17970
+ */
17971
+ var MenuContent = React.forwardRef(function (_a, ref) {
17972
+ 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, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "align", "alignOffset", "side"]);
17973
+ return (React.createElement(Content2$1, __assign({ ref: ref, style: { width: width, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 12, loop: true, collisionPadding: 12, forceMount: true, align: align, alignOffset: alignOffset, side: side }, filterAttrs(props)), children));
17974
+ });
17975
+
17976
+ /**
17977
+ * Use `Rule` to display a horizontal or vertical rule.
17978
+ */
17979
+ var Rule = function (_a, props) {
17980
+ var _b;
17981
+ var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
17982
+ var surface = React.useContext(Context$3).surface;
17983
+ return (React.createElement("hr", __assign({ className: classNames((_b = {
17984
+ "arc-Rule": true
17985
+ },
17986
+ _b["arc-Rule--".concat(orientation)] = true,
17987
+ _b["arc-Rule--onDarkSurface"] = surface === "dark",
17988
+ _b)) }, filterAttrs(props))));
17989
+ };
17990
+
17991
+ /**
17992
+ * Displays footer content at the bottom of the menu.
17993
+ */
17994
+ var MenuFooter = function (_a) {
17995
+ var leadingIcon = _a.leadingIcon, trailingIcon = _a.trailingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, children = _a.children, onClick = _a.onClick, isDisabled = _a.isDisabled, ariaLabel = _a.ariaLabel;
17996
+ return (React.createElement("div", { className: "arc-MenuFooter", style: {
17997
+ position: "relative",
17998
+ } },
17999
+ React.createElement("div", { style: {
18000
+ height: "12px",
18001
+ background: "linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))",
18002
+ position: "absolute",
18003
+ width: "100%",
18004
+ zIndex: 3,
18005
+ top: -12,
18006
+ } }),
18007
+ React.createElement("div", { className: "arc-MenuSeparator", style: { paddingTop: 0 } },
18008
+ React.createElement(Rule, null)),
18009
+ React.createElement(Item2, { className: "arc-MenuItem", "aria-label": ariaLabel, onClick: onClick, disabled: isDisabled },
18010
+ React.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, trailingIcon: trailingIcon, supportingText: supportingText, keyCommands: keyCommands }, children))));
18011
+ };
18012
+
18013
+ /**
18014
+ * Groups related menu items together within a dropdown menu.
18015
+ */
18016
+ var MenuGroup = function (_a) {
18017
+ var children = _a.children, props = __rest(_a, ["children"]);
18018
+ return (React.createElement(Group2, __assign({ className: "arc-MenuGroup" }, filterAttrs(props)), children));
18019
+ };
18020
+
18021
+ /**
18022
+ * Displays a header within the dropdown menu.
18023
+ */
18024
+ var MenuHeader = function (_a) {
18025
+ var leadingIcon = _a.leadingIcon, trailingIcon = _a.trailingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, children = _a.children, onClick = _a.onClick, isDisabled = _a.isDisabled, ariaLabel = _a.ariaLabel;
18026
+ return (React.createElement("div", { className: "arc-MenuHeader" },
18027
+ React.createElement(Item2, { className: "arc-MenuItem ", style: { marginBottom: 0 }, "aria-label": ariaLabel, onClick: onClick, disabled: isDisabled },
18028
+ React.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, trailingIcon: trailingIcon, supportingText: supportingText, keyCommands: keyCommands }, children)),
18029
+ React.createElement("div", { className: "arc-MenuSeparator", style: {
18030
+ paddingBottom: 0,
18031
+ } },
18032
+ React.createElement(Rule, null),
18033
+ React.createElement("div", { style: {
18034
+ height: "12px",
18035
+ background: "linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))",
18036
+ position: "absolute",
18037
+ width: "100%",
18038
+ zIndex: 3,
18039
+ } }))));
18040
+ };
18041
+
18042
+ /**
18043
+ * Renders a menu item, optionally as a link if `href` is provided.
18044
+ */
18045
+ var MenuItem = function (_a) {
18046
+ var leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, trailingIcon = _a.trailingIcon, children = _a.children, onClick = _a.onClick, _b = _a.shouldKeepOpen, shouldKeepOpen = _b === void 0 ? true : _b, isDisabled = _a.isDisabled, href = _a.href, ariaLabel = _a.ariaLabel, props = __rest(_a, ["leadingIcon", "supportingText", "keyCommands", "trailingIcon", "children", "onClick", "shouldKeepOpen", "isDisabled", "href", "ariaLabel"]);
18047
+ var Component = href ? "a" : "div";
18048
+ return (React.createElement(Item2, __assign({ className: "arc-MenuItem", asChild: true, "aria-label": ariaLabel, onClick: onClick, onSelect: function (event) {
18049
+ if (shouldKeepOpen) {
18050
+ event.preventDefault();
18051
+ }
18052
+ }, disabled: isDisabled }, filterAttrs(props)),
18053
+ React.createElement(Component, __assign({ className: href && "arc-MenuItem--link", href: href }, props),
18054
+ React.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, trailingIcon: trailingIcon, supportingText: supportingText, keyCommands: keyCommands }, children))));
18055
+ };
18056
+
18057
+ /**
18058
+ * Provides a label to group related menu items.
18059
+ */
18060
+ var MenuLabel = function (_a) {
18061
+ var children = _a.children, props = __rest(_a, ["children"]);
18062
+ return (React.createElement(Label2, __assign({ className: "arc-MenuLabel" }, filterAttrs(props)), children));
18063
+ };
18064
+
18065
+ /**
18066
+ * When used, portals the content part into the body. By default it's arc's theme element
18067
+ */
18068
+ var MenuPortal = function (_a) {
18069
+ var children = _a.children, props = __rest(_a, ["children"]);
18070
+ var _b = useThemeElement(), themeElement = _b[0], setThemeElement = _b[1];
18071
+ return (React.createElement("span", { ref: setThemeElement, style: { display: "none" } },
18072
+ React.createElement(Portal2, __assign({ container: themeElement }, filterAttrs(props)), children)));
18073
+ };
18074
+
18075
+ /**
18076
+ * Groups menu items allowing single selection from multiple options.
18077
+ */
18078
+ var MenuRadioGroup = function (_a) {
18079
+ var children = _a.children, value = _a.value, onValueChange = _a.onValueChange, props = __rest(_a, ["children", "value", "onValueChange"]);
18080
+ return (React.createElement(RadioGroup2, __assign({ className: "arc-MenuRadioGroup", value: value, onValueChange: onValueChange }, filterAttrs(props)), children));
18081
+ };
18082
+
18083
+ /**
18084
+ * Do not edit directly
18085
+ * Generated file
18086
+ */
18087
+
18088
+ const BtIconArrowAltUp =
18089
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M20.354 13.146 16 8.793l-4.354 4.354a.5.5 0 0 0 .707.707l3.147-3.147V22.5a.5.5 0 0 0 1 0V10.707l3.146 3.146a.5.5 0 0 0 .707-.707'/%3e%3c/svg%3e";
18090
+
18091
+ /**
18092
+ * Do not edit directly
18093
+ * Generated file
18094
+ */
18095
+
18096
+ const BtIconCross =
18097
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 27a13 13 0 1 1 13-13 13.015 13.015 0 0 1-13 13'/%3e%3cpath d='M20.854 11.146a.5.5 0 0 0-.707 0L16 15.293l-4.146-4.146a.5.5 0 0 0-.707.707L15.293 16l-4.146 4.146a.5.5 0 1 0 .707.707L16 16.707l4.146 4.146a.5.5 0 0 0 .707-.707L16.707 16l4.146-4.146a.5.5 0 0 0 0-.708'/%3e%3c/svg%3e";
18098
+
18099
+ /**
18100
+ * Do not edit directly
18101
+ * Generated file
18102
+ */
18103
+
18104
+ const BtIconCrossFill =
18105
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m4.854 18.146a.5.5 0 1 1-.707.707L16 16.707l-4.146 4.146a.5.5 0 0 1-.707-.707L15.293 16l-4.146-4.146a.5.5 0 0 1 .707-.707L16 15.293l4.146-4.146a.5.5 0 0 1 .707.707L16.707 16Z'/%3e%3c/svg%3e";
18106
+
18107
+ /**
18108
+ * Do not edit directly
18109
+ * Generated file
18110
+ */
18111
+
18112
+ const BtIconFirstMid =
18113
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='M4.675 4.005c.373 0 .675.303.675.675v6.64a.675.675 0 1 1-1.35 0V4.68c0-.372.302-.675.675-.675M7.973 8l2.848 2.852a.673.673 0 0 1-.731 1.097.7.7 0 0 1-.218-.145L6.548 8.476a.673.673 0 0 1 0-.951l3.324-3.328a.671.671 0 1 1 .95.951z' clip-rule='evenodd'/%3e%3c/svg%3e";
18114
+
18115
+ /**
18116
+ * Do not edit directly
18117
+ * Generated file
18118
+ */
18119
+
18120
+ const BtIconLastMid =
18121
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='M10.34 11.995a.675.675 0 0 1-.674-.675V4.68a.675.675 0 1 1 1.35 0v6.64a.675.675 0 0 1-.675.675M7.043 8 4.194 5.148a.673.673 0 0 1 .732-1.097.7.7 0 0 1 .218.146l3.324 3.328a.673.673 0 0 1 0 .95l-3.324 3.329a.671.671 0 1 1-.95-.952z' clip-rule='evenodd'/%3e%3c/svg%3e";
18122
+
18123
+ /**
18124
+ * Do not edit directly
18125
+ * Generated file
18126
+ */
18127
+
18128
+ const BtIconPlayFill =
18129
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M13.161 11.762a.1.1 0 0 0-.107 0 .1.1 0 0 0-.054.092v8.288a.1.1 0 0 0 .054.093.1.1 0 0 0 .107 0l7.178-4.144a.1.1 0 0 0 .054-.092.1.1 0 0 0-.054-.094Z'/%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m4.839 14.957-7.178 4.145a1.108 1.108 0 0 1-1.661-.96v-8.288a1.107 1.107 0 0 1 1.661-.958l7.178 4.144a1.107 1.107 0 0 1 0 1.917'/%3e%3c/svg%3e";
18130
+
18131
+ /**
18132
+ * Do not edit directly
18133
+ * Generated file
18134
+ */
18135
+
18136
+ const BtIconTickAlt2Px =
18137
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m13.5 21.914-4.707-4.707a1 1 0 0 1 0-1.414 1.024 1.024 0 0 1 1.414 0l3.293 3.293 8.293-8.293a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
18138
+
18139
+ /**
18140
+ * A selectable menu item used within a radio group.
18141
+ */
18142
+ var MenuRadioItem = function (_a) {
18143
+ var children = _a.children, value = _a.value, _b = _a.disabled, disabled = _b === void 0 ? false : _b, onSelect = _a.onSelect, leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, _c = _a.shouldKeepOpen, shouldKeepOpen = _c === void 0 ? true : _c, props = __rest(_a, ["children", "value", "disabled", "onSelect", "leadingIcon", "supportingText", "shouldKeepOpen"]);
18144
+ return (React.createElement(RadioItem2, __assign({ className: "arc-MenuItem arc-MenuRadioItem", value: value, disabled: disabled, onSelect: function (event) {
18145
+ if (shouldKeepOpen) {
18146
+ event.preventDefault();
16640
18147
  }
16641
- }
16642
- setMinimumHeight(undefined);
16643
- }, 100);
16644
- React.useEffect(function () {
16645
- checkMinHeight();
16646
- window.addEventListener("resize", checkMinHeight);
16647
- return function () {
16648
- window.removeEventListener("resize", checkMinHeight);
16649
- };
16650
- }, [minHeights, ArcBreakpoints]);
16651
- return (React.createElement("div", __assign({ style: { minHeight: minHeight ? minHeight : minimumHeight }, className: classNames("arc-InformationCard", {
16652
- "arc-InformationCard--isALink": cardUrl,
16653
- "arc-InformationCard--outlined": cardUrl && showHoverState,
16654
- "arc-InformationCard--onDarkSurface": surface === "dark",
16655
- }) }, filterAttrs(props)),
16656
- React.createElement(Surface, { growVertically: true, background: "light-white" },
16657
- React.createElement("div", { className: "arc-InformationCard-innerContainer" },
16658
- image && (React.createElement("div", { className: "arc-InformationCard-img" },
16659
- React.createElement(Image, __assign({ alt: "" }, image)))),
16660
- icon && (React.createElement(React.Fragment, null,
16661
- React.createElement("div", { className: "arc-InformationCard-icon" },
16662
- React.createElement(Icon$1, { testId: "information-card-icon", icon: icon })))),
16663
- React.createElement("div", { className: "arc-InformationCard-contentContainer" },
16664
- label && (React.createElement(React.Fragment, null,
16665
- React.createElement("div", { className: "arc-InformationCard-label" }, label.toUpperCase()))),
16666
- React.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
16667
- text && React.createElement(Text, null, text)),
16668
- (button || badges || footerLogo) && (React.createElement("div", { className: "arc-InformationCard-footer" },
16669
- badges && (React.createElement(React.Fragment, null,
16670
- React.createElement("div", { className: "arc-InformationCard-badgeContainer" }, badges.map(function (_a, i) {
16671
- var text = _a.text, badgeProps = __rest(_a, ["text"]);
16672
- return (React.createElement("div", { className: "arc-InformationCard-badge", key: "information-card-badge-".concat(i) },
16673
- React.createElement(Badge, __assign({}, badgeProps), text)));
16674
- })))),
16675
- React.createElement("div", { className: "arc-InformationCard-footerItems" },
16676
- button && !cardUrl && (React.createElement("div", { className: "arc-InformationCard-footerButtonContainer" },
16677
- React.createElement(ButtonV2, __assign({}, button, { size: "m", iconPosition: "beforeText", buttonStyle: "compact", icon: BtIconArrowRight })))),
16678
- footerLogo && (React.createElement("div", { className: "arc-InformationCard-footerLogoContainer" },
16679
- React.createElement(Image, __assign({}, footerLogo)))))))))));
18148
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect();
18149
+ } }, filterAttrs(props)),
18150
+ React.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, supportingText: supportingText, trailingIcon: BtIconTickAlt2Px }, children)));
16680
18151
  };
16681
18152
 
16682
- const BtIconNewWindow = (props) =>
16683
- /*#__PURE__*/ React.createElement(
16684
- "svg",
16685
- Object.assign(
16686
- {
16687
- xmlns: "http://www.w3.org/2000/svg",
16688
- viewBox: "0 0 32 32",
16689
- },
16690
- props,
16691
- ),
16692
- /*#__PURE__*/ React.createElement("defs", null),
16693
- /*#__PURE__*/ React.createElement("path", {
16694
- d: "M24.70166,7.01794a.49968.49968,0,0,0-.19092-.03845H17.50586a.5.5,0,0,0,0,1h5.79785l-8.15918,8.15918a.49995.49995,0,1,0,.707.707l8.15918-8.15918v5.77393a.5.5,0,1,0,1,0v-6.981a.50171.50171,0,0,0-.30908-.46155Z",
16695
- fill: "currentColor",
16696
- }),
16697
- /*#__PURE__*/ React.createElement("path", {
16698
- d: "M26.85156,3.99072H5.18359A1.20156,1.20156,0,0,0,3.9834,5.19141V26.89062a1.10362,1.10362,0,0,0,1.10254,1.103H26.85156a1.17979,1.17979,0,0,0,1.17871-1.17871V5.16943A1.17979,1.17979,0,0,0,26.85156,3.99072Zm.17871,22.82422a.17891.17891,0,0,1-.17871.17871H5.08594a.10419.10419,0,0,1-.10254-.103V5.19141a.20069.20069,0,0,1,.20019-.20069h21.668a.17888.17888,0,0,1,.17871.17871Z",
16699
- fill: "currentColor",
16700
- }),
16701
- );
16702
-
16703
18153
  /**
16704
- * Use `Link` to direct users to a new page or piece of information.
18154
+ * Scrollable container that adjusts height based on surrounding menu content.
16705
18155
  */
16706
- var Link = function (_a) {
16707
- var id = _a.id, href = _a.href, title = _a.title, rel = _a.rel, target = _a.target, children = _a.children, onClick = _a.onClick, screenReaderText = _a.screenReaderText, _b = _a.isButton, isButton = _b === void 0 ? false : _b, _c = _a.isImplied, isImplied = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, props = __rest(_a, ["id", "href", "title", "rel", "target", "children", "onClick", "screenReaderText", "isButton", "isImplied", "size"]);
16708
- var surface = React.useContext(Context$3).surface;
16709
- var isExternalLink = target === "_blank";
16710
- var textArray = children.split(" ");
16711
- var firstText = textArray.slice(0, -1).join(" ");
16712
- var lastWord = textArray[textArray.length - 1];
16713
- var commonProps = {
16714
- id: id,
16715
- onClick: onClick,
16716
- className: classNames("arc-Link", "arc-Link--".concat(size), {
16717
- "arc-Link--onDarkSurface": surface === "dark",
16718
- "arc-Link--onLightSurface": surface !== "dark",
16719
- "arc-Link--isImplied": isImplied,
16720
- }),
16721
- };
16722
- var elementProps = {
16723
- a: __assign(__assign({}, commonProps), { href: href, title: title, target: target, rel: rel }),
16724
- button: __assign({}, commonProps),
16725
- span: __assign({}, commonProps),
18156
+ var MenuScrollable = function (_a) {
18157
+ var children = _a.children;
18158
+ var scrollableRefFunc = function (el) {
18159
+ var totalSiblingHeight = 0;
18160
+ // get the closest Menu.Content element this will always exist within the menu component
18161
+ var contentContainer = el === null || el === void 0 ? void 0 : el.closest(".arc-MenuContent");
18162
+ if (!contentContainer || !el)
18163
+ return;
18164
+ // loop over all children in Menu.Content children to get height of each non scrollable element (excluding the scroll element itself)
18165
+ Array.from(contentContainer.children).forEach(function (child) {
18166
+ if (child !== el) {
18167
+ totalSiblingHeight += child.offsetHeight + 6;
18168
+ }
18169
+ });
18170
+ var availableHeight = "calc(var(--radix-dropdown-menu-content-available-height) - ".concat(totalSiblingHeight, "px - 25px)");
18171
+ el.style.height = "".concat(el.scrollHeight, "px");
18172
+ el.style.maxHeight = availableHeight;
16726
18173
  };
16727
- var LinkElement = isButton ? "button" : href ? "a" : "span";
16728
- return (React.createElement(LinkElement, __assign({}, elementProps[LinkElement], filterAttrs(props)),
16729
- React.createElement("div", { className: "arc-Link-wrapper" },
16730
- React.createElement(VisuallyHidden$2, null,
16731
- screenReaderText || children,
16732
- isExternalLink && " (Opens in new window)"),
16733
- firstText && (React.createElement("span", { "aria-hidden": true, className: "arc-Link-text" },
16734
- firstText,
16735
- "\u00A0")),
16736
- React.createElement("span", { className: "arc-Link-iconWrapper" },
16737
- React.createElement("span", { "aria-hidden": true, className: "arc-Link-text" }, lastWord),
16738
- isExternalLink && (React.createElement(Icon$1, { isPresentationIcon: true, icon: BtIconNewWindow, size: size === "s" ? 20 : 24 }))))));
18174
+ return (React.createElement("div", { ref: scrollableRefFunc, className: "arc-MenuScrollable" }, children));
16739
18175
  };
16740
18176
 
16741
18177
  /**
16742
- * Use `Markup` to display HTML-formatted text.
18178
+ * Visual separator used to divide groups of menu items.
16743
18179
  */
16744
- var Markup = function (_a) {
16745
- var children = _a.children, _b = _a.isMeasured, isMeasured = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isMeasured"]);
16746
- var surface = React.useContext(Context$3).surface;
16747
- return (React.createElement("div", __assign({ className: classNames({
16748
- "arc-Markup": true,
16749
- "arc-Markup--measured": isMeasured,
16750
- "arc-Markup--onDarkSurface": surface === "dark",
16751
- }) }, filterAttrs(props)), children));
18180
+ var MenuSeparator = function (props) {
18181
+ return (React.createElement(Separator2, __assign({ className: "arc-MenuSeparator" }, filterAttrs(props)),
18182
+ React.createElement(Rule, null)));
16752
18183
  };
16753
18184
 
16754
- var VideoPlayer$1 = React.lazy(function () {
16755
- return Promise.resolve().then(function () { return index; }).then(function (_a) {
16756
- var VideoPlayer = _a.VideoPlayer;
16757
- return ({
16758
- default: VideoPlayer,
16759
- });
16760
- });
18185
+ /**
18186
+ * Container for submenu content within a dropdown menu.
18187
+ */
18188
+ var MenuSub = function (_a) {
18189
+ var children = _a.children, props = __rest(_a, ["children"]);
18190
+ return React.createElement(Sub2, __assign({}, filterAttrs(props)),
18191
+ " ",
18192
+ children);
18193
+ };
18194
+
18195
+ /**
18196
+ * The submenu content that pops out when a menu item with children is hovered or clicked.
18197
+ */
18198
+ var MenuSubContent = React.forwardRef(function (_a, ref) {
18199
+ var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "alignOffset"]);
18200
+ return (React.createElement(SubContent2, __assign({ ref: ref, style: { width: width, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent arc-MenuSubContent", sideOffset: 24, collisionPadding: 12, avoidCollisions: true, alignOffset: alignOffset }, filterAttrs(props)), children));
16761
18201
  });
18202
+
16762
18203
  /**
16763
- * Use `MediaCard` to contain content and an image about a single subject.
18204
+ * Trigger element that opens a submenu when selected.
16764
18205
  */
16765
- var MediaCard = function (_a) {
16766
- var media = _a.media, url = _a.url, onClick = _a.onClick, heading = _a.heading, label = _a.label, text = _a.text, metaText = _a.metaText, minHeight = _a.minHeight, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.isContained, isContained = _c === void 0 ? true : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, props = __rest(_a, ["media", "url", "onClick", "heading", "label", "text", "metaText", "minHeight", "buttonIcon", "isContained", "headingLevel"]);
16767
- var surface = React.useContext(Context$3).surface;
16768
- var _e = React.useState(false), isClient = _e[0], setIsClient = _e[1];
16769
- var _f = React.useState(false), showHoverState = _f[0], setShowHoverState = _f[1];
16770
- var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
16771
- var headingSpacing = isMinWidthArcBreakpointS ? "16" : "8";
16772
- var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
16773
- React.useEffect(function () {
16774
- setIsClient(true);
16775
- }, []);
16776
- return (React.createElement("div", __assign({ style: { minHeight: minHeight }, className: classNames("arc-MediaCard", {
16777
- "arc-MediaCard--outlined": url && isContained && showHoverState,
16778
- "arc-MediaCard--contained": isContained,
16779
- "arc-MediaCard--onDarkSurface": surface === "dark",
16780
- }) }, filterAttrs(props)),
16781
- React.createElement(ConditionalWrapper, { condition: isContained, wrapper: function (children) { return (React.createElement(Surface, { growVertically: true, background: "light-white" }, children)); } },
16782
- media.type === "img" && (React.createElement("div", { className: "arc-MediaCard-imgContainer" },
16783
- React.createElement(Image, __assign({}, media)))),
16784
- media.type === "video" && isClient && (React.createElement(React.Suspense, { fallback: null },
16785
- React.createElement(VideoPlayer$1, __assign({ isSupportingTextHidden: true }, media)))),
16786
- React.createElement("div", { className: "arc-MediaCard-content" },
16787
- label && (React.createElement(React.Fragment, null,
16788
- React.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
16789
- React.createElement(VerticalSpace, { size: headingSpacing }))),
16790
- React.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) }),
16791
- React.createElement("div", { className: "arc-MediaCard-textContainer" }, text && (React.createElement(React.Fragment, null,
16792
- React.createElement(VerticalSpace, { size: headingSpacing }),
16793
- React.createElement(Text, null, text),
16794
- (url || metaText) && React.createElement(VerticalSpace, { size: "24" })))),
16795
- React.createElement(CardFooter, { buttonIcon: buttonIcon, metaText: metaText, showButton: Boolean(url) && media.type !== "video", isHovered: showHoverState })))));
18206
+ var MenuSubTrigger = function (_a) {
18207
+ var children = _a.children, isDisabled = _a.isDisabled, leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, ariaLabel = _a.ariaLabel, props = __rest(_a, ["children", "isDisabled", "leadingIcon", "supportingText", "keyCommands", "ariaLabel"]);
18208
+ return (React.createElement(SubTrigger2, __assign({ className: "arc-MenuItem arc-MenuItem--trigger", disabled: isDisabled, "aria-label": ariaLabel }, filterAttrs(props)),
18209
+ React.createElement("div", { className: "arc-MenuItem-content" },
18210
+ leadingIcon && (React.createElement("div", { className: "arc-MenuItem-leadingIcon" },
18211
+ React.createElement(Icon$1, { icon: leadingIcon, size: 24 }))),
18212
+ React.createElement("div", { className: "arc-MenuItem-text" },
18213
+ React.createElement(Text, { size: "m" }, children),
18214
+ supportingText && React.createElement(Text, { size: "xs" }, supportingText))),
18215
+ React.createElement("div", { className: "arc-MenuItem-actions" },
18216
+ keyCommands && (React.createElement("div", { className: "arc-MenuItem-keyCommands" }, keyCommands)),
18217
+ React.createElement("div", { className: "arc-MenuItem-trailingIcon" },
18218
+ React.createElement(Icon$1, { icon: BtIconChevronRightMid, size: 24 })))));
18219
+ };
18220
+
18221
+ /**
18222
+ * The element that toggles the menu.
18223
+ */
18224
+ var MenuTrigger = function (_a) {
18225
+ var children = _a.children, asChild = _a.asChild, props = __rest(_a, ["children", "asChild"]);
18226
+ return (React.createElement(Trigger$1, __assign({ className: ".arc-MenuItem arc-MenuTrigger", asChild: asChild }, filterAttrs(props)), children));
16796
18227
  };
16797
18228
 
16798
18229
  /** Use `Modal` to display information that needs immediate action from a user. */
16799
18230
  var Modal = function (_a) {
16800
- var title = _a.title, description = _a.description, ariaDescribedBy = _a.ariaDescribedBy, isOpen = _a.isOpen, actions = _a.actions, onRequestClose = _a.onRequestClose, children = _a.children, _b = _a.role, role = _b === void 0 ? "dialog" : _b, _c = _a.shouldReturnFocus, shouldReturnFocus = _c === void 0 ? true : _c, _d = _a.isContentScrollable, isContentScrollable = _d === void 0 ? false : _d, _e = _a.size, size = _e === void 0 ? "l" : _e, _f = _a.fullBleed, fullBleed = _f === void 0 ? false : _f, customWidth = _a.customWidth, props = __rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size", "fullBleed", "customWidth"]);
16801
- var _g = useThemeElement(), themeElement = _g[0], setThemeElement = _g[1];
18231
+ var _b;
18232
+ 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"]);
18233
+ var _h = useThemeElement(), themeElement = _h[0], setThemeElement = _h[1];
16802
18234
  var triggerRef = React.useRef(null);
16803
18235
  var setTriggerElement = function () {
16804
18236
  return shouldReturnFocus &&
@@ -16817,13 +18249,18 @@ var Modal = function (_a) {
16817
18249
  }
16818
18250
  };
16819
18251
  return (React.createElement("div", { ref: setThemeElement },
16820
- React.createElement(Root$2, { open: isOpen },
16821
- React.createElement(Portal$2, { container: themeElement },
18252
+ React.createElement(Root$3, { open: isOpen },
18253
+ React.createElement(Portal$3, { container: themeElement },
16822
18254
  React.createElement(Overlay, { className: "arc-Modal-overlay" },
16823
- React.createElement(Content$1, __assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, "aria-modal": "true", className: classNames("arc-Modal-dialog", "arc-Modal-dialog--".concat(size), {
16824
- "arc-Modal-dialog--maxHeightWindow": isContentScrollable,
16825
- "arc-Modal-dialog--fullBleed": fullBleed,
16826
- }) }, filterAttrs(props), { style: { maxWidth: customWidth } }),
18255
+ React.createElement(Content$1, __assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, "aria-modal": "true", className: classNames("arc-Modal-dialog", (_b = {},
18256
+ _b["arc-Modal-dialog--".concat(size)] = !customWidths,
18257
+ _b["arc-Modal-dialog--xs-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.xs)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.xs,
18258
+ _b["arc-Modal-dialog--s-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.s)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.s,
18259
+ _b["arc-Modal-dialog--m-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.m)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.m,
18260
+ _b["arc-Modal-dialog--l-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.l)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.l,
18261
+ _b["arc-Modal-dialog--maxHeightWindow"] = isContentScrollable,
18262
+ _b["arc-Modal-dialog--fullBleed"] = fullBleed,
18263
+ _b)) }, filterAttrs(props)),
16827
18264
  React.createElement(React.Fragment, null,
16828
18265
  title && (React.createElement(React.Fragment, null,
16829
18266
  React.createElement("div", { className: "arc-Modal-section" },
@@ -16886,56 +18323,6 @@ var Pagination = function (_a) {
16886
18323
  React.createElement(ThemeIcon, { size: 32, icon: "paginationNext" })))));
16887
18324
  };
16888
18325
 
16889
- const BtIconFirstMid = (props) =>
16890
- /*#__PURE__*/ React.createElement(
16891
- "svg",
16892
- Object.assign(
16893
- {
16894
- viewBox: "0 0 16 16",
16895
- fill: "none",
16896
- xmlns: "http://www.w3.org/2000/svg",
16897
- },
16898
- props,
16899
- ),
16900
- /*#__PURE__*/ React.createElement("path", {
16901
- fillRule: "evenodd",
16902
- clipRule: "evenodd",
16903
- d: "M4.675 4.00537C5.04779 4.00537 5.35 4.30758 5.35 4.68037V11.3204C5.35 11.6932 5.04779 11.9954 4.675 11.9954C4.30221 11.9954 4 11.6932 4 11.3204V4.68037C4 4.30758 4.30221 4.00537 4.675 4.00537Z",
16904
- fill: "currentColor",
16905
- }),
16906
- /*#__PURE__*/ React.createElement("path", {
16907
- fillRule: "evenodd",
16908
- clipRule: "evenodd",
16909
- d: "M7.97265 8.0002L10.8213 10.8522C10.9473 10.9785 11.0181 11.1495 11.0181 11.3279C11.0181 11.5063 10.9473 11.6773 10.8213 11.8036C10.759 11.866 10.6851 11.9155 10.6036 11.9493C10.5222 11.983 10.4349 12.0004 10.3467 12.0004C10.2585 12.0004 10.1712 11.983 10.0897 11.9493C10.0083 11.9155 9.93428 11.866 9.87199 11.8036L6.54799 8.47553C6.42219 8.34932 6.35156 8.17839 6.35156 8.0002C6.35156 7.822 6.42219 7.65107 6.54799 7.52486L9.87199 4.19686C9.93428 4.13446 10.0083 4.08495 10.0897 4.05117C10.1712 4.01738 10.2585 4 10.3467 4C10.4348 4 10.5222 4.01738 10.6036 4.05117C10.6851 4.08495 10.759 4.13446 10.8213 4.19686C10.9473 4.3231 11.0181 4.49417 11.0181 4.67253C11.0181 4.85089 10.9473 5.02196 10.8213 5.1482L7.97265 8.0002Z",
16910
- fill: "currentColor",
16911
- }),
16912
- );
16913
-
16914
- const BtIconLastMid = (props) =>
16915
- /*#__PURE__*/ React.createElement(
16916
- "svg",
16917
- Object.assign(
16918
- {
16919
- viewBox: "0 0 16 16",
16920
- fill: "none",
16921
- xmlns: "http://www.w3.org/2000/svg",
16922
- },
16923
- props,
16924
- ),
16925
- /*#__PURE__*/ React.createElement("path", {
16926
- fillRule: "evenodd",
16927
- clipRule: "evenodd",
16928
- d: "M10.3406 11.9951C9.96783 11.9951 9.66562 11.6929 9.66562 11.3201V4.68012C9.66562 4.30732 9.96783 4.00512 10.3406 4.00512C10.7134 4.00512 11.0156 4.30732 11.0156 4.68012L11.0156 11.3201C11.0156 11.6929 10.7134 11.9951 10.3406 11.9951Z",
16929
- fill: "currentColor",
16930
- }),
16931
- /*#__PURE__*/ React.createElement("path", {
16932
- fillRule: "evenodd",
16933
- clipRule: "evenodd",
16934
- d: "M7.04297 8.00029L4.19434 5.14832C4.06834 5.02202 3.99754 4.85102 3.99754 4.67262C3.99754 4.49422 4.06834 4.32322 4.19434 4.19692C4.25664 4.13452 4.33054 4.08502 4.41204 4.05122C4.49344 4.01752 4.58074 4.00012 4.66897 4.00012C4.75714 4.00012 4.84445 4.01752 4.9259 4.05122C5.00735 4.08502 5.08134 4.13452 5.14363 4.19692L8.46763 7.52496C8.59343 7.65117 8.66406 7.8221 8.66406 8.00029C8.66406 8.17849 8.59343 8.34942 8.46763 8.47563L5.14363 11.8036C5.08134 11.866 5.00735 11.9155 4.9259 11.9493C4.84445 11.9831 4.75714 12.0005 4.66897 12.0005C4.58084 12.0005 4.49344 11.9831 4.41204 11.9493C4.33054 11.9155 4.25664 11.866 4.19434 11.8036C4.06834 11.6774 3.99754 11.5063 3.99754 11.328C3.99754 11.1496 4.06834 10.9785 4.19434 10.8523L7.04297 8.00029Z",
16935
- fill: "currentColor",
16936
- }),
16937
- );
16938
-
16939
18326
  /**
16940
18327
  * TODO! Revise method of aligning svg's
16941
18328
  */
@@ -16985,18 +18372,18 @@ var Popover = function (_a) {
16985
18372
  var align = _a.align, _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, onCloseAutoFocus = _a.onCloseAutoFocus, onEscapeKeyDown = _a.onEscapeKeyDown, onFocusOutside = _a.onFocusOutside, onInteractOutside = _a.onInteractOutside, onOpenAutoFocus = _a.onOpenAutoFocus, onPointerDownOutside = _a.onPointerDownOutside, onOpenChange = _a.onOpenChange, open = _a.open, side = _a.side, _f = _a.sideOffset, sideOffset = _f === void 0 ? 0 : _f, _g = _a.zIndex, zIndex = _g === void 0 ? 100 : _g, props = __rest(_a, ["align", "arrow", "background", "children", "content", "asChild", "maxWidth", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onInteractOutside", "onOpenAutoFocus", "onPointerDownOutside", "onOpenChange", "open", "side", "sideOffset", "zIndex"]);
16986
18373
  var _h = useThemeElement(), themeElement = _h[0], setThemeElement = _h[1];
16987
18374
  return (React.createElement("div", __assign({ className: "arc-Popover" }, filterAttrs(props)),
16988
- React.createElement(Root2$2, { open: open, onOpenChange: onOpenChange },
16989
- React.createElement(Trigger$2, { asChild: asChild, className: "arc-Popover-trigger" }, children),
18375
+ React.createElement(Root2$3, { open: open, onOpenChange: onOpenChange },
18376
+ React.createElement(Trigger$3, { asChild: asChild, className: "arc-Popover-trigger" }, children),
16990
18377
  React.createElement("div", { ref: setThemeElement },
16991
- React.createElement(Portal$4, { container: themeElement },
18378
+ React.createElement(Portal$5, { container: themeElement },
16992
18379
  React.createElement("div", { "data-cy": "z-index", style: { position: "absolute", zIndex: zIndex } },
16993
- React.createElement(Content2$2, { asChild: true, side: side, sideOffset: sideOffset, align: align, alignOffset: align === "start" ? -16 : align === "end" ? -16 : undefined, onOpenAutoFocus: onOpenAutoFocus, onCloseAutoFocus: onCloseAutoFocus, onEscapeKeyDown: onEscapeKeyDown, onPointerDownOutside: onPointerDownOutside, onFocusOutside: onFocusOutside, onInteractOutside: onInteractOutside },
18380
+ React.createElement(Content2$4, { side: side, sideOffset: sideOffset, align: align, alignOffset: align === "start" ? -16 : align === "end" ? -16 : undefined, onOpenAutoFocus: onOpenAutoFocus, onCloseAutoFocus: onCloseAutoFocus, onEscapeKeyDown: onEscapeKeyDown, onPointerDownOutside: onPointerDownOutside, onFocusOutside: onFocusOutside, onInteractOutside: onInteractOutside },
16994
18381
  React.createElement(Surface, { isTransparent: true, background: background === "light" ? "light-white" : "dark-black" },
16995
18382
  React.createElement("div", { className: classNames("arc-Popover-content", {
16996
18383
  "arc-Popover-content--dark": background === "dark",
16997
18384
  "arc-Popover-content--brand": background === "brand",
16998
- }), style: { maxWidth: maxWidth } },
16999
- content && (React.createElement("div", { className: "arc-Popover-contentNodeItem" }, content)),
18385
+ }), style: { maxWidth: maxWidth }, "aria-labelledby": "popover-content" },
18386
+ content && (React.createElement("div", { className: "arc-Popover-contentNodeItem", id: "popover-content" }, content)),
17000
18387
  arrow && (React.createElement(PopoverArrow, { className: "arc-Popover-arrow" })))))))))));
17001
18388
  };
17002
18389
 
@@ -17081,36 +18468,151 @@ var ProgressBar = function (_a) {
17081
18468
  React.createElement(ThemeIcon, { icon: PROGRESS_BAR_ICON_MAP[action.icon], size: 24 }))))))))));
17082
18469
  };
17083
18470
 
18471
+ var shorterCssColorNames;
18472
+ var hasRequiredShorterCssColorNames;
18473
+
18474
+ function requireShorterCssColorNames () {
18475
+ if (hasRequiredShorterCssColorNames) return shorterCssColorNames;
18476
+ hasRequiredShorterCssColorNames = 1;
18477
+ shorterCssColorNames = {
18478
+ aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
18479
+ azure: /#f0ffff(ff)?(?!\w)/gi,
18480
+ beige: /#f5f5dc(ff)?(?!\w)/gi,
18481
+ bisque: /#ffe4c4(ff)?(?!\w)/gi,
18482
+ black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
18483
+ blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
18484
+ brown: /#a52a2a(ff)?(?!\w)/gi,
18485
+ coral: /#ff7f50(ff)?(?!\w)/gi,
18486
+ cornsilk: /#fff8dc(ff)?(?!\w)/gi,
18487
+ crimson: /#dc143c(ff)?(?!\w)/gi,
18488
+ cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
18489
+ darkblue: /#00008b(ff)?(?!\w)/gi,
18490
+ darkcyan: /#008b8b(ff)?(?!\w)/gi,
18491
+ darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
18492
+ darkred: /#8b0000(ff)?(?!\w)/gi,
18493
+ deeppink: /#ff1493(ff)?(?!\w)/gi,
18494
+ dimgrey: /#696969(ff)?(?!\w)/gi,
18495
+ gold: /#ffd700(ff)?(?!\w)/gi,
18496
+ green: /#008000(ff)?(?!\w)/gi,
18497
+ grey: /#808080(ff)?(?!\w)/gi,
18498
+ honeydew: /#f0fff0(ff)?(?!\w)/gi,
18499
+ hotpink: /#ff69b4(ff)?(?!\w)/gi,
18500
+ indigo: /#4b0082(ff)?(?!\w)/gi,
18501
+ ivory: /#fffff0(ff)?(?!\w)/gi,
18502
+ khaki: /#f0e68c(ff)?(?!\w)/gi,
18503
+ lavender: /#e6e6fa(ff)?(?!\w)/gi,
18504
+ lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
18505
+ linen: /#faf0e6(ff)?(?!\w)/gi,
18506
+ maroon: /#800000(ff)?(?!\w)/gi,
18507
+ moccasin: /#ffe4b5(ff)?(?!\w)/gi,
18508
+ navy: /#000080(ff)?(?!\w)/gi,
18509
+ oldlace: /#fdf5e6(ff)?(?!\w)/gi,
18510
+ olive: /#808000(ff)?(?!\w)/gi,
18511
+ orange: /#ffa500(ff)?(?!\w)/gi,
18512
+ orchid: /#da70d6(ff)?(?!\w)/gi,
18513
+ peru: /#cd853f(ff)?(?!\w)/gi,
18514
+ pink: /#ffc0cb(ff)?(?!\w)/gi,
18515
+ plum: /#dda0dd(ff)?(?!\w)/gi,
18516
+ purple: /#800080(ff)?(?!\w)/gi,
18517
+ red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
18518
+ salmon: /#fa8072(ff)?(?!\w)/gi,
18519
+ seagreen: /#2e8b57(ff)?(?!\w)/gi,
18520
+ seashell: /#fff5ee(ff)?(?!\w)/gi,
18521
+ sienna: /#a0522d(ff)?(?!\w)/gi,
18522
+ silver: /#c0c0c0(ff)?(?!\w)/gi,
18523
+ skyblue: /#87ceeb(ff)?(?!\w)/gi,
18524
+ snow: /#fffafa(ff)?(?!\w)/gi,
18525
+ tan: /#d2b48c(ff)?(?!\w)/gi,
18526
+ teal: /#008080(ff)?(?!\w)/gi,
18527
+ thistle: /#d8bfd8(ff)?(?!\w)/gi,
18528
+ tomato: /#ff6347(ff)?(?!\w)/gi,
18529
+ violet: /#ee82ee(ff)?(?!\w)/gi,
18530
+ wheat: /#f5deb3(ff)?(?!\w)/gi,
18531
+ white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi,
18532
+ };
18533
+ return shorterCssColorNames;
18534
+ }
18535
+
18536
+ var miniSvgDataUri;
18537
+ var hasRequiredMiniSvgDataUri;
18538
+
18539
+ function requireMiniSvgDataUri () {
18540
+ if (hasRequiredMiniSvgDataUri) return miniSvgDataUri;
18541
+ hasRequiredMiniSvgDataUri = 1;
18542
+ var shorterNames = requireShorterCssColorNames();
18543
+ var REGEX = {
18544
+ whitespace: /\s+/g,
18545
+ urlHexPairs: /%[\dA-F]{2}/g,
18546
+ quotes: /"/g,
18547
+ };
18548
+
18549
+ function collapseWhitespace(str) {
18550
+ return str.trim().replace(REGEX.whitespace, ' ');
18551
+ }
18552
+
18553
+ function dataURIPayload(string) {
18554
+ return encodeURIComponent(string)
18555
+ .replace(REGEX.urlHexPairs, specialHexEncode);
18556
+ }
18557
+
18558
+ // `#` gets converted to `%23`, so quite a few CSS named colors are shorter than
18559
+ // their equivalent URL-encoded hex codes.
18560
+ function colorCodeToShorterNames(string) {
18561
+ Object.keys(shorterNames).forEach(function(key) {
18562
+ if (shorterNames[key].test(string)) {
18563
+ string = string.replace(shorterNames[key], key);
18564
+ }
18565
+ });
18566
+
18567
+ return string;
18568
+ }
18569
+
18570
+ function specialHexEncode(match) {
18571
+ switch (match) { // Browsers tolerate these characters, and they're frequent
18572
+ case '%20': return ' ';
18573
+ case '%3D': return '=';
18574
+ case '%3A': return ':';
18575
+ case '%2F': return '/';
18576
+ default: return match.toLowerCase(); // compresses better
18577
+ }
18578
+ }
18579
+
18580
+ function svgToTinyDataUri(svgString) {
18581
+ if (typeof svgString !== 'string') {
18582
+ throw new TypeError('Expected a string, but received ' + typeof svgString);
18583
+ }
18584
+ // Strip the Byte-Order Mark if the SVG has one
18585
+ if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1); }
18586
+
18587
+ var body = colorCodeToShorterNames(collapseWhitespace(svgString))
18588
+ .replace(REGEX.quotes, "'");
18589
+ return 'data:image/svg+xml,' + dataURIPayload(body);
18590
+ }
18591
+
18592
+ svgToTinyDataUri.toSrcset = function toSrcset(svgString) {
18593
+ return svgToTinyDataUri(svgString).replace(/ /g, '%20');
18594
+ };
18595
+
18596
+ miniSvgDataUri = svgToTinyDataUri;
18597
+ return miniSvgDataUri;
18598
+ }
18599
+
18600
+ var miniSvgDataUriExports = requireMiniSvgDataUri();
18601
+ var svgToMiniDataURI = /*@__PURE__*/getDefaultExportFromCjs(miniSvgDataUriExports);
18602
+
17084
18603
  // src/capitalise-first-letter/capitalise-first-letter.ts
17085
18604
  var capitaliseFirstLetter = (word) => {
17086
18605
  return word.charAt(0).toUpperCase() + word.slice(1);
17087
18606
  };
17088
18607
 
17089
- var Error$1 = function () { return (React.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
17090
- React.createElement("g", { clipPath: "url(#a)" },
17091
- React.createElement("path", { 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", fill: "currentColor" })),
17092
- React.createElement("defs", null,
17093
- React.createElement("clipPath", { id: "a" },
17094
- React.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
18608
+ 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 ";
17095
18609
 
17096
- var Warning = function () { return (React.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
17097
- React.createElement("path", { 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", fill: "currentColor", stroke: "currentColor", strokeWidth: ".3" }))); };
18610
+ 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";
17098
18611
 
17099
- var Complete = function () { return (React.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
17100
- React.createElement("g", { clipPath: "url(#a)" },
17101
- React.createElement("path", { d: "m10.125 16.435-3.53-3.53a.75.75 0 0 1 0-1.06.768.768 0 0 1 1.06 0l2.47 2.47 6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.28 7.28Z", fill: "currentColor" })),
17102
- React.createElement("defs", null,
17103
- React.createElement("clipPath", null,
17104
- React.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
18612
+ var Complete = "\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=\"m10.125 16.435-3.53-3.53a.75.75 0 0 1 0-1.06.768.768 0 0 1 1.06 0l2.47 2.47 6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.28 7.28Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath>\n <rect width=\"24\" height=\"24\" rx=\"12\" />\n </clipPath>\n </defs>\n </svg>\n ";
17105
18613
 
17106
- var Current = function () { return (React.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
17107
- React.createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
17108
- React.createElement("defs", null,
17109
- React.createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
17110
- React.createElement("stop", { stopColor: "#F200F5" }),
17111
- React.createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
18614
+ var Current = "\n <svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"currentColor\" />\n <defs>\n <linearGradient\n id=\"paint0_linear_1_1050\"\n x1=\"36.6036\"\n y1=\"-4.31391e-07\"\n x2=\"-12.6036\"\n y2=\"24\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"#F200F5\" />\n <stop offset=\"1\" stopColor=\"#1EC8E6\" />\n </linearGradient>\n </defs>\n </svg>\n ";
17112
18615
 
17113
- // export current step as an icon
17114
18616
  var ProgressStepperItem = function (_a) {
17115
18617
  var _b;
17116
18618
  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"]);
@@ -17125,6 +18627,7 @@ var ProgressStepperItem = function (_a) {
17125
18627
  event.preventDefault();
17126
18628
  onClick && onClick();
17127
18629
  };
18630
+ var statusIcon = statusIcons[status];
17128
18631
  return (React.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
17129
18632
  "arc-ProgressStepperItem--vertical": direction === "vertical",
17130
18633
  "arc-ProgressStepperItem--isFluid": isFluid && direction !== "vertical",
@@ -17137,7 +18640,7 @@ var ProgressStepperItem = function (_a) {
17137
18640
  React.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
17138
18641
  React.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
17139
18642
  "arc-ProgressStepperItem-statusIcon--small": size === "small",
17140
- }) }, status === "todo" ? null : status === "current" ? (React.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React.createElement(Icon$1, { icon: statusIcons[status] }))))),
18643
+ }) }, status === "todo" ? null : status === "current" ? (React.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React.createElement(Icon$1, { icon: statusIcon && svgToMiniDataURI(statusIcon) }))))),
17141
18644
  React.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
17142
18645
  titleHref || onClick ? (React.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler },
17143
18646
  title,
@@ -17291,38 +18794,6 @@ var RadioGroupInput = React.forwardRef(function (_a, ref) {
17291
18794
  return (React.createElement(RadioGroupButton, __assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled, labelSize: labelSize, size: size, radioButtonAlignment: radioButtonAlignment, label: label, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, blurEvent: blurEvent, value: value }, props)));
17292
18795
  });
17293
18796
 
17294
- /**
17295
- * Use `Rule` to display a horizontal or vertical rule.
17296
- */
17297
- var Rule = function (_a, props) {
17298
- var _b;
17299
- var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
17300
- var surface = React.useContext(Context$3).surface;
17301
- return (React.createElement("hr", __assign({ className: classNames((_b = {
17302
- "arc-Rule": true
17303
- },
17304
- _b["arc-Rule--".concat(orientation)] = true,
17305
- _b["arc-Rule--onDarkSurface"] = surface === "dark",
17306
- _b)) }, filterAttrs(props))));
17307
- };
17308
-
17309
- const BtIconArrowAltUp = (props) =>
17310
- /*#__PURE__*/ React.createElement(
17311
- "svg",
17312
- Object.assign(
17313
- {
17314
- xmlns: "http://www.w3.org/2000/svg",
17315
- viewBox: "0 0 32 32",
17316
- },
17317
- props,
17318
- ),
17319
- /*#__PURE__*/ React.createElement("defs", null),
17320
- /*#__PURE__*/ React.createElement("path", {
17321
- d: "M20.35352,13.14648,16,8.793l-4.35352,4.35352a.49995.49995,0,0,0,.707.707L15.5,10.707V22.5a.5.5,0,0,0,1,0V10.707l3.14648,3.14648a.49995.49995,0,0,0,.707-.707Z",
17322
- fill: "currentColor",
17323
- }),
17324
- );
17325
-
17326
18797
  /**
17327
18798
  * Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
17328
18799
  */
@@ -17399,9 +18870,9 @@ var Select = function (_a) {
17399
18870
  }
17400
18871
  };
17401
18872
  return (React.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", isDisabled: isDisabled, disclosureText: disclosureText, disclosureTitle: disclosureTitle, onClickDisclosure: onClickDisclosure },
17402
- React.createElement(Root2$1, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value: selectValue, open: open, onOpenChange: onOpenChange, onValueChange: function (value) { return onValueChange(value); } },
18873
+ React.createElement(Root2$2, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value: selectValue, open: open, onOpenChange: onOpenChange, onValueChange: function (value) { return onValueChange(value); } },
17403
18874
  React.createElement("div", { ref: setThemeElement, className: "arc-Select-wrapper" },
17404
- React.createElement(Trigger$1, __assign({ id: id, name: name, onBlur: onBlur, onFocus: onFocus, "aria-label": ariaLabel, style: { width: width, marginTop: hideLabel ? 0 : undefined }, className: classNames("arc-Select-trigger", (_b = {
18875
+ React.createElement(Trigger$2, __assign({ id: id, name: name, onBlur: onBlur, onFocus: onFocus, "aria-label": ariaLabel, style: { width: width, marginTop: hideLabel ? 0 : undefined }, className: classNames("arc-Select-trigger", (_b = {
17405
18876
  "arc-Select-trigger--constrained": !isFluid,
17406
18877
  "arc-Select-trigger--onDarkSurface": surface === "dark",
17407
18878
  "arc-Select-trigger--invalid": errorMessage
@@ -17411,19 +18882,19 @@ var Select = function (_a) {
17411
18882
  React.createElement(Value, { className: "arc-Select-triggerText", placeholder: placeholder, "aria-label": getSelectedValueName(uncontrolledValue) }),
17412
18883
  React.createElement(Icon, { className: "arc-Select-triggerIcon" },
17413
18884
  React.createElement(ThemeIcon, { size: getIconSize(selectSize), icon: "selectTrigger" }))),
17414
- React.createElement(Portal$3, { container: themeElement },
17415
- React.createElement(Content2$1, { sideOffset: 5, position: "popper", className: classNames("arc-Select-content", {
18885
+ React.createElement(Portal$4, { container: themeElement },
18886
+ React.createElement(Content2$3, { sideOffset: 5, position: "popper", className: classNames("arc-Select-content", {
17416
18887
  "arc-Select-content--onDarkSurface": surface === "dark",
17417
18888
  }) },
17418
18889
  React.createElement(ScrollUpButton, { className: "arc-Select-scrollButton" },
17419
18890
  React.createElement(ThemeIcon, { size: 16, icon: "selectScrollUp" })),
17420
18891
  React.createElement(Viewport, null, options.map(function (_a, i) {
17421
18892
  var name = _a.name, value = _a.value;
17422
- return (React.createElement(Item, { className: "arc-Select-item", key: "select-item-".concat(i), value: value },
18893
+ return (React.createElement(Item$1, { className: "arc-Select-item", key: "select-item-".concat(i), value: value },
17423
18894
  React.createElement("div", { className: "arc-Select-itemTextWrapper" },
17424
18895
  React.createElement(ItemText, { asChild: true },
17425
18896
  React.createElement("span", { className: "arc-Select-itemText" }, name))),
17426
- React.createElement(ItemIndicator, null,
18897
+ React.createElement(ItemIndicator$1, null,
17427
18898
  React.createElement(ThemeIcon, { size: 20, icon: "selectIndicator" }))));
17428
18899
  })),
17429
18900
  React.createElement(ScrollDownButton, { className: "arc-Select-scrollButton" },
@@ -17458,13 +18929,95 @@ var SiteFooterItemGroup = function (_a) {
17458
18929
  React.createElement("summary", { className: "arc-SiteFooter-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
17459
18930
  React.createElement("span", { className: "arc-SiteFooter-icon" },
17460
18931
  React.createElement(ThemeIcon, { icon: "siteFooterExpand" })),
17461
- React.createElement("h2", { className: "arc-SiteFooter-title" }, title)),
17462
- React.createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
18932
+ React.createElement("h2", { className: "arc-SiteFooter-title" }, title)),
18933
+ React.createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
18934
+ };
18935
+ var SiteFooterItem = function (_a) {
18936
+ var children = _a.children, href = _a.href, onClick = _a.onClick, props = __rest(_a, ["children", "href", "onClick"]);
18937
+ return (React.createElement("li", __assign({ className: "arc-SiteFooter-item" }, filterAttrs(props)),
18938
+ React.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooter-link", href: href }, children)));
18939
+ };
18940
+
18941
+ /**
18942
+ * Use `SiteFooterV2` to display information at the bottom of a page.
18943
+ */
18944
+ var SiteFooterV2 = function (_a) {
18945
+ var children = _a.children, slogan = _a.slogan, _b = _a.hideTopBorder, hideTopBorder = _b === void 0 ? false : _b, props = __rest(_a, ["children", "slogan", "hideTopBorder"]);
18946
+ var surface = React.useContext(Context$3).surface;
18947
+ return (React.createElement("footer", __assign({ className: classNames("arc-SiteFooterV2", {
18948
+ "arc-SiteFooterV2--onDarkSurface": surface === "dark",
18949
+ }) }, filterAttrs(props)),
18950
+ !hideTopBorder && React.createElement(Rule, null),
18951
+ React.createElement(VerticalSpace, { size: "24" }),
18952
+ React.createElement(Section, null,
18953
+ slogan && (React.createElement(React.Fragment, null,
18954
+ React.createElement("h2", { className: "arc-SiteFooterV2-slogan" }, slogan),
18955
+ React.createElement(VerticalSpace, { size: "32" }))),
18956
+ React.createElement("div", { className: "arc-SiteFooterV2-main-utility" }, children)),
18957
+ React.createElement(VerticalSpace, { size: "24" }),
18958
+ " "));
18959
+ };
18960
+
18961
+ /**
18962
+ * Do not edit directly
18963
+ * Generated on Mon, 19 May 2025 14:54:16 GMT
18964
+ */
18965
+ var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
18966
+
18967
+ var SiteFooterV2Main = function (_a) {
18968
+ var children = _a.children, _b = _a.columns, columns = _b === void 0 ? 4 : _b, props = __rest(_a, ["children", "columns"]);
18969
+ var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
18970
+ return (React.createElement("nav", __assign({ className: "arc-SiteFooterV2-main ".concat(isMinWidthArcBreakpointL &&
18971
+ columns === 3 &&
18972
+ "arc-SiteFooterV2-main-3Columns"), "aria-label": "Footer navigation links" }, filterAttrs(props)), children));
18973
+ };
18974
+ var SiteFooterV2ItemGroup = function (_a) {
18975
+ var children = _a.children, title = _a.title, _b = _a.hideDisclosure, hideDisclosure = _b === void 0 ? false : _b, props = __rest(_a, ["children", "title", "hideDisclosure"]);
18976
+ var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsM, ")"));
18977
+ return (React.createElement("details", __assign({ open: isMinWidthArcBreakpointM, className: classNames("arc-SiteFooterV2-disclosure", {
18978
+ "arc-SiteFooterV2-disclosure--hidden": !isMinWidthArcBreakpointM && hideDisclosure,
18979
+ }), "aria-label": title }, filterAttrs(props)),
18980
+ React.createElement("summary", { className: "arc-SiteFooterV2-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
18981
+ React.createElement("span", { className: "arc-SiteFooterV2-icon" },
18982
+ React.createElement(ThemeIcon, { icon: "siteFooterExpand" })),
18983
+ React.createElement("h2", { className: "arc-SiteFooterV2-itemGroupTitle" }, title)),
18984
+ React.createElement("ul", { className: "arc-SiteFooterV2-itemGroup" }, children)));
17463
18985
  };
17464
- var SiteFooterItem = function (_a) {
18986
+ var SiteFooterV2Item = function (_a) {
17465
18987
  var children = _a.children, href = _a.href, onClick = _a.onClick, props = __rest(_a, ["children", "href", "onClick"]);
17466
- return (React.createElement("li", __assign({ className: "arc-SiteFooter-item" }, filterAttrs(props)),
17467
- React.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooter-link", href: href }, children)));
18988
+ return (React.createElement("li", __assign({ className: "arc-SiteFooterV2-item" }, filterAttrs(props)),
18989
+ React.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooterV2-link", href: href }, children)));
18990
+ };
18991
+
18992
+ /**
18993
+ * Use `SiteFooterV2.Utility` to display information at the bottom of a page.
18994
+ */
18995
+ var SiteFooterV2Utility = function (_a) {
18996
+ var copyrightYear = _a.copyrightYear, children = _a.children, socialLinks = _a.socialLinks, _b = _a.brand, brand = _b === void 0 ? {
18997
+ logoLabel: "BT",
18998
+ } : _b, contentSlot = _a.contentSlot, props = __rest(_a, ["copyrightYear", "children", "socialLinks", "brand", "contentSlot"]);
18999
+ return (React.createElement("div", __assign({ className: "arc-SiteFooterV2-utility", "aria-label": "Footer utility bar" }, filterAttrs(props)),
19000
+ React.createElement("div", { className: "arc-SiteFooterV2-brand" },
19001
+ !contentSlot && (React.createElement(React.Fragment, null,
19002
+ React.createElement("a", { className: "arc-SiteFooterV2-brandLogo", onClick: handleLinkClick({ handler: brand.onClick }) },
19003
+ React.createElement(BrandLogo, { label: brand.logoLabel, "aria-label": brand.logoLabel, color: "brand", subBrand: brand.subBrand })),
19004
+ React.createElement("div", { className: "arc-SiteFooterV2-copyright" },
19005
+ React.createElement("span", { className: "arc-SiteFooterV2-copyrightSymbol" }, "\u00A9"),
19006
+ " ",
19007
+ brand.logoLabel,
19008
+ " ",
19009
+ isDate(copyrightYear) ? (React.createElement("time", { dateTime: format(copyrightYear, "yyyy") }, format(copyrightYear, "yyyy"))) : (React.createElement("span", null, copyrightYear)),
19010
+ !copyrightYear && "".concat(new Date().getFullYear())))),
19011
+ contentSlot && (React.createElement("div", { className: "arc-SiteFooterV2-contentSlot" }, contentSlot))),
19012
+ children && (React.createElement("nav", { "aria-label": "Footer utility links" },
19013
+ React.createElement("ul", { className: "arc-SiteFooterV2-utilityItems" }, children))),
19014
+ socialLinks && (React.createElement("ul", { className: "arc-SiteFooterV2-utilitySocials", "aria-label": "Footer social media links" }, socialLinks.map(function (_a, index) {
19015
+ var href = _a.href, icon = _a.icon, ariaLabel = _a.ariaLabel;
19016
+ return (React.createElement("li", { key: index, tabIndex: 0, className: "arc-SiteFooterV2-utilitySocialsLink", "aria-label": ariaLabel },
19017
+ React.createElement("a", { className: "arc-SiteFooterV2-link", href: href, tabIndex: -1 },
19018
+ React.createElement(Icon$1, { icon: icon, size: 16 }),
19019
+ " ")));
19020
+ })))));
17468
19021
  };
17469
19022
 
17470
19023
  var SiteHeaderV2MenuButton = function (_a) {
@@ -17558,11 +19111,11 @@ var SiteHeaderV2 = function (_a) {
17558
19111
  React.createElement("button", { className: "arc-SiteHeaderV2-mobileLogin", onClick: loginOnClick },
17559
19112
  loginTitle,
17560
19113
  React.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
17561
- React.createElement(BtIconChevronRight2Px, null))))) : (React.createElement("div", { className: "arc-SiteHeaderV2-mobileButtonContainer" },
19114
+ React.createElement(Icon$1, { icon: BtIconChevronRight2Px }))))) : (React.createElement("div", { className: "arc-SiteHeaderV2-mobileButtonContainer" },
17562
19115
  React.createElement("a", { className: "arc-SiteHeaderV2-mobileLogin", href: loginHref },
17563
19116
  loginTitle,
17564
19117
  React.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
17565
- React.createElement(BtIconChevronRight2Px, null)))))))))),
19118
+ React.createElement(Icon$1, { icon: BtIconChevronRight2Px })))))))))),
17566
19119
  (basket || hasLogin || search) && (React.createElement("div", { className: "arc-SiteHeaderV2-secondary" },
17567
19120
  search ? (React.createElement("div", { className: "arc-SiteHeaderV2-search" }, search)) : null,
17568
19121
  basket ? (React.createElement("div", { className: "arc-SiteHeaderV2-basket" }, basket)) : null,
@@ -17588,7 +19141,7 @@ var SiteHeaderV2Item = function (_a) {
17588
19141
  React.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteHeaderV2Item-link", href: href, role: "menuitem" },
17589
19142
  children,
17590
19143
  React.createElement("span", { className: "arc-SiteHeaderV2Item-linkIcon" },
17591
- React.createElement(BtIconChevronRightMid, null)))));
19144
+ React.createElement(Icon$1, { icon: BtIconChevronRightMid })))));
17592
19145
  };
17593
19146
 
17594
19147
  var SiteHeaderV2ItemGroup = function (_a) {
@@ -17603,7 +19156,7 @@ var SiteHeaderV2ItemGroup = function (_a) {
17603
19156
  handler: onClick,
17604
19157
  }), className: "arc-SiteHeaderV2ItemGroup-title", href: href }, children)); }, fallback: function (children) { return (React.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-title" }, children)); } }, title),
17605
19158
  React.createElement("span", { className: "arc-SiteHeaderV2ItemGroup-titleIcon" },
17606
- React.createElement(BtIconChevronRightMid, null)))) : (React.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-title" }, title))),
19159
+ React.createElement(Icon$1, { icon: BtIconChevronRightMid })))) : (React.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-title" }, title))),
17607
19160
  React.createElement("span", { className: "arc-SiteHeaderV2ItemGroup-subtitle" }, subtitle))) : null,
17608
19161
  React.createElement("ul", { className: "arc-SiteHeaderV2ItemGroup-items", role: "menubar" },
17609
19162
  children,
@@ -17620,7 +19173,7 @@ var SiteHeaderV2BackButton = function (_a) {
17620
19173
  setOpenPanelOnFirstClick(false);
17621
19174
  } },
17622
19175
  React.createElement("span", { className: "arc-SiteHeaderV2BackButton-icon" },
17623
- React.createElement(BtIconChevronLeft2Px, null)),
19176
+ React.createElement(Icon$1, { icon: BtIconChevronLeft2Px })),
17624
19177
  React.createElement("span", { className: "arc-SiteHeaderV2BackButton-text" }, "Back")));
17625
19178
  };
17626
19179
 
@@ -17808,7 +19361,7 @@ var SiteHeaderV2NavItem = function (_a) {
17808
19361
  _d["arc-SiteHeaderV2NavItem-link--itemHasChildren-hasFirstPanel"] = opensFirstWithPanel,
17809
19362
  _d)) }, title),
17810
19363
  React.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
17811
- React.createElement(BtIconChevronRight2Px, null)),
19364
+ React.createElement(Icon$1, { icon: BtIconChevronRight2Px })),
17812
19365
  subTitle && !isPrimary && isMinWidthArcBreakpointL ? (React.createElement("div", { className: classNames((_e = {},
17813
19366
  _e["arc-SiteHeaderV2NavItemWithSubNav-text"] = !isPrimary,
17814
19367
  _e["arc-SiteHeaderV2NavItem-link--itemHasChildren-closeFirstPanel"] = !isPrimary && !opensFirstWithPanel,
@@ -17952,7 +19505,7 @@ var SiteHeaderV2NavItemWithSubNav = function (_a) {
17952
19505
  _d["arc-SiteHeaderV2NavItem-link--itemHasChildren-primary"] = isPrimary,
17953
19506
  _d)) }, title),
17954
19507
  React.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
17955
- React.createElement(BtIconChevronRight2Px, null)),
19508
+ React.createElement(Icon$1, { icon: BtIconChevronRight2Px })),
17956
19509
  subTitle && !isPrimary && isMinWidthArcBreakpointL ? (React.createElement("div", { className: classNames((_e = {},
17957
19510
  _e["arc-SiteHeaderV2NavItemWithSubNav-text"] = !isPrimary,
17958
19511
  _e["arc-SiteHeaderV2NavItem-link--itemHasChildren-closeFirstPanel"] = !isPrimary && !opensFirstWithPanel,
@@ -18009,9 +19562,9 @@ var SiteHeaderV2SubNavItem = function (_a) {
18009
19562
  var linkTitle = (React.createElement(React.Fragment, null,
18010
19563
  React.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkTitle" }, title),
18011
19564
  children && panelOpen && (React.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkIcon" },
18012
- React.createElement(BtIconChevronRight2Px, null))),
19565
+ React.createElement(Icon$1, { icon: BtIconChevronRight2Px }))),
18013
19566
  children && !isMinWidthArcBreakpointL && (React.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkIcon" },
18014
- React.createElement(BtIconChevronRight2Px, null))),
19567
+ React.createElement(Icon$1, { icon: BtIconChevronRight2Px }))),
18015
19568
  subTitle ? (React.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkSubTitle" }, subTitle)) : null));
18016
19569
  return (React.createElement("li", __assign({ className: classNames((_b = {},
18017
19570
  _b["arc-SiteHeaderV2SubNavItem"] = true,
@@ -18244,7 +19797,7 @@ const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07b
18244
19797
 
18245
19798
  /** Use `Switch` to allow users to immediately toggle between two states. */
18246
19799
  var Switch = function (_a) {
18247
- var defaultChecked = _a.defaultChecked; _a.onCheckedChange; var label = _a.label, _b = _a.labelPosition, labelPosition = _b === void 0 ? "top" : _b, name = _a.name, onBlur = _a.onBlur, value = _a.value, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, errorMessage = _a.errorMessage, id = _a.id, _d = _a.labelSize, labelSize = _d === void 0 ? "s" : _d, onStatusText = _a.onStatusText, offStatusText = _a.offStatusText, _e = _a.hideLabel, hideLabel = _e === void 0 ? false : _e, ariaLabel = _a.ariaLabel, props = __rest(_a, ["defaultChecked", "onCheckedChange", "label", "labelPosition", "name", "onBlur", "value", "isDisabled", "errorMessage", "id", "labelSize", "onStatusText", "offStatusText", "hideLabel", "ariaLabel"]);
19800
+ var defaultChecked = _a.defaultChecked, onCheckedChange = _a.onCheckedChange, label = _a.label, _b = _a.labelPosition, labelPosition = _b === void 0 ? "top" : _b, name = _a.name, onBlur = _a.onBlur, value = _a.value, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, errorMessage = _a.errorMessage, id = _a.id, _d = _a.labelSize, labelSize = _d === void 0 ? "s" : _d, onStatusText = _a.onStatusText, offStatusText = _a.offStatusText, _e = _a.hideLabel, hideLabel = _e === void 0 ? false : _e, ariaLabel = _a.ariaLabel, props = __rest(_a, ["defaultChecked", "onCheckedChange", "label", "labelPosition", "name", "onBlur", "value", "isDisabled", "errorMessage", "id", "labelSize", "onStatusText", "offStatusText", "hideLabel", "ariaLabel"]);
18248
19801
  var _f = React.useState(defaultChecked), switchState = _f[0], setSwitchState = _f[1];
18249
19802
  var surface = React.useContext(Context$3).surface;
18250
19803
  if (!onStatusText) {
@@ -18253,8 +19806,9 @@ var Switch = function (_a) {
18253
19806
  if (!offStatusText) {
18254
19807
  offStatusText = onStatusText;
18255
19808
  }
18256
- var onCheckedHandler = function () {
19809
+ var onCheckedHandler = function (checked) {
18257
19810
  setSwitchState(function (previous) { return !previous; });
19811
+ onCheckedChange && onCheckedChange(checked);
18258
19812
  };
18259
19813
  return (React.createElement(FormControl, { errorMessage: errorMessage, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, labelPosition: labelPosition, requirementStatus: "not-applicable" },
18260
19814
  !hideLabel && React.createElement(VerticalSpace, { size: "8" }),
@@ -18276,6 +19830,39 @@ var Switch = function (_a) {
18276
19830
  React.createElement(Text, { size: labelSize, "aria-hidden": true }, switchState ? onStatusText : offStatusText))))));
18277
19831
  };
18278
19832
 
19833
+ var TabbedBanner = function (_a) {
19834
+ var _b;
19835
+ var tabs = _a.tabs, defaultValue = _a.defaultValue, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
19836
+ var initialTab = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value;
19837
+ var _c = React.useState(initialTab), selectedTab = _c[0], setSelectedTab = _c[1];
19838
+ var _d = React.useState(window.innerWidth < parseInt(ArcSizeBreakpointsM)), isBelowArcSizeBreakpointsM = _d[0], SetIsBelowArcSizeBreakpointsM = _d[1];
19839
+ var handleResize = debounce(function () {
19840
+ SetIsBelowArcSizeBreakpointsM(window.innerWidth < parseInt(ArcSizeBreakpointsM));
19841
+ }, 100);
19842
+ React.useEffect(function () {
19843
+ handleResize();
19844
+ window.addEventListener("resize", handleResize);
19845
+ return function () { return window.removeEventListener("resize", handleResize); };
19846
+ }, [isBelowArcSizeBreakpointsM]);
19847
+ return (React.createElement("div", { className: "arc-TabbedBanner" }, !isBelowArcSizeBreakpointsM ? (React.createElement("div", null,
19848
+ React.createElement(ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
19849
+ React.createElement(ContentSwitcherList, { isInset: true }, tabs.map(function (_a, index) {
19850
+ var label = _a.label, value = _a.value;
19851
+ return (React.createElement(ContentSwitcherTab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
19852
+ })),
19853
+ tabs.map(function (_a, index) {
19854
+ var value = _a.value, content = _a.content;
19855
+ return (React.createElement(ContentSwitcherContent, { value: value, key: index },
19856
+ React.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: true, minHeight: minHeight }, content))));
19857
+ })))) : (React.createElement("div", null,
19858
+ React.createElement(ContentSwitcherDropdown, { value: selectedTab, tabs: tabs, isInset: true, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
19859
+ var value = _a.value, content = _a.content;
19860
+ return (React.createElement(ContentSwitcherDropdownContent, { value: value, key: "".concat(index, "-").concat(value) },
19861
+ React.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: !(window.innerHeight < parseInt(ArcSizeBreakpointsM) &&
19862
+ content.type === "contained"), minHeight: minHeightM }, content))));
19863
+ }))))));
19864
+ };
19865
+
18279
19866
  /** Use `Tabs` to allow users to navigate between different sections of relevant content. */
18280
19867
  var Tabs = function (_a) {
18281
19868
  var children = _a.children, defaultValue = _a.defaultValue, onValueChange = _a.onValueChange, activationMode = _a.activationMode, props = __rest(_a, ["children", "defaultValue", "onValueChange", "activationMode"]);
@@ -18349,77 +19936,6 @@ var TabsList = function (_a) {
18349
19936
  }), ref: tabsRef, "aria-label": ariaLabel }, filterAttrs(props)), children)));
18350
19937
  };
18351
19938
 
18352
- var TabbedBanner = function (_a) {
18353
- var _b;
18354
- var tabs = _a.tabs, defaultValue = _a.defaultValue, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
18355
- var initialTab = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value;
18356
- var _c = React.useState(initialTab), selectedTab = _c[0], setSelectedTab = _c[1];
18357
- var _d = React.useState(window.innerWidth < parseInt(ArcSizeBreakpointsM)), isBelowArcSizeBreakpointsM = _d[0], SetIsBelowArcSizeBreakpointsM = _d[1];
18358
- var handleResize = debounce(function () {
18359
- SetIsBelowArcSizeBreakpointsM(window.innerWidth < parseInt(ArcSizeBreakpointsM));
18360
- }, 100);
18361
- React.useEffect(function () {
18362
- handleResize();
18363
- window.addEventListener("resize", handleResize);
18364
- return function () { return window.removeEventListener("resize", handleResize); };
18365
- }, [isBelowArcSizeBreakpointsM]);
18366
- return (React.createElement("div", { className: "arc-TabbedBanner" }, !isBelowArcSizeBreakpointsM ? (React.createElement("div", null,
18367
- React.createElement(ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
18368
- React.createElement(ContentSwitcherList, { isInset: true }, tabs.map(function (_a, index) {
18369
- var label = _a.label, value = _a.value;
18370
- return (React.createElement(ContentSwitcherTab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
18371
- })),
18372
- tabs.map(function (_a, index) {
18373
- var value = _a.value, content = _a.content;
18374
- return (React.createElement(ContentSwitcherContent, { value: value, key: index },
18375
- React.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: true, minHeight: minHeight }, content))));
18376
- })))) : (React.createElement("div", null,
18377
- React.createElement(ContentSwitcherDropdown, { value: selectedTab, tabs: tabs, isInset: true, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
18378
- var value = _a.value, content = _a.content;
18379
- return (React.createElement(ContentSwitcherDropdownContent, { value: value, key: "".concat(index, "-").concat(value) },
18380
- React.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: !(window.innerHeight < parseInt(ArcSizeBreakpointsM) &&
18381
- content.type === "contained"), minHeight: minHeightM }, content))));
18382
- }))))));
18383
- };
18384
-
18385
- const BtIconCross = (props) =>
18386
- /*#__PURE__*/ React.createElement(
18387
- "svg",
18388
- Object.assign(
18389
- {
18390
- xmlns: "http://www.w3.org/2000/svg",
18391
- viewBox: "0 0 32 32",
18392
- },
18393
- props,
18394
- ),
18395
- /*#__PURE__*/ React.createElement("defs", null),
18396
- /*#__PURE__*/ React.createElement("path", {
18397
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
18398
- fill: "currentColor",
18399
- }),
18400
- /*#__PURE__*/ React.createElement("path", {
18401
- d: "M20.85352,11.14648a.49983.49983,0,0,0-.707,0L16,15.293l-4.14648-4.14649a.5.5,0,0,0-.707.707L15.293,16l-4.14649,4.14648a.5.5,0,1,0,.707.707L16,16.707l4.14648,4.14649a.5.5,0,0,0,.707-.707L16.707,16l4.14649-4.14648A.49983.49983,0,0,0,20.85352,11.14648Z",
18402
- fill: "currentColor",
18403
- }),
18404
- );
18405
-
18406
- const BtIconCrossFill = (props) =>
18407
- /*#__PURE__*/ React.createElement(
18408
- "svg",
18409
- Object.assign(
18410
- {
18411
- xmlns: "http://www.w3.org/2000/svg",
18412
- viewBox: "0 0 32 32",
18413
- },
18414
- props,
18415
- ),
18416
- /*#__PURE__*/ React.createElement("defs", null),
18417
- /*#__PURE__*/ React.createElement("path", {
18418
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.85352,18.14648a.5.5,0,1,1-.707.707L16,16.707l-4.14648,4.14649a.5.5,0,0,1-.707-.707L15.293,16l-4.14649-4.14648a.5.5,0,0,1,.707-.707L16,15.293l4.14648-4.14649a.5.5,0,0,1,.707.707L16.707,16Z",
18419
- fill: "currentColor",
18420
- }),
18421
- );
18422
-
18423
19939
  /**
18424
19940
  * Use `Tag` to promote features and manage filtering.
18425
19941
  */
@@ -18476,6 +19992,13 @@ var TextArea = React.forwardRef(function (_a, ref) {
18476
19992
  onChange && onChange(e);
18477
19993
  setCharacterCount(e.target.value.length);
18478
19994
  };
19995
+ // Although this is used within FormControlWrapper, it's deterministic so we can call it here too
19996
+ var ariaDescribedby = useAriaDescribedby({
19997
+ errorMessage: errorMessage,
19998
+ id: id,
19999
+ helper: helper,
20000
+ disclosureText: disclosureText,
20001
+ }).ariaDescribedby;
18479
20002
  return (React.createElement(FormControl, __assign({ errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure, supplementaryInfo: maxLength &&
18480
20003
  showCharacterCount && (React.createElement(React.Fragment, null,
18481
20004
  React.createElement(Text, { tone: isDisabled ? "muted" : "default" },
@@ -18485,7 +20008,7 @@ var TextArea = React.forwardRef(function (_a, ref) {
18485
20008
  maxLength,
18486
20009
  " characters",
18487
20010
  characterCount === maxLength && (React.createElement(VisuallyHidden$2, null, "Maximum characters reached")))))) }, filterAttrs(props)),
18488
- React.createElement("textarea", __assign({ id: id, className: classNames("arc-TextArea", {
20011
+ React.createElement("textarea", { id: id, className: classNames("arc-TextArea", {
18489
20012
  "arc-TextArea--noResize": resize !== "manual",
18490
20013
  "arc-TextArea--onDarkSurface": surface === "dark",
18491
20014
  "arc-TextArea--invalid": errorMessage,
@@ -18494,14 +20017,14 @@ var TextArea = React.forwardRef(function (_a, ref) {
18494
20017
  maxHeight: maxHeight,
18495
20018
  minHeight: minHeight,
18496
20019
  marginTop: hideLabel ? 0 : undefined,
18497
- }, "aria-describedby": "".concat(id, "-helper"), autoComplete: autoComplete }, (helper && { "aria-describedby": "".concat(id, "-helper") })))));
20020
+ }, "aria-describedby": ariaDescribedby, autoComplete: autoComplete })));
18498
20021
  });
18499
20022
 
18500
20023
  // package.json
18501
20024
  var package_default = {
18502
20025
  name: "@arc-ui/helpers",
18503
20026
  private: true,
18504
- version: "12.0.0-beta.16",
20027
+ version: "12.0.0-beta.18",
18505
20028
  type: "module",
18506
20029
  homepage: "https://ui.digital-ent-int.bt.com",
18507
20030
  author: "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
@@ -18564,6 +20087,19 @@ var Theme = function (_a) {
18564
20087
  };
18565
20088
  var themes = ["bt-enterprise", "bt-business", "ee"];
18566
20089
 
20090
+ var ThumbnailSignpost = function (_a) {
20091
+ var text = _a.text, title = _a.title, img = _a.img, button = _a.button, props = __rest(_a, ["text", "title", "img", "button"]);
20092
+ var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
20093
+ return (React.createElement("div", __assign({ className: "arc-ThumbnailSignpost" }, filterAttrs(props)),
20094
+ (img === null || img === void 0 ? void 0 : img.src) && (React.createElement("div", { className: "arc-ThumbnailSignpost-image" },
20095
+ React.createElement(Image, __assign({}, img)))),
20096
+ React.createElement("div", { className: "arc-ThumbnailSignpost-content" },
20097
+ React.createElement(Heading, { size: isMinWidthArcBreakpointS ? "s" : "xs" }, title),
20098
+ React.createElement(VerticalSpace, { size: "8" }),
20099
+ text,
20100
+ React.createElement(ButtonV2, __assign({ buttonStyle: "compact", icon: BtIconArrowRight }, button)))));
20101
+ };
20102
+
18567
20103
  /**
18568
20104
  * Listens for when the escape key is down
18569
20105
  */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
@@ -24070,7 +25606,7 @@ var VideoPlayer = function (_a) {
24070
25606
  onError: onError,
24071
25607
  onEnded: onEnded,
24072
25608
  playIcon: (React.createElement("div", { className: "arc-VideoPlayer-icon" },
24073
- React.createElement(Icon$1, { isPresentationIcon: true, icon: BtIconPlayFill }))),
25609
+ React.createElement(Icon$1, { icon: BtIconPlayFill }))),
24074
25610
  playing: Boolean(light),
24075
25611
  controls: true,
24076
25612
  className: "arc-VideoPlayer",
@@ -24124,119 +25660,6 @@ var Visible = function (_a) {
24124
25660
  }) }, filterAttrs(props)), children));
24125
25661
  };
24126
25662
 
24127
- var ThumbnailSignpost = function (_a) {
24128
- var text = _a.text, title = _a.title, img = _a.img, button = _a.button, props = __rest(_a, ["text", "title", "img", "button"]);
24129
- var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
24130
- return (React.createElement("div", __assign({ className: "arc-ThumbnailSignpost" }, filterAttrs(props)),
24131
- (img === null || img === void 0 ? void 0 : img.src) && (React.createElement("div", { className: "arc-ThumbnailSignpost-image" },
24132
- React.createElement(Image, __assign({}, img)))),
24133
- React.createElement("div", { className: "arc-ThumbnailSignpost-content" },
24134
- React.createElement(Heading, { size: isMinWidthArcBreakpointS ? "s" : "xs" }, title),
24135
- React.createElement(VerticalSpace, { size: "8" }),
24136
- text,
24137
- React.createElement(ButtonV2, __assign({ buttonStyle: "compact", icon: BtIconArrowRight }, button)))));
24138
- };
24139
-
24140
- var HorizontalCard = function (_a) {
24141
- var text = _a.text, heading = _a.heading, headingLevel = _a.headingLevel, img = _a.img, metaText = _a.metaText, url = _a.url, onClick = _a.onClick, props = __rest(_a, ["text", "heading", "headingLevel", "img", "metaText", "url", "onClick"]);
24142
- var _b = React.useState(false), showHoverState = _b[0], setShowHoverState = _b[1];
24143
- var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
24144
- return (React.createElement("div", __assign({ className: classNames("arc-HorizontalCard", {
24145
- "arc-HorizontalCard--outlined": (url || onclick) && showHoverState,
24146
- }) }, filterAttrs(props)),
24147
- (img === null || img === void 0 ? void 0 : img.src) && (React.createElement("div", { className: "arc-HorizontalCard-image" },
24148
- React.createElement(Image, __assign({ fit: "cover", anchor: "C" }, img)))),
24149
- React.createElement("div", { className: "arc-HorizontalCard-content" },
24150
- React.createElement(VerticalSpace, { size: "12" }),
24151
- React.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
24152
- React.createElement(VerticalSpace, { size: "12" }),
24153
- React.createElement(Text, null, text),
24154
- React.createElement(VerticalSpace, { size: "24" }),
24155
- React.createElement(CardFooter, { metaText: metaText, buttonIcon: "arrow", isHovered: showHoverState, buttonSize: "s" }))));
24156
- };
24157
-
24158
- /**
24159
- * Use `SiteFooterV2` to display information at the bottom of a page.
24160
- */
24161
- var SiteFooterV2 = function (_a) {
24162
- var children = _a.children, slogan = _a.slogan, props = __rest(_a, ["children", "slogan"]);
24163
- var surface = React.useContext(Context$3).surface;
24164
- return (React.createElement("footer", __assign({ className: classNames("arc-SiteFooterV2", {
24165
- "arc-SiteFooterV2--onDarkSurface": surface === "dark",
24166
- }) }, filterAttrs(props)),
24167
- React.createElement(Rule, null),
24168
- React.createElement(VerticalSpace, { size: "24" }),
24169
- React.createElement(Section, null,
24170
- slogan && (React.createElement(React.Fragment, null,
24171
- React.createElement("h2", { className: "arc-SiteFooterV2-slogan" }, slogan),
24172
- React.createElement(VerticalSpace, { size: "32" }))),
24173
- React.createElement("div", { className: "arc-SiteFooterV2-main-utility" }, children)),
24174
- React.createElement(VerticalSpace, { size: "24" }),
24175
- " "));
24176
- };
24177
-
24178
- /**
24179
- * Do not edit directly
24180
- * Generated on Thu, 06 Mar 2025 14:17:53 GMT
24181
- */
24182
- var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
24183
-
24184
- var SiteFooterV2Main = function (_a) {
24185
- var children = _a.children, _b = _a.columns, columns = _b === void 0 ? 4 : _b, props = __rest(_a, ["children", "columns"]);
24186
- var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
24187
- return (React.createElement("nav", __assign({ className: "arc-SiteFooterV2-main ".concat(isMinWidthArcBreakpointL &&
24188
- columns === 3 &&
24189
- "arc-SiteFooterV2-main-3Columns"), "aria-label": "Footer navigation links" }, filterAttrs(props)), children));
24190
- };
24191
- var SiteFooterV2ItemGroup = function (_a) {
24192
- var children = _a.children, title = _a.title, _b = _a.hideDisclosure, hideDisclosure = _b === void 0 ? false : _b, props = __rest(_a, ["children", "title", "hideDisclosure"]);
24193
- var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsM, ")"));
24194
- return (React.createElement("details", __assign({ open: isMinWidthArcBreakpointM, className: classNames("arc-SiteFooterV2-disclosure", {
24195
- "arc-SiteFooterV2-disclosure--hidden": !isMinWidthArcBreakpointM && hideDisclosure,
24196
- }), "aria-label": title }, filterAttrs(props)),
24197
- React.createElement("summary", { className: "arc-SiteFooterV2-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
24198
- React.createElement("span", { className: "arc-SiteFooterV2-icon" },
24199
- React.createElement(ThemeIcon, { icon: "siteFooterExpand" })),
24200
- React.createElement("h2", { className: "arc-SiteFooterV2-itemGroupTitle" }, title)),
24201
- React.createElement("ul", { className: "arc-SiteFooterV2-itemGroup" }, children)));
24202
- };
24203
- var SiteFooterV2Item = function (_a) {
24204
- var children = _a.children, href = _a.href, onClick = _a.onClick, props = __rest(_a, ["children", "href", "onClick"]);
24205
- return (React.createElement("li", __assign({ className: "arc-SiteFooterV2-item" }, filterAttrs(props)),
24206
- React.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooterV2-link", href: href }, children)));
24207
- };
24208
-
24209
- /**
24210
- * Use `SiteFooterV2.Utility` to display information at the bottom of a page.
24211
- */
24212
- var SiteFooterV2Utility = function (_a) {
24213
- var copyrightYear = _a.copyrightYear, children = _a.children, socialLinks = _a.socialLinks, _b = _a.brand, brand = _b === void 0 ? {
24214
- logoLabel: "BT",
24215
- } : _b, contentSlot = _a.contentSlot, props = __rest(_a, ["copyrightYear", "children", "socialLinks", "brand", "contentSlot"]);
24216
- return (React.createElement("div", __assign({ className: "arc-SiteFooterV2-utility", "aria-label": "Footer utility bar" }, filterAttrs(props)),
24217
- React.createElement("div", { className: "arc-SiteFooterV2-brand" },
24218
- !contentSlot && (React.createElement(React.Fragment, null,
24219
- React.createElement("a", { className: "arc-SiteFooterV2-brandLogo", onClick: handleLinkClick({ handler: brand.onClick }) },
24220
- React.createElement(BrandLogo, { label: brand.logoLabel, "aria-label": brand.logoLabel, color: "brand", subBrand: brand.subBrand })),
24221
- React.createElement("div", { className: "arc-SiteFooterV2-copyright" },
24222
- React.createElement("span", { className: "arc-SiteFooterV2-copyrightSymbol" }, "\u00A9"),
24223
- " ",
24224
- brand.logoLabel,
24225
- " ",
24226
- isDate(copyrightYear) ? (React.createElement("time", { dateTime: format(copyrightYear, "yyyy") }, format(copyrightYear, "yyyy"))) : (React.createElement("span", null, copyrightYear)),
24227
- !copyrightYear && "".concat(new Date().getFullYear())))),
24228
- contentSlot && (React.createElement("div", { className: "arc-SiteFooterV2-contentSlot" }, contentSlot))),
24229
- children && (React.createElement("nav", { "aria-label": "Footer utility links" },
24230
- React.createElement("ul", { className: "arc-SiteFooterV2-utilityItems" }, children))),
24231
- socialLinks && (React.createElement("ul", { className: "arc-SiteFooterV2-utilitySocials", "aria-label": "Footer social media links" }, socialLinks.map(function (_a, index) {
24232
- var href = _a.href, icon = _a.icon, ariaLabel = _a.ariaLabel;
24233
- return (React.createElement("li", { key: index, tabIndex: 0, className: "arc-SiteFooterV2-utilitySocialsLink", "aria-label": ariaLabel },
24234
- React.createElement("a", { className: "arc-SiteFooterV2-link", href: href, tabIndex: -1 },
24235
- React.createElement(Icon$1, { icon: icon, size: 16 }),
24236
- " ")));
24237
- })))));
24238
- };
24239
-
24240
25663
  var Preview_1;
24241
25664
  var hasRequiredPreview;
24242
25665
 
@@ -24433,10 +25856,12 @@ exports.FilterItem = FilterItem;
24433
25856
  exports.FilterItems = FilterItems;
24434
25857
  exports.FormControl = FormControl;
24435
25858
  exports.FormControlContext = Context$2;
25859
+ exports.GhostedHeroBanner = GhostedHeroBanner;
25860
+ exports.GradientBackground = GradientBackground;
24436
25861
  exports.Grid = Grid;
24437
25862
  exports.GridCol = GridCol;
24438
25863
  exports.GridRow = GridRow;
24439
- exports.Group = Group;
25864
+ exports.Group = Group$1;
24440
25865
  exports.GroupItem = GroupItem;
24441
25866
  exports.Heading = Heading;
24442
25867
  exports.HeroBanner = HeroBanner;
@@ -24454,6 +25879,24 @@ exports.InformationCard = InformationCard;
24454
25879
  exports.Link = Link;
24455
25880
  exports.Markup = Markup;
24456
25881
  exports.MediaCard = MediaCard;
25882
+ exports.Menu = Menu;
25883
+ exports.MenuCheckboxItem = MenuCheckboxItem;
25884
+ exports.MenuContent = MenuContent;
25885
+ exports.MenuFooter = MenuFooter;
25886
+ exports.MenuGroup = MenuGroup;
25887
+ exports.MenuHeader = MenuHeader;
25888
+ exports.MenuItem = MenuItem;
25889
+ exports.MenuItemContentTemplate = MenuItemContentTemplate;
25890
+ exports.MenuLabel = MenuLabel;
25891
+ exports.MenuPortal = MenuPortal;
25892
+ exports.MenuRadioGroup = MenuRadioGroup;
25893
+ exports.MenuRadioItem = MenuRadioItem;
25894
+ exports.MenuScrollable = MenuScrollable;
25895
+ exports.MenuSeparator = MenuSeparator;
25896
+ exports.MenuSub = MenuSub;
25897
+ exports.MenuSubContent = MenuSubContent;
25898
+ exports.MenuSubTrigger = MenuSubTrigger;
25899
+ exports.MenuTrigger = MenuTrigger;
24457
25900
  exports.Modal = Modal;
24458
25901
  exports.Pagination = Pagination;
24459
25902
  exports.PaginationSimple = PaginationSimple;