@arc-ui/components 11.23.0 → 11.24.1

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 (57) hide show
  1. package/dist/Calendar/Calendar.cjs.js +1 -1
  2. package/dist/Calendar/Calendar.esm.js +1 -1
  3. package/dist/Card/Card.cjs.js +1 -1
  4. package/dist/Card/Card.esm.js +1 -1
  5. package/dist/Clock/Clock.cjs.js +7 -2
  6. package/dist/Clock/Clock.esm.js +7 -2
  7. package/dist/Curve/Curve.cjs.js +1 -1
  8. package/dist/Curve/Curve.esm.js +1 -1
  9. package/dist/DatePicker/DatePicker.cjs.js +2 -2
  10. package/dist/DatePicker/DatePicker.esm.js +2 -2
  11. package/dist/ProgressStepper/ProgressStepper.cjs.js +1 -1
  12. package/dist/ProgressStepper/ProgressStepper.esm.js +1 -1
  13. package/dist/RadioGroup/RadioGroup.cjs.js +2 -1
  14. package/dist/RadioGroup/RadioGroup.esm.js +1 -1
  15. package/dist/SiteFooter/SiteFooter.cjs.js +2 -2
  16. package/dist/SiteFooter/SiteFooter.esm.js +3 -3
  17. package/dist/SiteHeader/SiteHeader.cjs.js +1 -1
  18. package/dist/SiteHeader/SiteHeader.esm.js +1 -1
  19. package/dist/TextArea/TextArea.cjs.js +9 -9
  20. package/dist/TextArea/TextArea.esm.js +9 -9
  21. package/dist/TextInput/TextInput.cjs.js +1 -1
  22. package/dist/TextInput/TextInput.esm.js +1 -1
  23. package/dist/_shared/cjs/{Calendar-6ea75d05.js → Calendar-b022545c.js} +2 -2
  24. package/dist/_shared/cjs/{Card-5b19cabc.js → Card-78a70e63.js} +5 -1
  25. package/dist/_shared/cjs/{Curve-d038052b.js → Curve-b5117889.js} +1 -1
  26. package/dist/_shared/cjs/{ProgressStepper-57cfef1e.js → ProgressStepper-491f0286.js} +10 -10
  27. package/dist/_shared/cjs/{RadioGroup-85eda600.js → RadioGroup-26dc00fc.js} +22 -11
  28. package/dist/_shared/cjs/{SiteFooter-65b6360c.js → SiteFooter-20d5a9fa.js} +1 -1
  29. package/dist/_shared/cjs/{SiteHeader.rehydrator-b76b0889.js → SiteHeader.rehydrator-9d8f3dad.js} +5 -1
  30. package/dist/_shared/cjs/{TextInput-8912dd41.js → TextInput-8d139489.js} +2 -2
  31. package/dist/_shared/esm/{Calendar-fafaca6b.js → Calendar-ea232839.js} +2 -2
  32. package/dist/_shared/esm/{Card-7fc6c9b4.js → Card-a4b78406.js} +5 -1
  33. package/dist/_shared/esm/{Curve-d8679dde.js → Curve-e05b3c3f.js} +1 -1
  34. package/dist/_shared/esm/{ProgressStepper-6c811282.js → ProgressStepper-7eba3a6a.js} +10 -10
  35. package/dist/_shared/esm/{RadioGroup-6c8f8454.js → RadioGroup-427652ac.js} +22 -12
  36. package/dist/_shared/esm/{SiteFooter-38ee1536.js → SiteFooter-86f910b4.js} +1 -1
  37. package/dist/_shared/esm/{SiteHeader.rehydrator-8ad7651b.js → SiteHeader.rehydrator-2ec02ee7.js} +5 -1
  38. package/dist/_shared/esm/{TextInput-5ffa05da.js → TextInput-c0388103.js} +2 -2
  39. package/dist/index.es.js +52 -30
  40. package/dist/index.es.js.map +1 -1
  41. package/dist/index.js +52 -30
  42. package/dist/index.js.map +1 -1
  43. package/dist/styles.css +1 -1
  44. package/dist/types/components/Card/Card.d.ts +5 -1
  45. package/dist/types/components/Clock/Clock.d.ts +7 -2
  46. package/dist/types/components/Curve/Curve.d.ts +1 -1
  47. package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +17 -28
  48. package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +36 -0
  49. package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +1 -0
  50. package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -2
  51. package/dist/types/components/RadioGroup/context.d.ts +1 -1
  52. package/dist/types/components/RadioGroup/index.d.ts +1 -0
  53. package/dist/types/components/SiteHeader/SiteHeader.d.ts +5 -1
  54. package/dist/types/components/TextArea/TextArea.d.ts +5 -0
  55. package/dist/types/components/TextInput/TextInput.d.ts +5 -0
  56. package/dist/types/types/auto-complete-types.d.ts +1 -0
  57. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1796,7 +1796,11 @@ var useNumericInput = function (props) {
1796
1796
  };
