@arc-ui/components 13.0.0 → 13.1.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 (164) hide show
  1. package/lib/Alert/styles.css +1 -1
  2. package/lib/Align/styles.css +1 -1
  3. package/lib/AppButton/styles.css +1 -1
  4. package/lib/Avatar/styles.css +1 -1
  5. package/lib/AvatarGroup/styles.css +1 -1
  6. package/lib/Badge/styles.css +1 -1
  7. package/lib/Banner/Banner.cjs +7 -3
  8. package/lib/Banner/Banner.mjs +7 -3
  9. package/lib/Box/styles.css +1 -1
  10. package/lib/BrandLogo/styles.css +1 -1
  11. package/lib/Breadcrumbs/styles.css +1 -1
  12. package/lib/Button/styles.css +1 -1
  13. package/lib/ButtonGroup/styles.css +1 -1
  14. package/lib/ButtonV2/styles.css +1 -1
  15. package/lib/Calendar/Calendar.cjs +2 -2
  16. package/lib/Calendar/Calendar.mjs +2 -2
  17. package/lib/Calendar/styles.css +1 -1
  18. package/lib/CardFooter/styles.css +1 -1
  19. package/lib/CardHeading/styles.css +1 -1
  20. package/lib/Carousel/Carousel.cjs +26 -14
  21. package/lib/Carousel/Carousel.mjs +26 -14
  22. package/lib/Carousel/styles.css +1 -1
  23. package/lib/Checkbox/styles.css +1 -1
  24. package/lib/CheckboxIcon/styles.css +1 -1
  25. package/lib/ClientSideVisible/ClientSideVisible.cjs +1 -0
  26. package/lib/ClientSideVisible/ClientSideVisible.mjs +1 -0
  27. package/lib/Columns/styles.css +1 -1
  28. package/lib/ComboBox/ComboBox.cjs +530 -136
  29. package/lib/ComboBox/ComboBox.mjs +530 -136
  30. package/lib/ComboBox/styles.css +1 -1
  31. package/lib/ConditionalWrapper/ConditionalWrapper.cjs +1 -0
  32. package/lib/ConditionalWrapper/ConditionalWrapper.mjs +1 -0
  33. package/lib/ContentSwitcher/styles.css +1 -1
  34. package/lib/ContentSwitcherDropdown/styles.css +1 -1
  35. package/lib/DatePicker/DatePicker.cjs +3 -3
  36. package/lib/DatePicker/DatePicker.mjs +3 -3
  37. package/lib/DatePicker/styles.css +1 -1
  38. package/lib/Disclosure/styles.css +1 -1
  39. package/lib/DisclosureMini/styles.css +1 -1
  40. package/lib/Download/styles.css +1 -1
  41. package/lib/Drawer/styles.css +1 -1
  42. package/lib/Elevation/styles.css +1 -1
  43. package/lib/Filter/styles.css +1 -1
  44. package/lib/FormControl/styles.css +1 -1
  45. package/lib/GhostedHeroBanner/styles.css +1 -1
  46. package/lib/GradientPageBackground/GradientPageBackground.cjs +2 -2
  47. package/lib/GradientPageBackground/GradientPageBackground.mjs +2 -2
  48. package/lib/GradientPageBackground/styles.css +1 -1
  49. package/lib/Grid/Grid.cjs +1 -0
  50. package/lib/Grid/Grid.mjs +1 -0
  51. package/lib/Grid/styles.css +1 -1
  52. package/lib/Group/styles.css +1 -1
  53. package/lib/Heading/styles.css +1 -1
  54. package/lib/HeroBanner/HeroBanner.cjs +7 -3
  55. package/lib/HeroBanner/HeroBanner.mjs +7 -3
  56. package/lib/HeroBanner/styles.css +1 -1
  57. package/lib/HeroButton/styles.css +1 -1
  58. package/lib/Hidden/styles.css +1 -1
  59. package/lib/HorizontalCard/styles.css +1 -1
  60. package/lib/Icon/styles.css +1 -1
  61. package/lib/Image/styles.css +1 -1
  62. package/lib/ImpactCard/ImpactCard.cjs +28 -15
  63. package/lib/ImpactCard/ImpactCard.mjs +29 -16
  64. package/lib/ImpactCard/styles.css +1 -1
  65. package/lib/InformationCard/InformationCard.cjs +57 -33
  66. package/lib/InformationCard/InformationCard.mjs +59 -35
  67. package/lib/InformationCard/styles.css +1 -1
  68. package/lib/Link/styles.css +1 -1
  69. package/lib/Markup/styles.css +1 -1
  70. package/lib/MediaCard/MediaCard.cjs +40 -21
  71. package/lib/MediaCard/MediaCard.mjs +41 -22
  72. package/lib/MediaCard/styles.css +1 -1
  73. package/lib/Menu/styles.css +1 -1
  74. package/lib/Modal/styles.css +1 -1
  75. package/lib/NavigationHeader/NavigationHeader.cjs +4 -4
  76. package/lib/NavigationHeader/NavigationHeader.mjs +4 -4
  77. package/lib/NavigationHeader/styles.css +1 -1
  78. package/lib/Pagination/styles.css +1 -1
  79. package/lib/PaginationSimple/styles.css +1 -1
  80. package/lib/Popover/Popover.cjs +1 -1
  81. package/lib/Popover/Popover.mjs +1 -1
  82. package/lib/Popover/styles.css +1 -1
  83. package/lib/Poster/styles.css +1 -1
  84. package/lib/ProgressBar/styles.css +1 -1
  85. package/lib/ProgressStepper/styles.css +1 -1
  86. package/lib/ProgressStepperOverflow/styles.css +1 -1
  87. package/lib/RadioCardGroup/styles.css +1 -1
  88. package/lib/RadioGroup/RadioGroup.cjs +2 -1
  89. package/lib/RadioGroup/RadioGroup.mjs +2 -1
  90. package/lib/RadioGroup/styles.css +1 -1
  91. package/lib/Rule/styles.css +1 -1
  92. package/lib/ScrollToTop/styles.css +1 -1
  93. package/lib/Section/styles.css +1 -1
  94. package/lib/Select/styles.css +1 -1
  95. package/lib/SemanticHeading/styles.css +1 -1
  96. package/lib/SiteFooter/styles.css +1 -1
  97. package/lib/SiteFooterV2/SiteFooterV2.cjs +3 -2
  98. package/lib/SiteFooterV2/SiteFooterV2.mjs +3 -2
  99. package/lib/SiteFooterV2/styles.css +1 -1
  100. package/lib/SiteHeaderV2/SiteHeaderV2.cjs +1 -1
  101. package/lib/SiteHeaderV2/SiteHeaderV2.mjs +1 -1
  102. package/lib/SiteHeaderV2/styles.css +1 -1
  103. package/lib/Skeleton/styles.css +1 -1
  104. package/lib/SkipLink/SkipLink.cjs +1 -0
  105. package/lib/SkipLink/SkipLink.mjs +1 -0
  106. package/lib/SkipLink/styles.css +1 -1
  107. package/lib/Spacing/Spacing.cjs +38 -0
  108. package/lib/Spacing/Spacing.mjs +36 -0
  109. package/lib/Spacing/styles.css +1 -0
  110. package/lib/Spinner/styles.css +1 -1
  111. package/lib/Surface/styles.css +1 -1
  112. package/lib/Switch/styles.css +1 -1
  113. package/lib/TabbedBanner/TabbedBanner.cjs +5 -3
  114. package/lib/TabbedBanner/TabbedBanner.mjs +5 -3
  115. package/lib/TabbedBanner/styles.css +1 -1
  116. package/lib/Tabs/Tabs.cjs +57 -25
  117. package/lib/Tabs/Tabs.mjs +57 -25
  118. package/lib/Tabs/styles.css +1 -1
  119. package/lib/Tag/styles.css +1 -1
  120. package/lib/TemplateBanner/TemplateBanner.cjs +5 -1
  121. package/lib/TemplateBanner/TemplateBanner.mjs +5 -1
  122. package/lib/TemplateBanner/styles.css +1 -1
  123. package/lib/Text/styles.css +1 -1
  124. package/lib/TextArea/styles.css +1 -1
  125. package/lib/TextInput/TextInput.cjs +1 -1
  126. package/lib/TextInput/TextInput.mjs +1 -1
  127. package/lib/TextInput/styles.css +1 -1
  128. package/lib/Theme/Theme.cjs +1 -1
  129. package/lib/Theme/Theme.mjs +1 -1
  130. package/lib/Theme/styles.css +1 -1
  131. package/lib/ThemeIcon/styles.css +1 -1
  132. package/lib/ThumbnailSignpost/styles.css +1 -1
  133. package/lib/Toast/styles.css +1 -1
  134. package/lib/Tooltip/styles.css +1 -1
  135. package/lib/Truncate/styles.css +1 -1
  136. package/lib/TypographyCard/TypographyCard.cjs +38 -14
  137. package/lib/TypographyCard/TypographyCard.mjs +39 -15
  138. package/lib/TypographyCard/styles.css +1 -1
  139. package/lib/UniversalHeader/styles.css +1 -1
  140. package/lib/VerticalSpace/styles.css +1 -1
  141. package/lib/VideoPlayer/styles.css +1 -1
  142. package/lib/Visible/styles.css +1 -1
  143. package/lib/VisuallyHidden/styles.css +1 -1
  144. package/lib/_shared/cjs/{Calendar-CdLn9iv6.cjs → Calendar-CLWtKvPh.cjs} +1 -1
  145. package/lib/_shared/cjs/{Popover-BtvRErpC.cjs → Popover-BxuQPltF.cjs} +2 -2
  146. package/lib/_shared/cjs/{TemplateBanner-DyXBKuMw.cjs → TemplateBanner-rdwgmFH_.cjs} +35 -5
  147. package/lib/_shared/cjs/{TextInput-C_K2PLf5.cjs → TextInput-CLkhL2KT.cjs} +39 -6
  148. package/lib/_shared/cjs/{arc-breakpoints-uADxN-b4.cjs → arc-breakpoints-JJMLGzht.cjs} +1 -1
  149. package/lib/_shared/cjs/{index.es-BAsay4oe.cjs → index.es-CCJ64o4N.cjs} +1 -1
  150. package/lib/_shared/esm/{Calendar-CzFIMyD1.mjs → Calendar-BcYEIJhA.mjs} +1 -1
  151. package/lib/_shared/esm/{Popover-DRQSgAog.mjs → Popover-Pjtmu_TN.mjs} +2 -2
  152. package/lib/_shared/esm/{TemplateBanner-BPzuH5bz.mjs → TemplateBanner-DzU9Edky.mjs} +36 -6
  153. package/lib/_shared/esm/{TextInput-BCvKXfM_.mjs → TextInput-WczTCUvp.mjs} +40 -7
  154. package/lib/_shared/esm/{arc-breakpoints-ChQgbftE.mjs → arc-breakpoints-CQOgeFK_.mjs} +1 -1
  155. package/lib/_shared/esm/{index.es-99J0r2va.mjs → index.es-BJl4zTyt.mjs} +1 -1
  156. package/lib/index.cjs +4857 -4255
  157. package/lib/index.cjs.map +1 -1
  158. package/lib/index.d.cts +313 -110
  159. package/lib/index.d.mts +313 -110
  160. package/lib/index.js.map +1 -1
  161. package/lib/index.mjs +4857 -4256
  162. package/lib/index.mjs.map +1 -1
  163. package/lib/styles.css +6 -2
  164. package/package.json +6 -6
