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