@arc-ui/components 11.22.0 → 11.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/Alert/Alert.cjs.js +1 -1
  2. package/dist/Alert/Alert.esm.js +1 -1
  3. package/dist/Avatar/Avatar.cjs.js +1 -1
  4. package/dist/Avatar/Avatar.esm.js +1 -1
  5. package/dist/AvatarGroup/AvatarGroup.cjs.js +2 -1
  6. package/dist/AvatarGroup/AvatarGroup.esm.js +2 -1
  7. package/dist/Badge/Badge.cjs.js +1 -1
  8. package/dist/Badge/Badge.esm.js +1 -1
  9. package/dist/Button/Button.cjs.js +1 -1
  10. package/dist/Button/Button.esm.js +1 -1
  11. package/dist/Calendar/Calendar.cjs.js +2 -2
  12. package/dist/Calendar/Calendar.esm.js +2 -2
  13. package/dist/Checkbox/Checkbox.cjs.js +4 -4
  14. package/dist/Checkbox/Checkbox.esm.js +4 -4
  15. package/dist/DatePicker/DatePicker.cjs.js +8 -5
  16. package/dist/DatePicker/DatePicker.esm.js +8 -5
  17. package/dist/Disclosure/Disclosure.cjs.js +1 -2
  18. package/dist/Disclosure/Disclosure.esm.js +1 -2
  19. package/dist/DisclosureMini/DisclosureMini.cjs.js +1 -1
  20. package/dist/DisclosureMini/DisclosureMini.esm.js +1 -1
  21. package/dist/Filter/Filter.cjs.js +2 -1
  22. package/dist/Filter/Filter.esm.js +2 -1
  23. package/dist/FormControl/FormControl.cjs.js +3 -3
  24. package/dist/FormControl/FormControl.esm.js +3 -3
  25. package/dist/Grid/Grid.cjs.js +13 -0
  26. package/dist/Grid/Grid.esm.js +5 -0
  27. package/dist/Grid/package.json +7 -0
  28. package/dist/Hidden/Hidden.cjs.js +24 -0
  29. package/dist/Hidden/Hidden.esm.js +16 -0
  30. package/dist/Hidden/package.json +7 -0
  31. package/dist/ImpactCard/ImpactCard.cjs.js +1 -0
  32. package/dist/ImpactCard/ImpactCard.esm.js +1 -0
  33. package/dist/InformationCard/InformationCard.cjs.js +3 -2
  34. package/dist/InformationCard/InformationCard.esm.js +3 -2
  35. package/dist/Link/Link.cjs.js +76 -0
  36. package/dist/Link/Link.esm.js +68 -0
  37. package/dist/Link/package.json +7 -0
  38. package/dist/Modal/Modal.cjs.js +3 -3
  39. package/dist/Modal/Modal.esm.js +3 -3
  40. package/dist/Pagination/Pagination.cjs.js +1 -1
  41. package/dist/Pagination/Pagination.esm.js +1 -1
  42. package/dist/PaginationSimple/PaginationSimple.cjs.js +6 -10
  43. package/dist/PaginationSimple/PaginationSimple.esm.js +6 -10
  44. package/dist/ProgressBar/ProgressBar.cjs.js +8 -2
  45. package/dist/ProgressBar/ProgressBar.esm.js +8 -2
  46. package/dist/ProgressStepper/ProgressStepper.cjs.js +2 -2
  47. package/dist/ProgressStepper/ProgressStepper.esm.js +2 -2
  48. package/dist/RadioGroup/RadioGroup.cjs.js +4 -4
  49. package/dist/RadioGroup/RadioGroup.esm.js +4 -4
  50. package/dist/Select/Select.cjs.js +3 -3
  51. package/dist/Select/Select.esm.js +3 -3
  52. package/dist/SiteHeader/SiteHeader.cjs.js +2 -2
  53. package/dist/SiteHeader/SiteHeader.esm.js +2 -2
  54. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +2 -2
  55. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +2 -2
  56. package/dist/SkipLink/SkipLink.cjs.js +1 -0
  57. package/dist/SkipLink/SkipLink.esm.js +1 -0
  58. package/dist/Switch/Switch.cjs.js +4 -4
  59. package/dist/Switch/Switch.esm.js +4 -4
  60. package/dist/Tabs/Tabs.cjs.js +1 -1
  61. package/dist/Tabs/Tabs.esm.js +1 -1
  62. package/dist/Tag/Tag.cjs.js +1 -1
  63. package/dist/Tag/Tag.esm.js +1 -1
  64. package/dist/TextArea/TextArea.cjs.js +16 -15
  65. package/dist/TextArea/TextArea.esm.js +16 -15
  66. package/dist/TextInput/TextInput.cjs.js +4 -4
  67. package/dist/TextInput/TextInput.esm.js +4 -4
  68. package/dist/Toast/Toast.cjs.js +1 -1
  69. package/dist/Toast/Toast.esm.js +1 -1
  70. package/dist/TypographyCard/TypographyCard.cjs.js +1 -0
  71. package/dist/TypographyCard/TypographyCard.esm.js +1 -0
  72. package/dist/Visible/Visible.cjs.js +24 -0
  73. package/dist/Visible/Visible.esm.js +16 -0
  74. package/dist/Visible/package.json +7 -0
  75. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +1 -1
  76. package/dist/VisuallyHidden/VisuallyHidden.esm.js +1 -1
  77. package/dist/_shared/cjs/{Avatar-12ece0dd.js → Avatar-f1b1c129.js} +1 -0
  78. package/dist/_shared/cjs/{Button-84533dc8.js → Button-6ba21d3b.js} +1 -1
  79. package/dist/_shared/cjs/{Calendar-c6ed5f2c.js → Calendar-b022545c.js} +4 -3
  80. package/dist/_shared/cjs/{Checkbox-8915fcd9.js → Checkbox-0253327b.js} +2 -2
  81. package/dist/_shared/cjs/{DisclosureMini-d0eeb6bb.js → DisclosureMini-09c749e5.js} +1 -2
  82. package/dist/_shared/cjs/{Filter-f4b73f5d.js → Filter-f9506dfa.js} +6 -2
  83. package/dist/_shared/cjs/{FormControl-5f3b6ce4.js → FormControl-68258ce1.js} +2 -2
  84. package/dist/_shared/cjs/Grid-da776e77.js +45 -0
  85. package/dist/_shared/cjs/{ProgressStepper-20a61620.js → ProgressStepper-57cfef1e.js} +3 -3
  86. package/dist/_shared/cjs/{RadioGroup-07bb155e.js → RadioGroup-85eda600.js} +2 -2
  87. package/dist/_shared/cjs/{SiteHeader.rehydrator-ea49f8d5.js → SiteHeader.rehydrator-b76b0889.js} +1 -1
  88. package/dist/_shared/cjs/{SiteHeaderV2-e0735a9d.js → SiteHeaderV2-ce1c8737.js} +1 -1
  89. package/dist/_shared/cjs/{Tabs-24e6f45b.js → Tabs-bc9fac46.js} +1 -0
  90. package/dist/_shared/cjs/{Tag-8723b324.js → Tag-73a59171.js} +5 -5
  91. package/dist/_shared/cjs/{TextInput-5da70ec2.js → TextInput-8d139489.js} +7 -7
  92. package/dist/_shared/cjs/{Toast-7a20d1b9.js → Toast-26207fef.js} +1 -1
  93. package/dist/_shared/cjs/{VisuallyHidden-e2c8b291.js → VisuallyHidden-b0de4c7b.js} +1 -1
  94. package/dist/_shared/esm/{Avatar-d01e2b7b.js → Avatar-320313f0.js} +1 -0
  95. package/dist/_shared/esm/{Button-3f294e64.js → Button-a7d134c6.js} +1 -1
  96. package/dist/_shared/esm/{Calendar-753ef6f1.js → Calendar-ea232839.js} +4 -3
  97. package/dist/_shared/esm/{Checkbox-0e051546.js → Checkbox-588619c7.js} +2 -2
  98. package/dist/_shared/esm/{DisclosureMini-ec17b008.js → DisclosureMini-56719716.js} +1 -2
  99. package/dist/_shared/esm/{Filter-ad254e3d.js → Filter-258ba675.js} +6 -2
  100. package/dist/_shared/esm/{FormControl-cc99cde0.js → FormControl-8e836656.js} +2 -2
  101. package/dist/_shared/esm/Grid-07dbf4bd.js +39 -0
  102. package/dist/_shared/esm/{ProgressStepper-74d48612.js → ProgressStepper-6c811282.js} +3 -3
  103. package/dist/_shared/esm/{RadioGroup-362be63f.js → RadioGroup-6c8f8454.js} +2 -2
  104. package/dist/_shared/esm/{SiteHeader.rehydrator-65c8cf71.js → SiteHeader.rehydrator-8ad7651b.js} +1 -1
  105. package/dist/_shared/esm/{SiteHeaderV2-c74b811b.js → SiteHeaderV2-a7c1b1cb.js} +1 -1
  106. package/dist/_shared/esm/{Tabs-a85af483.js → Tabs-9485cab6.js} +1 -0
  107. package/dist/_shared/esm/{Tag-664b85c8.js → Tag-cb35d57b.js} +5 -5
  108. package/dist/_shared/esm/{TextInput-1d1c5fd6.js → TextInput-c0388103.js} +7 -7
  109. package/dist/_shared/esm/{Toast-7a232e15.js → Toast-fcbfc194.js} +1 -1
  110. package/dist/_shared/esm/{VisuallyHidden-b9eebf71.js → VisuallyHidden-06692fd3.js} +1 -1
  111. package/dist/index.es.js +170 -47
  112. package/dist/index.es.js.map +1 -1
  113. package/dist/index.js +173 -46
  114. package/dist/index.js.map +1 -1
  115. package/dist/styles.css +3 -3
  116. package/dist/types/components/Alert/Alert.d.ts +1 -1
  117. package/dist/types/components/Avatar/Avatar.d.ts +1 -0
  118. package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +1 -0
  119. package/dist/types/components/Badge/Badge.d.ts +1 -1
  120. package/dist/types/components/Button/Button.d.ts +1 -1
  121. package/dist/types/components/Calendar/Calendar.d.ts +1 -0
  122. package/dist/types/components/DatePicker/DatePicker.d.ts +3 -0
  123. package/dist/types/components/Disclosure/Disclosure.d.ts +1 -2
  124. package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +1 -2
  125. package/dist/types/components/Filter/Filter.d.ts +1 -1
  126. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +4 -1
  127. package/dist/types/components/Grid/Grid.constants.d.ts +1 -0
  128. package/dist/types/components/Grid/Grid.d.ts +28 -0
  129. package/dist/types/components/Grid/Grid.types.d.ts +8 -0
  130. package/dist/types/components/Grid/components/Col/Col.d.ts +9 -0
  131. package/dist/types/components/Grid/components/Col/index.d.ts +1 -0
  132. package/dist/types/components/Grid/components/Row/Row.d.ts +9 -0
  133. package/dist/types/components/Grid/components/Row/index.d.ts +1 -0
  134. package/dist/types/components/Grid/index.d.ts +2 -0
  135. package/dist/types/components/Hidden/Hidden.d.ts +11 -0
  136. package/dist/types/components/Hidden/index.d.ts +1 -0
  137. package/dist/types/components/ImpactCard/ImpactCard.d.ts +1 -0
  138. package/dist/types/components/InformationCard/InformationCard.d.ts +1 -0
  139. package/dist/types/components/Link/Link.d.ts +52 -0
  140. package/dist/types/components/Link/index.d.ts +1 -0
  141. package/dist/types/components/Modal/Modal.d.ts +1 -1
  142. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  143. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +12 -4
  144. package/dist/types/components/ProgressBar/ProgressBar.d.ts +4 -0
  145. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +1 -1
  146. package/dist/types/components/SkipLink/SkipLink.d.ts +1 -0
  147. package/dist/types/components/Switch/Switch.d.ts +1 -1
  148. package/dist/types/components/Tabs/Tabs.d.ts +1 -0
  149. package/dist/types/components/Tag/Tag.d.ts +5 -1
  150. package/dist/types/components/TextArea/TextArea.d.ts +5 -0
  151. package/dist/types/components/TextInput/TextInput.d.ts +8 -0
  152. package/dist/types/components/Toast/Toast.d.ts +1 -1
  153. package/dist/types/components/TypographyCard/TypographyCard.d.ts +1 -0
  154. package/dist/types/components/Visible/Visible.d.ts +11 -0
  155. package/dist/types/components/Visible/index.d.ts +1 -0
  156. package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  157. package/dist/types/components/index.d.ts +4 -0
  158. package/dist/types/styles.d.ts +4 -0
  159. package/dist/types/types/auto-complete-types.d.ts +1 -0
  160. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -583,7 +583,7 @@ const BtIconTick = (props) =>
