@wavv/ui 2.3.0-alpha.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,561 +0,0 @@
1
- import common, { button as index_js_button } from "../../common/index.js";
2
- import colors from "../colors.js";
3
- import lightScale from "./lightScale.js";
4
- const white = '#FFFFFF';
5
- const light = {
6
- ...common,
7
- ...lightScale,
8
- name: 'light',
9
- button: {
10
- ...index_js_button,
11
- primary: {
12
- color: {
13
- default: white,
14
- hover: white,
15
- active: white
16
- },
17
- outlineColor: {
18
- default: lightScale.scale10,
19
- hover: lightScale.scale10,
20
- active: lightScale.scale10
21
- },
22
- background: {
23
- default: colors.brand,
24
- hover: colors.brandShade1,
25
- active: colors.brandShade2
26
- },
27
- outlineBackground: {
28
- default: colors.brandTint0,
29
- hover: colors.brandTint1,
30
- active: colors.brandTint2
31
- },
32
- border: {
33
- default: colors.brand,
34
- hover: colors.brandShade1,
35
- active: colors.brandShade2
36
- },
37
- divider: lightScale.scale2
38
- },
39
- secondary: {
40
- color: {
41
- default: lightScale.scale10,
42
- hover: lightScale.scale10,
43
- active: lightScale.scale10
44
- },
45
- outlineColor: {
46
- default: lightScale.scale10,
47
- hover: lightScale.scale10,
48
- active: lightScale.scale10
49
- },
50
- background: {
51
- default: lightScale.scale1,
52
- hover: lightScale.scale2,
53
- active: lightScale.scale3
54
- },
55
- outlineBackground: {
56
- default: lightScale.scale1,
57
- hover: lightScale.scale2,
58
- active: lightScale.scale3
59
- },
60
- border: {
61
- default: lightScale.scale2,
62
- hover: lightScale.scale2,
63
- active: lightScale.scale2
64
- },
65
- divider: lightScale.scale2
66
- },
67
- positive: {
68
- color: {
69
- default: white,
70
- hover: white,
71
- active: white
72
- },
73
- outlineColor: {
74
- default: lightScale.scale10,
75
- hover: lightScale.scale10,
76
- active: lightScale.scale10
77
- },
78
- background: {
79
- default: colors.success,
80
- hover: colors.successShade1,
81
- active: colors.successShade2
82
- },
83
- outlineBackground: {
84
- default: colors.successTint0,
85
- hover: colors.successTint1,
86
- active: colors.successTint2
87
- },
88
- border: {
89
- default: colors.success,
90
- hover: colors.successShade1,
91
- active: colors.successShade2
92
- },
93
- divider: lightScale.scale2
94
- },
95
- negative: {
96
- color: {
97
- default: white,
98
- hover: white,
99
- active: white
100
- },
101
- outlineColor: {
102
- default: lightScale.scale10,
103
- hover: lightScale.scale10,
104
- active: lightScale.scale10
105
- },
106
- background: {
107
- default: colors.error,
108
- hover: colors.errorShade1,
109
- active: colors.errorShade2
110
- },
111
- outlineBackground: {
112
- default: colors.errorTint0,
113
- hover: colors.errorTint1,
114
- active: colors.errorTint2
115
- },
116
- border: {
117
- default: colors.error,
118
- hover: colors.errorShade1,
119
- active: colors.errorShade2
120
- },
121
- divider: lightScale.scale2
122
- },
123
- caution: {
124
- color: {
125
- default: white,
126
- hover: white,
127
- active: white
128
- },
129
- outlineColor: {
130
- default: lightScale.scale10,
131
- hover: lightScale.scale10,
132
- active: lightScale.scale10
133
- },
134
- background: {
135
- default: colors.warning,
136
- hover: colors.warningShade1,
137
- active: colors.warningShade2
138
- },
139
- outlineBackground: {
140
- default: colors.warningTint0,
141
- hover: colors.warningTint1,
142
- active: colors.warningTint2
143
- },
144
- border: {
145
- default: colors.warning,
146
- hover: colors.warningShade1,
147
- active: colors.warningShade2
148
- },
149
- divider: lightScale.scale2
150
- },
151
- subtle: {
152
- color: {
153
- default: colors.brand,
154
- hover: colors.brand,
155
- active: colors.brand
156
- },
157
- outlineColor: {
158
- default: colors.brand,
159
- hover: colors.brand,
160
- active: colors.brand
161
- },
162
- secondaryColor: {
163
- default: lightScale.scale10,
164
- hover: lightScale.scale10,
165
- active: lightScale.scale10
166
- },
167
- positiveColor: {
168
- default: colors.success,
169
- hover: colors.success,
170
- active: colors.success
171
- },
172
- negativeColor: {
173
- default: colors.error,
174
- hover: colors.error,
175
- active: colors.error
176
- },
177
- cautionColor: {
178
- default: colors.warning,
179
- hover: colors.warning,
180
- active: colors.warning
181
- },
182
- background: {
183
- default: 'transparent',
184
- hover: lightScale.scale1,
185
- active: lightScale.scale2
186
- },
187
- outlineBackground: {
188
- default: 'transparent',
189
- hover: lightScale.scale1,
190
- active: lightScale.scale2
191
- },
192
- border: {
193
- default: 'transparent',
194
- hover: lightScale.scale2,
195
- active: lightScale.scale2
196
- },
197
- divider: lightScale.scale2
198
- },
199
- link: {
200
- color: {
201
- default: colors.brand,
202
- hover: colors.brandShade1,
203
- active: colors.brandShade2
204
- },
205
- outlineColor: {
206
- default: colors.brand,
207
- hover: colors.brandShade1,
208
- active: colors.brandShade2
209
- },
210
- secondaryColor: {
211
- default: lightScale.scale8,
212
- hover: lightScale.scale9,
213
- active: lightScale.scale10
214
- },
215
- positiveColor: {
216
- default: colors.success,
217
- hover: colors.successShade1,
218
- active: colors.successShade2
219
- },
220
- negativeColor: {
221
- default: colors.error,
222
- hover: colors.errorShade1,
223
- active: colors.errorShade2
224
- },
225
- cautionColor: {
226
- default: colors.warning,
227
- hover: colors.warningShade1,
228
- active: colors.warningShade2
229
- },
230
- background: {
231
- default: 'transparent',
232
- hover: 'transparent',
233
- active: 'transparent'
234
- },
235
- outlineBackground: {
236
- default: 'transparent',
237
- hover: 'transparent',
238
- active: 'transparent'
239
- },
240
- border: {
241
- default: 'transparent',
242
- hover: 'transparent',
243
- active: 'transparent'
244
- },
245
- divider: 'transparent'
246
- },
247
- disabled: {
248
- color: {
249
- default: lightScale.scale4,
250
- hover: lightScale.scale4,
251
- active: lightScale.scale4
252
- },
253
- outlineColor: {
254
- default: lightScale.scale4,
255
- hover: lightScale.scale4,
256
- active: lightScale.scale4
257
- },
258
- background: {
259
- default: lightScale.scale1,
260
- hover: lightScale.scale1,
261
- active: lightScale.scale1
262
- },
263
- outlineBackground: {
264
- default: lightScale.scale0,
265
- hover: lightScale.scale0,
266
- active: lightScale.scale0
267
- },
268
- border: {
269
- default: lightScale.scale1,
270
- hover: lightScale.scale1,
271
- active: lightScale.scale1
272
- },
273
- divider: lightScale.scale1
274
- },
275
- color: {
276
- default: white
277
- }
278
- },
279
- toggleButton: {
280
- ...index_js_button,
281
- primary: {
282
- color: {
283
- default: lightScale.scale10,
284
- hover: lightScale.scale10,
285
- active: lightScale.scale10
286
- },
287
- background: {
288
- default: colors.brandTint0,
289
- hover: colors.brandTint2,
290
- active: colors.brandTint4
291
- },
292
- border: {
293
- default: colors.brand,
294
- hover: colors.brand,
295
- active: colors.brand
296
- }
297
- },
298
- secondary: {
299
- color: {
300
- default: lightScale.scale10,
301
- hover: lightScale.scale10,
302
- active: lightScale.scale10
303
- },
304
- background: {
305
- default: lightScale.scale0,
306
- hover: lightScale.scale1,
307
- active: lightScale.scale3
308
- },
309
- border: {
310
- default: lightScale.background5,
311
- hover: lightScale.background5,
312
- active: lightScale.background5
313
- }
314
- },
315
- negative: {
316
- color: {
317
- default: lightScale.scale10,
318
- hover: lightScale.scale10,
319
- active: lightScale.scale10
320
- },
321
- background: {
322
- default: colors.errorTint0,
323
- hover: colors.errorTint2,
324
- active: colors.errorTint4
325
- },
326
- border: {
327
- default: colors.error,
328
- hover: colors.error,
329
- active: colors.error
330
- }
331
- },
332
- positive: {
333
- color: {
334
- default: lightScale.scale10,
335
- hover: lightScale.scale10,
336
- active: lightScale.scale10
337
- },
338
- background: {
339
- default: colors.successTint0,
340
- hover: colors.successTint2,
341
- active: colors.successTint4
342
- },
343
- border: {
344
- default: colors.success,
345
- hover: colors.success,
346
- active: colors.success
347
- }
348
- },
349
- caution: {
350
- color: {
351
- default: lightScale.scale10,
352
- hover: lightScale.scale10,
353
- active: lightScale.scale10
354
- },
355
- background: {
356
- default: colors.warningTint0,
357
- hover: colors.warningTint2,
358
- active: colors.warningTint4
359
- },
360
- border: {
361
- default: colors.warning,
362
- hover: colors.warning,
363
- active: colors.warning
364
- }
365
- },
366
- disabled: {
367
- color: {
368
- default: lightScale.scale4,
369
- hover: lightScale.scale4,
370
- active: lightScale.scale4
371
- },
372
- background: {
373
- default: lightScale.scale0,
374
- hover: lightScale.scale0,
375
- active: lightScale.scale0
376
- },
377
- border: {
378
- default: lightScale.scale1,
379
- hover: lightScale.scale1,
380
- active: lightScale.scale1
381
- }
382
- }
383
- },
384
- calendar: {
385
- background: {
386
- container: colors.contrast10,
387
- hover: lightScale.scale1,
388
- active: colors.brand,
389
- activeHover: colors.brandShade1,
390
- activeRange: colors.brandTint4
391
- },
392
- color: {
393
- disabled: lightScale.scale4,
394
- default: lightScale.scale10,
395
- active: colors.contrast10,
396
- current: colors.brand,
397
- outside: lightScale.scale6,
398
- weekday: lightScale.scale8,
399
- monthYear: lightScale.scale8,
400
- iconDefault: lightScale.scale6,
401
- iconDisabled: lightScale.scale2,
402
- iconHover: lightScale.scale10
403
- }
404
- },
405
- defaultBorder: `1px solid ${lightScale.scale1}`,
406
- formControl: {
407
- color: {
408
- default: lightScale.scale8,
409
- hover: lightScale.scale10,
410
- active: colors.brand,
411
- activeHover: colors.brandShade1,
412
- disabled: lightScale.scale4
413
- }
414
- },
415
- input: {
416
- borderRadius: 4,
417
- background: {
418
- default: lightScale.scale0,
419
- hover: lightScale.scale1,
420
- focused: lightScale.scale1,
421
- disabled: lightScale.scale0,
422
- invalid: colors.errorTint2,
423
- invalidHover: colors.errorTint1
424
- },
425
- color: {
426
- default: lightScale.scale10,
427
- disabled: lightScale.scale4,
428
- placeholder: lightScale.scale6,
429
- description: lightScale.scale6,
430
- descriptionError: colors.error
431
- },
432
- borderColor: {
433
- default: lightScale.scale6,
434
- hover: lightScale.scale8,
435
- focused: colors.brand,
436
- disabled: lightScale.scale4,
437
- error: colors.error
438
- },
439
- labelColor: {
440
- default: lightScale.scale8,
441
- hover: lightScale.scale8,
442
- filled: lightScale.scale6,
443
- focused: colors.brand,
444
- disabled: lightScale.scale4
445
- }
446
- },
447
- menu: {
448
- background: white
449
- },
450
- menuItem: {
451
- borderColor: colors.brand,
452
- background: {
453
- active: lightScale.scale0,
454
- hover: lightScale.scale1,
455
- inactive: 'transparent'
456
- },
457
- color: {
458
- active: lightScale.scale10,
459
- hover: lightScale.scale10,
460
- inactive: lightScale.scale6
461
- }
462
- },
463
- modal: {
464
- background: colors.contrast10,
465
- color: {
466
- header: lightScale.scale10,
467
- body: lightScale.scale6
468
- }
469
- },
470
- options: {
471
- background: colors.contrast10,
472
- backdropFilter: void 0
473
- },
474
- optionItem: {
475
- background: {
476
- hover: lightScale.scale0,
477
- active: lightScale.scale1,
478
- inactive: 'transparent'
479
- },
480
- color: {
481
- active: lightScale.scale10,
482
- inactive: lightScale.scale10,
483
- accent: colors.brand
484
- }
485
- },
486
- table: {
487
- color: {
488
- header: lightScale.scale6,
489
- body: lightScale.scale10
490
- },
491
- backgroundLevel: {
492
- 0: lightScale.background0,
493
- 1: lightScale.background1,
494
- 2: lightScale.background2,
495
- 3: lightScale.background3,
496
- 4: lightScale.background4,
497
- 5: lightScale.background5
498
- },
499
- borderColor: lightScale.scale1
500
- },
501
- tag: {
502
- default: {
503
- background: lightScale.scale1,
504
- backgroundHover: lightScale.scale2,
505
- backgroundDisabled: lightScale.scale0
506
- },
507
- error: {
508
- background: colors.errorTint2,
509
- backgroundHover: colors.error,
510
- backgroundDisabled: colors.errorTint1
511
- },
512
- success: {
513
- background: colors.successTint2,
514
- backgroundHover: colors.success,
515
- backgroundDisabled: colors.successTint1
516
- },
517
- warning: {
518
- background: colors.warningTint2,
519
- backgroundHover: colors.warning,
520
- backgroundDisabled: colors.warningTint1
521
- }
522
- },
523
- toast: {
524
- color: lightScale.scale10,
525
- background: {
526
- default: '#FFE6F5',
527
- info: '#E0F9FF',
528
- success: '#E4FFE0',
529
- warning: '#FFF5CC',
530
- error: '#FFD6E0'
531
- },
532
- border: {
533
- default: lightScale.scale8,
534
- info: colors.brand,
535
- success: colors.success,
536
- warning: colors.warning,
537
- error: colors.error
538
- }
539
- },
540
- toggle: {
541
- slider: colors.contrast10
542
- },
543
- tooltip: {
544
- background: '#FFF',
545
- color: {
546
- default: lightScale.scale10,
547
- subtext: lightScale.scale6
548
- }
549
- },
550
- editor: {
551
- highlight: {
552
- yellow: colors.alert,
553
- blue: colors.brandDarkShade1,
554
- red: colors.error,
555
- green: colors.success,
556
- orange: colors.warning
557
- }
558
- }
559
- };
560
- const light_light = light;
561
- export { light_light as default };
@@ -1,22 +0,0 @@
1
- declare const lightScale: {
2
- scale0: string;
3
- scale1: string;
4
- scale2: string;
5
- scale3: string;
6
- scale4: string;
7
- scale5: string;
8
- scale6: string;
9
- scale7: string;
10
- scale8: string;
11
- scale9: string;
12
- scale10: string;
13
- accent: string;
14
- accentShade: string;
15
- background0: string;
16
- background1: string;
17
- background2: string;
18
- background3: string;
19
- background4: string;
20
- background5: string;
21
- };
22
- export default lightScale;
@@ -1,35 +0,0 @@
1
- import colors from "../colors.js";
2
- const scale0 = colors.grayscale0;
3
- const scale1 = colors.grayscale1;
4
- const scale2 = colors.grayscale2;
5
- const scale3 = colors.grayscale3;
6
- const scale4 = colors.grayscale4;
7
- const scale5 = colors.grayscale5;
8
- const scale6 = colors.grayscale6;
9
- const scale7 = colors.grayscale7;
10
- const scale8 = colors.grayscale8;
11
- const scale9 = colors.grayscale9;
12
- const scale10 = colors.grayscale10;
13
- const lightScale = {
14
- scale0,
15
- scale1,
16
- scale2,
17
- scale3,
18
- scale4,
19
- scale5,
20
- scale6,
21
- scale7,
22
- scale8,
23
- scale9,
24
- scale10,
25
- accent: colors.brand,
26
- accentShade: colors.brandShade1,
27
- background0: '#FFFDF2',
28
- background1: '#F0EEE3',
29
- background2: '#E1E5DC',
30
- background3: '#D2D8CF',
31
- background4: '#C3CBC2',
32
- background5: '#B4BEB5'
33
- };
34
- const light_lightScale = lightScale;
35
- export { light_lightScale as default };