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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/lib/Alert/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/Avatar.cjs +2 -1
  7. package/lib/Avatar/Avatar.mjs +2 -1
  8. package/lib/Avatar/styles.css +1 -1
  9. package/lib/AvatarGroup/AvatarGroup.cjs +2 -1
  10. package/lib/AvatarGroup/AvatarGroup.mjs +2 -1
  11. package/lib/AvatarGroup/styles.css +1 -1
  12. package/lib/Badge/styles.css +1 -1
  13. package/lib/Banner/Banner.cjs +2 -3
  14. package/lib/Banner/Banner.mjs +2 -3
  15. package/lib/Box/styles.css +1 -1
  16. package/lib/BrandLogo/styles.css +1 -1
  17. package/lib/Breadcrumbs/Breadcrumbs.cjs +2 -1
  18. package/lib/Breadcrumbs/Breadcrumbs.mjs +2 -1
  19. package/lib/Breadcrumbs/styles.css +1 -1
  20. package/lib/Button/Button.cjs +2 -2
  21. package/lib/Button/Button.mjs +2 -2
  22. package/lib/Button/styles.css +1 -1
  23. package/lib/ButtonGroup/ButtonGroup.cjs +3 -3
  24. package/lib/ButtonGroup/ButtonGroup.mjs +3 -3
  25. package/lib/ButtonGroup/styles.css +1 -1
  26. package/lib/ButtonV2/ButtonV2.cjs +2 -2
  27. package/lib/ButtonV2/ButtonV2.mjs +2 -2
  28. package/lib/ButtonV2/styles.css +1 -1
  29. package/lib/Calendar/Calendar.cjs +3 -3
  30. package/lib/Calendar/Calendar.mjs +3 -3
  31. package/lib/Calendar/styles.css +1 -1
  32. package/lib/CardFooter/CardFooter.cjs +2 -2
  33. package/lib/CardFooter/CardFooter.mjs +2 -2
  34. package/lib/CardFooter/styles.css +1 -1
  35. package/lib/CardHeading/styles.css +1 -1
  36. package/lib/Carousel/Carousel.cjs +1 -1
  37. package/lib/Carousel/Carousel.mjs +1 -1
  38. package/lib/Carousel/styles.css +1 -1
  39. package/lib/Checkbox/Checkbox.cjs +2 -2
  40. package/lib/Checkbox/Checkbox.mjs +2 -2
  41. package/lib/Checkbox/styles.css +1 -1
  42. package/lib/Columns/styles.css +1 -1
  43. package/lib/ComboBox/ComboBox.cjs +3 -3
  44. package/lib/ComboBox/ComboBox.mjs +3 -3
  45. package/lib/ComboBox/styles.css +1 -1
  46. package/lib/ContentSwitcher/ContentSwitcher.cjs +1 -1
  47. package/lib/ContentSwitcher/ContentSwitcher.mjs +1 -1
  48. package/lib/ContentSwitcher/styles.css +1 -1
  49. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +1 -1
  50. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +1 -1
  51. package/lib/ContentSwitcherDropdown/styles.css +1 -1
  52. package/lib/DatePicker/DatePicker.cjs +196 -17
  53. package/lib/DatePicker/DatePicker.mjs +200 -17
  54. package/lib/DatePicker/styles.css +1 -1
  55. package/lib/Disclosure/styles.css +1 -1
  56. package/lib/DisclosureMini/styles.css +1 -1
  57. package/lib/Download/styles.css +1 -1
  58. package/lib/Drawer/Drawer.cjs +46 -323
  59. package/lib/Drawer/Drawer.mjs +44 -306
  60. package/lib/Drawer/styles.css +1 -1
  61. package/lib/Elevation/styles.css +1 -1
  62. package/lib/Filter/styles.css +1 -1
  63. package/lib/FormControl/FormControl.cjs +1 -1
  64. package/lib/FormControl/FormControl.mjs +1 -1
  65. package/lib/FormControl/styles.css +1 -1
  66. package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +1 -1
  67. package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +1 -1
  68. package/lib/GhostedHeroBanner/styles.css +1 -1
  69. package/lib/GradientPageBackground/GradientPageBackground.cjs +257 -0
  70. package/lib/GradientPageBackground/GradientPageBackground.mjs +237 -0
  71. package/lib/GradientPageBackground/styles.css +1 -0
  72. package/lib/Grid/styles.css +1 -1
  73. package/lib/Group/styles.css +1 -1
  74. package/lib/Heading/styles.css +1 -1
  75. package/lib/HeroBanner/HeroBanner.cjs +2 -3
  76. package/lib/HeroBanner/HeroBanner.mjs +2 -3
  77. package/lib/HeroBanner/styles.css +1 -1
  78. package/lib/HeroButton/HeroButton.cjs +2 -2
  79. package/lib/HeroButton/HeroButton.mjs +2 -2
  80. package/lib/HeroButton/styles.css +1 -1
  81. package/lib/Hidden/styles.css +1 -1
  82. package/lib/HorizontalCard/HorizontalCard.cjs +3 -2
  83. package/lib/HorizontalCard/HorizontalCard.mjs +3 -2
  84. package/lib/HorizontalCard/styles.css +1 -1
  85. package/lib/Icon/Icon.cjs +1 -1
  86. package/lib/Icon/Icon.mjs +1 -1
  87. package/lib/Icon/styles.css +1 -1
  88. package/lib/Image/styles.css +1 -1
  89. package/lib/ImpactCard/ImpactCard.cjs +7 -4
  90. package/lib/ImpactCard/ImpactCard.mjs +7 -4
  91. package/lib/ImpactCard/styles.css +1 -1
  92. package/lib/InformationCard/InformationCard.cjs +7 -5
  93. package/lib/InformationCard/InformationCard.mjs +7 -5
  94. package/lib/InformationCard/styles.css +1 -1
  95. package/lib/Link/Link.cjs +1 -1
  96. package/lib/Link/Link.mjs +1 -1
  97. package/lib/Link/styles.css +1 -1
  98. package/lib/Markup/styles.css +1 -1
  99. package/lib/MediaCard/MediaCard.cjs +3 -5
  100. package/lib/MediaCard/MediaCard.mjs +3 -5
  101. package/lib/MediaCard/styles.css +1 -1
  102. package/lib/Menu/Menu.cjs +35 -48
  103. package/lib/Menu/Menu.mjs +21 -34
  104. package/lib/Menu/styles.css +1 -1
  105. package/lib/Modal/Modal.cjs +2 -2
  106. package/lib/Modal/Modal.mjs +2 -2
  107. package/lib/Modal/styles.css +1 -1
  108. package/lib/Pagination/styles.css +1 -1
  109. package/lib/PaginationSimple/PaginationSimple.cjs +1 -1
  110. package/lib/PaginationSimple/PaginationSimple.mjs +1 -1
  111. package/lib/PaginationSimple/styles.css +1 -1
  112. package/lib/Popover/styles.css +1 -1
  113. package/lib/Poster/styles.css +1 -1
  114. package/lib/ProgressBar/styles.css +1 -1
  115. package/lib/ProgressStepper/ProgressStepper.cjs +10 -72
  116. package/lib/ProgressStepper/ProgressStepper.mjs +8 -74
  117. package/lib/ProgressStepper/styles.css +1 -1
  118. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +20 -0
  119. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +14 -0
  120. package/lib/ProgressStepperOverflow/styles.css +1 -0
  121. package/lib/RadioCardGroup/RadioCardGroup.cjs +3 -3
  122. package/lib/RadioCardGroup/RadioCardGroup.mjs +4 -4
  123. package/lib/RadioCardGroup/styles.css +1 -1
  124. package/lib/RadioGroup/RadioGroup.cjs +4 -5
  125. package/lib/RadioGroup/RadioGroup.mjs +5 -6
  126. package/lib/RadioGroup/styles.css +1 -1
  127. package/lib/Rule/styles.css +1 -1
  128. package/lib/ScrollToTop/ScrollToTop.cjs +5 -2
  129. package/lib/ScrollToTop/ScrollToTop.mjs +5 -2
  130. package/lib/ScrollToTop/styles.css +1 -1
  131. package/lib/Section/styles.css +1 -1
  132. package/lib/Select/Select.cjs +11 -15
  133. package/lib/Select/Select.mjs +12 -16
  134. package/lib/Select/styles.css +1 -1
  135. package/lib/SiteFooter/SiteFooter.cjs +10 -7
  136. package/lib/SiteFooter/SiteFooter.mjs +10 -7
  137. package/lib/SiteFooter/styles.css +1 -1
  138. package/lib/SiteFooterV2/SiteFooterV2.cjs +19 -22
  139. package/lib/SiteFooterV2/SiteFooterV2.mjs +19 -22
  140. package/lib/SiteFooterV2/styles.css +1 -1
  141. package/lib/SiteHeaderV2/SiteHeaderV2.cjs +4 -4
  142. package/lib/SiteHeaderV2/SiteHeaderV2.mjs +5 -5
  143. package/lib/SiteHeaderV2/styles.css +1 -1
  144. package/lib/Skeleton/styles.css +1 -1
  145. package/lib/SkipLink/styles.css +1 -1
  146. package/lib/Spinner/styles.css +1 -1
  147. package/lib/Surface/styles.css +1 -1
  148. package/lib/Switch/Switch.cjs +17 -14
  149. package/lib/Switch/Switch.mjs +17 -14
  150. package/lib/Switch/styles.css +1 -1
  151. package/lib/TabbedBanner/TabbedBanner.cjs +9 -6
  152. package/lib/TabbedBanner/TabbedBanner.mjs +9 -6
  153. package/lib/TabbedBanner/styles.css +1 -1
  154. package/lib/Tabs/Tabs.cjs +1 -1
  155. package/lib/Tabs/Tabs.mjs +1 -1
  156. package/lib/Tabs/styles.css +1 -1
  157. package/lib/Tag/Tag.cjs +1 -1
  158. package/lib/Tag/Tag.mjs +1 -1
  159. package/lib/Tag/styles.css +1 -1
  160. package/lib/TemplateBanner/TemplateBanner.cjs +2 -3
  161. package/lib/TemplateBanner/TemplateBanner.mjs +2 -3
  162. package/lib/TemplateBanner/styles.css +1 -1
  163. package/lib/Text/styles.css +1 -1
  164. package/lib/TextArea/TextArea.cjs +19 -17
  165. package/lib/TextArea/TextArea.mjs +19 -17
  166. package/lib/TextArea/styles.css +1 -1
  167. package/lib/TextInput/TextInput.cjs +2 -2
  168. package/lib/TextInput/TextInput.mjs +2 -2
  169. package/lib/TextInput/styles.css +1 -1
  170. package/lib/Theme/Theme.cjs +1 -1
  171. package/lib/Theme/Theme.mjs +1 -1
  172. package/lib/Theme/styles.css +1 -1
  173. package/lib/ThemeIcon/styles.css +1 -1
  174. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +5 -8
  175. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +5 -8
  176. package/lib/ThumbnailSignpost/styles.css +1 -1
  177. package/lib/Toast/styles.css +1 -1
  178. package/lib/Tooltip/Tooltip.cjs +1 -1
  179. package/lib/Tooltip/Tooltip.mjs +1 -1
  180. package/lib/Tooltip/styles.css +1 -1
  181. package/lib/Truncate/styles.css +1 -1
  182. package/lib/TypographyCard/TypographyCard.cjs +7 -4
  183. package/lib/TypographyCard/TypographyCard.mjs +7 -4
  184. package/lib/TypographyCard/styles.css +1 -1
  185. package/lib/UniversalHeader/styles.css +1 -1
  186. package/lib/VerticalSpace/styles.css +1 -1
  187. package/lib/VideoPlayer/VideoPlayer.cjs +1 -1
  188. package/lib/VideoPlayer/VideoPlayer.mjs +1 -1
  189. package/lib/VideoPlayer/styles.css +1 -1
  190. package/lib/Visible/Visible.cjs +6 -14
  191. package/lib/Visible/Visible.mjs +4 -16
  192. package/lib/Visible/styles.css +1 -1
  193. package/lib/VisuallyHidden/styles.css +1 -1
  194. package/lib/_shared/cjs/{Avatar-CxbjOB_b.cjs → Avatar-CrUioj_6.cjs} +4 -1
  195. package/lib/_shared/cjs/{Button-CKTa6bQL.cjs → Button-uD9mR8w-.cjs} +1 -1
  196. package/lib/_shared/cjs/{ButtonV2-CRNNZ_nd.cjs → ButtonV2-Bta5SVVY.cjs} +2 -2
  197. package/lib/_shared/cjs/{Calendar-C5C0evEy.cjs → Calendar-D4ZSaHHU.cjs} +3 -3
  198. package/lib/_shared/cjs/{CardFooter-DwE-u0Om.cjs → CardFooter-ChphRFHe.cjs} +1 -1
  199. package/lib/_shared/cjs/{Checkbox-D2UQsmiB.cjs → Checkbox-DfZMjO1Y.cjs} +1 -1
  200. package/lib/_shared/cjs/{ComboBox-BIMxZhJp.cjs → ComboBox-BGUhlqx1.cjs} +2 -2
  201. package/lib/_shared/cjs/{ContentSwitcherDropdown-CAWaAMZN.cjs → ContentSwitcherDropdown-U5ZTbJTe.cjs} +1 -1
  202. package/lib/_shared/cjs/{ContentSwitcherList-I7jCZn8C.cjs → ContentSwitcherList-nlxMHXs-.cjs} +3 -2
  203. package/lib/_shared/cjs/{DatePicker-BgU6iidG.cjs → DatePicker-DS6fAvxD.cjs} +48 -30
  204. package/lib/_shared/cjs/{FormControl-D3-JbAVb.cjs → FormControl-BPnKQrCm.cjs} +19 -13
  205. package/lib/_shared/cjs/{HeroButton-CiIygZ16.cjs → HeroButton-CrzkTUwP.cjs} +1 -1
  206. package/lib/_shared/cjs/{Icon-KMACQ1i3.cjs → Icon-CzhyKqMd.cjs} +1 -1
  207. package/lib/_shared/cjs/{MediaCard-kcqfmeue.cjs → MediaCard-BEZFbiYO.cjs} +5 -9
  208. package/lib/_shared/cjs/{MenuSubContent-Bs2_ebS3.cjs → MenuItemMultiLevelContent-vLr6hSBm.cjs} +7 -9
  209. package/lib/_shared/cjs/ProgressStepper-BL9Y5c4X.cjs +77 -0
  210. package/lib/_shared/cjs/ProgressStepperOverflow-v-TyS5Sp.cjs +142 -0
  211. package/lib/_shared/cjs/{RadioCardGroupInput-BmntgyWB.cjs → RadioCardGroupInput-CeUM3yPS.cjs} +1 -1
  212. package/lib/_shared/cjs/{RadioGroupInput-D3trTxB5.cjs → RadioGroupInput-w2qkfsnG.cjs} +2 -2
  213. package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-DgoCW2W3.cjs → SiteHeaderV2NavItemWithSubNav-fQPk0gZU.cjs} +3 -3
  214. package/lib/_shared/cjs/{TemplateBanner-BMi77IGK.cjs → TemplateBanner-CGtTUy81.cjs} +13 -6
  215. package/lib/_shared/cjs/{TextInput-DT4hi02U.cjs → TextInput-ByySubi5.cjs} +7 -7
  216. package/lib/_shared/cjs/Visible-Dx__9oZG.cjs +18 -0
  217. package/lib/_shared/cjs/{index.es-sqSQUWYg.cjs → index.es-DBEGtWPg.cjs} +1 -1
  218. package/lib/_shared/esm/{Avatar-B8aoUhmE.mjs → Avatar-Fb1E5MA9.mjs} +4 -1
  219. package/lib/_shared/esm/{Button-9L4AksQP.mjs → Button-BxuM3_gz.mjs} +1 -1
  220. package/lib/_shared/esm/{ButtonV2-2U4PvnpS.mjs → ButtonV2-DwYBAojW.mjs} +2 -2
  221. package/lib/_shared/esm/{Calendar-L6u3D8xb.mjs → Calendar-CjqPM7ta.mjs} +3 -3
  222. package/lib/_shared/esm/{CardFooter-CgDDDI7Z.mjs → CardFooter-fsAY4cc6.mjs} +1 -1
  223. package/lib/_shared/esm/{Checkbox-NxnK40uZ.mjs → Checkbox-CwOHzlQF.mjs} +1 -1
  224. package/lib/_shared/esm/{ComboBox-DUTrEu0N.mjs → ComboBox-CRlJjeev.mjs} +2 -2
  225. package/lib/_shared/esm/{ContentSwitcherDropdown-dktkyAjY.mjs → ContentSwitcherDropdown-BCkuAfwC.mjs} +1 -1
  226. package/lib/_shared/esm/{ContentSwitcherList-OnZoE86O.mjs → ContentSwitcherList-DKPD9GfN.mjs} +3 -2
  227. package/lib/_shared/esm/{DatePicker-CccSfg17.mjs → DatePicker-3sYJ3wGn.mjs} +46 -31
  228. package/lib/_shared/esm/{FormControl-B9fp1ilz.mjs → FormControl-CWyrVi1u.mjs} +19 -13
  229. package/lib/_shared/esm/{HeroButton-HYskwyvn.mjs → HeroButton-jdjjV_Gf.mjs} +1 -1
  230. package/lib/_shared/esm/{Icon-MZfaoOo9.mjs → Icon-CcPOJcQm.mjs} +1 -1
  231. package/lib/_shared/esm/{MediaCard-CjTDOvmx.mjs → MediaCard-DqMaNWsE.mjs} +5 -9
  232. package/lib/_shared/esm/{MenuSubContent-Cv9mSn58.mjs → MenuItemMultiLevelContent-JTOHqpzg.mjs} +7 -8
  233. package/lib/_shared/esm/ProgressStepper-CLBtBNy2.mjs +74 -0
  234. package/lib/_shared/esm/ProgressStepperOverflow-B9ba8ljs.mjs +140 -0
  235. package/lib/_shared/esm/{RadioCardGroupInput-Cy1r7M8l.mjs → RadioCardGroupInput-D7W28geB.mjs} +1 -1
  236. package/lib/_shared/esm/{RadioGroupInput-DiRS2jwQ.mjs → RadioGroupInput-zAWSV29m.mjs} +2 -2
  237. package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-BLqiSeEC.mjs → SiteHeaderV2NavItemWithSubNav-BMoBdUxK.mjs} +3 -3
  238. package/lib/_shared/esm/{TemplateBanner-zc4VmeeW.mjs → TemplateBanner-Up6cR-3_.mjs} +14 -7
  239. package/lib/_shared/esm/{TextInput-Vp_cBbpQ.mjs → TextInput-Dk7qNGoh.mjs} +7 -7
  240. package/lib/_shared/esm/Visible-C-jVXUWp.mjs +16 -0
  241. package/lib/_shared/esm/{index.es-C3WGtwrW.mjs → index.es-DCvYtQfu.mjs} +2 -2
  242. package/lib/index.cjs +1177 -877
  243. package/lib/index.cjs.map +1 -1
  244. package/lib/index.d.cts +193 -63
  245. package/lib/index.d.mts +193 -63
  246. package/lib/index.js.map +1 -1
  247. package/lib/index.mjs +1167 -872
  248. package/lib/index.mjs.map +1 -1
  249. package/lib/styles.css +8 -22
  250. package/package.json +8 -8
  251. package/lib/GradientBackground/GradientBackground.cjs +0 -19
  252. package/lib/GradientBackground/GradientBackground.mjs +0 -17
  253. package/lib/GradientBackground/styles.css +0 -1