583
583
  ),
584
584
  );
585
585
 
586
- /** use `Alert` to display persistent messages, either permanent or dismissible. */
586
+ /** Use `Alert` to inform the user of important changes or actions. */
587
587
  var Alert = function (_a) {
588
588
  var _b;
589
589
  var heading = _a.heading, description = _a.description, link = _a.link, linkText = _a.linkText, linkAriaLabel = _a.linkAriaLabel, type = _a.type, _c = _a.status, status = _c === void 0 ? "general" : _c, isDismissable = _a.isDismissable, headingLevel = _a.headingLevel, onDismiss = _a.onDismiss, onLinkClick = _a.onLinkClick, icon = _a.icon, props = __rest(_a, ["heading", "description", "link", "linkText", "linkAriaLabel", "type", "status", "isDismissable", "headingLevel", "onDismiss", "onLinkClick", "icon"]);
@@ -828,6 +828,7 @@ var AvatarContent = function (_a) {
828
828
  return React__default["default"].createElement(Icon, { size: iconSize[size], icon: BtIconUser });
829
829
  };
830
830
 
831
+ /** Use `Avatar` to visually represent a user. */
831
832
  var Avatar = function (_a) {
832
833
  var img = _a.img, initials = _a.initials, href = _a.href, title = _a.title, ariaLabel = _a.ariaLabel, onClick = _a.onClick, _b = _a.size, size = _b === void 0 ? "xl" : _b, props = __rest(_a, ["img", "initials", "href", "title", "ariaLabel", "onClick", "size"]);
833
834
  var wrapperAttrs = __assign({ className: classNames("arc-Avatar", "arc-Avatar--".concat(size), {
@@ -845,6 +846,7 @@ var getAvatars = function (avatars, max) {
845
846
  : []), true);
846
847
  };
847
848
 
849
+ /** Use `AvatarGroup` to visually represent a group of users. */
848
850
  var AvatarGroup = function (_a) {
849
851
  var title = _a.title, ariaLabel = _a.ariaLabel, href = _a.href, avatars = _a.avatars, onClick = _a.onClick, max = _a.max, _b = _a.size, size = _b === void 0 ? "xl" : _b, props = __rest(_a, ["title", "ariaLabel", "href", "avatars", "onClick", "max", "size"]);
850
852
  var id = React.useId();
@@ -854,7 +856,7 @@ var AvatarGroup = function (_a) {
854
856
  React__default["default"].createElement(Avatar, __assign({ size: size }, props)))); }))));