1797
1797
 
1798
1798
  /**
1799
- * Use `Card` to contain content and actions about a single subject.
1799
+ #### Deprecation Notice
1800
+
1801
+ The `Card` component has been superseded by a range of new `Card` options (`ImpactCard`, `InformationCard`, `MediaCard`, `TypographyCard`) and therefore is being deprecated from Arc and will be removed in a future release.
1802
+
1803
+ Do not use `Card` for any new work, and prepare to update any design that features it to replace it with our newer `Card` options.
1800
1804
  */
1801
1805
  var Card = function (_a) {
1802
1806
  var _b;
@@ -2053,8 +2057,13 @@ var Checkbox = React.forwardRef(function (_a, ref) {
2053
2057
  });
2054
2058
 
2055
2059
  /**
2056
- * `Clock` is a demo component that shows the current time.
2057
- */
2060
+ #### Deprecation Notice
2061
+
2062
+ The `Clock` component is being deprecated from Arc and will be removed in a future release.
2063
+
2064
+ Do not use `Clock` for any new work, and prepare to update any design that features it to remove it.
2065
+
2066
+ */
2058
2067
  var Clock = function (_a) {
2059
2068
  var _b = _a.locale, locale = _b === void 0 ? "en-GB" : _b, props = __rest(_a, ["locale"]);
2060
2069
  var _c = React.useState(new Date()), time = _c[0], setTime = _c[1];
@@ -2129,7 +2138,7 @@ Columns.Col = Col$1;
2129
2138
  /**
2130
2139
  #### Deprecation Notice
2131
2140
 
2132
- The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use Curve for any new work, and prepare to update any design that features it to remove it.
2141
+ The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use `Curve` for any new work, and prepare to update any design that features it to remove it.
2133
2142
 
2134
2143
  `Curve` will be removed from Arc in a subsequent release
2135
2144
  */
@@ -35736,35 +35745,35 @@ var ProgressBar = function (_a) {
35736
35745
  };
35737
35746
 
35738
35747
  var Error$1 = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
35739
- React__default["default"].createElement("g", { "clip-path": "url(#a)" },
35748
+ React__default["default"].createElement("g", { clipPath: "url(#a)" },
35740
35749
  React__default["default"].createElement("path", { d: "m13.06 12 2.845-2.845a.75.75 0 0 0-1.06-1.06L12 10.94 9.155 8.095a.75.75 0 0 0-1.06 1.06L10.939 12l-2.844 2.845a.75.75 0 1 0 1.06 1.06L12 13.061l2.845 2.844a.75.75 0 0 0 1.06-1.06L13.06 12Z", fill: "currentColor" })),
35741
- React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", "stroke-width": "1.333" }),
35750
+ React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
35742
35751
  React__default["default"].createElement("defs", null,
35743
35752
  React__default["default"].createElement("clipPath", { id: "a" },
35744
35753
  React__default["default"].createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
35745
35754
 
35746
35755
  var Warning = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
35747
- React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", "stroke-width": "1.333" }),
35748
- React__default["default"].createElement("path", { d: "M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z", fill: "currentColor", stroke: "currentColor", "stroke-width": ".3" }))); };
35756
+ React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
35757
+ React__default["default"].createElement("path", { d: "M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z", fill: "currentColor", stroke: "currentColor", strokeWidth: ".3" }))); };
35749
35758
 
35750
35759
  var Complete = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
