@kingsoft-ai/design 0.1.18 → 0.2.6
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/index.cjs +3150 -2478
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7211 -7849
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/DesignThemeProvider.d.ts +25 -20
- package/dist/types/button/Button.d.ts +4 -19
- package/dist/types/button/Button.style.d.ts +4 -35
- package/dist/types/button/IconButton.d.ts +4 -5
- package/dist/types/button/IconButton.style.d.ts +4 -7
- package/dist/types/button/styled-tokens.d.ts +582 -0
- package/dist/types/button/tokens.d.ts +1 -1
- package/dist/types/button/tokens.types.d.ts +190 -0
- package/dist/types/card/Card.d.ts +0 -6
- package/dist/types/card/Card.style.d.ts +4 -7
- package/dist/types/card/styled-tokens.d.ts +130 -0
- package/dist/types/card/tokens.d.ts +1 -1
- package/dist/types/card/tokens.types.d.ts +48 -0
- package/dist/types/checkbox/Checkbox.d.ts +0 -7
- package/dist/types/checkbox/Checkbox.style.d.ts +29 -7
- package/dist/types/checkbox/CheckboxButton.d.ts +0 -16
- package/dist/types/checkbox/CheckboxButton.style.d.ts +24 -12
- package/dist/types/checkbox/styled-tokens.d.ts +122 -0
- package/dist/types/checkbox/tokens.d.ts +1 -1
- package/dist/types/checkbox/tokens.types.d.ts +39 -0
- package/dist/types/collapse/Collapse.d.ts +2 -34
- package/dist/types/collapse/Collapse.style.d.ts +4 -43
- package/dist/types/collapse/styled-tokens.d.ts +77 -0
- package/dist/types/collapse/tokens.d.ts +1 -1
- package/dist/types/collapse/tokens.types.d.ts +28 -0
- package/dist/types/context/ThemeContext.d.ts +24 -0
- package/dist/types/context/index.d.ts +2 -0
- package/dist/types/floatButton/FloatButton.d.ts +0 -21
- package/dist/types/floatButton/FloatButton.style.d.ts +0 -31
- package/dist/types/floatButton/styled-tokens.d.ts +127 -0
- package/dist/types/floatButton/tokens.d.ts +1 -1
- package/dist/types/floatButton/tokens.types.d.ts +66 -0
- package/dist/types/index.d.ts +5 -4
- package/dist/types/input/Input.d.ts +4 -22
- package/dist/types/input/Input.style.d.ts +4 -48
- package/dist/types/input/styled-tokens.d.ts +147 -0
- package/dist/types/input/tokens.d.ts +1 -1
- package/dist/types/input/tokens.types.d.ts +46 -0
- package/dist/types/link/Link.d.ts +4 -0
- package/dist/types/link/Link.style.d.ts +4 -10
- package/dist/types/link/styled-tokens.d.ts +107 -0
- package/dist/types/link/tokens.d.ts +1 -1
- package/dist/types/link/tokens.types.d.ts +39 -0
- package/dist/types/menu/Menu.d.ts +0 -25
- package/dist/types/menu/Menu.style.d.ts +4 -43
- package/dist/types/menu/MenuItem.d.ts +0 -6
- package/dist/types/menu/styled-tokens.d.ts +217 -0
- package/dist/types/menu/tokens.d.ts +1 -1
- package/dist/types/menu/tokens.types.d.ts +79 -0
- package/dist/types/modal/Modal.d.ts +0 -8
- package/dist/types/modal/Modal.style.d.ts +4 -11
- package/dist/types/modal/styled-tokens.d.ts +370 -0
- package/dist/types/modal/tokens.d.ts +1 -1
- package/dist/types/modal/tokens.types.d.ts +107 -0
- package/dist/types/numberInput/NumberInput.d.ts +2 -22
- package/dist/types/numberInput/NumberInput.style.d.ts +4 -7
- package/dist/types/numberInput/styled-tokens.d.ts +192 -0
- package/dist/types/numberInput/tokens.d.ts +1 -1
- package/dist/types/numberInput/tokens.types.d.ts +65 -0
- package/dist/types/progress/Progress.d.ts +4 -27
- package/dist/types/progress/Progress.style.d.ts +4 -43
- package/dist/types/progress/styled-tokens.d.ts +137 -0
- package/dist/types/progress/tokens.d.ts +3 -0
- package/dist/types/progress/tokens.types.d.ts +52 -0
- package/dist/types/radio/Radio.d.ts +4 -0
- package/dist/types/radio/Radio.style.d.ts +9 -28
- package/dist/types/radio/styled-tokens.d.ts +122 -0
- package/dist/types/radio/tokens.d.ts +1 -1
- package/dist/types/radio/tokens.types.d.ts +41 -0
- package/dist/types/select/Select.style.d.ts +4 -7
- package/dist/types/select/styled-tokens.d.ts +237 -0
- package/dist/types/select/tokens.d.ts +1 -1
- package/dist/types/select/tokens.types.d.ts +72 -0
- package/dist/types/skeleton/Skeleton.style.d.ts +0 -25
- package/dist/types/skeleton/styled-tokens.d.ts +82 -0
- package/dist/types/skeleton/tokens.d.ts +1 -1
- package/dist/types/skeleton/tokens.types.d.ts +31 -0
- package/dist/types/slider/Slider.d.ts +74 -0
- package/dist/types/slider/Slider.style.d.ts +125 -0
- package/dist/types/slider/__tests__/Slider.test.d.ts +13 -0
- package/dist/types/slider/index.d.ts +2 -0
- package/dist/types/slider/styled-tokens.d.ts +252 -0
- package/dist/types/slider/tokens.d.ts +3 -0
- package/dist/types/slider/tokens.types.d.ts +121 -0
- package/dist/types/stepper/Stepper.d.ts +3 -0
- package/dist/types/stepper/Stepper.style.d.ts +4 -7
- package/dist/types/stepper/styled-tokens.d.ts +157 -0
- package/dist/types/stepper/tokens.d.ts +1 -1
- package/dist/types/stepper/tokens.types.d.ts +68 -0
- package/dist/types/switch/Switch.d.ts +4 -35
- package/dist/types/switch/Switch.style.d.ts +4 -56
- package/dist/types/switch/styled-tokens.d.ts +132 -0
- package/dist/types/switch/tokens.d.ts +1 -1
- package/dist/types/switch/tokens.types.d.ts +45 -0
- package/dist/types/table/Table.d.ts +2 -0
- package/dist/types/table/Table.style.d.ts +4 -7
- package/dist/types/table/styled-tokens.d.ts +182 -0
- package/dist/types/table/tokens.d.ts +3 -0
- package/dist/types/table/tokens.types.d.ts +43 -0
- package/dist/types/tag/Tag.d.ts +4 -36
- package/dist/types/tag/Tag.style.d.ts +5 -41
- package/dist/types/tag/styled-tokens.d.ts +140 -0
- package/dist/types/tag/tokens.d.ts +1 -1
- package/dist/types/tag/tokens.types.d.ts +76 -0
- package/dist/types/theme.d.ts +1 -2
- package/dist/types/tooltip/Tooltip.d.ts +0 -18
- package/dist/types/tooltip/Tooltip.style.d.ts +0 -19
- package/dist/types/tooltip/styled-tokens.d.ts +72 -0
- package/dist/types/tooltip/tokens.d.ts +1 -1
- package/dist/types/tooltip/tokens.types.d.ts +21 -0
- package/dist/types/transfer/Transfer.d.ts +0 -20
- package/dist/types/transfer/Transfer.style.d.ts +0 -10
- package/dist/types/transfer/styled-tokens.d.ts +252 -0
- package/dist/types/transfer/tokens.d.ts +1 -1
- package/dist/types/transfer/tokens.types.d.ts +79 -0
- package/dist/types/types/index.d.ts +64 -4
- package/dist/types/upload/Upload.d.ts +2 -21
- package/dist/types/upload/Upload.style.d.ts +4 -64
- package/dist/types/upload/styled-tokens.d.ts +227 -0
- package/dist/types/upload/tokens.d.ts +3 -0
- package/dist/types/upload/tokens.types.d.ts +66 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/styled-token.d.ts +117 -0
- package/package.json +14 -13
- package/dist/styles.css +0 -1
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button & IconButton Styled Tokens
|
|
3
|
+
*
|
|
4
|
+
* 将 Button/IconButton 的 JS tokens 与 CSS 变量映射,实现:
|
|
5
|
+
* - 有 ThemeProvider 时:使用 JS token 值(可被用户自定义)
|
|
6
|
+
* - 无 ThemeProvider 时:fallback 到 CSS 变量(基础样式)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Button 组件的 Styled Tokens
|
|
10
|
+
*/
|
|
11
|
+
export declare const $button: {
|
|
12
|
+
readonly primaryBg: (props: {
|
|
13
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
14
|
+
_useCSSVariables?: boolean;
|
|
15
|
+
};
|
|
16
|
+
}) => string;
|
|
17
|
+
readonly primaryBgHover: (props: {
|
|
18
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
19
|
+
_useCSSVariables?: boolean;
|
|
20
|
+
};
|
|
21
|
+
}) => string;
|
|
22
|
+
readonly primaryBgActive: (props: {
|
|
23
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
24
|
+
_useCSSVariables?: boolean;
|
|
25
|
+
};
|
|
26
|
+
}) => string;
|
|
27
|
+
readonly primaryText: (props: {
|
|
28
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
29
|
+
_useCSSVariables?: boolean;
|
|
30
|
+
};
|
|
31
|
+
}) => string;
|
|
32
|
+
readonly primaryBorder: (props: {
|
|
33
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
34
|
+
_useCSSVariables?: boolean;
|
|
35
|
+
};
|
|
36
|
+
}) => string;
|
|
37
|
+
readonly secondaryBg: (props: {
|
|
38
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
39
|
+
_useCSSVariables?: boolean;
|
|
40
|
+
};
|
|
41
|
+
}) => string;
|
|
42
|
+
readonly secondaryBgHover: (props: {
|
|
43
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
44
|
+
_useCSSVariables?: boolean;
|
|
45
|
+
};
|
|
46
|
+
}) => string;
|
|
47
|
+
readonly secondaryBgActive: (props: {
|
|
48
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
49
|
+
_useCSSVariables?: boolean;
|
|
50
|
+
};
|
|
51
|
+
}) => string;
|
|
52
|
+
readonly secondaryText: (props: {
|
|
53
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
54
|
+
_useCSSVariables?: boolean;
|
|
55
|
+
};
|
|
56
|
+
}) => string;
|
|
57
|
+
readonly secondaryBorder: (props: {
|
|
58
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
59
|
+
_useCSSVariables?: boolean;
|
|
60
|
+
};
|
|
61
|
+
}) => string;
|
|
62
|
+
readonly secondaryBorderHover: (props: {
|
|
63
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
64
|
+
_useCSSVariables?: boolean;
|
|
65
|
+
};
|
|
66
|
+
}) => string;
|
|
67
|
+
readonly secondaryBorderActive: (props: {
|
|
68
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
69
|
+
_useCSSVariables?: boolean;
|
|
70
|
+
};
|
|
71
|
+
}) => string;
|
|
72
|
+
readonly textBg: (props: {
|
|
73
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
74
|
+
_useCSSVariables?: boolean;
|
|
75
|
+
};
|
|
76
|
+
}) => string;
|
|
77
|
+
readonly textBgHover: (props: {
|
|
78
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
79
|
+
_useCSSVariables?: boolean;
|
|
80
|
+
};
|
|
81
|
+
}) => string;
|
|
82
|
+
readonly textBgActive: (props: {
|
|
83
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
84
|
+
_useCSSVariables?: boolean;
|
|
85
|
+
};
|
|
86
|
+
}) => string;
|
|
87
|
+
readonly textText: (props: {
|
|
88
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
89
|
+
_useCSSVariables?: boolean;
|
|
90
|
+
};
|
|
91
|
+
}) => string;
|
|
92
|
+
readonly textBorder: (props: {
|
|
93
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
94
|
+
_useCSSVariables?: boolean;
|
|
95
|
+
};
|
|
96
|
+
}) => string;
|
|
97
|
+
readonly dangerBg: (props: {
|
|
98
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
99
|
+
_useCSSVariables?: boolean;
|
|
100
|
+
};
|
|
101
|
+
}) => string;
|
|
102
|
+
readonly dangerBgHover: (props: {
|
|
103
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
104
|
+
_useCSSVariables?: boolean;
|
|
105
|
+
};
|
|
106
|
+
}) => string;
|
|
107
|
+
readonly dangerBgActive: (props: {
|
|
108
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
109
|
+
_useCSSVariables?: boolean;
|
|
110
|
+
};
|
|
111
|
+
}) => string;
|
|
112
|
+
readonly dangerText: (props: {
|
|
113
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
114
|
+
_useCSSVariables?: boolean;
|
|
115
|
+
};
|
|
116
|
+
}) => string;
|
|
117
|
+
readonly dangerBorder: (props: {
|
|
118
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
119
|
+
_useCSSVariables?: boolean;
|
|
120
|
+
};
|
|
121
|
+
}) => string;
|
|
122
|
+
readonly gradientFrom: (props: {
|
|
123
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
124
|
+
_useCSSVariables?: boolean;
|
|
125
|
+
};
|
|
126
|
+
}) => string;
|
|
127
|
+
readonly gradientTo: (props: {
|
|
128
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
129
|
+
_useCSSVariables?: boolean;
|
|
130
|
+
};
|
|
131
|
+
}) => string;
|
|
132
|
+
readonly gradientText: (props: {
|
|
133
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
134
|
+
_useCSSVariables?: boolean;
|
|
135
|
+
};
|
|
136
|
+
}) => string;
|
|
137
|
+
readonly disabledBg: (props: {
|
|
138
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
139
|
+
_useCSSVariables?: boolean;
|
|
140
|
+
};
|
|
141
|
+
}) => string;
|
|
142
|
+
readonly disabledText: (props: {
|
|
143
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
144
|
+
_useCSSVariables?: boolean;
|
|
145
|
+
};
|
|
146
|
+
}) => string;
|
|
147
|
+
readonly disabledOpacity: (props: {
|
|
148
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
149
|
+
_useCSSVariables?: boolean;
|
|
150
|
+
};
|
|
151
|
+
}) => string;
|
|
152
|
+
readonly smHeight: (props: {
|
|
153
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
154
|
+
_useCSSVariables?: boolean;
|
|
155
|
+
};
|
|
156
|
+
}) => string;
|
|
157
|
+
readonly smFontSize: (props: {
|
|
158
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
159
|
+
_useCSSVariables?: boolean;
|
|
160
|
+
};
|
|
161
|
+
}) => string;
|
|
162
|
+
readonly smPaddingInline: (props: {
|
|
163
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
164
|
+
_useCSSVariables?: boolean;
|
|
165
|
+
};
|
|
166
|
+
}) => string;
|
|
167
|
+
readonly smIconSize: (props: {
|
|
168
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
169
|
+
_useCSSVariables?: boolean;
|
|
170
|
+
};
|
|
171
|
+
}) => string;
|
|
172
|
+
readonly mdHeight: (props: {
|
|
173
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
174
|
+
_useCSSVariables?: boolean;
|
|
175
|
+
};
|
|
176
|
+
}) => string;
|
|
177
|
+
readonly mdFontSize: (props: {
|
|
178
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
179
|
+
_useCSSVariables?: boolean;
|
|
180
|
+
};
|
|
181
|
+
}) => string;
|
|
182
|
+
readonly mdPaddingInline: (props: {
|
|
183
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
184
|
+
_useCSSVariables?: boolean;
|
|
185
|
+
};
|
|
186
|
+
}) => string;
|
|
187
|
+
readonly mdIconSize: (props: {
|
|
188
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
189
|
+
_useCSSVariables?: boolean;
|
|
190
|
+
};
|
|
191
|
+
}) => string;
|
|
192
|
+
readonly lgHeight: (props: {
|
|
193
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
194
|
+
_useCSSVariables?: boolean;
|
|
195
|
+
};
|
|
196
|
+
}) => string;
|
|
197
|
+
readonly lgFontSize: (props: {
|
|
198
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
199
|
+
_useCSSVariables?: boolean;
|
|
200
|
+
};
|
|
201
|
+
}) => string;
|
|
202
|
+
readonly lgPaddingInline: (props: {
|
|
203
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
204
|
+
_useCSSVariables?: boolean;
|
|
205
|
+
};
|
|
206
|
+
}) => string;
|
|
207
|
+
readonly lgIconSize: (props: {
|
|
208
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
209
|
+
_useCSSVariables?: boolean;
|
|
210
|
+
};
|
|
211
|
+
}) => string;
|
|
212
|
+
readonly borderRadius: (props: {
|
|
213
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
214
|
+
_useCSSVariables?: boolean;
|
|
215
|
+
};
|
|
216
|
+
}) => string;
|
|
217
|
+
readonly fontWeight: (props: {
|
|
218
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
219
|
+
_useCSSVariables?: boolean;
|
|
220
|
+
};
|
|
221
|
+
}) => string;
|
|
222
|
+
readonly gap: (props: {
|
|
223
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
224
|
+
_useCSSVariables?: boolean;
|
|
225
|
+
};
|
|
226
|
+
}) => string;
|
|
227
|
+
readonly transition: (props: {
|
|
228
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
229
|
+
_useCSSVariables?: boolean;
|
|
230
|
+
};
|
|
231
|
+
}) => string;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* IconButton 组件的 Styled Tokens
|
|
235
|
+
*/
|
|
236
|
+
export declare const $iconButton: {
|
|
237
|
+
readonly solidPrimaryBg: (props: {
|
|
238
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
239
|
+
_useCSSVariables?: boolean;
|
|
240
|
+
};
|
|
241
|
+
}) => string;
|
|
242
|
+
readonly solidPrimaryBgHover: (props: {
|
|
243
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
244
|
+
_useCSSVariables?: boolean;
|
|
245
|
+
};
|
|
246
|
+
}) => string;
|
|
247
|
+
readonly solidPrimaryBgActive: (props: {
|
|
248
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
249
|
+
_useCSSVariables?: boolean;
|
|
250
|
+
};
|
|
251
|
+
}) => string;
|
|
252
|
+
readonly solidPrimaryBorder: (props: {
|
|
253
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
254
|
+
_useCSSVariables?: boolean;
|
|
255
|
+
};
|
|
256
|
+
}) => string;
|
|
257
|
+
readonly solidPrimaryIcon: (props: {
|
|
258
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
259
|
+
_useCSSVariables?: boolean;
|
|
260
|
+
};
|
|
261
|
+
}) => string;
|
|
262
|
+
readonly solidNeutralBg: (props: {
|
|
263
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
264
|
+
_useCSSVariables?: boolean;
|
|
265
|
+
};
|
|
266
|
+
}) => string;
|
|
267
|
+
readonly solidNeutralBgHover: (props: {
|
|
268
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
269
|
+
_useCSSVariables?: boolean;
|
|
270
|
+
};
|
|
271
|
+
}) => string;
|
|
272
|
+
readonly solidNeutralBgActive: (props: {
|
|
273
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
274
|
+
_useCSSVariables?: boolean;
|
|
275
|
+
};
|
|
276
|
+
}) => string;
|
|
277
|
+
readonly solidNeutralBorder: (props: {
|
|
278
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
279
|
+
_useCSSVariables?: boolean;
|
|
280
|
+
};
|
|
281
|
+
}) => string;
|
|
282
|
+
readonly solidNeutralIcon: (props: {
|
|
283
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
284
|
+
_useCSSVariables?: boolean;
|
|
285
|
+
};
|
|
286
|
+
}) => string;
|
|
287
|
+
readonly solidDangerBg: (props: {
|
|
288
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
289
|
+
_useCSSVariables?: boolean;
|
|
290
|
+
};
|
|
291
|
+
}) => string;
|
|
292
|
+
readonly solidDangerBgHover: (props: {
|
|
293
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
294
|
+
_useCSSVariables?: boolean;
|
|
295
|
+
};
|
|
296
|
+
}) => string;
|
|
297
|
+
readonly solidDangerBgActive: (props: {
|
|
298
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
299
|
+
_useCSSVariables?: boolean;
|
|
300
|
+
};
|
|
301
|
+
}) => string;
|
|
302
|
+
readonly solidDangerBorder: (props: {
|
|
303
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
304
|
+
_useCSSVariables?: boolean;
|
|
305
|
+
};
|
|
306
|
+
}) => string;
|
|
307
|
+
readonly solidDangerIcon: (props: {
|
|
308
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
309
|
+
_useCSSVariables?: boolean;
|
|
310
|
+
};
|
|
311
|
+
}) => string;
|
|
312
|
+
readonly outlinePrimaryBg: (props: {
|
|
313
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
314
|
+
_useCSSVariables?: boolean;
|
|
315
|
+
};
|
|
316
|
+
}) => string;
|
|
317
|
+
readonly outlinePrimaryBgHover: (props: {
|
|
318
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
319
|
+
_useCSSVariables?: boolean;
|
|
320
|
+
};
|
|
321
|
+
}) => string;
|
|
322
|
+
readonly outlinePrimaryBgActive: (props: {
|
|
323
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
324
|
+
_useCSSVariables?: boolean;
|
|
325
|
+
};
|
|
326
|
+
}) => string;
|
|
327
|
+
readonly outlinePrimaryBorder: (props: {
|
|
328
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
329
|
+
_useCSSVariables?: boolean;
|
|
330
|
+
};
|
|
331
|
+
}) => string;
|
|
332
|
+
readonly outlinePrimaryIcon: (props: {
|
|
333
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
334
|
+
_useCSSVariables?: boolean;
|
|
335
|
+
};
|
|
336
|
+
}) => string;
|
|
337
|
+
readonly outlinePrimaryIconHover: (props: {
|
|
338
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
339
|
+
_useCSSVariables?: boolean;
|
|
340
|
+
};
|
|
341
|
+
}) => string;
|
|
342
|
+
readonly outlinePrimaryIconActive: (props: {
|
|
343
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
344
|
+
_useCSSVariables?: boolean;
|
|
345
|
+
};
|
|
346
|
+
}) => string;
|
|
347
|
+
readonly outlineNeutralBg: (props: {
|
|
348
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
349
|
+
_useCSSVariables?: boolean;
|
|
350
|
+
};
|
|
351
|
+
}) => string;
|
|
352
|
+
readonly outlineNeutralBgHover: (props: {
|
|
353
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
354
|
+
_useCSSVariables?: boolean;
|
|
355
|
+
};
|
|
356
|
+
}) => string;
|
|
357
|
+
readonly outlineNeutralBgActive: (props: {
|
|
358
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
359
|
+
_useCSSVariables?: boolean;
|
|
360
|
+
};
|
|
361
|
+
}) => string;
|
|
362
|
+
readonly outlineNeutralBorder: (props: {
|
|
363
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
364
|
+
_useCSSVariables?: boolean;
|
|
365
|
+
};
|
|
366
|
+
}) => string;
|
|
367
|
+
readonly outlineNeutralBorderHover: (props: {
|
|
368
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
369
|
+
_useCSSVariables?: boolean;
|
|
370
|
+
};
|
|
371
|
+
}) => string;
|
|
372
|
+
readonly outlineNeutralIcon: (props: {
|
|
373
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
374
|
+
_useCSSVariables?: boolean;
|
|
375
|
+
};
|
|
376
|
+
}) => string;
|
|
377
|
+
readonly outlineDangerBg: (props: {
|
|
378
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
379
|
+
_useCSSVariables?: boolean;
|
|
380
|
+
};
|
|
381
|
+
}) => string;
|
|
382
|
+
readonly outlineDangerBgHover: (props: {
|
|
383
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
384
|
+
_useCSSVariables?: boolean;
|
|
385
|
+
};
|
|
386
|
+
}) => string;
|
|
387
|
+
readonly outlineDangerBgActive: (props: {
|
|
388
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
389
|
+
_useCSSVariables?: boolean;
|
|
390
|
+
};
|
|
391
|
+
}) => string;
|
|
392
|
+
readonly outlineDangerBorder: (props: {
|
|
393
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
394
|
+
_useCSSVariables?: boolean;
|
|
395
|
+
};
|
|
396
|
+
}) => string;
|
|
397
|
+
readonly outlineDangerIcon: (props: {
|
|
398
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
399
|
+
_useCSSVariables?: boolean;
|
|
400
|
+
};
|
|
401
|
+
}) => string;
|
|
402
|
+
readonly outlineDangerIconHover: (props: {
|
|
403
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
404
|
+
_useCSSVariables?: boolean;
|
|
405
|
+
};
|
|
406
|
+
}) => string;
|
|
407
|
+
readonly outlineDangerIconActive: (props: {
|
|
408
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
409
|
+
_useCSSVariables?: boolean;
|
|
410
|
+
};
|
|
411
|
+
}) => string;
|
|
412
|
+
readonly ghostPrimaryBg: (props: {
|
|
413
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
414
|
+
_useCSSVariables?: boolean;
|
|
415
|
+
};
|
|
416
|
+
}) => string;
|
|
417
|
+
readonly ghostPrimaryBgHover: (props: {
|
|
418
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
419
|
+
_useCSSVariables?: boolean;
|
|
420
|
+
};
|
|
421
|
+
}) => string;
|
|
422
|
+
readonly ghostPrimaryBgActive: (props: {
|
|
423
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
424
|
+
_useCSSVariables?: boolean;
|
|
425
|
+
};
|
|
426
|
+
}) => string;
|
|
427
|
+
readonly ghostPrimaryBorder: (props: {
|
|
428
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
429
|
+
_useCSSVariables?: boolean;
|
|
430
|
+
};
|
|
431
|
+
}) => string;
|
|
432
|
+
readonly ghostPrimaryIcon: (props: {
|
|
433
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
434
|
+
_useCSSVariables?: boolean;
|
|
435
|
+
};
|
|
436
|
+
}) => string;
|
|
437
|
+
readonly ghostPrimaryIconHover: (props: {
|
|
438
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
439
|
+
_useCSSVariables?: boolean;
|
|
440
|
+
};
|
|
441
|
+
}) => string;
|
|
442
|
+
readonly ghostPrimaryIconActive: (props: {
|
|
443
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
444
|
+
_useCSSVariables?: boolean;
|
|
445
|
+
};
|
|
446
|
+
}) => string;
|
|
447
|
+
readonly ghostNeutralBg: (props: {
|
|
448
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
449
|
+
_useCSSVariables?: boolean;
|
|
450
|
+
};
|
|
451
|
+
}) => string;
|
|
452
|
+
readonly ghostNeutralBgHover: (props: {
|
|
453
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
454
|
+
_useCSSVariables?: boolean;
|
|
455
|
+
};
|
|
456
|
+
}) => string;
|
|
457
|
+
readonly ghostNeutralBgActive: (props: {
|
|
458
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
459
|
+
_useCSSVariables?: boolean;
|
|
460
|
+
};
|
|
461
|
+
}) => string;
|
|
462
|
+
readonly ghostNeutralBorder: (props: {
|
|
463
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
464
|
+
_useCSSVariables?: boolean;
|
|
465
|
+
};
|
|
466
|
+
}) => string;
|
|
467
|
+
readonly ghostNeutralIcon: (props: {
|
|
468
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
469
|
+
_useCSSVariables?: boolean;
|
|
470
|
+
};
|
|
471
|
+
}) => string;
|
|
472
|
+
readonly ghostDangerBg: (props: {
|
|
473
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
474
|
+
_useCSSVariables?: boolean;
|
|
475
|
+
};
|
|
476
|
+
}) => string;
|
|
477
|
+
readonly ghostDangerBgHover: (props: {
|
|
478
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
479
|
+
_useCSSVariables?: boolean;
|
|
480
|
+
};
|
|
481
|
+
}) => string;
|
|
482
|
+
readonly ghostDangerBgActive: (props: {
|
|
483
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
484
|
+
_useCSSVariables?: boolean;
|
|
485
|
+
};
|
|
486
|
+
}) => string;
|
|
487
|
+
readonly ghostDangerBorder: (props: {
|
|
488
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
489
|
+
_useCSSVariables?: boolean;
|
|
490
|
+
};
|
|
491
|
+
}) => string;
|
|
492
|
+
readonly ghostDangerIcon: (props: {
|
|
493
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
494
|
+
_useCSSVariables?: boolean;
|
|
495
|
+
};
|
|
496
|
+
}) => string;
|
|
497
|
+
readonly ghostDangerIconHover: (props: {
|
|
498
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
499
|
+
_useCSSVariables?: boolean;
|
|
500
|
+
};
|
|
501
|
+
}) => string;
|
|
502
|
+
readonly ghostDangerIconActive: (props: {
|
|
503
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
504
|
+
_useCSSVariables?: boolean;
|
|
505
|
+
};
|
|
506
|
+
}) => string;
|
|
507
|
+
readonly disabledBg: (props: {
|
|
508
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
509
|
+
_useCSSVariables?: boolean;
|
|
510
|
+
};
|
|
511
|
+
}) => string;
|
|
512
|
+
readonly disabledBorder: (props: {
|
|
513
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
514
|
+
_useCSSVariables?: boolean;
|
|
515
|
+
};
|
|
516
|
+
}) => string;
|
|
517
|
+
readonly disabledIcon: (props: {
|
|
518
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
519
|
+
_useCSSVariables?: boolean;
|
|
520
|
+
};
|
|
521
|
+
}) => string;
|
|
522
|
+
readonly disabledOpacity: (props: {
|
|
523
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
524
|
+
_useCSSVariables?: boolean;
|
|
525
|
+
};
|
|
526
|
+
}) => string;
|
|
527
|
+
readonly smEdge: (props: {
|
|
528
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
529
|
+
_useCSSVariables?: boolean;
|
|
530
|
+
};
|
|
531
|
+
}) => string;
|
|
532
|
+
readonly smIconSize: (props: {
|
|
533
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
534
|
+
_useCSSVariables?: boolean;
|
|
535
|
+
};
|
|
536
|
+
}) => string;
|
|
537
|
+
readonly mdEdge: (props: {
|
|
538
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
539
|
+
_useCSSVariables?: boolean;
|
|
540
|
+
};
|
|
541
|
+
}) => string;
|
|
542
|
+
readonly mdIconSize: (props: {
|
|
543
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
544
|
+
_useCSSVariables?: boolean;
|
|
545
|
+
};
|
|
546
|
+
}) => string;
|
|
547
|
+
readonly lgEdge: (props: {
|
|
548
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
549
|
+
_useCSSVariables?: boolean;
|
|
550
|
+
};
|
|
551
|
+
}) => string;
|
|
552
|
+
readonly lgIconSize: (props: {
|
|
553
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
554
|
+
_useCSSVariables?: boolean;
|
|
555
|
+
};
|
|
556
|
+
}) => string;
|
|
557
|
+
readonly borderRadius: (props: {
|
|
558
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
559
|
+
_useCSSVariables?: boolean;
|
|
560
|
+
};
|
|
561
|
+
}) => string;
|
|
562
|
+
readonly transition: (props: {
|
|
563
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
564
|
+
_useCSSVariables?: boolean;
|
|
565
|
+
};
|
|
566
|
+
}) => string;
|
|
567
|
+
readonly focusRingColor: (props: {
|
|
568
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
569
|
+
_useCSSVariables?: boolean;
|
|
570
|
+
};
|
|
571
|
+
}) => string;
|
|
572
|
+
readonly focusRingOffset: (props: {
|
|
573
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
574
|
+
_useCSSVariables?: boolean;
|
|
575
|
+
};
|
|
576
|
+
}) => string;
|
|
577
|
+
readonly focusRingWidth: (props: {
|
|
578
|
+
theme?: import("@kingsoft-ai/theme").Theme & {
|
|
579
|
+
_useCSSVariables?: boolean;
|
|
580
|
+
};
|
|
581
|
+
}) => string;
|
|
582
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TokenGenerator } from '../types/theme-utils';
|
|
2
|
-
import { ButtonTokens, IconButtonTokens } from '
|
|
2
|
+
import { ButtonTokens, IconButtonTokens } from './tokens.types';
|
|
3
3
|
export declare const getButtonTokens: TokenGenerator<ButtonTokens>;
|
|
4
4
|
export declare const getIconButtonTokens: TokenGenerator<IconButtonTokens>;
|