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