@arc-ui/components 12.0.0-beta.18 → 12.0.0-beta.19
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.
- package/lib/Alert/styles.css +1 -1
- package/lib/Align/styles.css +1 -1
- package/lib/AppButton/styles.css +1 -1
- package/lib/Avatar/styles.css +1 -1
- package/lib/AvatarGroup/styles.css +1 -1
- package/lib/Badge/styles.css +1 -1
- package/lib/Banner/Banner.cjs +2 -2
- package/lib/Banner/Banner.mjs +2 -2
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +2 -2
- package/lib/Calendar/Calendar.mjs +2 -2
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +1 -1
- package/lib/Carousel/Carousel.mjs +1 -1
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/Checkbox.cjs +2 -2
- package/lib/Checkbox/Checkbox.mjs +2 -2
- package/lib/Checkbox/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +2 -2
- package/lib/ComboBox/ComboBox.mjs +2 -2
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +5 -5
- package/lib/DatePicker/DatePicker.mjs +5 -5
- package/lib/DatePicker/styles.css +1 -1
- package/lib/Disclosure/styles.css +1 -1
- package/lib/DisclosureMini/styles.css +1 -1
- package/lib/Download/styles.css +1 -1
- package/lib/Drawer/styles.css +1 -1
- package/lib/Elevation/styles.css +1 -1
- package/lib/Filter/styles.css +1 -1
- package/lib/FormControl/FormControl.cjs +1 -1
- package/lib/FormControl/FormControl.mjs +1 -1
- package/lib/FormControl/styles.css +1 -1
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientBackground/styles.css +1 -1
- package/lib/Grid/styles.css +1 -1
- package/lib/Group/styles.css +1 -1
- package/lib/Heading/styles.css +1 -1
- package/lib/HeroBanner/HeroBanner.cjs +2 -2
- package/lib/HeroBanner/HeroBanner.mjs +2 -2
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +1 -1
- package/lib/InformationCard/InformationCard.mjs +1 -1
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +2 -2
- package/lib/MediaCard/MediaCard.mjs +2 -2
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +5 -19
- package/lib/Menu/Menu.mjs +6 -20
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.mjs +1 -1
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/RadioGroup.cjs +4 -5
- package/lib/RadioGroup/RadioGroup.mjs +5 -6
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/Select.cjs +11 -15
- package/lib/Select/Select.mjs +12 -16
- package/lib/Select/styles.css +1 -1
- package/lib/SiteFooter/SiteFooter.cjs +1 -1
- package/lib/SiteFooter/SiteFooter.mjs +1 -1
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +2 -2
- package/lib/SiteFooterV2/SiteFooterV2.mjs +2 -2
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +2 -2
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +3 -3
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/Switch.cjs +17 -14
- package/lib/Switch/Switch.mjs +17 -14
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +2 -2
- package/lib/TabbedBanner/TabbedBanner.mjs +2 -2
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +2 -2
- package/lib/TemplateBanner/TemplateBanner.mjs +2 -2
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +11 -11
- package/lib/TextArea/TextArea.mjs +11 -11
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/TextInput.cjs +2 -2
- package/lib/TextInput/TextInput.mjs +2 -2
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Calendar-C5C0evEy.cjs → Calendar-BwjsVOaO.cjs} +2 -2
- package/lib/_shared/cjs/{Checkbox-D2UQsmiB.cjs → Checkbox-DfZMjO1Y.cjs} +1 -1
- package/lib/_shared/cjs/{ComboBox-BIMxZhJp.cjs → ComboBox-CY_JTHWB.cjs} +1 -1
- package/lib/_shared/cjs/{DatePicker-BgU6iidG.cjs → DatePicker-PiPFgOL6.cjs} +4 -4
- package/lib/_shared/cjs/{FormControl-D3-JbAVb.cjs → FormControl-BPnKQrCm.cjs} +19 -13
- package/lib/_shared/cjs/{MediaCard-kcqfmeue.cjs → MediaCard-4SvlAL3w.cjs} +1 -1
- package/lib/_shared/cjs/{MenuSubContent-Bs2_ebS3.cjs → MenuSubContent-B7-PVHJ6.cjs} +0 -2
- package/lib/_shared/cjs/{RadioGroupInput-D3trTxB5.cjs → RadioGroupInput-w2qkfsnG.cjs} +2 -2
- package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-DgoCW2W3.cjs → SiteHeaderV2NavItemWithSubNav-CX1WAHv8.cjs} +1 -1
- package/lib/_shared/cjs/{TemplateBanner-BMi77IGK.cjs → TemplateBanner-Dn_6CJqe.cjs} +1 -1
- package/lib/_shared/cjs/{TextInput-DT4hi02U.cjs → TextInput-ByySubi5.cjs} +7 -7
- package/lib/_shared/cjs/{index.es-sqSQUWYg.cjs → index.es-i8i9xWYf.cjs} +1 -1
- package/lib/_shared/esm/{Calendar-L6u3D8xb.mjs → Calendar-Di_PdK9o.mjs} +2 -2
- package/lib/_shared/esm/{Checkbox-NxnK40uZ.mjs → Checkbox-CwOHzlQF.mjs} +1 -1
- package/lib/_shared/esm/{ComboBox-DUTrEu0N.mjs → ComboBox-Cga1icqB.mjs} +1 -1
- package/lib/_shared/esm/{DatePicker-CccSfg17.mjs → DatePicker-DyPo-u9K.mjs} +4 -4
- package/lib/_shared/esm/{FormControl-B9fp1ilz.mjs → FormControl-CWyrVi1u.mjs} +19 -13
- package/lib/_shared/esm/{MediaCard-CjTDOvmx.mjs → MediaCard-tYOu7gv8.mjs} +1 -1
- package/lib/_shared/esm/{MenuSubContent-Cv9mSn58.mjs → MenuSubContent-DCfTtJpf.mjs} +1 -2
- package/lib/_shared/esm/{RadioGroupInput-DiRS2jwQ.mjs → RadioGroupInput-zAWSV29m.mjs} +2 -2
- package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-BLqiSeEC.mjs → SiteHeaderV2NavItemWithSubNav-B9hz5IKd.mjs} +1 -1
- package/lib/_shared/esm/{TemplateBanner-zc4VmeeW.mjs → TemplateBanner-CS95cxio.mjs} +1 -1
- package/lib/_shared/esm/{TextInput-Vp_cBbpQ.mjs → TextInput-Dk7qNGoh.mjs} +7 -7
- package/lib/_shared/esm/{index.es-C3WGtwrW.mjs → index.es-DZ9WSYOo.mjs} +1 -1
- package/lib/index.cjs +63 -74
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +16 -13
- package/lib/index.d.mts +16 -13
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +63 -74
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +9 -9
- package/package.json +8 -8
package/lib/index.mjs
CHANGED
|
@@ -652,7 +652,7 @@ var Badge = function (_a) {
|
|
|
652
652
|
|
|
653
653
|
/**
|
|
654
654
|
* Do not edit directly
|
|
655
|
-
* Generated on
|
|
655
|
+
* Generated on Tue, 10 Jun 2025 09:53:42 GMT
|
|
656
656
|
*/
|
|
657
657
|
var ArcSizeBreakpointsXs = "320px";
|
|
658
658
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -5146,7 +5146,7 @@ var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
|
|
|
5146
5146
|
*/
|
|
5147
5147
|
|
|
5148
5148
|
const BtIconChevronDownMid =
|
|
5149
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'
|
|
5149
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m16 18.09 5.704-5.696a1.347 1.347 0 0 1 2.296.949 1.34 1.34 0 0 1-.393.95L16.95 20.94a1.347 1.347 0 0 1-1.902 0l-6.656-6.648A1.342 1.342 0 0 1 9.345 12c.356 0 .699.142.951.393z'/%3e%3c/svg%3e";
|
|
5150
5150
|
|
|
5151
5151
|
var CalendarDateSelect = function (_a) {
|
|
5152
5152
|
var ariaLabel = _a.ariaLabel, onChange = _a.onChange, name = _a.name, value = _a.value, displayValue = _a.displayValue, options = _a.options;
|
|
@@ -7847,14 +7847,15 @@ var Provider$4 = Context$2.Provider;
|
|
|
7847
7847
|
* Use `FormControl` to provide inputs with labels, helper text and error messages
|
|
7848
7848
|
*/
|
|
7849
7849
|
var FormControl = function (_a) {
|
|
7850
|
-
var
|
|
7850
|
+
var _b;
|
|
7851
|
+
var children = _a.children, _c = _a.elementType, ElementType = _c === void 0 ? "div" : _c, errorMessage = _a.errorMessage, helper = _a.helper, htmlFor = _a.htmlFor, supplementaryInfo = _a.supplementaryInfo, id = _a.id, label = _a.label, _d = _a.labelSize, labelSize = _d === void 0 ? "l" : _d, _e = _a.labelPosition, labelPosition = _e === void 0 ? "top" : _e, _f = _a.requirementStatus, requirementStatus = _f === void 0 ? "optional" : _f, _g = _a.helperUnderLabel, helperUnderLabel = _g === void 0 ? false : _g, isDisabled = _a.isDisabled, _h = _a.hideLabel, hideLabel = _h === void 0 ? false : _h, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest(_a, ["children", "elementType", "errorMessage", "helper", "htmlFor", "supplementaryInfo", "id", "label", "labelSize", "labelPosition", "requirementStatus", "helperUnderLabel", "isDisabled", "hideLabel", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
|
|
7851
7852
|
var surface = useContext(Context$3).surface;
|
|
7852
|
-
var
|
|
7853
|
+
var _j = useAriaDescribedby({
|
|
7853
7854
|
disclosureText: disclosureText,
|
|
7854
7855
|
errorMessage: errorMessage,
|
|
7855
7856
|
helper: helper,
|
|
7856
7857
|
id: htmlFor || id, // `htmlFor` is preference to keep this deterministic with TextInput
|
|
7857
|
-
}), ariaDescribedby =
|
|
7858
|
+
}), ariaDescribedby = _j.ariaDescribedby, idError = _j.idError, idHelper = _j.idHelper, idDisclosure = _j.idDisclosure;
|
|
7858
7859
|
var LabelType = ElementType === "div" ? "label" : "legend";
|
|
7859
7860
|
var elementProps = {};
|
|
7860
7861
|
var labelProps = {};
|
|
@@ -7874,22 +7875,27 @@ var FormControl = function (_a) {
|
|
|
7874
7875
|
? Boolean(errorMessage || disclosureTitle || supplementaryInfo)
|
|
7875
7876
|
: Boolean(errorMessage || disclosureTitle || helper || supplementaryInfo);
|
|
7876
7877
|
return (React__default.createElement(Provider$4, { value: { requirementStatus: requirementStatus } },
|
|
7877
|
-
React__default.createElement(ElementType, __assign({ className: classNames({
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7878
|
+
React__default.createElement(ElementType, __assign({ className: classNames((_b = {
|
|
7879
|
+
"arc-FormControl": true,
|
|
7880
|
+
"arc-FormControl--isDisabled": isDisabled,
|
|
7881
|
+
"arc-FormControl--onDarkSurface": surface === "dark",
|
|
7882
|
+
"arc-FormControl--sideLabel": labelPosition === "left"
|
|
7883
|
+
},
|
|
7884
|
+
_b["arc-FormControl--".concat(labelSize)] = labelSize !== "l",
|
|
7885
|
+
_b)), id: id }, elementProps, filterAttrs(props)),
|
|
7884
7886
|
hideLabel === true ? (React__default.createElement(VisuallyHidden$2, null,
|
|
7885
7887
|
React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
|
|
7886
7888
|
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper,
|
|
7887
7889
|
}) }, labelProps),
|
|
7888
|
-
label,
|
|
7890
|
+
label && (React__default.createElement("span", { className: classNames("arc-FormControl-labelText", {
|
|
7891
|
+
"arc-FormControl-labelText--withOptional": requirementStatus === "optional",
|
|
7892
|
+
}) }, label)),
|
|
7889
7893
|
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))) : (React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
|
|
7890
7894
|
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper,
|
|
7891
7895
|
}) }, labelProps),
|
|
7892
|
-
label,
|
|
7896
|
+
label && (React__default.createElement("span", { className: classNames("arc-FormControl-labelText", {
|
|
7897
|
+
"arc-FormControl-labelText--withOptional": requirementStatus === "optional",
|
|
7898
|
+
}) }, label)),
|
|
7893
7899
|
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)")))),
|
|
7894
7900
|
helperUnderLabel && helper && (React__default.createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)),
|
|
7895
7901
|
children,
|
|
@@ -7902,7 +7908,7 @@ var FormControl = function (_a) {
|
|
|
7902
7908
|
React__default.createElement("span", { className: "arc-FormControl-error--icon" },
|
|
7903
7909
|
React__default.createElement(ThemeIcon, { icon: "formControlAlert" })),
|
|
7904
7910
|
errorMessage)) : (!helperUnderLabel &&
|
|
7905
|
-
(disclosureTitle ? (React__default.createElement(DisclosureMini, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize, id: idDisclosure }, disclosureText)) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))))),
|
|
7911
|
+
(disclosureTitle ? (React__default.createElement(DisclosureMini, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize === "m" ? "l" : labelSize, id: idDisclosure }, disclosureText)) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))))),
|
|
7906
7912
|
supplementaryInfo && (React__default.createElement("div", { className: "arc-FormControl-supplementaryInfo" }, supplementaryInfo))))));
|
|
7907
7913
|
};
|
|
7908
7914
|
|
|
@@ -15117,9 +15123,9 @@ var DATE_FORMAT = "dd/MM/yyyy";
|
|
|
15117
15123
|
|
|
15118
15124
|
var TextInputComponent = forwardRef(function (_a, ref) {
|
|
15119
15125
|
var _b;
|
|
15120
|
-
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,
|
|
15126
|
+
var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _g = _a.type, type = _g === void 0 ? "text" : _g, _h = _a.showPassword, showPassword = _h === void 0 ? false : _h, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _j = _a.size, size = _j === void 0 ? "m" : _j, iconButton = _a.iconButton, prefix = _a.prefix, suffix = _a.suffix, _k = _a.inputAlignment, inputAlignment = _k === void 0 ? "left" : _k, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "maxLength", "minLength", "name", "onBlur", "onFocus", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "size", "iconButton", "prefix", "suffix", "inputAlignment", "width", "autoComplete", "isLoading"]);
|
|
15121
15127
|
var surface = useContext(Context$3).surface;
|
|
15122
|
-
var
|
|
15128
|
+
var _l = useState(false), showPasswordToggle = _l[0], setShowPasswordToggle = _l[1];
|
|
15123
15129
|
var inferredInputProps = useNumericInput({
|
|
15124
15130
|
inputMode: inputMode,
|
|
15125
15131
|
pattern: pattern,
|
|
@@ -15153,9 +15159,9 @@ var TextInputComponent = forwardRef(function (_a, ref) {
|
|
|
15153
15159
|
"arc-TextInput--withPrefix": prefix,
|
|
15154
15160
|
"arc-TextInput--withSuffix": suffix
|
|
15155
15161
|
},
|
|
15156
|
-
_b["arc-TextInput--size".concat(
|
|
15162
|
+
_b["arc-TextInput--size".concat(size && size.toUpperCase())] = size && size !== "m",
|
|
15157
15163
|
_b)) }, filterAttrs(props)),
|
|
15158
|
-
React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize:
|
|
15164
|
+
React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: size, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure },
|
|
15159
15165
|
React__default.createElement("div", { className: "arc-TextInput-inputWrapper", style: { width: width, marginTop: hideLabel ? 0 : undefined } },
|
|
15160
15166
|
prefix && (React__default.createElement("span", { className: "arc-TextInput-prefix", "aria-hidden": true }, prefix)),
|
|
15161
15167
|
React__default.createElement("input", __assign({ placeholder: placeholder, "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-TextInput-input", defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled || isLoading, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, onFocus: onFocus, readOnly: isReadOnly, ref: ref, required: isRequired, value: typeof value !== "undefined" ? value : undefined, autoComplete: autoComplete }, inferredInputProps)),
|
|
@@ -15164,7 +15170,7 @@ var TextInputComponent = forwardRef(function (_a, ref) {
|
|
|
15164
15170
|
e.preventDefault();
|
|
15165
15171
|
iconButton.onClick();
|
|
15166
15172
|
} },
|
|
15167
|
-
React__default.createElement(ThemeIcon, { icon: iconButton.icon, size: buttonIconSize[
|
|
15173
|
+
React__default.createElement(ThemeIcon, { icon: iconButton.icon, size: buttonIconSize[size] })))),
|
|
15168
15174
|
suffix && !showPassword ? (React__default.createElement("span", { className: "arc-TextInput-suffix", "aria-hidden": true }, suffix)) : null,
|
|
15169
15175
|
showPassword && (React__default.createElement("div", { className: "arc-TextInput-additionalControl" },
|
|
15170
15176
|
React__default.createElement("button", { className: "arc-TextInput-passwordToggle", onClick: function () { return setShowPasswordToggle(function (p) { return !p; }); }, type: "button" }, showPasswordToggle ? "Hide" : "Show"),
|
|
@@ -15174,7 +15180,7 @@ var TextInputComponent = forwardRef(function (_a, ref) {
|
|
|
15174
15180
|
? "Your password is shown"
|
|
15175
15181
|
: "Your password is hidden"))))),
|
|
15176
15182
|
isLoading && (React__default.createElement("span", { className: "arc-TextInput-spinner" },
|
|
15177
|
-
React__default.createElement(Spinner, { size: spinnerSize[
|
|
15183
|
+
React__default.createElement(Spinner, { size: spinnerSize[size] })))))));
|
|
15178
15184
|
});
|
|
15179
15185
|
/**
|
|
15180
15186
|
* Use `TextInput` to allow users to enter short form text.
|
|
@@ -15272,7 +15278,7 @@ var convertRangeStringToDates = function (value) {
|
|
|
15272
15278
|
* Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
|
|
15273
15279
|
*/
|
|
15274
15280
|
var DatePicker = forwardRef(function (_a, ref) {
|
|
15275
|
-
var errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, label = _a.label, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired,
|
|
15281
|
+
var errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, label = _a.label, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, size = _a.size, _b = _a.value, value = _b === void 0 ? "" : _b, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, onClickDisclosure = _a.onClickDisclosure, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, type = _a.type, _c = _a.isFluid, isFluid = _c === void 0 ? false : _c, _d = _a.selectionType, selectionType = _d === void 0 ? "single" : _d, disabledDates = _a.disabledDates, minDate = _a.minDate, maxDate = _a.maxDate, props = __rest(_a, ["errorMessage", "helper", "id", "label", "isDisabled", "isReadOnly", "isRequired", "size", "value", "name", "onBlur", "onChange", "onDateSelect", "onRangeSelect", "onClickDisclosure", "disclosureTitle", "disclosureText", "type", "isFluid", "selectionType", "disabledDates", "minDate", "maxDate"]);
|
|
15276
15282
|
var _e = useThemeElement(), themeElement = _e[0], setThemeElement = _e[1];
|
|
15277
15283
|
var _f = useState("Choose date"), ariaLabel = _f[0], setAriaLabel = _f[1];
|
|
15278
15284
|
var _g = useState(false), showCalendar = _g[0], setShowCalendar = _g[1];
|
|
@@ -15428,7 +15434,7 @@ var DatePicker = forwardRef(function (_a, ref) {
|
|
|
15428
15434
|
icon: "datePickerCalendar",
|
|
15429
15435
|
label: ariaLabel,
|
|
15430
15436
|
ref: buttonRef,
|
|
15431
|
-
}, placeholder: placeHolder, errorMessage: errorMessage, helper: helper, id: id, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, label: label,
|
|
15437
|
+
}, placeholder: placeHolder, errorMessage: errorMessage, helper: helper, id: id, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, label: label, maxLength: selectionType === "range" ? 23 : 10, name: name, onBlur: handleBlur, onChange: handleChange, onClickDisclosure: onClickDisclosure, type: "text", value: value, disclosureTitle: disclosureTitle, disclosureText: disclosureText, size: size }, props, filterAttrs(props))),
|
|
15432
15438
|
React__default.createElement(Root2$3, __assign({ open: showCalendar, onOpenChange: handleCalendarOpenChange }, filterAttrs(props)),
|
|
15433
15439
|
React__default.createElement(Anchor2$1, null),
|
|
15434
15440
|
React__default.createElement(Portal$5, { container: themeElement },
|
|
@@ -17896,7 +17902,6 @@ var Trigger$1 = DropdownMenuTrigger;
|
|
|
17896
17902
|
var Portal2 = DropdownMenuPortal;
|
|
17897
17903
|
var Content2$1 = DropdownMenuContent;
|
|
17898
17904
|
var Group2 = DropdownMenuGroup;
|
|
17899
|
-
var Label2 = DropdownMenuLabel;
|
|
17900
17905
|
var Item2 = DropdownMenuItem;
|
|
17901
17906
|
var CheckboxItem2 = DropdownMenuCheckboxItem;
|
|
17902
17907
|
var RadioGroup2 = DropdownMenuRadioGroup;
|
|
@@ -17976,14 +17981,6 @@ var MenuFooter = function (_a) {
|
|
|
17976
17981
|
return (React__default.createElement("div", { className: "arc-MenuFooter", style: {
|
|
17977
17982
|
position: "relative",
|
|
17978
17983
|
} },
|
|
17979
|
-
React__default.createElement("div", { style: {
|
|
17980
|
-
height: "12px",
|
|
17981
|
-
background: "linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))",
|
|
17982
|
-
position: "absolute",
|
|
17983
|
-
width: "100%",
|
|
17984
|
-
zIndex: 3,
|
|
17985
|
-
top: -12,
|
|
17986
|
-
} }),
|
|
17987
17984
|
React__default.createElement("div", { className: "arc-MenuSeparator", style: { paddingTop: 0 } },
|
|
17988
17985
|
React__default.createElement(Rule, null)),
|
|
17989
17986
|
React__default.createElement(Item2, { className: "arc-MenuItem", "aria-label": ariaLabel, onClick: onClick, disabled: isDisabled },
|
|
@@ -18009,14 +18006,7 @@ var MenuHeader = function (_a) {
|
|
|
18009
18006
|
React__default.createElement("div", { className: "arc-MenuSeparator", style: {
|
|
18010
18007
|
paddingBottom: 0,
|
|
18011
18008
|
} },
|
|
18012
|
-
React__default.createElement(Rule, null)
|
|
18013
|
-
React__default.createElement("div", { style: {
|
|
18014
|
-
height: "12px",
|
|
18015
|
-
background: "linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))",
|
|
18016
|
-
position: "absolute",
|
|
18017
|
-
width: "100%",
|
|
18018
|
-
zIndex: 3,
|
|
18019
|
-
} }))));
|
|
18009
|
+
React__default.createElement(Rule, null))));
|
|
18020
18010
|
};
|
|
18021
18011
|
|
|
18022
18012
|
/**
|
|
@@ -18039,7 +18029,8 @@ var MenuItem = function (_a) {
|
|
|
18039
18029
|
*/
|
|
18040
18030
|
var MenuLabel = function (_a) {
|
|
18041
18031
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
18042
|
-
return (React__default.createElement(
|
|
18032
|
+
return (React__default.createElement(Item2, __assign({ asChild: true, className: "arc-MenuLabel", tabIndex: 0, role: "presentation" }, filterAttrs(props), { style: { pointerEvents: "none" } }),
|
|
18033
|
+
React__default.createElement("div", null, children)));
|
|
18043
18034
|
};
|
|
18044
18035
|
|
|
18045
18036
|
/**
|
|
@@ -18203,7 +18194,7 @@ var MenuSubTrigger = function (_a) {
|
|
|
18203
18194
|
*/
|
|
18204
18195
|
var MenuTrigger = function (_a) {
|
|
18205
18196
|
var children = _a.children, asChild = _a.asChild, props = __rest(_a, ["children", "asChild"]);
|
|
18206
|
-
return (React__default.createElement(Trigger$1, __assign({ className: "
|
|
18197
|
+
return (React__default.createElement(Trigger$1, __assign({ className: "arc-MenuTrigger", asChild: asChild }, filterAttrs(props)), children));
|
|
18207
18198
|
};
|
|
18208
18199
|
|
|
18209
18200
|
/** Use `Modal` to display information that needs immediate action from a user. */
|
|
@@ -18723,18 +18714,17 @@ var useRadioContext = function () {
|
|
|
18723
18714
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
18724
18715
|
*/
|
|
18725
18716
|
var RadioGroup = function (_a) {
|
|
18726
|
-
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, errorMessage = _a.errorMessage, _c = _a.isRequired, isRequired = _c === void 0 ? true : _c, helper = _a.helper, label = _a.label,
|
|
18717
|
+
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, errorMessage = _a.errorMessage, _c = _a.isRequired, isRequired = _c === void 0 ? true : _c, helper = _a.helper, label = _a.label, 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", "errorMessage", "isRequired", "helper", "label", "name", "onBlur", "onChange", "size"]);
|
|
18727
18718
|
return (React__default.createElement(Provider$2, { value: {
|
|
18728
18719
|
blurEvent: onBlur,
|
|
18729
18720
|
changeEvent: onChange,
|
|
18730
18721
|
groupDisabled: isDisabled,
|
|
18731
18722
|
checkedValue: checkedValue,
|
|
18732
|
-
labelSize: labelSize,
|
|
18733
18723
|
name: name,
|
|
18734
18724
|
size: size,
|
|
18735
18725
|
} },
|
|
18736
18726
|
React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterAttrs(props)),
|
|
18737
|
-
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize:
|
|
18727
|
+
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: size, helper: helper, id: id, requirementStatus: isRequired ? "required" : "optional", helperUnderLabel: true, errorMessage: isRequired && checkedValue === "" ? errorMessage : "" },
|
|
18738
18728
|
React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
18739
18729
|
};
|
|
18740
18730
|
|
|
@@ -18767,11 +18757,11 @@ var RadioGroupButton = forwardRef(function (_a, ref) {
|
|
|
18767
18757
|
*/
|
|
18768
18758
|
var RadioGroupInput = forwardRef(function (_a, ref) {
|
|
18769
18759
|
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"]);
|
|
18770
|
-
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue,
|
|
18760
|
+
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, name = _c.name, size = _c.size;
|
|
18771
18761
|
var isChecked = checkedValue === value ? true : false;
|
|
18772
18762
|
var checked = typeof changeEvent !== "function" ? undefined : isChecked;
|
|
18773
18763
|
var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
|
|
18774
|
-
return (React__default.createElement(RadioGroupButton, __assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled,
|
|
18764
|
+
return (React__default.createElement(RadioGroupButton, __assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled, size: size, radioButtonAlignment: radioButtonAlignment, label: label, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, blurEvent: blurEvent, value: value }, props)));
|
|
18775
18765
|
});
|
|
18776
18766
|
|
|
18777
18767
|
/**
|
|
@@ -18824,7 +18814,7 @@ var Section = function (_a) {
|
|
|
18824
18814
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
18825
18815
|
var Select = function (_a) {
|
|
18826
18816
|
var _b;
|
|
18827
|
-
var isRequired = _a.isRequired, isDisabled = _a.isDisabled, placeholder = _a.placeholder, label = _a.label, value = _a.value, _c = _a.ariaLabel, ariaLabel = _c === void 0 ? label : _c, options = _a.options, onOpenChange = _a.onOpenChange, isDefaultOpen = _a.isDefaultOpen, defaultValue = _a.defaultValue, errorMessage = _a.errorMessage,
|
|
18817
|
+
var isRequired = _a.isRequired, isDisabled = _a.isDisabled, placeholder = _a.placeholder, label = _a.label, value = _a.value, _c = _a.ariaLabel, ariaLabel = _c === void 0 ? label : _c, options = _a.options, onOpenChange = _a.onOpenChange, isDefaultOpen = _a.isDefaultOpen, defaultValue = _a.defaultValue, errorMessage = _a.errorMessage, _d = _a.size, size = _d === void 0 ? "m" : _d, helper = _a.helper, hideLabel = _a.hideLabel, name = _a.name, width = _a.width, isFluid = _a.isFluid, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, open = _a.open, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest(_a, ["isRequired", "isDisabled", "placeholder", "label", "value", "ariaLabel", "options", "onOpenChange", "isDefaultOpen", "defaultValue", "errorMessage", "size", "helper", "hideLabel", "name", "width", "isFluid", "onBlur", "onFocus", "onChange", "open", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
|
|
18828
18818
|
var id = useId$1();
|
|
18829
18819
|
var _e = useThemeElement(), themeElement = _e[0], setThemeElement = _e[1];
|
|
18830
18820
|
var surface = useContext(Context$3).surface;
|
|
@@ -18839,8 +18829,8 @@ var Select = function (_a) {
|
|
|
18839
18829
|
var _a;
|
|
18840
18830
|
return (_a = options.find(function (option) { return option.value === value; })) === null || _a === void 0 ? void 0 : _a.name;
|
|
18841
18831
|
};
|
|
18842
|
-
var getIconSize = function (
|
|
18843
|
-
switch (
|
|
18832
|
+
var getIconSize = function (size) {
|
|
18833
|
+
switch (size) {
|
|
18844
18834
|
case "s":
|
|
18845
18835
|
return 16;
|
|
18846
18836
|
case "l":
|
|
@@ -18849,7 +18839,7 @@ var Select = function (_a) {
|
|
|
18849
18839
|
return 20;
|
|
18850
18840
|
}
|
|
18851
18841
|
};
|
|
18852
|
-
return (React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, label: label, hideLabel: hideLabel, labelSize:
|
|
18842
|
+
return (React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, label: label, hideLabel: hideLabel, labelSize: size, requirementStatus: isRequired ? "required" : "optional", isDisabled: isDisabled, disclosureText: disclosureText, disclosureTitle: disclosureTitle, onClickDisclosure: onClickDisclosure },
|
|
18853
18843
|
React__default.createElement(Root2$2, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value: selectValue, open: open, onOpenChange: onOpenChange, onValueChange: function (value) { return onValueChange(value); } },
|
|
18854
18844
|
React__default.createElement("div", { ref: setThemeElement, className: "arc-Select-wrapper" },
|
|
18855
18845
|
React__default.createElement(Trigger$2, __assign({ id: id, name: name, onBlur: onBlur, onFocus: onFocus, "aria-label": ariaLabel, style: { width: width, marginTop: hideLabel ? 0 : undefined }, className: classNames("arc-Select-trigger", (_b = {
|
|
@@ -18857,28 +18847,24 @@ var Select = function (_a) {
|
|
|
18857
18847
|
"arc-Select-trigger--onDarkSurface": surface === "dark",
|
|
18858
18848
|
"arc-Select-trigger--invalid": errorMessage
|
|
18859
18849
|
},
|
|
18860
|
-
_b["arc-Select-trigger--size".concat(
|
|
18850
|
+
_b["arc-Select-trigger--size".concat(size && size.toUpperCase())] = size && size !== "m",
|
|
18861
18851
|
_b)), "aria-describedby": id + (disclosureText ? "-disclosure" : "-helper") }, filterAttrs(props)),
|
|
18862
18852
|
React__default.createElement(Value, { className: "arc-Select-triggerText", placeholder: placeholder, "aria-label": getSelectedValueName(uncontrolledValue) }),
|
|
18863
18853
|
React__default.createElement(Icon, { className: "arc-Select-triggerIcon" },
|
|
18864
|
-
React__default.createElement(ThemeIcon, { size: getIconSize(
|
|
18854
|
+
React__default.createElement(ThemeIcon, { size: getIconSize(size), icon: "selectTrigger" }))),
|
|
18865
18855
|
React__default.createElement(Portal$4, { container: themeElement },
|
|
18866
18856
|
React__default.createElement(Content2$3, { sideOffset: 5, position: "popper", className: classNames("arc-Select-content", {
|
|
18867
18857
|
"arc-Select-content--onDarkSurface": surface === "dark",
|
|
18868
18858
|
}) },
|
|
18869
|
-
React__default.createElement(
|
|
18870
|
-
React__default.createElement(ThemeIcon, { size: 16, icon: "selectScrollUp" })),
|
|
18871
|
-
React__default.createElement(Viewport, null, options.map(function (_a, i) {
|
|
18859
|
+
React__default.createElement(Viewport, { className: "arc-Select-content--scrollable" }, options.map(function (_a, i) {
|
|
18872
18860
|
var name = _a.name, value = _a.value;
|
|
18873
18861
|
return (React__default.createElement(Item$1, { className: "arc-Select-item", key: "select-item-".concat(i), value: value },
|
|
18874
18862
|
React__default.createElement("div", { className: "arc-Select-itemTextWrapper" },
|
|
18875
18863
|
React__default.createElement(ItemText, { asChild: true },
|
|
18876
18864
|
React__default.createElement("span", { className: "arc-Select-itemText" }, name))),
|
|
18877
|
-
React__default.createElement(ItemIndicator$1,
|
|
18878
|
-
React__default.createElement(ThemeIcon, { size:
|
|
18879
|
-
}))
|
|
18880
|
-
React__default.createElement(ScrollDownButton, { className: "arc-Select-scrollButton" },
|
|
18881
|
-
React__default.createElement(ThemeIcon, { size: 16, icon: "selectScrollDown" }))))))));
|
|
18865
|
+
React__default.createElement(ItemIndicator$1, { className: "arc-Select-itemSelectIcon" },
|
|
18866
|
+
React__default.createElement(ThemeIcon, { size: 24, icon: "selectIndicator" }))));
|
|
18867
|
+
}))))))));
|
|
18882
18868
|
};
|
|
18883
18869
|
|
|
18884
18870
|
/**
|
|
@@ -18940,7 +18926,7 @@ var SiteFooterV2 = function (_a) {
|
|
|
18940
18926
|
|
|
18941
18927
|
/**
|
|
18942
18928
|
* Do not edit directly
|
|
18943
|
-
* Generated on
|
|
18929
|
+
* Generated on Tue, 10 Jun 2025 09:53:42 GMT
|
|
18944
18930
|
*/
|
|
18945
18931
|
var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
|
|
18946
18932
|
|
|
@@ -19777,8 +19763,9 @@ const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07b
|
|
|
19777
19763
|
|
|
19778
19764
|
/** Use `Switch` to allow users to immediately toggle between two states. */
|
|
19779
19765
|
var Switch = function (_a) {
|
|
19780
|
-
var
|
|
19781
|
-
var
|
|
19766
|
+
var _b;
|
|
19767
|
+
var defaultChecked = _a.defaultChecked, onCheckedChange = _a.onCheckedChange, label = _a.label, _c = _a.labelPosition, labelPosition = _c === void 0 ? "top" : _c, name = _a.name, onBlur = _a.onBlur, value = _a.value, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, errorMessage = _a.errorMessage, id = _a.id, _e = _a.size, size = _e === void 0 ? "m" : _e, onStatusText = _a.onStatusText, offStatusText = _a.offStatusText, _f = _a.hideLabel, hideLabel = _f === void 0 ? false : _f, ariaLabel = _a.ariaLabel, props = __rest(_a, ["defaultChecked", "onCheckedChange", "label", "labelPosition", "name", "onBlur", "value", "isDisabled", "errorMessage", "id", "size", "onStatusText", "offStatusText", "hideLabel", "ariaLabel"]);
|
|
19768
|
+
var _g = useState(defaultChecked), switchState = _g[0], setSwitchState = _g[1];
|
|
19782
19769
|
var surface = useContext(Context$3).surface;
|
|
19783
19770
|
if (!onStatusText) {
|
|
19784
19771
|
onStatusText = offStatusText;
|
|
@@ -19790,11 +19777,11 @@ var Switch = function (_a) {
|
|
|
19790
19777
|
setSwitchState(function (previous) { return !previous; });
|
|
19791
19778
|
onCheckedChange && onCheckedChange(checked);
|
|
19792
19779
|
};
|
|
19793
|
-
return (React__default.createElement(FormControl, { errorMessage: errorMessage, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize:
|
|
19794
|
-
!hideLabel && React__default.createElement(VerticalSpace, { size: "
|
|
19780
|
+
return (React__default.createElement(FormControl, { errorMessage: errorMessage, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: size, labelPosition: labelPosition, requirementStatus: "not-applicable" },
|
|
19781
|
+
!hideLabel && React__default.createElement(VerticalSpace, { size: "12" }),
|
|
19795
19782
|
React__default.createElement("div", { className: "arc-Switch-container" },
|
|
19796
19783
|
React__default.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9, __assign({ id: id, defaultChecked: defaultChecked, name: name, value: value, onBlur: onBlur, onCheckedChange: onCheckedHandler, checked: switchState, disabled: isDisabled, className: classNames("arc-Switch", {
|
|
19797
|
-
"arc-Switch--
|
|
19784
|
+
"arc-Switch--medium": size === "m",
|
|
19798
19785
|
"arc-Switch--isDisabled": isDisabled,
|
|
19799
19786
|
"arc-Switch--onDarkSurface": surface === "dark",
|
|
19800
19787
|
}), "aria-label": ariaLabel }, filterAttrs(props)),
|
|
@@ -19802,12 +19789,14 @@ var Switch = function (_a) {
|
|
|
19802
19789
|
React__default.createElement($6be4966fd9bbc698$export$6521433ed15a34db, { className: "arc-Switch-thumb" },
|
|
19803
19790
|
React__default.createElement("div", { className: "arc-Switch-thumbIcon" },
|
|
19804
19791
|
React__default.createElement("div", { className: "arc-Switch-icon", "data-testid": "arc-switch-thumb-icon" },
|
|
19805
|
-
React__default.createElement(ThemeIcon, { icon: "switchToggle", color: "brand", size:
|
|
19806
|
-
React__default.createElement("div", { className: classNames("arc-Switch-statusText", {
|
|
19807
|
-
|
|
19808
|
-
|
|
19809
|
-
|
|
19810
|
-
|
|
19792
|
+
React__default.createElement(ThemeIcon, { icon: "switchToggle", color: "brand", size: size === "m" ? 32 : 24 }))))),
|
|
19793
|
+
React__default.createElement("div", { className: classNames("arc-Switch-statusText", (_b = {
|
|
19794
|
+
"arc-Switch-statusText--isDisabled": isDisabled,
|
|
19795
|
+
"arc-Switch-statusText--onDarkSurface": surface === "dark"
|
|
19796
|
+
},
|
|
19797
|
+
_b["arc-Switch-statusText--".concat(size)] = size === "m",
|
|
19798
|
+
_b)) },
|
|
19799
|
+
React__default.createElement("p", { "aria-hidden": true }, switchState ? onStatusText : offStatusText))))));
|
|
19811
19800
|
};
|
|
19812
19801
|
|
|
19813
19802
|
var TabbedBanner = function (_a) {
|
|
@@ -20004,7 +19993,7 @@ var TextArea = forwardRef(function (_a, ref) {
|
|
|
20004
19993
|
var package_default = {
|
|
20005
19994
|
name: "@arc-ui/helpers",
|
|
20006
19995
|
private: true,
|
|
20007
|
-
version: "12.0.0-beta.
|
|
19996
|
+
version: "12.0.0-beta.19",
|
|
20008
19997
|
type: "module",
|
|
20009
19998
|
homepage: "https://ui.digital-ent-int.bt.com",
|
|
20010
19999
|
author: "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|