@yahoo/uds 3.116.0-beta.2 → 3.116.0-beta.3
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/dist/components/SvgFloatingOverlay.cjs +3 -3
- package/dist/components/SvgFloatingOverlay.js +3 -3
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/client/Popover/PopoverContent.cjs +4 -1
- package/dist/components/client/Popover/PopoverContent.js +4 -1
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
- package/dist/components/client/Tooltip/TooltipContent.cjs +36 -35
- package/dist/components/client/Tooltip/TooltipContent.js +37 -36
- package/dist/hooks/useSvgFloatingContent.cjs +18 -1
- package/dist/hooks/useSvgFloatingContent.js +18 -1
- package/dist/styles/styler.d.cts +81 -81
- package/dist/styles/styler.d.ts +81 -81
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.cts +1 -1
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.ts +1 -1
- package/dist/uds/generated/componentData.cjs +128 -126
- package/dist/uds/generated/componentData.js +128 -126
- package/dist/uds/generated/tailwindPurge.cjs +3 -2
- package/dist/uds/generated/tailwindPurge.js +3 -2
- package/generated/componentData.json +150 -144
- package/generated/tailwindPurge.ts +2 -2
- package/package.json +1 -1
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
4
|
import { Box } from "../../Box.js";
|
|
5
5
|
import { Text } from "../../Text.js";
|
|
6
|
+
import { VStack } from "../../VStack.js";
|
|
6
7
|
import { IconSlot } from "../../IconSlot.js";
|
|
7
8
|
import { useForkRef } from "../../../hooks/useForkRef.js";
|
|
8
9
|
import { useSvgFloatingContent } from "../../../hooks/useSvgFloatingContent.js";
|
|
9
10
|
import { SvgFloatingOverlay } from "../../SvgFloatingOverlay.js";
|
|
10
11
|
import { useTooltipConfig } from "./UDSTooltipConfigProvider.js";
|
|
11
12
|
import { TooltipInternalContext } from "./tooltipContext.js";
|
|
12
|
-
import { forwardRef, isValidElement, useContext,
|
|
13
|
+
import { forwardRef, isValidElement, useContext, useRef } from "react";
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
15
|
import { Tooltip, TooltipArrow, useStoreState, useTooltipContext } from "@ariakit/react";
|
|
15
16
|
|
|
@@ -42,10 +43,7 @@ const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth,
|
|
|
42
43
|
root: getStyles({
|
|
43
44
|
tooltipSizeRoot: "default",
|
|
44
45
|
tooltipVariantRoot: "default",
|
|
45
|
-
className: cx(
|
|
46
|
-
if (maxWidth !== void 0) return typeof maxWidth === "number" ? `max-w-[${maxWidth}px]` : `max-w-[${maxWidth}]`;
|
|
47
|
-
return "max-w-lg";
|
|
48
|
-
}, [maxWidth]), "flex", "z-[9999]", className)
|
|
46
|
+
className: cx(maxWidth === void 0 && "max-w-lg", "flex", "z-[9999]", className)
|
|
49
47
|
}),
|
|
50
48
|
svg: getStyles({
|
|
51
49
|
tooltipSizeSvg: "default",
|
|
@@ -57,7 +55,7 @@ const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth,
|
|
|
57
55
|
position: "absolute",
|
|
58
56
|
width: "full",
|
|
59
57
|
height: "full",
|
|
60
|
-
className: cx("uds-bgBlurFallback", "top-0", "left-0", "z-[1]"
|
|
58
|
+
className: cx("uds-bgBlurFallback", "top-0", "left-0", "z-[1]")
|
|
61
59
|
}),
|
|
62
60
|
title: getStyles({ tooltipSizeTitle: "default" }),
|
|
63
61
|
body: getStyles({ tooltipSizeBody: "default" }),
|
|
@@ -75,41 +73,44 @@ const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth,
|
|
|
75
73
|
portal: internalContext ? internalContext.portal : true,
|
|
76
74
|
gutter: 10,
|
|
77
75
|
updatePosition: onPositionUpdate,
|
|
78
|
-
style:
|
|
79
|
-
|
|
76
|
+
style: {
|
|
77
|
+
...shift.x !== 0 || shift.y !== 0 ? { transform: `translate(${shift.x}px, ${shift.y}px)` } : void 0,
|
|
78
|
+
...maxWidth !== void 0 ? { maxWidth } : void 0
|
|
79
|
+
},
|
|
80
|
+
children: [/* @__PURE__ */ jsx(SvgFloatingOverlay, {
|
|
80
81
|
blurClassName: classNames.blur,
|
|
81
82
|
svgClassNames: { base: classNames.svg },
|
|
82
83
|
arrowHeight: ARROW_HEIGHT,
|
|
83
|
-
contentWrapperSlotProps: {
|
|
84
|
-
flexDirection: "column",
|
|
85
|
-
id
|
|
86
|
-
},
|
|
84
|
+
contentWrapperSlotProps: { id },
|
|
87
85
|
...svgFloatingContentProps,
|
|
88
|
-
children:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
children: /* @__PURE__ */ jsxs(VStack, {
|
|
87
|
+
className: "gap-[inherit]",
|
|
88
|
+
children: [title && /* @__PURE__ */ jsxs(Box, {
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
columnGap: "1",
|
|
91
|
+
children: [startTitleIcon && /* @__PURE__ */ jsx(IconSlot, {
|
|
92
|
+
iconProps: { variant: "fill" },
|
|
93
|
+
icon: startTitleIcon,
|
|
94
|
+
className: classNames.icon
|
|
95
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
96
|
+
className: classNames.title,
|
|
97
|
+
color: "inherit",
|
|
98
|
+
children: title
|
|
99
|
+
})]
|
|
100
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
101
|
+
alignItems: "center",
|
|
102
|
+
columnGap: "1.5",
|
|
103
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
104
|
+
className: classNames.body,
|
|
105
|
+
color: "inherit",
|
|
106
|
+
children
|
|
107
|
+
}), endContent && !isValidElement(endContent) ? /* @__PURE__ */ jsx(Text, {
|
|
108
|
+
className: classNames.endContent,
|
|
109
|
+
color: "inherit",
|
|
110
|
+
children: endContent
|
|
111
|
+
}) : endContent]
|
|
99
112
|
})]
|
|
100
|
-
})
|
|
101
|
-
alignItems: "center",
|
|
102
|
-
columnGap: "1.5",
|
|
103
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
104
|
-
className: classNames.body,
|
|
105
|
-
color: "inherit",
|
|
106
|
-
children
|
|
107
|
-
}), endContent && !isValidElement(endContent) ? /* @__PURE__ */ jsx(Text, {
|
|
108
|
-
className: classNames.endContent,
|
|
109
|
-
color: "inherit",
|
|
110
|
-
children: endContent
|
|
111
|
-
}) : endContent]
|
|
112
|
-
})]
|
|
113
|
+
})
|
|
113
114
|
}), /* @__PURE__ */ jsx(TooltipArrow, {
|
|
114
115
|
ref: arrowRef,
|
|
115
116
|
style: { opacity: 0 }
|
|
@@ -142,7 +142,22 @@ function useSvgFloatingContent({ open, effectivePlacement, borderRadius, arrowRe
|
|
|
142
142
|
arrowTipRadiusFraction
|
|
143
143
|
]);
|
|
144
144
|
const blurStyle = (0, react.useMemo)(() => {
|
|
145
|
-
const style = {
|
|
145
|
+
const style = {};
|
|
146
|
+
if (blurClipPath && dimensions.width > 0 && dimensions.height > 0) {
|
|
147
|
+
let maskWidth = dimensions.width;
|
|
148
|
+
let maskHeight = dimensions.height;
|
|
149
|
+
if (!hideArrow) {
|
|
150
|
+
const arrowSide = require_utils_svgFloatingContentUtils.getArrowSide(effectivePlacement);
|
|
151
|
+
if (arrowSide === "top" || arrowSide === "bottom") maskHeight += arrowHeight;
|
|
152
|
+
else maskWidth += arrowHeight;
|
|
153
|
+
}
|
|
154
|
+
const svgMask = `<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ${maskWidth} ${maskHeight}'><path d='${blurClipPath}' fill='white'/></svg>`;
|
|
155
|
+
const maskUrl = `url("data:image/svg+xml,${encodeURIComponent(svgMask)}")`;
|
|
156
|
+
style.WebkitMaskImage = maskUrl;
|
|
157
|
+
style.maskImage = maskUrl;
|
|
158
|
+
style.WebkitMaskSize = "100% 100%";
|
|
159
|
+
style.maskSize = "100% 100%";
|
|
160
|
+
}
|
|
146
161
|
if (!hideArrow) switch (require_utils_svgFloatingContentUtils.getArrowSide(effectivePlacement)) {
|
|
147
162
|
case "top":
|
|
148
163
|
style.height = `calc(100% + ${arrowHeight}px)`;
|
|
@@ -164,6 +179,8 @@ function useSvgFloatingContent({ open, effectivePlacement, borderRadius, arrowRe
|
|
|
164
179
|
return style;
|
|
165
180
|
}, [
|
|
166
181
|
blurClipPath,
|
|
182
|
+
dimensions.width,
|
|
183
|
+
dimensions.height,
|
|
167
184
|
effectivePlacement,
|
|
168
185
|
hideArrow,
|
|
169
186
|
arrowHeight
|
|
@@ -140,7 +140,22 @@ function useSvgFloatingContent({ open, effectivePlacement, borderRadius, arrowRe
|
|
|
140
140
|
arrowTipRadiusFraction
|
|
141
141
|
]);
|
|
142
142
|
const blurStyle = useMemo(() => {
|
|
143
|
-
const style = {
|
|
143
|
+
const style = {};
|
|
144
|
+
if (blurClipPath && dimensions.width > 0 && dimensions.height > 0) {
|
|
145
|
+
let maskWidth = dimensions.width;
|
|
146
|
+
let maskHeight = dimensions.height;
|
|
147
|
+
if (!hideArrow) {
|
|
148
|
+
const arrowSide = getArrowSide(effectivePlacement);
|
|
149
|
+
if (arrowSide === "top" || arrowSide === "bottom") maskHeight += arrowHeight;
|
|
150
|
+
else maskWidth += arrowHeight;
|
|
151
|
+
}
|
|
152
|
+
const svgMask = `<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ${maskWidth} ${maskHeight}'><path d='${blurClipPath}' fill='white'/></svg>`;
|
|
153
|
+
const maskUrl = `url("data:image/svg+xml,${encodeURIComponent(svgMask)}")`;
|
|
154
|
+
style.WebkitMaskImage = maskUrl;
|
|
155
|
+
style.maskImage = maskUrl;
|
|
156
|
+
style.WebkitMaskSize = "100% 100%";
|
|
157
|
+
style.maskSize = "100% 100%";
|
|
158
|
+
}
|
|
144
159
|
if (!hideArrow) switch (getArrowSide(effectivePlacement)) {
|
|
145
160
|
case "top":
|
|
146
161
|
style.height = `calc(100% + ${arrowHeight}px)`;
|
|
@@ -162,6 +177,8 @@ function useSvgFloatingContent({ open, effectivePlacement, borderRadius, arrowRe
|
|
|
162
177
|
return style;
|
|
163
178
|
}, [
|
|
164
179
|
blurClipPath,
|
|
180
|
+
dimensions.width,
|
|
181
|
+
dimensions.height,
|
|
165
182
|
effectivePlacement,
|
|
166
183
|
hideArrow,
|
|
167
184
|
arrowHeight
|
package/dist/styles/styler.d.cts
CHANGED
|
@@ -10,52 +10,52 @@ declare function normalizeObject(props: Record<string, unknown>): Record<string,
|
|
|
10
10
|
declare const cx: CX<string>;
|
|
11
11
|
declare const cva: CVA<string>;
|
|
12
12
|
declare const getStylesInternal: (props?: ({
|
|
13
|
-
avatarIconVariantRoot?: "
|
|
14
|
-
avatarImageVariantRoot?: "
|
|
15
|
-
avatarSizeIcon?: "
|
|
16
|
-
avatarSizeRoot?: "
|
|
17
|
-
avatarTextVariantRoot?: "
|
|
18
|
-
badgeSizeIcon?: "
|
|
19
|
-
badgeSizeRoot?: "
|
|
20
|
-
badgeVariantIcon?: "
|
|
21
|
-
badgeVariantRoot?: "
|
|
13
|
+
avatarIconVariantRoot?: "primary" | "secondary" | "default" | undefined;
|
|
14
|
+
avatarImageVariantRoot?: "primary" | "secondary" | "default" | undefined;
|
|
15
|
+
avatarSizeIcon?: "xs" | "sm" | "md" | "lg" | "xl" | "default" | undefined;
|
|
16
|
+
avatarSizeRoot?: "xs" | "sm" | "md" | "lg" | "xl" | "default" | undefined;
|
|
17
|
+
avatarTextVariantRoot?: "primary" | "secondary" | "default" | undefined;
|
|
18
|
+
badgeSizeIcon?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
19
|
+
badgeSizeRoot?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
20
|
+
badgeVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "default" | undefined;
|
|
21
|
+
badgeVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "default" | undefined;
|
|
22
22
|
bottomsheetVariantHeader?: "default" | undefined;
|
|
23
23
|
bottomsheetVariantRoot?: "default" | undefined;
|
|
24
|
-
buttonSizeIcon?: "
|
|
25
|
-
buttonSizeRoot?: "
|
|
26
|
-
buttonVariantIcon?: "
|
|
27
|
-
buttonVariantRoot?: "
|
|
28
|
-
checkboxSizeCheckbox?: "
|
|
29
|
-
checkboxSizeRoot?: "
|
|
30
|
-
checkboxVariantCheckbox?: "
|
|
31
|
-
checkboxVariantCheckboxIcon?: "
|
|
32
|
-
checkboxVariantRoot?: "
|
|
24
|
+
buttonSizeIcon?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
25
|
+
buttonSizeRoot?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
26
|
+
buttonVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "alert-tertiary" | "brand-tertiary" | "contrast-high" | "contrast-low" | "contrast-medium" | "info-tertiary" | "positive-tertiary" | "warning-tertiary" | undefined;
|
|
27
|
+
buttonVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "alert-tertiary" | "brand-tertiary" | "contrast-high" | "contrast-low" | "contrast-medium" | "info-tertiary" | "positive-tertiary" | "warning-tertiary" | undefined;
|
|
28
|
+
checkboxSizeCheckbox?: "sm" | "md" | "default" | undefined;
|
|
29
|
+
checkboxSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
30
|
+
checkboxVariantCheckbox?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
31
|
+
checkboxVariantCheckboxIcon?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
32
|
+
checkboxVariantRoot?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
33
33
|
checkboxVariantValueCheckbox?: "checked" | "indeterminate" | "unchecked" | undefined;
|
|
34
34
|
checkboxVariantValueCheckboxIcon?: "checked" | "indeterminate" | "unchecked" | undefined;
|
|
35
35
|
checkboxVariantValueRoot?: "checked" | "indeterminate" | "unchecked" | undefined;
|
|
36
|
-
chipDismissibleVariantIcon?: "
|
|
37
|
-
chipDismissibleVariantRoot?: "
|
|
38
|
-
chipLinkVariantIcon?: "
|
|
39
|
-
chipLinkVariantRoot?: "
|
|
40
|
-
chipSizeIcon?: "
|
|
41
|
-
chipSizeRoot?: "
|
|
36
|
+
chipDismissibleVariantIcon?: "primary" | "secondary" | "brand" | "brand-secondary" | "default" | undefined;
|
|
37
|
+
chipDismissibleVariantRoot?: "primary" | "secondary" | "brand" | "brand-secondary" | "default" | undefined;
|
|
38
|
+
chipLinkVariantIcon?: "primary" | "secondary" | "brand" | "brand-secondary" | "default" | undefined;
|
|
39
|
+
chipLinkVariantRoot?: "primary" | "secondary" | "brand" | "brand-secondary" | "default" | undefined;
|
|
40
|
+
chipSizeIcon?: "sm" | "md" | "default" | undefined;
|
|
41
|
+
chipSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
42
42
|
chipToggleVariantActiveIcon?: "off" | "on" | undefined;
|
|
43
43
|
chipToggleVariantActiveRoot?: "off" | "on" | undefined;
|
|
44
|
-
chipToggleVariantIcon?: "
|
|
45
|
-
chipToggleVariantRoot?: "
|
|
46
|
-
dividerVariantLabel?: "
|
|
47
|
-
dividerVariantLine?: "
|
|
48
|
-
dividerVariantRoot?: "
|
|
49
|
-
iconbuttonSizeIcon?: "
|
|
50
|
-
iconbuttonSizeRoot?: "
|
|
51
|
-
inputSizeEndIcon?: "
|
|
52
|
-
inputSizeHelperIcon?: "
|
|
53
|
-
inputSizeHelperText?: "
|
|
54
|
-
inputSizeInput?: "
|
|
55
|
-
inputSizeInputWrapper?: "
|
|
56
|
-
inputSizeLabel?: "
|
|
57
|
-
inputSizeRoot?: "
|
|
58
|
-
inputSizeStartIcon?: "
|
|
44
|
+
chipToggleVariantIcon?: "primary" | "secondary" | "brand" | "brand-secondary" | "default" | undefined;
|
|
45
|
+
chipToggleVariantRoot?: "primary" | "secondary" | "brand" | "brand-secondary" | "default" | undefined;
|
|
46
|
+
dividerVariantLabel?: "primary" | "secondary" | "tertiary" | "muted" | "default" | undefined;
|
|
47
|
+
dividerVariantLine?: "primary" | "secondary" | "tertiary" | "muted" | "default" | undefined;
|
|
48
|
+
dividerVariantRoot?: "primary" | "secondary" | "tertiary" | "muted" | "default" | undefined;
|
|
49
|
+
iconbuttonSizeIcon?: "xs" | "sm" | "md" | "lg" | "xl" | "default" | undefined;
|
|
50
|
+
iconbuttonSizeRoot?: "xs" | "sm" | "md" | "lg" | "xl" | "default" | undefined;
|
|
51
|
+
inputSizeEndIcon?: "md" | "lg" | "default" | undefined;
|
|
52
|
+
inputSizeHelperIcon?: "md" | "lg" | "default" | undefined;
|
|
53
|
+
inputSizeHelperText?: "md" | "lg" | "default" | undefined;
|
|
54
|
+
inputSizeInput?: "md" | "lg" | "default" | undefined;
|
|
55
|
+
inputSizeInputWrapper?: "md" | "lg" | "default" | undefined;
|
|
56
|
+
inputSizeLabel?: "md" | "lg" | "default" | undefined;
|
|
57
|
+
inputSizeRoot?: "md" | "lg" | "default" | undefined;
|
|
58
|
+
inputSizeStartIcon?: "md" | "lg" | "default" | undefined;
|
|
59
59
|
inputVariantEndIcon?: "default" | undefined;
|
|
60
60
|
inputVariantHelperIcon?: "default" | undefined;
|
|
61
61
|
inputVariantHelperText?: "default" | undefined;
|
|
@@ -76,11 +76,11 @@ declare const getStylesInternal: (props?: ({
|
|
|
76
76
|
inputVariantValueLabelRequired?: "empty" | "filled" | undefined;
|
|
77
77
|
inputVariantValueRoot?: "empty" | "filled" | undefined;
|
|
78
78
|
inputVariantValueStartIcon?: "empty" | "filled" | undefined;
|
|
79
|
-
linkTextStyleIcon?: "
|
|
80
|
-
linkTextStyleRoot?: "
|
|
81
|
-
linkVariantIconEnd?: "
|
|
82
|
-
linkVariantIconStart?: "
|
|
83
|
-
linkVariantRoot?: "
|
|
79
|
+
linkTextStyleIcon?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "default" | undefined;
|
|
80
|
+
linkTextStyleRoot?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "default" | undefined;
|
|
81
|
+
linkVariantIconEnd?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
82
|
+
linkVariantIconStart?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
83
|
+
linkVariantRoot?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
84
84
|
menucontentSizeRoot?: "default" | undefined;
|
|
85
85
|
menucontentVariantRoot?: "default" | undefined;
|
|
86
86
|
menuitemDividerVariantLine?: "default" | undefined;
|
|
@@ -113,19 +113,19 @@ declare const getStylesInternal: (props?: ({
|
|
|
113
113
|
popoverVariantRoot?: "default" | undefined;
|
|
114
114
|
popoverVariantSvgBase?: "default" | undefined;
|
|
115
115
|
popoverVariantSvgBorder?: "default" | undefined;
|
|
116
|
-
radioSizeRadio?: "
|
|
117
|
-
radioSizeRoot?: "
|
|
118
|
-
radioVariantRadio?: "
|
|
119
|
-
radioVariantRadioCircle?: "
|
|
120
|
-
radioVariantRoot?: "
|
|
116
|
+
radioSizeRadio?: "sm" | "md" | "default" | undefined;
|
|
117
|
+
radioSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
118
|
+
radioVariantRadio?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
119
|
+
radioVariantRadioCircle?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
120
|
+
radioVariantRoot?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
121
121
|
radioVariantValueRadio?: "checked" | "unchecked" | undefined;
|
|
122
122
|
radioVariantValueRadioCircle?: "checked" | "unchecked" | undefined;
|
|
123
123
|
radioVariantValueRoot?: "checked" | "unchecked" | undefined;
|
|
124
124
|
scrimVariantRoot?: "default" | undefined;
|
|
125
|
-
switchSizeHandle?: "
|
|
126
|
-
switchSizeHandleIcon?: "
|
|
127
|
-
switchSizeRoot?: "
|
|
128
|
-
switchSizeSwitch?: "
|
|
125
|
+
switchSizeHandle?: "sm" | "md" | "default" | undefined;
|
|
126
|
+
switchSizeHandleIcon?: "sm" | "md" | "default" | undefined;
|
|
127
|
+
switchSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
128
|
+
switchSizeSwitch?: "sm" | "md" | "default" | undefined;
|
|
129
129
|
switchVariantActiveHandle?: "off" | "on" | undefined;
|
|
130
130
|
switchVariantActiveHandleIcon?: "off" | "on" | undefined;
|
|
131
131
|
switchVariantActiveRoot?: "off" | "on" | undefined;
|
|
@@ -139,10 +139,10 @@ declare const getStylesInternal: (props?: ({
|
|
|
139
139
|
toastSizeIcon?: "default" | undefined;
|
|
140
140
|
toastSizeLabel?: "default" | undefined;
|
|
141
141
|
toastSizeRoot?: "default" | undefined;
|
|
142
|
-
toastVariantActionButton?: "
|
|
143
|
-
toastVariantCloseIcon?: "
|
|
144
|
-
toastVariantIcon?: "
|
|
145
|
-
toastVariantRoot?: "
|
|
142
|
+
toastVariantActionButton?: "warning" | "info" | "default" | "error" | "loading" | "success" | undefined;
|
|
143
|
+
toastVariantCloseIcon?: "warning" | "info" | "default" | "error" | "loading" | "success" | undefined;
|
|
144
|
+
toastVariantIcon?: "warning" | "info" | "default" | "error" | "loading" | "success" | undefined;
|
|
145
|
+
toastVariantRoot?: "warning" | "info" | "default" | "error" | "loading" | "success" | undefined;
|
|
146
146
|
tooltipSizeBody?: "default" | undefined;
|
|
147
147
|
tooltipSizeEndContent?: "default" | undefined;
|
|
148
148
|
tooltipSizeIcon?: "default" | undefined;
|
|
@@ -153,14 +153,14 @@ declare const getStylesInternal: (props?: ({
|
|
|
153
153
|
tooltipVariantIcon?: "default" | undefined;
|
|
154
154
|
tooltipVariantRoot?: "default" | undefined;
|
|
155
155
|
tooltipVariantSvg?: "default" | undefined;
|
|
156
|
-
color?: "
|
|
157
|
-
placeholderColor?: "
|
|
156
|
+
color?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "tertiary" | "muted" | "on-color" | undefined;
|
|
157
|
+
placeholderColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "tertiary" | "muted" | "on-color" | undefined;
|
|
158
158
|
fontFamily?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "sans" | "sans-alt" | "serif" | "serif-alt" | "mono" | undefined;
|
|
159
159
|
fontSize?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
160
|
-
fontWeight?: "black" | "
|
|
160
|
+
fontWeight?: "black" | "thin" | "medium" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "bold" | "extralight" | "light" | "regular" | "semibold" | "extrabold" | undefined;
|
|
161
161
|
lineHeight?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
162
162
|
letterSpacing?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
163
|
-
textAlign?: "
|
|
163
|
+
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
164
164
|
textTransform?: "none" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
165
165
|
spacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
166
166
|
spacingHorizontal?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
@@ -178,50 +178,50 @@ declare const getStylesInternal: (props?: ({
|
|
|
178
178
|
offsetTop?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
179
179
|
columnGap?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
180
180
|
rowGap?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
181
|
-
backgroundColor?: "
|
|
182
|
-
borderColor?: "
|
|
183
|
-
borderStartColor?: "
|
|
184
|
-
borderEndColor?: "
|
|
185
|
-
borderBottomColor?: "
|
|
186
|
-
borderTopColor?: "
|
|
181
|
+
backgroundColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
182
|
+
borderColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "tertiary" | "muted" | undefined;
|
|
183
|
+
borderStartColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "tertiary" | "muted" | undefined;
|
|
184
|
+
borderEndColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "tertiary" | "muted" | undefined;
|
|
185
|
+
borderBottomColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "tertiary" | "muted" | undefined;
|
|
186
|
+
borderTopColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "tertiary" | "muted" | undefined;
|
|
187
187
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
188
188
|
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
189
189
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
190
190
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
191
191
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
192
|
-
borderWidth?: "
|
|
193
|
-
borderVerticalWidth?: "
|
|
194
|
-
borderHorizontalWidth?: "
|
|
195
|
-
borderStartWidth?: "
|
|
196
|
-
borderEndWidth?: "
|
|
197
|
-
borderTopWidth?: "
|
|
198
|
-
borderBottomWidth?: "
|
|
192
|
+
borderWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
193
|
+
borderVerticalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
194
|
+
borderHorizontalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
195
|
+
borderStartWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
196
|
+
borderEndWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
197
|
+
borderTopWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
198
|
+
borderBottomWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
199
199
|
avatarSize?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
200
200
|
iconSize?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
201
201
|
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
|
202
202
|
alignItems?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
203
|
-
alignSelf?: "
|
|
204
|
-
flex?: "
|
|
203
|
+
alignSelf?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | "auto" | undefined;
|
|
204
|
+
flex?: "1" | "none" | "auto" | "initial" | undefined;
|
|
205
205
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
206
206
|
flexGrow?: "0" | "1" | "2" | "3" | undefined;
|
|
207
207
|
flexShrink?: "0" | "1" | undefined;
|
|
208
208
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
209
209
|
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
210
210
|
flexBasis?: "min-content" | undefined;
|
|
211
|
-
display?: "flex" | "
|
|
211
|
+
display?: "flex" | "table" | "none" | "block" | "inline-block" | "inline" | "inline-flex" | "inline-table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row-group" | "table-row" | "flow-root" | "grid" | "contents" | undefined;
|
|
212
212
|
overflow?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
213
213
|
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
214
214
|
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
215
|
-
position?: "
|
|
216
|
-
contentFit?: "none" | "
|
|
215
|
+
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
216
|
+
contentFit?: "none" | "contain" | "fill" | "cover" | "scale-down" | undefined;
|
|
217
217
|
colorMode?: "light" | "dark" | undefined;
|
|
218
218
|
scaleMode?: "small" | "medium" | "xSmall" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
|
219
219
|
width?: "full" | "fit" | "screen" | undefined;
|
|
220
220
|
height?: "full" | "fit" | "screen" | undefined;
|
|
221
|
-
dropShadow?: "
|
|
221
|
+
dropShadow?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
222
222
|
insetShadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
223
223
|
nestedBorderRadiusSize?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
224
|
-
nestedBorderRadiusWidth?: "
|
|
224
|
+
nestedBorderRadiusWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
225
225
|
nestedBorderRadiusSpacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
226
226
|
nestedBorderRadius?: boolean | "first" | "last" | undefined;
|
|
227
227
|
} & {
|