braid-design-system 32.1.0 → 32.2.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.
- package/CHANGELOG.md +133 -0
- package/codemod/dist/wrapper.js +181 -183
- package/color-mode/query-param/index.d.ts +1 -0
- package/color-mode/query-param/package.json +1 -1
- package/css/index.d.ts +1 -0
- package/css/package.json +1 -1
- package/dist/ToastContext.chunk.cjs +21 -21
- package/dist/ToastContext.chunk.mjs +120 -120
- package/dist/Toggle.chunk.cjs +22 -32
- package/dist/Toggle.chunk.mjs +199 -209
- package/dist/color-mode/query-param.mjs +1 -1
- package/dist/css.d.ts +1 -667
- package/dist/css.mjs +7 -7
- package/dist/index.d.ts +1 -3952
- package/dist/index.mjs +164 -164
- package/dist/playroom/FrameComponent.d.ts +1 -323
- package/dist/playroom/FrameComponent.mjs +4 -4
- package/dist/playroom/components.d.ts +1 -4027
- package/dist/playroom/components.mjs +124 -124
- package/dist/playroom/scope.d.ts +1 -385
- package/dist/playroom/scope.mjs +4 -4
- package/dist/playroom/snippets.d.ts +1 -7
- package/dist/playroomState.chunk.cjs +1 -1
- package/dist/playroomState.chunk.mjs +3 -3
- package/dist/reset.d.ts +5075 -1
- package/dist/side-effects/lib/components/BraidProvider/BraidProvider.mjs +12 -12
- package/dist/side-effects/lib/css/reset/index.mjs +1 -1
- package/dist/side-effects/lib/css/reset/resetTracker.mjs +2 -2
- package/dist/side-effects/lib/themes/baseTokens/apac.cjs +8 -9
- package/dist/side-effects/lib/themes/baseTokens/apac.mjs +8 -10
- package/dist/side-effects/lib/themes/index.mjs +5 -5
- package/dist/side-effects/lib/themes/makeRuntimeTokens.cjs +4 -10
- package/dist/side-effects/lib/themes/makeRuntimeTokens.mjs +5 -10
- package/dist/side-effects/lib/themes/tokenType.cjs +15 -0
- package/dist/side-effects/lib/themes/tokenType.mjs +16 -0
- package/dist/styles/lib/components/Accordion/AccordionItem.css.mjs +3 -3
- package/dist/styles/lib/components/Alert/Alert.css.mjs +3 -3
- package/dist/styles/lib/components/Autosuggest/Autosuggest.css.mjs +6 -6
- package/dist/styles/lib/components/Button/Button.css.cjs +24 -23
- package/dist/styles/lib/components/Button/Button.css.mjs +39 -38
- package/dist/styles/lib/components/ButtonIcon/ButtonIcon.css.mjs +1 -1
- package/dist/styles/lib/components/Column/Column.css.mjs +3 -3
- package/dist/styles/lib/components/ContentBlock/ContentBlock.css.mjs +1 -1
- package/dist/styles/lib/components/Divider/Divider.css.mjs +7 -7
- package/dist/styles/lib/components/Dropdown/Dropdown.css.mjs +2 -2
- package/dist/styles/lib/components/Hidden/Hidden.css.mjs +1 -1
- package/dist/styles/lib/components/HiddenVisually/HiddenVisually.css.mjs +1 -1
- package/dist/styles/lib/components/List/List.css.mjs +4 -4
- package/dist/styles/lib/components/Loader/Loader.css.mjs +7 -7
- package/dist/styles/lib/components/MenuItem/useMenuItem.css.mjs +1 -1
- package/dist/styles/lib/components/MenuRenderer/MenuRenderer.css.mjs +5 -5
- package/dist/styles/lib/components/MonthPicker/MonthPicker.css.mjs +1 -1
- package/dist/styles/lib/components/OverflowMenu/OverflowMenu.css.mjs +1 -1
- package/dist/styles/lib/components/Pagination/Pagination.css.mjs +6 -6
- package/dist/styles/lib/components/Rating/Rating.css.mjs +6 -6
- package/dist/styles/lib/components/Stepper/Stepper.css.mjs +21 -21
- package/dist/styles/lib/components/Tabs/Tabs.css.mjs +17 -17
- package/dist/styles/lib/components/Tag/Tag.css.mjs +1 -1
- package/dist/styles/lib/components/TextDropdown/TextDropdown.css.mjs +4 -4
- package/dist/styles/lib/components/TextLink/TextLink.css.mjs +8 -8
- package/dist/styles/lib/components/Textarea/Highlight/Highlight.css.mjs +1 -1
- package/dist/styles/lib/components/Textarea/Textarea.css.mjs +3 -3
- package/dist/styles/lib/components/Tiles/Tiles.css.mjs +5 -5
- package/dist/styles/lib/components/Toggle/Toggle.css.mjs +20 -20
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.cjs +1 -5
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.mjs +7 -11
- package/dist/styles/lib/components/icons/IconArrow/IconArrow.css.mjs +4 -4
- package/dist/styles/lib/components/icons/IconChevron/IconChevron.css.mjs +4 -4
- package/dist/styles/lib/components/icons/IconThumb/IconThumb.css.mjs +2 -2
- package/dist/styles/lib/components/private/AvoidWidowIcon/AvoidWidowIcon.css.mjs +1 -1
- package/dist/styles/lib/components/private/Field/Field.css.mjs +8 -8
- package/dist/styles/lib/components/private/InlineField/InlineField.css.mjs +17 -17
- package/dist/styles/lib/components/private/Keyline/Keyline.css.cjs +4 -0
- package/dist/styles/lib/components/private/Keyline/Keyline.css.mjs +11 -7
- package/dist/styles/lib/components/private/Modal/Modal.css.mjs +16 -16
- package/dist/styles/lib/components/private/Modal/ModalExternalGutter.mjs +1 -1
- package/dist/styles/lib/components/private/Placeholder/Placeholder.css.mjs +6 -6
- package/dist/styles/lib/components/private/Truncate/Truncate.css.mjs +1 -1
- package/dist/styles/lib/components/private/hideFocusRings/hideFocusRings.css.mjs +2 -2
- package/dist/styles/lib/components/private/hideFocusRings/hideFocusRingsDataAttribute.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/debugTouchable.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/hitArea.mjs +1 -1
- package/dist/styles/lib/components/private/touchable/virtualTouchable.css.mjs +4 -4
- package/dist/styles/lib/components/private/touchable/virtualTouchableRules.mjs +2 -2
- package/dist/styles/lib/components/useToast/Toast.css.mjs +1 -1
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +6 -6
- package/dist/styles/lib/css/atoms/atoms.mjs +3 -3
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +8 -8
- package/dist/styles/lib/css/breakpoints.mjs +2 -2
- package/dist/styles/lib/css/colorModeStyle.mjs +2 -2
- package/dist/styles/lib/css/lineHeightContainer.css.mjs +3 -3
- package/dist/styles/lib/css/negativeMargin/negativeMargin.css.cjs +4 -9
- package/dist/styles/lib/css/negativeMargin/negativeMargin.css.mjs +3 -8
- package/dist/styles/lib/css/reset/reset.css.mjs +3 -3
- package/dist/styles/lib/css/responsiveStyle.cjs +2 -2
- package/dist/styles/lib/css/responsiveStyle.mjs +3 -3
- package/dist/styles/lib/css/textAlignedToIcon.css.mjs +3 -3
- package/dist/styles/lib/css/typography.css.cjs +1 -16
- package/dist/styles/lib/css/typography.css.mjs +5 -20
- package/dist/styles/lib/hooks/useIcon/icon.css.mjs +8 -8
- package/dist/styles/lib/themes/apac/apacTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/apac/tokens.mjs +2 -2
- package/dist/styles/lib/themes/docs/docsTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/docs/tokens.cjs +8 -8
- package/dist/styles/lib/themes/docs/tokens.mjs +8 -10
- package/dist/styles/lib/themes/makeBraidTheme.mjs +4 -4
- package/dist/styles/lib/themes/makeVanillaTheme.cjs +23 -10
- package/dist/styles/lib/themes/makeVanillaTheme.mjs +23 -10
- package/dist/styles/lib/themes/seekBusiness/seekBusinessTheme.css.mjs +3 -3
- package/dist/styles/lib/themes/seekBusiness/tokens.mjs +2 -2
- package/dist/styles/lib/themes/vars.css.mjs +3 -3
- package/dist/styles/lib/themes/wireframe/tokens.cjs +25 -29
- package/dist/styles/lib/themes/wireframe/tokens.mjs +25 -31
- package/dist/styles/lib/themes/wireframe/wireframeTheme.css.mjs +3 -3
- package/dist/styles/lib/utils/index.mjs +6 -6
- package/dist/test.d.ts +1 -890
- package/dist/test.mjs +2 -2
- package/dist/themes/apac.d.ts +1 -137
- package/dist/themes/apac.mjs +2 -2
- package/dist/themes/docs.d.ts +1 -137
- package/dist/themes/docs.mjs +2 -2
- package/dist/themes/seekBusiness.d.ts +1 -137
- package/dist/themes/seekBusiness.mjs +2 -2
- package/dist/themes/wireframe.d.ts +1 -137
- package/dist/themes/wireframe.mjs +2 -2
- package/package.json +4 -3
- package/playroom/FrameComponent/index.d.ts +2 -0
- package/playroom/FrameComponent/package.json +1 -1
- package/playroom/components/index.d.ts +1 -0
- package/playroom/components/package.json +1 -1
- package/playroom/scope/index.d.ts +2 -0
- package/playroom/scope/package.json +1 -1
- package/playroom/snippets/index.d.ts +2 -0
- package/playroom/snippets/package.json +1 -1
- package/reset/index.d.ts +1 -0
- package/reset/package.json +1 -1
- package/test/index.d.ts +1 -0
- package/test/package.json +1 -1
- package/themes/apac/index.d.ts +2 -0
- package/themes/apac/package.json +1 -1
- package/themes/docs/index.d.ts +2 -0
- package/themes/docs/package.json +1 -1
- package/themes/seekBusiness/index.d.ts +2 -0
- package/themes/seekBusiness/package.json +1 -1
- package/themes/wireframe/index.d.ts +2 -0
- package/themes/wireframe/package.json +1 -1
- package/dist/styles/lib/components/Badge/Badge.css.cjs +0 -27
- package/dist/styles/lib/components/Badge/Badge.css.mjs +0 -28
package/dist/Toggle.chunk.cjs
CHANGED
|
@@ -12,20 +12,19 @@ const styles_lib_components_private_hideFocusRings_hideFocusRings_css_cjs = requ
|
|
|
12
12
|
const styles_lib_css_textAlignedToIcon_css_cjs = require("./styles/lib/css/textAlignedToIcon.css.cjs");
|
|
13
13
|
const styles_lib_components_Alert_Alert_css_cjs = require("./styles/lib/components/Alert/Alert.css.cjs");
|
|
14
14
|
const dedent = require("dedent");
|
|
15
|
-
const parseHighlights = require("autosuggest-highlight/parse");
|
|
15
|
+
const parseHighlights = require("autosuggest-highlight/parse/index.js");
|
|
16
16
|
const styles_lib_components_HiddenVisually_HiddenVisually_css_cjs = require("./styles/lib/components/HiddenVisually/HiddenVisually.css.cjs");
|
|
17
17
|
const reactDom = require("react-dom");
|
|
18
18
|
const styles_lib_css_atoms_atoms_cjs = require("./styles/lib/css/atoms/atoms.cjs");
|
|
19
19
|
const styles_lib_css_typography_css_cjs = require("./styles/lib/css/typography.css.cjs");
|
|
20
20
|
const reactRemoveScroll = require("react-remove-scroll");
|
|
21
21
|
const styles_lib_components_Autosuggest_Autosuggest_css_cjs = require("./styles/lib/components/Autosuggest/Autosuggest.css.cjs");
|
|
22
|
-
const matchHighlights = require("autosuggest-highlight/match");
|
|
23
|
-
const styles_lib_css_lineHeightContainer_css_cjs = require("./styles/lib/css/lineHeightContainer.css.cjs");
|
|
24
|
-
const styles_lib_components_Badge_Badge_css_cjs = require("./styles/lib/components/Badge/Badge.css.cjs");
|
|
22
|
+
const matchHighlights = require("autosuggest-highlight/match/index.js");
|
|
25
23
|
const clsx = require("clsx");
|
|
26
24
|
const FocusLock = require("react-focus-lock");
|
|
27
25
|
const styles_lib_components_private_Modal_ModalExternalGutter_cjs = require("./styles/lib/components/private/Modal/ModalExternalGutter.cjs");
|
|
28
26
|
const styles_lib_components_private_Modal_Modal_css_cjs = require("./styles/lib/components/private/Modal/Modal.css.cjs");
|
|
27
|
+
const styles_lib_css_lineHeightContainer_css_cjs = require("./styles/lib/css/lineHeightContainer.css.cjs");
|
|
29
28
|
const styles_lib_components_List_List_css_cjs = require("./styles/lib/components/List/List.css.cjs");
|
|
30
29
|
const styles_lib_components_Loader_Loader_css_cjs = require("./styles/lib/components/Loader/Loader.css.cjs");
|
|
31
30
|
const styles_lib_components_MenuItem_useMenuItem_css_cjs = require("./styles/lib/components/MenuItem/useMenuItem.css.cjs");
|
|
@@ -2557,7 +2556,7 @@ const Field = ({
|
|
|
2557
2556
|
}
|
|
2558
2557
|
),
|
|
2559
2558
|
/* @__PURE__ */ jsxRuntime.jsx(ToastContext.FieldOverlay, { variant: "focus", className: styles_lib_components_private_Field_Field_css_cjs.focusOverlay }),
|
|
2560
|
-
/* @__PURE__ */ jsxRuntime.jsx(ToastContext.FieldOverlay, { variant: "
|
|
2559
|
+
/* @__PURE__ */ jsxRuntime.jsx(ToastContext.FieldOverlay, { variant: "formAccent", className: styles_lib_components_private_Field_Field_css_cjs.hoverOverlay })
|
|
2561
2560
|
] });
|
|
2562
2561
|
const fieldPadding = "small";
|
|
2563
2562
|
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContext.Stack, { space: "xsmall", children: [
|
|
@@ -3034,7 +3033,6 @@ function GroupHeading({ children }) {
|
|
|
3034
3033
|
ToastContext.Box,
|
|
3035
3034
|
{
|
|
3036
3035
|
paddingX: "small",
|
|
3037
|
-
borderRadius: "standard",
|
|
3038
3036
|
className: [
|
|
3039
3037
|
styles_lib_components_Autosuggest_Autosuggest_css_cjs.groupHeading,
|
|
3040
3038
|
styles_lib_css_typography_css_cjs.touchableText.xsmall,
|
|
@@ -3598,6 +3596,7 @@ const lightModeBackgroundForTone = {
|
|
|
3598
3596
|
neutral: "neutralLight",
|
|
3599
3597
|
caution: "cautionLight"
|
|
3600
3598
|
};
|
|
3599
|
+
const verticalPadding = "xxsmall";
|
|
3601
3600
|
const Badge = React.forwardRef(
|
|
3602
3601
|
({
|
|
3603
3602
|
tone = "info",
|
|
@@ -3621,16 +3620,12 @@ const Badge = React.forwardRef(
|
|
|
3621
3620
|
),
|
|
3622
3621
|
"Badge may only contain strings or numbers"
|
|
3623
3622
|
);
|
|
3624
|
-
|
|
3623
|
+
const content = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3625
3624
|
ToastContext.Box,
|
|
3626
3625
|
{
|
|
3627
3626
|
component: "span",
|
|
3628
3627
|
display: "flex",
|
|
3629
3628
|
cursor: "default",
|
|
3630
|
-
className: [
|
|
3631
|
-
styles_lib_css_lineHeightContainer_css_cjs.lineHeightContainer[styles_lib_components_Badge_Badge_css_cjs.constants.textSize],
|
|
3632
|
-
bleedY ? styles_lib_components_Badge_Badge_css_cjs.bleedY : null
|
|
3633
|
-
],
|
|
3634
3629
|
...ToastContext.buildDataAttributes({ data, validateRestProps: restProps }),
|
|
3635
3630
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3636
3631
|
ToastContext.Box,
|
|
@@ -3642,23 +3637,16 @@ const Badge = React.forwardRef(
|
|
|
3642
3637
|
"aria-describedby": ariaDescribedBy,
|
|
3643
3638
|
title: title ?? (!ariaDescribedBy ? children : void 0),
|
|
3644
3639
|
background: weight === "strong" ? tone : lightModeBackgroundForTone[tone],
|
|
3640
|
+
paddingY: verticalPadding,
|
|
3645
3641
|
paddingX: "xsmall",
|
|
3646
|
-
borderRadius: "
|
|
3642
|
+
borderRadius: "standard",
|
|
3647
3643
|
overflow: "hidden",
|
|
3648
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3649
|
-
ToastContext.Text,
|
|
3650
|
-
{
|
|
3651
|
-
size: styles_lib_components_Badge_Badge_css_cjs.constants.textSize,
|
|
3652
|
-
weight: "medium",
|
|
3653
|
-
truncate: true,
|
|
3654
|
-
baseline: false,
|
|
3655
|
-
children
|
|
3656
|
-
}
|
|
3657
|
-
)
|
|
3644
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToastContext.Text, { size: "xsmall", weight: "medium", truncate: true, children })
|
|
3658
3645
|
}
|
|
3659
3646
|
)
|
|
3660
3647
|
}
|
|
3661
3648
|
);
|
|
3649
|
+
return bleedY ? /* @__PURE__ */ jsxRuntime.jsx(ToastContext.Bleed, { component: "span", vertical: verticalPadding, children: content }) : content;
|
|
3662
3650
|
}
|
|
3663
3651
|
);
|
|
3664
3652
|
Badge.displayName = "Badge";
|
|
@@ -3769,7 +3757,7 @@ const validCardComponents = [
|
|
|
3769
3757
|
"main",
|
|
3770
3758
|
"section"
|
|
3771
3759
|
];
|
|
3772
|
-
const borderRadius$2 = "
|
|
3760
|
+
const borderRadius$2 = "large";
|
|
3773
3761
|
const Card = ({
|
|
3774
3762
|
children,
|
|
3775
3763
|
component = "div",
|
|
@@ -3897,6 +3885,7 @@ const StyledInput = React.forwardRef(
|
|
|
3897
3885
|
const accentBackground = disabled ? "neutralLight" : "formAccent";
|
|
3898
3886
|
const isMixed = isCheckbox && checked === "mixed";
|
|
3899
3887
|
const fieldBackground = disabled ? { lightMode: "neutralSoft", darkMode: "neutral" } : { lightMode: "surface" };
|
|
3888
|
+
const defaultBorder = checked ? "formAccent" : "default";
|
|
3900
3889
|
React.useEffect(() => {
|
|
3901
3890
|
if (ref && typeof ref === "object" && ref.current && isCheckbox) {
|
|
3902
3891
|
ref.current.indeterminate = isMixed;
|
|
@@ -3953,7 +3942,7 @@ const StyledInput = React.forwardRef(
|
|
|
3953
3942
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3954
3943
|
ToastContext.FieldOverlay,
|
|
3955
3944
|
{
|
|
3956
|
-
variant: disabled ? "disabled" :
|
|
3945
|
+
variant: disabled ? "disabled" : defaultBorder,
|
|
3957
3946
|
borderRadius: fieldBorderRadius,
|
|
3958
3947
|
visible: tone !== "critical" || disabled
|
|
3959
3948
|
}
|
|
@@ -3987,7 +3976,7 @@ const StyledInput = React.forwardRef(
|
|
|
3987
3976
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3988
3977
|
ToastContext.FieldOverlay,
|
|
3989
3978
|
{
|
|
3990
|
-
variant: "
|
|
3979
|
+
variant: "formAccent",
|
|
3991
3980
|
borderRadius: fieldBorderRadius,
|
|
3992
3981
|
className: styles_lib_components_private_InlineField_InlineField_css_cjs.hoverOverlay,
|
|
3993
3982
|
children: /* @__PURE__ */ jsxRuntime.jsx(Indicator, { type, hover: true, checked: true })
|
|
@@ -4228,7 +4217,7 @@ const Heading = ({
|
|
|
4228
4217
|
) });
|
|
4229
4218
|
const modalPadding = ["gutter", "large"];
|
|
4230
4219
|
const ModalContentHeader = React.forwardRef(
|
|
4231
|
-
({ title, headingLevel, description, descriptionId, center }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ToastContext.Stack, { space: "
|
|
4220
|
+
({ title, headingLevel, description, descriptionId, center }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ToastContext.Stack, { space: "small", children: [
|
|
4232
4221
|
/* @__PURE__ */ jsxRuntime.jsx(Heading, { level: headingLevel, align: center ? "center" : void 0, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4233
4222
|
ToastContext.Box,
|
|
4234
4223
|
{
|
|
@@ -5216,6 +5205,7 @@ function Menu({
|
|
|
5216
5205
|
transition: "fast",
|
|
5217
5206
|
right: align === "right" ? 0 : void 0,
|
|
5218
5207
|
opacity: !open ? 0 : void 0,
|
|
5208
|
+
overflow: "hidden",
|
|
5219
5209
|
className: [
|
|
5220
5210
|
!open && styles_lib_components_MenuRenderer_MenuRenderer_css_cjs.menuIsClosed,
|
|
5221
5211
|
width !== "content" && styles_lib_components_MenuRenderer_MenuRenderer_css_cjs.width[width],
|
|
@@ -5664,7 +5654,7 @@ const getYears = (min, max, ascending) => [...new Array(max - min + 1)].map((_v,
|
|
|
5664
5654
|
const yearStr = String(ascending ? i + min : max - i);
|
|
5665
5655
|
return /* @__PURE__ */ jsxRuntime.jsx("option", { value: yearStr, children: yearStr }, yearStr);
|
|
5666
5656
|
});
|
|
5667
|
-
const currYear = new Date().getFullYear();
|
|
5657
|
+
const currYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5668
5658
|
const renderNativeInput = isMobile.isMobile({ tablet: true });
|
|
5669
5659
|
const customValueToString = ({ month, year }) => month && year ? `${year}-${month < 10 ? "0" : ""}${month}` : void 0;
|
|
5670
5660
|
const stringToCustomValue = (value) => {
|
|
@@ -5848,7 +5838,7 @@ const paginate = ({
|
|
|
5848
5838
|
}
|
|
5849
5839
|
return Array.from(Array(pageCount).keys()).map((p) => p + minPage);
|
|
5850
5840
|
};
|
|
5851
|
-
const borderRadius = "
|
|
5841
|
+
const borderRadius = "standard";
|
|
5852
5842
|
const PageNav = ({
|
|
5853
5843
|
label,
|
|
5854
5844
|
direction
|
|
@@ -7522,7 +7512,7 @@ const Highlight = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
7522
7512
|
ToastContext.Box,
|
|
7523
7513
|
{
|
|
7524
7514
|
component: "mark",
|
|
7525
|
-
borderRadius: "
|
|
7515
|
+
borderRadius: "small",
|
|
7526
7516
|
background: { lightMode: "criticalLight", darkMode: "critical" },
|
|
7527
7517
|
className: styles_lib_components_Textarea_Highlight_Highlight_css_cjs.root,
|
|
7528
7518
|
children
|
|
@@ -8005,7 +7995,7 @@ const Toggle = React.forwardRef(
|
|
|
8005
7995
|
{
|
|
8006
7996
|
position: "absolute",
|
|
8007
7997
|
background: "surface",
|
|
8008
|
-
boxShadow: "borderField",
|
|
7998
|
+
boxShadow: on ? "borderFormAccent" : "borderField",
|
|
8009
7999
|
transition: "fast",
|
|
8010
8000
|
display: "flex",
|
|
8011
8001
|
alignItems: "center",
|
|
@@ -8025,9 +8015,9 @@ const Toggle = React.forwardRef(
|
|
|
8025
8015
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8026
8016
|
ToastContext.FieldOverlay,
|
|
8027
8017
|
{
|
|
8028
|
-
variant: "
|
|
8018
|
+
variant: "formAccent",
|
|
8029
8019
|
borderRadius: "full",
|
|
8030
|
-
className: styles_lib_components_Toggle_Toggle_css_cjs.hoverOverlay
|
|
8020
|
+
className: !on ? styles_lib_components_Toggle_Toggle_css_cjs.hoverOverlay : void 0
|
|
8031
8021
|
}
|
|
8032
8022
|
)
|
|
8033
8023
|
]
|