@ornikar/kitt-universal 34.0.0 → 35.0.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.
@@ -1,2750 +0,0 @@
1
- const hex2rgba = (hex, alpha = 1) => {
2
- const r = parseInt(hex.slice(1, 3), 16);
3
- const g = parseInt(hex.slice(3, 5), 16);
4
- const b = parseInt(hex.slice(5, 7), 16);
5
- return `rgba(${r}, ${g}, ${b}, ${alpha})`;
6
- };
7
-
8
- const createColorScale = colorScale => colorScale;
9
-
10
- // WARNING
11
- // If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
12
- const colorScales = {
13
- deepPurple: createColorScale({
14
- 5: '#936C93',
15
- 6: '#7A587A',
16
- 7: '#6E4D6E',
17
- 8: '#563B56',
18
- 9: '#452F45'
19
- }),
20
- beige: createColorScale({
21
- 1: '#F7F4EE',
22
- 2: '#F1ECE4',
23
- 3: '#EAE3D6',
24
- 4: '#E5DCCA',
25
- 5: '#DDD0B8',
26
- 6: '#C1B59F'
27
- }),
28
- lightning: createColorScale({
29
- 4: '#FFF966',
30
- 5: '#FFF500',
31
- 8: '#594D0D',
32
- 9: '#43390A'
33
- }),
34
- rainbow: createColorScale({
35
- pink: '#E4A4F9',
36
- brick: '#951D12',
37
- orange: '#DB6E2E',
38
- gold: '#9A7600',
39
- sun: '#EFD346',
40
- 'green-pine': '#1C5D47',
41
- 'green-grass': '#4DA00A',
42
- 'green-apple': '#DEF985',
43
- 'blue-electric': '#2850C4',
44
- 'blue-sky': '#B2F0FD'
45
- }),
46
- grey: createColorScale({
47
- 0: '#ffffff',
48
- 1: '#ECECEC',
49
- 2: '#CDCED0',
50
- 3: '#A8A8A8',
51
- 5: '#838383',
52
- 7: '#505050',
53
- 9: '#101010'
54
- }),
55
- blue: createColorScale({
56
- 1: '#E9F4FC',
57
- 2: '#BCDFF6',
58
- 6: '#1772AB',
59
- 7: '#125A87'
60
- }),
61
- green: createColorScale({
62
- 1: '#ECFEDD',
63
- 2: '#DBFAC1',
64
- 6: '#438D06',
65
- 7: '#357105'
66
- }),
67
- yellow: createColorScale({
68
- 1: '#FDF8E7',
69
- 2: '#FAEBB8',
70
- 6: '#EFC11F',
71
- 7: '#BA930B'
72
- }),
73
- red: createColorScale({
74
- 1: '#FDE4E3',
75
- 2: '#FAB8B8',
76
- 6: '#E2483D',
77
- 7: '#BD100F'
78
- }),
79
- mauve: createColorScale({
80
- 1: '#F8E7FF',
81
- 2: '#F1D0FB',
82
- 3: '#E4A4F9',
83
- 4: '#D283EC'
84
- }),
85
- 'beige-alpha': createColorScale({
86
- '25': '#C1B59F40',
87
- '40': '#C1B59F66',
88
- '50': '#C1B59F80'
89
- }),
90
- 'grey-alpha': createColorScale({
91
- '25': '#10101040',
92
- '35': '#10101059',
93
- '50': '#10101080'
94
- }),
95
- 'white-alpha': createColorScale({
96
- '10': '#FFFFFF1A',
97
- '20': '#FFFFFF33',
98
- '60': '#FFFFFF99',
99
- '80': '#FFFFFFCC',
100
- '90': '#FFFFFFE5'
101
- })
102
- };
103
- const transformColorScalesToTokens = () => {
104
- return Object.fromEntries(Object.entries(colorScales).flatMap(([colorName, colorScale]) => {
105
- return Object.entries(colorScale).map(([scaleNumber, colorValue]) => {
106
- return [`${colorName}.${scaleNumber}`, colorValue];
107
- });
108
- }));
109
- };
110
- const deepPurpleColorPalette = {
111
- ...transformColorScalesToTokens(),
112
- white: '#FFFFFF',
113
- black: '#000000',
114
- transparent: 'transparent'
115
- };
116
-
117
- const colors = {
118
- primary: deepPurpleColorPalette['deepPurple.8'],
119
- primaryLight: deepPurpleColorPalette['deepPurple.8'],
120
- accent: deepPurpleColorPalette['beige.1'],
121
- accentLight: deepPurpleColorPalette['beige.1'],
122
- success: deepPurpleColorPalette['green.6'],
123
- correct: deepPurpleColorPalette['green.6'],
124
- danger: deepPurpleColorPalette['red.6'],
125
- info: deepPurpleColorPalette['blue.6'],
126
- warning: deepPurpleColorPalette['yellow.6'],
127
- separator: deepPurpleColorPalette['beige.3'],
128
- white: deepPurpleColorPalette['grey.0'],
129
- black: deepPurpleColorPalette['grey.9'],
130
- blackLight: deepPurpleColorPalette['grey.5'],
131
- blackAnthracite: deepPurpleColorPalette['grey.7'],
132
- uiBackground: deepPurpleColorPalette['beige.1'],
133
- uiBackgroundLight: deepPurpleColorPalette['grey.0'],
134
- transparent: deepPurpleColorPalette.transparent,
135
- disabled: deepPurpleColorPalette['grey.1'],
136
- overlay: {
137
- dark: deepPurpleColorPalette['grey-alpha.50'],
138
- light: deepPurpleColorPalette['white-alpha.80']
139
- },
140
- // Bumper semantic tokens
141
- // Should be kept in sync with the light theme in bumper
142
- // https://github.com/ornikar/kitt/blob/79e367e962c957c016c4df67dbcf515c8f45ff0e/@ornikar/bumper/src/themes/light.ts#L6
143
- bumper: {
144
- content: {
145
- base: {
146
- hi: deepPurpleColorPalette['grey.9'],
147
- mid: deepPurpleColorPalette['grey.7'],
148
- low: deepPurpleColorPalette['grey.5'],
149
- onContrasted: {
150
- hi: deepPurpleColorPalette['grey.0'],
151
- mid: deepPurpleColorPalette['white-alpha.80'],
152
- low: deepPurpleColorPalette['white-alpha.60']
153
- }
154
- },
155
- accent: deepPurpleColorPalette['deepPurple.8'],
156
- promo: deepPurpleColorPalette['lightning.9'],
157
- info: deepPurpleColorPalette['blue.7'],
158
- success: deepPurpleColorPalette['green.7'],
159
- warning: deepPurpleColorPalette['yellow.7'],
160
- danger: deepPurpleColorPalette['red.7'],
161
- muted: deepPurpleColorPalette['beige.6'],
162
- disabled: deepPurpleColorPalette['grey.3']
163
- },
164
- bg: {
165
- base: {
166
- hi: {
167
- default: deepPurpleColorPalette['beige.2'],
168
- pressed: deepPurpleColorPalette['beige.3']
169
- },
170
- mid: {
171
- default: deepPurpleColorPalette['beige.1'],
172
- pressed: deepPurpleColorPalette['beige.2']
173
- },
174
- low: {
175
- default: deepPurpleColorPalette['grey.0'],
176
- pressed: deepPurpleColorPalette['beige.1']
177
- }
178
- },
179
- accent: {
180
- default: deepPurpleColorPalette['deepPurple.8'],
181
- pressed: deepPurpleColorPalette['deepPurple.7']
182
- },
183
- promo: {
184
- hi: {
185
- default: deepPurpleColorPalette['lightning.9'],
186
- pressed: deepPurpleColorPalette['lightning.8']
187
- },
188
- mid: {
189
- default: deepPurpleColorPalette['lightning.5'],
190
- pressed: deepPurpleColorPalette['lightning.4']
191
- }
192
- },
193
- highlight: {
194
- mid: {
195
- default: deepPurpleColorPalette['mauve.1'],
196
- pressed: deepPurpleColorPalette['mauve.2']
197
- },
198
- hi: {
199
- default: deepPurpleColorPalette['mauve.3'],
200
- pressed: deepPurpleColorPalette['mauve.4']
201
- }
202
- },
203
- info: {
204
- hi: deepPurpleColorPalette['blue.6'],
205
- mid: deepPurpleColorPalette['blue.1']
206
- },
207
- success: {
208
- hi: deepPurpleColorPalette['green.6'],
209
- mid: deepPurpleColorPalette['green.1']
210
- },
211
- warning: {
212
- hi: deepPurpleColorPalette['yellow.6'],
213
- mid: deepPurpleColorPalette['yellow.1']
214
- },
215
- danger: {
216
- hi: deepPurpleColorPalette['red.6'],
217
- mid: deepPurpleColorPalette['red.1']
218
- },
219
- disabled: {
220
- hi: deepPurpleColorPalette['grey.3'],
221
- mid: deepPurpleColorPalette['grey.1']
222
- },
223
- overlay: deepPurpleColorPalette['grey-alpha.50']
224
- },
225
- border: {
226
- base: {
227
- hi: deepPurpleColorPalette['grey.9'],
228
- mid: deepPurpleColorPalette['beige.3'],
229
- low: deepPurpleColorPalette['beige.2'],
230
- onContrasted: {
231
- hi: deepPurpleColorPalette['grey.0'],
232
- mid: deepPurpleColorPalette['white-alpha.20']
233
- },
234
- accent: deepPurpleColorPalette['deepPurple.8']
235
- },
236
- info: deepPurpleColorPalette['blue.6'],
237
- success: deepPurpleColorPalette['green.6'],
238
- warning: deepPurpleColorPalette['yellow.6'],
239
- danger: deepPurpleColorPalette['red.6'],
240
- disabled: deepPurpleColorPalette['grey.2'],
241
- highlight: deepPurpleColorPalette['mauve.3']
242
- }
243
- }
244
- };
245
-
246
- const actionCard = {
247
- borderRadius: 8,
248
- primary: {
249
- default: {
250
- backgroundColor: colors.uiBackgroundLight,
251
- borderColor: deepPurpleColorPalette['beige.2'],
252
- borderWidth: 1,
253
- shadow: {
254
- color: '',
255
- offsetX: 0,
256
- offsetY: 0,
257
- opacity: 0,
258
- radius: 0
259
- },
260
- translateY: 0
261
- },
262
- hovered: {
263
- backgroundColor: deepPurpleColorPalette['beige.1'],
264
- borderColor: deepPurpleColorPalette['beige.2'],
265
- borderWidth: 1,
266
- shadow: {
267
- color: '',
268
- offsetX: 0,
269
- offsetY: 0,
270
- opacity: 0,
271
- radius: 0
272
- },
273
- translateY: 0
274
- },
275
- disabled: {
276
- backgroundColor: deepPurpleColorPalette['grey.1'],
277
- borderColor: deepPurpleColorPalette['grey.1'],
278
- borderWidth: 1,
279
- shadow: {
280
- color: '',
281
- offsetX: 0,
282
- offsetY: 0,
283
- opacity: 0,
284
- radius: 0
285
- },
286
- translateY: 0
287
- },
288
- focused: {
289
- backgroundColor: deepPurpleColorPalette['beige.1'],
290
- borderColor: deepPurpleColorPalette['beige.2'],
291
- borderWidth: 1,
292
- shadow: {
293
- color: '',
294
- offsetX: 0,
295
- offsetY: 0,
296
- opacity: 0,
297
- radius: 0
298
- },
299
- translateY: 0
300
- },
301
- pressed: {
302
- backgroundColor: deepPurpleColorPalette['beige.1'],
303
- borderColor: deepPurpleColorPalette['beige.2'],
304
- borderWidth: 1,
305
- shadow: {
306
- color: '',
307
- offsetX: 0,
308
- offsetY: 0,
309
- opacity: 0,
310
- radius: 0
311
- },
312
- translateY: 0
313
- }
314
- },
315
- 'primary-border-soft': {
316
- default: {
317
- backgroundColor: colors.uiBackgroundLight,
318
- borderColor: deepPurpleColorPalette['beige.3'],
319
- borderWidth: 1,
320
- shadow: {
321
- color: deepPurpleColorPalette['beige.3'],
322
- offsetX: 0,
323
- offsetY: 4,
324
- opacity: 1,
325
- radius: 0
326
- },
327
- translateY: 0
328
- },
329
- hovered: {
330
- backgroundColor: deepPurpleColorPalette['beige.1'],
331
- borderColor: deepPurpleColorPalette['beige.3'],
332
- borderWidth: 1,
333
- shadow: {
334
- color: deepPurpleColorPalette['beige.3'],
335
- offsetX: 0,
336
- offsetY: 4,
337
- opacity: 1,
338
- radius: 0
339
- },
340
- translateY: 0
341
- },
342
- disabled: {
343
- backgroundColor: deepPurpleColorPalette['grey.1'],
344
- borderColor: deepPurpleColorPalette['grey.1'],
345
- borderWidth: 1,
346
- shadow: {
347
- color: '',
348
- offsetX: 0,
349
- offsetY: 0,
350
- opacity: 0,
351
- radius: 0
352
- },
353
- translateY: 0
354
- },
355
- focused: {
356
- backgroundColor: deepPurpleColorPalette['beige.1'],
357
- borderColor: deepPurpleColorPalette['beige.3'],
358
- borderWidth: 1,
359
- shadow: {
360
- color: deepPurpleColorPalette['beige.3'],
361
- offsetX: 0,
362
- offsetY: 4,
363
- opacity: 1,
364
- radius: 0
365
- },
366
- translateY: 0
367
- },
368
- pressed: {
369
- backgroundColor: deepPurpleColorPalette['beige.1'],
370
- borderColor: deepPurpleColorPalette['beige.3'],
371
- borderWidth: 1,
372
- shadow: {
373
- color: '',
374
- offsetX: 0,
375
- offsetY: 0,
376
- opacity: 0,
377
- radius: 0
378
- },
379
- translateY: 3
380
- }
381
- },
382
- 'primary-border-hard': {
383
- default: {
384
- backgroundColor: colors.uiBackgroundLight,
385
- borderColor: deepPurpleColorPalette['deepPurple.8'],
386
- borderWidth: 1,
387
- shadow: {
388
- color: deepPurpleColorPalette['deepPurple.8'],
389
- offsetX: 0,
390
- offsetY: 4,
391
- opacity: 1,
392
- radius: 0
393
- },
394
- translateY: 0
395
- },
396
- hovered: {
397
- backgroundColor: deepPurpleColorPalette['beige.1'],
398
- borderColor: deepPurpleColorPalette['deepPurple.8'],
399
- borderWidth: 1,
400
- shadow: {
401
- color: deepPurpleColorPalette['deepPurple.8'],
402
- offsetX: 0,
403
- offsetY: 4,
404
- opacity: 1,
405
- radius: 0
406
- },
407
- translateY: 0
408
- },
409
- disabled: {
410
- backgroundColor: deepPurpleColorPalette['grey.1'],
411
- borderColor: deepPurpleColorPalette['grey.1'],
412
- borderWidth: 1,
413
- shadow: {
414
- color: '',
415
- offsetX: 0,
416
- offsetY: 0,
417
- opacity: 0,
418
- radius: 0
419
- },
420
- translateY: 0
421
- },
422
- focused: {
423
- backgroundColor: deepPurpleColorPalette['beige.1'],
424
- borderColor: deepPurpleColorPalette['deepPurple.8'],
425
- borderWidth: 1,
426
- shadow: {
427
- color: deepPurpleColorPalette['deepPurple.8'],
428
- offsetX: 0,
429
- offsetY: 4,
430
- opacity: 1,
431
- radius: 0
432
- },
433
- translateY: 0
434
- },
435
- pressed: {
436
- backgroundColor: deepPurpleColorPalette['beige.1'],
437
- borderColor: deepPurpleColorPalette['deepPurple.8'],
438
- borderWidth: 1,
439
- shadow: {
440
- color: '',
441
- offsetX: 0,
442
- offsetY: 0,
443
- opacity: 0,
444
- radius: 0
445
- },
446
- translateY: 3
447
- }
448
- },
449
- secondary: {
450
- default: {
451
- backgroundColor: deepPurpleColorPalette['beige.1'],
452
- borderColor: deepPurpleColorPalette.transparent,
453
- borderWidth: 0,
454
- shadow: {
455
- color: '',
456
- offsetX: 0,
457
- offsetY: 0,
458
- opacity: 0,
459
- radius: 0
460
- },
461
- translateY: 0
462
- },
463
- disabled: {
464
- backgroundColor: deepPurpleColorPalette['grey.1'],
465
- borderColor: deepPurpleColorPalette['grey.1'],
466
- borderWidth: 1,
467
- shadow: {
468
- color: '',
469
- offsetX: 0,
470
- offsetY: 0,
471
- opacity: 0,
472
- radius: 0
473
- },
474
- translateY: 0
475
- },
476
- hovered: {
477
- backgroundColor: deepPurpleColorPalette['beige.2'],
478
- borderColor: deepPurpleColorPalette.transparent,
479
- borderWidth: 0,
480
- shadow: {
481
- color: '',
482
- offsetX: 0,
483
- offsetY: 0,
484
- opacity: 0,
485
- radius: 0
486
- },
487
- translateY: 0
488
- },
489
- focused: {
490
- backgroundColor: deepPurpleColorPalette['beige.2'],
491
- borderColor: deepPurpleColorPalette.transparent,
492
- borderWidth: 0,
493
- shadow: {
494
- color: '',
495
- offsetX: 0,
496
- offsetY: 0,
497
- opacity: 0,
498
- radius: 0
499
- },
500
- translateY: 0
501
- },
502
- pressed: {
503
- backgroundColor: deepPurpleColorPalette['beige.2'],
504
- borderColor: deepPurpleColorPalette.transparent,
505
- borderWidth: 0,
506
- shadow: {
507
- color: '',
508
- offsetX: 0,
509
- offsetY: 0,
510
- opacity: 0,
511
- radius: 0
512
- },
513
- translateY: 0
514
- }
515
- },
516
- highlight: {
517
- default: {
518
- backgroundColor: deepPurpleColorPalette['beige.1'],
519
- borderColor: deepPurpleColorPalette['beige.3'],
520
- borderWidth: 1,
521
- shadow: {
522
- color: deepPurpleColorPalette['beige.3'],
523
- offsetX: 0,
524
- offsetY: 4,
525
- opacity: 1,
526
- radius: 0
527
- },
528
- translateY: 0
529
- },
530
- disabled: {
531
- backgroundColor: deepPurpleColorPalette['grey.1'],
532
- borderColor: deepPurpleColorPalette['grey.1'],
533
- borderWidth: 1,
534
- shadow: {
535
- color: '',
536
- offsetX: 0,
537
- offsetY: 0,
538
- opacity: 0,
539
- radius: 0
540
- },
541
- translateY: 0
542
- },
543
- hovered: {
544
- backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
545
- borderColor: deepPurpleColorPalette['beige.3'],
546
- borderWidth: 1,
547
- shadow: {
548
- color: deepPurpleColorPalette['beige.3'],
549
- offsetX: 0,
550
- offsetY: 4,
551
- opacity: 1,
552
- radius: 0
553
- },
554
- translateY: 0
555
- },
556
- focused: {
557
- backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
558
- borderColor: deepPurpleColorPalette['beige.3'],
559
- borderWidth: 1,
560
- shadow: {
561
- color: deepPurpleColorPalette['beige.3'],
562
- offsetX: 0,
563
- offsetY: 4,
564
- opacity: 1,
565
- radius: 0
566
- },
567
- translateY: 0
568
- },
569
- pressed: {
570
- backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
571
- borderColor: deepPurpleColorPalette['beige.3'],
572
- borderWidth: 1,
573
- shadow: {
574
- color: '',
575
- offsetX: 0,
576
- offsetY: 0,
577
- opacity: 0,
578
- radius: 0
579
- },
580
- translateY: 3
581
- }
582
- }
583
- };
584
-
585
- const defaultAvatarSize = 40;
586
- const defaultAvatarIconSize = 20;
587
- const largeAvatarSize = 120;
588
- const largeAvatarIconSize = 30;
589
- const avatar = {
590
- borderRadius: 4,
591
- size: defaultAvatarSize,
592
- iconSize: defaultAvatarIconSize,
593
- default: {
594
- color: deepPurpleColorPalette['white-alpha.80'],
595
- backgroundColor: deepPurpleColorPalette['deepPurple.8']
596
- },
597
- light: {
598
- color: deepPurpleColorPalette['beige.6'],
599
- backgroundColor: deepPurpleColorPalette['beige.1']
600
- },
601
- dark: {
602
- color: deepPurpleColorPalette['white-alpha.80'],
603
- backgroundColor: deepPurpleColorPalette['grey.9']
604
- },
605
- disabled: {
606
- color: deepPurpleColorPalette['grey.3'],
607
- backgroundColor: deepPurpleColorPalette['grey.1']
608
- },
609
- large: {
610
- borderRadius: 8,
611
- size: largeAvatarSize,
612
- iconSize: largeAvatarIconSize
613
- }
614
- };
615
-
616
- const spacing = 4;
617
-
618
- const bottomSheet = {
619
- container: {
620
- padding: spacing * 4
621
- },
622
- handle: {
623
- backgroundColor: deepPurpleColorPalette['beige.3']
624
- }
625
- };
626
-
627
- // Strongly typed theme so every new type/variant/size can't be added
628
- // without defined color & backgroundColor or icon size
629
-
630
- const button = {
631
- borderRadius: 4,
632
- borderWidth: {
633
- focus: 3
634
- },
635
- minWidth: 40,
636
- maxWidth: 335,
637
- height: {
638
- default: 40,
639
- medium: 48
640
- },
641
- minHeight: {
642
- default: 40,
643
- medium: 48
644
- },
645
- maxHeight: 48,
646
- icon: {
647
- medium: {
648
- size: 24
649
- },
650
- default: {
651
- size: 20
652
- }
653
- },
654
- padding: {
655
- default: {
656
- horizontal: 16,
657
- vertical: 8
658
- },
659
- medium: {
660
- horizontal: 24,
661
- vertical: 12
662
- }
663
- },
664
- transition: {
665
- duration: '200ms',
666
- timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
667
- },
668
- focusBorderColor: deepPurpleColorPalette['blue.2'],
669
- primary: {
670
- default: {
671
- backgroundColor: {
672
- default: colors.primary,
673
- hover: deepPurpleColorPalette['deepPurple.7'],
674
- pressed: deepPurpleColorPalette['deepPurple.7'],
675
- disabled: deepPurpleColorPalette['grey.3'],
676
- focus: colors.primary
677
- },
678
- color: {
679
- default: colors.white,
680
- hover: colors.white,
681
- pressed: colors.white,
682
- disabled: colors.disabled,
683
- focus: colors.white
684
- }
685
- },
686
- revert: {
687
- backgroundColor: {
688
- default: colors.white,
689
- hover: deepPurpleColorPalette['white-alpha.80'],
690
- pressed: deepPurpleColorPalette['white-alpha.80'],
691
- disabled: deepPurpleColorPalette['grey.3'],
692
- focus: colors.white
693
- },
694
- color: {
695
- default: colors.black,
696
- hover: colors.black,
697
- pressed: colors.black,
698
- disabled: colors.disabled,
699
- focus: colors.black
700
- }
701
- }
702
- },
703
- secondary: {
704
- default: {
705
- backgroundColor: {
706
- default: deepPurpleColorPalette['beige-alpha.25'],
707
- hover: deepPurpleColorPalette['beige-alpha.40'],
708
- pressed: deepPurpleColorPalette['beige-alpha.40'],
709
- disabled: colors.disabled,
710
- focus: deepPurpleColorPalette['beige-alpha.25']
711
- },
712
- color: {
713
- default: colors.black,
714
- hover: colors.black,
715
- pressed: colors.black,
716
- disabled: deepPurpleColorPalette['grey.3'],
717
- focus: colors.black
718
- }
719
- },
720
- revert: {
721
- backgroundColor: {
722
- default: deepPurpleColorPalette['white-alpha.10'],
723
- hover: deepPurpleColorPalette['white-alpha.20'],
724
- pressed: deepPurpleColorPalette['white-alpha.20'],
725
- disabled: colors.disabled,
726
- focus: deepPurpleColorPalette['white-alpha.10']
727
- },
728
- color: {
729
- default: colors.white,
730
- hover: deepPurpleColorPalette['white-alpha.80'],
731
- pressed: deepPurpleColorPalette['white-alpha.80'],
732
- disabled: deepPurpleColorPalette['grey.3'],
733
- focus: colors.white
734
- }
735
- }
736
- },
737
- tertiary: {
738
- default: {
739
- backgroundColor: {
740
- default: 'transparent',
741
- hover: 'transparent',
742
- pressed: 'transparent',
743
- disabled: 'transparent',
744
- focus: 'transparent'
745
- },
746
- color: {
747
- default: colors.black,
748
- hover: colors.blackAnthracite,
749
- pressed: colors.blackAnthracite,
750
- disabled: deepPurpleColorPalette['grey.3'],
751
- focus: colors.black
752
- }
753
- },
754
- revert: {
755
- backgroundColor: {
756
- default: 'transparent',
757
- hover: 'transparent',
758
- pressed: 'transparent',
759
- disabled: 'transparent',
760
- focus: 'transparent'
761
- },
762
- color: {
763
- default: colors.white,
764
- hover: deepPurpleColorPalette['white-alpha.80'],
765
- pressed: deepPurpleColorPalette['white-alpha.80'],
766
- disabled: deepPurpleColorPalette['white-alpha.20'],
767
- focus: colors.white
768
- }
769
- }
770
- },
771
- 'tertiary-danger': {
772
- default: {
773
- backgroundColor: {
774
- default: 'transparent',
775
- hover: 'transparent',
776
- pressed: 'transparent',
777
- disabled: 'transparent',
778
- focus: 'transparent'
779
- },
780
- color: {
781
- default: colors.danger,
782
- hover: deepPurpleColorPalette['red.2'],
783
- pressed: deepPurpleColorPalette['red.2'],
784
- disabled: deepPurpleColorPalette['grey.3'],
785
- focus: colors.danger
786
- }
787
- }
788
- }
789
- };
790
-
791
- const buttonBadge = {
792
- backgroundColor: {
793
- default: colors.danger,
794
- disabled: colors.blackLight
795
- },
796
- dimensions: {
797
- withBadge: {
798
- width: 8,
799
- height: 8
800
- },
801
- badgeCount: {
802
- width: 20,
803
- height: 20
804
- }
805
- },
806
- borderRadius: {
807
- withBadge: 5,
808
- badgeCount: 10
809
- }
810
- };
811
-
812
- const card = {
813
- borderRadius: 20,
814
- borderWidth: 2,
815
- primary: {
816
- backgroundColor: colors.uiBackgroundLight,
817
- borderColor: colors.primary
818
- },
819
- secondary: {
820
- backgroundColor: colors.uiBackgroundLight,
821
- borderColor: colors.separator
822
- },
823
- subtle: {
824
- backgroundColor: deepPurpleColorPalette['beige.1'],
825
- borderColor: colors.separator
826
- }
827
- };
828
-
829
- const webAnimationContentDuration$1 = 400;
830
- const webAnimationContentEasing$1 = {
831
- x1: 0.77,
832
- y1: 0,
833
- x2: 0.175,
834
- y2: 1
835
- };
836
- const webAnimationOverlayDuration$1 = 250;
837
- const webAnimationOverlayEasing$1 = {
838
- x1: 0.42,
839
- y1: 0,
840
- x2: 1,
841
- y2: 1
842
- };
843
- const maxWidth = 540;
844
- const overlayHorizontalPadding = 24;
845
- const cardModal = {
846
- borderRadius: spacing * 2,
847
- maxWidth,
848
- maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
849
- minHeight: 280,
850
- shadow: {
851
- color: colors.black,
852
- offsetX: 0,
853
- offsetY: 10,
854
- opacity: 0.15,
855
- radius: 20
856
- },
857
- header: {
858
- height: 56,
859
- borderWidth: 1,
860
- borderColor: colors.separator
861
- },
862
- footer: {
863
- borderWidth: 1,
864
- borderColor: colors.separator
865
- },
866
- overlayPadding: {
867
- horizontal: 24,
868
- vertical: 80,
869
- landscape: {
870
- vertical: 8
871
- }
872
- },
873
- animation: {
874
- overlay: {
875
- duration: webAnimationOverlayDuration$1,
876
- easing: webAnimationOverlayEasing$1
877
- },
878
- content: {
879
- duration: webAnimationContentDuration$1,
880
- easing: webAnimationContentEasing$1
881
- }
882
- }
883
- };
884
-
885
- const choices = {
886
- spacing: {
887
- row: 12,
888
- column: 12
889
- },
890
- item: {
891
- borderRadius: 4,
892
- padding: {
893
- base: 16,
894
- small: 24
895
- },
896
- backgroundColor: {
897
- default: deepPurpleColorPalette['beige.1'],
898
- disabled: deepPurpleColorPalette['grey.1'],
899
- selected: deepPurpleColorPalette['beige.3'],
900
- pressed: deepPurpleColorPalette['beige.2'],
901
- hover: deepPurpleColorPalette['beige.2'],
902
- hoverWhenSelected: deepPurpleColorPalette['beige.3']
903
- },
904
- color: {
905
- default: deepPurpleColorPalette['grey.9'],
906
- disabled: deepPurpleColorPalette['grey.3']
907
- },
908
- border: {
909
- default: {
910
- width: 1,
911
- color: deepPurpleColorPalette['deepPurple.7']
912
- },
913
- disabled: {
914
- width: 1,
915
- color: deepPurpleColorPalette['grey.2']
916
- },
917
- error: {
918
- width: 1,
919
- color: deepPurpleColorPalette['red.6']
920
- }
921
- },
922
- transition: {
923
- property: 'all',
924
- duration: 300,
925
- timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
926
- }
927
- },
928
- description: {
929
- color: {
930
- default: deepPurpleColorPalette['grey.7'],
931
- error: deepPurpleColorPalette['red.6']
932
- }
933
- }
934
- };
935
-
936
- const webAnimationContentDuration = 400;
937
- const webAnimationContentEasing = {
938
- x1: 0.77,
939
- y1: 0,
940
- x2: 0.175,
941
- y2: 1
942
- };
943
- const webAnimationOverlayDuration = 250;
944
- const webAnimationOverlayEasing = {
945
- x1: 0.42,
946
- y1: 0,
947
- x2: 1,
948
- y2: 1
949
- };
950
- const dialogModal = {
951
- borderRadius: spacing * 2,
952
- maxWidth: 540,
953
- overlayPadding: {
954
- horizontal: 24,
955
- vertical: 32
956
- },
957
- shadow: {
958
- color: colors.black,
959
- offsetX: 0,
960
- offsetY: 10,
961
- opacity: 0.15,
962
- radius: 20
963
- },
964
- animation: {
965
- overlay: {
966
- duration: webAnimationOverlayDuration,
967
- easing: webAnimationOverlayEasing
968
- },
969
- content: {
970
- duration: webAnimationContentDuration,
971
- easing: webAnimationContentEasing
972
- }
973
- }
974
- };
975
-
976
- const feedbackMessage = {
977
- minHeight: 60,
978
- danger: {
979
- backgroundColor: colors.danger
980
- },
981
- success: {
982
- backgroundColor: colors.success
983
- },
984
- info: {
985
- backgroundColor: colors.info
986
- },
987
- warning: {
988
- backgroundColor: colors.warning
989
- }
990
- };
991
-
992
- const autocomplete = {
993
- option: {
994
- verticalPadding: 2,
995
- minHeight: 40,
996
- default: {
997
- backgroundColor: colors.white
998
- },
999
- hovered: {
1000
- backgroundColor: deepPurpleColorPalette['beige.1']
1001
- },
1002
- focused: {
1003
- backgroundColor: deepPurpleColorPalette['beige.1']
1004
- },
1005
- selected: {
1006
- backgroundColor: deepPurpleColorPalette['beige.1']
1007
- },
1008
- highlighted: {
1009
- backgroundColor: deepPurpleColorPalette['beige.1']
1010
- },
1011
- pressed: {
1012
- backgroundColor: deepPurpleColorPalette['beige.1']
1013
- }
1014
- },
1015
- optionsContainer: {
1016
- borderRadius: 10,
1017
- backgroundColor: colors.white,
1018
- shadow: {
1019
- color: colors.black,
1020
- offsetX: 0,
1021
- offsetY: 10,
1022
- opacity: 0.15,
1023
- radius: 20
1024
- }
1025
- }
1026
- };
1027
-
1028
- const checkbox = {
1029
- borderWidth: 1,
1030
- borderRadius: 4,
1031
- height: 24,
1032
- width: 24,
1033
- iconSize: 14,
1034
- markColor: colors.uiBackgroundLight,
1035
- textSpacing: 10,
1036
- default: {
1037
- borderColor: colors.separator,
1038
- backgroundColor: colors.uiBackgroundLight
1039
- },
1040
- checked: {
1041
- borderColor: colors.primary,
1042
- backgroundColor: colors.primary
1043
- },
1044
- focus: {
1045
- borderColor: colors.primary,
1046
- backgroundColor: colors.uiBackgroundLight
1047
- },
1048
- hover: {
1049
- borderColor: colors.primary,
1050
- backgroundColor: colors.uiBackgroundLight
1051
- },
1052
- pressed: {
1053
- borderColor: colors.primary,
1054
- backgroundColor: colors.uiBackgroundLight
1055
- },
1056
- disabled: {
1057
- borderColor: colors.separator,
1058
- backgroundColor: colors.disabled
1059
- },
1060
- transition: {
1061
- duration: '200ms',
1062
- timingFunction: 'ease-out'
1063
- }
1064
- };
1065
-
1066
- const datePicker = {
1067
- day: {
1068
- minWidth: 64
1069
- },
1070
- month: {
1071
- minWidth: 64
1072
- },
1073
- year: {
1074
- minWidth: 82
1075
- }
1076
- };
1077
-
1078
- const inputStatesStyle = {
1079
- default: {
1080
- backgroundColor: deepPurpleColorPalette.white,
1081
- borderColor: deepPurpleColorPalette['beige.3'],
1082
- color: deepPurpleColorPalette.black
1083
- },
1084
- pending: {
1085
- backgroundColor: deepPurpleColorPalette.white,
1086
- borderColor: deepPurpleColorPalette['beige.2'],
1087
- color: deepPurpleColorPalette.black
1088
- },
1089
- valid: {
1090
- backgroundColor: deepPurpleColorPalette.white,
1091
- borderColor: deepPurpleColorPalette['beige.3'],
1092
- color: deepPurpleColorPalette.black
1093
- },
1094
- hover: {
1095
- backgroundColor: deepPurpleColorPalette['beige.1'],
1096
- borderColor: deepPurpleColorPalette['beige.4'],
1097
- color: deepPurpleColorPalette.black
1098
- },
1099
- focus: {
1100
- borderColor: deepPurpleColorPalette['deepPurple.8'],
1101
- color: deepPurpleColorPalette.black
1102
- },
1103
- disabled: {
1104
- backgroundColor: deepPurpleColorPalette['grey.1'],
1105
- borderColor: deepPurpleColorPalette['grey.1'],
1106
- color: deepPurpleColorPalette['grey.3']
1107
- },
1108
- invalid: {
1109
- borderColor: deepPurpleColorPalette['beige.2'],
1110
- color: deepPurpleColorPalette.black
1111
- }
1112
- };
1113
- const webAnimationDuration = '200ms';
1114
- const webAnimationTimingFunction = 'ease-in-out';
1115
- const webAnimationProperties = ['border-color', 'background-color'];
1116
- const input = {
1117
- minHeight: 40,
1118
- color: {
1119
- selection: deepPurpleColorPalette['deepPurple.8'],
1120
- placeholder: deepPurpleColorPalette['beige.6']
1121
- },
1122
- borderWidth: 1,
1123
- borderRadius: 4,
1124
- icon: {
1125
- size: 20
1126
- },
1127
- rightContainer: {
1128
- padding: 16
1129
- },
1130
- padding: {
1131
- horizontal: 16,
1132
- vertical: 6
1133
- },
1134
- transition: {
1135
- properties: webAnimationProperties,
1136
- duration: webAnimationDuration,
1137
- timingFunction: webAnimationTimingFunction
1138
- },
1139
- states: inputStatesStyle
1140
- };
1141
-
1142
- const inputField = {
1143
- containerPaddingTop: 5,
1144
- containerPaddingBottom: 10,
1145
- feedbackPaddingTop: 4,
1146
- labelContainerPaddingBottom: 4,
1147
- labelFeedbackMarginLeft: 6
1148
- };
1149
-
1150
- const inputTag = {
1151
- success: {
1152
- backgroundColor: colors.success,
1153
- labelColor: colors.uiBackgroundLight
1154
- },
1155
- danger: {
1156
- backgroundColor: colors.danger,
1157
- labelColor: colors.uiBackgroundLight
1158
- },
1159
- default: {
1160
- backgroundColor: deepPurpleColorPalette['beige.1'],
1161
- labelColor: colors.black
1162
- },
1163
- borderRadius: 10,
1164
- iconSize: 13.5
1165
- };
1166
-
1167
- const radio = {
1168
- size: 24,
1169
- unchecked: {
1170
- borderWidth: 1,
1171
- backgroundColor: colors.uiBackgroundLight,
1172
- borderColor: deepPurpleColorPalette['beige.3']
1173
- },
1174
- checked: {
1175
- backgroundColor: colors.primary,
1176
- borderColor: colors.transparent,
1177
- innerSize: 8,
1178
- innerBackgroundColor: colors.uiBackgroundLight
1179
- },
1180
- hover: {
1181
- backgroundColor: colors.uiBackgroundLight,
1182
- borderColor: colors.primary
1183
- },
1184
- pressed: {
1185
- backgroundColor: colors.uiBackgroundLight,
1186
- borderColor: colors.primary
1187
- },
1188
- disabled: {
1189
- backgroundColor: deepPurpleColorPalette['grey.3'],
1190
- borderColor: colors.transparent,
1191
- innerBackgroundColor: deepPurpleColorPalette['grey.1']
1192
- },
1193
- transition: {
1194
- duration: '200ms',
1195
- timingFunction: 'ease-out'
1196
- }
1197
- };
1198
-
1199
- const radioButtonGroup = {
1200
- item: {
1201
- minHeight: 40,
1202
- borderWidth: 1,
1203
- borderRadius: 4,
1204
- font: {
1205
- color: {
1206
- disabled: deepPurpleColorPalette['grey.3']
1207
- }
1208
- },
1209
- borderColor: {
1210
- default: colors.separator,
1211
- hover: colors.primary,
1212
- pressed: colors.primary,
1213
- active: colors.primary,
1214
- disabled: colors.disabled
1215
- },
1216
- backgroundColor: {
1217
- default: colors.uiBackgroundLight,
1218
- hover: colors.white,
1219
- pressed: colors.primary,
1220
- active: colors.primary,
1221
- disabled: colors.disabled
1222
- },
1223
- padding: {
1224
- horizontal: 18,
1225
- vertical: 6
1226
- },
1227
- transition: {
1228
- property: 'all',
1229
- duration: '200ms',
1230
- timingFunction: 'ease-in-out'
1231
- }
1232
- }
1233
- };
1234
-
1235
- const textArea = {
1236
- minHeight: 120
1237
- };
1238
-
1239
- const timePicker = {
1240
- minWidth: 100
1241
- };
1242
-
1243
- const toggle = {
1244
- primary: {
1245
- enabled: {
1246
- default: {
1247
- height: {
1248
- medium: 26,
1249
- large: 34
1250
- },
1251
- width: {
1252
- medium: 50,
1253
- large: 66
1254
- },
1255
- labelColor: deepPurpleColorPalette.black,
1256
- backgroundColor: {
1257
- checked: deepPurpleColorPalette['deepPurple.8'],
1258
- unchecked: deepPurpleColorPalette['beige.3']
1259
- },
1260
- border: {
1261
- color: 'transparent',
1262
- width: 1
1263
- },
1264
- circle: {
1265
- backgroundColor: deepPurpleColorPalette.white,
1266
- width: {
1267
- medium: 18,
1268
- large: 24
1269
- },
1270
- height: {
1271
- medium: 18,
1272
- large: 24
1273
- },
1274
- marginLeft: {
1275
- medium: 24,
1276
- large: 32
1277
- }
1278
- },
1279
- wrapperBorder: {
1280
- color: 'transparent',
1281
- width: 1
1282
- }
1283
- },
1284
- hovered: {
1285
- height: {
1286
- medium: 26,
1287
- large: 34
1288
- },
1289
- width: {
1290
- medium: 50,
1291
- large: 66
1292
- },
1293
- labelColor: deepPurpleColorPalette.black,
1294
- backgroundColor: {
1295
- checked: deepPurpleColorPalette['deepPurple.7'],
1296
- unchecked: deepPurpleColorPalette['beige.4']
1297
- },
1298
- border: {
1299
- color: 'transparent',
1300
- width: 1
1301
- },
1302
- circle: {
1303
- backgroundColor: deepPurpleColorPalette.white,
1304
- width: {
1305
- medium: 18,
1306
- large: 24
1307
- },
1308
- height: {
1309
- medium: 18,
1310
- large: 24
1311
- },
1312
- marginLeft: {
1313
- medium: 24,
1314
- large: 32
1315
- }
1316
- },
1317
- wrapperBorder: {
1318
- color: 'transparent',
1319
- width: 1
1320
- }
1321
- },
1322
- focused: {
1323
- height: {
1324
- medium: 26,
1325
- large: 34
1326
- },
1327
- width: {
1328
- medium: 50,
1329
- large: 66
1330
- },
1331
- labelColor: deepPurpleColorPalette.black,
1332
- backgroundColor: {
1333
- checked: deepPurpleColorPalette['deepPurple.8'],
1334
- unchecked: deepPurpleColorPalette['beige.3']
1335
- },
1336
- border: {
1337
- color: deepPurpleColorPalette.white,
1338
- width: 1
1339
- },
1340
- circle: {
1341
- backgroundColor: deepPurpleColorPalette.white,
1342
- width: {
1343
- medium: 18,
1344
- large: 24
1345
- },
1346
- height: {
1347
- medium: 18,
1348
- large: 24
1349
- },
1350
- marginLeft: {
1351
- medium: 24,
1352
- large: 32
1353
- }
1354
- },
1355
- wrapperBorder: {
1356
- color: deepPurpleColorPalette.black,
1357
- width: 1
1358
- }
1359
- },
1360
- pressed: {
1361
- height: {
1362
- medium: 26,
1363
- large: 34
1364
- },
1365
- width: {
1366
- medium: 50,
1367
- large: 66
1368
- },
1369
- labelColor: deepPurpleColorPalette.black,
1370
- backgroundColor: {
1371
- checked: deepPurpleColorPalette['deepPurple.8'],
1372
- unchecked: deepPurpleColorPalette['beige.3']
1373
- },
1374
- border: {
1375
- color: deepPurpleColorPalette.white,
1376
- width: 1
1377
- },
1378
- circle: {
1379
- backgroundColor: deepPurpleColorPalette.white,
1380
- width: {
1381
- medium: 18,
1382
- large: 24
1383
- },
1384
- height: {
1385
- medium: 18,
1386
- large: 24
1387
- },
1388
- marginLeft: {
1389
- medium: 24,
1390
- large: 32
1391
- }
1392
- },
1393
- wrapperBorder: {
1394
- color: deepPurpleColorPalette.black,
1395
- width: 1
1396
- }
1397
- }
1398
- },
1399
- disabled: {
1400
- default: {
1401
- height: {
1402
- medium: 26,
1403
- large: 34
1404
- },
1405
- width: {
1406
- medium: 50,
1407
- large: 66
1408
- },
1409
- labelColor: deepPurpleColorPalette['beige.2'],
1410
- backgroundColor: {
1411
- checked: deepPurpleColorPalette['grey.1'],
1412
- unchecked: deepPurpleColorPalette['grey.1']
1413
- },
1414
- border: {
1415
- color: 'transparent',
1416
- width: 1
1417
- },
1418
- circle: {
1419
- backgroundColor: deepPurpleColorPalette['grey.3'],
1420
- width: {
1421
- medium: 18,
1422
- large: 24
1423
- },
1424
- height: {
1425
- medium: 18,
1426
- large: 24
1427
- },
1428
- marginLeft: {
1429
- medium: 24,
1430
- large: 32
1431
- }
1432
- },
1433
- wrapperBorder: {
1434
- color: 'transparent',
1435
- width: 1
1436
- }
1437
- },
1438
- hovered: {
1439
- height: {
1440
- medium: 26,
1441
- large: 34
1442
- },
1443
- width: {
1444
- medium: 50,
1445
- large: 66
1446
- },
1447
- labelColor: deepPurpleColorPalette['beige.2'],
1448
- backgroundColor: {
1449
- checked: deepPurpleColorPalette['grey.1'],
1450
- unchecked: deepPurpleColorPalette['grey.1']
1451
- },
1452
- border: {
1453
- color: 'transparent',
1454
- width: 1
1455
- },
1456
- circle: {
1457
- backgroundColor: deepPurpleColorPalette['grey.3'],
1458
- width: {
1459
- medium: 18,
1460
- large: 24
1461
- },
1462
- height: {
1463
- medium: 18,
1464
- large: 24
1465
- },
1466
- marginLeft: {
1467
- medium: 24,
1468
- large: 32
1469
- }
1470
- },
1471
- wrapperBorder: {
1472
- color: 'transparent',
1473
- width: 1
1474
- }
1475
- },
1476
- focused: {
1477
- height: {
1478
- medium: 26,
1479
- large: 34
1480
- },
1481
- width: {
1482
- medium: 50,
1483
- large: 66
1484
- },
1485
- labelColor: deepPurpleColorPalette['beige.2'],
1486
- backgroundColor: {
1487
- checked: deepPurpleColorPalette['grey.1'],
1488
- unchecked: deepPurpleColorPalette['grey.1']
1489
- },
1490
- border: {
1491
- color: 'transparent',
1492
- width: 1
1493
- },
1494
- circle: {
1495
- backgroundColor: deepPurpleColorPalette['grey.3'],
1496
- width: {
1497
- medium: 18,
1498
- large: 24
1499
- },
1500
- height: {
1501
- medium: 18,
1502
- large: 24
1503
- },
1504
- marginLeft: {
1505
- medium: 24,
1506
- large: 32
1507
- }
1508
- },
1509
- wrapperBorder: {
1510
- color: deepPurpleColorPalette.black,
1511
- width: 1
1512
- }
1513
- },
1514
- pressed: {
1515
- height: {
1516
- medium: 26,
1517
- large: 34
1518
- },
1519
- width: {
1520
- medium: 50,
1521
- large: 66
1522
- },
1523
- labelColor: deepPurpleColorPalette['beige.2'],
1524
- backgroundColor: {
1525
- checked: deepPurpleColorPalette['grey.1'],
1526
- unchecked: deepPurpleColorPalette['grey.1']
1527
- },
1528
- border: {
1529
- color: 'transparent',
1530
- width: 1
1531
- },
1532
- circle: {
1533
- backgroundColor: deepPurpleColorPalette['grey.3'],
1534
- width: {
1535
- medium: 18,
1536
- large: 24
1537
- },
1538
- height: {
1539
- medium: 18,
1540
- large: 24
1541
- },
1542
- marginLeft: {
1543
- medium: 24,
1544
- large: 32
1545
- }
1546
- },
1547
- wrapperBorder: {
1548
- color: deepPurpleColorPalette.black,
1549
- width: 1
1550
- }
1551
- }
1552
- }
1553
- },
1554
- accent: {
1555
- enabled: {
1556
- default: {
1557
- height: {
1558
- medium: 26,
1559
- large: 34
1560
- },
1561
- width: {
1562
- medium: 50,
1563
- large: 66
1564
- },
1565
- labelColor: deepPurpleColorPalette.white,
1566
- backgroundColor: {
1567
- checked: deepPurpleColorPalette['deepPurple.9'],
1568
- unchecked: deepPurpleColorPalette['beige.3']
1569
- },
1570
- border: {
1571
- color: 'transparent',
1572
- width: 1
1573
- },
1574
- circle: {
1575
- backgroundColor: deepPurpleColorPalette.white,
1576
- width: {
1577
- medium: 18,
1578
- large: 24
1579
- },
1580
- height: {
1581
- medium: 18,
1582
- large: 24
1583
- },
1584
- marginLeft: {
1585
- medium: 24,
1586
- large: 32
1587
- }
1588
- },
1589
- wrapperBorder: {
1590
- color: 'transparent',
1591
- width: 1
1592
- }
1593
- },
1594
- hovered: {
1595
- height: {
1596
- medium: 26,
1597
- large: 34
1598
- },
1599
- width: {
1600
- medium: 50,
1601
- large: 66
1602
- },
1603
- labelColor: deepPurpleColorPalette.white,
1604
- backgroundColor: {
1605
- checked: deepPurpleColorPalette['deepPurple.9'],
1606
- unchecked: deepPurpleColorPalette['beige.3']
1607
- },
1608
- border: {
1609
- color: 'transparent',
1610
- width: 1
1611
- },
1612
- circle: {
1613
- backgroundColor: deepPurpleColorPalette.white,
1614
- width: {
1615
- medium: 18,
1616
- large: 24
1617
- },
1618
- height: {
1619
- medium: 18,
1620
- large: 24
1621
- },
1622
- marginLeft: {
1623
- medium: 24,
1624
- large: 32
1625
- }
1626
- },
1627
- wrapperBorder: {
1628
- color: 'transparent',
1629
- width: 1
1630
- }
1631
- },
1632
- focused: {
1633
- height: {
1634
- medium: 26,
1635
- large: 34
1636
- },
1637
- width: {
1638
- medium: 50,
1639
- large: 66
1640
- },
1641
- labelColor: deepPurpleColorPalette.white,
1642
- backgroundColor: {
1643
- checked: deepPurpleColorPalette['deepPurple.9'],
1644
- unchecked: deepPurpleColorPalette['beige.3']
1645
- },
1646
- border: {
1647
- color: deepPurpleColorPalette['deepPurple.7'],
1648
- width: 1
1649
- },
1650
- circle: {
1651
- backgroundColor: deepPurpleColorPalette.white,
1652
- width: {
1653
- medium: 18,
1654
- large: 24
1655
- },
1656
- height: {
1657
- medium: 18,
1658
- large: 24
1659
- },
1660
- marginLeft: {
1661
- medium: 24,
1662
- large: 32
1663
- }
1664
- },
1665
- wrapperBorder: {
1666
- color: deepPurpleColorPalette.white,
1667
- width: 1
1668
- }
1669
- },
1670
- pressed: {
1671
- height: {
1672
- medium: 26,
1673
- large: 34
1674
- },
1675
- width: {
1676
- medium: 50,
1677
- large: 66
1678
- },
1679
- labelColor: deepPurpleColorPalette.white,
1680
- backgroundColor: {
1681
- checked: deepPurpleColorPalette['deepPurple.9'],
1682
- unchecked: deepPurpleColorPalette['beige.3']
1683
- },
1684
- border: {
1685
- color: deepPurpleColorPalette['deepPurple.7'],
1686
- width: 1
1687
- },
1688
- circle: {
1689
- backgroundColor: deepPurpleColorPalette.white,
1690
- width: {
1691
- medium: 18,
1692
- large: 24
1693
- },
1694
- height: {
1695
- medium: 18,
1696
- large: 24
1697
- },
1698
- marginLeft: {
1699
- medium: 24,
1700
- large: 32
1701
- }
1702
- },
1703
- wrapperBorder: {
1704
- color: deepPurpleColorPalette.white,
1705
- width: 1
1706
- }
1707
- }
1708
- },
1709
- disabled: {
1710
- default: {
1711
- height: {
1712
- medium: 26,
1713
- large: 34
1714
- },
1715
- width: {
1716
- medium: 50,
1717
- large: 66
1718
- },
1719
- labelColor: deepPurpleColorPalette['beige.5'],
1720
- backgroundColor: {
1721
- checked: deepPurpleColorPalette['beige.5'],
1722
- unchecked: deepPurpleColorPalette['beige.5']
1723
- },
1724
- border: {
1725
- color: 'transparent',
1726
- width: 1
1727
- },
1728
- circle: {
1729
- backgroundColor: deepPurpleColorPalette['deepPurple.7'],
1730
- width: {
1731
- medium: 18,
1732
- large: 24
1733
- },
1734
- height: {
1735
- medium: 18,
1736
- large: 24
1737
- },
1738
- marginLeft: {
1739
- medium: 24,
1740
- large: 32
1741
- }
1742
- },
1743
- wrapperBorder: {
1744
- color: 'transparent',
1745
- width: 1
1746
- }
1747
- },
1748
- hovered: {
1749
- height: {
1750
- medium: 26,
1751
- large: 34
1752
- },
1753
- width: {
1754
- medium: 50,
1755
- large: 66
1756
- },
1757
- labelColor: deepPurpleColorPalette['beige.5'],
1758
- backgroundColor: {
1759
- checked: deepPurpleColorPalette['beige.5'],
1760
- unchecked: deepPurpleColorPalette['beige.5']
1761
- },
1762
- border: {
1763
- color: 'transparent',
1764
- width: 1
1765
- },
1766
- circle: {
1767
- backgroundColor: deepPurpleColorPalette['deepPurple.7'],
1768
- width: {
1769
- medium: 18,
1770
- large: 24
1771
- },
1772
- height: {
1773
- medium: 18,
1774
- large: 24
1775
- },
1776
- marginLeft: {
1777
- medium: 24,
1778
- large: 32
1779
- }
1780
- },
1781
- wrapperBorder: {
1782
- color: 'transparent',
1783
- width: 1
1784
- }
1785
- },
1786
- focused: {
1787
- height: {
1788
- medium: 26,
1789
- large: 34
1790
- },
1791
- width: {
1792
- medium: 50,
1793
- large: 66
1794
- },
1795
- labelColor: deepPurpleColorPalette['beige.5'],
1796
- backgroundColor: {
1797
- checked: deepPurpleColorPalette['beige.5'],
1798
- unchecked: deepPurpleColorPalette['beige.5']
1799
- },
1800
- border: {
1801
- color: deepPurpleColorPalette['deepPurple.7'],
1802
- width: 1
1803
- },
1804
- circle: {
1805
- backgroundColor: deepPurpleColorPalette['deepPurple.7'],
1806
- width: {
1807
- medium: 18,
1808
- large: 24
1809
- },
1810
- height: {
1811
- medium: 18,
1812
- large: 24
1813
- },
1814
- marginLeft: {
1815
- medium: 24,
1816
- large: 32
1817
- }
1818
- },
1819
- wrapperBorder: {
1820
- color: deepPurpleColorPalette.white,
1821
- width: 1
1822
- }
1823
- },
1824
- pressed: {
1825
- height: {
1826
- medium: 26,
1827
- large: 34
1828
- },
1829
- width: {
1830
- medium: 50,
1831
- large: 66
1832
- },
1833
- labelColor: deepPurpleColorPalette['beige.5'],
1834
- backgroundColor: {
1835
- checked: deepPurpleColorPalette['beige.5'],
1836
- unchecked: deepPurpleColorPalette['beige.5']
1837
- },
1838
- border: {
1839
- color: deepPurpleColorPalette['deepPurple.7'],
1840
- width: 1
1841
- },
1842
- circle: {
1843
- backgroundColor: deepPurpleColorPalette['deepPurple.7'],
1844
- width: {
1845
- medium: 18,
1846
- large: 24
1847
- },
1848
- height: {
1849
- medium: 18,
1850
- large: 24
1851
- },
1852
- marginLeft: {
1853
- medium: 24,
1854
- large: 32
1855
- }
1856
- },
1857
- wrapperBorder: {
1858
- color: deepPurpleColorPalette.white,
1859
- width: 1
1860
- }
1861
- }
1862
- }
1863
- }
1864
- };
1865
-
1866
- const forms = {
1867
- toggle,
1868
- autocomplete,
1869
- datePicker,
1870
- input,
1871
- radio,
1872
- inputField,
1873
- textArea,
1874
- checkbox,
1875
- inputTag,
1876
- radioButtonGroup,
1877
- timePicker
1878
- };
1879
-
1880
- const fullscreenModal = {
1881
- header: {
1882
- height: 56
1883
- },
1884
- horizontalPadding: 16,
1885
- footer: {
1886
- verticalPadding: 12
1887
- },
1888
- body: {
1889
- verticalPadding: 16
1890
- },
1891
- animation: {
1892
- overlay: {
1893
- duration: 250,
1894
- easing: {
1895
- x1: 0.42,
1896
- y1: 0,
1897
- x2: 1,
1898
- y2: 1
1899
- }
1900
- },
1901
- content: {
1902
- duration: 600,
1903
- easing: {
1904
- x1: 0.77,
1905
- y1: 0,
1906
- x2: 0.175,
1907
- y2: 1
1908
- }
1909
- }
1910
- }
1911
- };
1912
-
1913
- const highlight = {
1914
- borderRadius: spacing * 2,
1915
- /** @deprecated use primary instead */
1916
- regular: {
1917
- default: {
1918
- backgroundColor: colors.accentLight
1919
- },
1920
- hover: {
1921
- backgroundColor: colors.accentLight
1922
- }
1923
- },
1924
- primary: {
1925
- default: {
1926
- backgroundColor: deepPurpleColorPalette['blue.1']
1927
- },
1928
- hover: {
1929
- backgroundColor: deepPurpleColorPalette['blue.2']
1930
- }
1931
- },
1932
- secondary: {
1933
- default: {
1934
- backgroundColor: deepPurpleColorPalette['beige.1']
1935
- },
1936
- hover: {
1937
- backgroundColor: deepPurpleColorPalette['beige.3']
1938
- }
1939
- },
1940
- ghost: {
1941
- default: {
1942
- backgroundColor: deepPurpleColorPalette.white
1943
- },
1944
- hover: {
1945
- backgroundColor: deepPurpleColorPalette['beige.1']
1946
- }
1947
- },
1948
- dark: {
1949
- default: {
1950
- backgroundColor: deepPurpleColorPalette['grey.0'],
1951
- borderWidth: 1,
1952
- borderColor: deepPurpleColorPalette['beige.3']
1953
- },
1954
- hover: {
1955
- backgroundColor: deepPurpleColorPalette['beige.1'],
1956
- borderWidth: 1,
1957
- borderColor: deepPurpleColorPalette['beige.3']
1958
- }
1959
- },
1960
- success: {
1961
- default: {
1962
- backgroundColor: deepPurpleColorPalette['green.1']
1963
- },
1964
- hover: {
1965
- backgroundColor: deepPurpleColorPalette['green.2']
1966
- }
1967
- },
1968
- warning: {
1969
- default: {
1970
- backgroundColor: deepPurpleColorPalette['yellow.1']
1971
- },
1972
- hover: {
1973
- backgroundColor: deepPurpleColorPalette['yellow.2']
1974
- }
1975
- },
1976
- padding: {
1977
- small: spacing * 2,
1978
- medium: spacing * 4,
1979
- large: spacing * 6
1980
- }
1981
- };
1982
-
1983
- const icon = {
1984
- defaultSize: 20
1985
- };
1986
-
1987
- const iconButton = {
1988
- width: button.height.default,
1989
- height: button.height.default
1990
- };
1991
-
1992
- const listItem = {
1993
- padding: '12px 16px',
1994
- verticalPadding: 12,
1995
- horizontalPadding: 16,
1996
- borderColor: colors.separator,
1997
- borderWidth: 1,
1998
- innerMargin: 8
1999
- };
2000
-
2001
- const mapMarker = {
2002
- home: {
2003
- default: deepPurpleColorPalette['grey.9'],
2004
- selected: deepPurpleColorPalette['grey.7'],
2005
- svg: {
2006
- height: 36
2007
- },
2008
- container: {
2009
- width: 34,
2010
- height: 38
2011
- }
2012
- },
2013
- meetingPoint: {
2014
- default: deepPurpleColorPalette['deepPurple.8'],
2015
- selected: deepPurpleColorPalette['deepPurple.6'],
2016
- svg: {
2017
- width: 40,
2018
- height: 43
2019
- },
2020
- container: {
2021
- width: 40,
2022
- height: 45
2023
- }
2024
- },
2025
- shadow: {
2026
- width: 12,
2027
- height: 4
2028
- }
2029
- };
2030
-
2031
- const pageLoaderSize = 60;
2032
- const pageLoaderStrokeWidth = 3;
2033
- const webAnimationDelay = 500;
2034
- const webAnimationCircleBackgroundFillDuration = 1000;
2035
- const webAnimationFilledCircleFillDuration = 1800;
2036
- const webAnimationFilledCircleRotationDuration = 2160;
2037
- const fillEasingFunction = [0.39, 0.575, 0.565, 1];
2038
- const pageLoader = {
2039
- size: pageLoaderSize,
2040
- strokeWidth: pageLoaderStrokeWidth,
2041
- colors: {
2042
- base: colors.separator,
2043
- fill: colors.primary
2044
- },
2045
- animation: {
2046
- delay: webAnimationDelay,
2047
- circleBackgroundFillDuration: webAnimationCircleBackgroundFillDuration,
2048
- filledCircleFillDuration: webAnimationFilledCircleFillDuration,
2049
- groupFilledCircleRotationDuration: 1800,
2050
- filledCircleRotationDuration: webAnimationFilledCircleRotationDuration,
2051
- fillEasingFunction
2052
- }
2053
- };
2054
-
2055
- const typography = {
2056
- colors: {
2057
- black: colors.black,
2058
- 'black-anthracite': colors.blackAnthracite,
2059
- 'black-disabled': deepPurpleColorPalette['grey.3'],
2060
- 'black-light': deepPurpleColorPalette['grey.5'],
2061
- white: colors.white,
2062
- 'white-light': colors.white,
2063
- primary: colors.primary,
2064
- 'primary-light': colors.primaryLight,
2065
- accent: colors.accent,
2066
- success: colors.success,
2067
- danger: deepPurpleColorPalette['red.6'],
2068
- warning: colors.warning
2069
- },
2070
- types: {
2071
- headings: {
2072
- fontFamily: {
2073
- native: {
2074
- regular: 'GTStandardRegular',
2075
- semibold: 'GTStandardSemibold',
2076
- bold: 'GTStandardBold'
2077
- },
2078
- web: {
2079
- regular: 'GTStandard',
2080
- semibold: 'GTStandard',
2081
- bold: 'GTStandard'
2082
- }
2083
- },
2084
- fontWeight: {
2085
- regular: 500,
2086
- semibold: 600,
2087
- bold: 700
2088
- },
2089
- fontStyle: 'normal',
2090
- configs: {
2091
- 'heading-xxl': {
2092
- fontSize: 56,
2093
- lineHeight: 64,
2094
- allowedFontWeights: ['semibold']
2095
- },
2096
- 'heading-xl': {
2097
- fontSize: 48,
2098
- lineHeight: 56,
2099
- allowedFontWeights: ['semibold']
2100
- },
2101
- 'heading-l': {
2102
- fontSize: 38,
2103
- lineHeight: 44,
2104
- allowedFontWeights: ['semibold']
2105
- },
2106
- 'heading-m': {
2107
- fontSize: 28,
2108
- lineHeight: 32,
2109
- allowedFontWeights: ['semibold']
2110
- },
2111
- 'heading-s': {
2112
- fontSize: 24,
2113
- lineHeight: 28,
2114
- allowedFontWeights: ['semibold']
2115
- },
2116
- 'heading-xs': {
2117
- fontSize: 20,
2118
- lineHeight: 24,
2119
- allowedFontWeights: ['semibold']
2120
- },
2121
- 'heading-xxs': {
2122
- fontSize: 16,
2123
- lineHeight: 20,
2124
- allowedFontWeights: ['semibold']
2125
- }
2126
- }
2127
- },
2128
- bodies: {
2129
- fontFamily: {
2130
- native: {
2131
- regular: 'GTStandardRegular',
2132
- bold: 'GTStandardBold'
2133
- },
2134
- web: {
2135
- regular: 'GTStandard',
2136
- bold: 'GTStandard'
2137
- }
2138
- },
2139
- fontWeight: {
2140
- regular: 500,
2141
- bold: 700
2142
- },
2143
- fontStyle: {
2144
- regular: 'normal',
2145
- bold: 'normal'
2146
- },
2147
- configs: {
2148
- 'body-xl': {
2149
- fontSize: 24,
2150
- lineHeight: 32,
2151
- allowedFontWeights: ['regular', 'bold']
2152
- },
2153
- 'body-l': {
2154
- fontSize: 18,
2155
- lineHeight: 26,
2156
- allowedFontWeights: ['regular', 'bold']
2157
- },
2158
- 'body-m': {
2159
- fontSize: 16,
2160
- lineHeight: 24,
2161
- allowedFontWeights: ['regular', 'bold']
2162
- },
2163
- 'body-s': {
2164
- fontSize: 14,
2165
- lineHeight: 20,
2166
- allowedFontWeights: ['regular', 'bold']
2167
- },
2168
- 'body-xs': {
2169
- fontSize: 12,
2170
- lineHeight: 16,
2171
- allowedFontWeights: ['regular', 'bold']
2172
- }
2173
- }
2174
- },
2175
- labels: {
2176
- fontFamily: {
2177
- native: {
2178
- semibold: 'GTStandardSemibold'
2179
- },
2180
- web: {
2181
- semibold: 'GTStandard'
2182
- }
2183
- },
2184
- fontWeight: {
2185
- semibold: 600
2186
- },
2187
- fontStyle: 'normal',
2188
- configs: {
2189
- 'label-large': {
2190
- fontSize: 16,
2191
- lineHeight: 20,
2192
- allowedFontWeights: ['semibold']
2193
- },
2194
- 'label-medium': {
2195
- fontSize: 14,
2196
- lineHeight: 18,
2197
- allowedFontWeights: ['semibold']
2198
- },
2199
- 'label-small': {
2200
- fontSize: 12,
2201
- lineHeight: 14,
2202
- allowedFontWeights: ['semibold']
2203
- }
2204
- }
2205
- },
2206
- contentCaps: {
2207
- fontFamily: {
2208
- native: {
2209
- bold: 'GTStandardNarrowBold'
2210
- },
2211
- web: {
2212
- bold: 'GTStandardNarrow'
2213
- }
2214
- },
2215
- fontWeight: {
2216
- bold: 700
2217
- },
2218
- fontStyle: 'normal',
2219
- configs: {
2220
- 'content-caps-xxxl': {
2221
- fontSize: 40,
2222
- lineHeight: 40,
2223
- allowedFontWeights: ['bold']
2224
- },
2225
- 'content-caps-xxl': {
2226
- fontSize: 32,
2227
- lineHeight: 40,
2228
- allowedFontWeights: ['bold']
2229
- },
2230
- 'content-caps-xl': {
2231
- fontSize: 24,
2232
- lineHeight: 28,
2233
- allowedFontWeights: ['bold']
2234
- },
2235
- 'content-caps-l': {
2236
- fontSize: 18,
2237
- lineHeight: 20,
2238
- allowedFontWeights: ['bold']
2239
- },
2240
- 'content-caps-m': {
2241
- fontSize: 16,
2242
- lineHeight: 18,
2243
- allowedFontWeights: ['bold']
2244
- },
2245
- 'content-caps-s': {
2246
- fontSize: 14,
2247
- lineHeight: 16,
2248
- allowedFontWeights: ['bold']
2249
- },
2250
- 'content-caps-xs': {
2251
- fontSize: 12,
2252
- lineHeight: 14,
2253
- allowedFontWeights: ['bold']
2254
- }
2255
- }
2256
- }
2257
- }
2258
- };
2259
-
2260
- const picker = {
2261
- maxWidthFixed: 320,
2262
- ios: {
2263
- default: {
2264
- fontFamily: typography.types.bodies.fontFamily.native.regular,
2265
- ...typography.types.bodies.configs['body-m'],
2266
- fontSize: 16,
2267
- color: typography.colors['black-light'],
2268
- // Default height is hard coded in module because of iOS constraint (https://github.com/react-native-picker/picker/blob/abd5f9076baa3ef2277ea7e711fa5823683c110e/js/PickerIOS.ios.js#L156)
2269
- height: 216
2270
- },
2271
- landscape: {
2272
- height: 108
2273
- },
2274
- selected: {
2275
- color: typography.colors.primary
2276
- }
2277
- },
2278
- web: {
2279
- optionsContainer: {
2280
- borderRadius: 10,
2281
- backgroundColor: colors.white,
2282
- shadow: {
2283
- color: colors.black,
2284
- offsetX: 0,
2285
- offsetY: 10,
2286
- opacity: 0.15,
2287
- radius: 20
2288
- }
2289
- },
2290
- option: {
2291
- minHeight: 32,
2292
- horizontalPadding: 16,
2293
- verticalPadding: 4,
2294
- default: {
2295
- backgroundColor: colors.transparent
2296
- },
2297
- hovered: {
2298
- backgroundColor: deepPurpleColorPalette['beige.1']
2299
- },
2300
- focused: {
2301
- backgroundColor: deepPurpleColorPalette['beige.1']
2302
- },
2303
- selected: {
2304
- backgroundColor: deepPurpleColorPalette['beige.1']
2305
- },
2306
- highlighted: {
2307
- backgroundColor: deepPurpleColorPalette['beige.1']
2308
- },
2309
- pressed: {
2310
- backgroundColor: deepPurpleColorPalette['beige.2']
2311
- }
2312
- }
2313
- },
2314
- android: {
2315
- option: {
2316
- verticalPadding: 12,
2317
- horizontalPadding: 24,
2318
- default: {
2319
- backgroundColor: colors.transparent
2320
- },
2321
- selected: {
2322
- backgroundColor: colors.primary,
2323
- color: typography.colors.white
2324
- }
2325
- }
2326
- }
2327
- };
2328
-
2329
- const shadows = {
2330
- /** @deprecated: use cards.medium instead - shorthand shadow doesnt work with Native Base */
2331
- medium: '0px 10px 20px rgba(41, 48, 51, 0.25)',
2332
- cards: {
2333
- low: {
2334
- color: colors.black,
2335
- offsetX: 0,
2336
- offsetY: 5,
2337
- opacity: 0.1,
2338
- radius: 20
2339
- },
2340
- medium: {
2341
- color: colors.black,
2342
- offsetX: 0,
2343
- offsetY: 10,
2344
- opacity: 0.15,
2345
- radius: 20
2346
- },
2347
- highBase: {
2348
- color: colors.black,
2349
- offsetX: 0,
2350
- offsetY: 10,
2351
- opacity: 0.15,
2352
- radius: 20
2353
- },
2354
- highMedium: {
2355
- color: colors.black,
2356
- offsetX: 0,
2357
- offsetY: 60,
2358
- opacity: 0.08,
2359
- radius: 40
2360
- },
2361
- highLarge: {
2362
- color: colors.black,
2363
- offsetX: 0,
2364
- offsetY: 80,
2365
- opacity: 0.08,
2366
- radius: 60
2367
- }
2368
- },
2369
- navigation: {
2370
- left: {
2371
- color: colors.black,
2372
- offsetX: 10,
2373
- offsetY: 0,
2374
- opacity: 0.15,
2375
- radius: 30
2376
- },
2377
- right: {
2378
- color: colors.black,
2379
- offsetX: -10,
2380
- offsetY: 0,
2381
- opacity: 0.15,
2382
- radius: 30
2383
- }
2384
- },
2385
- panel: {
2386
- color: colors.black,
2387
- offsetX: 0,
2388
- offsetY: 20,
2389
- opacity: 1,
2390
- radius: 40
2391
- }
2392
- };
2393
-
2394
- const skeletonBackgroundColor = deepPurpleColorPalette['beige.2'];
2395
- const skeletonFlareColor = deepPurpleColorPalette['beige.3'];
2396
- const skeleton = {
2397
- backgroundColor: skeletonBackgroundColor,
2398
- flareColor: skeletonFlareColor,
2399
- animationDuration: 1000,
2400
- shape: {
2401
- bar: {
2402
- size: 8,
2403
- borderRadius: 4
2404
- },
2405
- circle: {
2406
- size: 48,
2407
- borderRadius: 24
2408
- },
2409
- square: {
2410
- size: 48,
2411
- borderRadius: 6
2412
- }
2413
- }
2414
- };
2415
-
2416
- const sticker = {
2417
- borderRadius: 2,
2418
- padding: 4
2419
- };
2420
-
2421
- const tabBar = {
2422
- underline: {
2423
- default: {
2424
- active: {
2425
- color: {
2426
- default: deepPurpleColorPalette['deepPurple.8'],
2427
- focused: deepPurpleColorPalette['deepPurple.8'],
2428
- hovered: deepPurpleColorPalette['deepPurple.8'],
2429
- pressed: deepPurpleColorPalette['deepPurple.8']
2430
- },
2431
- indicator: {
2432
- backgroundColor: deepPurpleColorPalette['deepPurple.8']
2433
- }
2434
- },
2435
- inactive: {
2436
- color: {
2437
- default: deepPurpleColorPalette['grey.5'],
2438
- focused: deepPurpleColorPalette['grey.5'],
2439
- hovered: deepPurpleColorPalette['deepPurple.8'],
2440
- pressed: deepPurpleColorPalette['deepPurple.8']
2441
- },
2442
- indicator: {
2443
- backgroundColor: undefined
2444
- }
2445
- },
2446
- disabled: {
2447
- color: {
2448
- default: deepPurpleColorPalette['grey.3'],
2449
- focused: deepPurpleColorPalette['grey.3'],
2450
- hovered: deepPurpleColorPalette['grey.3'],
2451
- pressed: deepPurpleColorPalette['grey.3']
2452
- },
2453
- indicator: {
2454
- backgroundColor: undefined
2455
- }
2456
- },
2457
- borderBottomColor: deepPurpleColorPalette['beige.3']
2458
- },
2459
- revert: {
2460
- active: {
2461
- color: {
2462
- default: deepPurpleColorPalette['grey.0'],
2463
- focused: deepPurpleColorPalette['grey.0'],
2464
- hovered: deepPurpleColorPalette['grey.0'],
2465
- pressed: deepPurpleColorPalette['grey.0']
2466
- },
2467
- indicator: {
2468
- backgroundColor: deepPurpleColorPalette['grey.0']
2469
- }
2470
- },
2471
- inactive: {
2472
- color: {
2473
- default: deepPurpleColorPalette['white-alpha.80'],
2474
- focused: deepPurpleColorPalette['white-alpha.80'],
2475
- hovered: deepPurpleColorPalette['grey.0'],
2476
- pressed: deepPurpleColorPalette['grey.0']
2477
- },
2478
- indicator: {
2479
- backgroundColor: undefined
2480
- }
2481
- },
2482
- disabled: {
2483
- color: {
2484
- default: deepPurpleColorPalette['white-alpha.20'],
2485
- focused: deepPurpleColorPalette['white-alpha.20'],
2486
- hovered: deepPurpleColorPalette['white-alpha.20'],
2487
- pressed: deepPurpleColorPalette['white-alpha.20']
2488
- },
2489
- indicator: {
2490
- backgroundColor: undefined
2491
- }
2492
- },
2493
- borderBottomColor: deepPurpleColorPalette['white-alpha.20']
2494
- }
2495
- },
2496
- solid: {
2497
- default: {
2498
- active: {
2499
- color: {
2500
- default: deepPurpleColorPalette['grey.0'],
2501
- focused: deepPurpleColorPalette['grey.0'],
2502
- hovered: deepPurpleColorPalette['grey.0'],
2503
- pressed: deepPurpleColorPalette['grey.0']
2504
- },
2505
- backgroundColor: {
2506
- default: deepPurpleColorPalette['deepPurple.8'],
2507
- focused: deepPurpleColorPalette['deepPurple.8'],
2508
- hovered: deepPurpleColorPalette['deepPurple.8'],
2509
- pressed: deepPurpleColorPalette['deepPurple.8']
2510
- },
2511
- borderRadius: 4,
2512
- indicator: {
2513
- backgroundColor: undefined
2514
- }
2515
- },
2516
- inactive: {
2517
- color: {
2518
- default: deepPurpleColorPalette['grey.5'],
2519
- focused: deepPurpleColorPalette['grey.5'],
2520
- hovered: deepPurpleColorPalette['grey.5'],
2521
- pressed: deepPurpleColorPalette['grey.5']
2522
- },
2523
- backgroundColor: {
2524
- default: undefined,
2525
- focused: undefined,
2526
- hovered: deepPurpleColorPalette['beige.1'],
2527
- pressed: deepPurpleColorPalette['beige.1']
2528
- },
2529
- borderRadius: 4,
2530
- indicator: {
2531
- backgroundColor: undefined
2532
- }
2533
- },
2534
- disabled: {
2535
- color: {
2536
- default: deepPurpleColorPalette['grey.3'],
2537
- focused: deepPurpleColorPalette['grey.3'],
2538
- hovered: deepPurpleColorPalette['grey.3'],
2539
- pressed: deepPurpleColorPalette['grey.3']
2540
- },
2541
- indicator: {
2542
- backgroundColor: undefined
2543
- }
2544
- }
2545
- },
2546
- revert: {
2547
- active: {
2548
- color: {
2549
- default: deepPurpleColorPalette['deepPurple.8'],
2550
- focused: deepPurpleColorPalette['deepPurple.8'],
2551
- hovered: deepPurpleColorPalette['deepPurple.8'],
2552
- pressed: deepPurpleColorPalette['deepPurple.8']
2553
- },
2554
- backgroundColor: {
2555
- default: deepPurpleColorPalette['grey.0'],
2556
- focused: deepPurpleColorPalette['grey.0'],
2557
- hovered: deepPurpleColorPalette['grey.0'],
2558
- pressed: deepPurpleColorPalette['grey.0']
2559
- },
2560
- borderRadius: 4,
2561
- indicator: {
2562
- backgroundColor: undefined
2563
- }
2564
- },
2565
- inactive: {
2566
- color: {
2567
- default: deepPurpleColorPalette['white-alpha.80'],
2568
- focused: deepPurpleColorPalette['white-alpha.80'],
2569
- hovered: deepPurpleColorPalette['white-alpha.80'],
2570
- pressed: deepPurpleColorPalette['white-alpha.80']
2571
- },
2572
- backgroundColor: {
2573
- default: undefined,
2574
- focused: undefined,
2575
- hovered: deepPurpleColorPalette['white-alpha.10'],
2576
- pressed: deepPurpleColorPalette['white-alpha.10']
2577
- },
2578
- borderRadius: 4,
2579
- indicator: {
2580
- backgroundColor: undefined
2581
- }
2582
- },
2583
- disabled: {
2584
- color: {
2585
- default: deepPurpleColorPalette['white-alpha.20'],
2586
- focused: deepPurpleColorPalette['white-alpha.20'],
2587
- hovered: deepPurpleColorPalette['white-alpha.20'],
2588
- pressed: deepPurpleColorPalette['white-alpha.20']
2589
- },
2590
- indicator: {
2591
- backgroundColor: undefined
2592
- }
2593
- }
2594
- }
2595
- }
2596
- };
2597
-
2598
- const tag = {
2599
- borderRadius: 16,
2600
- icon: {
2601
- small: 16,
2602
- medium: 16,
2603
- large: 20
2604
- },
2605
- height: {
2606
- small: 20,
2607
- medium: 24,
2608
- large: 32
2609
- },
2610
- withIcon: {
2611
- small: {
2612
- paddingLeft: 2,
2613
- paddingRight: 8
2614
- },
2615
- medium: {
2616
- paddingLeft: 4,
2617
- paddingRight: 8
2618
- },
2619
- large: {
2620
- paddingLeft: 6,
2621
- paddingRight: 8
2622
- }
2623
- },
2624
- withoutIcon: {
2625
- small: {
2626
- paddingLeft: 8,
2627
- paddingRight: 8
2628
- },
2629
- medium: {
2630
- paddingLeft: 8,
2631
- paddingRight: 8
2632
- },
2633
- large: {
2634
- paddingLeft: 8,
2635
- paddingRight: 8
2636
- }
2637
- }
2638
- };
2639
-
2640
- const tooltip = {
2641
- backgroundColor: hex2rgba(colors.black, 0.95),
2642
- borderRadius: 10,
2643
- opacity: 0.95,
2644
- horizontalPadding: 16,
2645
- verticalPadding: 8,
2646
- floatingPadding: 8,
2647
- maxWidth: 328,
2648
- transition: {
2649
- in: {
2650
- duration: '150ms',
2651
- timingFunction: 'ease-out',
2652
- property: 'opacity'
2653
- },
2654
- out: {
2655
- duration: '75ms',
2656
- timingFunction: 'ease-out',
2657
- property: 'opacity'
2658
- }
2659
- },
2660
- arrow: {
2661
- width: 39,
2662
- height: 9
2663
- }
2664
- };
2665
-
2666
- const verticalSteps = {
2667
- active: {
2668
- icon: {
2669
- backgroundColor: colors.primary,
2670
- textColor: colors.white
2671
- }
2672
- },
2673
- done: {
2674
- icon: {
2675
- backgroundColor: colors.primary,
2676
- textColor: colors.white
2677
- }
2678
- },
2679
- default: {
2680
- icon: {
2681
- backgroundColor: colors.disabled,
2682
- textColor: deepPurpleColorPalette['grey.3']
2683
- }
2684
- }
2685
- };
2686
-
2687
- const breakpoints = {
2688
- values: {
2689
- base: 0,
2690
- small: 480,
2691
- medium: 768,
2692
- large: 1024,
2693
- wide: 1280
2694
- },
2695
- min: {
2696
- smallBreakpoint: 'min-width: 480px',
2697
- mediumBreakpoint: 'min-width: 768px',
2698
- largeBreakpoint: 'min-width: 1024px',
2699
- wideBreakpoint: 'min-width: 1280px'
2700
- },
2701
- max: {
2702
- smallBreakpoint: 'max-width: 479px',
2703
- mediumBreakpoint: 'max-width: 767px',
2704
- largeBreakpoint: 'max-width: 1023px',
2705
- wideBreakpoint: 'max-width: 1279px'
2706
- }
2707
- };
2708
-
2709
- // eslint-disable-next-line unicorn/expiring-todo-comments
2710
- // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
2711
- const theme = {
2712
- spacing,
2713
- getSpacing: multiplier => spacing * multiplier,
2714
- colors,
2715
- palettes: {
2716
- deepPurple: deepPurpleColorPalette
2717
- },
2718
- avatar,
2719
- breakpoints,
2720
- button,
2721
- bottomSheet,
2722
- card,
2723
- cardModal,
2724
- choices,
2725
- dialogModal,
2726
- feedbackMessage,
2727
- forms,
2728
- highlight,
2729
- icon,
2730
- iconButton,
2731
- buttonBadge,
2732
- listItem,
2733
- pageLoader,
2734
- picker,
2735
- shadows,
2736
- skeleton,
2737
- tabBar,
2738
- tag,
2739
- sticker,
2740
- tooltip,
2741
- typography,
2742
- fullscreenModal,
2743
- actionCard,
2744
- verticalSteps,
2745
- mapMarker,
2746
- toggle
2747
- };
2748
-
2749
- export { theme as defaultThemeLinaria };
2750
- //# sourceMappingURL=linaria-themes-node-22.22.es.mjs.map