@omnific/atelier 0.4.1 → 0.5.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/README.md +59 -4
- package/dist/box/Box.d.ts +1 -3
- package/dist/box/Box.js +2 -3
- package/dist/box/constants.js +1 -2
- package/dist/box/index.d.ts +1 -1
- package/dist/box/types.d.ts +1 -3
- package/dist/button/Button.d.ts +1 -3
- package/dist/button/Button.js +1 -2
- package/dist/button/LoadingIcon.js +1 -2
- package/dist/button/constants.js +1 -2
- package/dist/button/index.d.ts +1 -1
- package/dist/button/types.d.ts +1 -3
- package/dist/main.d.ts +6 -6
- package/dist/main.js +1 -1
- package/dist/props/display.props.d.ts +1 -3
- package/dist/props/display.props.js +1 -2
- package/dist/props/flex.props.d.ts +1 -3
- package/dist/props/flex.props.js +1 -2
- package/dist/props/gap.props.d.ts +1 -3
- package/dist/props/gap.props.js +1 -2
- package/dist/props/height.props.d.ts +1 -3
- package/dist/props/height.props.js +1 -2
- package/dist/props/index.d.ts +1 -3
- package/dist/props/index.js +2 -3
- package/dist/props/justify.props.d.ts +1 -3
- package/dist/props/justify.props.js +1 -2
- package/dist/props/margin.props.d.ts +1 -3
- package/dist/props/margin.props.js +1 -2
- package/dist/props/overflow.props.d.ts +1 -3
- package/dist/props/overflow.props.js +1 -2
- package/dist/props/padding.props.d.ts +1 -3
- package/dist/props/padding.props.js +1 -2
- package/dist/props/position.props.d.ts +1 -3
- package/dist/props/position.props.js +1 -2
- package/dist/props/radius.props.d.ts +1 -3
- package/dist/props/radius.props.js +1 -2
- package/dist/props/scaling.props.d.ts +1 -3
- package/dist/props/shadow.props.d.ts +1 -3
- package/dist/props/shadow.props.js +1 -2
- package/dist/props/width.props.d.ts +1 -3
- package/dist/props/width.props.js +1 -2
- package/dist/styles.css +84 -0
- package/dist/system/create-system.js +83 -16
- package/dist/system/create-theme.d.ts +14 -0
- package/dist/system/create-theme.js +21 -0
- package/dist/system/css-vars.d.ts +5 -4
- package/dist/system/css-vars.js +16 -10
- package/dist/system/default-system.d.ts +3 -7
- package/dist/system/default-system.js +4 -5
- package/dist/system/default-theme.d.ts +156 -0
- package/dist/system/default-theme.js +11 -0
- package/dist/system/defaults/color-keys.gen.d.ts +1 -3
- package/dist/system/defaults/colors.d.ts +89 -93
- package/dist/system/defaults/colors.js +68 -72
- package/dist/system/defaults/tokens.d.ts +55 -0
- package/dist/system/defaults/tokens.js +57 -0
- package/dist/system/index.d.ts +7 -8
- package/dist/system/index.js +5 -6
- package/dist/system/types.d.ts +34 -17
- package/dist/system/use-theme.d.ts +6 -3
- package/dist/system/use-theme.js +6 -2
- package/dist/transition/types.d.ts +1 -3
- package/dist/transition/types.js +1 -2
- package/dist/transition/useTransitionStatus.d.ts +1 -3
- package/dist/transition/useTransitionStatus.js +1 -2
- package/dist/types.d.ts +1 -3
- package/dist/utils/extractProps.js +1 -2
- package/dist/utils/getPrefixCls.js +1 -2
- package/package.json +5 -5
- package/dist/system/create-system.d.ts +0 -14
- package/dist/system/define-colors.d.ts +0 -7
- package/dist/system/define-colors.js +0 -7
- package/dist/system/flatten-colors.d.ts +0 -11
- package/dist/system/flatten-colors.js +0 -26
- package/dist/system/merge-colors.d.ts +0 -12
- package/dist/system/merge-colors.js +0 -30
package/README.md
CHANGED
|
@@ -4,10 +4,10 @@ A refined React component library for Omnific.
|
|
|
4
4
|
|
|
5
5
|
```tsx
|
|
6
6
|
import { Button } from '@omnific/atelier';
|
|
7
|
-
import {
|
|
7
|
+
import { createTheme, useTheme } from '@omnific/atelier/system';
|
|
8
8
|
import '@omnific/atelier/styles.css';
|
|
9
9
|
|
|
10
|
-
const system =
|
|
10
|
+
const system = createTheme('app');
|
|
11
11
|
|
|
12
12
|
function App() {
|
|
13
13
|
useTheme(system); // injects CSS variables onto :root
|
|
@@ -19,8 +19,63 @@ function App() {
|
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Color values come from `
|
|
23
|
-
|
|
22
|
+
Color values come from `createTheme`, which turns the provided `ThemeConfig`
|
|
23
|
+
into the variables that differ from `defaultSystem`. `@omnific/atelier/styles.css`
|
|
24
|
+
includes the default theme colors as a zero-specificity `:where(:root)` fallback,
|
|
25
|
+
so omitted variables continue to use the default theme.
|
|
26
|
+
|
|
27
|
+
Each `ThemeConfig` describes one theme. Define separate systems for light, dark,
|
|
28
|
+
or brand themes and switch by selecting a different system:
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
const darkTheme = {
|
|
32
|
+
tokens: {
|
|
33
|
+
colors: {
|
|
34
|
+
gray: {
|
|
35
|
+
50: '#fafafa',
|
|
36
|
+
900: '#18181b',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
semanticTokens: {
|
|
41
|
+
colors: {
|
|
42
|
+
bg: { base: '{colors.gray.900}' },
|
|
43
|
+
fg: { base: '{colors.gray.50}' },
|
|
44
|
+
accent: {
|
|
45
|
+
solid: '#60a5fa',
|
|
46
|
+
hover: '#3b82f6',
|
|
47
|
+
active: '#2563eb',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const lightSystem = createTheme('light');
|
|
54
|
+
const darkSystem = createTheme('dark', darkTheme);
|
|
55
|
+
|
|
56
|
+
const themeRegistry = {
|
|
57
|
+
light: lightSystem,
|
|
58
|
+
dark: darkSystem,
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
function App(props: { themeName: keyof typeof themeRegistry }) {
|
|
62
|
+
// Every theme system contains only the variables declared by its theme config.
|
|
63
|
+
useTheme(themeRegistry[props.themeName]);
|
|
64
|
+
return <Button color='primary'>Continue</Button>;
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`ThemeConfig` is intentionally limited to `tokens` and `semanticTokens`; theme
|
|
69
|
+
selection state such as `mode`, `themes`, or `setTheme` belongs to the application.
|
|
70
|
+
|
|
71
|
+
Theme systems contain only the colors declared by their config, so the default
|
|
72
|
+
colors shipped by `@omnific/atelier/styles.css` remain the base layer. Local
|
|
73
|
+
themed elements follow the same override model: they override only the variables
|
|
74
|
+
they declare, while undeclared variables inherit from the nearest ancestor
|
|
75
|
+
scope.
|
|
76
|
+
|
|
77
|
+
Spacing, radii, fonts, control heights, shadows, body defaults, border-box sizing
|
|
78
|
+
and component styles ship via `@omnific/atelier/styles.css`.
|
|
24
79
|
|
|
25
80
|
## Storybook
|
|
26
81
|
|
package/dist/box/Box.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { BoxProps } from "./types.js";
|
|
2
|
-
//#region box/Box.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* 通用样式容器,通过共享静态 class 应用间距、布局与外观。
|
|
5
4
|
*/
|
|
6
|
-
export declare const Box: (props: BoxProps) => import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare const Box: (props: BoxProps) => import("react").JSX.Element;
|
package/dist/box/Box.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getPrefixCls } from "../utils/getPrefixCls.js";
|
|
2
1
|
import { boxPrefixCls } from "./constants.js";
|
|
3
2
|
import { extractProps } from "../utils/extractProps.js";
|
|
3
|
+
import { getPrefixCls } from "../utils/getPrefixCls.js";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// box/Box.tsx
|
|
7
7
|
const borderClassName = getPrefixCls("border");
|
|
8
8
|
/**
|
|
9
9
|
* 通用样式容器,通过共享静态 class 应用间距、布局与外观。
|
|
@@ -19,5 +19,4 @@ const Box = (props) => {
|
|
|
19
19
|
children
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { Box };
|
package/dist/box/constants.js
CHANGED
package/dist/box/index.d.ts
CHANGED
package/dist/box/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AtelierProps } from "../props/index.js";
|
|
2
2
|
import { ScalingValue } from "../props/scaling.props.js";
|
|
3
3
|
import { ComponentPropsWithRef } from "react";
|
|
4
|
-
//#region box/types.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Box 组件自有样式属性。
|
|
7
6
|
*/
|
|
@@ -20,5 +19,4 @@ export type BoxOwnProps = AtelierProps & {
|
|
|
20
19
|
*
|
|
21
20
|
* 使用 `interface` 扩展原生 div props,便于 Storybook Docgen 推断 Controls。
|
|
22
21
|
*/
|
|
23
|
-
export interface BoxProps extends ComponentPropsWithRef<'div'>, BoxOwnProps {}
|
|
24
|
-
//#endregion
|
|
22
|
+
export interface BoxProps extends ComponentPropsWithRef<'div'>, BoxOwnProps {}
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./types.js";
|
|
2
|
-
//#region button/Button.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* 通用按钮。
|
|
5
4
|
*/
|
|
6
|
-
export declare const Button: (props: ButtonProps) => import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare const Button: (props: ButtonProps) => import("react").JSX.Element;
|
package/dist/button/Button.js
CHANGED
|
@@ -3,7 +3,7 @@ import LoadingIcon from "./LoadingIcon.js";
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { hasValue, isNil } from "@omnific/utils";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// button/Button.tsx
|
|
7
7
|
/**
|
|
8
8
|
* 通用按钮。
|
|
9
9
|
*/
|
|
@@ -40,5 +40,4 @@ const Button = (props) => {
|
|
|
40
40
|
children: [iconNode, hasChildren && /* @__PURE__ */ jsx("span", { children })]
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Button };
|
|
@@ -4,7 +4,7 @@ import { useTransitionStatus } from "../transition/useTransitionStatus.js";
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { LoadingIcon } from "@omnific/icons";
|
|
7
|
-
|
|
7
|
+
// button/LoadingIcon.tsx
|
|
8
8
|
/**
|
|
9
9
|
* 渲染按钮内部的加载图标。
|
|
10
10
|
*/
|
|
@@ -41,5 +41,4 @@ const LoadingIcon$1 = (props) => {
|
|
|
41
41
|
children: /* @__PURE__ */ jsx(LoadingIcon, { size: "1em" })
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
//#endregion
|
|
45
44
|
export { LoadingIcon$1 as default };
|
package/dist/button/constants.js
CHANGED
package/dist/button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ButtonColor, ButtonProps, ButtonShape, ButtonVariant } from "./types.js";
|
|
2
1
|
import { Button } from "./Button.js";
|
|
2
|
+
import { ButtonColor, ButtonProps, ButtonShape, ButtonVariant } from "./types.js";
|
|
3
3
|
export { Button, type ButtonColor, type ButtonProps, type ButtonShape, type ButtonVariant };
|
package/dist/button/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentSize } from "../types.js";
|
|
2
2
|
import { CSSProperties, ComponentPropsWithRef, ReactNode } from "react";
|
|
3
|
-
//#region button/types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* 按钮颜色角色。
|
|
6
5
|
*/
|
|
@@ -49,5 +48,4 @@ export interface ButtonProps extends ComponentPropsWithRef<'button'> {
|
|
|
49
48
|
* 设置按钮形态。
|
|
50
49
|
*/
|
|
51
50
|
variant?: ButtonVariant;
|
|
52
|
-
}
|
|
53
|
-
//#endregion
|
|
51
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BoxProps } from "./box/types.js";
|
|
2
|
-
import { Box } from "./box/Box.js";
|
|
3
1
|
import "./box/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Box } from "./box/Box.js";
|
|
3
|
+
import { BoxProps } from "./box/types.js";
|
|
6
4
|
import "./button/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { Button } from "./button/Button.js";
|
|
6
|
+
import { ButtonProps } from "./button/types.js";
|
|
9
7
|
import "./transition/index.js";
|
|
8
|
+
import { useTransitionStatus } from "./transition/useTransitionStatus.js";
|
|
9
|
+
import { ENTERED, ENTERING, EXITED, EXITING, TransitionOptions, UNMOUNTED } from "./transition/types.js";
|
|
10
10
|
export { Box, type BoxProps, Button, type ButtonProps, ENTERED, ENTERING, EXITED, EXITING, type TransitionOptions, UNMOUNTED, useTransitionStatus };
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box } from "./box/Box.js";
|
|
2
|
+
import { Button } from "./button/Button.js";
|
|
2
3
|
import { ENTERED, ENTERING, EXITED, EXITING, UNMOUNTED } from "./transition/types.js";
|
|
3
4
|
import { useTransitionStatus } from "./transition/useTransitionStatus.js";
|
|
4
|
-
import { Button } from "./button/Button.js";
|
|
5
5
|
export { Box, Button, ENTERED, ENTERING, EXITED, EXITING, UNMOUNTED, useTransitionStatus };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/display.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier display 的静态值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const displayValues: readonly ["none", "inline", "inline-block",
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier display 值。
|
|
8
7
|
*/
|
|
9
|
-
export type DisplayValue = (typeof displayValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type DisplayValue = (typeof displayValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/flex.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier flex-basis 的静态值。
|
|
4
3
|
*/
|
|
@@ -54,5 +53,4 @@ export declare const alignContentValues: readonly ["start", "center", "end", "sp
|
|
|
54
53
|
/**
|
|
55
54
|
* Atelier align-content 值。
|
|
56
55
|
*/
|
|
57
|
-
export type AlignContentValue = (typeof alignContentValues)[number];
|
|
58
|
-
//#endregion
|
|
56
|
+
export type AlignContentValue = (typeof alignContentValues)[number];
|
package/dist/props/flex.props.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// props/flex.props.ts
|
|
2
2
|
/**
|
|
3
3
|
* Atelier flex-basis 的静态值。
|
|
4
4
|
*/
|
|
@@ -68,5 +68,4 @@ const alignContentValues = [
|
|
|
68
68
|
"space-evenly",
|
|
69
69
|
"stretch"
|
|
70
70
|
];
|
|
71
|
-
//#endregion
|
|
72
71
|
export { alignContentValues, alignValues, flexBasisValues, flexDirectionValues, flexGrowValues, flexShrinkValues, flexWrapValues };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/gap.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier gap 的静态刻度。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const gapValues: readonly ["0", "1", "2", "3", "4", "5", "6", "7"
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier gap、column-gap 与 row-gap 值。
|
|
8
7
|
*/
|
|
9
|
-
export type GapValue = (typeof gapValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type GapValue = (typeof gapValues)[number];
|
package/dist/props/gap.props.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/height.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier height 的静态刻度、百分比、视口单位与关键字值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const heightValues: readonly ["0", "1", "2", "3", "4", "5", "6",
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier height 值。
|
|
8
7
|
*/
|
|
9
|
-
export type HeightValue = (typeof heightValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type HeightValue = (typeof heightValues)[number];
|
package/dist/props/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { ShadowValue } from "./shadow.props.js";
|
|
|
12
12
|
import { WidthValue } from "./width.props.js";
|
|
13
13
|
import { DefaultColorKey } from "../system/defaults/color-keys.gen.js";
|
|
14
14
|
import { CSSProperties } from "react";
|
|
15
|
-
//#region props/index.d.ts
|
|
16
15
|
/**
|
|
17
16
|
* Atelier class 类型 props。
|
|
18
17
|
*/
|
|
@@ -91,5 +90,4 @@ export declare const atelierStyleMaps: {
|
|
|
91
90
|
background: string;
|
|
92
91
|
};
|
|
93
92
|
borderColor: (value: string) => CSSProperties;
|
|
94
|
-
};
|
|
95
|
-
//#endregion
|
|
93
|
+
};
|
package/dist/props/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getPrefixCls } from "../utils/getPrefixCls.js";
|
|
2
1
|
import { displayValues } from "./display.props.js";
|
|
3
2
|
import { alignContentValues, alignValues, flexBasisValues, flexDirectionValues, flexGrowValues, flexShrinkValues, flexWrapValues } from "./flex.props.js";
|
|
4
3
|
import { gapValues } from "./gap.props.js";
|
|
@@ -12,8 +11,9 @@ import { radiusValues } from "./radius.props.js";
|
|
|
12
11
|
import { shadowValues } from "./shadow.props.js";
|
|
13
12
|
import { widthValues } from "./width.props.js";
|
|
14
13
|
import { toColorVarName } from "../system/css-vars.js";
|
|
14
|
+
import { getPrefixCls } from "../utils/getPrefixCls.js";
|
|
15
15
|
import { hasValue, isNil, kebabCase } from "@omnific/utils";
|
|
16
|
-
|
|
16
|
+
// props/index.ts
|
|
17
17
|
const parseSizingValue = (value) => value.endsWith("%") ? value.slice(0, -1) : value;
|
|
18
18
|
/**
|
|
19
19
|
* Atelier class props 的静态配置:只声明值域与命名规则,不预先展开成 class 名。
|
|
@@ -154,5 +154,4 @@ const atelierStyleMaps = {
|
|
|
154
154
|
bg: (value) => ({ background: `var(${toColorVarName(value)})` }),
|
|
155
155
|
borderColor: (value) => ({ "--color-border": `var(${toColorVarName(value)})` })
|
|
156
156
|
};
|
|
157
|
-
//#endregion
|
|
158
157
|
export { atelierStyleMaps, getAtelierClassName };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/justify.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier justify-items 的静态值。
|
|
4
3
|
*/
|
|
@@ -30,5 +29,4 @@ export declare const placeItemsValues: readonly ["start", "center", "end", "stre
|
|
|
30
29
|
/**
|
|
31
30
|
* Atelier place-items 值。
|
|
32
31
|
*/
|
|
33
|
-
export type PlaceItemsValue = (typeof placeItemsValues)[number];
|
|
34
|
-
//#endregion
|
|
32
|
+
export type PlaceItemsValue = (typeof placeItemsValues)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// props/justify.props.ts
|
|
2
2
|
/**
|
|
3
3
|
* Atelier justify-items 的静态值。
|
|
4
4
|
*/
|
|
@@ -39,5 +39,4 @@ const placeItemsValues = [
|
|
|
39
39
|
"end",
|
|
40
40
|
"stretch"
|
|
41
41
|
];
|
|
42
|
-
//#endregion
|
|
43
42
|
export { contentDistributionValues, justifyItemsValues, justifySelfValues, placeItemsValues };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/margin.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier margin 的静态刻度,包含负值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const marginValues: readonly ["0", "1", "2", "3", "4", "5", "6",
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier margin 值。
|
|
8
7
|
*/
|
|
9
|
-
export type MarginValue = (typeof marginValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type MarginValue = (typeof marginValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/overflow.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier overflow 的静态值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const overflowValues: readonly ["visible", "hidden", "clip", "scr
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier overflow 值。
|
|
8
7
|
*/
|
|
9
|
-
export type OverflowValue = (typeof overflowValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type OverflowValue = (typeof overflowValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/padding.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier padding 的静态刻度。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const paddingValues: readonly ["0", "1", "2", "3", "4", "5", "6",
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier padding 值。
|
|
8
7
|
*/
|
|
9
|
-
export type PaddingValue = (typeof paddingValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type PaddingValue = (typeof paddingValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/position.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier position 的静态值。
|
|
4
3
|
*/
|
|
@@ -14,5 +13,4 @@ export declare const positionEdgeValues: readonly ["0", "1", "2", "3", "4", "5",
|
|
|
14
13
|
/**
|
|
15
14
|
* Atelier inset / top / right / bottom / left 值。
|
|
16
15
|
*/
|
|
17
|
-
export type PositionEdgeValue = (typeof positionEdgeValues)[number];
|
|
18
|
-
//#endregion
|
|
16
|
+
export type PositionEdgeValue = (typeof positionEdgeValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/radius.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier radius 的静态值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const radiusValues: readonly ["none", "2xs", "xs", "sm", "md", "l
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier radius 值。
|
|
8
7
|
*/
|
|
9
|
-
export type RadiusValue = (typeof radiusValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type RadiusValue = (typeof radiusValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/scaling.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier 结构缩放的静态值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const scalingValues: readonly ["90%", "95%", "100%", "105%", "110
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier 结构缩放值。
|
|
8
7
|
*/
|
|
9
|
-
export type ScalingValue = (typeof scalingValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type ScalingValue = (typeof scalingValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/shadow.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier shadow 的静态值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const shadowValues: readonly ["xs", "sm", "md", "lg", "xl", "2xl"
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier shadow 值。
|
|
8
7
|
*/
|
|
9
|
-
export type ShadowValue = (typeof shadowValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type ShadowValue = (typeof shadowValues)[number];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region props/width.props.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Atelier width 的静态刻度、百分比与关键字值。
|
|
4
3
|
*/
|
|
@@ -6,5 +5,4 @@ export declare const widthValues: readonly ["0", "1", "2", "3", "4", "5", "6", "
|
|
|
6
5
|
/**
|
|
7
6
|
* Atelier width 值。
|
|
8
7
|
*/
|
|
9
|
-
export type WidthValue = (typeof widthValues)[number];
|
|
10
|
-
//#endregion
|
|
8
|
+
export type WidthValue = (typeof widthValues)[number];
|