35751
- React__default["default"].createElement("g", { "clip-path": "url(#a)" },
35760
+ React__default["default"].createElement("g", { clipPath: "url(#a)" },
35752
35761
  React__default["default"].createElement("path", { d: "m10.125 16.435-3.53-3.53a.75.75 0 0 1 0-1.06.768.768 0 0 1 1.06 0l2.47 2.47 6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.28 7.28Z", fill: "currentColor" })),
35753
- React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", "stroke-width": "1.333" }),
35762
+ React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
35754
35763
  React__default["default"].createElement("defs", null,
35755
35764
  React__default["default"].createElement("clipPath", { id: "a" },
35756
35765
  React__default["default"].createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
35757
35766
 
35758
35767
  var Current = function () { return (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
35759
- React__default["default"].createElement("rect", { x: "0.666667", y: "0.666667", width: "22.6667", height: "22.6667", rx: "11.3333", stroke: "url(#paint0_linear_1_1050)", "stroke-width": "1.33333" }),
35768
+ React__default["default"].createElement("rect", { x: "0.666667", y: "0.666667", width: "22.6667", height: "22.6667", rx: "11.3333", stroke: "url(#paint0_linear_1_1050)", strokeWidth: "1.33333" }),
35760
35769
  React__default["default"].createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
35761
35770
  React__default["default"].createElement("defs", null,
35762
35771
  React__default["default"].createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
35763
- React__default["default"].createElement("stop", { "stop-color": "#F200F5" }),
35764
- React__default["default"].createElement("stop", { offset: "1", "stop-color": "#1EC8E6" }))))); };
35772
+ React__default["default"].createElement("stop", { stopColor: "#F200F5" }),
35773
+ React__default["default"].createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
35765
35774
 
35766
35775
  var Todo = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
35767
- React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", "stroke-width": "1.333" }))); };
35776
+ React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }))); };
35768
35777
 
35769
35778
  // export current step as an icon
