@veltra/styles 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/theme/component-css-vars.js +1 -1
- package/dist/theme/helper.d.ts +0 -1
- package/dist/theme/load-theme.d.ts +0 -1
- package/dist/theme/presets/dark.d.ts +1 -0
- package/dist/theme/presets/glass.d.ts +1 -0
- package/dist/theme/presets/hero.d.ts +1 -0
- package/dist/theme/presets/light.d.ts +0 -1
- package/dist/theme/presets/shadcn.d.ts +1 -0
- package/dist/theme/type.d.ts +142 -64
- package/dist/theme/ui-theme.d.ts +1 -2
- package/package.json +4 -4
|
@@ -164,6 +164,6 @@ function recordToDeclList(record) {
|
|
|
164
164
|
const componentCssVarsLightDecls = recordToDeclList(componentCssVarsLight);
|
|
165
165
|
const componentCssVarsDarkDecls = recordToDeclList(componentCssVarsDark);
|
|
166
166
|
//#endregion
|
|
167
|
-
export { componentCssVarsDarkDecls, componentCssVarsLightDecls };
|
|
167
|
+
export { componentCssVarsDark, componentCssVarsDarkDecls, componentCssVarsLight, componentCssVarsLightDecls, themeTokenVar };
|
|
168
168
|
|
|
169
169
|
//# sourceMappingURL=component-css-vars.js.map
|
package/dist/theme/helper.d.ts
CHANGED
package/dist/theme/type.d.ts
CHANGED
|
@@ -5,103 +5,181 @@
|
|
|
5
5
|
type RGBColor = [number, number, number];
|
|
6
6
|
/** 仅含全局 token;组件级 `--u-*` 由 `theme/component-css-vars.ts` 随 `loadTheme` 注入 */
|
|
7
7
|
type Theme = {
|
|
8
|
-
/** 主题色 */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
/** 主题色 */
|
|
9
|
+
color: {
|
|
10
|
+
/** 主要颜色 */
|
|
11
|
+
primary: string;
|
|
12
|
+
/** 成功颜色 */
|
|
13
|
+
success: string;
|
|
14
|
+
/** 警告颜色 */
|
|
15
|
+
warning: string;
|
|
16
|
+
/** 危险颜色 */
|
|
17
|
+
danger: string;
|
|
18
|
+
/** 信息颜色 */
|
|
19
|
+
info: string;
|
|
20
|
+
/** 禁用颜色 */
|
|
21
|
+
disabled: string;
|
|
22
|
+
/** 默认颜色 */
|
|
15
23
|
default: string;
|
|
16
|
-
};
|
|
24
|
+
};
|
|
25
|
+
/** 背景 */
|
|
17
26
|
bg: {
|
|
18
|
-
/** 背景色 */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
/** 背景色 */
|
|
28
|
+
color: {
|
|
29
|
+
/** 底部背景色 */
|
|
30
|
+
bottom: string;
|
|
31
|
+
/** 中部背景色 */
|
|
32
|
+
middle: string;
|
|
33
|
+
/** 顶部背景色 */
|
|
34
|
+
top: string;
|
|
35
|
+
/** 悬停背景色 */
|
|
36
|
+
hover: string;
|
|
37
|
+
/** 黑色背景 */
|
|
23
38
|
black: string;
|
|
24
39
|
};
|
|
25
40
|
filter: {
|
|
26
|
-
/** 背景模糊 */
|
|
41
|
+
/** 背景模糊 */
|
|
42
|
+
blur: string;
|
|
43
|
+
/** 背景饱和度 */
|
|
27
44
|
saturate: string;
|
|
28
45
|
};
|
|
29
46
|
};
|
|
30
47
|
border: {
|
|
31
|
-
/** 边框颜色(结构性,始终可见) */
|
|
32
|
-
|
|
33
|
-
|
|
48
|
+
/** 边框颜色(结构性,始终可见) */
|
|
49
|
+
color: string;
|
|
50
|
+
/** 弱化边框颜色(表单类组件用) */
|
|
51
|
+
mutedColor: string;
|
|
52
|
+
/** 边框宽度 */
|
|
53
|
+
width: number;
|
|
54
|
+
/** 边框样式 */
|
|
34
55
|
style: string;
|
|
35
|
-
};
|
|
56
|
+
};
|
|
57
|
+
/** 文字色 */
|
|
36
58
|
'text-color': {
|
|
37
|
-
/** 标题文字颜色 */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
59
|
+
/** 标题文字颜色 */
|
|
60
|
+
title: string;
|
|
61
|
+
/** 主要文字颜色 */
|
|
62
|
+
main: string;
|
|
63
|
+
/** 占位符文字颜色 */
|
|
64
|
+
placeholder: string;
|
|
65
|
+
/** 次要文字颜色 */
|
|
66
|
+
second: string;
|
|
67
|
+
/** 辅助文字颜色 */
|
|
68
|
+
assist: string;
|
|
69
|
+
/** 禁用文字颜色 */
|
|
70
|
+
disabled: string;
|
|
71
|
+
/** 白色文字 */
|
|
43
72
|
white: string;
|
|
44
|
-
};
|
|
73
|
+
};
|
|
74
|
+
/** 圆角大小 */
|
|
45
75
|
radius: {
|
|
46
|
-
/** 小圆角 */
|
|
47
|
-
|
|
76
|
+
/** 小圆角 */
|
|
77
|
+
small: number;
|
|
78
|
+
/** 默认圆角 */
|
|
79
|
+
default: number;
|
|
80
|
+
/** 大圆角 */
|
|
48
81
|
large: number;
|
|
49
|
-
};
|
|
82
|
+
};
|
|
83
|
+
/** 表单组件高度 */
|
|
50
84
|
'form-component-height': {
|
|
51
|
-
/** 小尺寸表单组件高度 */
|
|
52
|
-
|
|
85
|
+
/** 小尺寸表单组件高度 */
|
|
86
|
+
small: number;
|
|
87
|
+
/** 默认尺寸表单组件高度 */
|
|
88
|
+
default: number;
|
|
89
|
+
/** 大尺寸表单组件高度 */
|
|
53
90
|
large: number;
|
|
54
|
-
};
|
|
55
|
-
|
|
91
|
+
};
|
|
92
|
+
/** 字体族 */
|
|
93
|
+
'font-family': string;
|
|
94
|
+
/** 标题字体大小 */
|
|
56
95
|
'font-size-title': {
|
|
57
|
-
/** 小尺寸标题字体 */
|
|
58
|
-
|
|
96
|
+
/** 小尺寸标题字体 */
|
|
97
|
+
small: number;
|
|
98
|
+
/** 默认尺寸标题字体 */
|
|
99
|
+
default: number;
|
|
100
|
+
/** 大尺寸标题字体 */
|
|
59
101
|
large: number;
|
|
60
|
-
};
|
|
102
|
+
};
|
|
103
|
+
/** 正文字体大小 */
|
|
61
104
|
'font-size-main': {
|
|
62
|
-
/** 小尺寸正文字体 */
|
|
63
|
-
|
|
105
|
+
/** 小尺寸正文字体 */
|
|
106
|
+
small: number;
|
|
107
|
+
/** 默认尺寸正文字体 */
|
|
108
|
+
default: number;
|
|
109
|
+
/** 大尺寸正文字体 */
|
|
64
110
|
large: number;
|
|
65
|
-
};
|
|
111
|
+
};
|
|
112
|
+
/** 辅助文字字体大小 */
|
|
66
113
|
'font-size-assist': {
|
|
67
|
-
/** 小尺寸辅助文字字体 */
|
|
68
|
-
|
|
114
|
+
/** 小尺寸辅助文字字体 */
|
|
115
|
+
small: number;
|
|
116
|
+
/** 默认尺寸辅助文字字体 */
|
|
117
|
+
default: number;
|
|
118
|
+
/** 大尺寸辅助文字字体 */
|
|
69
119
|
large: number;
|
|
70
|
-
};
|
|
120
|
+
};
|
|
121
|
+
/** 阴影 */
|
|
71
122
|
shadow: {
|
|
72
|
-
/** 阴影颜色 */
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
123
|
+
/** 阴影颜色 */
|
|
124
|
+
color: string;
|
|
125
|
+
/** 阴影水平偏移 */
|
|
126
|
+
x: number;
|
|
127
|
+
/** 阴影垂直偏移 */
|
|
128
|
+
y: number;
|
|
129
|
+
/** 阴影模糊半径 */
|
|
130
|
+
blur: number;
|
|
131
|
+
/** 阴影扩散半径 */
|
|
132
|
+
spread: number;
|
|
133
|
+
/** 浮雕阴影:非浮雕主题为 'none',浮雕主题为完整 box-shadow 值 */
|
|
134
|
+
emboss: string;
|
|
135
|
+
/** 低层级阴影(卡片等贴面元素),完整 box-shadow 值 */
|
|
136
|
+
sm: string;
|
|
137
|
+
/** 高层级阴影(弹窗、下拉等浮层),完整 box-shadow 值 */
|
|
79
138
|
lg: string;
|
|
80
|
-
};
|
|
139
|
+
};
|
|
140
|
+
/** 动效:时长与缓动(值须带单位或为合法 CSS 字符串,数字会被补 px) */
|
|
81
141
|
transition: {
|
|
82
|
-
/** 快速过渡时长(微交互:hover、焦点) */
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
142
|
+
/** 快速过渡时长(微交互:hover、焦点) */
|
|
143
|
+
fast: string;
|
|
144
|
+
/** 常规过渡时长 */
|
|
145
|
+
normal: string;
|
|
146
|
+
/** 慢速过渡时长(浮层进出、展开收起) */
|
|
147
|
+
slow: string;
|
|
148
|
+
/** 标准缓动曲线 */
|
|
149
|
+
ease: string;
|
|
150
|
+
/** 入场缓动曲线 */
|
|
86
151
|
easeOut: string;
|
|
87
|
-
};
|
|
152
|
+
};
|
|
153
|
+
/** 间距 */
|
|
88
154
|
gap: {
|
|
89
|
-
/** 小间距 */
|
|
90
|
-
|
|
155
|
+
/** 小间距 */
|
|
156
|
+
small: number;
|
|
157
|
+
/** 默认间距 */
|
|
158
|
+
default: number;
|
|
159
|
+
/** 大间距 */
|
|
91
160
|
large: number;
|
|
92
|
-
};
|
|
161
|
+
};
|
|
162
|
+
/** 断点 */
|
|
93
163
|
breakpoint: {
|
|
94
|
-
/** 超小屏幕断点 */
|
|
95
|
-
|
|
96
|
-
|
|
164
|
+
/** 超小屏幕断点 */
|
|
165
|
+
xs: number;
|
|
166
|
+
/** 小屏幕断点 */
|
|
167
|
+
sm: number;
|
|
168
|
+
/** 中等屏幕断点 */
|
|
169
|
+
md: number;
|
|
170
|
+
/** 大屏幕断点 */
|
|
97
171
|
lg: number;
|
|
98
|
-
};
|
|
172
|
+
};
|
|
173
|
+
/** 按钮组件级变量 */
|
|
99
174
|
button?: {
|
|
100
|
-
/** 默认按钮背景色 */
|
|
175
|
+
/** 默认按钮背景色 */
|
|
176
|
+
'default-bg'?: string;
|
|
101
177
|
[key: string]: any;
|
|
102
|
-
};
|
|
178
|
+
};
|
|
179
|
+
/** 折叠面板组件级变量 */
|
|
103
180
|
collapse?: {
|
|
104
|
-
/** 折叠项标题文字颜色 */
|
|
181
|
+
/** 折叠项标题文字颜色 */
|
|
182
|
+
'title-color'?: string;
|
|
105
183
|
[key: string]: any;
|
|
106
184
|
};
|
|
107
185
|
[key: string]: any;
|
package/dist/theme/ui-theme.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Theme } from "./type.js";
|
|
2
|
-
|
|
3
2
|
//#region src/theme/ui-theme.d.ts
|
|
4
|
-
type RecursivePartial<T> = { [P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> : T[P] };
|
|
3
|
+
type RecursivePartial<T> = { [P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> : T[P]; };
|
|
5
4
|
declare class UITheme {
|
|
6
5
|
static themeID: string;
|
|
7
6
|
private static adoptedSheet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltra/styles",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"src"
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@cat-kit/core": ">=1.1.8",
|
|
39
|
-
"@veltra/compositions": "1.3.
|
|
40
|
-
"@veltra/utils": "1.3.
|
|
41
|
-
"vue": ">=3.5.
|
|
39
|
+
"@veltra/compositions": "1.3.3",
|
|
40
|
+
"@veltra/utils": "1.3.3",
|
|
41
|
+
"vue": ">=3.5.40"
|
|
42
42
|
}
|
|
43
43
|
}
|