@@ -42,14 +42,15 @@ var Provider = Context.Provider;
42
42
  * Use `FormControl` to provide inputs with labels, helper text and error messages
43
43
  */
44
44
  var FormControl = function (_a) {
45
- var children = _a.children, _b = _a.elementType, ElementType = _b === void 0 ? "div" : _b, errorMessage = _a.errorMessage, helper = _a.helper, htmlFor = _a.htmlFor, supplementaryInfo = _a.supplementaryInfo, id = _a.id, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.labelPosition, labelPosition = _d === void 0 ? "top" : _d, _e = _a.requirementStatus, requirementStatus = _e === void 0 ? "optional" : _e, _f = _a.helperUnderLabel, helperUnderLabel = _f === void 0 ? false : _f, isDisabled = _a.isDisabled, _g = _a.hideLabel, hideLabel = _g === void 0 ? false : _g, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest(_a, ["children", "elementType", "errorMessage", "helper", "htmlFor", "supplementaryInfo", "id", "label", "labelSize", "labelPosition", "requirementStatus", "helperUnderLabel", "isDisabled", "hideLabel", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
45
+ var _b;
46
+ var children = _a.children, _c = _a.elementType, ElementType = _c === void 0 ? "div" : _c, errorMessage = _a.errorMessage, helper = _a.helper, htmlFor = _a.htmlFor, supplementaryInfo = _a.supplementaryInfo, id = _a.id, label = _a.label, _d = _a.labelSize, labelSize = _d === void 0 ? "l" : _d, _e = _a.labelPosition, labelPosition = _e === void 0 ? "top" : _e, _f = _a.requirementStatus, requirementStatus = _f === void 0 ? "optional" : _f, _g = _a.helperUnderLabel, helperUnderLabel = _g === void 0 ? false : _g, isDisabled = _a.isDisabled, _h = _a.hideLabel, hideLabel = _h === void 0 ? false : _h, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest(_a, ["children", "elementType", "errorMessage", "helper", "htmlFor", "supplementaryInfo", "id", "label", "labelSize", "labelPosition", "requirementStatus", "helperUnderLabel", "isDisabled", "hideLabel", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
46
47
  var surface = useContext(Context$1).surface;
47
- var _h = useAriaDescribedby({
48
+ var _j = useAriaDescribedby({
48
49
  disclosureText: disclosureText,
49
50
  errorMessage: errorMessage,
50
51
  helper: helper,
51
52
  id: htmlFor || id, // `htmlFor` is preference to keep this deterministic with TextInput
52
- }), ariaDescribedby = _h.ariaDescribedby, idError = _h.idError, idHelper = _h.idHelper, idDisclosure = _h.idDisclosure;
53
+ }), ariaDescribedby = _j.ariaDescribedby, idError = _j.idError, idHelper = _j.idHelper, idDisclosure = _j.idDisclosure;
53
54
  var LabelType = ElementType === "div" ? "label" : "legend";
54
55
  var elementProps = {};
55
56
  var labelProps = {};
@@ -69,22 +70,27 @@ var FormControl = function (_a) {
69
70
  ? Boolean(errorMessage || disclosureTitle || supplementaryInfo)
70
71
  : Boolean(errorMessage || disclosureTitle || helper || supplementaryInfo);
71
72
  return (React__default.createElement(Provider, { value: { requirementStatus: requirementStatus } },
72
- React__default.createElement(ElementType, __assign({ className: classNames({
73
- "arc-FormControl": true,
74
- "arc-FormControl--isDisabled": isDisabled,
75
- "arc-FormControl--smallLabel": labelSize === "s",
76
- "arc-FormControl--onDarkSurface": surface === "dark",
77
- "arc-FormControl--sideLabel": labelPosition === "left",
78
- }), id: id }, elementProps, filterAttrs(props)),
73
+ React__default.createElement(ElementType, __assign({ className: classNames((_b = {
74
+ "arc-FormControl": true,
75
+ "arc-FormControl--isDisabled": isDisabled,
76
+ "arc-FormControl--onDarkSurface": surface === "dark",
77
+ "arc-FormControl--sideLabel": labelPosition === "left"
78
+ },
79
+ _b["arc-FormControl--".concat(labelSize)] = labelSize !== "l",
80
+ _b)), id: id }, elementProps, filterAttrs(props)),
79
81
  hideLabel === true ? (React__default.createElement(VisuallyHidden, null,
80
82
  React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
81
83
  "arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper,
82
84
  }) }, labelProps),
83
- label,
85
+ label && (React__default.createElement("span", { className: classNames("arc-FormControl-labelText", {
86
+ "arc-FormControl-labelText--withOptional": requirementStatus === "optional",
87
+ }) }, label)),
84
88
  requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))) : (React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
85
89
  "arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper,
86
90
  }) }, labelProps),
87
- label,
91
+ label && (React__default.createElement("span", { className: classNames("arc-FormControl-labelText", {
92
+ "arc-FormControl-labelText--withOptional": requirementStatus === "optional",
93
+ }) }, label)),
88
94
  requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)")))),
89
95
  helperUnderLabel && helper && (React__default.createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)),
