@ornikar/kitt-universal 23.0.2 → 23.2.1
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 +26 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.d.ts +11 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.web.d.ts +4 -0
- package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.web.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts +13 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts +4 -0
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.d.ts +12 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.d.ts.map +1 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.web.d.ts +4 -0
- package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.web.d.ts.map +1 -0
- package/dist/definitions/Highlight/Highlight.d.ts +10 -5
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts +18 -0
- package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts.map +1 -0
- package/dist/definitions/Highlight/hooks/useNativeAnimation.web.d.ts +3 -0
- package/dist/definitions/Highlight/hooks/useNativeAnimation.web.d.ts.map +1 -0
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +4 -1
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.d.ts +2 -0
- package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +37 -11
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -4
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts +1 -4
- package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +11 -2
- package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts +2 -2
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/inputField.d.ts +1 -4
- package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -1
- package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts +1 -1
- package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +487 -205
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +487 -205
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +486 -204
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.css +1 -1
- package/dist/index-node-20.10.cjs.web.js +451 -203
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +487 -205
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.css +1 -1
- package/dist/index-node-20.10.es.web.mjs +452 -204
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +501 -212
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +467 -211
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +212 -183
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +212 -183
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +212 -183
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +212 -183
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +212 -183
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +212 -183
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +218 -189
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +218 -189
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -943,215 +943,64 @@ var datePicker = {
|
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
945
|
|
|
946
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
947
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
948
|
-
};
|
|
949
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
950
|
-
var createLegacyTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
|
|
951
|
-
var mediumAndWideFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : baseAndSmallFontSize;
|
|
952
|
-
var lineHeightMultiplierMediumAndWide = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : lineHeightMultiplierBaseAndSmall;
|
|
953
|
-
return {
|
|
954
|
-
baseAndSmall: {
|
|
955
|
-
fontSize: baseAndSmallFontSize,
|
|
956
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
957
|
-
},
|
|
958
|
-
mediumAndWide: {
|
|
959
|
-
fontSize: mediumAndWideFontSize,
|
|
960
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
|
|
965
|
-
var config = {
|
|
966
|
-
fontSize: fontSize,
|
|
967
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
968
|
-
};
|
|
969
|
-
return {
|
|
970
|
-
baseAndSmall: config,
|
|
971
|
-
mediumAndWide: config
|
|
972
|
-
};
|
|
973
|
-
};
|
|
974
|
-
var typography = {
|
|
975
|
-
colors: {
|
|
976
|
-
black: colors.black,
|
|
977
|
-
'black-anthracite': colors.blackAnthracite,
|
|
978
|
-
'black-disabled': lateOceanColorPalette.black400,
|
|
979
|
-
'black-light': lateOceanColorPalette.black555,
|
|
980
|
-
white: colors.white,
|
|
981
|
-
'white-light': colors.white,
|
|
982
|
-
primary: colors.primary,
|
|
983
|
-
'primary-light': colors.primaryLight,
|
|
984
|
-
accent: colors.accent,
|
|
985
|
-
success: colors.success,
|
|
986
|
-
danger: colors.danger,
|
|
987
|
-
warning: colors.warning
|
|
988
|
-
},
|
|
989
|
-
types: {
|
|
990
|
-
headings: {
|
|
991
|
-
fontFamily: {
|
|
992
|
-
"native": {
|
|
993
|
-
regular: 'Moderat-Bold',
|
|
994
|
-
bold: 'Moderat-Bold'
|
|
995
|
-
},
|
|
996
|
-
web: {
|
|
997
|
-
regular: 'Moderat',
|
|
998
|
-
bold: 'Moderat'
|
|
999
|
-
}
|
|
1000
|
-
},
|
|
1001
|
-
fontWeight: {
|
|
1002
|
-
regular: 400,
|
|
1003
|
-
bold: 700
|
|
1004
|
-
},
|
|
1005
|
-
fontStyle: 'normal',
|
|
1006
|
-
configs: {
|
|
1007
|
-
/* legacy */
|
|
1008
|
-
header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
|
|
1009
|
-
header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
|
|
1010
|
-
header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
|
|
1011
|
-
header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
|
|
1012
|
-
header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
|
|
1013
|
-
/* latest */
|
|
1014
|
-
'heading-xxl': createTypographyConfig(56, 1.1),
|
|
1015
|
-
'heading-xl': createTypographyConfig(48, 1.1),
|
|
1016
|
-
'heading-l': createTypographyConfig(40, 1.1),
|
|
1017
|
-
'heading-m': createTypographyConfig(32, 1.2),
|
|
1018
|
-
'heading-s': createTypographyConfig(24, 1.2),
|
|
1019
|
-
'heading-xs': createTypographyConfig(18, 1.3),
|
|
1020
|
-
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
1021
|
-
}
|
|
1022
|
-
},
|
|
1023
|
-
'headings-impact': {
|
|
1024
|
-
fontFamily: {
|
|
1025
|
-
"native": {
|
|
1026
|
-
regular: 'Transducer-Black',
|
|
1027
|
-
bold: 'Transducer-Black'
|
|
1028
|
-
},
|
|
1029
|
-
web: {
|
|
1030
|
-
regular: 'TransducerBlack',
|
|
1031
|
-
bold: 'TransducerBlack'
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
fontWeight: 900,
|
|
1035
|
-
fontStyle: 'normal',
|
|
1036
|
-
configs: {
|
|
1037
|
-
/* legacy */
|
|
1038
|
-
'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
|
|
1039
|
-
'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
|
|
1040
|
-
'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
|
|
1041
|
-
'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
|
|
1042
|
-
'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
|
|
1043
|
-
'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
|
|
1044
|
-
'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
|
|
1045
|
-
'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
|
|
1046
|
-
/* latest */
|
|
1047
|
-
'heading-impact-xxl': createTypographyConfig(56, 1.2),
|
|
1048
|
-
'heading-impact-xl': createTypographyConfig(48, 1.2),
|
|
1049
|
-
'heading-impact-l': createTypographyConfig(40, 1.2),
|
|
1050
|
-
'heading-impact-m': createTypographyConfig(32, 1.2),
|
|
1051
|
-
'heading-impact-s': createTypographyConfig(24, 1.2),
|
|
1052
|
-
'heading-impact-xs': createTypographyConfig(18, 1.2),
|
|
1053
|
-
'heading-impact-xxs': createTypographyConfig(16, 1.2),
|
|
1054
|
-
'heading-impact-xxxs': createTypographyConfig(14, 1.2)
|
|
1055
|
-
}
|
|
1056
|
-
},
|
|
1057
|
-
bodies: {
|
|
1058
|
-
fontFamily: {
|
|
1059
|
-
web: {
|
|
1060
|
-
regular: 'Moderat',
|
|
1061
|
-
bold: 'Moderat'
|
|
1062
|
-
},
|
|
1063
|
-
"native": {
|
|
1064
|
-
regular: 'Moderat-Regular',
|
|
1065
|
-
bold: 'Moderat-Bold'
|
|
1066
|
-
}
|
|
1067
|
-
},
|
|
1068
|
-
fontWeight: {
|
|
1069
|
-
regular: 400,
|
|
1070
|
-
bold: 700
|
|
1071
|
-
},
|
|
1072
|
-
fontStyle: {
|
|
1073
|
-
regular: 'normal',
|
|
1074
|
-
bold: 'normal'
|
|
1075
|
-
},
|
|
1076
|
-
configs: {
|
|
1077
|
-
/* legacy */
|
|
1078
|
-
'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
|
|
1079
|
-
'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
|
|
1080
|
-
body: createLegacyTypographyTypeConfig(1.4, 16, 16),
|
|
1081
|
-
'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
|
|
1082
|
-
'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
|
|
1083
|
-
/* latest */
|
|
1084
|
-
'body-xl': createTypographyConfig(24, 1.4),
|
|
1085
|
-
'body-l': createTypographyConfig(18, 1.4),
|
|
1086
|
-
'body-m': createTypographyConfig(16, 1.4),
|
|
1087
|
-
'body-s': createTypographyConfig(14, 1.4),
|
|
1088
|
-
'body-xs': createTypographyConfig(12, 1.4)
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
},
|
|
1092
|
-
link: {
|
|
1093
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
1094
|
-
disabledColor: colors.blackDisabled
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
946
|
var inputStatesStyle = {
|
|
1099
947
|
"default": {
|
|
1100
|
-
backgroundColor:
|
|
1101
|
-
borderColor:
|
|
1102
|
-
color:
|
|
948
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
949
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
950
|
+
color: lateOceanColorPalette.black
|
|
1103
951
|
},
|
|
1104
952
|
pending: {
|
|
1105
|
-
backgroundColor:
|
|
1106
|
-
borderColor:
|
|
1107
|
-
color:
|
|
953
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
954
|
+
borderColor: lateOceanColorPalette['eggshell.3'],
|
|
955
|
+
color: lateOceanColorPalette.black
|
|
1108
956
|
},
|
|
1109
957
|
valid: {
|
|
1110
|
-
backgroundColor:
|
|
1111
|
-
borderColor: lateOceanColorPalette.
|
|
1112
|
-
color:
|
|
958
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
959
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
960
|
+
color: lateOceanColorPalette.black
|
|
1113
961
|
},
|
|
1114
962
|
hover: {
|
|
1115
|
-
|
|
1116
|
-
|
|
963
|
+
backgroundColor: lateOceanColorPalette['eggshell.1'],
|
|
964
|
+
borderColor: lateOceanColorPalette['eggshell.5'],
|
|
965
|
+
color: lateOceanColorPalette.black
|
|
1117
966
|
},
|
|
1118
967
|
focus: {
|
|
1119
|
-
borderColor:
|
|
1120
|
-
color:
|
|
968
|
+
borderColor: lateOceanColorPalette['violine.9'],
|
|
969
|
+
color: lateOceanColorPalette.black
|
|
1121
970
|
},
|
|
1122
971
|
disabled: {
|
|
1123
|
-
backgroundColor:
|
|
1124
|
-
borderColor:
|
|
1125
|
-
color:
|
|
972
|
+
backgroundColor: lateOceanColorPalette['eggshell.2'],
|
|
973
|
+
borderColor: lateOceanColorPalette['eggshell.4'],
|
|
974
|
+
color: lateOceanColorPalette['eggshell.6']
|
|
1126
975
|
},
|
|
1127
976
|
invalid: {
|
|
1128
|
-
borderColor:
|
|
1129
|
-
color:
|
|
977
|
+
borderColor: lateOceanColorPalette['eggshell.3'],
|
|
978
|
+
color: lateOceanColorPalette.black
|
|
1130
979
|
}
|
|
1131
980
|
};
|
|
1132
981
|
var webAnimationDuration = '200ms';
|
|
1133
982
|
var webAnimationTimingFunction = 'ease-in-out';
|
|
1134
|
-
var
|
|
983
|
+
var webAnimationProperties = ['border-color', 'background-color'];
|
|
1135
984
|
var input = {
|
|
1136
985
|
minHeight: 40,
|
|
1137
986
|
color: {
|
|
1138
|
-
selection:
|
|
1139
|
-
placeholder:
|
|
987
|
+
selection: lateOceanColorPalette['violine.9'],
|
|
988
|
+
placeholder: lateOceanColorPalette['eggshell.9']
|
|
1140
989
|
},
|
|
1141
|
-
borderWidth:
|
|
1142
|
-
borderRadius:
|
|
990
|
+
borderWidth: 1,
|
|
991
|
+
borderRadius: 8,
|
|
1143
992
|
icon: {
|
|
1144
993
|
size: 20
|
|
1145
994
|
},
|
|
1146
995
|
rightContainer: {
|
|
1147
|
-
padding:
|
|
996
|
+
padding: 16
|
|
1148
997
|
},
|
|
1149
998
|
padding: {
|
|
1150
999
|
horizontal: 16,
|
|
1151
|
-
vertical:
|
|
1000
|
+
vertical: 0
|
|
1152
1001
|
},
|
|
1153
1002
|
transition: {
|
|
1154
|
-
|
|
1003
|
+
properties: webAnimationProperties,
|
|
1155
1004
|
duration: webAnimationDuration,
|
|
1156
1005
|
timingFunction: webAnimationTimingFunction
|
|
1157
1006
|
},
|
|
@@ -1161,11 +1010,8 @@ var input = {
|
|
|
1161
1010
|
var inputField = {
|
|
1162
1011
|
containerPaddingTop: 5,
|
|
1163
1012
|
containerPaddingBottom: 10,
|
|
1164
|
-
feedbackPaddingTop:
|
|
1165
|
-
|
|
1166
|
-
small: 10
|
|
1167
|
-
},
|
|
1168
|
-
labelContainerPaddingBottom: 5,
|
|
1013
|
+
feedbackPaddingTop: 4,
|
|
1014
|
+
labelContainerPaddingBottom: 4,
|
|
1169
1015
|
labelFeedbackMarginLeft: 6
|
|
1170
1016
|
};
|
|
1171
1017
|
|
|
@@ -1297,21 +1143,52 @@ var fullscreenModal = {
|
|
|
1297
1143
|
};
|
|
1298
1144
|
|
|
1299
1145
|
var highlight = {
|
|
1300
|
-
borderRadius: spacing *
|
|
1146
|
+
borderRadius: spacing * 2,
|
|
1301
1147
|
/** @deprecated use primary instead */
|
|
1302
1148
|
regular: {
|
|
1303
|
-
|
|
1149
|
+
"default": {
|
|
1150
|
+
backgroundColor: colors.accentLight
|
|
1151
|
+
},
|
|
1152
|
+
hover: {
|
|
1153
|
+
backgroundColor: colors.accentLight
|
|
1154
|
+
}
|
|
1304
1155
|
},
|
|
1305
1156
|
primary: {
|
|
1306
|
-
|
|
1157
|
+
"default": {
|
|
1158
|
+
backgroundColor: lateOceanColorPalette['lavender.3']
|
|
1159
|
+
},
|
|
1160
|
+
hover: {
|
|
1161
|
+
backgroundColor: lateOceanColorPalette['lavender.5']
|
|
1162
|
+
}
|
|
1307
1163
|
},
|
|
1308
1164
|
secondary: {
|
|
1309
|
-
|
|
1165
|
+
"default": {
|
|
1166
|
+
backgroundColor: lateOceanColorPalette['violine.2']
|
|
1167
|
+
},
|
|
1168
|
+
hover: {
|
|
1169
|
+
backgroundColor: lateOceanColorPalette['violine.4']
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
ghost: {
|
|
1173
|
+
"default": {
|
|
1174
|
+
backgroundColor: lateOceanColorPalette.white
|
|
1175
|
+
},
|
|
1176
|
+
hover: {
|
|
1177
|
+
backgroundColor: lateOceanColorPalette['eggshell.2']
|
|
1178
|
+
}
|
|
1310
1179
|
},
|
|
1311
1180
|
dark: {
|
|
1312
|
-
|
|
1181
|
+
"default": {
|
|
1182
|
+
backgroundColor: lateOceanColorPalette['eggshell.3']
|
|
1183
|
+
},
|
|
1184
|
+
hover: {
|
|
1185
|
+
backgroundColor: lateOceanColorPalette['eggshell.2']
|
|
1186
|
+
}
|
|
1313
1187
|
},
|
|
1314
|
-
padding:
|
|
1188
|
+
padding: {
|
|
1189
|
+
medium: spacing * 4,
|
|
1190
|
+
large: spacing * 6
|
|
1191
|
+
}
|
|
1315
1192
|
};
|
|
1316
1193
|
|
|
1317
1194
|
var getIconSizeFromFontSize = function (fontSize) {
|
|
@@ -1434,6 +1311,158 @@ var pageLoader = {
|
|
|
1434
1311
|
}
|
|
1435
1312
|
};
|
|
1436
1313
|
|
|
1314
|
+
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
1315
|
+
return Math.round(fontSize * lineHeightMultiplier);
|
|
1316
|
+
};
|
|
1317
|
+
/** @deprecated legacy typography type config is deprecated. */
|
|
1318
|
+
var createLegacyTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
|
|
1319
|
+
var mediumAndWideFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : baseAndSmallFontSize;
|
|
1320
|
+
var lineHeightMultiplierMediumAndWide = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : lineHeightMultiplierBaseAndSmall;
|
|
1321
|
+
return {
|
|
1322
|
+
baseAndSmall: {
|
|
1323
|
+
fontSize: baseAndSmallFontSize,
|
|
1324
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
1325
|
+
},
|
|
1326
|
+
mediumAndWide: {
|
|
1327
|
+
fontSize: mediumAndWideFontSize,
|
|
1328
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
1329
|
+
}
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
|
|
1333
|
+
var config = {
|
|
1334
|
+
fontSize: fontSize,
|
|
1335
|
+
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
1336
|
+
};
|
|
1337
|
+
return {
|
|
1338
|
+
baseAndSmall: config,
|
|
1339
|
+
mediumAndWide: config
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
var typography = {
|
|
1343
|
+
colors: {
|
|
1344
|
+
black: colors.black,
|
|
1345
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1346
|
+
'black-disabled': lateOceanColorPalette.black400,
|
|
1347
|
+
'black-light': lateOceanColorPalette.black555,
|
|
1348
|
+
white: colors.white,
|
|
1349
|
+
'white-light': colors.white,
|
|
1350
|
+
primary: colors.primary,
|
|
1351
|
+
'primary-light': colors.primaryLight,
|
|
1352
|
+
accent: colors.accent,
|
|
1353
|
+
success: colors.success,
|
|
1354
|
+
danger: colors.danger,
|
|
1355
|
+
warning: colors.warning
|
|
1356
|
+
},
|
|
1357
|
+
types: {
|
|
1358
|
+
headings: {
|
|
1359
|
+
fontFamily: {
|
|
1360
|
+
"native": {
|
|
1361
|
+
regular: 'Moderat-Bold',
|
|
1362
|
+
bold: 'Moderat-Bold'
|
|
1363
|
+
},
|
|
1364
|
+
web: {
|
|
1365
|
+
regular: 'Moderat',
|
|
1366
|
+
bold: 'Moderat'
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
fontWeight: {
|
|
1370
|
+
regular: 400,
|
|
1371
|
+
bold: 700
|
|
1372
|
+
},
|
|
1373
|
+
fontStyle: 'normal',
|
|
1374
|
+
configs: {
|
|
1375
|
+
/* legacy */
|
|
1376
|
+
header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
|
|
1377
|
+
header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
|
|
1378
|
+
header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
|
|
1379
|
+
header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
|
|
1380
|
+
header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
|
|
1381
|
+
/* latest */
|
|
1382
|
+
'heading-xxl': createTypographyConfig(56, 1.1),
|
|
1383
|
+
'heading-xl': createTypographyConfig(48, 1.1),
|
|
1384
|
+
'heading-l': createTypographyConfig(40, 1.1),
|
|
1385
|
+
'heading-m': createTypographyConfig(32, 1.2),
|
|
1386
|
+
'heading-s': createTypographyConfig(24, 1.2),
|
|
1387
|
+
'heading-xs': createTypographyConfig(18, 1.3),
|
|
1388
|
+
'heading-xxs': createTypographyConfig(16, 1.3)
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
'headings-impact': {
|
|
1392
|
+
fontFamily: {
|
|
1393
|
+
"native": {
|
|
1394
|
+
regular: 'Transducer-Black',
|
|
1395
|
+
bold: 'Transducer-Black'
|
|
1396
|
+
},
|
|
1397
|
+
web: {
|
|
1398
|
+
regular: 'TransducerBlack',
|
|
1399
|
+
bold: 'TransducerBlack'
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
fontWeight: 900,
|
|
1403
|
+
fontStyle: 'normal',
|
|
1404
|
+
configs: {
|
|
1405
|
+
/* legacy */
|
|
1406
|
+
'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
|
|
1407
|
+
'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
|
|
1408
|
+
'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
|
|
1409
|
+
'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
|
|
1410
|
+
'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
|
|
1411
|
+
'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
|
|
1412
|
+
'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
|
|
1413
|
+
'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
|
|
1414
|
+
/* latest */
|
|
1415
|
+
'heading-impact-xxl': createTypographyConfig(56, 1.2),
|
|
1416
|
+
'heading-impact-xl': createTypographyConfig(48, 1.2),
|
|
1417
|
+
'heading-impact-l': createTypographyConfig(40, 1.2),
|
|
1418
|
+
'heading-impact-m': createTypographyConfig(32, 1.2),
|
|
1419
|
+
'heading-impact-s': createTypographyConfig(24, 1.2),
|
|
1420
|
+
'heading-impact-xs': createTypographyConfig(18, 1.2),
|
|
1421
|
+
'heading-impact-xxs': createTypographyConfig(16, 1.2),
|
|
1422
|
+
'heading-impact-xxxs': createTypographyConfig(14, 1.2)
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
bodies: {
|
|
1426
|
+
fontFamily: {
|
|
1427
|
+
web: {
|
|
1428
|
+
regular: 'Moderat',
|
|
1429
|
+
bold: 'Moderat'
|
|
1430
|
+
},
|
|
1431
|
+
"native": {
|
|
1432
|
+
regular: 'Moderat-Regular',
|
|
1433
|
+
bold: 'Moderat-Bold'
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
fontWeight: {
|
|
1437
|
+
regular: 400,
|
|
1438
|
+
bold: 700
|
|
1439
|
+
},
|
|
1440
|
+
fontStyle: {
|
|
1441
|
+
regular: 'normal',
|
|
1442
|
+
bold: 'normal'
|
|
1443
|
+
},
|
|
1444
|
+
configs: {
|
|
1445
|
+
/* legacy */
|
|
1446
|
+
'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
|
|
1447
|
+
'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
|
|
1448
|
+
body: createLegacyTypographyTypeConfig(1.4, 16, 16),
|
|
1449
|
+
'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
|
|
1450
|
+
'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
|
|
1451
|
+
/* latest */
|
|
1452
|
+
'body-xl': createTypographyConfig(24, 1.4),
|
|
1453
|
+
'body-l': createTypographyConfig(18, 1.4),
|
|
1454
|
+
'body-m': createTypographyConfig(16, 1.4),
|
|
1455
|
+
'body-s': createTypographyConfig(14, 1.4),
|
|
1456
|
+
'body-xs': createTypographyConfig(12, 1.4)
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
link: {
|
|
1461
|
+
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
1462
|
+
disabledColor: colors.blackDisabled
|
|
1463
|
+
}
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1437
1466
|
var picker = {
|
|
1438
1467
|
ios: {
|
|
1439
1468
|
"default": _objectSpread(_objectSpread({
|