@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
@@ -0,0 +1,97 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var index = require('./index-DXNM3D1d.cjs');
6
+ var Combination = require('./Combination-B-rSVLfT.cjs');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ function _interopNamespaceDefault(e) {
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n.default = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
27
+
28
+ function createCollection(name) {
29
+ const PROVIDER_NAME = name + "CollectionProvider";
30
+ const [createCollectionContext, createCollectionScope] = index.createContextScope(PROVIDER_NAME);
31
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
32
+ PROVIDER_NAME,
33
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
34
+ );
35
+ const CollectionProvider = (props) => {
36
+ const { scope, children } = props;
37
+ const ref = React.useRef(null);
38
+ const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
39
+ return /* @__PURE__ */ jsxRuntime.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
40
+ };
41
+ CollectionProvider.displayName = PROVIDER_NAME;
42
+ const COLLECTION_SLOT_NAME = name + "CollectionSlot";
43
+ const CollectionSlot = React.forwardRef(
44
+ (props, forwardedRef) => {
45
+ const { scope, children } = props;
46
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
47
+ const composedRefs = Combination.useComposedRefs(forwardedRef, context.collectionRef);
48
+ return /* @__PURE__ */ jsxRuntime.jsx(Combination.Slot, { ref: composedRefs, children });
49
+ }
50
+ );
51
+ CollectionSlot.displayName = COLLECTION_SLOT_NAME;
52
+ const ITEM_SLOT_NAME = name + "CollectionItemSlot";
53
+ const ITEM_DATA_ATTR = "data-radix-collection-item";
54
+ const CollectionItemSlot = React.forwardRef(
55
+ (props, forwardedRef) => {
56
+ const { scope, children, ...itemData } = props;
57
+ const ref = React.useRef(null);
58
+ const composedRefs = Combination.useComposedRefs(forwardedRef, ref);
59
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
60
+ React.useEffect(() => {
61
+ context.itemMap.set(ref, { ref, ...itemData });
62
+ return () => void context.itemMap.delete(ref);
63
+ });
64
+ return /* @__PURE__ */ jsxRuntime.jsx(Combination.Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
65
+ }
66
+ );
67
+ CollectionItemSlot.displayName = ITEM_SLOT_NAME;
68
+ function useCollection(scope) {
69
+ const context = useCollectionContext(name + "CollectionConsumer", scope);
70
+ const getItems = React.useCallback(() => {
71
+ const collectionNode = context.collectionRef.current;
72
+ if (!collectionNode) return [];
73
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
74
+ const items = Array.from(context.itemMap.values());
75
+ const orderedItems = items.sort(
76
+ (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
77
+ );
78
+ return orderedItems;
79
+ }, [context.collectionRef, context.itemMap]);
80
+ return getItems;
81
+ }
82
+ return [
83
+ { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
84
+ useCollection,
85
+ createCollectionScope
86
+ ];
87
+ }
88
+
89
+ // packages/react/direction/src/Direction.tsx
90
+ var DirectionContext = React__namespace.createContext(void 0);
91
+ function useDirection(localDir) {
92
+ const globalDir = React__namespace.useContext(DirectionContext);
93
+ return localDir || globalDir || "ltr";
94
+ }
95
+
96
+ exports.createCollection = createCollection;
97
+ exports.useDirection = useDirection;
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * Do not edit directly
5
- * Generated on Thu, 06 Mar 2025 14:17:53 GMT
5
+ * Generated on Mon, 19 May 2025 14:54:16 GMT
6
6
  */
7
7
  var ArcSizeBreakpointsXs = "320px";
8
8
  var ArcSizeBreakpointsS = "636px";
@@ -0,0 +1,11 @@
1
+ import { _ as __rest, a as __assign } from './filter-attrs-B6CM-NUr.mjs';
2
+ import React__default from 'react';
3
+ import { I as Image } from './Image-Dl8oH1Rn.mjs';
4
+
5
+ var BannerImage = function (_a) {
6
+ var sources = _a.sources, ariaHidden = _a.ariaHidden, props = __rest(_a, ["sources", "ariaHidden"]);
7
+ return (React__default.createElement(Image, __assign({ "aria-hidden": ariaHidden, fadeOnLoad: true }, props), sources &&
8
+ sources.map(function (source) { return React__default.createElement("source", __assign({ key: source.srcSet }, source)); })));
9
+ };
10
+
11
+ export { BannerImage as B };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not edit directly
3
+ * Generated file
4
+ */
5
+
6
+ const BtIconArrowRight =
7
+ "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";
8
+
9
+ export { BtIconArrowRight as B };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Do not edit directly
3
+ * Generated file
4
+ */
5
+
6
+ const BtIconChevronLeft2Px =
7
+ "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";
8
+
9
+ /**
10
+ * Do not edit directly
11
+ * Generated file
12
+ */
13
+
14
+ const BtIconChevronRight2Px =
15
+ "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";
16
+
17
+ export { BtIconChevronLeft2Px as B, BtIconChevronRight2Px as a };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not edit directly
3
+ * Generated file
4
+ */
5
+
6
+ const BtIconChevronRightMid =
7
+ "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";
8
+
9
+ export { BtIconChevronRightMid as B };
@@ -2,7 +2,7 @@ import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6C
2
2
  import React__default, { forwardRef, useContext } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
4
  import { s as suffixModifier } from './suffix-modifier-B_pO0UkF.mjs';
5
- import { I as Icon } from './Icon-B626JGP1.mjs';
5
+ import { I as Icon } from './Icon-MZfaoOo9.mjs';
6
6
  import { C as Context } from './Surface-Colbp3Zx.mjs';
7
7
  import { T as ThemeIcon } from './ThemeIcon-CN_Ed5b1.mjs';
8
8
 
@@ -1,13 +1,14 @@
1
1
  import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
2
  import React__default, { forwardRef, useContext } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { I as Icon } from './Icon-B626JGP1.mjs';
4
+ import { I as Icon } from './Icon-MZfaoOo9.mjs';
5
5
  import { C as Context } from './Surface-Colbp3Zx.mjs';
6
6
  import { S as Spinner } from './Spinner-Cd7LiPTy.mjs';
7
7
 
8
8
  var ButtonV2 = forwardRef(function (_a, ref) {
9
- 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"]);
9
+ 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"]);
10
10
  var surface = useContext(Context).surface;
11
+ var ButtonElement = isSpan ? "span" : "button";
11
12
  var iconSizes = {
12
13
  s: 16,
13
14
  m: 32,
@@ -22,6 +23,16 @@ var ButtonV2 = forwardRef(function (_a, ref) {
22
23
  "arc-ButtonV2--withIconBeforeText": iconPosition === "beforeText" && (icon || isLoading),
23
24
  });
24
25
  var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, filterAttrs(props));
26
+ var getIconColor = function (buttonStyle) {
27
+ switch (buttonStyle) {
28
+ case "compact":
29
+ case "secondary":
30
+ case "tertiary":
31
+ return surface === "light" ? "gradient" : "auto";
32
+ default:
33
+ return "auto";
34
+ }
35
+ };
25
36
  var buttonContent = (React__default.createElement("span", { className: classNames("arc-ButtonV2-inner", {
26
37
  "arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
27
38
  }) },
@@ -29,11 +40,11 @@ var ButtonV2 = forwardRef(function (_a, ref) {
29
40
  isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
30
41
  React__default.createElement(Spinner, { size: size }))),
31
42
  icon && !isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
32
- React__default.createElement(Icon, { size: iconSizes[size], icon: icon })))));
43
+ React__default.createElement(Icon, { color: getIconColor(buttonStyle), size: iconSizes[size], icon: icon })))));
33
44
  if (href && !isLoading) {
34
45
  return (React__default.createElement("a", __assign({}, commonProps, { className: ButtonV2Classes, href: href, rel: rel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, target: target }), buttonContent));
35
46
  }