90
96
  children,
@@ -97,7 +103,7 @@ var FormControl = function (_a) {
97
103
  React__default.createElement("span", { className: "arc-FormControl-error--icon" },
98
104
  React__default.createElement(ThemeIcon, { icon: "formControlAlert" })),
99
105
  errorMessage)) : (!helperUnderLabel &&
100
- (disclosureTitle ? (React__default.createElement(DisclosureMini, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize, id: idDisclosure }, disclosureText)) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))))),
106
+ (disclosureTitle ? (React__default.createElement(DisclosureMini, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize === "m" ? "l" : labelSize, id: idDisclosure }, disclosureText)) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))))),
101
107
  supplementaryInfo && (React__default.createElement("div", { className: "arc-FormControl-supplementaryInfo" }, supplementaryInfo))))));
102
108
  };
103
109
 
@@ -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 { c as camelcase } from './index-Spae4j7j.mjs';
5
- import { I as Icon } from './Icon-MZfaoOo9.mjs';
5
+ import { I as Icon } from './Icon-CcPOJcQm.mjs';
6
6
  import { C as Context } from './Surface-Colbp3Zx.mjs';
7
7
  import { S as Spinner } from './Spinner-Cd7LiPTy.mjs';
8
8
 
@@ -27,10 +27,10 @@ var Icon = function (_a) {
27
27
  var colors = [
28
28
  "auto",
29
29
  "brand",
30
+ "brand-alt",
30
31
  "statusRed",
31
32
  "statusAmber",
32
33
  "statusGreen",
33
- "gradient",
34
34
  ];
35
35
 
36
36
  export { Icon as I, colors as c };
@@ -1,15 +1,13 @@
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-C3WGtwrW.mjs';
5
- import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
6
4
  import { I as Image } from './Image-Dl8oH1Rn.mjs';
7
5
  import { H as Heading } from './Heading-CxHWefi7.mjs';
8
6
  import { C as Context, S as Surface } from './Surface-Colbp3Zx.mjs';
9
7
  import { T as Text } from './Text-CBlnm5CT.mjs';
10
8
  import { V as VerticalSpace } from './VerticalSpace-Duhm0zXP.mjs';
11
9
  import { C as CardHeading } from './CardHeading-_setRRjq.mjs';
12
- import { C as CardFooter } from './CardFooter-CgDDDI7Z.mjs';
10
+ import { C as CardFooter } from './CardFooter-fsAY4cc6.mjs';
13
11
  import { C as ConditionalWrapper } from './ConditionalWrapper-WoJxFYwS.mjs';
14
12
 
15
13
  var VideoPlayer = React__default.lazy(function () {
@@ -28,8 +26,6 @@ var MediaCard = function (_a) {
28
26
  var surface = useContext(Context).surface;
29
27
  var _e = useState(false), isClient = _e[0], setIsClient = _e[1];
30
28
  var _f = useState(false), showHoverState = _f[0], setShowHoverState = _f[1];
31
- var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
32
- var headingSpacing = isMinWidthArcBreakpointS ? "16" : "8";
33
29
  var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
34
30
  useEffect(function () {
35
31
  setIsClient(true);
@@ -45,12 +41,12 @@ var MediaCard = function (_a) {
45
41
  media.type === "video" && isClient && (React__default.createElement(Suspense, { fallback: null },
46
42
  React__default.createElement(VideoPlayer, __assign({ isSupportingTextHidden: true }, media)))),
47
43
  React__default.createElement("div", { className: "arc-MediaCard-content" },
48
- label && (React__default.createElement(React__default.Fragment, null,
49
- React__default.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
50
- React__default.createElement(VerticalSpace, { size: headingSpacing }))),
44
+ label && (React__default.createElement("div", { className: "arc-MediaCard-label" },
45
+ React__default.createElement(Heading, { level: "3", fontStyle: "overline" }, label),
46
+ React__default.createElement(VerticalSpace, { size: "16" }))),
51
47
  React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: media.type !== "video" ? url : undefined, onClick: media.type !== "video" ? onClick : undefined, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
52
48
  React__default.createElement("div", { className: "arc-MediaCard-textContainer" }, text && (React__default.createElement(React__default.Fragment, null,
53
- React__default.createElement(VerticalSpace, { size: headingSpacing }),
49
+ React__default.createElement(VerticalSpace, { size: "16" }),
54
50
  React__default.createElement(Text, null, text),
55
51
  (url || metaText) && React__default.createElement(VerticalSpace, { size: "24" })))),
56
52
  React__default.createElement(CardFooter, { buttonIcon: buttonIcon, metaText: metaText, showButton: Boolean(url) && media.type !== "video", isHovered: showHoverState })))));
@@ -908,7 +908,7 @@ var MenuSubTrigger = React.forwardRef(
908
908
  );
909
909
  MenuSubTrigger.displayName = SUB_TRIGGER_NAME$1;
910
910
  var SUB_CONTENT_NAME$1 = "MenuSubContent";
911
- var MenuSubContent$1 = React.forwardRef(
911
+ var MenuSubContent = React.forwardRef(
912
912
  (props, forwardedRef) => {
913
913
  const portalContext = usePortalContext(CONTENT_NAME$1, props.__scopeMenu);
914
914
  const { forceMount = portalContext.forceMount, ...subContentProps } = props;
@@ -954,7 +954,7 @@ var MenuSubContent$1 = React.forwardRef(
954
954
  ) }) }) });
955
955
  }
