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