36
- return (React__default.createElement("button", __assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }),
47
+ return (React__default.createElement(ButtonElement, __assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }),
37
48
  React__default.createElement("span", { className: classNames("arc-ButtonV2-inner", {
38
49
  "arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
39
50
  }) }, buttonContent)));
@@ -1,8 +1,7 @@
1
- 'use client';
2
1
  import { b as __spreadArray, a as __assign, _ as __rest, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
3
2
  import React__default, { createContext, forwardRef, useContext, useCallback, useRef, useState, useReducer, useEffect } from 'react';
4
3
  import { r as requiredArgs, t as toDate, b as toInteger, _ as _typeof, g as getDefaultOptions, f as format } from './index-Cr6KeQLU.mjs';
5
- import { a as ArcSizeBreakpointsM } from './index.es-JItYKukj.mjs';
4
+ import { A as ArcSizeBreakpointsM } from './index.es-C3WGtwrW.mjs';
6
5
  import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
7
6
  import { c as classNames } from './index-5C0-U8cc.mjs';
8
7
  import { T as Text } from './Text-CBlnm5CT.mjs';
@@ -10,8 +9,8 @@ import { V as VisuallyHidden } from './VisuallyHidden-DqAgoqJo.mjs';
10
9
  import './index-Spae4j7j.mjs';
11
10
  import { S as Surface } from './Surface-Colbp3Zx.mjs';
12
11
  import { H as Heading } from './Heading-CxHWefi7.mjs';
13
- import { B as BtIconChevronRightMid } from './BtIconChevronRightMid-DB68JQ0u.mjs';
14
- import { I as Icon } from './Icon-B626JGP1.mjs';
12
+ import { B as BtIconChevronRightMid } from './BtIconChevronRightMid-DE4lmVaG.mjs';
13
+ import { I as Icon } from './Icon-MZfaoOo9.mjs';
15
14
 
16
15
  /**
17
16
  * @name addMonths
@@ -1127,24 +1126,13 @@ var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
1127
1126
  React__default.createElement("span", { "aria-hidden": true }, getDate(date)))))))));
1128
1127
  });
1129
1128
 
1130
- const BtIconChevronDownMid = (props) =>
1131
- /*#__PURE__*/ React__default.createElement(
1132
- "svg",
1133
- Object.assign(
1134
- {
1135
- viewBox: "0 0 32 32",
1136
- fill: "none",
1137
- xmlns: "http://www.w3.org/2000/svg",
1138
- },
1139
- props,
1140
- ),
1141
- /*#__PURE__*/ React__default.createElement("path", {
1142
- fillRule: "evenodd",
1143
- clipRule: "evenodd",
1144
- 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",
1145
- fill: "currentColor",
1146
- }),
1147
- );
1129
+ /**
1130
+ * Do not edit directly
1131
+ * Generated file
1132
+ */
1133
+
1134
+ const BtIconChevronDownMid =
1135
+ "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";
1148
1136
 
1149
1137
  var CalendarDateSelect = function (_a) {
1150
1138
  var ariaLabel = _a.ariaLabel, onChange = _a.onChange, name = _a.name, value = _a.value, displayValue = _a.displayValue, options = _a.options;
@@ -1338,24 +1326,13 @@ var CalendarDayGrid = function (_a) {
1338
1326
  React__default.createElement("tbody", { onKeyDown: handleKeyDown }, getWeeksInMonth(month).map(function (week, i) { return (React__default.createElement("tr", { key: "".concat(month.getTime(), "-week-").concat(i) }, week.map(function (day) { return (React__default.createElement(CalendarDayNumber, { ref: autoFocusRef, shouldRender: isSameMonth(month, day), key: day.getTime(), date: day, isFocusWithinDayGrid: isFocusWithinDayGrid })); }))); }))))); })));