956
956
  );
957
- MenuSubContent$1.displayName = SUB_CONTENT_NAME$1;
957
+ MenuSubContent.displayName = SUB_CONTENT_NAME$1;
958
958
  function getOpenState(open) {
959
959
  return open ? "open" : "closed";
960
960
  }
@@ -1023,7 +1023,7 @@ var Separator = MenuSeparator;
1023
1023
  var Arrow2 = MenuArrow;
1024
1024
  var Sub = MenuSub;
1025
1025
  var SubTrigger = MenuSubTrigger;
1026
- var SubContent = MenuSubContent$1;
1026
+ var SubContent = MenuSubContent;
1027
1027
 
1028
1028
  var DROPDOWN_MENU_NAME = "DropdownMenu";
1029
1029
  var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
@@ -1268,7 +1268,6 @@ var Trigger = DropdownMenuTrigger;
1268
1268
  var Portal2 = DropdownMenuPortal;
1269
1269
  var Content2 = DropdownMenuContent;
1270
1270
  var Group2 = DropdownMenuGroup;
1271
- var Label2 = DropdownMenuLabel;
1272
1271
  var Item2 = DropdownMenuItem;
1273
1272
  var CheckboxItem2 = DropdownMenuCheckboxItem;
1274
1273
  var RadioGroup2 = DropdownMenuRadioGroup;
