@yahoo/uds 3.137.0 → 3.137.2
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/Scrim.cjs +1 -1
- package/dist/components/Scrim.js +1 -1
- package/dist/components/client/BottomSheet/BottomSheet.cjs +25 -5
- package/dist/components/client/BottomSheet/BottomSheet.d.cts +11 -1
- package/dist/components/client/BottomSheet/BottomSheet.d.ts +11 -1
- package/dist/components/client/BottomSheet/BottomSheet.js +25 -5
- package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +11 -5
- package/dist/components/client/BottomSheet/BottomSheetHeader.js +11 -5
- package/dist/components/client/BottomSheet/getBottomSheetSnapTransition.cjs +13 -0
- package/dist/components/client/BottomSheet/getBottomSheetSnapTransition.d.cts +12 -0
- package/dist/components/client/BottomSheet/getBottomSheetSnapTransition.d.ts +13 -0
- package/dist/components/client/BottomSheet/getBottomSheetSnapTransition.js +12 -0
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
- package/dist/styles/styler.d.cts +15 -15
- package/dist/styles/styler.d.ts +15 -15
- package/dist/uds/generated/componentData.cjs +1521 -1514
- package/dist/uds/generated/componentData.js +1521 -1514
- package/dist/uds/generated/tailwindPurge.cjs +6 -6
- package/dist/uds/generated/tailwindPurge.js +6 -6
- package/generated/componentData.json +1746 -1736
- package/generated/tailwindPurge.ts +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ const Scrim = (0, react.forwardRef)(function Scrim({ className, style, variant =
|
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
12
12
|
ref,
|
|
13
13
|
display: "block",
|
|
14
|
-
className: require_styles_styler.cx(position === "fixed" ? "fixed" : "absolute", "inset-0 z-40", animateOpacity ? "transition-opacity duration-150 data-[enter]:opacity-100 [&:not([data-enter])]:opacity-0" : "opacity-100", "uds-bgBlurFallback", rootVariantClass, className),
|
|
14
|
+
className: require_styles_styler.cx(position === "fixed" ? "fixed" : "absolute", "inset-0 z-40", animateOpacity ? "transition-opacity duration-150 motion-reduce:transition-none data-[enter]:opacity-100 [&:not([data-enter])]:opacity-0" : "opacity-100", "uds-bgBlurFallback", rootVariantClass, className),
|
|
15
15
|
...props,
|
|
16
16
|
style: {
|
|
17
17
|
...style,
|
package/dist/components/Scrim.js
CHANGED
|
@@ -9,7 +9,7 @@ const Scrim = forwardRef(function Scrim({ className, style, variant = "default",
|
|
|
9
9
|
return /* @__PURE__ */ jsx(Box, {
|
|
10
10
|
ref,
|
|
11
11
|
display: "block",
|
|
12
|
-
className: cx(position === "fixed" ? "fixed" : "absolute", "inset-0 z-40", animateOpacity ? "transition-opacity duration-150 data-[enter]:opacity-100 [&:not([data-enter])]:opacity-0" : "opacity-100", "uds-bgBlurFallback", rootVariantClass, className),
|
|
12
|
+
className: cx(position === "fixed" ? "fixed" : "absolute", "inset-0 z-40", animateOpacity ? "transition-opacity duration-150 motion-reduce:transition-none data-[enter]:opacity-100 [&:not([data-enter])]:opacity-0" : "opacity-100", "uds-bgBlurFallback", rootVariantClass, className),
|
|
13
13
|
...props,
|
|
14
14
|
style: {
|
|
15
15
|
...style,
|
|
@@ -5,8 +5,10 @@ require("../../../_virtual/_rolldown/runtime.cjs");
|
|
|
5
5
|
const require_styles_styler = require("../../../styles/styler.cjs");
|
|
6
6
|
const require_components_Box = require("../../Box.cjs");
|
|
7
7
|
const require_components_Scrim = require("../../Scrim.cjs");
|
|
8
|
+
const require_utils_exposeAriakitScrollbarWidth = require("../../../utils/exposeAriakitScrollbarWidth.cjs");
|
|
8
9
|
const require_components_client_BottomSheet_BottomSheetHandle = require("./BottomSheetHandle.cjs");
|
|
9
10
|
const require_components_client_BottomSheet_BottomSheetInternalContext = require("./BottomSheetInternalContext.cjs");
|
|
11
|
+
const require_components_client_BottomSheet_getBottomSheetSnapTransition = require("./getBottomSheetSnapTransition.cjs");
|
|
10
12
|
const require_components_client_BottomSheet_UDSBottomSheetConfigProvider = require("./UDSBottomSheetConfigProvider.cjs");
|
|
11
13
|
const require_components_client_BottomSheet_useBottomSheetDrag = require("./useBottomSheetDrag.cjs");
|
|
12
14
|
const require_components_client_BottomSheet_useBottomSheetSnapModel = require("./useBottomSheetSnapModel.cjs");
|
|
@@ -17,6 +19,7 @@ const require_components_client_BottomSheet_useVirtualKeyboard = require("./useV
|
|
|
17
19
|
let react = require("react");
|
|
18
20
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
19
21
|
let _ariakit_react = require("@ariakit/react");
|
|
22
|
+
let motion_react = require("motion/react");
|
|
20
23
|
//#region src/components/client/BottomSheet/BottomSheet.tsx
|
|
21
24
|
/**
|
|
22
25
|
* Drag-to-dismiss distance threshold as a ratio of the lowest snap point's
|
|
@@ -31,7 +34,8 @@ const DRAG_DISMISS_THRESHOLD_RATIO = .25;
|
|
|
31
34
|
* Keeps a visible sliver of page content so the fully expanded state still reads as a bottom sheet.
|
|
32
35
|
*/
|
|
33
36
|
const SHEET_MAX_HEIGHT_TOP_OFFSET_PX = 26;
|
|
34
|
-
|
|
37
|
+
require_utils_exposeAriakitScrollbarWidth.exposeAriakitScrollbarWidth();
|
|
38
|
+
function BottomSheet({ children, className: sheetClassName, controller: controllerProp, variant = "default", snapPoints: snapPointsProp, defaultSnapPointIndex = 0, snapPointIndex: snapPointIndexProp, onSnapPointChange, height, modal = true, portal = true, portalElement, dismissible = true, enableDrag = true, showHandleIndicator = true, hideOnEscape = true, onClose, reduceMotion: forceReduceMotion = false, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, backdrop, preventBodyScroll, slotProps, fullWidthAtMaxSnap = false }) {
|
|
35
39
|
const storeFromContext = (0, _ariakit_react.useDialogContext)();
|
|
36
40
|
const dialogStore = controllerProp ? require_components_client_BottomSheet_useBottomSheetStore.getBottomSheetInternal(controllerProp) : storeFromContext;
|
|
37
41
|
const { backgroundColor: configBackgroundColor } = require_components_client_BottomSheet_UDSBottomSheetConfigProvider.useBottomSheetConfig();
|
|
@@ -39,6 +43,8 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
39
43
|
const isOpen = dialogStore.useState().open;
|
|
40
44
|
const keyboardHeightPx = require_components_client_BottomSheet_useVirtualKeyboard.useVirtualKeyboard(isOpen);
|
|
41
45
|
const viewportHeightPx = require_components_client_BottomSheet_useViewportHeight.useViewportHeight();
|
|
46
|
+
const prefersReducedMotion = (0, motion_react.useReducedMotion)() ?? false;
|
|
47
|
+
const reducedMotion = forceReduceMotion || prefersReducedMotion;
|
|
42
48
|
const isDraggingRef = (0, react.useRef)(false);
|
|
43
49
|
const forceZeroMarginsRef = (0, react.useRef)(false);
|
|
44
50
|
forceZeroMarginsRef.current = keyboardHeightPx > 0;
|
|
@@ -89,10 +95,20 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
89
95
|
if (!el.style.height) {
|
|
90
96
|
applySheetHeight(el, h);
|
|
91
97
|
applyExpansionMargins(el, nextTranslatePx);
|
|
98
|
+
} else if (reducedMotion) {
|
|
99
|
+
el.style.removeProperty("transition");
|
|
100
|
+
applySheetHeight(el, h);
|
|
101
|
+
applyExpansionMargins(el, nextTranslatePx);
|
|
92
102
|
} else {
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
const transition = require_components_client_BottomSheet_getBottomSheetSnapTransition.getBottomSheetSnapTransition({
|
|
104
|
+
prefersReducedMotion: reducedMotion,
|
|
105
|
+
animateExpansionMargins: expansionThresholdRef.current != null
|
|
106
|
+
});
|
|
107
|
+
if (!transition) {
|
|
108
|
+
applySheetHeight(el, h);
|
|
109
|
+
applyExpansionMargins(el, nextTranslatePx);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
96
112
|
el.style.transition = transition;
|
|
97
113
|
applySheetHeight(el, h);
|
|
98
114
|
applyExpansionMargins(el, nextTranslatePx);
|
|
@@ -105,7 +121,8 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
105
121
|
}, [
|
|
106
122
|
applySheetHeight,
|
|
107
123
|
applyExpansionMargins,
|
|
108
|
-
expansionThresholdRef
|
|
124
|
+
expansionThresholdRef,
|
|
125
|
+
reducedMotion
|
|
109
126
|
]),
|
|
110
127
|
isDraggingRef
|
|
111
128
|
});
|
|
@@ -186,6 +203,9 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
186
203
|
hideOnEscape: dismissible ? hideOnEscape : false,
|
|
187
204
|
hideOnInteractOutside,
|
|
188
205
|
onClose,
|
|
206
|
+
"aria-label": ariaLabel,
|
|
207
|
+
"aria-labelledby": ariaLabelledBy,
|
|
208
|
+
"aria-describedby": ariaDescribedBy,
|
|
189
209
|
backdrop: dialogBackdrop,
|
|
190
210
|
portal,
|
|
191
211
|
portalElement,
|
|
@@ -6,7 +6,13 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
6
6
|
import { DialogProps } from "@ariakit/react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/client/BottomSheet/BottomSheet.d.ts
|
|
9
|
-
|
|
9
|
+
type BottomSheetA11yProps = Pick<DialogProps, 'aria-label' | 'aria-labelledby' | 'aria-describedby'>;
|
|
10
|
+
interface BottomSheetProps extends UniversalBottomSheetProps, Pick<DialogProps, 'unmountOnHide' | 'onClose' | 'preventBodyScroll' | 'modal'>, BottomSheetA11yProps {
|
|
11
|
+
/**
|
|
12
|
+
* Reduce motion and transition effects.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
reduceMotion?: boolean;
|
|
10
16
|
/**
|
|
11
17
|
* Controller returned from `useBottomSheetStore()`.
|
|
12
18
|
* @remarks If omitted, uses the nearest `BottomSheetProvider` context.
|
|
@@ -65,6 +71,10 @@ declare function BottomSheet({
|
|
|
65
71
|
showHandleIndicator,
|
|
66
72
|
hideOnEscape,
|
|
67
73
|
onClose,
|
|
74
|
+
reduceMotion: forceReduceMotion,
|
|
75
|
+
'aria-label': ariaLabel,
|
|
76
|
+
'aria-labelledby': ariaLabelledBy,
|
|
77
|
+
'aria-describedby': ariaDescribedBy,
|
|
68
78
|
backdrop,
|
|
69
79
|
preventBodyScroll,
|
|
70
80
|
slotProps,
|
|
@@ -7,7 +7,13 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
7
7
|
import { DialogProps } from "@ariakit/react";
|
|
8
8
|
|
|
9
9
|
//#region src/components/client/BottomSheet/BottomSheet.d.ts
|
|
10
|
-
|
|
10
|
+
type BottomSheetA11yProps = Pick<DialogProps, 'aria-label' | 'aria-labelledby' | 'aria-describedby'>;
|
|
11
|
+
interface BottomSheetProps extends UniversalBottomSheetProps, Pick<DialogProps, 'unmountOnHide' | 'onClose' | 'preventBodyScroll' | 'modal'>, BottomSheetA11yProps {
|
|
12
|
+
/**
|
|
13
|
+
* Reduce motion and transition effects.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
reduceMotion?: boolean;
|
|
11
17
|
/**
|
|
12
18
|
* Controller returned from `useBottomSheetStore()`.
|
|
13
19
|
* @remarks If omitted, uses the nearest `BottomSheetProvider` context.
|
|
@@ -66,6 +72,10 @@ declare function BottomSheet({
|
|
|
66
72
|
showHandleIndicator,
|
|
67
73
|
hideOnEscape,
|
|
68
74
|
onClose,
|
|
75
|
+
reduceMotion: forceReduceMotion,
|
|
76
|
+
'aria-label': ariaLabel,
|
|
77
|
+
'aria-labelledby': ariaLabelledBy,
|
|
78
|
+
'aria-describedby': ariaDescribedBy,
|
|
69
79
|
backdrop,
|
|
70
80
|
preventBodyScroll,
|
|
71
81
|
slotProps,
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
4
|
import { Box } from "../../Box.js";
|
|
5
5
|
import { Scrim } from "../../Scrim.js";
|
|
6
|
+
import { exposeAriakitScrollbarWidth } from "../../../utils/exposeAriakitScrollbarWidth.js";
|
|
6
7
|
import { BottomSheetHandle } from "./BottomSheetHandle.js";
|
|
7
8
|
import { BottomSheetInternalContext } from "./BottomSheetInternalContext.js";
|
|
9
|
+
import { getBottomSheetSnapTransition } from "./getBottomSheetSnapTransition.js";
|
|
8
10
|
import { useBottomSheetConfig } from "./UDSBottomSheetConfigProvider.js";
|
|
9
11
|
import { useBottomSheetDrag } from "./useBottomSheetDrag.js";
|
|
10
12
|
import { useBottomSheetSnapModel } from "./useBottomSheetSnapModel.js";
|
|
@@ -15,6 +17,7 @@ import { useVirtualKeyboard } from "./useVirtualKeyboard.js";
|
|
|
15
17
|
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef } from "react";
|
|
16
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
19
|
import { Dialog, useDialogContext } from "@ariakit/react";
|
|
20
|
+
import { useReducedMotion } from "motion/react";
|
|
18
21
|
//#region src/components/client/BottomSheet/BottomSheet.tsx
|
|
19
22
|
/**
|
|
20
23
|
* Drag-to-dismiss distance threshold as a ratio of the lowest snap point's
|
|
@@ -29,7 +32,8 @@ const DRAG_DISMISS_THRESHOLD_RATIO = .25;
|
|
|
29
32
|
* Keeps a visible sliver of page content so the fully expanded state still reads as a bottom sheet.
|
|
30
33
|
*/
|
|
31
34
|
const SHEET_MAX_HEIGHT_TOP_OFFSET_PX = 26;
|
|
32
|
-
|
|
35
|
+
exposeAriakitScrollbarWidth();
|
|
36
|
+
function BottomSheet({ children, className: sheetClassName, controller: controllerProp, variant = "default", snapPoints: snapPointsProp, defaultSnapPointIndex = 0, snapPointIndex: snapPointIndexProp, onSnapPointChange, height, modal = true, portal = true, portalElement, dismissible = true, enableDrag = true, showHandleIndicator = true, hideOnEscape = true, onClose, reduceMotion: forceReduceMotion = false, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, backdrop, preventBodyScroll, slotProps, fullWidthAtMaxSnap = false }) {
|
|
33
37
|
const storeFromContext = useDialogContext();
|
|
34
38
|
const dialogStore = controllerProp ? getBottomSheetInternal(controllerProp) : storeFromContext;
|
|
35
39
|
const { backgroundColor: configBackgroundColor } = useBottomSheetConfig();
|
|
@@ -37,6 +41,8 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
37
41
|
const isOpen = dialogStore.useState().open;
|
|
38
42
|
const keyboardHeightPx = useVirtualKeyboard(isOpen);
|
|
39
43
|
const viewportHeightPx = useViewportHeight();
|
|
44
|
+
const prefersReducedMotion = useReducedMotion() ?? false;
|
|
45
|
+
const reducedMotion = forceReduceMotion || prefersReducedMotion;
|
|
40
46
|
const isDraggingRef = useRef(false);
|
|
41
47
|
const forceZeroMarginsRef = useRef(false);
|
|
42
48
|
forceZeroMarginsRef.current = keyboardHeightPx > 0;
|
|
@@ -87,10 +93,20 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
87
93
|
if (!el.style.height) {
|
|
88
94
|
applySheetHeight(el, h);
|
|
89
95
|
applyExpansionMargins(el, nextTranslatePx);
|
|
96
|
+
} else if (reducedMotion) {
|
|
97
|
+
el.style.removeProperty("transition");
|
|
98
|
+
applySheetHeight(el, h);
|
|
99
|
+
applyExpansionMargins(el, nextTranslatePx);
|
|
90
100
|
} else {
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
101
|
+
const transition = getBottomSheetSnapTransition({
|
|
102
|
+
prefersReducedMotion: reducedMotion,
|
|
103
|
+
animateExpansionMargins: expansionThresholdRef.current != null
|
|
104
|
+
});
|
|
105
|
+
if (!transition) {
|
|
106
|
+
applySheetHeight(el, h);
|
|
107
|
+
applyExpansionMargins(el, nextTranslatePx);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
94
110
|
el.style.transition = transition;
|
|
95
111
|
applySheetHeight(el, h);
|
|
96
112
|
applyExpansionMargins(el, nextTranslatePx);
|
|
@@ -103,7 +119,8 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
103
119
|
}, [
|
|
104
120
|
applySheetHeight,
|
|
105
121
|
applyExpansionMargins,
|
|
106
|
-
expansionThresholdRef
|
|
122
|
+
expansionThresholdRef,
|
|
123
|
+
reducedMotion
|
|
107
124
|
]),
|
|
108
125
|
isDraggingRef
|
|
109
126
|
});
|
|
@@ -184,6 +201,9 @@ function BottomSheet({ children, className: sheetClassName, controller: controll
|
|
|
184
201
|
hideOnEscape: dismissible ? hideOnEscape : false,
|
|
185
202
|
hideOnInteractOutside,
|
|
186
203
|
onClose,
|
|
204
|
+
"aria-label": ariaLabel,
|
|
205
|
+
"aria-labelledby": ariaLabelledBy,
|
|
206
|
+
"aria-describedby": ariaDescribedBy,
|
|
187
207
|
backdrop: dialogBackdrop,
|
|
188
208
|
portal,
|
|
189
209
|
portalElement,
|
|
@@ -6,6 +6,7 @@ const require_styles_styler = require("../../../styles/styler.cjs");
|
|
|
6
6
|
const require_components_Text = require("../../Text.cjs");
|
|
7
7
|
const require_components_Box = require("../../Box.cjs");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let _ariakit_react = require("@ariakit/react");
|
|
9
10
|
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
10
11
|
function BottomSheetHeader({ children, start, end, variant = "default", className }) {
|
|
11
12
|
const headerVariantClass = require_styles_styler.getStyles({ bottomsheetVariantHeader: variant });
|
|
@@ -20,11 +21,16 @@ function BottomSheetHeader({ children, start, end, variant = "default", classNam
|
|
|
20
21
|
justifyContent: "flex-start",
|
|
21
22
|
children: resolvedStart
|
|
22
23
|
}),
|
|
23
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.DialogHeading, {
|
|
25
|
+
render: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
26
|
+
as: "p",
|
|
27
|
+
variant: "inherit",
|
|
28
|
+
color: "inherit",
|
|
29
|
+
textAlign: "center",
|
|
30
|
+
className: "m-0 w-full"
|
|
31
|
+
}),
|
|
32
|
+
role: "heading",
|
|
33
|
+
"aria-level": 1,
|
|
28
34
|
children
|
|
29
35
|
}),
|
|
30
36
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
@@ -4,6 +4,7 @@ import { cx, getStyles } from "../../../styles/styler.js";
|
|
|
4
4
|
import { Text } from "../../Text.js";
|
|
5
5
|
import { Box } from "../../Box.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { DialogHeading } from "@ariakit/react";
|
|
7
8
|
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
8
9
|
function BottomSheetHeader({ children, start, end, variant = "default", className }) {
|
|
9
10
|
const headerVariantClass = getStyles({ bottomsheetVariantHeader: variant });
|
|
@@ -18,11 +19,16 @@ function BottomSheetHeader({ children, start, end, variant = "default", classNam
|
|
|
18
19
|
justifyContent: "flex-start",
|
|
19
20
|
children: resolvedStart
|
|
20
21
|
}),
|
|
21
|
-
/* @__PURE__ */ jsx(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
/* @__PURE__ */ jsx(DialogHeading, {
|
|
23
|
+
render: /* @__PURE__ */ jsx(Text, {
|
|
24
|
+
as: "p",
|
|
25
|
+
variant: "inherit",
|
|
26
|
+
color: "inherit",
|
|
27
|
+
textAlign: "center",
|
|
28
|
+
className: "m-0 w-full"
|
|
29
|
+
}),
|
|
30
|
+
role: "heading",
|
|
31
|
+
"aria-level": 1,
|
|
26
32
|
children
|
|
27
33
|
}),
|
|
28
34
|
/* @__PURE__ */ jsx(Box, {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
//#region src/components/client/BottomSheet/getBottomSheetSnapTransition.ts
|
|
5
|
+
const SNAP_TRANSITION_EASING = "cubic-bezier(0.32, 0.72, 0, 1)";
|
|
6
|
+
function getBottomSheetSnapTransition({ prefersReducedMotion, animateExpansionMargins }) {
|
|
7
|
+
if (prefersReducedMotion) return;
|
|
8
|
+
let transition = `height 500ms ${SNAP_TRANSITION_EASING}`;
|
|
9
|
+
if (animateExpansionMargins) transition += `, margin-left 500ms ${SNAP_TRANSITION_EASING}, margin-right 500ms ${SNAP_TRANSITION_EASING}, margin-bottom 500ms ${SNAP_TRANSITION_EASING}`;
|
|
10
|
+
return transition;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.getBottomSheetSnapTransition = getBottomSheetSnapTransition;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/client/BottomSheet/getBottomSheetSnapTransition.d.ts
|
|
3
|
+
interface GetBottomSheetSnapTransitionParams {
|
|
4
|
+
prefersReducedMotion: boolean;
|
|
5
|
+
animateExpansionMargins: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function getBottomSheetSnapTransition({
|
|
8
|
+
prefersReducedMotion,
|
|
9
|
+
animateExpansionMargins
|
|
10
|
+
}: GetBottomSheetSnapTransitionParams): string | undefined;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getBottomSheetSnapTransition };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";
|
|
3
|
+
//#region src/components/client/BottomSheet/getBottomSheetSnapTransition.d.ts
|
|
4
|
+
interface GetBottomSheetSnapTransitionParams {
|
|
5
|
+
prefersReducedMotion: boolean;
|
|
6
|
+
animateExpansionMargins: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function getBottomSheetSnapTransition({
|
|
9
|
+
prefersReducedMotion,
|
|
10
|
+
animateExpansionMargins
|
|
11
|
+
}: GetBottomSheetSnapTransitionParams): string | undefined;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getBottomSheetSnapTransition };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
"use client";
|
|
3
|
+
//#region src/components/client/BottomSheet/getBottomSheetSnapTransition.ts
|
|
4
|
+
const SNAP_TRANSITION_EASING = "cubic-bezier(0.32, 0.72, 0, 1)";
|
|
5
|
+
function getBottomSheetSnapTransition({ prefersReducedMotion, animateExpansionMargins }) {
|
|
6
|
+
if (prefersReducedMotion) return;
|
|
7
|
+
let transition = `height 500ms ${SNAP_TRANSITION_EASING}`;
|
|
8
|
+
if (animateExpansionMargins) transition += `, margin-left 500ms ${SNAP_TRANSITION_EASING}, margin-right 500ms ${SNAP_TRANSITION_EASING}, margin-bottom 500ms ${SNAP_TRANSITION_EASING}`;
|
|
9
|
+
return transition;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getBottomSheetSnapTransition };
|
|
@@ -29,7 +29,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
|
|
|
29
29
|
gap: SpacingAlias;
|
|
30
30
|
dismissButtonSpacing: SpacingAlias;
|
|
31
31
|
dismissIconSize: number;
|
|
32
|
-
ariaKitPlacement: ("
|
|
32
|
+
ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
|
|
33
33
|
animationDuration: number;
|
|
34
34
|
};
|
|
35
35
|
//#endregion
|
|
@@ -30,7 +30,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
|
|
|
30
30
|
gap: SpacingAlias;
|
|
31
31
|
dismissButtonSpacing: SpacingAlias;
|
|
32
32
|
dismissIconSize: number;
|
|
33
|
-
ariaKitPlacement: ("
|
|
33
|
+
ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
|
|
34
34
|
animationDuration: number;
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
package/dist/styles/styler.d.cts
CHANGED
|
@@ -171,10 +171,10 @@ declare const getStylesInternal: (props?: ({
|
|
|
171
171
|
toastSizeIcon?: "default" | undefined;
|
|
172
172
|
toastSizeLabel?: "default" | undefined;
|
|
173
173
|
toastSizeRoot?: "default" | undefined;
|
|
174
|
-
toastVariantActionButton?: "warning" | "info" | "
|
|
175
|
-
toastVariantCloseIcon?: "warning" | "info" | "
|
|
176
|
-
toastVariantIcon?: "warning" | "info" | "
|
|
177
|
-
toastVariantRoot?: "warning" | "info" | "
|
|
174
|
+
toastVariantActionButton?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
175
|
+
toastVariantCloseIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
176
|
+
toastVariantIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
177
|
+
toastVariantRoot?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
178
178
|
tooltipSizeBody?: "default" | undefined;
|
|
179
179
|
tooltipSizeEndContent?: "default" | undefined;
|
|
180
180
|
tooltipSizeIcon?: "default" | undefined;
|
|
@@ -189,7 +189,7 @@ declare const getStylesInternal: (props?: ({
|
|
|
189
189
|
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;
|
|
190
190
|
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;
|
|
191
191
|
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;
|
|
192
|
-
fontWeight?: "
|
|
192
|
+
fontWeight?: "black" | "thin" | "medium" | "bold" | "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" | "extralight" | "light" | "regular" | "semibold" | "extrabold" | undefined;
|
|
193
193
|
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;
|
|
194
194
|
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;
|
|
195
195
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
@@ -221,13 +221,13 @@ declare const getStylesInternal: (props?: ({
|
|
|
221
221
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
222
222
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
223
223
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
224
|
-
borderWidth?: "
|
|
225
|
-
borderVerticalWidth?: "
|
|
226
|
-
borderHorizontalWidth?: "
|
|
227
|
-
borderStartWidth?: "
|
|
228
|
-
borderEndWidth?: "
|
|
229
|
-
borderTopWidth?: "
|
|
230
|
-
borderBottomWidth?: "
|
|
224
|
+
borderWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
225
|
+
borderVerticalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
226
|
+
borderHorizontalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
227
|
+
borderStartWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
228
|
+
borderEndWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
229
|
+
borderTopWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
230
|
+
borderBottomWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
231
231
|
avatarSize?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "2xs" | "3xl" | undefined;
|
|
232
232
|
iconSize?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
233
233
|
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
|
@@ -245,15 +245,15 @@ declare const getStylesInternal: (props?: ({
|
|
|
245
245
|
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
246
246
|
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
247
247
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
248
|
-
contentFit?: "none" | "
|
|
248
|
+
contentFit?: "none" | "cover" | "contain" | "fill" | "scale-down" | undefined;
|
|
249
249
|
colorMode?: "light" | "dark" | undefined;
|
|
250
|
-
scaleMode?: "
|
|
250
|
+
scaleMode?: "small" | "medium" | "xSmall" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
|
251
251
|
width?: "full" | "fit" | "screen" | undefined;
|
|
252
252
|
height?: "full" | "fit" | "screen" | undefined;
|
|
253
253
|
dropShadow?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
254
254
|
insetShadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
255
255
|
nestedBorderRadiusSize?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
256
|
-
nestedBorderRadiusWidth?: "
|
|
256
|
+
nestedBorderRadiusWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
257
257
|
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;
|
|
258
258
|
nestedBorderRadius?: boolean | "first" | "last" | undefined;
|
|
259
259
|
} & {
|
package/dist/styles/styler.d.ts
CHANGED
|
@@ -171,10 +171,10 @@ declare const getStylesInternal: (props?: ({
|
|
|
171
171
|
toastSizeIcon?: "default" | undefined;
|
|
172
172
|
toastSizeLabel?: "default" | undefined;
|
|
173
173
|
toastSizeRoot?: "default" | undefined;
|
|
174
|
-
toastVariantActionButton?: "warning" | "info" | "
|
|
175
|
-
toastVariantCloseIcon?: "warning" | "info" | "
|
|
176
|
-
toastVariantIcon?: "warning" | "info" | "
|
|
177
|
-
toastVariantRoot?: "warning" | "info" | "
|
|
174
|
+
toastVariantActionButton?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
175
|
+
toastVariantCloseIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
176
|
+
toastVariantIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
177
|
+
toastVariantRoot?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
178
178
|
tooltipSizeBody?: "default" | undefined;
|
|
179
179
|
tooltipSizeEndContent?: "default" | undefined;
|
|
180
180
|
tooltipSizeIcon?: "default" | undefined;
|
|
@@ -189,7 +189,7 @@ declare const getStylesInternal: (props?: ({
|
|
|
189
189
|
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;
|
|
190
190
|
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;
|
|
191
191
|
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;
|
|
192
|
-
fontWeight?: "
|
|
192
|
+
fontWeight?: "black" | "thin" | "medium" | "bold" | "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" | "extralight" | "light" | "regular" | "semibold" | "extrabold" | undefined;
|
|
193
193
|
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;
|
|
194
194
|
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;
|
|
195
195
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
@@ -221,13 +221,13 @@ declare const getStylesInternal: (props?: ({
|
|
|
221
221
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
222
222
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
223
223
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
224
|
-
borderWidth?: "
|
|
225
|
-
borderVerticalWidth?: "
|
|
226
|
-
borderHorizontalWidth?: "
|
|
227
|
-
borderStartWidth?: "
|
|
228
|
-
borderEndWidth?: "
|
|
229
|
-
borderTopWidth?: "
|
|
230
|
-
borderBottomWidth?: "
|
|
224
|
+
borderWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
225
|
+
borderVerticalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
226
|
+
borderHorizontalWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
227
|
+
borderStartWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
228
|
+
borderEndWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
229
|
+
borderTopWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
230
|
+
borderBottomWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
231
231
|
avatarSize?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "2xs" | "3xl" | undefined;
|
|
232
232
|
iconSize?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
233
233
|
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
|
@@ -245,15 +245,15 @@ declare const getStylesInternal: (props?: ({
|
|
|
245
245
|
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
246
246
|
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
247
247
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
248
|
-
contentFit?: "none" | "
|
|
248
|
+
contentFit?: "none" | "cover" | "contain" | "fill" | "scale-down" | undefined;
|
|
249
249
|
colorMode?: "light" | "dark" | undefined;
|
|
250
|
-
scaleMode?: "
|
|
250
|
+
scaleMode?: "small" | "medium" | "xSmall" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
|
251
251
|
width?: "full" | "fit" | "screen" | undefined;
|
|
252
252
|
height?: "full" | "fit" | "screen" | undefined;
|
|
253
253
|
dropShadow?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
254
254
|
insetShadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
255
255
|
nestedBorderRadiusSize?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
256
|
-
nestedBorderRadiusWidth?: "
|
|
256
|
+
nestedBorderRadiusWidth?: "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "none" | "thin" | "medium" | "thick" | undefined;
|
|
257
257
|
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;
|
|
258
258
|
nestedBorderRadius?: boolean | "first" | "last" | undefined;
|
|
259
259
|
} & {
|