@vellira-ui/tokens 2.39.4 → 2.40.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/css/tokens.css +388 -94
- package/dist/dark/components/tabs.d.ts +242 -58
- package/dist/dark/components/tabs.d.ts.map +1 -1
- package/dist/dark/components/tabs.js +91 -64
- package/dist/factories/createTabsTokens.d.ts +344 -0
- package/dist/factories/createTabsTokens.d.ts.map +1 -0
- package/dist/factories/createTabsTokens.js +59 -0
- package/dist/factories/index.d.ts +1 -0
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +1 -0
- package/dist/generated/token-types.d.ts +4 -4
- package/dist/generated/token-types.d.ts.map +1 -1
- package/dist/generated/token-types.js +516 -124
- package/dist/highContrast/components/tabs.d.ts +242 -58
- package/dist/highContrast/components/tabs.d.ts.map +1 -1
- package/dist/highContrast/components/tabs.js +89 -63
- package/dist/light/components/select.d.ts +1 -1
- package/dist/light/components/select.js +1 -1
- package/dist/light/components/tabs.d.ts +242 -58
- package/dist/light/components/tabs.d.ts.map +1 -1
- package/dist/light/components/tabs.js +89 -63
- package/package.json +1 -1
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
export type TabsStateTokens = {
|
|
2
|
+
bg: string;
|
|
3
|
+
fg: string;
|
|
4
|
+
border: string;
|
|
5
|
+
};
|
|
6
|
+
export type TabsPaletteConfig = {
|
|
7
|
+
triggerDefaultFg: string;
|
|
8
|
+
triggerHoverFg: string;
|
|
9
|
+
triggerActiveFg: string;
|
|
10
|
+
triggerHoverBg: string;
|
|
11
|
+
triggerActiveBg: string;
|
|
12
|
+
triggerActiveBorder: string;
|
|
13
|
+
indicator: string;
|
|
14
|
+
indicatorHover?: string;
|
|
15
|
+
segmentedBg: string;
|
|
16
|
+
segmentedActiveBg: string;
|
|
17
|
+
segmentedActiveBorder: string;
|
|
18
|
+
segmentedActiveFg: string;
|
|
19
|
+
pillHoverBg: string;
|
|
20
|
+
pillActiveBg: string;
|
|
21
|
+
pillActiveBorder: string;
|
|
22
|
+
pillActiveFg: string;
|
|
23
|
+
focusRing: string;
|
|
24
|
+
};
|
|
25
|
+
export type TabsTokensConfig = {
|
|
26
|
+
primary: ReturnType<typeof createTabsPalette>;
|
|
27
|
+
neutral: ReturnType<typeof createTabsPalette>;
|
|
28
|
+
success: ReturnType<typeof createTabsPalette>;
|
|
29
|
+
warning: ReturnType<typeof createTabsPalette>;
|
|
30
|
+
danger: ReturnType<typeof createTabsPalette>;
|
|
31
|
+
disabled: TabsStateTokens;
|
|
32
|
+
list: {
|
|
33
|
+
border: string;
|
|
34
|
+
segmentedBg: string;
|
|
35
|
+
};
|
|
36
|
+
panel: {
|
|
37
|
+
fg: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const createTabsPalette: ({ triggerDefaultFg, triggerHoverFg, triggerActiveFg, triggerHoverBg, triggerActiveBg, triggerActiveBorder, indicator, indicatorHover, segmentedBg, segmentedActiveBg, segmentedActiveBorder, segmentedActiveFg, pillHoverBg, pillActiveBg, pillActiveBorder, pillActiveFg, focusRing, }: TabsPaletteConfig) => {
|
|
41
|
+
readonly trigger: {
|
|
42
|
+
readonly default: {
|
|
43
|
+
readonly bg: "transparent";
|
|
44
|
+
readonly fg: string;
|
|
45
|
+
readonly border: "transparent";
|
|
46
|
+
};
|
|
47
|
+
readonly hover: {
|
|
48
|
+
readonly bg: string;
|
|
49
|
+
readonly fg: string;
|
|
50
|
+
readonly border: "transparent";
|
|
51
|
+
};
|
|
52
|
+
readonly active: {
|
|
53
|
+
readonly bg: string;
|
|
54
|
+
readonly fg: string;
|
|
55
|
+
readonly border: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly pills: {
|
|
59
|
+
readonly default: {
|
|
60
|
+
readonly bg: "transparent";
|
|
61
|
+
readonly fg: string;
|
|
62
|
+
readonly border: "transparent";
|
|
63
|
+
};
|
|
64
|
+
readonly hover: {
|
|
65
|
+
readonly bg: string;
|
|
66
|
+
readonly fg: string;
|
|
67
|
+
readonly border: "transparent";
|
|
68
|
+
};
|
|
69
|
+
readonly active: {
|
|
70
|
+
readonly bg: string;
|
|
71
|
+
readonly fg: string;
|
|
72
|
+
readonly border: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly segmented: {
|
|
76
|
+
readonly bg: string;
|
|
77
|
+
readonly active: {
|
|
78
|
+
readonly bg: string;
|
|
79
|
+
readonly fg: string;
|
|
80
|
+
readonly border: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly indicator: {
|
|
84
|
+
readonly bg: string;
|
|
85
|
+
readonly hoverBg: string;
|
|
86
|
+
};
|
|
87
|
+
readonly focusRing: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const createTabsTokens: (config: TabsTokensConfig) => {
|
|
90
|
+
readonly primary: {
|
|
91
|
+
readonly trigger: {
|
|
92
|
+
readonly default: {
|
|
93
|
+
readonly bg: "transparent";
|
|
94
|
+
readonly fg: string;
|
|
95
|
+
readonly border: "transparent";
|
|
96
|
+
};
|
|
97
|
+
readonly hover: {
|
|
98
|
+
readonly bg: string;
|
|
99
|
+
readonly fg: string;
|
|
100
|
+
readonly border: "transparent";
|
|
101
|
+
};
|
|
102
|
+
readonly active: {
|
|
103
|
+
readonly bg: string;
|
|
104
|
+
readonly fg: string;
|
|
105
|
+
readonly border: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly pills: {
|
|
109
|
+
readonly default: {
|
|
110
|
+
readonly bg: "transparent";
|
|
111
|
+
readonly fg: string;
|
|
112
|
+
readonly border: "transparent";
|
|
113
|
+
};
|
|
114
|
+
readonly hover: {
|
|
115
|
+
readonly bg: string;
|
|
116
|
+
readonly fg: string;
|
|
117
|
+
readonly border: "transparent";
|
|
118
|
+
};
|
|
119
|
+
readonly active: {
|
|
120
|
+
readonly bg: string;
|
|
121
|
+
readonly fg: string;
|
|
122
|
+
readonly border: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly segmented: {
|
|
126
|
+
readonly bg: string;
|
|
127
|
+
readonly active: {
|
|
128
|
+
readonly bg: string;
|
|
129
|
+
readonly fg: string;
|
|
130
|
+
readonly border: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly indicator: {
|
|
134
|
+
readonly bg: string;
|
|
135
|
+
readonly hoverBg: string;
|
|
136
|
+
};
|
|
137
|
+
readonly focusRing: string;
|
|
138
|
+
};
|
|
139
|
+
readonly neutral: {
|
|
140
|
+
readonly trigger: {
|
|
141
|
+
readonly default: {
|
|
142
|
+
readonly bg: "transparent";
|
|
143
|
+
readonly fg: string;
|
|
144
|
+
readonly border: "transparent";
|
|
145
|
+
};
|
|
146
|
+
readonly hover: {
|
|
147
|
+
readonly bg: string;
|
|
148
|
+
readonly fg: string;
|
|
149
|
+
readonly border: "transparent";
|
|
150
|
+
};
|
|
151
|
+
readonly active: {
|
|
152
|
+
readonly bg: string;
|
|
153
|
+
readonly fg: string;
|
|
154
|
+
readonly border: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly pills: {
|
|
158
|
+
readonly default: {
|
|
159
|
+
readonly bg: "transparent";
|
|
160
|
+
readonly fg: string;
|
|
161
|
+
readonly border: "transparent";
|
|
162
|
+
};
|
|
163
|
+
readonly hover: {
|
|
164
|
+
readonly bg: string;
|
|
165
|
+
readonly fg: string;
|
|
166
|
+
readonly border: "transparent";
|
|
167
|
+
};
|
|
168
|
+
readonly active: {
|
|
169
|
+
readonly bg: string;
|
|
170
|
+
readonly fg: string;
|
|
171
|
+
readonly border: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly segmented: {
|
|
175
|
+
readonly bg: string;
|
|
176
|
+
readonly active: {
|
|
177
|
+
readonly bg: string;
|
|
178
|
+
readonly fg: string;
|
|
179
|
+
readonly border: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly indicator: {
|
|
183
|
+
readonly bg: string;
|
|
184
|
+
readonly hoverBg: string;
|
|
185
|
+
};
|
|
186
|
+
readonly focusRing: string;
|
|
187
|
+
};
|
|
188
|
+
readonly success: {
|
|
189
|
+
readonly trigger: {
|
|
190
|
+
readonly default: {
|
|
191
|
+
readonly bg: "transparent";
|
|
192
|
+
readonly fg: string;
|
|
193
|
+
readonly border: "transparent";
|
|
194
|
+
};
|
|
195
|
+
readonly hover: {
|
|
196
|
+
readonly bg: string;
|
|
197
|
+
readonly fg: string;
|
|
198
|
+
readonly border: "transparent";
|
|
199
|
+
};
|
|
200
|
+
readonly active: {
|
|
201
|
+
readonly bg: string;
|
|
202
|
+
readonly fg: string;
|
|
203
|
+
readonly border: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly pills: {
|
|
207
|
+
readonly default: {
|
|
208
|
+
readonly bg: "transparent";
|
|
209
|
+
readonly fg: string;
|
|
210
|
+
readonly border: "transparent";
|
|
211
|
+
};
|
|
212
|
+
readonly hover: {
|
|
213
|
+
readonly bg: string;
|
|
214
|
+
readonly fg: string;
|
|
215
|
+
readonly border: "transparent";
|
|
216
|
+
};
|
|
217
|
+
readonly active: {
|
|
218
|
+
readonly bg: string;
|
|
219
|
+
readonly fg: string;
|
|
220
|
+
readonly border: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly segmented: {
|
|
224
|
+
readonly bg: string;
|
|
225
|
+
readonly active: {
|
|
226
|
+
readonly bg: string;
|
|
227
|
+
readonly fg: string;
|
|
228
|
+
readonly border: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly indicator: {
|
|
232
|
+
readonly bg: string;
|
|
233
|
+
readonly hoverBg: string;
|
|
234
|
+
};
|
|
235
|
+
readonly focusRing: string;
|
|
236
|
+
};
|
|
237
|
+
readonly warning: {
|
|
238
|
+
readonly trigger: {
|
|
239
|
+
readonly default: {
|
|
240
|
+
readonly bg: "transparent";
|
|
241
|
+
readonly fg: string;
|
|
242
|
+
readonly border: "transparent";
|
|
243
|
+
};
|
|
244
|
+
readonly hover: {
|
|
245
|
+
readonly bg: string;
|
|
246
|
+
readonly fg: string;
|
|
247
|
+
readonly border: "transparent";
|
|
248
|
+
};
|
|
249
|
+
readonly active: {
|
|
250
|
+
readonly bg: string;
|
|
251
|
+
readonly fg: string;
|
|
252
|
+
readonly border: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly pills: {
|
|
256
|
+
readonly default: {
|
|
257
|
+
readonly bg: "transparent";
|
|
258
|
+
readonly fg: string;
|
|
259
|
+
readonly border: "transparent";
|
|
260
|
+
};
|
|
261
|
+
readonly hover: {
|
|
262
|
+
readonly bg: string;
|
|
263
|
+
readonly fg: string;
|
|
264
|
+
readonly border: "transparent";
|
|
265
|
+
};
|
|
266
|
+
readonly active: {
|
|
267
|
+
readonly bg: string;
|
|
268
|
+
readonly fg: string;
|
|
269
|
+
readonly border: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly segmented: {
|
|
273
|
+
readonly bg: string;
|
|
274
|
+
readonly active: {
|
|
275
|
+
readonly bg: string;
|
|
276
|
+
readonly fg: string;
|
|
277
|
+
readonly border: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
readonly indicator: {
|
|
281
|
+
readonly bg: string;
|
|
282
|
+
readonly hoverBg: string;
|
|
283
|
+
};
|
|
284
|
+
readonly focusRing: string;
|
|
285
|
+
};
|
|
286
|
+
readonly danger: {
|
|
287
|
+
readonly trigger: {
|
|
288
|
+
readonly default: {
|
|
289
|
+
readonly bg: "transparent";
|
|
290
|
+
readonly fg: string;
|
|
291
|
+
readonly border: "transparent";
|
|
292
|
+
};
|
|
293
|
+
readonly hover: {
|
|
294
|
+
readonly bg: string;
|
|
295
|
+
readonly fg: string;
|
|
296
|
+
readonly border: "transparent";
|
|
297
|
+
};
|
|
298
|
+
readonly active: {
|
|
299
|
+
readonly bg: string;
|
|
300
|
+
readonly fg: string;
|
|
301
|
+
readonly border: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly pills: {
|
|
305
|
+
readonly default: {
|
|
306
|
+
readonly bg: "transparent";
|
|
307
|
+
readonly fg: string;
|
|
308
|
+
readonly border: "transparent";
|
|
309
|
+
};
|
|
310
|
+
readonly hover: {
|
|
311
|
+
readonly bg: string;
|
|
312
|
+
readonly fg: string;
|
|
313
|
+
readonly border: "transparent";
|
|
314
|
+
};
|
|
315
|
+
readonly active: {
|
|
316
|
+
readonly bg: string;
|
|
317
|
+
readonly fg: string;
|
|
318
|
+
readonly border: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
readonly segmented: {
|
|
322
|
+
readonly bg: string;
|
|
323
|
+
readonly active: {
|
|
324
|
+
readonly bg: string;
|
|
325
|
+
readonly fg: string;
|
|
326
|
+
readonly border: string;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
readonly indicator: {
|
|
330
|
+
readonly bg: string;
|
|
331
|
+
readonly hoverBg: string;
|
|
332
|
+
};
|
|
333
|
+
readonly focusRing: string;
|
|
334
|
+
};
|
|
335
|
+
readonly disabled: TabsStateTokens;
|
|
336
|
+
readonly list: {
|
|
337
|
+
border: string;
|
|
338
|
+
segmentedBg: string;
|
|
339
|
+
};
|
|
340
|
+
readonly panel: {
|
|
341
|
+
fg: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
//# sourceMappingURL=createTabsTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTabsTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createTabsTokens.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA7E7C,MAAM;qBACD,MAAM;;;YAGf,MAAM;;CAmFD,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export const createTabsPalette = ({ triggerDefaultFg, triggerHoverFg, triggerActiveFg, triggerHoverBg, triggerActiveBg, triggerActiveBorder, indicator, indicatorHover = indicator, segmentedBg, segmentedActiveBg, segmentedActiveBorder, segmentedActiveFg, pillHoverBg, pillActiveBg, pillActiveBorder, pillActiveFg, focusRing, }) => ({
|
|
2
|
+
trigger: {
|
|
3
|
+
default: {
|
|
4
|
+
bg: 'transparent',
|
|
5
|
+
fg: triggerDefaultFg,
|
|
6
|
+
border: 'transparent',
|
|
7
|
+
},
|
|
8
|
+
hover: {
|
|
9
|
+
bg: triggerHoverBg,
|
|
10
|
+
fg: triggerHoverFg,
|
|
11
|
+
border: 'transparent',
|
|
12
|
+
},
|
|
13
|
+
active: {
|
|
14
|
+
bg: triggerActiveBg,
|
|
15
|
+
fg: triggerActiveFg,
|
|
16
|
+
border: triggerActiveBorder,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
pills: {
|
|
20
|
+
default: {
|
|
21
|
+
bg: 'transparent',
|
|
22
|
+
fg: triggerDefaultFg,
|
|
23
|
+
border: 'transparent',
|
|
24
|
+
},
|
|
25
|
+
hover: {
|
|
26
|
+
bg: pillHoverBg,
|
|
27
|
+
fg: triggerHoverFg,
|
|
28
|
+
border: 'transparent',
|
|
29
|
+
},
|
|
30
|
+
active: {
|
|
31
|
+
bg: pillActiveBg,
|
|
32
|
+
fg: pillActiveFg,
|
|
33
|
+
border: pillActiveBorder,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
segmented: {
|
|
37
|
+
bg: segmentedBg,
|
|
38
|
+
active: {
|
|
39
|
+
bg: segmentedActiveBg,
|
|
40
|
+
fg: segmentedActiveFg,
|
|
41
|
+
border: segmentedActiveBorder,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
indicator: {
|
|
45
|
+
bg: indicator,
|
|
46
|
+
hoverBg: indicatorHover,
|
|
47
|
+
},
|
|
48
|
+
focusRing,
|
|
49
|
+
});
|
|
50
|
+
export const createTabsTokens = (config) => ({
|
|
51
|
+
primary: config.primary,
|
|
52
|
+
neutral: config.neutral,
|
|
53
|
+
success: config.success,
|
|
54
|
+
warning: config.warning,
|
|
55
|
+
danger: config.danger,
|
|
56
|
+
disabled: config.disabled,
|
|
57
|
+
list: config.list,
|
|
58
|
+
panel: config.panel,
|
|
59
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
|
package/dist/factories/index.js
CHANGED