@@ -1287,11 +1286,11 @@ var MenuContent = React__default.forwardRef(function (_a, ref) {
1287
1286
  });
1288
1287
 
1289
1288
  /**
1290
- * The submenu content that pops out when a menu item with children is hovered or clicked.
1289
+ * The multi-level menu content that pops out when a menu item with children is hovered or clicked.
1291
1290
  */
1292
- var MenuSubContent = React__default.forwardRef(function (_a, ref) {
1291
+ var MenuItemMultiLevelContent = React__default.forwardRef(function (_a, ref) {
1293
1292
  var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "alignOffset"]);
1294
- return (React__default.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));
1293
+ return (React__default.createElement(SubContent2, __assign({ ref: ref, style: { width: width, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 24, collisionPadding: 12, avoidCollisions: true, alignOffset: alignOffset }, filterAttrs(props)), children));
1295
1294
  });
1296
1295
 
1297
- export { CheckboxItem2 as C, Group2 as G, Item2 as I, Label2 as L, MenuContent as M, Portal2 as P, Root2 as R, Separator2 as S, Trigger as T, RadioGroup2 as a, RadioItem2 as b, Sub2 as c, SubTrigger2 as d, MenuSubContent as e };
1296
+ export { CheckboxItem2 as C, Group2 as G, Item2 as I, MenuContent as M, Portal2 as P, Root2 as R, Separator2 as S, Trigger as T, RadioGroup2 as a, RadioItem2 as b, Sub2 as c, SubTrigger2 as d, MenuItemMultiLevelContent as e };
@@ -0,0 +1,74 @@
1
+ import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
+ import React__default from 'react';
3
+ import { c as classNames } from './index-5C0-U8cc.mjs';
4
+ import { s as svgToMiniDataURI } from './index-CL6dwOYV.mjs';
5
+ import { c as capitaliseFirstLetter } from './capitalise-first-letter-Cubg2CS1.mjs';
6
+ import { V as VisuallyHidden } from './VisuallyHidden-DqAgoqJo.mjs';
7
+ import { I as Icon } from './Icon-CcPOJcQm.mjs';
8
+
9
+ var Error = "\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 ";
10
+
11
+ 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";
12
+
13
+ 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 ";
14
+
15
+ 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 ";
16
+
17
+ var ProgressStepperItem = function (_a) {
18
+ var _b;
19
+ 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"]);
20
+ var statusIcons = {
21
+ todo: undefined,
22
+ completed: Complete,
23
+ current: Current,
24
+ warning: Warning,
25
+ error: Error,
26
+ };
27
+ var onClickHandler = function (event) {
28
+ event.preventDefault();
29
+ onClick && onClick();
30
+ };
31
+ var statusIcon = statusIcons[status];
32
+ return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
33
+ "arc-ProgressStepperItem--vertical": direction === "vertical",
34
+ "arc-ProgressStepperItem--isFluid": isFluid && direction !== "vertical",
35
+ "arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
36
+ },
37
+ _b["arc-ProgressStepperItem--hasInteractiveStatus"] = status !== "todo",
38
+ _b["arc-ProgressStepperItem--invertLabelPosition"] = direction !== "vertical" && invertLabelPosition,
39
+ _b)) }, filterAttrs(props)),
40
+ React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSection" },
41
+ React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
42
+ React__default.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
43
+ "arc-ProgressStepperItem-statusIcon--small": size === "small",
44
+ }) }, status === "todo" ? null : status === "current" ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React__default.createElement(Icon, { icon: statusIcon && svgToMiniDataURI(statusIcon) }))))),
45
+ React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
46
+ titleHref || onClick ? (React__default.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler },
47
+ title,
48
+ status !== "todo" ? (React__default.createElement(VisuallyHidden, null,
49
+ ":",
50
+ capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden, null, ":To do")))) : (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" },
51
+ title,
52
+ status !== "todo" ? (React__default.createElement(VisuallyHidden, null,
53
+ ":",
54
+ capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden, null, ":To do")))),
55
+ React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
56
+ stepContent && !isStepContentHidden && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
57
+ React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" }, stepContent))))));
58
+ };
59
+
60
+ /** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
61
+ var ProgressStepper = function (_a) {
62
+ var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, invertLabelPosition = _a.invertLabelPosition, ref = _a.ref, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable", "invertLabelPosition", "ref"]);
63
+ var items = React__default.Children.toArray(children);
64
+ var getStepStatus = function (item) {
65
+ var _a;
66
+ return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
67
+ };
68
+ return (React__default.createElement("div", __assign({ ref: ref, className: classNames("arc-ProgressStepper", {
69
+ "arc-ProgressStepper--vertical": direction === "vertical",
70
+ }) }, filterAttrs(props)), items.map(function (item, index) { return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
71
+ React__default.createElement(ProgressStepperItem, __assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, invertLabelPosition: invertLabelPosition, direction: direction, isExpandable: isExpandable, size: size, previousStep: getStepStatus(items[index - 1]) }, filterAttrs(item.props))))); })));
72
+ };
73
+
74
+ export { ProgressStepper as P, ProgressStepperItem as a };
@@ -0,0 +1,140 @@
1
+ import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
+ import React__default, { forwardRef, useState, useRef, useImperativeHandle, useEffect } from 'react';
3
+ import { d as debounce } from './debounce-mCD9-ufA.mjs';
4
+ import { P as ProgressStepper } from './ProgressStepper-CLBtBNy2.mjs';
5
+
6
+ /** Use `ProgressStepperOverflow` to wrap `ProgressStepperItem`s and allow overflow behaviour. */
7
+ var ProgressStepperOverflow = forwardRef(function (_a, stepperRef) {
8
+ var children = _a.children, onIndexChange = _a.onIndexChange, onLoadStep = _a.onLoadStep, size = _a.size, invertLabelPosition = _a.invertLabelPosition, _b = _a.offsetLeft, offsetLeft = _b === void 0 ? 24 : _b, props = __rest(_a, ["children", "onIndexChange", "onLoadStep", "size", "invertLabelPosition", "offsetLeft"]);
9
+ var _c = useState(onLoadStep ? onLoadStep : 0), activeIndex = _c[0], setActiveIndex = _c[1];
10
+ var _d = useState(0), closestScrolledIndex = _d[0], setClosestScrolledIndex = _d[1];
11
+ var _e = useState(true), lastStepVisible = _e[0], setLastStepVisible = _e[1];
12
+ var containerRef = useRef(null);
13
+ useImperativeHandle(stepperRef, function () { return ({
14
+ handleStepScroll: handleStepScroll,
15
+ scrollToStep: scrollToStep,
16
+ handleViewScroll: handleViewScroll,
17
+ isLastChildVisible: isLastChildVisible,
18
+ }); });
19
+ // Add Horizontal Scroll Event Listener
20
+ useEffect(function () {
21
+ var _a, _b;
22
+ var checkClosest = debounce(function () {
23
+ var closestIndex = findClosestIndex();
24
+ setClosestScrolledIndex(closestIndex);
25
+ }, 100);
26
+ var checkLastChild = debounce(function () {
27
+ var lastVisible = isLastChildVisible();
28
+ if (lastVisible) {
29
+ setLastStepVisible(true);
30
+ }
31
+ else
32
+ setLastStepVisible(false);
33
+ }, 100);
34
+ (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener("scroll", checkLastChild);
35
+ (_b = containerRef.current) === null || _b === void 0 ? void 0 : _b.addEventListener("scroll", checkClosest);
36
+ return function () {
37
+ var _a;
38
+ (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", checkClosest);
39
+ checkLastChild.cancel();
40
+ };
41
+ }, []);
42
+ // Scroll to activeIndex
43
+ useEffect(function () {
44
+ scrollTo();
45
+ }, [activeIndex]);
46
+ // Exposing changes in activeIndex outside of component
47
+ useEffect(function () {
48
+ onIndexChange === null || onIndexChange === void 0 ? void 0 : onIndexChange(closestScrolledIndex);
49
+ isLastChildVisible();
50
+ }, [closestScrolledIndex, onIndexChange, lastStepVisible]);
51
+ // helper functions - start
52
+ var getProgressStepper = function () { var _a; return (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.firstChild; };
53
+ var getStepChildren = function () {
54
+ var _a;
55
+ return Array.from(((_a = getProgressStepper()) === null || _a === void 0 ? void 0 : _a.children) || []);
56
+ };
57
+ var getLeftRects = function (children) {
58
+ var container = getProgressStepper();
59
+ if (!container)
60
+ return [];
61
+ var parentRect = container.getBoundingClientRect();
62
+ return children.map(function (child) {
63
+ var childRect = child.getBoundingClientRect();
64
+ return {
65
+ left: childRect.left - parentRect.left,
66
+ };
67
+ });
68
+ };
69
+ var indexOfClosest = function (values) {
70
+ return values.indexOf(Math.min.apply(Math, values));
71
+ };
72
+ // helper functions - end
73
+ var isLastChildVisible = function () {
74
+ var _a;
75
+ var steps = getStepChildren();
76
+ var lastStep = steps[steps.length - 1];
77
+ var rect = lastStep.getBoundingClientRect();
78
+ var containerRect = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
79
+ return rect.right <= containerRect.right;
80
+ };
81
+ // Used for onScroll function of scrolling without buttons
82
+ var findClosestIndex = function () {
83
+ var _a, _b;
84
+ var children = getStepChildren();
85
+ var scrolledAmount = (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.scrollLeft) !== null && _b !== void 0 ? _b : 0;
86
+ // compare the scrolled amount to the intial left edge distance for each step
87
+ var getScrollDistances = function (children, scrolledAmount) {
88
+ return getLeftRects(children).map(function (rect) {
89
+ return Math.abs(scrolledAmount - rect.left);
90
+ });
91
+ };
92
+ var closestIndex = indexOfClosest(getScrollDistances(children, scrolledAmount));
93
+ return closestIndex;
94
+ };
95
+ // Scroll active step to the far left of the page
96
+ var scrollTo = function () {
97
+ var _a, _b;
98
+ var activeStep = (_a = getProgressStepper()) === null || _a === void 0 ? void 0 : _a.children[activeIndex];
99
+ if (activeStep) {
100
+ (_b = containerRef.current) === null || _b === void 0 ? void 0 : _b.scrollTo({
101
+ left: activeStep.offsetLeft - offsetLeft,
102
+ behavior: "smooth",
103
+ });
104
+ }
105
+ };
106
+ var handleStepScroll = function (increment) {
107
+ // Account for any manual scrolling set closest index to active index
108
+ setActiveIndex(closestScrolledIndex);
109
+ var newIndex = closestScrolledIndex + increment;
110
+ setActiveIndex(newIndex);
111
+ // If clicking backwards to include half visible step
112
+ if (closestScrolledIndex + increment === activeIndex) {
113
+ scrollTo();
114
+ }
115
+ if (closestScrolledIndex + increment < 0) {
116
+ setActiveIndex(0);
117
+ scrollTo();
118
+ }
119
+ };
120
+ // Used to scroll by Parent width
121
+ var handleViewScroll = function (direction) {
122
+ var _a;
123
+ var clientWidth = ((_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) || 0;
124
+ var stepper = containerRef.current;
125
+ if (!stepper)
126
+ return;
127
+ stepper.scrollBy({
128
+ left: direction ? clientWidth : -clientWidth,
129
+ behavior: "smooth",
130
+ });
131
+ };
132
+ // Used to set a specific step to jump to on a button click
133
+ var scrollToStep = function (step) {
134
+ setActiveIndex(step);
135
+ };
136
+ return (React__default.createElement("div", __assign({ ref: containerRef, className: "arc-ProgressStepperOverflow", style: { paddingLeft: offsetLeft } }, filterAttrs(props)),
137
+ React__default.createElement(ProgressStepper, { size: size, invertLabelPosition: invertLabelPosition, isFluid: false }, children)));
138
+ });
139
+
140
+ export { ProgressStepperOverflow as P };
@@ -3,7 +3,7 @@ import React__default, { createContext, useContext, forwardRef } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
4
  import { c as capitaliseFirstLetter } from './capitalise-first-letter-Cubg2CS1.mjs';
5
5
  import { C as Context } from './Surface-Colbp3Zx.mjs';
6
- import { I as Icon } from './Icon-MZfaoOo9.mjs';
6
+ import { I as Icon } from './Icon-CcPOJcQm.mjs';
7
7
 
8
8
  var RadioContext = createContext({});
9
9
  var Provider = RadioContext.Provider;
@@ -40,11 +40,11 @@ var RadioGroupButton = forwardRef(function (_a, ref) {
40
40
  */
41
41
  var RadioGroupInput = forwardRef(function (_a, ref) {
42
42
  var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, _b = _a.radioButtonAlignment, radioButtonAlignment = _b === void 0 ? "center" : _b, value = _a.value, props = __rest(_a, ["helper", "id", "isDisabled", "label", "radioButtonAlignment", "value"]);
43
- var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
43
+ var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, name = _c.name, size = _c.size;
44
44
  var isChecked = checkedValue === value ? true : false;
45
45
  var checked = typeof changeEvent !== "function" ? undefined : isChecked;
46
46
  var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
47
- return (React__default.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)));
47
+ return (React__default.createElement(RadioGroupButton, __assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled, size: size, radioButtonAlignment: radioButtonAlignment, label: label, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, blurEvent: blurEvent, value: value }, props)));
48
48
  });
49
49
 
50
50
  export { Provider as P, RadioGroupButton as R, RadioGroupInput as a };
@@ -1,12 +1,12 @@
1
1
  import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
2
  import React__default, { createContext, useState, useRef, useEffect, useContext } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { d as ArcSizeBreakpointsL } from './index.es-C3WGtwrW.mjs';
4
+ import { c as ArcSizeBreakpointsL } from './index.es-DCvYtQfu.mjs';
5
5
  import { a as BtIconChevronRight2Px, B as BtIconChevronLeft2Px } from './BtIconChevronRight2Px-DzWb16fR.mjs';
6
6
  import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
7
- import { I as Icon } from './Icon-MZfaoOo9.mjs';
7
+ import { I as Icon } from './Icon-CcPOJcQm.mjs';
8
8
  import { S as Surface } from './Surface-Colbp3Zx.mjs';
9
- import { B as ButtonV2 } from './ButtonV2-2U4PvnpS.mjs';
9
+ import { B as ButtonV2 } from './ButtonV2-DwYBAojW.mjs';
10
10
  import { h as handleLinkClick } from './handle-link-click-CIgZ7pa0.mjs';
11
11
  import { B as BrandLogo } from './BrandLogo-_2Z_8I2Y.mjs';
12
12
 
@@ -1,17 +1,25 @@
1
1
  import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
2
  import React__default from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { A as ArcSizeBreakpointsM } from './index.es-C3WGtwrW.mjs';
5
- import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
6
4
  import { V as VerticalSpace } from './VerticalSpace-Duhm0zXP.mjs';
7
5
  import { B as Box } from './Box-BYm_GTct.mjs';
8
6
  import { H as Heading } from './Heading-CxHWefi7.mjs';
9
- import { G as Grid, b as GridRow, a as GridCol } from './GridRow-Ddt5CtFn.mjs';
7
+ import { b as GridRow, G as Grid, a as GridCol } from './GridRow-Ddt5CtFn.mjs';
8
+ import './index-Spae4j7j.mjs';
10
9
  import { B as BannerImage } from './BannerImage-BTsixvUH.mjs';
10
+ import { V as Visible } from './Visible-C-jVXUWp.mjs';
11
+
12
+ var BannerRow = function (_a) {
13
+ var isReversed = _a.isReversed, children = _a.children;
14
+ return (React__default.createElement(React__default.Fragment, null,
15
+ React__default.createElement(Visible, { xs: true, s: true },
16
+ React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow-mobile" }, children)),
17
+ React__default.createElement(Visible, { m: true, l: true, xl: true },
18
+ React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow-desktop", direction: isReversed ? "row-reverse" : "row" }, children))));
19
+ };
11
20
 
12
21
  var TemplateBanner = function (_a) {
13
22
  var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, _c = _a.alignment, alignment = _c === void 0 ? "center" : _c, additionalTopMargin = _a.additionalTopMargin, _d = _a.minHeight, minHeight = _d === void 0 ? 454 : _d, _e = _a.headingSize, headingSize = _e === void 0 ? "xl" : _e, _f = _a.isReversed, isReversed = _f === void 0 ? false : _f, _g = _a.isElevated, isElevated = _g === void 0 ? false : _g, _h = _a.headingLevel, headingLevel = _h === void 0 ? "2" : _h, _j = _a.type, type = _j === void 0 ? "light" : _j, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "headingSize", "isReversed", "isElevated", "headingLevel", "type"]);
14
- var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
15
23
  var backgrounds = {
16
24
  dark: "dark-brand-02",
17
25
  light: "light-white",
@@ -24,7 +32,6 @@ var TemplateBanner = function (_a) {
24
32
  };
25
33
  var isContained = type === "contained";
26
34
  var borderWidth = isContained && !isElevated ? "thin" : undefined;
27
- var direction = isReversed && isMinWidthArcBreakpointM ? "row-reverse" : "row";
28
35
  var columnWithImgWidths = {
29
36
  "1/0": 12,
30
37
  "2/3": 8,
@@ -35,7 +42,7 @@ var TemplateBanner = function (_a) {
35
42
  }) }, filterAttrs(props)),
36
43
  React__default.createElement(Box, { isBorderRadius: true, "data-testid": "arc-TemplateBanner-box", borderWidth: borderWidth, surface: backgrounds[type], isSurfaceTransparent: !isContained },
37
44
  React__default.createElement(Grid, { isGutterless: true, isFluid: true },
38
- React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow", direction: direction },
45
+ React__default.createElement(BannerRow, { "data-testid": "arc-TemplateBanner-gridRow", isReversed: isReversed },
39
46
  React__default.createElement(GridCol, { "data-testid": "arc-TemplateBanner-contentCol", align: {
40
47
  m: alignment === "start" ? "start" : "center",
41
48
  xs: !img || contentRatio === "1/0" ? "center" : "start",
@@ -44,7 +51,7 @@ var TemplateBanner = function (_a) {
44
51
  "arc-TemplateBanner-content--additionalTopMargin": additionalTopMargin && alignment === "start",
45
52
  }) },
46
53
  label && (React__default.createElement(React__default.Fragment, null,
47
- React__default.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
54
+ React__default.createElement(Heading, { level: "3", fontStyle: "overline" }, label),
48
55
  React__default.createElement(VerticalSpace, { size: "8" }))),
49
56
  React__default.createElement(Heading, { level: headingLevel, size: headingSize }, heading),
50
57
  text && (React__default.createElement(React__default.Fragment, null,
@@ -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, { forwardRef, useContext, useState } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { u as useAriaDescribedby, F as FormControl } from './FormControl-B9fp1ilz.mjs';
4
+ import { u as useAriaDescribedby, F as FormControl } from './FormControl-CWyrVi1u.mjs';
5
5
  import { C as Context } from './Surface-Colbp3Zx.mjs';
6
6
  import { V as VisuallyHidden } from './VisuallyHidden-DqAgoqJo.mjs';
7
7
  import { T as ThemeIcon } from './ThemeIcon-CN_Ed5b1.mjs';
@@ -36,9 +36,9 @@ var useNumericInput = function (props) {
36
36
 
37
37
  var TextInputComponent = forwardRef(function (_a, ref) {
38
38
  var _b;
39
- var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, _g = _a.labelSize, labelSize = _g === void 0 ? "l" : _g, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _h = _a.type, type = _h === void 0 ? "text" : _h, _j = _a.showPassword, showPassword = _j === void 0 ? false : _j, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _k = _a.inputSize, inputSize = _k === void 0 ? "m" : _k, iconButton = _a.iconButton, prefix = _a.prefix, suffix = _a.suffix, _l = _a.inputAlignment, inputAlignment = _l === void 0 ? "left" : _l, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onFocus", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize", "iconButton", "prefix", "suffix", "inputAlignment", "width", "autoComplete", "isLoading"]);
39
+ var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _g = _a.type, type = _g === void 0 ? "text" : _g, _h = _a.showPassword, showPassword = _h === void 0 ? false : _h, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _j = _a.size, size = _j === void 0 ? "m" : _j, iconButton = _a.iconButton, prefix = _a.prefix, suffix = _a.suffix, _k = _a.inputAlignment, inputAlignment = _k === void 0 ? "left" : _k, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "maxLength", "minLength", "name", "onBlur", "onFocus", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "size", "iconButton", "prefix", "suffix", "inputAlignment", "width", "autoComplete", "isLoading"]);
40
40
  var surface = useContext(Context).surface;
41
- var _m = useState(false), showPasswordToggle = _m[0], setShowPasswordToggle = _m[1];
41
+ var _l = useState(false), showPasswordToggle = _l[0], setShowPasswordToggle = _l[1];
42
42
  var inferredInputProps = useNumericInput({
43
43
  inputMode: inputMode,
44
44
  pattern: pattern,
@@ -72,9 +72,9 @@ var TextInputComponent = forwardRef(function (_a, ref) {
72
72
  "arc-TextInput--withPrefix": prefix,
73
73
  "arc-TextInput--withSuffix": suffix
74
74
  },
75
- _b["arc-TextInput--size".concat(inputSize && inputSize.toUpperCase())] = inputSize && inputSize !== "m",
75
+ _b["arc-TextInput--size".concat(size && size.toUpperCase())] = size && size !== "m",
76
76
  _b)) }, filterAttrs(props)),
77
- React__default.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 },
77
+ React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: size, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure },
78
78
  React__default.createElement("div", { className: "arc-TextInput-inputWrapper", style: { width: width, marginTop: hideLabel ? 0 : undefined } },
79
79
  prefix && (React__default.createElement("span", { className: "arc-TextInput-prefix", "aria-hidden": true }, prefix)),
80
80
  React__default.createElement("input", __assign({ placeholder: placeholder, "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-TextInput-input", defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled || isLoading, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, onFocus: onFocus, readOnly: isReadOnly, ref: ref, required: isRequired, value: typeof value !== "undefined" ? value : undefined, autoComplete: autoComplete }, inferredInputProps)),
@@ -83,7 +83,7 @@ var TextInputComponent = forwardRef(function (_a, ref) {
83
83
  e.preventDefault();
84
84
  iconButton.onClick();
85
85
  } },
86
- React__default.createElement(ThemeIcon, { icon: iconButton.icon, size: buttonIconSize[inputSize] })))),
86
+ React__default.createElement(ThemeIcon, { icon: iconButton.icon, size: buttonIconSize[size] })))),
87
87
  suffix && !showPassword ? (React__default.createElement("span", { className: "arc-TextInput-suffix", "aria-hidden": true }, suffix)) : null,
88
88
  showPassword && (React__default.createElement("div", { className: "arc-TextInput-additionalControl" },
89
89
  React__default.createElement("button", { className: "arc-TextInput-passwordToggle", onClick: function () { return setShowPasswordToggle(function (p) { return !p; }); }, type: "button" }, showPasswordToggle ? "Hide" : "Show"),
@@ -93,7 +93,7 @@ var TextInputComponent = forwardRef(function (_a, ref) {
93
93
  ? "Your password is shown"
94
94
  : "Your password is hidden"))))),
