@mrcaktuz/sds-tokens 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_tokens.scss +27 -0
- package/dist/index.cjs +426 -418
- package/dist/index.d.cts +681 -665
- package/dist/index.d.ts +681 -665
- package/dist/index.js +405 -373
- package/dist/tokens.css +10 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,337 +1,327 @@
|
|
|
1
|
-
declare const colors: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
readonly gray: {
|
|
3
|
+
readonly white: "#ffffff";
|
|
4
|
+
readonly lightest: "#f5f4f4";
|
|
5
|
+
readonly lighter: "#e3e3e3";
|
|
6
|
+
readonly light: "#cacaca";
|
|
7
|
+
readonly default: "#9a9a9a";
|
|
8
|
+
readonly dark: "#696969";
|
|
9
|
+
readonly darker: "#202020";
|
|
10
|
+
readonly darkest: "#141414";
|
|
11
|
+
};
|
|
12
|
+
readonly brand: {
|
|
13
|
+
readonly lightest: "#e4f0ff";
|
|
14
|
+
readonly lighter: "#99c5ff";
|
|
15
|
+
readonly light: "#004baf";
|
|
16
|
+
readonly default: "#003781";
|
|
17
|
+
readonly dark: "#00316f";
|
|
18
|
+
readonly darker: "#002a5c";
|
|
19
|
+
readonly darkest: "#001633";
|
|
20
|
+
};
|
|
21
|
+
readonly success: {
|
|
22
|
+
readonly lightest: "#ebfaf1";
|
|
23
|
+
readonly lighter: "#b2ddc8";
|
|
24
|
+
readonly light: "#4eb184";
|
|
25
|
+
readonly default: "#3a8362";
|
|
26
|
+
readonly dark: "#327155";
|
|
27
|
+
readonly darker: "#295b44";
|
|
28
|
+
readonly darkest: "#1c3b2e";
|
|
29
|
+
};
|
|
30
|
+
readonly warning: {
|
|
31
|
+
readonly lightest: "#fff2e8";
|
|
32
|
+
readonly lighter: "#fdd2a0";
|
|
33
|
+
readonly light: "#fdb35e";
|
|
34
|
+
readonly default: "#ff832b";
|
|
35
|
+
readonly dark: "#bd5b00";
|
|
36
|
+
readonly darker: "#7a3e03";
|
|
37
|
+
readonly darkest: "#361b00";
|
|
38
|
+
};
|
|
39
|
+
readonly danger: {
|
|
40
|
+
readonly lightest: "#fff1f1";
|
|
41
|
+
readonly lighter: "#f09e9e";
|
|
42
|
+
readonly light: "#e35656";
|
|
43
|
+
readonly default: "#d32222";
|
|
44
|
+
readonly dark: "#a10505";
|
|
45
|
+
readonly darker: "#730202";
|
|
46
|
+
readonly darkest: "#440101";
|
|
47
|
+
};
|
|
48
|
+
readonly visited: {
|
|
49
|
+
readonly lightest: "#f8e9fc";
|
|
50
|
+
readonly lighter: "#ecc2f7";
|
|
51
|
+
readonly light: "#d575eb";
|
|
52
|
+
readonly default: "#c029df";
|
|
53
|
+
readonly dark: "#8a17a1";
|
|
54
|
+
readonly darker: "#6d127e";
|
|
55
|
+
readonly darkest: "#310839";
|
|
56
|
+
};
|
|
57
57
|
};
|
|
58
|
-
type Colors = typeof colors;
|
|
59
|
-
type ColorGroup = keyof Colors;
|
|
60
|
-
type ColorShade<TGroup extends ColorGroup = ColorGroup> = keyof Colors[TGroup];
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
readonly
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
readonly
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
readonly
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
readonly
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
readonly
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
readonly
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
readonly
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
readonly
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
readonly
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
readonly
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
readonly
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
readonly
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
readonly
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
readonly
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
readonly
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
readonly
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
readonly
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
readonly
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
readonly
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
};
|
|
58
|
+
export type Colors = typeof colors;
|
|
59
|
+
export type ColorGroup = keyof Colors;
|
|
60
|
+
export type ColorShade<TGroup extends ColorGroup = ColorGroup> = keyof Colors[TGroup];
|
|
61
|
+
export declare const backgroundTheme: {
|
|
62
|
+
readonly content: {
|
|
63
|
+
readonly light: "#ffffff";
|
|
64
|
+
readonly dark: "#141414";
|
|
65
|
+
};
|
|
66
|
+
readonly graySoft: {
|
|
67
|
+
readonly light: "#f5f4f4";
|
|
68
|
+
readonly dark: "#202020";
|
|
69
|
+
};
|
|
70
|
+
readonly gray: {
|
|
71
|
+
readonly light: "#cacaca";
|
|
72
|
+
readonly dark: "#202020";
|
|
73
|
+
};
|
|
74
|
+
readonly grayHover: {
|
|
75
|
+
readonly light: "#cacaca";
|
|
76
|
+
readonly dark: "#141414";
|
|
77
|
+
};
|
|
78
|
+
readonly grayStrong: {
|
|
79
|
+
readonly light: "#202020";
|
|
80
|
+
readonly dark: "#9a9a9a";
|
|
81
|
+
};
|
|
82
|
+
readonly overlay: {
|
|
83
|
+
readonly light: "rgba(20, 20, 20, 0.2)";
|
|
84
|
+
readonly dark: "rgba(20, 20, 20, 0.2)";
|
|
85
|
+
};
|
|
86
|
+
readonly brand: {
|
|
87
|
+
readonly light: "#003781";
|
|
88
|
+
readonly dark: "#004baf";
|
|
89
|
+
};
|
|
90
|
+
readonly brandHover: {
|
|
91
|
+
readonly light: "#004baf";
|
|
92
|
+
readonly dark: "#003781";
|
|
93
|
+
};
|
|
94
|
+
readonly brandSoft: {
|
|
95
|
+
readonly light: "#e4f0ff";
|
|
96
|
+
readonly dark: "#002a5c";
|
|
97
|
+
};
|
|
98
|
+
readonly success: {
|
|
99
|
+
readonly light: "#3a8362";
|
|
100
|
+
readonly dark: "#3a8362";
|
|
101
|
+
};
|
|
102
|
+
readonly successHover: {
|
|
103
|
+
readonly light: "#4eb184";
|
|
104
|
+
readonly dark: "#4eb184";
|
|
105
|
+
};
|
|
106
|
+
readonly successSoft: {
|
|
107
|
+
readonly light: "#ebfaf1";
|
|
108
|
+
readonly dark: "#1c3b2e";
|
|
109
|
+
};
|
|
110
|
+
readonly warning: {
|
|
111
|
+
readonly light: "#ff832b";
|
|
112
|
+
readonly dark: "#ff832b";
|
|
113
|
+
};
|
|
114
|
+
readonly warningHover: {
|
|
115
|
+
readonly light: "#fdb35e";
|
|
116
|
+
readonly dark: "#fdb35e";
|
|
117
|
+
};
|
|
118
|
+
readonly warningSoft: {
|
|
119
|
+
readonly light: "#fff2e8";
|
|
120
|
+
readonly dark: "#361b00";
|
|
121
|
+
};
|
|
122
|
+
readonly danger: {
|
|
123
|
+
readonly light: "#d32222";
|
|
124
|
+
readonly dark: "#d32222";
|
|
125
|
+
};
|
|
126
|
+
readonly dangerHover: {
|
|
127
|
+
readonly light: "#e35656";
|
|
128
|
+
readonly dark: "#e35656";
|
|
129
|
+
};
|
|
130
|
+
readonly dangerSoft: {
|
|
131
|
+
readonly light: "#fff1f1";
|
|
132
|
+
readonly dark: "#440101";
|
|
133
|
+
};
|
|
134
|
+
readonly visited: {
|
|
135
|
+
readonly light: "#c029df";
|
|
136
|
+
readonly dark: "#8a17a1";
|
|
137
|
+
};
|
|
138
|
+
readonly visitedSoft: {
|
|
139
|
+
readonly light: "#f8e9fc";
|
|
140
|
+
readonly dark: "#6d127e";
|
|
141
|
+
};
|
|
143
142
|
};
|
|
144
|
-
type BackgroundTheme = typeof backgroundTheme;
|
|
145
|
-
type BackgroundThemeKey = keyof typeof backgroundTheme;
|
|
146
|
-
type BackgroundMode = keyof (typeof backgroundTheme)[BackgroundThemeKey];
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
readonly
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
readonly
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
readonly
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
readonly
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
readonly
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
readonly
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
readonly
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
readonly
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
readonly
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
readonly
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
readonly
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
readonly
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
readonly
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
readonly
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
};
|
|
143
|
+
export type BackgroundTheme = typeof backgroundTheme;
|
|
144
|
+
export type BackgroundThemeKey = keyof typeof backgroundTheme;
|
|
145
|
+
export type BackgroundMode = keyof (typeof backgroundTheme)[BackgroundThemeKey];
|
|
146
|
+
export declare const borderTheme: {
|
|
147
|
+
readonly focus: {
|
|
148
|
+
readonly light: "#99c5ff";
|
|
149
|
+
readonly dark: "#99c5ff";
|
|
150
|
+
};
|
|
151
|
+
readonly gray: {
|
|
152
|
+
readonly light: "#cacaca";
|
|
153
|
+
readonly dark: "#696969";
|
|
154
|
+
};
|
|
155
|
+
readonly graySoft: {
|
|
156
|
+
readonly light: "#e3e3e3";
|
|
157
|
+
readonly dark: "#696969";
|
|
158
|
+
};
|
|
159
|
+
readonly grayStrong: {
|
|
160
|
+
readonly light: "#696969";
|
|
161
|
+
readonly dark: "#cacaca";
|
|
162
|
+
};
|
|
163
|
+
readonly brand: {
|
|
164
|
+
readonly light: "#003781";
|
|
165
|
+
readonly dark: "#004baf";
|
|
166
|
+
};
|
|
167
|
+
readonly brandSoft: {
|
|
168
|
+
readonly light: "#99c5ff";
|
|
169
|
+
readonly dark: "#00316f";
|
|
170
|
+
};
|
|
171
|
+
readonly success: {
|
|
172
|
+
readonly light: "#3a8362";
|
|
173
|
+
readonly dark: "#327155";
|
|
174
|
+
};
|
|
175
|
+
readonly successSoft: {
|
|
176
|
+
readonly light: "#b2ddc8";
|
|
177
|
+
readonly dark: "#295b44";
|
|
178
|
+
};
|
|
179
|
+
readonly warning: {
|
|
180
|
+
readonly light: "#ff832b";
|
|
181
|
+
readonly dark: "#bd5b00";
|
|
182
|
+
};
|
|
183
|
+
readonly warningSoft: {
|
|
184
|
+
readonly light: "#fdd2a0";
|
|
185
|
+
readonly dark: "#7a3e03";
|
|
186
|
+
};
|
|
187
|
+
readonly danger: {
|
|
188
|
+
readonly light: "#d32222";
|
|
189
|
+
readonly dark: "#a10505";
|
|
190
|
+
};
|
|
191
|
+
readonly dangerSoft: {
|
|
192
|
+
readonly light: "#f09e9e";
|
|
193
|
+
readonly dark: "#730202";
|
|
194
|
+
};
|
|
195
|
+
readonly visited: {
|
|
196
|
+
readonly light: "#c029df";
|
|
197
|
+
readonly dark: "#8a17a1";
|
|
198
|
+
};
|
|
199
|
+
readonly visitedSoft: {
|
|
200
|
+
readonly light: "#ecc2f7";
|
|
201
|
+
readonly dark: "#6d127e";
|
|
202
|
+
};
|
|
205
203
|
};
|
|
206
|
-
type BorderTheme = typeof borderTheme;
|
|
207
|
-
type BorderThemeKey = keyof typeof borderTheme;
|
|
208
|
-
type BorderMode = keyof (typeof borderTheme)[BorderThemeKey];
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
readonly
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
readonly
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
readonly
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
readonly
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
readonly
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
readonly
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
readonly
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
readonly
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
readonly
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
readonly
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
readonly
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
};
|
|
204
|
+
export type BorderTheme = typeof borderTheme;
|
|
205
|
+
export type BorderThemeKey = keyof typeof borderTheme;
|
|
206
|
+
export type BorderMode = keyof (typeof borderTheme)[BorderThemeKey];
|
|
207
|
+
export declare const contentTheme: {
|
|
208
|
+
readonly default: {
|
|
209
|
+
readonly light: "#141414";
|
|
210
|
+
readonly dark: "#f5f4f4";
|
|
211
|
+
};
|
|
212
|
+
readonly inverse: {
|
|
213
|
+
readonly light: "#ffffff";
|
|
214
|
+
readonly dark: "#ffffff";
|
|
215
|
+
};
|
|
216
|
+
readonly gray: {
|
|
217
|
+
readonly light: "#696969";
|
|
218
|
+
readonly dark: "#cacaca";
|
|
219
|
+
};
|
|
220
|
+
readonly graySoft: {
|
|
221
|
+
readonly light: "#9a9a9a";
|
|
222
|
+
readonly dark: "#9a9a9a";
|
|
223
|
+
};
|
|
224
|
+
readonly grayStrong: {
|
|
225
|
+
readonly light: "#202020";
|
|
226
|
+
readonly dark: "#e3e3e3";
|
|
227
|
+
};
|
|
228
|
+
readonly brand: {
|
|
229
|
+
readonly light: "#003781";
|
|
230
|
+
readonly dark: "#99c5ff";
|
|
231
|
+
};
|
|
232
|
+
readonly brandHover: {
|
|
233
|
+
readonly light: "#004baf";
|
|
234
|
+
readonly dark: "#004baf";
|
|
235
|
+
};
|
|
236
|
+
readonly success: {
|
|
237
|
+
readonly light: "#3a8362";
|
|
238
|
+
readonly dark: "#4eb184";
|
|
239
|
+
};
|
|
240
|
+
readonly warning: {
|
|
241
|
+
readonly light: "#bd5b00";
|
|
242
|
+
readonly dark: "#ff832b";
|
|
243
|
+
};
|
|
244
|
+
readonly danger: {
|
|
245
|
+
readonly light: "#d32222";
|
|
246
|
+
readonly dark: "#e35656";
|
|
247
|
+
};
|
|
248
|
+
readonly visited: {
|
|
249
|
+
readonly light: "#c029df";
|
|
250
|
+
readonly dark: "#c029df";
|
|
251
|
+
};
|
|
255
252
|
};
|
|
256
|
-
type ContentTheme = typeof contentTheme;
|
|
257
|
-
type ContentThemeKey = keyof typeof contentTheme;
|
|
258
|
-
type ContentMode = keyof (typeof contentTheme)[ContentThemeKey];
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
readonly name: "Open Sans";
|
|
270
|
-
readonly fallback: "sans-serif";
|
|
271
|
-
};
|
|
253
|
+
export type ContentTheme = typeof contentTheme;
|
|
254
|
+
export type ContentThemeKey = keyof typeof contentTheme;
|
|
255
|
+
export type ContentMode = keyof (typeof contentTheme)[ContentThemeKey];
|
|
256
|
+
export declare const themeModes: readonly ["light", "dark"];
|
|
257
|
+
export type ThemeMode = (typeof themeModes)[number];
|
|
258
|
+
export declare const spacers: Record<number, number>;
|
|
259
|
+
export type Spacers = typeof spacers;
|
|
260
|
+
export type SpacerKey = keyof Spacers;
|
|
261
|
+
export declare const fontFamilies: {
|
|
262
|
+
readonly sans: {
|
|
263
|
+
readonly name: "Open Sans";
|
|
264
|
+
readonly fallback: "sans-serif";
|
|
265
|
+
};
|
|
272
266
|
};
|
|
273
|
-
declare const fontWeights: {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
267
|
+
export declare const fontWeights: {
|
|
268
|
+
readonly light: 300;
|
|
269
|
+
readonly regular: 400;
|
|
270
|
+
readonly semibold: 600;
|
|
271
|
+
readonly bold: 800;
|
|
278
272
|
};
|
|
279
|
-
declare const fontSizes: {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
273
|
+
export declare const fontSizes: {
|
|
274
|
+
readonly 0: 0;
|
|
275
|
+
readonly sm: 12;
|
|
276
|
+
readonly md: 14;
|
|
277
|
+
readonly lg: 16;
|
|
278
|
+
readonly big: 18;
|
|
279
|
+
readonly hero: 24;
|
|
286
280
|
};
|
|
287
|
-
type FontFamilies = typeof fontFamilies;
|
|
288
|
-
type FontWeights = typeof fontWeights;
|
|
289
|
-
type FontSizes = typeof fontSizes;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
readonly round: "50%";
|
|
281
|
+
export type FontFamilies = typeof fontFamilies;
|
|
282
|
+
export type FontWeights = typeof fontWeights;
|
|
283
|
+
export type FontSizes = typeof fontSizes;
|
|
284
|
+
export declare const radius: {
|
|
285
|
+
readonly 0: 0;
|
|
286
|
+
readonly btn: 4;
|
|
287
|
+
readonly input: 4;
|
|
288
|
+
readonly card: 8;
|
|
289
|
+
readonly pill: 100;
|
|
290
|
+
readonly round: "50%";
|
|
298
291
|
};
|
|
299
|
-
declare const borderWidths: {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
292
|
+
export declare const borderWidths: {
|
|
293
|
+
readonly 0: 0;
|
|
294
|
+
readonly 1: 1;
|
|
295
|
+
readonly 2: 2;
|
|
296
|
+
readonly 3: 3;
|
|
304
297
|
};
|
|
305
|
-
type Radius = typeof radius;
|
|
306
|
-
type BorderWidths = typeof borderWidths;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
readonly xxl: 1400;
|
|
298
|
+
export type Radius = typeof radius;
|
|
299
|
+
export type BorderWidths = typeof borderWidths;
|
|
300
|
+
export declare const breakpoints: {
|
|
301
|
+
readonly xs: 0;
|
|
302
|
+
readonly sm: 480;
|
|
303
|
+
readonly md: 680;
|
|
304
|
+
readonly lg: 1024;
|
|
305
|
+
readonly xl: 1200;
|
|
306
|
+
readonly xxl: 1400;
|
|
315
307
|
};
|
|
316
|
-
type Breakpoints = typeof breakpoints;
|
|
317
|
-
type Breakpoint = keyof Breakpoints;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
readonly
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
readonly
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
};
|
|
308
|
+
export type Breakpoints = typeof breakpoints;
|
|
309
|
+
export type Breakpoint = keyof Breakpoints;
|
|
310
|
+
export declare const transitions: {
|
|
311
|
+
readonly default: {
|
|
312
|
+
readonly property: "all";
|
|
313
|
+
readonly duration: 300;
|
|
314
|
+
readonly timing: "ease-in-out";
|
|
315
|
+
readonly delay: 0;
|
|
316
|
+
};
|
|
317
|
+
readonly chevronRotate: {
|
|
318
|
+
readonly property: "transform";
|
|
319
|
+
readonly duration: 300;
|
|
320
|
+
readonly timing: "ease-in-out";
|
|
321
|
+
readonly delay: 75;
|
|
322
|
+
};
|
|
332
323
|
};
|
|
333
|
-
type Transitions = typeof transitions;
|
|
334
|
-
|
|
324
|
+
export type Transitions = typeof transitions;
|
|
335
325
|
/**
|
|
336
326
|
* Button definition shared by every platform — same rendering as the legacy stylesheet (SynerDs main).
|
|
337
327
|
* Values are references to scales (spacers, radius...) and theme keys (background, border, content):
|
|
@@ -339,352 +329,378 @@ type Transitions = typeof transitions;
|
|
|
339
329
|
*/
|
|
340
330
|
type BorderColor = BorderThemeKey | 'currentColor' | null;
|
|
341
331
|
type ButtonColors = {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
332
|
+
content: ContentThemeKey;
|
|
333
|
+
background: BackgroundThemeKey | null;
|
|
334
|
+
backgroundHover: BackgroundThemeKey | null;
|
|
335
|
+
border: BorderColor;
|
|
336
|
+
borderHover: BorderColor;
|
|
347
337
|
};
|
|
348
338
|
type ButtonDisabledColors = Pick<ButtonColors, 'content' | 'background' | 'border'>;
|
|
349
339
|
declare const button: {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
340
|
+
readonly base: {
|
|
341
|
+
readonly padding: {
|
|
342
|
+
readonly x: 16;
|
|
343
|
+
readonly y: 12;
|
|
344
|
+
};
|
|
345
|
+
readonly paddingFromMd: {
|
|
346
|
+
readonly x: 16;
|
|
347
|
+
readonly y: 8;
|
|
348
|
+
};
|
|
349
|
+
readonly gap: 8;
|
|
350
|
+
readonly iconSize: 16;
|
|
351
|
+
readonly radius: "btn";
|
|
352
|
+
readonly fontSize: "md";
|
|
353
|
+
readonly fontWeight: "semibold";
|
|
354
|
+
readonly lineHeight: 1.15;
|
|
355
|
+
readonly borderWidth: 1;
|
|
356
|
+
};
|
|
357
|
+
readonly small: {
|
|
358
|
+
readonly paddingFromMd: {
|
|
359
|
+
readonly x: 8;
|
|
360
|
+
readonly y: 4;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
readonly iconOnly: {
|
|
364
|
+
readonly padding: 8;
|
|
365
|
+
};
|
|
366
|
+
readonly variants: {
|
|
367
|
+
readonly primary: {
|
|
368
|
+
readonly brand: {
|
|
369
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
370
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
371
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
372
|
+
readonly border: null;
|
|
373
|
+
readonly borderHover: null;
|
|
374
|
+
};
|
|
375
|
+
readonly gray: {
|
|
376
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
377
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
378
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
379
|
+
readonly border: null;
|
|
380
|
+
readonly borderHover: null;
|
|
381
|
+
};
|
|
382
|
+
readonly success: {
|
|
383
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
384
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
385
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
386
|
+
readonly border: null;
|
|
387
|
+
readonly borderHover: null;
|
|
388
|
+
};
|
|
389
|
+
readonly warning: {
|
|
390
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
391
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
392
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
393
|
+
readonly border: null;
|
|
394
|
+
readonly borderHover: null;
|
|
395
|
+
};
|
|
396
|
+
readonly danger: {
|
|
397
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
398
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
399
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
400
|
+
readonly border: null;
|
|
401
|
+
readonly borderHover: null;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
readonly outline: {
|
|
405
|
+
readonly brand: {
|
|
406
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
407
|
+
readonly background: null;
|
|
408
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
409
|
+
readonly border: "currentColor";
|
|
410
|
+
readonly borderHover: null;
|
|
411
|
+
};
|
|
412
|
+
readonly success: {
|
|
413
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
414
|
+
readonly background: null;
|
|
415
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
416
|
+
readonly border: "currentColor";
|
|
417
|
+
readonly borderHover: null;
|
|
418
|
+
};
|
|
419
|
+
readonly warning: {
|
|
420
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
421
|
+
readonly background: null;
|
|
422
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
423
|
+
readonly border: "currentColor";
|
|
424
|
+
readonly borderHover: null;
|
|
425
|
+
};
|
|
426
|
+
readonly gray: {
|
|
427
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
428
|
+
readonly background: null;
|
|
429
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
430
|
+
readonly border: "currentColor";
|
|
431
|
+
readonly borderHover: null;
|
|
432
|
+
};
|
|
433
|
+
readonly danger: {
|
|
434
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
435
|
+
readonly background: null;
|
|
436
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
437
|
+
readonly border: "currentColor";
|
|
438
|
+
readonly borderHover: null;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly ghost: {
|
|
442
|
+
readonly brand: {
|
|
443
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
444
|
+
readonly background: null;
|
|
445
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
446
|
+
readonly border: null;
|
|
447
|
+
readonly borderHover: null;
|
|
448
|
+
};
|
|
449
|
+
readonly warning: {
|
|
450
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
451
|
+
readonly background: null;
|
|
452
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
453
|
+
readonly border: null;
|
|
454
|
+
readonly borderHover: null;
|
|
455
|
+
};
|
|
456
|
+
readonly success: {
|
|
457
|
+
readonly disabledAs: "primary";
|
|
458
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
459
|
+
readonly background: null;
|
|
460
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
461
|
+
readonly border: null;
|
|
462
|
+
readonly borderHover: null;
|
|
463
|
+
};
|
|
464
|
+
readonly gray: {
|
|
465
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
466
|
+
readonly background: null;
|
|
467
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
468
|
+
readonly border: null;
|
|
469
|
+
readonly borderHover: null;
|
|
470
|
+
};
|
|
471
|
+
readonly danger: {
|
|
472
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
473
|
+
readonly background: null;
|
|
474
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
475
|
+
readonly border: null;
|
|
476
|
+
readonly borderHover: null;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
readonly disabled: {
|
|
481
|
+
readonly primary: {
|
|
482
|
+
readonly content: "graySoft";
|
|
483
|
+
readonly background: "graySoft";
|
|
484
|
+
readonly border: "currentColor";
|
|
485
|
+
};
|
|
486
|
+
readonly outline: {
|
|
487
|
+
readonly content: "graySoft";
|
|
488
|
+
readonly background: null;
|
|
489
|
+
readonly border: "gray";
|
|
490
|
+
};
|
|
491
|
+
readonly ghost: {
|
|
492
|
+
readonly content: "graySoft";
|
|
493
|
+
readonly background: null;
|
|
494
|
+
readonly border: null;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
507
497
|
};
|
|
508
|
-
declare const buttonTokens: {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
498
|
+
export declare const buttonTokens: {
|
|
499
|
+
readonly base: {
|
|
500
|
+
readonly padding: {
|
|
501
|
+
readonly x: 16;
|
|
502
|
+
readonly y: 12;
|
|
503
|
+
};
|
|
504
|
+
readonly paddingFromMd: {
|
|
505
|
+
readonly x: 16;
|
|
506
|
+
readonly y: 8;
|
|
507
|
+
};
|
|
508
|
+
readonly gap: 8;
|
|
509
|
+
readonly iconSize: 16;
|
|
510
|
+
readonly radius: "btn";
|
|
511
|
+
readonly fontSize: "md";
|
|
512
|
+
readonly fontWeight: "semibold";
|
|
513
|
+
readonly lineHeight: 1.15;
|
|
514
|
+
readonly borderWidth: 1;
|
|
515
|
+
};
|
|
516
|
+
readonly small: {
|
|
517
|
+
readonly paddingFromMd: {
|
|
518
|
+
readonly x: 8;
|
|
519
|
+
readonly y: 4;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
readonly iconOnly: {
|
|
523
|
+
readonly padding: 8;
|
|
524
|
+
};
|
|
525
|
+
readonly variants: {
|
|
526
|
+
readonly primary: {
|
|
527
|
+
readonly brand: {
|
|
528
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
529
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
530
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
531
|
+
readonly border: null;
|
|
532
|
+
readonly borderHover: null;
|
|
533
|
+
};
|
|
534
|
+
readonly gray: {
|
|
535
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
536
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
537
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
538
|
+
readonly border: null;
|
|
539
|
+
readonly borderHover: null;
|
|
540
|
+
};
|
|
541
|
+
readonly success: {
|
|
542
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
543
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
544
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
545
|
+
readonly border: null;
|
|
546
|
+
readonly borderHover: null;
|
|
547
|
+
};
|
|
548
|
+
readonly warning: {
|
|
549
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
550
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
551
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
552
|
+
readonly border: null;
|
|
553
|
+
readonly borderHover: null;
|
|
554
|
+
};
|
|
555
|
+
readonly danger: {
|
|
556
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
557
|
+
readonly background: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
558
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
559
|
+
readonly border: null;
|
|
560
|
+
readonly borderHover: null;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
readonly outline: {
|
|
564
|
+
readonly brand: {
|
|
565
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
566
|
+
readonly background: null;
|
|
567
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
568
|
+
readonly border: "currentColor";
|
|
569
|
+
readonly borderHover: null;
|
|
570
|
+
};
|
|
571
|
+
readonly success: {
|
|
572
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
573
|
+
readonly background: null;
|
|
574
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
575
|
+
readonly border: "currentColor";
|
|
576
|
+
readonly borderHover: null;
|
|
577
|
+
};
|
|
578
|
+
readonly warning: {
|
|
579
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
580
|
+
readonly background: null;
|
|
581
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
582
|
+
readonly border: "currentColor";
|
|
583
|
+
readonly borderHover: null;
|
|
584
|
+
};
|
|
585
|
+
readonly gray: {
|
|
586
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
587
|
+
readonly background: null;
|
|
588
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
589
|
+
readonly border: "currentColor";
|
|
590
|
+
readonly borderHover: null;
|
|
591
|
+
};
|
|
592
|
+
readonly danger: {
|
|
593
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
594
|
+
readonly background: null;
|
|
595
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
596
|
+
readonly border: "currentColor";
|
|
597
|
+
readonly borderHover: null;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
readonly ghost: {
|
|
601
|
+
readonly brand: {
|
|
602
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
603
|
+
readonly background: null;
|
|
604
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
605
|
+
readonly border: null;
|
|
606
|
+
readonly borderHover: null;
|
|
607
|
+
};
|
|
608
|
+
readonly warning: {
|
|
609
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
610
|
+
readonly background: null;
|
|
611
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
612
|
+
readonly border: null;
|
|
613
|
+
readonly borderHover: null;
|
|
614
|
+
};
|
|
615
|
+
readonly success: {
|
|
616
|
+
readonly disabledAs: "primary";
|
|
617
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
618
|
+
readonly background: null;
|
|
619
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
620
|
+
readonly border: null;
|
|
621
|
+
readonly borderHover: null;
|
|
622
|
+
};
|
|
623
|
+
readonly gray: {
|
|
624
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
625
|
+
readonly background: null;
|
|
626
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
627
|
+
readonly border: null;
|
|
628
|
+
readonly borderHover: null;
|
|
629
|
+
};
|
|
630
|
+
readonly danger: {
|
|
631
|
+
readonly content: "default" | "inverse" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited";
|
|
632
|
+
readonly background: null;
|
|
633
|
+
readonly backgroundHover: "content" | "gray" | "graySoft" | "grayStrong" | "brand" | "brandHover" | "success" | "warning" | "danger" | "visited" | "grayHover" | "overlay" | "brandSoft" | "successHover" | "successSoft" | "warningHover" | "warningSoft" | "dangerHover" | "dangerSoft" | "visitedSoft";
|
|
634
|
+
readonly border: null;
|
|
635
|
+
readonly borderHover: null;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
readonly disabled: {
|
|
640
|
+
readonly primary: {
|
|
641
|
+
readonly content: "graySoft";
|
|
642
|
+
readonly background: "graySoft";
|
|
643
|
+
readonly border: "currentColor";
|
|
644
|
+
};
|
|
645
|
+
readonly outline: {
|
|
646
|
+
readonly content: "graySoft";
|
|
647
|
+
readonly background: null;
|
|
648
|
+
readonly border: "gray";
|
|
649
|
+
};
|
|
650
|
+
readonly ghost: {
|
|
651
|
+
readonly content: "graySoft";
|
|
652
|
+
readonly background: null;
|
|
653
|
+
readonly border: null;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
666
656
|
};
|
|
667
|
-
type ButtonVariant = keyof typeof button.variants;
|
|
668
|
-
type ButtonColor<V extends ButtonVariant = ButtonVariant> = keyof (typeof button.variants)[V];
|
|
669
|
-
type ButtonColorRoles = ButtonColors;
|
|
670
|
-
type ButtonDisabledColorRoles = ButtonDisabledColors;
|
|
671
|
-
declare const defaultButtonVariant = "primary";
|
|
672
|
-
declare const defaultButtonColor = "brand";
|
|
657
|
+
export type ButtonVariant = keyof typeof button.variants;
|
|
658
|
+
export type ButtonColor<V extends ButtonVariant = ButtonVariant> = keyof (typeof button.variants)[V];
|
|
659
|
+
export type ButtonColorRoles = ButtonColors;
|
|
660
|
+
export type ButtonDisabledColorRoles = ButtonDisabledColors;
|
|
661
|
+
export declare const defaultButtonVariant = "primary";
|
|
662
|
+
export declare const defaultButtonColor = "brand";
|
|
673
663
|
/** `variant` + `color` pairs allowed by the design system */
|
|
674
|
-
type ButtonAppearance = {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
664
|
+
export type ButtonAppearance = { [V in ButtonVariant]: V extends typeof defaultButtonVariant ? {
|
|
665
|
+
variant?: V;
|
|
666
|
+
color?: ButtonColor<V>;
|
|
667
|
+
} : {
|
|
668
|
+
variant: V;
|
|
669
|
+
color: ButtonColor<V>;
|
|
670
|
+
}; }[ButtonVariant];
|
|
671
|
+
export declare const getButtonColors: <V extends ButtonVariant>(variant: V, color: ButtonColor<V>) => ButtonColors & {
|
|
672
|
+
disabledAs?: ButtonVariant;
|
|
673
|
+
};
|
|
674
|
+
export declare const getButtonDisabledColors: <V extends ButtonVariant>(variant: V, color: ButtonColor<V>) => ButtonDisabledColors;
|
|
675
|
+
/**
|
|
676
|
+
* Main grid definition (SDSMainGrid): grid of the page content, items placed by column and row.
|
|
677
|
+
* Spacings are keys of the spacer scale.
|
|
678
|
+
*/
|
|
679
|
+
type MainGrid = {
|
|
680
|
+
columns: number;
|
|
681
|
+
gap: SpacerKey;
|
|
682
|
+
padding: SpacerKey;
|
|
683
|
+
};
|
|
684
|
+
export declare const mainGridTokens: MainGrid;
|
|
685
|
+
/**
|
|
686
|
+
* Main nav definition (SDSMainNav): side menu, collapsed (icons only) or expanded.
|
|
687
|
+
* Values are keys of the spacer scale.
|
|
688
|
+
*/
|
|
689
|
+
type MainNav = {
|
|
690
|
+
/** Collapsed: icon (iconBox) + padding on each side */
|
|
691
|
+
widthCollapsed: SpacerKey;
|
|
692
|
+
/** Expanded: content (184) + padding on each side */
|
|
693
|
+
widthExpanded: SpacerKey;
|
|
694
|
+
padding: SpacerKey;
|
|
695
|
+
/** Gap between the items */
|
|
696
|
+
gap: SpacerKey;
|
|
697
|
+
/** Square holding the icon, also the min height of an item */
|
|
698
|
+
iconBox: SpacerKey;
|
|
699
|
+
iconSize: SpacerKey;
|
|
700
|
+
chevronSize: SpacerKey;
|
|
701
|
+
/** Min width of a submenu */
|
|
702
|
+
submenuMinWidth: SpacerKey;
|
|
685
703
|
};
|
|
686
|
-
declare const
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
export { type BackgroundMode, type BackgroundTheme, type BackgroundThemeKey, type BorderMode, type BorderTheme, type BorderThemeKey, type BorderWidths, type Breakpoint, type Breakpoints, type ButtonAppearance, type ButtonColor, type ButtonColorRoles, type ButtonDisabledColorRoles, type ButtonVariant, type ColorGroup, type ColorShade, type Colors, type ContentMode, type ContentTheme, type ContentThemeKey, type FontFamilies, type FontSizes, type FontWeights, type Radius, type SpacerKey, type Spacers, type ThemeMode, type Transitions, backgroundTheme, borderTheme, borderWidths, breakpoints, buttonTokens, colors, contentTheme, cssPrefix, defaultButtonColor, defaultButtonVariant, fontFamilies, fontSizes, fontWeights, getButtonColors, getButtonDisabledColors, radius, spacers, themeModes, transitions };
|
|
704
|
+
export declare const mainNavTokens: MainNav;
|
|
705
|
+
export declare const cssPrefix = "sds";
|
|
706
|
+
export {};
|