1339
1327
  };
1340
1328
 
1341
- const BtIconChevronLeftMid = (props) =>
1342
- /*#__PURE__*/ React__default.createElement(
1343
- "svg",
1344
- Object.assign(
1345
- {
1346
- viewBox: "0 0 16 16",
1347
- fill: "none",
1348
- xmlns: "http://www.w3.org/2000/svg",
1349
- },
1350
- props,
1351
- ),
1352
- /*#__PURE__*/ React__default.createElement("path", {
1353
- fillRule: "evenodd",
1354
- clipRule: "evenodd",
1355
- 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",
1356
- fill: "currentColor",
1357
- }),
1358
- );
1329
+ /**
1330
+ * Do not edit directly
1331
+ * Generated file
1332
+ */
1333
+
1334
+ const BtIconChevronLeftMid =
1335
+ "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";
1359
1336
 
1360
1337
  var CalendarNavButton = function (_a) {
1361
1338
  var isDisabled = _a.isDisabled, onClick = _a.onClick, direction = _a.direction, ariaLabel = _a.ariaLabel;
@@ -1,59 +1,23 @@
1
- 'use client';
2
1
  import React__default from 'react';
3
2
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { B as BtIconArrowRight } from './BtIconArrowRight-CTjAzV9X.mjs';
5
- import { B as BtIconPlayFill } from './BtIconPlayFill-DEoVOrOQ.mjs';
6
- import { I as Icon } from './Icon-B626JGP1.mjs';
3
+ import { I as Icon } from './Icon-MZfaoOo9.mjs';
7
4
  import { i as isDate, f as format } from './index-Cr6KeQLU.mjs';
8
5
 
9
- const BtIconPlay = (props) =>
10
- /*#__PURE__*/ React__default.createElement(
11
- "svg",
12
- Object.assign(
13
- {
14
- xmlns: "http://www.w3.org/2000/svg",
15
- viewBox: "0 0 32 32",
16
- },
17
- props,
18
- ),
19
- /*#__PURE__*/ React__default.createElement("defs", null),
20
- /*#__PURE__*/ React__default.createElement("path", {
21
- 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",
22
- fill: "currentColor",
23
- }),
24
- /*#__PURE__*/ React__default.createElement("path", {
25
- 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",
26
- fill: "currentColor",
27
- }),
28
- );
29
-
30
- const BtIconArrowRightFill = (props) =>
31
- /*#__PURE__*/ React__default.createElement(
32
- "svg",
33
- Object.assign(
34
- {
35
- xmlns: "http://www.w3.org/2000/svg",
36
- viewBox: "0 0 32 32",
37
- },
38
- props,
39
- ),
40
- /*#__PURE__*/ React__default.createElement("defs", null),
41
- /*#__PURE__*/ React__default.createElement("path", {
42
- 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",
43
- fill: "currentColor",
44
- }),
45
- );
6
+ 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";
7
+ 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";
8
+ 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";
9
+ 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";
46
10
 
47
11
  var CardFooter = function (_a) {
48
12
  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;
49
13
  var icons = {
50
14
  arrow: {
51
- regular: BtIconArrowRight,
52
- filled: BtIconArrowRightFill,
15
+ regular: ArrowRight,
16
+ filled: ArrowRightFill,
53
17
  },
54
18
  play: {
55
- regular: BtIconPlay,
56
- filled: BtIconPlayFill,
19
+ regular: Play,
20
+ filled: PlayFill,
57
21
  },
58
22
  };
59
23
  return (React__default.createElement("div", { className: classNames("arc-CardFooter", {
@@ -1432,4 +1432,4 @@ var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
1432
1432
  var ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });
1433
1433
  ReactRemoveScroll.classNames = RemoveScroll.classNames;
1434
1434
 
1435
- export { DismissableLayer as D, FocusScope as F, Primitive as P, ReactRemoveScroll as R, Slot as S, useFocusGuards as a, Portal as b, composeEventHandlers as c, hideOthers as h, useComposedRefs as u };
1435
+ export { DismissableLayer as D, FocusScope as F, Primitive as P, ReactRemoveScroll as R, Slot as S, useFocusGuards as a, Portal as b, composeEventHandlers as c, composeRefs as d, dispatchDiscreteCustomEvent as e, hideOthers as h, useComposedRefs as u };
@@ -1,30 +1,20 @@
1
- 'use client';
2
1
  import { b as __spreadArray, a as __assign, _ as __rest, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
3
2
  import React__default, { forwardRef, useId, useRef, useReducer } from 'react';
4
- import { R as Root2, A as Anchor2, P as Portal, C as Content2 } from './index-ZYyu0Vjh.mjs';
3
+ import { R as Root2, A as Anchor2, P as Portal, C as Content2 } from './index-CxrL7jIX.mjs';
5
4
  import { c as classNames } from './index-5C0-U8cc.mjs';
6
5
  import { u as useAriaDescribedby, F as FormControl } from './FormControl-B9fp1ilz.mjs';
7
6
  import { e as useThemeElement } from './index-Bz2JQq34.mjs';
8
7
  import { B as Box } from './Box-BYm_GTct.mjs';
9
- import { I as Icon } from './Icon-B626JGP1.mjs';
8
+ import { I as Icon } from './Icon-MZfaoOo9.mjs';
10
9
  import { T as ThemeIcon } from './ThemeIcon-CN_Ed5b1.mjs';
11
10
 
12
- const BtIconChevronDown2Px = (props) =>
13
- /*#__PURE__*/ React__default.createElement(
14
- "svg",
15
- Object.assign(
16
- {
17
- xmlns: "http://www.w3.org/2000/svg",
18
- viewBox: "0 0 32 32",
19
- },
20
- props,
21
- ),
22
- /*#__PURE__*/ React__default.createElement("defs", null),
23
- /*#__PURE__*/ React__default.createElement("path", {
24
- 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",
25
- fill: "currentColor",
26
- }),
27
- );
11
+ /**
12
+ * Do not edit directly
13
+ * Generated file
14
+ */
15
+
16
+ const BtIconChevronDown2Px =
17
+ "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";
28
18
 
29
19
  var filterOptions = function (options, value) {
30
20
  return options.filter(function (option) {
@@ -270,7 +260,7 @@ var ComboBox = forwardRef(function (_a, ref) {
270
260
  isAutocomplete && (React__default.createElement("div", { className: classNames("arc-ComboBox-inputIcon", {
271
261
  "arc-ComboBox-inputIcon--expanded": isExpanded,
272
262
  }) },
273
- React__default.createElement(Icon, { isPresentationIcon: true, icon: BtIconChevronDown2Px, size: 24 }))))),
263
+ React__default.createElement(Icon, { icon: BtIconChevronDown2Px, size: 24 }))))),
274
264
  React__default.createElement(Anchor2, null),
275
265
  React__default.createElement(Portal, { container: themeElement },
276
266
  React__default.createElement(Content2, { align: "start", sideOffset: 5, onInteractOutside: onInteractOutside, onOpenAutoFocus: onOpenAutoFocus },
@@ -1,9 +1,10 @@
1
1
  import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
2
  import React__default, { useState, isValidElement } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { R as Root2, T as Trigger, V as Value, I as Icon, P as Portal, C as Content2, S as ScrollUpButton, a as Viewport, b as Item, c as ItemText, d as ItemIndicator, e as ScrollDownButton } from './index-CpOcAL8k.mjs';
4
+ import { R as Root2, T as Trigger, V as Value, I as Icon, P as Portal, C as Content2, S as ScrollUpButton, a as Viewport, b as Item, c as ItemText, d as ItemIndicator, e as ScrollDownButton } from './index-CYUcQl4W.mjs';
5
5
  import { T as ThemeIcon } from './ThemeIcon-CN_Ed5b1.mjs';
6
6
  import { e as useThemeElement } from './index-Bz2JQq34.mjs';
7
+ import { V as VisuallyHidden } from './VisuallyHidden-DqAgoqJo.mjs';
7
8
 
8
9
  // src/get-text-width/get-text-width.ts
9
10
  var getTextWidth = (text, font) => {
@@ -43,7 +44,8 @@ var ContentSwitcherDropdown = function (_a) {
43
44
  React__default.createElement(Trigger, { className: "arc-ContentSwitcherDropdown-selectTrigger", "aria-label": ariaLabel },
44
45
  React__default.createElement(Value, null),
45
46
  React__default.createElement(Icon, { className: "arc-ContentSwitcherDropdown-selectTriggerIcon" },
46
- React__default.createElement(ThemeIcon, { size: 24, icon: "selectTrigger" })))),
47
+ React__default.createElement(ThemeIcon, { size: 24, icon: "selectTrigger" })),
48
+ React__default.createElement(VisuallyHidden, null, ". This is a content switcher. Use the dropdown to select a section. The content below will update based on your selection."))),
47
49
  React__default.createElement(Portal, { container: themeElement },
48
50
  React__default.createElement(Content2, { className: "arc-ContentSwitcherDropdown-selectContent", sideOffset: 8, position: "popper" },
49
51
  React__default.createElement(ScrollUpButton, null),
@@ -1,8 +1,8 @@
1
1
  import { b as __spreadArray, _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
2
  import React__default, { forwardRef, useState, useRef, useEffect } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { R as Root2, A as Anchor2, P as Portal, C as Content2 } from './index-ZYyu0Vjh.mjs';
5
- import { C as Calendar, i as isBefore, a as isAfter, c as compareAsc } from './Calendar-C_b271wl.mjs';
4
+ import { R as Root2, A as Anchor2, P as Portal, C as Content2 } from './index-CxrL7jIX.mjs';
5
+ import { C as Calendar, i as isBefore, a as isAfter, c as compareAsc } from './Calendar-L6u3D8xb.mjs';
6
6
  import { r as requiredArgs, t as toDate, a as isValid, f as format } from './index-Cr6KeQLU.mjs';
7
7
  import { e as useThemeElement } from './index-Bz2JQq34.mjs';
8
8
  import { a as TextInputWithPlaceHolder } from './TextInput-Vp_cBbpQ.mjs';
@@ -0,0 +1,80 @@
1
+ import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
+ import React__default, { forwardRef, useContext } from 'react';
3
+ import { c as classNames } from './index-5C0-U8cc.mjs';
4
+ import { c as camelcase } from './index-Spae4j7j.mjs';
5
+ import { I as Icon } from './Icon-MZfaoOo9.mjs';
6
+ import { C as Context } from './Surface-Colbp3Zx.mjs';
7
+ import { S as Spinner } from './Spinner-Cd7LiPTy.mjs';
8
+
9
+ /**
10
+ * Do not edit directly
11
+ * Generated file
12
+ */
13
+
14
+ const BtIconArrowAltRight =
15
+ "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";
16
+
17
+ /**
18
+ * Do not edit directly
19
+ * Generated file
20
+ */
21
+
22
+ const BtIconArrowAltDown =
23
+ "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";
24
+
25
+ /**
26
+ * Do not edit directly
27
+ * Generated file
28
+ */
29
+
30
+ const ArcIconPlay =
31
+ "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";
32
+
33
+ /**
34
+ * Do not edit directly
35
+ * Generated file
36
+ */
37
+
38
+ const ArcIconWarn =
39
+ "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";
40
+
41
+ var HeroButton = forwardRef(function (_a, ref) {
42
+ 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"]);
43
+ var surface = useContext(Context).surface;
44
+ var HeroButtonClasses = classNames("arc-HeroButton", ["arc-HeroButton--".concat(camelcase(buttonStyle))], {
45
+ "arc-HeroButton--onDarkSurface": surface === "dark",
46
+ "arc-HeroButton--emptyLabel": !label,
47
+ "arc-HeroButton--isLoading": isLoading,
48
+ "arc-HeroButton--withIcon": icon,
49
+ "arc-HeroButton--hasGradient": buttonStyle.includes("-gradient"),
50
+ });
51
+ var HeroButtonIcons = {
52
+ "arrow-right": BtIconArrowAltRight,
53
+ "arrow-down": BtIconArrowAltDown,
54
+ play: ArcIconPlay,
55
+ warning: ArcIconWarn,
56
+ };
57
+ var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, filterAttrs(props));
58
+ if (href && !isLoading) {
59
+ return (React__default.createElement("a", __assign({}, commonProps, { className: HeroButtonClasses, href: href, rel: rel, "aria-label": ariaLabel, target: target }),
60
+ React__default.createElement("span", { className: classNames("arc-HeroButton-inner") },
61
+ label && React__default.createElement("span", { className: "arc-HeroButton-label" }, label),
62
+ isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
63
+ React__default.createElement(Spinner, { size: "xxl" }))),
64
+ icon && !isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
65
+ React__default.createElement(Icon, { testId: "hero-button-icon", size: 48, icon: buttonStyle === "warning"
66
+ ? HeroButtonIcons["warning"]
67
+ : HeroButtonIcons[icon] }))))));
68
+ }
69
+ return (React__default.createElement("button", __assign({}, commonProps, { className: HeroButtonClasses, "aria-label": ariaLabel, disabled: isLoading, type: type, form: form }),
70
+ React__default.createElement("span", { className: classNames("arc-HeroButton-inner") },
71
+ label && React__default.createElement("span", { className: "arc-HeroButton-label" }, label),
72
+ icon && !isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
73
+ React__default.createElement(Icon, { testId: "hero-button-icon", size: 48, icon: buttonStyle === "warning"
74
+ ? HeroButtonIcons["warning"]
75
+ : HeroButtonIcons[icon] }))),
76
+ isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
77
+ React__default.createElement(Spinner, { size: "xxl" }))))));
78
+ });
79
+
80
+ export { HeroButton as H };
@@ -0,0 +1,36 @@
1
+ import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
+ import React__default, { useContext } from 'react';
3
+ import { c as classNames } from './index-5C0-U8cc.mjs';
4
+ import { s as suffixModifier } from './suffix-modifier-B_pO0UkF.mjs';
5
+ import { C as Context } from './Surface-Colbp3Zx.mjs';
6
+
7
+ /**
8
+ * Use `Icon` to display brand iconography.
9
+ */
10
+ var Icon = function (_a) {
11
+ var _b;
12
+ 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"]);
13
+ var surface = useContext(Context).surface;
14
+ var iconUrl = icon ? "url(\"".concat(icon, "\")") : undefined;
15
+ return (React__default.createElement("span", __assign({ "data-testid": testId, "aria-label": label, role: label ? "img" : undefined, className: classNames((_b = {},
16
+ _b["arc-Icon"] = true,
17
+ _b["arc-Icon--inline"] = isInline,
18
+ _b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
19
+ _b["arc-Icon--onDarkSurface"] = surface === "dark",
20
+ _b)), style: {
21
+ height: size,
22
+ width: size,
23
+ maskImage: iconUrl,
24
+ WebkitMaskImage: iconUrl,
25
+ } }, filterAttrs(props))));
26
+ };
27
+ var colors = [
28
+ "auto",
29
+ "brand",
30
+ "statusRed",
31
+ "statusAmber",
32
+ "statusGreen",
33
+ "gradient",
34
+ ];
35
+
36
+ export { Icon as I, colors as c };
@@ -1,7 +1,7 @@
1
1
  import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
2
  import React__default, { useContext, useState, useEffect, Suspense } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { A as ArcSizeBreakpointsS } from './index.es-JItYKukj.mjs';
4
+ import { a as ArcSizeBreakpointsS } from './index.es-C3WGtwrW.mjs';
5
5
  import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
6
6
  import { I as Image } from './Image-Dl8oH1Rn.mjs';
7
7
  import { H as Heading } from './Heading-CxHWefi7.mjs';
@@ -9,7 +9,7 @@ import { C as Context, S as Surface } from './Surface-Colbp3Zx.mjs';
9
9
  import { T as Text } from './Text-CBlnm5CT.mjs';
10
10
  import { V as VerticalSpace } from './VerticalSpace-Duhm0zXP.mjs';
11
11
  import { C as CardHeading } from './CardHeading-_setRRjq.mjs';
12
- import { C as CardFooter } from './CardFooter-6APGUbK4.mjs';
12
+ import { C as CardFooter } from './CardFooter-CgDDDI7Z.mjs';
13
13
  import { C as ConditionalWrapper } from './ConditionalWrapper-WoJxFYwS.mjs';
14
14
 
15
15
  var VideoPlayer = React__default.lazy(function () {