95
95
  isLoading && (React__default.createElement("span", { className: "arc-TextInput-spinner" },
96
- React__default.createElement(Spinner, { size: spinnerSize[inputSize] })))))));
96
+ React__default.createElement(Spinner, { size: spinnerSize[size] })))))));
97
97
  });
98
98
  /**
99
99
  * Use `TextInput` to allow users to enter short form text.
@@ -0,0 +1,16 @@
1
+ import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
+ import React__default from 'react';
3
+ import { c as classNames } from './index-5C0-U8cc.mjs';
4
+
5
+ var Visible = function (_a) {
6
+ var children = _a.children, xs = _a.xs, s = _a.s, m = _a.m, l = _a.l, xl = _a.xl, props = __rest(_a, ["children", "xs", "s", "m", "l", "xl"]);
7
+ return (React__default.createElement("div", __assign({ className: classNames("arc-Visible", {
8
+ "arc-Visible--xs": xs,
9
+ "arc-Visible--s": s,
10
+ "arc-Visible--m": m,
11
+ "arc-Visible--l": l,
12
+ "arc-Visible--xl": xl,
13
+ }) }, filterAttrs(props)), children));
14
+ };
15
+
16
+ export { Visible as V };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 19 May 2025 14:54:16 GMT
3
+ * Generated on Mon, 21 Jul 2025 12:02:37 GMT
4
4
  */
5
5
  var ArcSizeBreakpointsXs = "320px";
6
6
  var ArcSizeBreakpointsS = "636px";
@@ -9,4 +9,4 @@ var ArcSizeBreakpointsL = "1024px";
9
9
  var ArcSizeBreakpointsXl = "1280px";
10
10
  var ArcSizeBreakpointsXxl = "1440px";
11
11
 
12
- export { ArcSizeBreakpointsM as A, ArcSizeBreakpointsS as a, ArcSizeBreakpointsXxl as b, ArcSizeBreakpointsXl as c, ArcSizeBreakpointsL as d, ArcSizeBreakpointsXs as e };
12
+ export { ArcSizeBreakpointsM as A, ArcSizeBreakpointsXxl as a, ArcSizeBreakpointsXl as b, ArcSizeBreakpointsL as c, ArcSizeBreakpointsS as d, ArcSizeBreakpointsXs as e };