35770
35779
  var ProgressStepperItem = function (_a) {
@@ -35828,18 +35837,15 @@ var useRadioContext = function () {
35828
35837
  return context;
35829
35838
  };
35830
35839
 
35831
- /**
35832
- * Radio Button component.
35833
- */
35834
35840
  var RadioButton = React.forwardRef(function (_a, ref) {
35835
- 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"]);
35836
- var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
35841
+ var id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin, props = __rest(_a, ["id", "changeEvent", "isDisabled", "size", "labelSize", "checked", "defaultChecked", "radioButtonAlignment", "name", "blurEvent", "value", "label", "helper", "hideLabel", "withMargin"]);
35837
35842
  var surface = React.useContext(Context$5).surface;
35838
35843
  var idLabel = "".concat(id, "-label");
35839
- var checked = checkedValue === value ? true : false;
35840
35844
  return (React__default["default"].createElement("div", __assign({ className: classNames({
35841
35845
  "arc-RadioButton": true,
35842
- "arc-RadioButton--disabled": isDisabled || groupDisabled,
35846
+ "arc-RadioButton--withMargin": withMargin,
35847
+ "arc-RadioButton--withMarginSmall": withMargin && size === "s",
35848
+ "arc-RadioButton--disabled": isDisabled,
35843
35849
  "arc-RadioButton--small": size === "s",
35844
35850
  "arc-RadioButton--smallLabel": labelSize === "s",
35845
35851
  "arc-RadioButton--onDarkSurface": surface === "dark"
@@ -35847,14 +35853,26 @@ var RadioButton = React.forwardRef(function (_a, ref) {
35847
35853
  React__default["default"].createElement("label", { className: classNames("arc-RadioButton-label", {
35848
35854
  "arc-RadioButton-label--alignTop": radioButtonAlignment === "top"
35849
35855
  }), htmlFor: id, id: idLabel },
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 }),
35856
+ React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked: checked, defaultChecked: defaultChecked, disabled: isDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value, "aria-checked": checked }),
35851
35857
  React__default["default"].createElement("span", { className: classNames({
35852
35858
  "arc-RadioButton-label--marginTop": radioButtonAlignment === "top"
35853
35859
  }) },
35854
- label,
35860
+ hideLabel ? React__default["default"].createElement(VisuallyHidden, null, label) : label,
35855
35861
  helper && React__default["default"].createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
35856
35862
  });
35857
35863
 
35864
+ /**
35865
+ * Radio Button component.
35866
+ */
35867
+ var RadioButtonGroupInput = React.forwardRef(function (_a, ref) {
35868
+ 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"]);
35869
+ var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
35870
+ var isChecked = checkedValue === value ? true : false;
35871
+ var checked = typeof changeEvent !== "function" ? undefined : isChecked;
35872
+ var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
35873
+ return (React__default["default"].createElement(RadioButton, __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)));
35874
+ });
35875
+
35858
35876
  /**
35859
35877
  * Use `RadioGroup` to wrap and control radio buttons and apply default values
35860
35878
  */
@@ -35862,7 +35880,7 @@ var RadioGroup = function (_a) {
35862
35880
  var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? "l" : _d, props = __rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
35863
35881
  React.useEffect(function () {
35864
35882
  React__default["default"].Children.map(children, function (item) {
35865
- if (item && item.type !== RadioButton) {
35883
+ if (item && item.type !== RadioButtonGroupInput) {
35866
35884
  throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
35867
35885
  }
35868
35886
  });
@@ -35880,7 +35898,7 @@ var RadioGroup = function (_a) {
35880
35898
  React__default["default"].createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
35881
35899
  React__default["default"].createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
35882
35900
  };
35883
- RadioGroup.RadioButton = RadioButton;
35901
+ RadioGroup.RadioButton = RadioButtonGroupInput;
35884
35902
 
35885
35903
  /**
35886
35904
  * Use `Rule` to display a horizontal or vertical rule.
@@ -39986,7 +40004,11 @@ var defaultContext$2 = { transparent: false };
39986
40004
  var Context$2 = React.createContext(defaultContext$2);
39987
40005
  var Provider$2 = Context$2.Provider;
39988
40006
  /**
39989
- * Use `SiteHeader` to display brand logo and navigation at the top of a page.
40007
+ #### Deprecation Notice
40008
+
40009
+ The `SiteHeader` component has been superseded by `SiteHeaderV2` and therefore is being deprecated from Arc and will be removed in a future release.
40010
+
40011
+ Do not use `SiteHeader` for any new work, and prepare to update any design that features it to replace it with `SiteHeaderV2`.
39990
40012
  */
39991
40013
  var SiteHeader = function (_a) {
39992
40014
  var _b;
@@ -41742,7 +41764,7 @@ Tabs.Content = TabContent;
41742
41764
 
41743
41765
  /** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
41744
41766
  var TextArea = React.forwardRef(function (_a, ref) {
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, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width"]);
41767
+ 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"]);
41746
41768
  var surface = React.useContext(Context$5).surface;
41747
41769
  var ourRef = React.useRef(null);
41748
41770
  var _j = React.useState((value && value.length) || (defaultValue && defaultValue.length) || 0), characterCount = _j[0], setCharacterCount = _j[1];
@@ -41777,12 +41799,12 @@ var TextArea = React.forwardRef(function (_a, ref) {
41777
41799
  "arc-TextArea--noResize": resize !== "manual",
41778
41800
  "arc-TextArea--onDarkSurface": surface === "dark",
41779
41801
  "arc-TextArea--invalid": errorMessage
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") })));
41802
+ }), 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 })));
41781
41803
  });
41782
41804
 
41783
41805
  var TextInputComponent = React.forwardRef(function (_a, ref) {
41784
41806
  var _b;
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, 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"]);
41807
+ 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"]);
41786
41808
  var surface = React.useContext(Context$5).surface;
41787
41809
  var _m = React.useState(false), showPasswordToggle = _m[0], setShowPasswordToggle = _m[1];
41788
41810
  var inferredInputProps = useNumericInput({
@@ -41818,7 +41840,7 @@ var TextInputComponent = React.forwardRef(function (_a, ref) {
41818
41840
  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 },
41819
41841
  React__default["default"].createElement("div", { className: "arc-TextInput-inputWrapper", style: { width: width } },
41820
41842
  prefix && (React__default["default"].createElement("span", { className: "arc-TextInput-prefix", "aria-hidden": true }, prefix)),
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 }, inferredInputProps)),
41843
+ 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)),
41822
41844
  iconButton && !showPassword && (React__default["default"].createElement("div", { className: "arc-TextInput-additionalControl" },
41823
41845
  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) {
41824
41846
  e.preventDefault();