855
857
  };
856
858
 
857
- /** Use `Badge` component to visually display a small amount of information, such as notification counts or status indicators. */
859
+ /** Use `Badge` as a static, non-interactive way to provide short updates. */
858
860
  var Badge = function (_a) {
859
861
  var _b, _c;
860
862
  var children = _a.children, _d = _a.state, state = _d === void 0 ? "default" : _d, _e = _a.size, size = _e === void 0 ? "default" : _e, _f = _a.fill, fill = _f === void 0 ? "solid" : _f, ariaLabel = _a.ariaLabel, ariaRole = _a.ariaRole, props = __rest(_a, ["children", "state", "size", "fill", "ariaLabel", "ariaRole"]);
@@ -1634,7 +1636,7 @@ const BtIconChevronRightMid = (props) =>
1634
1636
  );
1635
1637
 
1636
1638
  /**
1637
- * Use `Button` to allow users to take actions with clicks and taps.
1639
+ * Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
1638
1640
  */
1639
1641
  var Button = React.forwardRef(function (_a, ref) {
1640
1642
  var _b;
@@ -1903,8 +1905,7 @@ const BtIconChevronDown2Px = (props) =>
1903
1905
  );
1904
1906
 
1905
1907
  /**
1906
- * Use `DisclosureMini` to display content that is only visible when toggled into
1907
- * an "open" state.
1908
+ * Use `DisclosureMini` to show and hide sections of content.
1908
1909
  */
1909
1910
  var DisclosureMini = function (_a) {
1910
1911
  var children = _a.children, summary = _a.summary, onClick = _a.onClick, id = _a.id, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? "left" : _c, _d = _a.size, size = _d === void 0 ? "l" : _d, props = __rest(_a, ["children", "summary", "onClick", "id", "isOpen", "iconPosition", "size"]);
@@ -1933,7 +1934,7 @@ var DisclosureMini = function (_a) {
1933
1934
  };
1934
1935
 
1935
1936
  /**
1936
- * Provides text for screen readers that is visually hidden.
1937
+ * Use `VisuallyHidden` to provide text for screen readers that is visually hidden on screen.
1937
1938
  */
1938
1939
  var VisuallyHidden = function (_a) {
1939
1940
  var children = _a.children;
@@ -2036,7 +2037,7 @@ var Checkbox = React.forwardRef(function (_a, ref) {
2036
2037
  React__default["default"].createElement("label", { id: idLabel, htmlFor: id, className: classNames("arc-Checkbox-label", {
2037
2038
  "arc-Checkbox-label--top": checkboxAlignment === "top"
2038
2039
  }) },
2039
- React__default["default"].createElement("input", __assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs(props))),
2040
+ React__default["default"].createElement("input", __assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", "aria-checked": checked ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs(props))),
2040
2041
  React__default["default"].createElement("span", { className: "arc-Checkbox-box" },
2041
2042
  React__default["default"].createElement(BtIconTickAlt2Px, null)),
2042
2043
  React__default["default"].createElement("span", __assign({}, (checkboxAlignment === "top" && {
@@ -2088,7 +2089,7 @@ var Columns = function (_a) {
2088
2089
  var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isGutterless"]);
2089
2090
  React.useEffect(function () {
2090
2091
  React__default["default"].Children.map(children, function (item) {
2091
- if (item && item.type !== Col) {
2092
+ if (item && item.type !== Col$1) {
2092
2093
  throw new Error("Illegal child passed to <Columns />. Ensure to only use <Columns.Col />.");
2093
2094
  }
2094
2095
  });
@@ -2099,7 +2100,7 @@ var Columns = function (_a) {
2099
2100
  }) }, filterDataAttrs(props)),
2100
2101
  React__default["default"].createElement("div", { className: "arc-Columns-inner" }, children)));
2101
2102
  };
2102
- var Col = function (_a) {
2103
+ var Col$1 = function (_a) {
2103
2104
  var _b;
2104
2105
  var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
2105
2106
  return (React__default["default"].createElement("div", __assign({ className: classNames((_b = {},
@@ -2123,7 +2124,7 @@ var Col = function (_a) {
2123
2124
  _b["arc-Columns-col--debugVisible"] = isDebugVisible,
2124
2125
  _b)) }, filterDataAttrs(props)), children));
2125
2126
  };
2126
- Columns.Col = Col;
2127
+ Columns.Col = Col$1;
2127
2128
 
2128
2129
  /**
2129
2130
  #### Deprecation Notice
@@ -2147,8 +2148,7 @@ var Curve = function (_a) {
2147
2148
  };
2148
2149
 
2149
2150
  /**
2150
- * Use `Disclosure` to display content that is only visible when toggled into
2151
- * an "open" state.
2151
+ * Use `Disclosure` to show and hide sections of content.
2152
2152
  */
2153
2153
  var Disclosure = function (_a) {
2154
2154
  var children = _a.children, headingLevel = _a.headingLevel, _b = _a.indentDetails, indentDetails = _b === void 0 ? false : _b, _c = _a.isOpen, isOpen = _c === void 0 ? false : _c, summary = _a.summary, props = __rest(_a, ["children", "headingLevel", "indentDetails", "isOpen", "summary"]);
@@ -2195,7 +2195,10 @@ var FilterControl = function (_a) {
2195
2195
  "arc-FilterControl--onDarkSurface": surface === "dark",
2196
2196
  "arc-FilterControl--selected": selected
2197
2197
  }), onClick: onClickHandler, tabIndex: 0, "aria-pressed": selected },
2198
- React__default["default"].createElement("div", { className: "arc-FilterControl-text" }, children)));
2198
+ React__default["default"].createElement("div", { className: "arc-FilterControl-text" },
2199
+ React__default["default"].createElement(VisuallyHidden, null, "Filter by"),
2200
+ " ",
2201
+ children)));
2199
2202
  };
2200
2203
 
2201
2204
  var FilterControls = function (_a) {
@@ -2228,7 +2231,7 @@ var FilterItems = function (_a) {
2228
2231
  : children))) : (React__default["default"].createElement("div", { "aria-live": "assertive" }, error));
2229
2232
  };
2230
2233
 
2231
- /** use `Filter` for interactive elements that filter and categorise page content. */
2234
+ /** Use `Filter` to filter and categorise page content. */
2232
2235
  var Filter = function (_a) {
2233
2236
  var children = _a.children, onChange = _a.onChange, displayType = _a.displayType, controlsAlignment = _a.controlsAlignment, _b = _a.logicType, logicType = _b === void 0 ? "OR" : _b, error = _a.error, props = __rest(_a, ["children", "onChange", "displayType", "controlsAlignment", "logicType", "error"]);
2234
2237
  var _c = React.useState([]), selectedControls = _c[0], setSelectedControls = _c[1];
@@ -2292,6 +2295,39 @@ Filter.Control = FilterControl;
2292
2295
  Filter.Items = FilterItems;
2293
2296
  Filter.Item = FilterItem;
2294
2297
 
2298
+ var BREAKPOINTS = ["xs", "s", "m", "l", "xl"];
2299
+
2300
+ var Col = function (props) {
2301
+ return (React__default["default"].createElement("div", __assign({ className: classNames("arc-Grid-col", BREAKPOINTS.reduce(function (acc, bp) {
2302
+ var _a;
2303
+ var _b, _c;
2304
+ var sizeValue = props === null || props === void 0 ? void 0 : props[bp];
2305
+ var orderValue = (_b = props.order) === null || _b === void 0 ? void 0 : _b[bp];
2306
+ var offsetValue = (_c = props.offset) === null || _c === void 0 ? void 0 : _c[bp];
2307
+ return __assign(__assign({}, acc), (_a = {}, _a["arc-Grid-col--".concat(bp).concat(sizeValue)] = sizeValue !== undefined, _a["arc-Grid-order--".concat(bp).concat(orderValue)] = orderValue !== undefined, _a["arc-Grid-offset--".concat(bp).concat(offsetValue)] = offsetValue !== undefined, _a));
2308
+ }, {})) }, filterDataAttrs(props)), props.children));
2309
+ };
2310
+
2311
+ var Row = function (_a) {
2312
+ var _b = _a.direction, direction = _b === void 0 ? "row" : _b, _c = _a.align, align = _c === void 0 ? "normal" : _c, _d = _a.justify, justify = _d === void 0 ? "normal" : _d, children = _a.children, props = __rest(_a, ["direction", "align", "justify", "children"]);
2313
+ return (React__default["default"].createElement("div", __assign({ className: classNames("arc-Grid-row", "".concat(suffixModifier("arc-Grid-row--direction", direction)), "".concat(suffixModifier("arc-Grid-row--justify", justify)), "".concat(suffixModifier("arc-Grid-row--align", align))) }, filterDataAttrs(props)), children));
2314
+ };
2315
+
2316
+ /**
2317
+ * Use `Grid` to compose layouts on a 12-column grid.
2318
+ */
2319
+ var Grid = function (_a) {
2320
+ var children = _a.children, isFluid = _a.isFluid, isDebugVisible = _a.isDebugVisible, isGutterless = _a.isGutterless, props = __rest(_a, ["children", "isFluid", "isDebugVisible", "isGutterless"]);
2321
+ return (React__default["default"].createElement("div", __assign({ className: classNames("arc-Grid", {
2322
+ "arc-Grid--fluid": isFluid,
2323
+ "arc-Grid--debugVisible": isDebugVisible,
2324
+ "arc-Grid--gutterless": isGutterless
2325
+ }) }, filterDataAttrs(props)),
2326
+ React__default["default"].createElement("div", { className: "arc-Grid-inner" }, children)));
2327
+ };
2328
+ Grid.Row = Row;
2329
+ Grid.Col = Col;
2330
+
2295
2331
  /**
2296
2332
  * Use `Group` to arrange flexible items in a row.
2297
2333
  */
@@ -2327,6 +2363,17 @@ var GroupItem = function (_a) {
2327
2363
  };
2328
2364
  Group.Item = GroupItem;
2329
2365
 
2366
+ var Hidden = function (_a) {
2367
+ 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"]);
2368
+ return (React__default["default"].createElement("div", __assign({ className: classNames({
2369
+ "arc-Hidden--xs": xs,
2370
+ "arc-Hidden--s": s,
2371
+ "arc-Hidden--m": m,
2372
+ "arc-Hidden--l": l,
2373
+ "arc-Hidden--xl": xl
2374
+ }) }, filterDataAttrs(props)), children));
2375
+ };
2376
+
2330
2377
  /**
2331
2378
  * Do not edit directly
2332
2379
  * Generated file
@@ -2374,10 +2421,10 @@ const BtIconCrossFill = (props) =>
2374
2421
  );
2375
2422
 
2376
2423
  /**
2377
- * use `Tag` to promote features and manage filtering.
2424
+ * Use `Tag` to promote features and manage filtering.
2378
2425
  */
2379
2426
  var Tag = function (_a) {
2380
- var children = _a.children, isRemovable = _a.isRemovable, link = _a.link, icon = _a.icon, onClick = _a.onClick, onRemove = _a.onRemove, props = __rest(_a, ["children", "isRemovable", "link", "icon", "onClick", "onRemove"]);
2427
+ var children = _a.children, isRemovable = _a.isRemovable, link = _a.link, icon = _a.icon, onClick = _a.onClick, onRemove = _a.onRemove, title = _a.title, props = __rest(_a, ["children", "isRemovable", "link", "icon", "onClick", "onRemove", "title"]);
2381
2428
  var surface = React.useContext(Context$5).surface;
2382
2429
  var _b = React.useState(false), isRemoved = _b[0], setIsRemoved = _b[1];
2383
2430
  var onRemoveHandler = function () {
@@ -2394,13 +2441,13 @@ var Tag = function (_a) {
2394
2441
  link ? (React__default["default"].createElement("a", { className: "arc-Tag-content", href: link, tabIndex: 0 },
2395
2442
  icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
2396
2443
  React__default["default"].createElement(Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
2397
- React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))) : (React__default["default"].createElement(React__default["default"].Fragment, null, onClick ? (React__default["default"].createElement("button", { className: "arc-Tag-content", onClick: onClick, "data-testid": "arc-Tag-content" },
2444
+ React__default["default"].createElement("div", { className: "arc-Tag-label", title: title }, children))) : (React__default["default"].createElement(React__default["default"].Fragment, null, onClick ? (React__default["default"].createElement("button", { className: "arc-Tag-content", onClick: onClick, "data-testid": "arc-Tag-content" },
2398
2445
  icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
2399
2446
  React__default["default"].createElement(Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
2400
- React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))) : (React__default["default"].createElement("div", { className: "arc-Tag-content", "data-testid": "arc-Tag-content" },
2447
+ React__default["default"].createElement("div", { className: "arc-Tag-label", title: title }, children))) : (React__default["default"].createElement("div", { className: "arc-Tag-content", "data-testid": "arc-Tag-content" },
2401
2448
  icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
2402
2449
  React__default["default"].createElement(Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
2403
- React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))))),
2450
+ React__default["default"].createElement("div", { className: "arc-Tag-label", title: title }, children))))),
2404
2451
  isRemovable && (React__default["default"].createElement("button", { className: "arc-Tag-icon arc-Tag-icon--removable", onClick: onRemoveHandler, "data-testid": "arc-Tag-icon-removable", "aria-live": "polite", "aria-roledescription": "remove tag" },
2405
2452
  React__default["default"].createElement(Icon, { icon: BtIconCross, color: "brand", size: 20 }),
2406
2453
  React__default["default"].createElement(Icon, { icon: BtIconCrossFill, color: "brand", size: 20 })))));
@@ -2424,6 +2471,7 @@ var VerticalSpace = function (_a) {
2424
2471
  _b)) }, filterDataAttrs(props))));