@@ -1,7 +1,9 @@
1
1
  import { _ as __rest, a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
2
- import React__default from 'react';
2
+ import React__default, { useState, useEffect } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
+ import { d as debounce } from './debounce-D_Nx5go6.mjs';
4
5
  import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
6
+ import { A as ArcBreakpoints } from './arc-breakpoints-CQOgeFK_.mjs';
5
7
  import { V as VerticalSpace } from './VerticalSpace-BLWB02I7.mjs';
6
8
  import { B as Box } from './Box-C8iK8x5c.mjs';
7
9
  import { H as Heading } from './Heading-Da-o0d5x.mjs';
@@ -21,7 +23,7 @@ var BannerRow = function (_a) {
21
23
 
22
24
  /** Use `TemplateBanner` as a base structure for banner components; other banner variants extend or consume this template. */
23
25
  var TemplateBanner = function (_a) {
24
- var heading = _a.heading, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, label = _a.label, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, text = _a.text, img = _a.img, _d = _a.contentRatio, contentRatio = _d === void 0 ? "1/1" : _d, children = _a.children, _e = _a.alignment, alignment = _e === void 0 ? "center" : _e, additionalTopMargin = _a.additionalTopMargin, _f = _a.minHeight, minHeight = _f === void 0 ? 454 : _f, minHeightM = _a.minHeightM, minHeightL = _a.minHeightL, minHeightXL = _a.minHeightXL, _g = _a.headingSize, headingSize = _g === void 0 ? "xl" : _g, _h = _a.isReversed, isReversed = _h === void 0 ? false : _h, _j = _a.isElevated, isElevated = _j === void 0 ? false : _j, _k = _a.headingLevel, headingLevel = _k === void 0 ? "2" : _k, _l = _a.headingWordWrap, headingWordWrap = _l === void 0 ? false : _l, _m = _a.type, type = _m === void 0 ? "light" : _m, props = __rest(_a, ["heading", "fontStyle", "label", "labelLevel", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "minHeightM", "minHeightL", "minHeightXL", "headingSize", "isReversed", "isElevated", "headingLevel", "headingWordWrap", "type"]);
26
+ var heading = _a.heading, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, label = _a.label, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, text = _a.text, img = _a.img, _d = _a.contentRatio, contentRatio = _d === void 0 ? "1/1" : _d, contentRatios = _a.contentRatios, children = _a.children, _e = _a.alignment, alignment = _e === void 0 ? "center" : _e, additionalTopMargin = _a.additionalTopMargin, _f = _a.minHeight, minHeight = _f === void 0 ? 454 : _f, minHeightM = _a.minHeightM, minHeightL = _a.minHeightL, minHeightXL = _a.minHeightXL, _g = _a.headingSize, headingSize = _g === void 0 ? "xl" : _g, _h = _a.isReversed, isReversed = _h === void 0 ? false : _h, _j = _a.isElevated, isElevated = _j === void 0 ? false : _j, _k = _a.headingLevel, headingLevel = _k === void 0 ? "2" : _k, _l = _a.headingWordWrap, headingWordWrap = _l === void 0 ? false : _l, _m = _a.type, type = _m === void 0 ? "light" : _m, props = __rest(_a, ["heading", "fontStyle", "label", "labelLevel", "text", "img", "contentRatio", "contentRatios", "children", "alignment", "additionalTopMargin", "minHeight", "minHeightM", "minHeightL", "minHeightXL", "headingSize", "isReversed", "isElevated", "headingLevel", "headingWordWrap", "type"]);
25
27
  var backgrounds = {
26
28
  dark: "dark-brand-02",
27
29
  light: "light-white",
@@ -47,6 +49,30 @@ var TemplateBanner = function (_a) {
47
49
  ? "".concat(minHeightXL, "px")
48
50
  : "auto",
49
51
  };
52
+ var _o = useState("1/1"), contentRatiosPerBreakpoint = _o[0], setContentRatios = _o[1];
53
+ var checkContentRatio = debounce(function () {
54
+ if (contentRatios) {
55
+ for (var _i = 0, _a = Object.entries(ArcBreakpoints); _i < _a.length; _i++) {
56
+ var _b = _a[_i], key = _b[0], value = _b[1];
57
+ if (window.innerWidth > value) {
58
+ var ratio = contentRatios === null || contentRatios === void 0 ? void 0 : contentRatios[key];
59
+ if (ratio) {
60
+ setContentRatios(ratio);
61
+ return;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ setContentRatios(contentRatio);
67
+ }, 100);
68
+ useEffect(function () {
69
+ checkContentRatio();
70
+ window.addEventListener("resize", checkContentRatio);
71
+ return function () {
72
+ window.removeEventListener("resize", checkContentRatio);
73
+ checkContentRatio.cancel();
74
+ };
75
+ }, [contentRatios, checkContentRatio]);
50
76
  return (React__default.createElement("div", __assign({ style: templateBannerStyles, className: classNames("arc-TemplateBanner arc-TemplateBanner-background--".concat(type), {
51
77
  "arc-TemplateBanner--elevation": isElevated,
52
78
  "arc-TemplateBanner--minHeightM": minHeightM,
@@ -58,8 +84,10 @@ var TemplateBanner = function (_a) {
58
84
  React__default.createElement(BannerRow, { "data-testid": "arc-TemplateBanner-gridRow", isReversed: isReversed },
59
85
  React__default.createElement(GridCol, { "data-testid": "arc-TemplateBanner-contentCol", align: {
60
86
  m: alignment === "start" ? "start" : "center",
61
- xs: !img || contentRatio === "1/0" ? "center" : "start",
62
- }, xs: 12, order: { xs: isContained && isReversed ? 1 : 0, m: 0 }, m: img ? columnWithImgWidths[contentRatio] : 12 },
87
+ xs: !img || contentRatiosPerBreakpoint === "1/0"
88
+ ? "center"
89
+ : "start",
90
+ }, xs: 12, order: { xs: isContained && isReversed ? 1 : 0, m: 0 }, m: img ? columnWithImgWidths[contentRatiosPerBreakpoint] : 12 },
63
91
  React__default.createElement("div", { className: classNames("arc-TemplateBanner-content", {
64
92
  "arc-TemplateBanner-content--additionalTopMargin": additionalTopMargin && alignment === "start",
65
93
  }) },
@@ -73,9 +101,11 @@ var TemplateBanner = function (_a) {
73
101
  children && (React__default.createElement("span", null,
74
102
  React__default.createElement(VerticalSpace, { size: "32" }),
75
103
  children)))),
76
- img && contentRatio !== "1/0" && (React__default.createElement(GridCol, __assign({ "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
104
+ img && contentRatiosPerBreakpoint !== "1/0" && (React__default.createElement(GridCol, __assign({ "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
77
105
  ? { m: imageAlignment[img.alignment || "center"] }
78
- : undefined, xs: 12 }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
106
+ : undefined, xs: 12 }, (contentRatiosPerBreakpoint === "2/3" && img
107
+ ? { m: 4 }
108
+ : { m: 6 })),
79
109
  React__default.createElement(BannerImage, __assign({ ariaHidden: true }, img)))))))));
80
110
  };
81
111
 
@@ -1,5 +1,5 @@
1
1
  import { a as __assign, _ as __rest } from './tslib.es6-w7hdJ3oZ.mjs';
2
- import React__default, { useState, useContext } from 'react';
2
+ import React__default, { useState, useRef, useContext } from 'react';
3
3
  import { c as classNames } from './index-5C0-U8cc.mjs';
4
4
  import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
5
5
  import { u as useAriaDescribedby, F as FormControl } from './FormControl-DopDD_nC.mjs';
@@ -60,7 +60,7 @@ var InputIcon = function (_a) {
60
60
  "arc-TextInput-inputIcon": true,
61
61
  "arc-TextInput-inputIcon--isReadOnly": isReadOnly,
62
62
  "arc-TextInput-inputIcon--isDisabled": isDisabled,
63
- }), disabled: isReadOnly || isDisabled, "aria-label": isButton.label, onFocus: isButton.onFocus, onClick: function (e) {
63
+ }), disabled: isReadOnly || isDisabled, "aria-label": isButton.label, onFocus: isButton.onFocus, onKeyDown: isButton.onKeyDown, onClick: function (e) {
64
64
  var _a;
65
65
  e.preventDefault();
66
66
  (_a = isButton.onClick) === null || _a === void 0 ? void 0 : _a.call(isButton);
@@ -71,19 +71,42 @@ var InputIcon = function (_a) {
71
71
 
72
72
  var TrailingSlot = function (_a) {
73
73
  var _b;
74
- var trailingSlot = _a.trailingSlot, showPassword = _a.showPassword, isPasswordVisible = _a.isPasswordVisible, onTogglePassword = _a.onTogglePassword, isLoading = _a.isLoading, clearButton = _a.clearButton, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, _c = _a.size, size = _c === void 0 ? "m" : _c;
74
+ var id = _a.id, trailingSlot = _a.trailingSlot, showPassword = _a.showPassword, isPasswordVisible = _a.isPasswordVisible, onTogglePassword = _a.onTogglePassword, isLoading = _a.isLoading, clearButton = _a.clearButton, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, _c = _a.size, size = _c === void 0 ? "m" : _c, inputRef = _a.inputRef;
75
75
  var spinnerSizeMap = {
76
76
  s: 16,
77
77
  m: 24,
78
78
  l: 24,
79
79
  };
80
80
  var spinnerSize = spinnerSizeMap[size];
81
- return (React__default.createElement("span", { className: "arc-TextInput-trailingSlot" },
81
+ var focusInput = function () {
82
+ var _a;
83
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
84
+ };
85
+ var clearInput = function () {
86
+ var _a;
87
+ if (inputRef.current) {
88
+ inputRef.current.value = "";
89
+ inputRef.current.dispatchEvent(new Event("input", { bubbles: true }));
90
+ }
91
+ (_a = clearButton === null || clearButton === void 0 ? void 0 : clearButton.onClick) === null || _a === void 0 ? void 0 : _a.call(clearButton);
92
+ };
93
+ var onClearButtonKeydown = function () {
94
+ clearInput();
95
+ focusInput();
96
+ };
97
+ return (React__default.createElement("span", { className: "arc-TextInput-trailingSlot", id: "trailingslot-".concat(id) },
82
98
  trailingSlot && !showPassword && !isLoading && !clearButton && (React__default.createElement(React__default.Fragment, null, trailingSlot)),
83
99
  (clearButton === null || clearButton === void 0 ? void 0 : clearButton.onClick) && !showPassword && !isLoading && (React__default.createElement(InputIcon, { themeIcon: "textInputClear", isReadOnly: isReadOnly, isDisabled: isDisabled, tooltip: {
84
100
  title: (_b = clearButton.tooltipLabel) !== null && _b !== void 0 ? _b : "Clear",
85
101
  side: "bottom",
86
- }, isButton: { onClick: clearButton.onClick, label: "Clear Input" }, size: size })),
102
+ }, isButton: {
103
+ onClick: function () {
104
+ clearInput();
105
+ focusInput();
106
+ },
107
+ label: "Clear Input",
108
+ onKeyDown: onClearButtonKeydown,
109
+ }, size: size })),
87
110
  showPassword && !isLoading && (React__default.createElement(React__default.Fragment, null,
88
111
  React__default.createElement(InputIcon, { isDisabled: isDisabled, isReadOnly: isReadOnly, themeIcon: isPasswordVisible
89
112
  ? "textInputShowPassword"
@@ -112,6 +135,16 @@ var TextInputComponent = function (_a) {
112
135
  var _b;
113
136
  var ref = _a.ref, _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, leadingSlot = _a.leadingSlot, trailingSlot = _a.trailingSlot, _k = _a.inputAlignment, inputAlignment = _k === void 0 ? "left" : _k, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, isErrorAlert = _a.isErrorAlert, prefix = _a.prefix, suffix = _a.suffix, clearButton = _a.clearButton, props = __rest(_a, ["ref", "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", "leadingSlot", "trailingSlot", "inputAlignment", "width", "autoComplete", "isLoading", "isErrorAlert", "prefix", "suffix", "clearButton"]);
114
137
  var _l = useState(false), showPasswordToggle = _l[0], setShowPasswordToggle = _l[1];
138
+ var inputRef = useRef(null);
139
+ var setInputRef = function (node) {
140
+ inputRef.current = node;
141
+ if (typeof ref === "function") {
142
+ ref(node);
143
+ }
144
+ else if (ref) {
145
+ ref.current = node;
146
+ }
147
+ };
115
148
  var inferredInputProps = useNumericInput({
116
149
  inputMode: inputMode,
117
150
  pattern: pattern,
@@ -143,11 +176,11 @@ var TextInputComponent = function (_a) {
143
176
  React__default.createElement("div", { className: "arc-TextInput-inputWrapper", style: { width: width, marginTop: hideLabel ? 0 : undefined } },
144
177
  prefix && (React__default.createElement("span", { className: "arc-TextInput-prefix arc-TextInput-affixes", "aria-hidden": true }, prefix)),
145
178
  leadingSlot && (React__default.createElement("span", { className: "arc-TextInput-leadingSlot" }, leadingSlot)),
146
- 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, 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)),
179
+ 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, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, onFocus: onFocus, readOnly: isReadOnly, ref: setInputRef, required: isRequired, value: typeof value !== "undefined" ? value : undefined, autoComplete: autoComplete }, inferredInputProps)),
147
180
  (trailingSlot ||
148
181
  showPassword ||
149
182
  isLoading ||
150
- (clearButton === null || clearButton === void 0 ? void 0 : clearButton.onClick)) && (React__default.createElement(TrailingSlot, { showPassword: showPassword, isReadOnly: isReadOnly, isLoading: isLoading, clearButton: clearButton, trailingSlot: trailingSlot, isPasswordVisible: showPasswordToggle, onTogglePassword: function () { return setShowPasswordToggle(function (prev) { return !prev; }); }, size: size, isDisabled: isDisabled })),
183
+ (clearButton === null || clearButton === void 0 ? void 0 : clearButton.onClick)) && (React__default.createElement(TrailingSlot, { id: id, showPassword: showPassword, isReadOnly: isReadOnly, isLoading: isLoading, clearButton: clearButton, trailingSlot: trailingSlot, isPasswordVisible: showPasswordToggle, onTogglePassword: function () { return setShowPasswordToggle(function (prev) { return !prev; }); }, size: size, isDisabled: isDisabled, inputRef: inputRef })),
151
184
  suffix && (React__default.createElement("span", { className: "arc-TextInput-suffix arc-TextInput-affixes", "aria-hidden": true }, suffix))))));
152
185
  };
153
186
  /**
@@ -1,4 +1,4 @@
1
- import { A as ArcSizeBreakpointsS, a as ArcSizeBreakpointsM, b as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl, d as ArcSizeBreakpointsXxl, e as ArcSizeBreakpointsXs } from './index.es-99J0r2va.mjs';
1
+ import { A as ArcSizeBreakpointsS, a as ArcSizeBreakpointsM, b as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl, d as ArcSizeBreakpointsXxl, e as ArcSizeBreakpointsXs } from './index.es-BJl4zTyt.mjs';
2
2
 
3
3
  /**
4
4
  * Provides an object of breakpoints for responsive designs.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 23 Dec 2025 14:36:38 GMT
3
+ * Generated on Tue, 10 Feb 2026 16:04:38 GMT
4
4
  */
5
5
  var ArcSizeBreakpointsXs = "320px";
6
6
  var ArcSizeBreakpointsS = "636px";