@yahoo/uds 3.107.1 → 3.108.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/dist/cli/dist/utils/rules/config.cjs +18 -0
- package/dist/cli/dist/utils/rules/config.js +18 -0
- package/dist/cli/rules/cursor/uds/components.mdc +41 -12
- package/dist/cli/rules/cursor/uds/elevation.mdc +37 -0
- package/dist/cli/rules/cursor/uds/styling.mdc +22 -0
- package/dist/components/Box.cjs +6 -5
- package/dist/components/Box.js +6 -5
- package/dist/components/experimental/client/Accordion.cjs +5 -5
- package/dist/components/experimental/client/Accordion.js +5 -5
- package/dist/styles/styler.d.cts +20 -20
- package/dist/styles/styler.d.ts +20 -20
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.cts +1 -1
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.ts +1 -1
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.cts +4 -4
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.ts +4 -4
- package/dist/types/dist/index.d.cts +2 -0
- package/dist/types/dist/index.d.ts +2 -0
- package/dist/uds/generated/componentData.cjs +6 -1
- package/dist/uds/generated/componentData.js +6 -1
- package/package.json +1 -1
|
@@ -37,6 +37,24 @@ const EDITOR_CONFIGS = { cursor: {
|
|
|
37
37
|
target: ".cursor/rules/uds/icons.mdc",
|
|
38
38
|
type: "file"
|
|
39
39
|
}]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "UDS Elevation",
|
|
43
|
+
description: "Elevation prop usage for layered surfaces",
|
|
44
|
+
files: [{
|
|
45
|
+
source: "rules/cursor/uds/elevation.mdc",
|
|
46
|
+
target: ".cursor/rules/uds/elevation.mdc",
|
|
47
|
+
type: "file"
|
|
48
|
+
}]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "UDS Styling",
|
|
52
|
+
description: "Color palette and styling guidelines",
|
|
53
|
+
files: [{
|
|
54
|
+
source: "rules/cursor/uds/styling.mdc",
|
|
55
|
+
target: ".cursor/rules/uds/styling.mdc",
|
|
56
|
+
type: "file"
|
|
57
|
+
}]
|
|
40
58
|
}
|
|
41
59
|
]
|
|
42
60
|
} };
|
|
@@ -36,6 +36,24 @@ const EDITOR_CONFIGS = { cursor: {
|
|
|
36
36
|
target: ".cursor/rules/uds/icons.mdc",
|
|
37
37
|
type: "file"
|
|
38
38
|
}]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "UDS Elevation",
|
|
42
|
+
description: "Elevation prop usage for layered surfaces",
|
|
43
|
+
files: [{
|
|
44
|
+
source: "rules/cursor/uds/elevation.mdc",
|
|
45
|
+
target: ".cursor/rules/uds/elevation.mdc",
|
|
46
|
+
type: "file"
|
|
47
|
+
}]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "UDS Styling",
|
|
51
|
+
description: "Color palette and styling guidelines",
|
|
52
|
+
files: [{
|
|
53
|
+
source: "rules/cursor/uds/styling.mdc",
|
|
54
|
+
target: ".cursor/rules/uds/styling.mdc",
|
|
55
|
+
type: "file"
|
|
56
|
+
}]
|
|
39
57
|
}
|
|
40
58
|
]
|
|
41
59
|
} };
|
|
@@ -4,17 +4,25 @@ globs:
|
|
|
4
4
|
alwaysApply: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
## MCP tool usage
|
|
8
|
+
|
|
9
|
+
- Always fetch components type definition using the UDS MCP server
|
|
10
|
+
- Always fetch the possible components from UDS using the UDS MCP server
|
|
11
|
+
- Before using any component, fetch its type definition and documentation examples via the MCP server
|
|
12
|
+
- Use `get_components` to retrieve the full list of exported UDS components
|
|
13
|
+
- Use `get_component_documentation_examples` with a component name (e.g., "tooltip", "toast") to fetch usage docs and examples
|
|
14
|
+
- Use `get_documentation` with path "core-concepts/elevation" for detailed elevation guidance
|
|
15
|
+
|
|
16
|
+
## Never rebuild existing UDS primitives
|
|
17
|
+
|
|
18
|
+
- Before building ANY custom tooltip, toast, notification, popover, dropdown, select, dialog, modal, drawer, sheet, accordion, tabs, alert, snackbar, or banner, call `get_components` first to check if UDS already exports it
|
|
19
|
+
- If a matching component exists, use it and call `get_component_documentation_examples` to learn its API
|
|
20
|
+
- Never recreate functionality that UDS provides — only create custom components when UDS doesn't offer the needed functionality
|
|
21
|
+
|
|
22
|
+
## Use UDS components instead of raw HTML
|
|
23
|
+
|
|
24
|
+
- Always use UDS UI library components instead of raw HTML tags
|
|
25
|
+
- Use `<Text>` instead of `<p>`, `<span>`, `<h1>`–`<h6>`
|
|
18
26
|
- Use `<Button>` instead of `<button>`
|
|
19
27
|
- Use `<Input>` instead of `<input>`
|
|
20
28
|
- Use `<Checkbox>` instead of `<input type="checkbox">`
|
|
@@ -22,4 +30,25 @@ alwaysApply: true
|
|
|
22
30
|
- Use `<Switch>` instead of custom toggle components
|
|
23
31
|
- Use `<Link>` instead of `<a>`
|
|
24
32
|
- Use `<Icon>` instead of SVG elements
|
|
25
|
-
-
|
|
33
|
+
- Use `<Tooltip>`, `<TooltipTrigger>`, `<TooltipContent>` instead of custom tooltip implementations
|
|
34
|
+
- Use `createToast()` from `@yahoo/uds` instead of custom toast/notification components
|
|
35
|
+
|
|
36
|
+
## Box constraints
|
|
37
|
+
|
|
38
|
+
- `<Box>` has `display="flex"` by default — use `<VStack>` for vertical stacking, `<HStack>` for horizontal, or `<div>` for simple containers
|
|
39
|
+
- Always set an explicit `display` prop on every `<Box>` (`display="block"` or `display="flex"`). Omitting it causes broken UI.
|
|
40
|
+
- `<Box>` does NOT have a `gap` prop — use `rowGap` or `columnGap` instead. Only `<HStack>` and `<VStack>` have `gap`.
|
|
41
|
+
- Every `<Box>` with `flexDirection="column"` must have `rowGap` specified. Every `<Box>` with `flexDirection="row"` must have `columnGap` specified if spacing between children is needed. The `spacing` prop is for padding only, not gaps.
|
|
42
|
+
|
|
43
|
+
## HStack and VStack constraints
|
|
44
|
+
|
|
45
|
+
- Always set `alignItems` and `justifyContent` on every `<HStack>` and `<VStack>` — never rely on default flex behavior
|
|
46
|
+
- Flexbox alignment values must use full CSS syntax: `"flex-start"` not `"start"`, `"flex-end"` not `"end"`
|
|
47
|
+
- Valid `justifyContent` values: `"flex-start"` | `"flex-end"` | `"center"` | `"space-between"` | `"space-around"` | `"space-evenly"`
|
|
48
|
+
- Valid `alignItems` values: `"flex-start"` | `"flex-end"` | `"center"` | `"baseline"` | `"stretch"`
|
|
49
|
+
|
|
50
|
+
## Styling rules
|
|
51
|
+
|
|
52
|
+
- Box, HStack, and VStack provide TypeScript props for all styling — prefer using props (`backgroundColor`, `spacing`, `borderRadius`, etc.) over Tailwind `className` for UDS design tokens
|
|
53
|
+
- Never override styling properties on components that use `size` and `variant` props (Button, IconButton, Chip, Badge, Avatar, Radio, Checkbox, Menu, Divider, Switch) with Tailwind classes — always use only the available `size` and `variant` options
|
|
54
|
+
- When placing fixed-size components (Button, IconButton, Chip, Badge, Avatar) in a horizontal flex container, add `className="shrink-0"` to prevent them from being compressed
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: UDS elevation
|
|
3
|
+
globs:
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## When to use elevation
|
|
8
|
+
|
|
9
|
+
- Any surface that overlaps or sits on top of another MUST use the `elevation` prop on `<Box>`, `<VStack>`, or `<HStack>`
|
|
10
|
+
- This includes cards, modals, popovers, dropdowns, drawers, toasts, sheets, and floating elements
|
|
11
|
+
|
|
12
|
+
## The elevation scale
|
|
13
|
+
|
|
14
|
+
- `elevation="0"` — Background or flat surfaces
|
|
15
|
+
- `elevation="1"` — Cards, list items, secondary surfaces
|
|
16
|
+
- `elevation="2"` — Floating elements like popovers, dropdowns
|
|
17
|
+
- `elevation="3"` — Modals, sheets, key actions
|
|
18
|
+
- `elevation="4"` — Drawers or toasts
|
|
19
|
+
- `elevation="5"` — System overlays
|
|
20
|
+
|
|
21
|
+
## Always use the shorthand prop
|
|
22
|
+
|
|
23
|
+
- The `elevation` prop is a shorthand that sets `backgroundColor`, `borderColor`, `borderWidth`, and `dropShadow` together in one prop
|
|
24
|
+
- Never use `dropShadow` alone for layered surfaces — it only adds a shadow and misses the required `backgroundColor`, `borderColor`, and `borderWidth` changes
|
|
25
|
+
- Never use individual elevation token props (`backgroundColor="elevation-X"`, `borderColor="elevation-X"`, `borderWidth="elevation-X"`, `dropShadow="elevation-X"`) — always use the shorthand `elevation` prop instead
|
|
26
|
+
- Individual props override the shorthand if needed: `<Box elevation="2" backgroundColor="primary" />`
|
|
27
|
+
|
|
28
|
+
## Examples
|
|
29
|
+
|
|
30
|
+
- Wrong: `<Box dropShadow="md" backgroundColor="primary" borderRadius="lg">` (incomplete elevation)
|
|
31
|
+
- Wrong: `<Box backgroundColor="elevation-2" borderColor="elevation-2" borderWidth="elevation-2" dropShadow="elevation-2">` (verbose, use shorthand)
|
|
32
|
+
- Correct: `<Box elevation="1" borderRadius="lg">` (single prop sets all 4 properties)
|
|
33
|
+
- Correct: `<VStack elevation="2" gap="4" alignItems="stretch" justifyContent="flex-start">Popover content</VStack>`
|
|
34
|
+
|
|
35
|
+
## More information
|
|
36
|
+
|
|
37
|
+
- Use `get_documentation` MCP tool with path "core-concepts/elevation" for detailed guidance on applying elevation
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: UDS styling and colors
|
|
3
|
+
globs:
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Use UDS palette colors only
|
|
8
|
+
|
|
9
|
+
- Only use UDS palette colors — never use raw color values like `bg-white`, `text-white`, `bg-gray-100`, etc.
|
|
10
|
+
- Background colors: `primary`, `secondary`, `brand`, `brand-secondary`, `alert`, `alert-secondary`, `positive`, `positive-secondary`, `warning`, `warning-secondary`, `info`, `info-secondary`
|
|
11
|
+
- Foreground (text/icon) colors: `primary`, `secondary`, `tertiary`, `muted`, `on-color`, `brand`, `alert`, `positive`, `warning`, `info`
|
|
12
|
+
|
|
13
|
+
## Color pairing rules
|
|
14
|
+
|
|
15
|
+
- On dark or brand backgrounds (`brand`, `positive`, `info`, `warning`, `alert`), use `color="on-color"` for text and icons
|
|
16
|
+
- On secondary/lighter background variants (`brand-secondary`, `positive-secondary`, etc.), use the matching semantic color (e.g., `color="brand"` on `backgroundColor="brand-secondary"`)
|
|
17
|
+
- Never use `color="on-color"` on white or light backgrounds — it creates invisible white text
|
|
18
|
+
- Never use a dark semantic color (e.g., `brand`, `positive`) directly on its own secondary background variant as contrast will be poor
|
|
19
|
+
|
|
20
|
+
## General styling
|
|
21
|
+
|
|
22
|
+
- Prefer UDS TypeScript props (`backgroundColor`, `spacing`, `borderRadius`, etc.) over Tailwind `className` for design tokens
|
package/dist/components/Box.cjs
CHANGED
|
@@ -33,9 +33,10 @@ const Slot = require_utils_createSlot.createSlot();
|
|
|
33
33
|
*
|
|
34
34
|
* @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
35
35
|
*/
|
|
36
|
-
const Box = (0, react.forwardRef)(function Box({ asChild, as: As = "div", className, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display = "flex", overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, width, height, dropShadow, insetShadow, nestedBorderRadius, nestedBorderRadiusSize = nestedBorderRadius ? borderRadius : void 0, nestedBorderRadiusSpacing = nestedBorderRadius ? spacing : void 0, nestedBorderRadiusWidth = nestedBorderRadius ? borderWidth : void 0, ...props }, ref) {
|
|
36
|
+
const Box = (0, react.forwardRef)(function Box({ asChild, as: As = "div", className, elevation, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display = "flex", overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, width, height, dropShadow, insetShadow, nestedBorderRadius, nestedBorderRadiusSize = nestedBorderRadius ? borderRadius : void 0, nestedBorderRadiusSpacing = nestedBorderRadius ? spacing : void 0, nestedBorderRadiusWidth = nestedBorderRadius ? borderWidth : void 0, ...props }, ref) {
|
|
37
|
+
const elevationAlias = elevation !== void 0 ? `elevation-${elevation}` : void 0;
|
|
37
38
|
const styles = require_styles_styler.getStyles({
|
|
38
|
-
backgroundColor,
|
|
39
|
+
backgroundColor: backgroundColor ?? elevationAlias,
|
|
39
40
|
borderRadius,
|
|
40
41
|
borderTopStartRadius,
|
|
41
42
|
borderTopEndRadius,
|
|
@@ -45,12 +46,12 @@ const Box = (0, react.forwardRef)(function Box({ asChild, as: As = "div", classN
|
|
|
45
46
|
nestedBorderRadiusSize,
|
|
46
47
|
nestedBorderRadiusSpacing,
|
|
47
48
|
nestedBorderRadiusWidth,
|
|
48
|
-
borderColor,
|
|
49
|
+
borderColor: borderColor ?? elevationAlias,
|
|
49
50
|
borderStartColor,
|
|
50
51
|
borderEndColor,
|
|
51
52
|
borderTopColor,
|
|
52
53
|
borderBottomColor,
|
|
53
|
-
borderWidth,
|
|
54
|
+
borderWidth: borderWidth ?? elevationAlias,
|
|
54
55
|
borderVerticalWidth,
|
|
55
56
|
borderHorizontalWidth,
|
|
56
57
|
borderStartWidth,
|
|
@@ -90,7 +91,7 @@ const Box = (0, react.forwardRef)(function Box({ asChild, as: As = "div", classN
|
|
|
90
91
|
rowGap,
|
|
91
92
|
width,
|
|
92
93
|
height,
|
|
93
|
-
dropShadow,
|
|
94
|
+
dropShadow: dropShadow ?? elevationAlias,
|
|
94
95
|
insetShadow,
|
|
95
96
|
className
|
|
96
97
|
});
|
package/dist/components/Box.js
CHANGED
|
@@ -31,9 +31,10 @@ const Slot = createSlot();
|
|
|
31
31
|
*
|
|
32
32
|
* @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
33
33
|
*/
|
|
34
|
-
const Box = forwardRef(function Box({ asChild, as: As = "div", className, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display = "flex", overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, width, height, dropShadow, insetShadow, nestedBorderRadius, nestedBorderRadiusSize = nestedBorderRadius ? borderRadius : void 0, nestedBorderRadiusSpacing = nestedBorderRadius ? spacing : void 0, nestedBorderRadiusWidth = nestedBorderRadius ? borderWidth : void 0, ...props }, ref) {
|
|
34
|
+
const Box = forwardRef(function Box({ asChild, as: As = "div", className, elevation, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display = "flex", overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, width, height, dropShadow, insetShadow, nestedBorderRadius, nestedBorderRadiusSize = nestedBorderRadius ? borderRadius : void 0, nestedBorderRadiusSpacing = nestedBorderRadius ? spacing : void 0, nestedBorderRadiusWidth = nestedBorderRadius ? borderWidth : void 0, ...props }, ref) {
|
|
35
|
+
const elevationAlias = elevation !== void 0 ? `elevation-${elevation}` : void 0;
|
|
35
36
|
const styles = getStyles({
|
|
36
|
-
backgroundColor,
|
|
37
|
+
backgroundColor: backgroundColor ?? elevationAlias,
|
|
37
38
|
borderRadius,
|
|
38
39
|
borderTopStartRadius,
|
|
39
40
|
borderTopEndRadius,
|
|
@@ -43,12 +44,12 @@ const Box = forwardRef(function Box({ asChild, as: As = "div", className, backgr
|
|
|
43
44
|
nestedBorderRadiusSize,
|
|
44
45
|
nestedBorderRadiusSpacing,
|
|
45
46
|
nestedBorderRadiusWidth,
|
|
46
|
-
borderColor,
|
|
47
|
+
borderColor: borderColor ?? elevationAlias,
|
|
47
48
|
borderStartColor,
|
|
48
49
|
borderEndColor,
|
|
49
50
|
borderTopColor,
|
|
50
51
|
borderBottomColor,
|
|
51
|
-
borderWidth,
|
|
52
|
+
borderWidth: borderWidth ?? elevationAlias,
|
|
52
53
|
borderVerticalWidth,
|
|
53
54
|
borderHorizontalWidth,
|
|
54
55
|
borderStartWidth,
|
|
@@ -88,7 +89,7 @@ const Box = forwardRef(function Box({ asChild, as: As = "div", className, backgr
|
|
|
88
89
|
rowGap,
|
|
89
90
|
width,
|
|
90
91
|
height,
|
|
91
|
-
dropShadow,
|
|
92
|
+
dropShadow: dropShadow ?? elevationAlias,
|
|
92
93
|
insetShadow,
|
|
93
94
|
className
|
|
94
95
|
});
|
|
@@ -42,7 +42,10 @@ function Accordion({ label, children, onClick, open, spacingHorizontal = "4", sp
|
|
|
42
42
|
columnGap: "2.5",
|
|
43
43
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(motion_react.AnimatePresence, {
|
|
44
44
|
initial: false,
|
|
45
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.m.div, {
|
|
45
|
+
children: [endAction && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.m.div, {
|
|
46
|
+
onClick: (e) => e.stopPropagation(),
|
|
47
|
+
children: endAction
|
|
48
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.m.div, {
|
|
46
49
|
initial: "collapsed",
|
|
47
50
|
animate: open ? "open" : "collapsed",
|
|
48
51
|
exit: "collapsed",
|
|
@@ -57,10 +60,7 @@ function Accordion({ label, children, onClick, open, spacingHorizontal = "4", sp
|
|
|
57
60
|
size: "sm",
|
|
58
61
|
color: "primary"
|
|
59
62
|
})
|
|
60
|
-
}, "chevron")
|
|
61
|
-
onClick: (e) => e.stopPropagation(),
|
|
62
|
-
children: endAction
|
|
63
|
-
})]
|
|
63
|
+
}, "chevron")]
|
|
64
64
|
})
|
|
65
65
|
})] })
|
|
66
66
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, {
|
|
@@ -40,7 +40,10 @@ function Accordion({ label, children, onClick, open, spacingHorizontal = "4", sp
|
|
|
40
40
|
columnGap: "2.5",
|
|
41
41
|
children: /* @__PURE__ */ jsxs(AnimatePresence, {
|
|
42
42
|
initial: false,
|
|
43
|
-
children: [/* @__PURE__ */ jsx(m.div, {
|
|
43
|
+
children: [endAction && /* @__PURE__ */ jsx(m.div, {
|
|
44
|
+
onClick: (e) => e.stopPropagation(),
|
|
45
|
+
children: endAction
|
|
46
|
+
}), /* @__PURE__ */ jsx(m.div, {
|
|
44
47
|
initial: "collapsed",
|
|
45
48
|
animate: open ? "open" : "collapsed",
|
|
46
49
|
exit: "collapsed",
|
|
@@ -55,10 +58,7 @@ function Accordion({ label, children, onClick, open, spacingHorizontal = "4", sp
|
|
|
55
58
|
size: "sm",
|
|
56
59
|
color: "primary"
|
|
57
60
|
})
|
|
58
|
-
}, "chevron")
|
|
59
|
-
onClick: (e) => e.stopPropagation(),
|
|
60
|
-
children: endAction
|
|
61
|
-
})]
|
|
61
|
+
}, "chevron")]
|
|
62
62
|
})
|
|
63
63
|
})] })
|
|
64
64
|
}), /* @__PURE__ */ jsx(AnimatePresence, {
|
package/dist/styles/styler.d.cts
CHANGED
|
@@ -144,11 +144,11 @@ declare const getStylesInternal: (props?: ({
|
|
|
144
144
|
placeholderColor?: "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "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" | undefined;
|
|
145
145
|
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;
|
|
146
146
|
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;
|
|
147
|
-
fontWeight?: "
|
|
147
|
+
fontWeight?: "black" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "thin" | "medium" | "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;
|
|
148
148
|
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;
|
|
149
149
|
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;
|
|
150
|
-
textAlign?: "
|
|
151
|
-
textTransform?: "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" | "
|
|
150
|
+
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
151
|
+
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;
|
|
152
152
|
spacing?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
153
153
|
spacingHorizontal?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
154
154
|
spacingVertical?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
@@ -176,39 +176,39 @@ declare const getStylesInternal: (props?: ({
|
|
|
176
176
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
177
177
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
178
178
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
179
|
-
borderWidth?: "
|
|
180
|
-
borderVerticalWidth?: "
|
|
181
|
-
borderHorizontalWidth?: "
|
|
182
|
-
borderStartWidth?: "
|
|
183
|
-
borderEndWidth?: "
|
|
184
|
-
borderTopWidth?: "
|
|
185
|
-
borderBottomWidth?: "
|
|
179
|
+
borderWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
180
|
+
borderVerticalWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
181
|
+
borderHorizontalWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
182
|
+
borderStartWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
183
|
+
borderEndWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
184
|
+
borderTopWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
185
|
+
borderBottomWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
186
186
|
avatarSize?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
187
187
|
iconSize?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
188
188
|
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
|
189
189
|
alignItems?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
190
|
-
alignSelf?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" |
|
|
191
|
-
flex?: "none" | "
|
|
190
|
+
alignSelf?: "center" | "auto" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
191
|
+
flex?: "none" | "auto" | "1" | "initial" | undefined;
|
|
192
192
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
193
193
|
flexGrow?: "0" | "1" | "2" | "3" | undefined;
|
|
194
194
|
flexShrink?: "0" | "1" | undefined;
|
|
195
195
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
196
196
|
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
197
197
|
flexBasis?: "min-content" | undefined;
|
|
198
|
-
display?: "
|
|
199
|
-
overflow?: "
|
|
200
|
-
overflowX?: "
|
|
201
|
-
overflowY?: "
|
|
198
|
+
display?: "table" | "none" | "grid" | "inline" | "flex" | "block" | "inline-block" | "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" | "contents" | undefined;
|
|
199
|
+
overflow?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
200
|
+
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
201
|
+
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
202
202
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
203
|
-
contentFit?: "
|
|
203
|
+
contentFit?: "fill" | "none" | "cover" | "contain" | "scale-down" | undefined;
|
|
204
204
|
colorMode?: "light" | "dark" | undefined;
|
|
205
|
-
scaleMode?: "
|
|
205
|
+
scaleMode?: "small" | "medium" | "xSmall" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
|
206
206
|
width?: "full" | "fit" | "screen" | undefined;
|
|
207
207
|
height?: "full" | "fit" | "screen" | undefined;
|
|
208
|
-
dropShadow?: "none" | "
|
|
208
|
+
dropShadow?: "none" | "xs" | "sm" | "md" | "lg" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "xl" | "2xl" | undefined;
|
|
209
209
|
insetShadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
210
210
|
nestedBorderRadiusSize?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
211
|
-
nestedBorderRadiusWidth?: "
|
|
211
|
+
nestedBorderRadiusWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
212
212
|
nestedBorderRadiusSpacing?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
213
213
|
nestedBorderRadius?: boolean | "first" | "last" | undefined;
|
|
214
214
|
} & {
|
package/dist/styles/styler.d.ts
CHANGED
|
@@ -144,11 +144,11 @@ declare const getStylesInternal: (props?: ({
|
|
|
144
144
|
placeholderColor?: "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "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" | undefined;
|
|
145
145
|
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;
|
|
146
146
|
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;
|
|
147
|
-
fontWeight?: "
|
|
147
|
+
fontWeight?: "black" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "thin" | "medium" | "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;
|
|
148
148
|
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;
|
|
149
149
|
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;
|
|
150
|
-
textAlign?: "
|
|
151
|
-
textTransform?: "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" | "
|
|
150
|
+
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
151
|
+
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;
|
|
152
152
|
spacing?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
153
153
|
spacingHorizontal?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
154
154
|
spacingVertical?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
@@ -176,39 +176,39 @@ declare const getStylesInternal: (props?: ({
|
|
|
176
176
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
177
177
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
178
178
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
179
|
-
borderWidth?: "
|
|
180
|
-
borderVerticalWidth?: "
|
|
181
|
-
borderHorizontalWidth?: "
|
|
182
|
-
borderStartWidth?: "
|
|
183
|
-
borderEndWidth?: "
|
|
184
|
-
borderTopWidth?: "
|
|
185
|
-
borderBottomWidth?: "
|
|
179
|
+
borderWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
180
|
+
borderVerticalWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
181
|
+
borderHorizontalWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
182
|
+
borderStartWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
183
|
+
borderEndWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
184
|
+
borderTopWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
185
|
+
borderBottomWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
186
186
|
avatarSize?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
187
187
|
iconSize?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
188
188
|
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
|
189
189
|
alignItems?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
190
|
-
alignSelf?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" |
|
|
191
|
-
flex?: "none" | "
|
|
190
|
+
alignSelf?: "center" | "auto" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
191
|
+
flex?: "none" | "auto" | "1" | "initial" | undefined;
|
|
192
192
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
193
193
|
flexGrow?: "0" | "1" | "2" | "3" | undefined;
|
|
194
194
|
flexShrink?: "0" | "1" | undefined;
|
|
195
195
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
196
196
|
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
197
197
|
flexBasis?: "min-content" | undefined;
|
|
198
|
-
display?: "
|
|
199
|
-
overflow?: "
|
|
200
|
-
overflowX?: "
|
|
201
|
-
overflowY?: "
|
|
198
|
+
display?: "table" | "none" | "grid" | "inline" | "flex" | "block" | "inline-block" | "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" | "contents" | undefined;
|
|
199
|
+
overflow?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
200
|
+
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
201
|
+
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
|
202
202
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
203
|
-
contentFit?: "
|
|
203
|
+
contentFit?: "fill" | "none" | "cover" | "contain" | "scale-down" | undefined;
|
|
204
204
|
colorMode?: "light" | "dark" | undefined;
|
|
205
|
-
scaleMode?: "
|
|
205
|
+
scaleMode?: "small" | "medium" | "xSmall" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
|
206
206
|
width?: "full" | "fit" | "screen" | undefined;
|
|
207
207
|
height?: "full" | "fit" | "screen" | undefined;
|
|
208
|
-
dropShadow?: "none" | "
|
|
208
|
+
dropShadow?: "none" | "xs" | "sm" | "md" | "lg" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "xl" | "2xl" | undefined;
|
|
209
209
|
insetShadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
210
210
|
nestedBorderRadiusSize?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
|
211
|
-
nestedBorderRadiusWidth?: "
|
|
211
|
+
nestedBorderRadiusWidth?: "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thin" | "medium" | "thick" | undefined;
|
|
212
212
|
nestedBorderRadiusSpacing?: "0" | "px" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "4.5" | "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;
|
|
213
213
|
nestedBorderRadius?: boolean | "first" | "last" | undefined;
|
|
214
214
|
} & {
|
|
@@ -19,6 +19,6 @@ import { FontConfig } from "../../../../types/dist/index.cjs";
|
|
|
19
19
|
* addBase(fontVars);
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
declare function getFontStyles(fontConfig: Partial<FontConfig>): Record<"--uds-font-sans" | "--uds-font-
|
|
22
|
+
declare function getFontStyles(fontConfig: Partial<FontConfig>): Record<"--uds-font-sans" | "--uds-font-serif" | "--uds-font-mono" | "--uds-font-sans-alt" | "--uds-font-serif-alt", string>; //#endregion
|
|
23
23
|
//#endregion
|
|
24
24
|
export { getFontStyles };
|
|
@@ -19,6 +19,6 @@ import { FontConfig } from "../../../../types/dist/index.js";
|
|
|
19
19
|
* addBase(fontVars);
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
declare function getFontStyles(fontConfig: Partial<FontConfig>): Record<"--uds-font-sans" | "--uds-font-
|
|
22
|
+
declare function getFontStyles(fontConfig: Partial<FontConfig>): Record<"--uds-font-sans" | "--uds-font-serif" | "--uds-font-mono" | "--uds-font-sans-alt" | "--uds-font-serif-alt", string>; //#endregion
|
|
23
23
|
//#endregion
|
|
24
24
|
export { getFontStyles };
|
|
@@ -4,8 +4,8 @@ import { UniversalTokensConfig } from "../../../../config/dist/index.cjs";
|
|
|
4
4
|
|
|
5
5
|
//#region ../tailwind/dist/tailwind/utils/getShadowStyles.d.ts
|
|
6
6
|
//#region src/tailwind/utils/getShadowStyles.d.ts
|
|
7
|
-
declare const shadowVariantToCSS: (shadowType: ShadowType, shadowVariant: ShadowVariant | ElevationAlias) => readonly [".uds-inset-shadow-
|
|
8
|
-
readonly [x: string]: "var(--uds-inset-shadow-
|
|
7
|
+
declare const shadowVariantToCSS: (shadowType: ShadowType, shadowVariant: ShadowVariant | ElevationAlias) => readonly [".uds-inset-shadow-sm" | ".uds-inset-shadow-md" | ".uds-inset-shadow-lg" | ".uds-inset-shadow-xl" | ".uds-inset-shadow-2xl" | ".uds-inset-shadow-none" | ".uds-inset-shadow-xs" | ".uds-inset-shadow-elevation-0" | ".uds-inset-shadow-elevation-1" | ".uds-inset-shadow-elevation-2" | ".uds-inset-shadow-elevation-3" | ".uds-inset-shadow-elevation-4" | ".uds-inset-shadow-elevation-5" | ".uds-drop-shadow-sm" | ".uds-drop-shadow-md" | ".uds-drop-shadow-lg" | ".uds-drop-shadow-xl" | ".uds-drop-shadow-2xl" | ".uds-drop-shadow-none" | ".uds-drop-shadow-xs" | ".uds-drop-shadow-elevation-0" | ".uds-drop-shadow-elevation-1" | ".uds-drop-shadow-elevation-2" | ".uds-drop-shadow-elevation-3" | ".uds-drop-shadow-elevation-4" | ".uds-drop-shadow-elevation-5", {
|
|
8
|
+
readonly [x: string]: "var(--uds-inset-shadow-sm)" | "var(--uds-inset-shadow-md)" | "var(--uds-inset-shadow-lg)" | "var(--uds-inset-shadow-xl)" | "var(--uds-inset-shadow-2xl)" | "var(--uds-inset-shadow-none)" | "var(--uds-inset-shadow-xs)" | "var(--uds-inset-shadow-elevation-0)" | "var(--uds-inset-shadow-elevation-1)" | "var(--uds-inset-shadow-elevation-2)" | "var(--uds-inset-shadow-elevation-3)" | "var(--uds-inset-shadow-elevation-4)" | "var(--uds-inset-shadow-elevation-5)" | "var(--uds-drop-shadow-sm)" | "var(--uds-drop-shadow-md)" | "var(--uds-drop-shadow-lg)" | "var(--uds-drop-shadow-xl)" | "var(--uds-drop-shadow-2xl)" | "var(--uds-drop-shadow-none)" | "var(--uds-drop-shadow-xs)" | "var(--uds-drop-shadow-elevation-0)" | "var(--uds-drop-shadow-elevation-1)" | "var(--uds-drop-shadow-elevation-2)" | "var(--uds-drop-shadow-elevation-3)" | "var(--uds-drop-shadow-elevation-4)" | "var(--uds-drop-shadow-elevation-5)" | "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
9
9
|
readonly boxShadow: "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
10
10
|
}];
|
|
11
11
|
declare function getShadowStyles({
|
|
@@ -14,8 +14,8 @@ declare function getShadowStyles({
|
|
|
14
14
|
}: {
|
|
15
15
|
config: UniversalTokensConfig;
|
|
16
16
|
shadowType: ShadowType;
|
|
17
|
-
}): Record<".uds-inset-shadow-
|
|
18
|
-
readonly [x: string]: "var(--uds-inset-shadow-
|
|
17
|
+
}): Record<".uds-inset-shadow-sm" | ".uds-inset-shadow-md" | ".uds-inset-shadow-lg" | ".uds-inset-shadow-xl" | ".uds-inset-shadow-2xl" | ".uds-inset-shadow-none" | ".uds-inset-shadow-xs" | ".uds-inset-shadow-elevation-0" | ".uds-inset-shadow-elevation-1" | ".uds-inset-shadow-elevation-2" | ".uds-inset-shadow-elevation-3" | ".uds-inset-shadow-elevation-4" | ".uds-inset-shadow-elevation-5" | ".uds-drop-shadow-sm" | ".uds-drop-shadow-md" | ".uds-drop-shadow-lg" | ".uds-drop-shadow-xl" | ".uds-drop-shadow-2xl" | ".uds-drop-shadow-none" | ".uds-drop-shadow-xs" | ".uds-drop-shadow-elevation-0" | ".uds-drop-shadow-elevation-1" | ".uds-drop-shadow-elevation-2" | ".uds-drop-shadow-elevation-3" | ".uds-drop-shadow-elevation-4" | ".uds-drop-shadow-elevation-5", {
|
|
18
|
+
readonly [x: string]: "var(--uds-inset-shadow-sm)" | "var(--uds-inset-shadow-md)" | "var(--uds-inset-shadow-lg)" | "var(--uds-inset-shadow-xl)" | "var(--uds-inset-shadow-2xl)" | "var(--uds-inset-shadow-none)" | "var(--uds-inset-shadow-xs)" | "var(--uds-inset-shadow-elevation-0)" | "var(--uds-inset-shadow-elevation-1)" | "var(--uds-inset-shadow-elevation-2)" | "var(--uds-inset-shadow-elevation-3)" | "var(--uds-inset-shadow-elevation-4)" | "var(--uds-inset-shadow-elevation-5)" | "var(--uds-drop-shadow-sm)" | "var(--uds-drop-shadow-md)" | "var(--uds-drop-shadow-lg)" | "var(--uds-drop-shadow-xl)" | "var(--uds-drop-shadow-2xl)" | "var(--uds-drop-shadow-none)" | "var(--uds-drop-shadow-xs)" | "var(--uds-drop-shadow-elevation-0)" | "var(--uds-drop-shadow-elevation-1)" | "var(--uds-drop-shadow-elevation-2)" | "var(--uds-drop-shadow-elevation-3)" | "var(--uds-drop-shadow-elevation-4)" | "var(--uds-drop-shadow-elevation-5)" | "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
19
19
|
readonly boxShadow: "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
20
20
|
}>; //#endregion
|
|
21
21
|
//#endregion
|
|
@@ -4,8 +4,8 @@ import { UniversalTokensConfig } from "../../../../config/dist/index.js";
|
|
|
4
4
|
|
|
5
5
|
//#region ../tailwind/dist/tailwind/utils/getShadowStyles.d.ts
|
|
6
6
|
//#region src/tailwind/utils/getShadowStyles.d.ts
|
|
7
|
-
declare const shadowVariantToCSS: (shadowType: ShadowType, shadowVariant: ShadowVariant | ElevationAlias) => readonly [".uds-inset-shadow-
|
|
8
|
-
readonly [x: string]: "var(--uds-inset-shadow-
|
|
7
|
+
declare const shadowVariantToCSS: (shadowType: ShadowType, shadowVariant: ShadowVariant | ElevationAlias) => readonly [".uds-inset-shadow-sm" | ".uds-inset-shadow-md" | ".uds-inset-shadow-lg" | ".uds-inset-shadow-xl" | ".uds-inset-shadow-2xl" | ".uds-inset-shadow-none" | ".uds-inset-shadow-xs" | ".uds-inset-shadow-elevation-0" | ".uds-inset-shadow-elevation-1" | ".uds-inset-shadow-elevation-2" | ".uds-inset-shadow-elevation-3" | ".uds-inset-shadow-elevation-4" | ".uds-inset-shadow-elevation-5" | ".uds-drop-shadow-sm" | ".uds-drop-shadow-md" | ".uds-drop-shadow-lg" | ".uds-drop-shadow-xl" | ".uds-drop-shadow-2xl" | ".uds-drop-shadow-none" | ".uds-drop-shadow-xs" | ".uds-drop-shadow-elevation-0" | ".uds-drop-shadow-elevation-1" | ".uds-drop-shadow-elevation-2" | ".uds-drop-shadow-elevation-3" | ".uds-drop-shadow-elevation-4" | ".uds-drop-shadow-elevation-5", {
|
|
8
|
+
readonly [x: string]: "var(--uds-inset-shadow-sm)" | "var(--uds-inset-shadow-md)" | "var(--uds-inset-shadow-lg)" | "var(--uds-inset-shadow-xl)" | "var(--uds-inset-shadow-2xl)" | "var(--uds-inset-shadow-none)" | "var(--uds-inset-shadow-xs)" | "var(--uds-inset-shadow-elevation-0)" | "var(--uds-inset-shadow-elevation-1)" | "var(--uds-inset-shadow-elevation-2)" | "var(--uds-inset-shadow-elevation-3)" | "var(--uds-inset-shadow-elevation-4)" | "var(--uds-inset-shadow-elevation-5)" | "var(--uds-drop-shadow-sm)" | "var(--uds-drop-shadow-md)" | "var(--uds-drop-shadow-lg)" | "var(--uds-drop-shadow-xl)" | "var(--uds-drop-shadow-2xl)" | "var(--uds-drop-shadow-none)" | "var(--uds-drop-shadow-xs)" | "var(--uds-drop-shadow-elevation-0)" | "var(--uds-drop-shadow-elevation-1)" | "var(--uds-drop-shadow-elevation-2)" | "var(--uds-drop-shadow-elevation-3)" | "var(--uds-drop-shadow-elevation-4)" | "var(--uds-drop-shadow-elevation-5)" | "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
9
9
|
readonly boxShadow: "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
10
10
|
}];
|
|
11
11
|
declare function getShadowStyles({
|
|
@@ -14,8 +14,8 @@ declare function getShadowStyles({
|
|
|
14
14
|
}: {
|
|
15
15
|
config: UniversalTokensConfig;
|
|
16
16
|
shadowType: ShadowType;
|
|
17
|
-
}): Record<".uds-inset-shadow-
|
|
18
|
-
readonly [x: string]: "var(--uds-inset-shadow-
|
|
17
|
+
}): Record<".uds-inset-shadow-sm" | ".uds-inset-shadow-md" | ".uds-inset-shadow-lg" | ".uds-inset-shadow-xl" | ".uds-inset-shadow-2xl" | ".uds-inset-shadow-none" | ".uds-inset-shadow-xs" | ".uds-inset-shadow-elevation-0" | ".uds-inset-shadow-elevation-1" | ".uds-inset-shadow-elevation-2" | ".uds-inset-shadow-elevation-3" | ".uds-inset-shadow-elevation-4" | ".uds-inset-shadow-elevation-5" | ".uds-drop-shadow-sm" | ".uds-drop-shadow-md" | ".uds-drop-shadow-lg" | ".uds-drop-shadow-xl" | ".uds-drop-shadow-2xl" | ".uds-drop-shadow-none" | ".uds-drop-shadow-xs" | ".uds-drop-shadow-elevation-0" | ".uds-drop-shadow-elevation-1" | ".uds-drop-shadow-elevation-2" | ".uds-drop-shadow-elevation-3" | ".uds-drop-shadow-elevation-4" | ".uds-drop-shadow-elevation-5", {
|
|
18
|
+
readonly [x: string]: "var(--uds-inset-shadow-sm)" | "var(--uds-inset-shadow-md)" | "var(--uds-inset-shadow-lg)" | "var(--uds-inset-shadow-xl)" | "var(--uds-inset-shadow-2xl)" | "var(--uds-inset-shadow-none)" | "var(--uds-inset-shadow-xs)" | "var(--uds-inset-shadow-elevation-0)" | "var(--uds-inset-shadow-elevation-1)" | "var(--uds-inset-shadow-elevation-2)" | "var(--uds-inset-shadow-elevation-3)" | "var(--uds-inset-shadow-elevation-4)" | "var(--uds-inset-shadow-elevation-5)" | "var(--uds-drop-shadow-sm)" | "var(--uds-drop-shadow-md)" | "var(--uds-drop-shadow-lg)" | "var(--uds-drop-shadow-xl)" | "var(--uds-drop-shadow-2xl)" | "var(--uds-drop-shadow-none)" | "var(--uds-drop-shadow-xs)" | "var(--uds-drop-shadow-elevation-0)" | "var(--uds-drop-shadow-elevation-1)" | "var(--uds-drop-shadow-elevation-2)" | "var(--uds-drop-shadow-elevation-3)" | "var(--uds-drop-shadow-elevation-4)" | "var(--uds-drop-shadow-elevation-5)" | "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
19
19
|
readonly boxShadow: "var(--uds-drop-shadow, 0 0 transparent), var(--uds-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)";
|
|
20
20
|
}>; //#endregion
|
|
21
21
|
//#endregion
|
|
@@ -425,6 +425,8 @@ interface UniversalBoxProps extends PropsWithChildren, BackgroundStyleProps, Bor
|
|
|
425
425
|
asChild?: boolean;
|
|
426
426
|
/** The HTML element type to render. @default 'div' */
|
|
427
427
|
as?: ElementType;
|
|
428
|
+
/** Shorthand that sets backgroundColor, borderColor, borderWidth, and dropShadow to the given elevation level ('0'–'5'). Individual props override the shorthand. */
|
|
429
|
+
elevation?: ElevationLevel;
|
|
428
430
|
}
|
|
429
431
|
interface UniversalStackProps extends Omit<UniversalBoxProps, 'flexDirection'> {
|
|
430
432
|
/** The spacing between child elements. */
|
|
@@ -425,6 +425,8 @@ interface UniversalBoxProps extends PropsWithChildren, BackgroundStyleProps, Bor
|
|
|
425
425
|
asChild?: boolean;
|
|
426
426
|
/** The HTML element type to render. @default 'div' */
|
|
427
427
|
as?: ElementType;
|
|
428
|
+
/** Shorthand that sets backgroundColor, borderColor, borderWidth, and dropShadow to the given elevation level ('0'–'5'). Individual props override the shorthand. */
|
|
429
|
+
elevation?: ElevationLevel;
|
|
428
430
|
}
|
|
429
431
|
interface UniversalStackProps extends Omit<UniversalBoxProps, 'flexDirection'> {
|
|
430
432
|
/** The spacing between child elements. */
|
|
@@ -56,7 +56,12 @@ var Box = {
|
|
|
56
56
|
"cxLiterals": [],
|
|
57
57
|
"internalComponents": ["Comp"],
|
|
58
58
|
"internalComponentProps": {},
|
|
59
|
-
"propToVariantKeys": {
|
|
59
|
+
"propToVariantKeys": { "elevationAlias": [
|
|
60
|
+
"backgroundColor",
|
|
61
|
+
"borderColor",
|
|
62
|
+
"borderWidth",
|
|
63
|
+
"dropShadow"
|
|
64
|
+
] },
|
|
60
65
|
"motionVarPrefixes": []
|
|
61
66
|
};
|
|
62
67
|
var Icon = {
|
|
@@ -55,7 +55,12 @@ var Box = {
|
|
|
55
55
|
"cxLiterals": [],
|
|
56
56
|
"internalComponents": ["Comp"],
|
|
57
57
|
"internalComponentProps": {},
|
|
58
|
-
"propToVariantKeys": {
|
|
58
|
+
"propToVariantKeys": { "elevationAlias": [
|
|
59
|
+
"backgroundColor",
|
|
60
|
+
"borderColor",
|
|
61
|
+
"borderWidth",
|
|
62
|
+
"dropShadow"
|
|
63
|
+
] },
|
|
59
64
|
"motionVarPrefixes": []
|
|
60
65
|
};
|
|
61
66
|
var Icon = {
|