@yahoo/uds 3.107.1 → 3.108.1
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/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/experimental/client/Accordion.cjs +5 -5
- package/dist/components/experimental/client/Accordion.js +5 -5
- package/dist/styles/styler.d.cts +26 -26
- package/dist/styles/styler.d.ts +26 -26
- 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 +1171 -1166
- package/dist/uds/generated/componentData.js +1171 -1166
- 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
|
});
|
|
@@ -88,6 +88,6 @@ interface MenuItemCheckboxProps extends Omit<PressableProps, 'asChild'>, HtmlBut
|
|
|
88
88
|
*
|
|
89
89
|
* @related [Menu](https://uds.build/docs/components/menu), [Menu.Item](https://uds.build/docs/components/menu-item)
|
|
90
90
|
**/
|
|
91
|
-
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "
|
|
91
|
+
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "rootProps" | "hideEndIcon" | "active"> & react.RefAttributes<HTMLDivElement>>;
|
|
92
92
|
//#endregion
|
|
93
93
|
export { MenuItemCheckbox, type MenuItemCheckboxProps };
|
|
@@ -88,6 +88,6 @@ interface MenuItemCheckboxProps extends Omit<PressableProps, 'asChild'>, HtmlBut
|
|
|
88
88
|
*
|
|
89
89
|
* @related [Menu](https://uds.build/docs/components/menu), [Menu.Item](https://uds.build/docs/components/menu-item)
|
|
90
90
|
**/
|
|
91
|
-
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "
|
|
91
|
+
declare const MenuItemCheckbox: react.ForwardRefExoticComponent<Omit<MenuItemCheckboxProps, "rootProps" | "hideEndIcon" | "active"> & react.RefAttributes<HTMLDivElement>>;
|
|
92
92
|
//#endregion
|
|
93
93
|
export { MenuItemCheckbox, type MenuItemCheckboxProps };
|
|
@@ -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,7 +144,7 @@ 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" | "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" | "thin" | "extralight" | "light" | "regular" | "medium" | "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
150
|
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
@@ -171,44 +171,44 @@ declare const getStylesInternal: (props?: ({
|
|
|
171
171
|
borderEndColor?: "primary" | "secondary" | "tertiary" | "muted" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
172
172
|
borderBottomColor?: "primary" | "secondary" | "tertiary" | "muted" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
173
173
|
borderTopColor?: "primary" | "secondary" | "tertiary" | "muted" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
174
|
-
borderRadius?: "
|
|
175
|
-
borderTopStartRadius?: "
|
|
176
|
-
borderTopEndRadius?: "
|
|
177
|
-
borderBottomStartRadius?: "
|
|
178
|
-
borderBottomEndRadius?: "
|
|
179
|
-
borderWidth?: "
|
|
180
|
-
borderVerticalWidth?: "
|
|
181
|
-
borderHorizontalWidth?: "
|
|
182
|
-
borderStartWidth?: "
|
|
183
|
-
borderEndWidth?: "
|
|
184
|
-
borderTopWidth?: "
|
|
185
|
-
borderBottomWidth?: "
|
|
174
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
175
|
+
borderTopStartRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
176
|
+
borderTopEndRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
177
|
+
borderBottomStartRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
178
|
+
borderBottomEndRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
179
|
+
borderWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
180
|
+
borderVerticalWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
181
|
+
borderHorizontalWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
182
|
+
borderStartWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
183
|
+
borderEndWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
184
|
+
borderTopWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
185
|
+
borderBottomWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "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?: "
|
|
190
|
+
alignSelf?: "center" | "auto" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
191
|
+
flex?: "1" | "auto" | "none" | "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?: "flex" | "none" | "block" | "inline-block" | "inline" | "inline-flex" | "
|
|
199
|
-
overflow?: "
|
|
200
|
-
overflowX?: "
|
|
201
|
-
overflowY?: "
|
|
202
|
-
position?: "
|
|
203
|
-
contentFit?: "
|
|
198
|
+
display?: "flex" | "table" | "none" | "grid" | "block" | "inline-block" | "inline" | "inline-flex" | "inline-table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row-group" | "table-row" | "flow-root" | "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
|
+
position?: "fixed" | "static" | "absolute" | "relative" | "sticky" | undefined;
|
|
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?: "
|
|
209
|
-
insetShadow?: "
|
|
210
|
-
nestedBorderRadiusSize?: "
|
|
211
|
-
nestedBorderRadiusWidth?: "
|
|
208
|
+
dropShadow?: "xs" | "sm" | "md" | "lg" | "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "xl" | "2xl" | undefined;
|
|
209
|
+
insetShadow?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
210
|
+
nestedBorderRadiusSize?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
211
|
+
nestedBorderRadiusWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "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,7 +144,7 @@ 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" | "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" | "thin" | "extralight" | "light" | "regular" | "medium" | "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
150
|
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
@@ -171,44 +171,44 @@ declare const getStylesInternal: (props?: ({
|
|
|
171
171
|
borderEndColor?: "primary" | "secondary" | "tertiary" | "muted" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
172
172
|
borderBottomColor?: "primary" | "secondary" | "tertiary" | "muted" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
173
173
|
borderTopColor?: "primary" | "secondary" | "tertiary" | "muted" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | undefined;
|
|
174
|
-
borderRadius?: "
|
|
175
|
-
borderTopStartRadius?: "
|
|
176
|
-
borderTopEndRadius?: "
|
|
177
|
-
borderBottomStartRadius?: "
|
|
178
|
-
borderBottomEndRadius?: "
|
|
179
|
-
borderWidth?: "
|
|
180
|
-
borderVerticalWidth?: "
|
|
181
|
-
borderHorizontalWidth?: "
|
|
182
|
-
borderStartWidth?: "
|
|
183
|
-
borderEndWidth?: "
|
|
184
|
-
borderTopWidth?: "
|
|
185
|
-
borderBottomWidth?: "
|
|
174
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
175
|
+
borderTopStartRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
176
|
+
borderTopEndRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
177
|
+
borderBottomStartRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
178
|
+
borderBottomEndRadius?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
179
|
+
borderWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
180
|
+
borderVerticalWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
181
|
+
borderHorizontalWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
182
|
+
borderStartWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
183
|
+
borderEndWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
184
|
+
borderTopWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "thick" | undefined;
|
|
185
|
+
borderBottomWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "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?: "
|
|
190
|
+
alignSelf?: "center" | "auto" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
|
191
|
+
flex?: "1" | "auto" | "none" | "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?: "flex" | "none" | "block" | "inline-block" | "inline" | "inline-flex" | "
|
|
199
|
-
overflow?: "
|
|
200
|
-
overflowX?: "
|
|
201
|
-
overflowY?: "
|
|
202
|
-
position?: "
|
|
203
|
-
contentFit?: "
|
|
198
|
+
display?: "flex" | "table" | "none" | "grid" | "block" | "inline-block" | "inline" | "inline-flex" | "inline-table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row-group" | "table-row" | "flow-root" | "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
|
+
position?: "fixed" | "static" | "absolute" | "relative" | "sticky" | undefined;
|
|
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?: "
|
|
209
|
-
insetShadow?: "
|
|
210
|
-
nestedBorderRadiusSize?: "
|
|
211
|
-
nestedBorderRadiusWidth?: "
|
|
208
|
+
dropShadow?: "xs" | "sm" | "md" | "lg" | "none" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "xl" | "2xl" | undefined;
|
|
209
|
+
insetShadow?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "2xl" | "xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | undefined;
|
|
210
|
+
nestedBorderRadiusSize?: "xs" | "sm" | "md" | "lg" | "none" | "xl" | "full" | undefined;
|
|
211
|
+
nestedBorderRadiusWidth?: "none" | "thin" | "medium" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "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 };
|