2425
2472
  };
2426
2473
 
2474
+ /** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
2427
2475
  var InformationCard = function (_a) {
2428
2476
  var cardUrl = _a.cardUrl, onClick = _a.onClick, heading = _a.heading, text = _a.text, label = _a.label, footerLogo = _a.footerLogo, button = _a.button, image = _a.image, tags = _a.tags, icon = _a.icon, minHeight = _a.minHeight, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "tags", "icon", "minHeight", "headingLevel"]);
2429
2477
  var surface = React.useContext(Context$5).surface;
@@ -2470,6 +2518,7 @@ var InformationCard = function (_a) {
2470
2518
  React__default["default"].createElement(Image, __assign({}, footerLogo))))))));
2471
2519
  };
2472
2520
 
2521
+ /** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
2473
2522
  var ImpactCard = function (_a) {
2474
2523
  var url = _a.url, onClick = _a.onClick, heading = _a.heading, img = _a.img, label = _a.label, minHeight = _a.minHeight, _b = _a.linkData, linkData = _b === void 0 ? {} : _b, _c = _a.pathway, pathway = _c === void 0 ? "light" : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, _e = _a.buttonIcon, buttonIcon = _e === void 0 ? "arrow" : _e, props = __rest(_a, ["url", "onClick", "heading", "img", "label", "minHeight", "linkData", "pathway", "headingLevel", "buttonIcon"]);
2475
2524
  var _f = React.useState(false), showHoverState = _f[0], setShowHoverState = _f[1];
@@ -35436,7 +35485,7 @@ const $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d95
35436
35485
  const $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;
35437
35486
  const $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;
35438
35487
 
35439
- /** Use `Modal` to focus a user's attention to an urgent or required prompt for interaction or input. */
35488
+ /** Use `Modal` to display information that needs immediate action from a user. */
35440
35489
  var Modal = function (_a) {
35441
35490
  var title = _a.title, description = _a.description, ariaDescribedBy = _a.ariaDescribedBy, isOpen = _a.isOpen, actions = _a.actions, onRequestClose = _a.onRequestClose, children = _a.children, _b = _a.role, role = _b === void 0 ? "dialog" : _b, _c = _a.shouldReturnFocus, shouldReturnFocus = _c === void 0 ? true : _c, _d = _a.isContentScrollable, isContentScrollable = _d === void 0 ? false : _d, _e = _a.size, size = _e === void 0 ? "l" : _e, props = __rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size"]);
35442
35491
  var arcRootElement = React.useContext(ArcRootElementContext);
@@ -35461,7 +35510,7 @@ var Modal = function (_a) {
35461
35510
  return (React__default["default"].createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { open: isOpen },
35462
35511
  React__default["default"].createElement($5d3850c4d0b4e6c7$export$602eac185826482c, { container: arcRootElement || undefined },
35463
35512
  React__default["default"].createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { className: "arc-Modal-overlay" },
35464
- React__default["default"].createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, __assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, className: classNames("arc-Modal-dialog", "arc-Modal-dialog--".concat(size), {
35513
+ React__default["default"].createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, __assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, "aria-modal": "true", className: classNames("arc-Modal-dialog", "arc-Modal-dialog--".concat(size), {
35465
35514
  "arc-Modal-dialog--maxHeightWindow": isContentScrollable
35466
35515
  }) }, filterDataAttrs(props)),
35467
35516
  React__default["default"].createElement("div", { className: "arc-Modal-section" },
@@ -35519,7 +35568,7 @@ var usePagination = function (pageCount, selectedPage) {
35519
35568
  };
35520
35569
 
35521
35570
  /**
35522
- * Use `Pagination` to navigate multiple pages.
35571
+ * Use `Pagination` to navigate through multiple pages of content.
35523
35572
  */
35524
35573
  var Pagination = function (_a) {
35525
35574
  var pageCount = _a.pageCount, onPageChange = _a.onPageChange, _b = _a.defaultSelectedPage, defaultSelectedPage = _b === void 0 ? 1 : _b, props = __rest(_a, ["pageCount", "onPageChange", "defaultSelectedPage"]);
@@ -35552,10 +35601,10 @@ var Pagination = function (_a) {
35552
35601
  };
35553
35602
 
35554
35603
  /**
35555
- * Use `PaginationSimple` to navigate multiple pages.
35604
+ * Use `PaginationSimple` to navigate through multiple pages of content.
35556
35605
  */
35557
35606
  var PaginationSimple = function (_a) {
35558
- var hidePrev = _a.hidePrev, hideNext = _a.hideNext, onPrevPage = _a.onPrevPage, onNextPage = _a.onNextPage, isFluid = _a.isFluid, props = __rest(_a, ["hidePrev", "hideNext", "onPrevPage", "onNextPage", "isFluid"]);
35607
+ var hidePrev = _a.hidePrev, hideNext = _a.hideNext, prevHref = _a.prevHref, nextHref = _a.nextHref, onPrevPage = _a.onPrevPage, onNextPage = _a.onNextPage, isFluid = _a.isFluid, props = __rest(_a, ["hidePrev", "hideNext", "prevHref", "nextHref", "onPrevPage", "onNextPage", "isFluid"]);
35559
35608
  var surface = React.useContext(Context$5).surface;
35560
35609
  return (React__default["default"].createElement("nav", __assign({ className: classNames("arc-PaginationSimple", {
35561
35610
  "arc-PaginationSimple--onDarkSurface": surface === "dark",
@@ -35564,20 +35613,16 @@ var PaginationSimple = function (_a) {
35564
35613
  }) }, filterDataAttrs(props)),
35565
35614
  React__default["default"].createElement("ul", { className: "arc-PaginationSimple-list" },
35566
35615
  React__default["default"].createElement("li", { className: "arc-PaginationSimple-listItem" },
35567
- React__default["default"].createElement("button", { className: classNames("arc-PaginationSimple-navigationButton", {
35616
+ React__default["default"].createElement("a", { tabIndex: 0, href: prevHref, role: !prevHref ? "button" : undefined, className: classNames("arc-PaginationSimple-navigationButton", {
35568
35617
  "arc-PaginationSimple-navigationButton--hidden": hidePrev
35569
- }), onClick: function () {
35570
- onPrevPage();
35571
- } },
35618
+ }), onClick: onPrevPage },
35572
35619
  React__default["default"].createElement("div", { className: "arc-PaginationSimple-iconContainer arc-PaginationSimple-iconContainer--left" },
35573
35620
  React__default["default"].createElement(Icon, { color: "brand", size: 32, icon: BtIconChevronLeftMid })),
35574
35621
  React__default["default"].createElement("span", { className: "arc-PaginationSimple-prevText" }, "Prev"))),
35575
35622
  React__default["default"].createElement("li", { className: "arc-PaginationSimple-listItem" },
35576
- React__default["default"].createElement("button", { className: classNames("arc-PaginationSimple-navigationButton", {
35623
+ React__default["default"].createElement("a", { tabIndex: 0, href: nextHref, role: !nextHref ? "button" : undefined, className: classNames("arc-PaginationSimple-navigationButton", {
35577
35624
  "arc-PaginationSimple-navigationButton--hidden": hideNext
35578
- }), onClick: function () {
35579
- onNextPage();
35580
- } },
35625
+ }), onClick: onNextPage },
35581
35626
  React__default["default"].createElement("span", { className: "arc-PaginationSimple-nextText" }, "Next"),
35582
35627
  React__default["default"].createElement("div", { className: "arc-PaginationSimple-iconContainer arc-PaginationSimple-iconContainer--right" },
35583
35628
  React__default["default"].createElement(Icon, { color: "brand", size: 32, icon: BtIconChevronRightMid })))))));
@@ -35656,10 +35701,16 @@ var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
35656
35701
  return isIndeterminate ? indeterminateProps : determinateProps;
35657
35702
  };
35658
35703
 
35704
+ /**
35705
+ * Use `ProgressBar` to show the progress of a specific task within a page.
35706
+ */
35659
35707
  var ProgressBar = function (_a) {
35660
35708
  var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, props = __rest(_a, ["state", "value", "isIndeterminate", "headline", "ariaLabel", "action", "title", "description", "displayValue"]);
35661
35709
  var surface = React.useContext(Context$5).surface;
35662
35710
  var progressValue = Math.min(100, Math.max(0, value));
35711
+ var autoFocusRef = function (canFocus) { return function (el) {
35712
+ canFocus && el && el.focus();
35713
+ }; };
35663
35714
  return (React__default["default"].createElement("div", __assign({ "data-testid": "progress", className: classNames("arc-ProgressBar", "arc-ProgressBar--".concat(state), {
35664
35715
  "arc-ProgressBar--onDarkSurface": surface === "dark"
35665
35716
  }) }, filterDataAttrs(props)),
@@ -35673,11 +35724,11 @@ var ProgressBar = function (_a) {
35673
35724
  React__default["default"].createElement("div", { className: "arc-ProgressBar-container" },
35674
35725
  React__default["default"].createElement("div", { className: "arc-ProgressBar-outerBar" },
35675
35726
  React__default["default"].createElement("div", __assign({}, getProgressBarProps(isIndeterminate, progressValue, ariaLabel)))),
35676
- description && (React__default["default"].createElement("div", { className: "arc-ProgressBar-description" },
35727
+ description && (React__default["default"].createElement("div", { className: "arc-ProgressBar-description", role: "status" },
35677
35728
  React__default["default"].createElement(Text, { tone: state !== "error" ? "supporting" : "default" }, description))),
35678
35729
  action && (React__default["default"].createElement(React__default["default"].Fragment, null,
35679
35730
  React__default["default"].createElement(VerticalSpace, { size: "8" }),
35680
- React__default["default"].createElement("button", { className: "arc-ProgressBar-actionButton", onClick: action.action },
35731
+ React__default["default"].createElement("button", { ref: autoFocusRef(action.autofocusOnMount), className: "arc-ProgressBar-actionButton", onClick: action.action },
35681
35732
  React__default["default"].createElement("div", { className: "arc-ProgressBar-actionContainer" },
35682
35733
  React__default["default"].createElement(Text, null, action.text),
35683
35734
  action.icon && (React__default["default"].createElement("div", { className: "arc-ProgressBar-actionIcon" },
@@ -35749,13 +35800,13 @@ var ProgressStepperItem = function (_a) {
35749
35800
  status !== "todo" && (React__default["default"].createElement(VisuallyHidden, null,
35750
35801
  capitaliseFirstLetter(status),
35751
35802
  ":")),
35752
- titleHref ? (React__default["default"].createElement("a", { href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler }, title)) : (React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
35803
+ titleHref || onClick ? (React__default["default"].createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler }, title)) : (React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
35753
35804
  React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
35754
35805
  stepContent && !isStepContentHidden && direction === "vertical" && (React__default["default"].createElement(React__default["default"].Fragment, null,
35755
35806
  React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-nodeItem" }, stepContent))))));
35756
35807
  };
35757
35808
 
35758
- /** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
35809
+ /** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
35759
35810
  var ProgressStepper = function (_a) {
35760
35811
  var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable"]);
35761
35812
  var items = React__default["default"].Children.toArray(children);
@@ -35796,7 +35847,7 @@ var RadioButton = React.forwardRef(function (_a, ref) {
35796
35847
  React__default["default"].createElement("label", { className: classNames("arc-RadioButton-label", {
35797
35848
  "arc-RadioButton-label--alignTop": radioButtonAlignment === "top"
35798
35849
  }), htmlFor: id, id: idLabel },
35799
- React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value }),
35850
+ React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value, "aria-checked": checked }),
35800
35851
  React__default["default"].createElement("span", { className: classNames({
35801
35852
  "arc-RadioButton-label--marginTop": radioButtonAlignment === "top"
35802
35853
  }) },
@@ -41200,7 +41251,7 @@ function $6be4966fd9bbc698$var$getState(checked) {
41200
41251
  const $6be4966fd9bbc698$export$be92b6f5f03c0fe9 = $6be4966fd9bbc698$export$b5d5cf8927ab7262;
41201
41252
  const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;
41202
41253
 
41203
- /** Use `Switch` to toggle between checked and not checked. */
41254
+ /** Use `Switch` to allow users to immediately toggle between two states. */
41204
41255
  var Switch = function (_a) {
41205
41256
  var defaultChecked = _a.defaultChecked, onCheckedChange = _a.onCheckedChange, label = _a.label, name = _a.name, onBlur = _a.onBlur, value = _a.value, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, id = _a.id, _c = _a.labelSize, labelSize = _c === void 0 ? "s" : _c, statusText = _a.statusText, _d = _a.hideLabel, hideLabel = _d === void 0 ? false : _d, props = __rest(_a, ["defaultChecked", "onCheckedChange", "label", "name", "onBlur", "value", "isDisabled", "errorMessage", "id", "labelSize", "statusText", "hideLabel"]);
41206
41257
  var surface = React.useContext(Context$5).surface;
@@ -41680,6 +41731,7 @@ var TabsList = function (_a) {
41680
41731
  React__default["default"].createElement(Icon, { icon: BtIconArrowRightFill, size: 40, color: "brand" })))));
41681
41732
  };
41682
41733
 
41734
+ /** Use `Tabs` to allow users to navigate between different sections of relevant content. */
41683
41735
  var Tabs = function (_a) {
41684
41736
  var children = _a.children, defaultValue = _a.defaultValue, onValueChange = _a.onValueChange, activationMode = _a.activationMode, props = __rest(_a, ["children", "defaultValue", "onValueChange", "activationMode"]);
41685
41737
  return (React__default["default"].createElement($69cb30bb0017df05$export$be92b6f5f03c0fe9, __assign({ className: "arc-Tabs-root", defaultValue: defaultValue, onValueChange: onValueChange, activationMode: activationMode }, filterDataAttrs(props)), children));
@@ -41690,7 +41742,7 @@ Tabs.Content = TabContent;
41690
41742
 
41691
41743
  /** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
41692
41744
  var TextArea = React.forwardRef(function (_a, ref) {
41693
- var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, width = _a.width, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width"]);
41745
+ var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, width = _a.width, autoComplete = _a.autoComplete, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width", "autoComplete"]);
41694
41746
  var surface = React.useContext(Context$5).surface;
41695
41747
  var ourRef = React.useRef(null);
41696
41748
  var _j = React.useState((value && value.length) || (defaultValue && defaultValue.length) || 0), characterCount = _j[0], setCharacterCount = _j[1];
@@ -41725,15 +41777,12 @@ var TextArea = React.forwardRef(function (_a, ref) {
41725
41777
  "arc-TextArea--noResize": resize !== "manual",
41726
41778
  "arc-TextArea--onDarkSurface": surface === "dark",
41727
41779
  "arc-TextArea--invalid": errorMessage
41728
- }), defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, value: value, readOnly: isReadOnly, maxLength: maxLength, name: name, onChange: handleOnChange, onBlur: onBlur, ref: getTextAreaRef, style: { width: width }, "aria-describedby": "".concat(id, "-helper") })));
41780
+ }), defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, value: value, readOnly: isReadOnly, maxLength: maxLength, name: name, onChange: handleOnChange, onBlur: onBlur, ref: getTextAreaRef, style: { width: width }, "aria-describedby": "".concat(id, "-helper"), autoComplete: autoComplete })));
41729
41781
  });
41730
41782
 
41731
- /**
41732
- * Use `TextInput` to allow custom user text entry with a keyboard.
41733
- */
41734
41783
  var TextInputComponent = React.forwardRef(function (_a, ref) {
41735
41784
  var _b;
41736
- 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, 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, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize", "iconButton", "prefix", "suffix", "inputAlignment", "width"]);
41785
+ 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, 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, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize", "iconButton", "prefix", "suffix", "inputAlignment", "width", "autoComplete"]);
41737
41786
  var surface = React.useContext(Context$5).surface;
41738
41787
  var _m = React.useState(false), showPasswordToggle = _m[0], setShowPasswordToggle = _m[1];
41739
41788
  var inferredInputProps = useNumericInput({
@@ -41769,7 +41818,7 @@ var TextInputComponent = React.forwardRef(function (_a, ref) {
41769
41818
  React__default["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 },
41770
41819
  React__default["default"].createElement("div", { className: "arc-TextInput-inputWrapper", style: { width: width } },
41771
41820
  prefix && (React__default["default"].createElement("span", { className: "arc-TextInput-prefix", "aria-hidden": true }, prefix)),
41772
- React__default["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, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, readOnly: isReadOnly, ref: ref, required: isRequired, value: typeof value !== "undefined" ? value : undefined }, inferredInputProps)),
41821
+ React__default["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, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, readOnly: isReadOnly, ref: ref, required: isRequired, value: typeof value !== "undefined" ? value : undefined, autoComplete: autoComplete }, inferredInputProps)),
41773
41822
  iconButton && !showPassword && (React__default["default"].createElement("div", { className: "arc-TextInput-additionalControl" },
41774
41823
  React__default["default"].createElement("button", { ref: iconButton.ref, className: "arc-TextInput-iconButton", disabled: isReadOnly || isDisabled, "aria-label": iconButton.label, onFocus: iconButton.onFocus, onClick: function (e) {
41775
41824
  e.preventDefault();
@@ -41785,6 +41834,9 @@ var TextInputComponent = React.forwardRef(function (_a, ref) {
41785
41834
  ? "Your password is shown"
41786
41835
  : "Your password is hidden")))))))));
41787
41836
  });
41837
+ /**
41838
+ * Use `TextInput` to allow users to enter short form text.
41839
+ */
41788
41840
  var TextInput = React.forwardRef(function (props, ref) { return React__default["default"].createElement(TextInputComponent, __assign({ ref: ref }, props)); });
41789
41841
  React.forwardRef(function (props, ref) { return React__default["default"].createElement(TextInputComponent, __assign({ ref: ref }, props)); });
41790
41842
 
@@ -42726,7 +42778,7 @@ var ToastNotification = function (_a) {
42726
42778
  React__default["default"].createElement(Icon, { icon: BtIconCrossAlt2Px, size: 24 }))))));
42727
42779
  };
42728
42780
 
42729
- /** Use `Toast` to display temporary messages at the bottom of the viewport. */
42781
+ /** Use `Toast` to display temporary messages at the bottom of the screen. */
42730
42782
  var Toast = function (_a) {
42731
42783
  var children = _a.children, _b = _a.colorScheme, colorScheme = _b === void 0 ? "default" : _b, props = __rest(_a, ["children", "colorScheme"]);
42732
42784
  return (React__default["default"].createElement($054eb8030ebde76e$export$2881499e37b75b9a, { swipeDirection: "right", duration: 6000 },
@@ -42741,6 +42793,7 @@ var Truncate = function (_a) {
42741
42793
  return (React__default["default"].createElement("div", __assign({ className: "arc-Truncate", style: { maxWidth: "".concat(maxWidth, "%") }, title: title }, filterDataAttrs(props)), children));
42742
42794
  };
42743
42795
 
42796
+ /** Use `TypographyCard` for content that benefits from larger and energetic typography. */
42744
42797
  var TypographyCard = function (_a) {
42745
42798
  var url = _a.url, onClick = _a.onClick, heading = _a.heading, metaText = _a.metaText, label = _a.label, minHeight = _a.minHeight, _b = _a.linkData, linkData = _b === void 0 ? {} : _b, _c = _a.pathway, pathway = _c === void 0 ? "light" : _c, _d = _a.buttonIcon, buttonIcon = _d === void 0 ? "arrow" : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, props = __rest(_a, ["url", "onClick", "heading", "metaText", "label", "minHeight", "linkData", "pathway", "buttonIcon", "headingLevel"]);
42746
42799
  var surface = React.useContext(Context$5).surface;
@@ -42785,6 +42838,76 @@ var UniversalHeaderItem = function (_a) {
42785
42838
  };
42786
42839
  UniversalHeader.Item = UniversalHeaderItem;
42787
42840
 
42841
+ var Visible = function (_a) {
42842
+ 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"]);
42843
+ return (React__default["default"].createElement("div", __assign({ className: classNames("arc-Visible", {
42844
+ "arc-Visible--xs": xs,
42845
+ "arc-Visible--s": s,
42846
+ "arc-Visible--m": m,
42847
+ "arc-Visible--l": l,
42848
+ "arc-Visible--xl": xl
42849
+ }) }, filterDataAttrs(props)), children));
42850
+ };
42851
+
42852
+ const BtIconNewWindow = (props) =>
42853
+ /*#__PURE__*/ React__default["default"].createElement(
42854
+ "svg",
42855
+ Object.assign(
42856
+ {
42857
+ xmlns: "http://www.w3.org/2000/svg",
42858
+ viewBox: "0 0 32 32",
42859
+ },
42860
+ props,
42861
+ ),
42862
+ /*#__PURE__*/ React__default["default"].createElement("defs", null),
42863
+ /*#__PURE__*/ React__default["default"].createElement("path", {
42864
+ d: "M24.70166,7.01794a.49968.49968,0,0,0-.19092-.03845H17.50586a.5.5,0,0,0,0,1h5.79785l-8.15918,8.15918a.49995.49995,0,1,0,.707.707l8.15918-8.15918v5.77393a.5.5,0,1,0,1,0v-6.981a.50171.50171,0,0,0-.30908-.46155Z",
42865
+ fill: "currentColor",
42866
+ }),
42867
+ /*#__PURE__*/ React__default["default"].createElement("path", {
42868
+ d: "M26.85156,3.99072H5.18359A1.20156,1.20156,0,0,0,3.9834,5.19141V26.89062a1.10362,1.10362,0,0,0,1.10254,1.103H26.85156a1.17979,1.17979,0,0,0,1.17871-1.17871V5.16943A1.17979,1.17979,0,0,0,26.85156,3.99072Zm.17871,22.82422a.17891.17891,0,0,1-.17871.17871H5.08594a.10419.10419,0,0,1-.10254-.103V5.19141a.20069.20069,0,0,1,.20019-.20069h21.668a.17888.17888,0,0,1,.17871.17871Z",
42869
+ fill: "currentColor",
42870
+ }),
42871
+ );
42872
+
42873
+ /**
42874
+ * Use `Link` to direct users to a new page or piece of information.
42875
+ */
42876
+ var Link = function (_a) {
42877
+ var id = _a.id, href = _a.href, title = _a.title, rel = _a.rel, target = _a.target, children = _a.children, onClick = _a.onClick, screenReaderText = _a.screenReaderText, _b = _a.isButton, isButton = _b === void 0 ? false : _b, _c = _a.isImplied, isImplied = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, props = __rest(_a, ["id", "href", "title", "rel", "target", "children", "onClick", "screenReaderText", "isButton", "isImplied", "size"]);
42878
+ var surface = React.useContext(Context$5).surface;
42879
+ var isExternalLink = target === "_blank";
42880
+ var textArray = children.split(" ");
42881
+ var firstText = textArray.slice(0, -1).join(" ");
42882
+ var lastWord = textArray[textArray.length - 1];
42883
+ var commonProps = {
42884
+ id: id,
42885
+ onClick: onClick,
42886
+ className: classNames("arc-Link", "arc-Link--".concat(size), {
42887
+ "arc-Link--onDarkSurface": surface === "dark",
42888
+ "arc-Link--onLightSurface": surface !== "dark",
42889
+ "arc-Link--isImplied": isImplied
42890
+ })
42891
+ };
42892
+ var elementProps = {
42893
+ a: __assign(__assign({}, commonProps), { href: href, title: title, target: target, rel: rel }),
42894
+ button: __assign({}, commonProps),
42895
+ span: __assign({}, commonProps)
42896
+ };
42897
+ var LinkElement = isButton ? "button" : href ? "a" : "span";
42898
+ return (React__default["default"].createElement(LinkElement, __assign({}, elementProps[LinkElement], filterDataAttrs(props)),
42899
+ React__default["default"].createElement("div", { className: "arc-Link-wrapper" },
42900
+ React__default["default"].createElement(VisuallyHidden, null,
42901
+ screenReaderText || children,
42902
+ isExternalLink && " (Opens in new window)"),
42903
+ React__default["default"].createElement("span", { "aria-hidden": true, className: "arc-Link-text" },
42904
+ firstText,
42905
+ "\u00A0"),
42906
+ React__default["default"].createElement("span", { className: "arc-Link-iconWrapper" },
42907
+ React__default["default"].createElement("span", { "aria-hidden": true, className: "arc-Link-text" }, lastWord),
42908
+ isExternalLink && (React__default["default"].createElement(Icon, { isPresentationIcon: true, icon: BtIconNewWindow, size: size === "s" ? 20 : 24 }))))));
42909
+ };
42910
+
42788
42911
  exports.Alert = Alert;
42789
42912
  exports.Align = Align;
42790
42913
  exports.Avatar = Avatar;
@@ -42806,12 +42929,15 @@ exports.DisclosureMini = DisclosureMini;
42806
42929
  exports.Elevation = Elevation;
42807
42930
  exports.Filter = Filter;
42808
42931
  exports.FormControl = FormControl;
42932
+ exports.Grid = Grid;
42809
42933
  exports.Group = Group;
42810
42934
  exports.Heading = Heading;
42935
+ exports.Hidden = Hidden;
42811
42936
  exports.Icon = Icon;
42812
42937
  exports.Image = Image;
42813
42938
  exports.ImpactCard = ImpactCard;
42814
42939
  exports.InformationCard = InformationCard;
42940
+ exports.Link = Link;
42815
42941
  exports.Markup = Markup;
42816
42942
  exports.MediaCard = MediaCard;
42817
42943
  exports.Modal = Modal;
@@ -42843,5 +42969,6 @@ exports.Truncate = Truncate;
42843
42969
  exports.TypographyCard = TypographyCard;
42844
42970
  exports.UniversalHeader = UniversalHeader;
42845
42971
  exports.VerticalSpace = VerticalSpace;
42972
+ exports.Visible = Visible;
42846
42973
  exports.VisuallyHidden = VisuallyHidden;
42847
42974
  //# sourceMappingURL=index.js.map