@ornikar/kitt-universal 21.0.2 → 22.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.
- package/CHANGELOG.md +21 -0
- package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Button/FocusBorder.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +2 -2
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Arrow.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.d.ts +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +1 -1
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/PressableDateInputs.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/HoverBorder.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +2 -2
- package/dist/definitions/themes/default.d.ts +0 -2
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +0 -2
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +376 -46
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +3 -3
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts +3 -0
- package/dist/definitions/utils/getEnterKeyHintForNumericInput/getEnterKeyHintForNumericInput.d.ts.map +1 -0
- package/dist/{index.es.ios.js → index-metro.es.android.js} +3576 -4152
- package/dist/index-metro.es.android.js.map +1 -0
- package/dist/{index.es.android.js → index-metro.es.ios.js} +3576 -4152
- package/dist/index-metro.es.ios.js.map +1 -0
- package/dist/index-node-18.18.cjs.js +217 -602
- package/dist/index-node-18.18.cjs.js.map +1 -1
- package/dist/index-node-18.18.cjs.web.js +45 -66
- package/dist/index-node-18.18.cjs.web.js.map +1 -1
- package/dist/index-node-18.18.es.mjs +217 -602
- package/dist/index-node-18.18.es.mjs.map +1 -1
- package/dist/index-node-18.18.es.web.mjs +45 -66
- package/dist/index-node-18.18.es.web.mjs.map +1 -1
- package/dist/index.es.js +227 -612
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +49 -70
- package/dist/index.es.web.js.map +1 -1
- package/dist/{linaria-themes.es.ios.js → linaria-themes-metro.es.android.js} +172 -187
- package/dist/linaria-themes-metro.es.android.js.map +1 -0
- package/dist/{linaria-themes.es.android.js → linaria-themes-metro.es.ios.js} +172 -187
- package/dist/linaria-themes-metro.es.ios.js.map +1 -0
- package/dist/linaria-themes-node-18.18.cjs.js +0 -6
- package/dist/linaria-themes-node-18.18.cjs.js.map +1 -1
- package/dist/linaria-themes-node-18.18.cjs.web.js +0 -6
- package/dist/linaria-themes-node-18.18.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-18.18.es.mjs +0 -6
- package/dist/linaria-themes-node-18.18.es.mjs.map +1 -1
- package/dist/linaria-themes-node-18.18.es.web.mjs +0 -6
- package/dist/linaria-themes-node-18.18.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +0 -6
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +0 -6
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +17 -16
- package/typings/react-native-web.d.ts +48 -5
- package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts +0 -3
- package/dist/definitions/utils/getReturnKeyTypeForNumericInput/getReturnKeyTypeForNumericInput.d.ts.map +0 -1
- package/dist/index.es.android.js.map +0 -1
- package/dist/index.es.ios.js.map +0 -1
- package/dist/linaria-themes.es.android.js.map +0 -1
- package/dist/linaria-themes.es.ios.js.map +0 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
|
|
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})`;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
const lateOceanColorPalette = {
|
|
12
11
|
lateOcean: '#4C34E0',
|
|
13
12
|
lateOceanLight1: '#705DE6',
|
|
14
13
|
lateOceanLight2: '#9485EC',
|
|
@@ -35,7 +34,7 @@ var lateOceanColorPalette = {
|
|
|
35
34
|
moonPurpleLight1: '#EDEBFC'
|
|
36
35
|
};
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
const colors = {
|
|
39
38
|
primary: lateOceanColorPalette.lateOcean,
|
|
40
39
|
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
41
40
|
accent: lateOceanColorPalette.warmEmbrace,
|
|
@@ -62,10 +61,10 @@ var colors = {
|
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
63
|
|
|
65
|
-
|
|
64
|
+
const actionCard = {
|
|
66
65
|
borderRadius: 20,
|
|
67
66
|
primary: {
|
|
68
|
-
|
|
67
|
+
default: {
|
|
69
68
|
backgroundColor: colors.uiBackgroundLight,
|
|
70
69
|
borderColor: lateOceanColorPalette.black100,
|
|
71
70
|
borderWidth: 1,
|
|
@@ -132,7 +131,7 @@ var actionCard = {
|
|
|
132
131
|
}
|
|
133
132
|
},
|
|
134
133
|
'primary-border-soft': {
|
|
135
|
-
|
|
134
|
+
default: {
|
|
136
135
|
backgroundColor: colors.uiBackgroundLight,
|
|
137
136
|
borderColor: lateOceanColorPalette.moonPurple,
|
|
138
137
|
borderWidth: 1,
|
|
@@ -199,7 +198,7 @@ var actionCard = {
|
|
|
199
198
|
}
|
|
200
199
|
},
|
|
201
200
|
'primary-border-hard': {
|
|
202
|
-
|
|
201
|
+
default: {
|
|
203
202
|
backgroundColor: colors.uiBackgroundLight,
|
|
204
203
|
borderColor: lateOceanColorPalette.lateOcean,
|
|
205
204
|
borderWidth: 1,
|
|
@@ -266,7 +265,7 @@ var actionCard = {
|
|
|
266
265
|
}
|
|
267
266
|
},
|
|
268
267
|
secondary: {
|
|
269
|
-
|
|
268
|
+
default: {
|
|
270
269
|
backgroundColor: lateOceanColorPalette.black50,
|
|
271
270
|
borderColor: lateOceanColorPalette.transparent,
|
|
272
271
|
borderWidth: 0,
|
|
@@ -333,7 +332,7 @@ var actionCard = {
|
|
|
333
332
|
}
|
|
334
333
|
},
|
|
335
334
|
highlight: {
|
|
336
|
-
|
|
335
|
+
default: {
|
|
337
336
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
338
337
|
borderColor: lateOceanColorPalette.moonPurple,
|
|
339
338
|
borderWidth: 1,
|
|
@@ -401,15 +400,15 @@ var actionCard = {
|
|
|
401
400
|
}
|
|
402
401
|
};
|
|
403
402
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
403
|
+
const defaultAvatarSize = 40;
|
|
404
|
+
const defaultAvatarIconSize = 20;
|
|
405
|
+
const largeAvatarSize = 120;
|
|
406
|
+
const largeAvatarIconSize = 30;
|
|
407
|
+
const avatar = {
|
|
409
408
|
borderRadius: 10,
|
|
410
409
|
size: defaultAvatarSize,
|
|
411
410
|
iconSize: defaultAvatarIconSize,
|
|
412
|
-
|
|
411
|
+
default: {
|
|
413
412
|
backgroundColor: colors.primary
|
|
414
413
|
},
|
|
415
414
|
light: {
|
|
@@ -422,9 +421,9 @@ var avatar = {
|
|
|
422
421
|
}
|
|
423
422
|
};
|
|
424
423
|
|
|
425
|
-
|
|
424
|
+
const spacing = 4;
|
|
426
425
|
|
|
427
|
-
|
|
426
|
+
const bottomSheet = {
|
|
428
427
|
container: {
|
|
429
428
|
padding: spacing * 4
|
|
430
429
|
},
|
|
@@ -433,7 +432,7 @@ var bottomSheet = {
|
|
|
433
432
|
}
|
|
434
433
|
};
|
|
435
434
|
|
|
436
|
-
|
|
435
|
+
const button = {
|
|
437
436
|
borderRadius: 30,
|
|
438
437
|
borderWidth: {
|
|
439
438
|
disabled: 2,
|
|
@@ -444,7 +443,7 @@ var button = {
|
|
|
444
443
|
maxWidth: 335,
|
|
445
444
|
scale: {
|
|
446
445
|
base: {
|
|
447
|
-
|
|
446
|
+
default: 1,
|
|
448
447
|
hover: 0.95,
|
|
449
448
|
active: 0.95
|
|
450
449
|
},
|
|
@@ -453,13 +452,13 @@ var button = {
|
|
|
453
452
|
}
|
|
454
453
|
},
|
|
455
454
|
contentPadding: {
|
|
456
|
-
|
|
455
|
+
default: '7px 16px 7px',
|
|
457
456
|
large: '11px 24px 11px',
|
|
458
457
|
xLarge: '15px 24px 15px',
|
|
459
458
|
disabled: '5px 14px 5px'
|
|
460
459
|
},
|
|
461
460
|
padding: {
|
|
462
|
-
|
|
461
|
+
default: {
|
|
463
462
|
horizontal: 16,
|
|
464
463
|
vertical: 7
|
|
465
464
|
},
|
|
@@ -480,8 +479,8 @@ var button = {
|
|
|
480
479
|
duration: '200ms',
|
|
481
480
|
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
482
481
|
},
|
|
483
|
-
|
|
484
|
-
|
|
482
|
+
default: {
|
|
483
|
+
default: {
|
|
485
484
|
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
486
485
|
pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
487
486
|
hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
@@ -498,7 +497,7 @@ var button = {
|
|
|
498
497
|
}
|
|
499
498
|
},
|
|
500
499
|
primary: {
|
|
501
|
-
|
|
500
|
+
default: {
|
|
502
501
|
backgroundColor: colors.primary,
|
|
503
502
|
pressedBackgroundColor: colors.primaryLight,
|
|
504
503
|
hoverBackgroundColor: colors.primaryLight,
|
|
@@ -515,7 +514,7 @@ var button = {
|
|
|
515
514
|
}
|
|
516
515
|
},
|
|
517
516
|
danger: {
|
|
518
|
-
|
|
517
|
+
default: {
|
|
519
518
|
backgroundColor: lateOceanColorPalette.warmEmbraceLight1,
|
|
520
519
|
pressedBackgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
521
520
|
hoverBackgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
@@ -532,7 +531,7 @@ var button = {
|
|
|
532
531
|
}
|
|
533
532
|
},
|
|
534
533
|
subtle: {
|
|
535
|
-
|
|
534
|
+
default: {
|
|
536
535
|
backgroundColor: colors.transparent,
|
|
537
536
|
pressedBackgroundColor: colors.transparent,
|
|
538
537
|
hoverBackgroundColor: colors.transparent,
|
|
@@ -543,7 +542,7 @@ var button = {
|
|
|
543
542
|
}
|
|
544
543
|
},
|
|
545
544
|
'subtle-dark': {
|
|
546
|
-
|
|
545
|
+
default: {
|
|
547
546
|
backgroundColor: colors.transparent,
|
|
548
547
|
pressedBackgroundColor: colors.transparent,
|
|
549
548
|
hoverBackgroundColor: colors.transparent,
|
|
@@ -554,7 +553,7 @@ var button = {
|
|
|
554
553
|
}
|
|
555
554
|
},
|
|
556
555
|
disabled: {
|
|
557
|
-
|
|
556
|
+
default: {
|
|
558
557
|
backgroundColor: colors.disabled,
|
|
559
558
|
pressedBackgroundColor: colors.disabled,
|
|
560
559
|
hoverBackgroundColor: colors.disabled,
|
|
@@ -564,7 +563,7 @@ var button = {
|
|
|
564
563
|
}
|
|
565
564
|
};
|
|
566
565
|
|
|
567
|
-
|
|
566
|
+
const card = {
|
|
568
567
|
borderRadius: 20,
|
|
569
568
|
borderWidth: 2,
|
|
570
569
|
primary: {
|
|
@@ -581,15 +580,15 @@ var card = {
|
|
|
581
580
|
}
|
|
582
581
|
};
|
|
583
582
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
583
|
+
const webAnimationContentDuration$2 = 400;
|
|
584
|
+
const webAnimationContentEasing$2 = [0.77, 0, 0.175, 1];
|
|
585
|
+
const webAnimationOverlayDuration$2 = 250;
|
|
586
|
+
const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
|
|
587
|
+
const maxWidth = 540;
|
|
588
|
+
const overlayHorizontalPadding = 24;
|
|
589
|
+
const cardModal = {
|
|
591
590
|
borderRadius: 20,
|
|
592
|
-
maxWidth
|
|
591
|
+
maxWidth,
|
|
593
592
|
maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
|
|
594
593
|
shadow: {
|
|
595
594
|
color: colors.black,
|
|
@@ -623,7 +622,7 @@ var cardModal = {
|
|
|
623
622
|
}
|
|
624
623
|
};
|
|
625
624
|
|
|
626
|
-
|
|
625
|
+
const choices = {
|
|
627
626
|
spacing: {
|
|
628
627
|
row: 12,
|
|
629
628
|
column: 12
|
|
@@ -635,7 +634,7 @@ var choices = {
|
|
|
635
634
|
small: 24
|
|
636
635
|
},
|
|
637
636
|
backgroundColor: {
|
|
638
|
-
|
|
637
|
+
default: lateOceanColorPalette.black50,
|
|
639
638
|
disabled: colors.disabled,
|
|
640
639
|
selected: colors.primary,
|
|
641
640
|
pressed: lateOceanColorPalette.lateOceanLight1,
|
|
@@ -656,11 +655,11 @@ var choices = {
|
|
|
656
655
|
}
|
|
657
656
|
};
|
|
658
657
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
658
|
+
const webAnimationContentDuration$1 = 400;
|
|
659
|
+
const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
|
|
660
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
661
|
+
const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
|
|
662
|
+
const dialogModal = {
|
|
664
663
|
borderRadius: 20,
|
|
665
664
|
maxWidth: 540,
|
|
666
665
|
overlayPadding: {
|
|
@@ -686,7 +685,7 @@ var dialogModal = {
|
|
|
686
685
|
}
|
|
687
686
|
};
|
|
688
687
|
|
|
689
|
-
|
|
688
|
+
const feedbackMessage = {
|
|
690
689
|
minHeight: 60,
|
|
691
690
|
danger: {
|
|
692
691
|
backgroundColor: colors.danger
|
|
@@ -702,11 +701,11 @@ var feedbackMessage = {
|
|
|
702
701
|
}
|
|
703
702
|
};
|
|
704
703
|
|
|
705
|
-
|
|
704
|
+
const autocomplete = {
|
|
706
705
|
option: {
|
|
707
706
|
verticalPadding: 2,
|
|
708
707
|
minHeight: 40,
|
|
709
|
-
|
|
708
|
+
default: {
|
|
710
709
|
backgroundColor: colors.white
|
|
711
710
|
},
|
|
712
711
|
hovered: {
|
|
@@ -738,7 +737,7 @@ var autocomplete = {
|
|
|
738
737
|
}
|
|
739
738
|
};
|
|
740
739
|
|
|
741
|
-
|
|
740
|
+
const checkbox = {
|
|
742
741
|
borderWidth: 2,
|
|
743
742
|
borderRadius: 5,
|
|
744
743
|
height: 20,
|
|
@@ -746,7 +745,7 @@ var checkbox = {
|
|
|
746
745
|
iconSize: 14,
|
|
747
746
|
markColor: colors.uiBackgroundLight,
|
|
748
747
|
textSpacing: 10,
|
|
749
|
-
|
|
748
|
+
default: {
|
|
750
749
|
borderColor: colors.separator,
|
|
751
750
|
backgroundColor: colors.uiBackgroundLight
|
|
752
751
|
},
|
|
@@ -776,7 +775,7 @@ var checkbox = {
|
|
|
776
775
|
}
|
|
777
776
|
};
|
|
778
777
|
|
|
779
|
-
|
|
778
|
+
const datePicker = {
|
|
780
779
|
day: {
|
|
781
780
|
minWidth: 64
|
|
782
781
|
},
|
|
@@ -788,27 +787,21 @@ var datePicker = {
|
|
|
788
787
|
}
|
|
789
788
|
};
|
|
790
789
|
|
|
791
|
-
|
|
792
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
793
|
-
};
|
|
790
|
+
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
794
791
|
/** @deprecated legacy typography type config is deprecated. */
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
};
|
|
809
|
-
var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
|
|
810
|
-
var config = {
|
|
811
|
-
fontSize: fontSize,
|
|
792
|
+
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
793
|
+
baseAndSmall: {
|
|
794
|
+
fontSize: baseAndSmallFontSize,
|
|
795
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
796
|
+
},
|
|
797
|
+
mediumAndWide: {
|
|
798
|
+
fontSize: mediumAndWideFontSize,
|
|
799
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
803
|
+
const config = {
|
|
804
|
+
fontSize,
|
|
812
805
|
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
813
806
|
};
|
|
814
807
|
return {
|
|
@@ -816,7 +809,7 @@ var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
|
|
|
816
809
|
mediumAndWide: config
|
|
817
810
|
};
|
|
818
811
|
};
|
|
819
|
-
|
|
812
|
+
const typography = {
|
|
820
813
|
colors: {
|
|
821
814
|
black: colors.black,
|
|
822
815
|
'black-anthracite': colors.blackAnthracite,
|
|
@@ -832,12 +825,9 @@ var typography = {
|
|
|
832
825
|
warning: colors.warning
|
|
833
826
|
},
|
|
834
827
|
types: {
|
|
835
|
-
get header() {
|
|
836
|
-
throw new Error('typography.types.header is deprecated, use typography.type.headings instead');
|
|
837
|
-
},
|
|
838
828
|
headings: {
|
|
839
829
|
fontFamily: {
|
|
840
|
-
|
|
830
|
+
native: {
|
|
841
831
|
regular: 'Moderat-Black',
|
|
842
832
|
bold: 'Moderat-Black'
|
|
843
833
|
},
|
|
@@ -868,12 +858,9 @@ var typography = {
|
|
|
868
858
|
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
869
859
|
}
|
|
870
860
|
},
|
|
871
|
-
get 'headers-impact'() {
|
|
872
|
-
throw new Error('typography.types.headers-impact is deprecated, use typography.type.headings-impact instead');
|
|
873
|
-
},
|
|
874
861
|
'headings-impact': {
|
|
875
862
|
fontFamily: {
|
|
876
|
-
|
|
863
|
+
native: {
|
|
877
864
|
regular: 'Transducer-Black',
|
|
878
865
|
bold: 'Transducer-Black'
|
|
879
866
|
},
|
|
@@ -911,7 +898,7 @@ var typography = {
|
|
|
911
898
|
regular: 'Moderat',
|
|
912
899
|
bold: 'Moderat'
|
|
913
900
|
},
|
|
914
|
-
|
|
901
|
+
native: {
|
|
915
902
|
regular: 'Moderat-Regular',
|
|
916
903
|
bold: 'Moderat-Black'
|
|
917
904
|
}
|
|
@@ -946,8 +933,8 @@ var typography = {
|
|
|
946
933
|
}
|
|
947
934
|
};
|
|
948
935
|
|
|
949
|
-
|
|
950
|
-
|
|
936
|
+
const inputStatesStyle = {
|
|
937
|
+
default: {
|
|
951
938
|
backgroundColor: colors.uiBackgroundLight,
|
|
952
939
|
borderColor: colors.separator,
|
|
953
940
|
color: colors.black
|
|
@@ -980,10 +967,10 @@ var inputStatesStyle = {
|
|
|
980
967
|
color: colors.black
|
|
981
968
|
}
|
|
982
969
|
};
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
970
|
+
const webAnimationDuration = '200ms';
|
|
971
|
+
const webAnimationTimingFunction = 'ease-in-out';
|
|
972
|
+
const webAnimationProperty = 'border-color';
|
|
973
|
+
const input = {
|
|
987
974
|
minHeight: 40,
|
|
988
975
|
color: {
|
|
989
976
|
selection: colors.primary,
|
|
@@ -1009,7 +996,7 @@ var input = {
|
|
|
1009
996
|
states: inputStatesStyle
|
|
1010
997
|
};
|
|
1011
998
|
|
|
1012
|
-
|
|
999
|
+
const inputField = {
|
|
1013
1000
|
containerPaddingTop: 5,
|
|
1014
1001
|
containerPaddingBottom: 10,
|
|
1015
1002
|
feedbackPaddingTop: {
|
|
@@ -1020,7 +1007,7 @@ var inputField = {
|
|
|
1020
1007
|
labelFeedbackMarginLeft: 6
|
|
1021
1008
|
};
|
|
1022
1009
|
|
|
1023
|
-
|
|
1010
|
+
const inputTag = {
|
|
1024
1011
|
success: {
|
|
1025
1012
|
backgroundColor: colors.success,
|
|
1026
1013
|
labelColor: colors.uiBackgroundLight
|
|
@@ -1029,7 +1016,7 @@ var inputTag = {
|
|
|
1029
1016
|
backgroundColor: colors.danger,
|
|
1030
1017
|
labelColor: colors.uiBackgroundLight
|
|
1031
1018
|
},
|
|
1032
|
-
|
|
1019
|
+
default: {
|
|
1033
1020
|
backgroundColor: lateOceanColorPalette.black50,
|
|
1034
1021
|
labelColor: colors.black
|
|
1035
1022
|
},
|
|
@@ -1037,7 +1024,7 @@ var inputTag = {
|
|
|
1037
1024
|
iconSize: 13.5
|
|
1038
1025
|
};
|
|
1039
1026
|
|
|
1040
|
-
|
|
1027
|
+
const radio = {
|
|
1041
1028
|
size: 18,
|
|
1042
1029
|
unchecked: {
|
|
1043
1030
|
borderWidth: 2,
|
|
@@ -1068,20 +1055,20 @@ var radio = {
|
|
|
1068
1055
|
}
|
|
1069
1056
|
};
|
|
1070
1057
|
|
|
1071
|
-
|
|
1058
|
+
const radioButtonGroup = {
|
|
1072
1059
|
item: {
|
|
1073
1060
|
minHeight: 40,
|
|
1074
1061
|
borderWidth: 2,
|
|
1075
1062
|
borderRadius: 20,
|
|
1076
1063
|
borderColor: {
|
|
1077
|
-
|
|
1064
|
+
default: colors.separator,
|
|
1078
1065
|
hover: colors.primary,
|
|
1079
1066
|
pressed: colors.primary,
|
|
1080
1067
|
active: colors.primary,
|
|
1081
1068
|
disabled: colors.separator
|
|
1082
1069
|
},
|
|
1083
1070
|
backgroundColor: {
|
|
1084
|
-
|
|
1071
|
+
default: colors.uiBackgroundLight,
|
|
1085
1072
|
hover: colors.white,
|
|
1086
1073
|
pressed: colors.primary,
|
|
1087
1074
|
active: colors.primary,
|
|
@@ -1099,32 +1086,32 @@ var radioButtonGroup = {
|
|
|
1099
1086
|
}
|
|
1100
1087
|
};
|
|
1101
1088
|
|
|
1102
|
-
|
|
1089
|
+
const textArea = {
|
|
1103
1090
|
minHeight: 120
|
|
1104
1091
|
};
|
|
1105
1092
|
|
|
1106
|
-
|
|
1093
|
+
const timePicker = {
|
|
1107
1094
|
minWidth: 100
|
|
1108
1095
|
};
|
|
1109
1096
|
|
|
1110
|
-
|
|
1111
|
-
autocomplete
|
|
1112
|
-
datePicker
|
|
1113
|
-
input
|
|
1114
|
-
radio
|
|
1115
|
-
inputField
|
|
1116
|
-
textArea
|
|
1117
|
-
checkbox
|
|
1118
|
-
inputTag
|
|
1119
|
-
radioButtonGroup
|
|
1120
|
-
timePicker
|
|
1097
|
+
const forms = {
|
|
1098
|
+
autocomplete,
|
|
1099
|
+
datePicker,
|
|
1100
|
+
input,
|
|
1101
|
+
radio,
|
|
1102
|
+
inputField,
|
|
1103
|
+
textArea,
|
|
1104
|
+
checkbox,
|
|
1105
|
+
inputTag,
|
|
1106
|
+
radioButtonGroup,
|
|
1107
|
+
timePicker
|
|
1121
1108
|
};
|
|
1122
1109
|
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1110
|
+
const webAnimationContentDuration = 600;
|
|
1111
|
+
const webAnimationContentEasing = [0.77, 0, 0.175, 1];
|
|
1112
|
+
const webAnimationOverlayDuration = 250;
|
|
1113
|
+
const webAnimationOverlayEasing = [0.42, 0, 1, 1];
|
|
1114
|
+
const fullscreenModal = {
|
|
1128
1115
|
header: {
|
|
1129
1116
|
height: 56
|
|
1130
1117
|
},
|
|
@@ -1147,7 +1134,7 @@ var fullscreenModal = {
|
|
|
1147
1134
|
}
|
|
1148
1135
|
};
|
|
1149
1136
|
|
|
1150
|
-
|
|
1137
|
+
const highlight = {
|
|
1151
1138
|
borderRadius: spacing * 5,
|
|
1152
1139
|
/** @deprecated use primary instead */
|
|
1153
1140
|
regular: {
|
|
@@ -1165,14 +1152,14 @@ var highlight = {
|
|
|
1165
1152
|
padding: spacing * 5
|
|
1166
1153
|
};
|
|
1167
1154
|
|
|
1168
|
-
|
|
1155
|
+
const getIconSizeFromFontSize = fontSize => {
|
|
1169
1156
|
if (fontSize <= 14) return 16;
|
|
1170
1157
|
if (fontSize <= 16) return 20;
|
|
1171
1158
|
return 24;
|
|
1172
1159
|
};
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1160
|
+
const createTypographyIconSizeConfig = (baseAndSmallFontSize, mediumAndWideFontSize) => {
|
|
1161
|
+
const baseAndSmallIconSize = getIconSizeFromFontSize(baseAndSmallFontSize);
|
|
1162
|
+
const mediumAndWideIconSize = getIconSizeFromFontSize(mediumAndWideFontSize);
|
|
1176
1163
|
return {
|
|
1177
1164
|
baseAndSmall: {
|
|
1178
1165
|
iconSize: baseAndSmallIconSize
|
|
@@ -1182,7 +1169,7 @@ var createTypographyIconSizeConfig = function (baseAndSmallFontSize, mediumAndWi
|
|
|
1182
1169
|
}
|
|
1183
1170
|
};
|
|
1184
1171
|
};
|
|
1185
|
-
|
|
1172
|
+
const icon = {
|
|
1186
1173
|
defaultSize: 20,
|
|
1187
1174
|
// Note: this is based on typography updated sizes, not current https://github.com/ornikar/kitt/pull/2130
|
|
1188
1175
|
typographySize: {
|
|
@@ -1212,7 +1199,7 @@ var icon = {
|
|
|
1212
1199
|
}
|
|
1213
1200
|
};
|
|
1214
1201
|
|
|
1215
|
-
|
|
1202
|
+
const iconButton = {
|
|
1216
1203
|
backgroundColor: 'transparent',
|
|
1217
1204
|
width: 40,
|
|
1218
1205
|
height: 40,
|
|
@@ -1226,33 +1213,33 @@ var iconButton = {
|
|
|
1226
1213
|
},
|
|
1227
1214
|
scale: {
|
|
1228
1215
|
base: {
|
|
1229
|
-
|
|
1216
|
+
default: 1,
|
|
1230
1217
|
hover: 0.95,
|
|
1231
1218
|
active: 0.95
|
|
1232
1219
|
},
|
|
1233
1220
|
medium: {
|
|
1234
|
-
|
|
1221
|
+
default: 1,
|
|
1235
1222
|
hover: 1.05,
|
|
1236
1223
|
active: 0.95
|
|
1237
1224
|
}
|
|
1238
1225
|
},
|
|
1239
1226
|
disabled: {
|
|
1240
1227
|
scale: 1,
|
|
1241
|
-
backgroundColor: button.disabled
|
|
1242
|
-
borderColor: button.disabled
|
|
1228
|
+
backgroundColor: button.disabled.default.backgroundColor,
|
|
1229
|
+
borderColor: button.disabled.default.borderColor
|
|
1243
1230
|
},
|
|
1244
|
-
|
|
1245
|
-
pressedBackgroundColor: button
|
|
1231
|
+
default: {
|
|
1232
|
+
pressedBackgroundColor: button.default.default.pressedBackgroundColor
|
|
1246
1233
|
},
|
|
1247
1234
|
ghost: {
|
|
1248
|
-
pressedBackgroundColor: button
|
|
1235
|
+
pressedBackgroundColor: button.default.ghost.pressedBackgroundColor
|
|
1249
1236
|
},
|
|
1250
1237
|
primary: {
|
|
1251
1238
|
pressedBackgroundColor: lateOceanColorPalette.moonPurpleLight1
|
|
1252
1239
|
}
|
|
1253
1240
|
};
|
|
1254
1241
|
|
|
1255
|
-
|
|
1242
|
+
const listItem = {
|
|
1256
1243
|
padding: '12px 16px',
|
|
1257
1244
|
verticalPadding: 12,
|
|
1258
1245
|
horizontalPadding: 16,
|
|
@@ -1261,14 +1248,14 @@ var listItem = {
|
|
|
1261
1248
|
innerMargin: 8
|
|
1262
1249
|
};
|
|
1263
1250
|
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1251
|
+
const pageLoaderSize = 60;
|
|
1252
|
+
const pageLoaderStrokeWidth = 3;
|
|
1253
|
+
const webAnimationDelay = 500;
|
|
1254
|
+
const webAnimationCircleBackgroundFillDuration = 1000;
|
|
1255
|
+
const webAnimationFilledCircleFillDuration = 1800;
|
|
1256
|
+
const webAnimationFilledCircleRotationDuration = 2160;
|
|
1257
|
+
const fillEasingFunction = [0.39, 0.575, 0.565, 1];
|
|
1258
|
+
const pageLoader = {
|
|
1272
1259
|
size: pageLoaderSize,
|
|
1273
1260
|
strokeWidth: pageLoaderStrokeWidth,
|
|
1274
1261
|
colors: {
|
|
@@ -1281,14 +1268,14 @@ var pageLoader = {
|
|
|
1281
1268
|
filledCircleFillDuration: webAnimationFilledCircleFillDuration,
|
|
1282
1269
|
groupFilledCircleRotationDuration: 1800,
|
|
1283
1270
|
filledCircleRotationDuration: webAnimationFilledCircleRotationDuration,
|
|
1284
|
-
fillEasingFunction
|
|
1271
|
+
fillEasingFunction
|
|
1285
1272
|
}
|
|
1286
1273
|
};
|
|
1287
1274
|
|
|
1288
|
-
|
|
1275
|
+
const picker = {
|
|
1289
1276
|
ios: {
|
|
1290
|
-
|
|
1291
|
-
fontFamily: typography.types.bodies.fontFamily
|
|
1277
|
+
default: _objectSpread(_objectSpread({
|
|
1278
|
+
fontFamily: typography.types.bodies.fontFamily.native.regular
|
|
1292
1279
|
}, typography.types.bodies.configs.body.baseAndSmall), {}, {
|
|
1293
1280
|
fontSize: 16,
|
|
1294
1281
|
color: typography.colors['black-light'],
|
|
@@ -1317,7 +1304,7 @@ var picker = {
|
|
|
1317
1304
|
option: {
|
|
1318
1305
|
verticalPadding: 3,
|
|
1319
1306
|
horizontalPadding: 16,
|
|
1320
|
-
|
|
1307
|
+
default: {
|
|
1321
1308
|
backgroundColor: colors.transparent
|
|
1322
1309
|
},
|
|
1323
1310
|
hovered: {
|
|
@@ -1341,7 +1328,7 @@ var picker = {
|
|
|
1341
1328
|
option: {
|
|
1342
1329
|
verticalPadding: 12,
|
|
1343
1330
|
horizontalPadding: 24,
|
|
1344
|
-
|
|
1331
|
+
default: {
|
|
1345
1332
|
backgroundColor: colors.transparent
|
|
1346
1333
|
},
|
|
1347
1334
|
selected: {
|
|
@@ -1352,7 +1339,7 @@ var picker = {
|
|
|
1352
1339
|
}
|
|
1353
1340
|
};
|
|
1354
1341
|
|
|
1355
|
-
|
|
1342
|
+
const shadows = {
|
|
1356
1343
|
/** @deprecated: use cards.medium instead - shorthand shadow doesnt work with Native Base */
|
|
1357
1344
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)',
|
|
1358
1345
|
cards: {
|
|
@@ -1417,9 +1404,9 @@ var shadows = {
|
|
|
1417
1404
|
}
|
|
1418
1405
|
};
|
|
1419
1406
|
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1407
|
+
const skeletonBackgroundColor = lateOceanColorPalette.black100;
|
|
1408
|
+
const skeletonFlareColor = lateOceanColorPalette.black200;
|
|
1409
|
+
const skeleton = {
|
|
1423
1410
|
backgroundColor: skeletonBackgroundColor,
|
|
1424
1411
|
flareColor: skeletonFlareColor,
|
|
1425
1412
|
animationDuration: 1000,
|
|
@@ -1439,7 +1426,7 @@ var skeleton = {
|
|
|
1439
1426
|
}
|
|
1440
1427
|
};
|
|
1441
1428
|
|
|
1442
|
-
|
|
1429
|
+
const tag = {
|
|
1443
1430
|
borderRadius: 10,
|
|
1444
1431
|
padding: '2px 12px',
|
|
1445
1432
|
verticalPadding: 2,
|
|
@@ -1456,7 +1443,7 @@ var tag = {
|
|
|
1456
1443
|
borderColor: colors.primary
|
|
1457
1444
|
}
|
|
1458
1445
|
},
|
|
1459
|
-
|
|
1446
|
+
default: {
|
|
1460
1447
|
fill: {
|
|
1461
1448
|
backgroundColor: lateOceanColorPalette.black50,
|
|
1462
1449
|
borderWidth: 0,
|
|
@@ -1494,7 +1481,7 @@ var tag = {
|
|
|
1494
1481
|
}
|
|
1495
1482
|
};
|
|
1496
1483
|
|
|
1497
|
-
|
|
1484
|
+
const tooltip = {
|
|
1498
1485
|
backgroundColor: hex2rgba(colors.black, 0.95),
|
|
1499
1486
|
borderRadius: 10,
|
|
1500
1487
|
opacity: 0.95,
|
|
@@ -1503,7 +1490,7 @@ var tooltip = {
|
|
|
1503
1490
|
floatingPadding: 8,
|
|
1504
1491
|
maxWidth: 328,
|
|
1505
1492
|
transition: {
|
|
1506
|
-
|
|
1493
|
+
in: {
|
|
1507
1494
|
duration: '150ms',
|
|
1508
1495
|
timingFunction: 'ease-out',
|
|
1509
1496
|
property: 'opacity'
|
|
@@ -1520,7 +1507,7 @@ var tooltip = {
|
|
|
1520
1507
|
}
|
|
1521
1508
|
};
|
|
1522
1509
|
|
|
1523
|
-
|
|
1510
|
+
const verticalSteps = {
|
|
1524
1511
|
active: {
|
|
1525
1512
|
icon: {
|
|
1526
1513
|
backgroundColor: colors.primary,
|
|
@@ -1533,7 +1520,7 @@ var verticalSteps = {
|
|
|
1533
1520
|
textColor: colors.primary
|
|
1534
1521
|
}
|
|
1535
1522
|
},
|
|
1536
|
-
|
|
1523
|
+
default: {
|
|
1537
1524
|
icon: {
|
|
1538
1525
|
backgroundColor: colors.disabled,
|
|
1539
1526
|
textColor: colors.blackDisabled
|
|
@@ -1541,7 +1528,7 @@ var verticalSteps = {
|
|
|
1541
1528
|
}
|
|
1542
1529
|
};
|
|
1543
1530
|
|
|
1544
|
-
|
|
1531
|
+
const breakpoints = {
|
|
1545
1532
|
values: {
|
|
1546
1533
|
base: 0,
|
|
1547
1534
|
small: 480,
|
|
@@ -1565,40 +1552,38 @@ var breakpoints = {
|
|
|
1565
1552
|
|
|
1566
1553
|
// eslint-disable-next-line unicorn/expiring-todo-comments
|
|
1567
1554
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
1568
|
-
|
|
1569
|
-
spacing
|
|
1570
|
-
getSpacing:
|
|
1571
|
-
|
|
1572
|
-
},
|
|
1573
|
-
colors: colors,
|
|
1555
|
+
const theme = {
|
|
1556
|
+
spacing,
|
|
1557
|
+
getSpacing: multiplier => spacing * multiplier,
|
|
1558
|
+
colors,
|
|
1574
1559
|
palettes: {
|
|
1575
1560
|
lateOcean: lateOceanColorPalette
|
|
1576
1561
|
},
|
|
1577
|
-
avatar
|
|
1578
|
-
breakpoints
|
|
1579
|
-
button
|
|
1580
|
-
bottomSheet
|
|
1581
|
-
card
|
|
1582
|
-
cardModal
|
|
1583
|
-
choices
|
|
1584
|
-
dialogModal
|
|
1585
|
-
feedbackMessage
|
|
1586
|
-
forms
|
|
1587
|
-
highlight
|
|
1588
|
-
icon
|
|
1589
|
-
iconButton
|
|
1590
|
-
listItem
|
|
1591
|
-
pageLoader
|
|
1592
|
-
picker
|
|
1593
|
-
shadows
|
|
1594
|
-
skeleton
|
|
1595
|
-
tag
|
|
1596
|
-
tooltip
|
|
1597
|
-
typography
|
|
1598
|
-
fullscreenModal
|
|
1599
|
-
actionCard
|
|
1600
|
-
verticalSteps
|
|
1562
|
+
avatar,
|
|
1563
|
+
breakpoints,
|
|
1564
|
+
button,
|
|
1565
|
+
bottomSheet,
|
|
1566
|
+
card,
|
|
1567
|
+
cardModal,
|
|
1568
|
+
choices,
|
|
1569
|
+
dialogModal,
|
|
1570
|
+
feedbackMessage,
|
|
1571
|
+
forms,
|
|
1572
|
+
highlight,
|
|
1573
|
+
icon,
|
|
1574
|
+
iconButton,
|
|
1575
|
+
listItem,
|
|
1576
|
+
pageLoader,
|
|
1577
|
+
picker,
|
|
1578
|
+
shadows,
|
|
1579
|
+
skeleton,
|
|
1580
|
+
tag,
|
|
1581
|
+
tooltip,
|
|
1582
|
+
typography,
|
|
1583
|
+
fullscreenModal,
|
|
1584
|
+
actionCard,
|
|
1585
|
+
verticalSteps
|
|
1601
1586
|
};
|
|
1602
1587
|
|
|
1603
1588
|
export { theme as defaultThemeLinaria };
|
|
1604
|
-
//# sourceMappingURL=linaria-themes.es.
|
|
1589
|
+
//# sourceMappingURL=linaria-themes-metro.es.ios.js.map
|