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