@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.d.ts +11 -0
  3. package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.d.ts.map +1 -0
  4. package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.web.d.ts +4 -0
  5. package/dist/definitions/Highlight/AnimatedCaret/AnimatedCaret.web.d.ts.map +1 -0
  6. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts +13 -0
  7. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts.map +1 -0
  8. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts +4 -0
  9. package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts.map +1 -0
  10. package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.d.ts +12 -0
  11. package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.d.ts.map +1 -0
  12. package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.web.d.ts +4 -0
  13. package/dist/definitions/Highlight/AnimatedContent/AnimatedContent.web.d.ts.map +1 -0
  14. package/dist/definitions/Highlight/Highlight.d.ts +10 -5
  15. package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
  16. package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts +18 -0
  17. package/dist/definitions/Highlight/hooks/useNativeAnimation.d.ts.map +1 -0
  18. package/dist/definitions/Highlight/hooks/useNativeAnimation.web.d.ts +3 -0
  19. package/dist/definitions/Highlight/hooks/useNativeAnimation.web.d.ts.map +1 -0
  20. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +4 -1
  21. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
  22. package/dist/definitions/TimePicker/TimePicker.d.ts +2 -0
  23. package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
  24. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
  25. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +37 -11
  26. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  27. package/dist/definitions/themes/default.d.ts +1 -4
  28. package/dist/definitions/themes/default.d.ts.map +1 -1
  29. package/dist/definitions/themes/late-ocean/forms.d.ts +1 -4
  30. package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
  31. package/dist/definitions/themes/late-ocean/highlight.d.ts +11 -2
  32. package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
  33. package/dist/definitions/themes/late-ocean/input.d.ts +2 -2
  34. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  35. package/dist/definitions/themes/late-ocean/inputField.d.ts +1 -4
  36. package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -1
  37. package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts +1 -1
  38. package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts.map +1 -1
  39. package/dist/index-metro.es.android.js +487 -205
  40. package/dist/index-metro.es.android.js.map +1 -1
  41. package/dist/index-metro.es.ios.js +487 -205
  42. package/dist/index-metro.es.ios.js.map +1 -1
  43. package/dist/index-node-20.10.cjs.js +486 -204
  44. package/dist/index-node-20.10.cjs.js.map +1 -1
  45. package/dist/index-node-20.10.cjs.web.css +1 -1
  46. package/dist/index-node-20.10.cjs.web.js +451 -203
  47. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  48. package/dist/index-node-20.10.es.mjs +487 -205
  49. package/dist/index-node-20.10.es.mjs.map +1 -1
  50. package/dist/index-node-20.10.es.web.css +1 -1
  51. package/dist/index-node-20.10.es.web.mjs +452 -204
  52. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  53. package/dist/index.es.js +501 -212
  54. package/dist/index.es.js.map +1 -1
  55. package/dist/index.es.web.js +467 -211
  56. package/dist/index.es.web.js.map +1 -1
  57. package/dist/linaria-themes-metro.es.android.js +212 -183
  58. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  59. package/dist/linaria-themes-metro.es.ios.js +212 -183
  60. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  61. package/dist/linaria-themes-node-20.10.cjs.js +212 -183
  62. package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
  63. package/dist/linaria-themes-node-20.10.cjs.web.js +212 -183
  64. package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
  65. package/dist/linaria-themes-node-20.10.es.mjs +212 -183
  66. package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
  67. package/dist/linaria-themes-node-20.10.es.web.mjs +212 -183
  68. package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
  69. package/dist/linaria-themes.es.js +218 -189
  70. package/dist/linaria-themes.es.js.map +1 -1
  71. package/dist/linaria-themes.es.web.js +218 -189
  72. package/dist/linaria-themes.es.web.js.map +1 -1
  73. package/dist/styles.css +1 -1
  74. package/dist/tsbuildinfo +1 -1
  75. package/package.json +1 -1
@@ -967,209 +967,64 @@ const datePicker = {
967
967
  }
968
968
  };
969
969
 
970
- const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
971
- /** @deprecated legacy typography type config is deprecated. */
972
- const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
973
- baseAndSmall: {
974
- fontSize: baseAndSmallFontSize,
975
- lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
976
- },
977
- mediumAndWide: {
978
- fontSize: mediumAndWideFontSize,
979
- lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
980
- }
981
- });
982
- const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
983
- const config = {
984
- fontSize,
985
- lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
986
- };
987
- return {
988
- baseAndSmall: config,
989
- mediumAndWide: config
990
- };
991
- };
992
- const typography = {
993
- colors: {
994
- black: colors.black,
995
- 'black-anthracite': colors.blackAnthracite,
996
- 'black-disabled': lateOceanColorPalette.black400,
997
- 'black-light': lateOceanColorPalette.black555,
998
- white: colors.white,
999
- 'white-light': colors.white,
1000
- primary: colors.primary,
1001
- 'primary-light': colors.primaryLight,
1002
- accent: colors.accent,
1003
- success: colors.success,
1004
- danger: colors.danger,
1005
- warning: colors.warning
1006
- },
1007
- types: {
1008
- headings: {
1009
- fontFamily: {
1010
- native: {
1011
- regular: 'Moderat-Bold',
1012
- bold: 'Moderat-Bold'
1013
- },
1014
- web: {
1015
- regular: 'Moderat',
1016
- bold: 'Moderat'
1017
- }
1018
- },
1019
- fontWeight: {
1020
- regular: 400,
1021
- bold: 700
1022
- },
1023
- fontStyle: 'normal',
1024
- configs: {
1025
- /* legacy */
1026
- header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1027
- header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1028
- header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1029
- header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1030
- header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1031
- /* latest */
1032
- 'heading-xxl': createTypographyConfig(56, 1.1),
1033
- 'heading-xl': createTypographyConfig(48, 1.1),
1034
- 'heading-l': createTypographyConfig(40, 1.1),
1035
- 'heading-m': createTypographyConfig(32, 1.2),
1036
- 'heading-s': createTypographyConfig(24, 1.2),
1037
- 'heading-xs': createTypographyConfig(18, 1.3),
1038
- 'heading-xxs': createTypographyConfig(16, 1.3)
1039
- }
1040
- },
1041
- 'headings-impact': {
1042
- fontFamily: {
1043
- native: {
1044
- regular: 'Transducer-Black',
1045
- bold: 'Transducer-Black'
1046
- },
1047
- web: {
1048
- regular: 'TransducerBlack',
1049
- bold: 'TransducerBlack'
1050
- }
1051
- },
1052
- fontWeight: 900,
1053
- fontStyle: 'normal',
1054
- configs: {
1055
- /* legacy */
1056
- 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1057
- 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1058
- 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1059
- 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1060
- 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1061
- 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1062
- 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1063
- 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1064
- /* latest */
1065
- 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1066
- 'heading-impact-xl': createTypographyConfig(48, 1.2),
1067
- 'heading-impact-l': createTypographyConfig(40, 1.2),
1068
- 'heading-impact-m': createTypographyConfig(32, 1.2),
1069
- 'heading-impact-s': createTypographyConfig(24, 1.2),
1070
- 'heading-impact-xs': createTypographyConfig(18, 1.2),
1071
- 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1072
- 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1073
- }
1074
- },
1075
- bodies: {
1076
- fontFamily: {
1077
- web: {
1078
- regular: 'Moderat',
1079
- bold: 'Moderat'
1080
- },
1081
- native: {
1082
- regular: 'Moderat-Regular',
1083
- bold: 'Moderat-Bold'
1084
- }
1085
- },
1086
- fontWeight: {
1087
- regular: 400,
1088
- bold: 700
1089
- },
1090
- fontStyle: {
1091
- regular: 'normal',
1092
- bold: 'normal'
1093
- },
1094
- configs: {
1095
- /* legacy */
1096
- 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1097
- 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1098
- body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1099
- 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1100
- 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1101
- /* latest */
1102
- 'body-xl': createTypographyConfig(24, 1.4),
1103
- 'body-l': createTypographyConfig(18, 1.4),
1104
- 'body-m': createTypographyConfig(16, 1.4),
1105
- 'body-s': createTypographyConfig(14, 1.4),
1106
- 'body-xs': createTypographyConfig(12, 1.4)
1107
- }
1108
- }
1109
- },
1110
- link: {
1111
- /** @deprecated not used in kitt anymore, use Typography instead */
1112
- disabledColor: colors.blackDisabled
1113
- }
1114
- };
1115
-
1116
970
  const inputStatesStyle = {
1117
971
  default: {
1118
- backgroundColor: colors.uiBackgroundLight,
1119
- borderColor: colors.separator,
1120
- color: colors.black
972
+ backgroundColor: lateOceanColorPalette.white,
973
+ borderColor: lateOceanColorPalette['eggshell.4'],
974
+ color: lateOceanColorPalette.black
1121
975
  },
1122
976
  pending: {
1123
- backgroundColor: colors.uiBackgroundLight,
1124
- borderColor: colors.separator,
1125
- color: colors.black
977
+ backgroundColor: lateOceanColorPalette.white,
978
+ borderColor: lateOceanColorPalette['eggshell.3'],
979
+ color: lateOceanColorPalette.black
1126
980
  },
1127
981
  valid: {
1128
- backgroundColor: colors.uiBackgroundLight,
1129
- borderColor: lateOceanColorPalette.black100,
1130
- color: colors.black
982
+ backgroundColor: lateOceanColorPalette.white,
983
+ borderColor: lateOceanColorPalette['eggshell.4'],
984
+ color: lateOceanColorPalette.black
1131
985
  },
1132
986
  hover: {
1133
- borderColor: lateOceanColorPalette.black200,
1134
- color: colors.black
987
+ backgroundColor: lateOceanColorPalette['eggshell.1'],
988
+ borderColor: lateOceanColorPalette['eggshell.5'],
989
+ color: lateOceanColorPalette.black
1135
990
  },
1136
991
  focus: {
1137
- borderColor: colors.primary,
1138
- color: colors.black
992
+ borderColor: lateOceanColorPalette['violine.9'],
993
+ color: lateOceanColorPalette.black
1139
994
  },
1140
995
  disabled: {
1141
- backgroundColor: colors.disabled,
1142
- borderColor: colors.separator,
1143
- color: colors.blackDisabled
996
+ backgroundColor: lateOceanColorPalette['eggshell.2'],
997
+ borderColor: lateOceanColorPalette['eggshell.4'],
998
+ color: lateOceanColorPalette['eggshell.6']
1144
999
  },
1145
1000
  invalid: {
1146
- borderColor: colors.separator,
1147
- color: colors.black
1001
+ borderColor: lateOceanColorPalette['eggshell.3'],
1002
+ color: lateOceanColorPalette.black
1148
1003
  }
1149
1004
  };
1150
1005
  const webAnimationDuration = '200ms';
1151
1006
  const webAnimationTimingFunction = 'ease-in-out';
1152
- const webAnimationProperty = 'border-color';
1007
+ const webAnimationProperties = ['border-color', 'background-color'];
1153
1008
  const input = {
1154
1009
  minHeight: 40,
1155
1010
  color: {
1156
- selection: colors.primary,
1157
- placeholder: typography.colors['black-light']
1011
+ selection: lateOceanColorPalette['violine.9'],
1012
+ placeholder: lateOceanColorPalette['eggshell.9']
1158
1013
  },
1159
- borderWidth: 2,
1160
- borderRadius: 10,
1014
+ borderWidth: 1,
1015
+ borderRadius: 8,
1161
1016
  icon: {
1162
1017
  size: 20
1163
1018
  },
1164
1019
  rightContainer: {
1165
- padding: 10
1020
+ padding: 16
1166
1021
  },
1167
1022
  padding: {
1168
1023
  horizontal: 16,
1169
- vertical: 5
1024
+ vertical: 0
1170
1025
  },
1171
1026
  transition: {
1172
- property: webAnimationProperty,
1027
+ properties: webAnimationProperties,
1173
1028
  duration: webAnimationDuration,
1174
1029
  timingFunction: webAnimationTimingFunction
1175
1030
  },
@@ -1179,11 +1034,8 @@ const input = {
1179
1034
  const inputField = {
1180
1035
  containerPaddingTop: 5,
1181
1036
  containerPaddingBottom: 10,
1182
- feedbackPaddingTop: {
1183
- base: 5,
1184
- small: 10
1185
- },
1186
- labelContainerPaddingBottom: 5,
1037
+ feedbackPaddingTop: 4,
1038
+ labelContainerPaddingBottom: 4,
1187
1039
  labelFeedbackMarginLeft: 6
1188
1040
  };
1189
1041
 
@@ -1315,21 +1167,52 @@ const fullscreenModal = {
1315
1167
  };
1316
1168
 
1317
1169
  const highlight = {
1318
- borderRadius: spacing * 5,
1170
+ borderRadius: spacing * 2,
1319
1171
  /** @deprecated use primary instead */
1320
1172
  regular: {
1321
- backgroundColor: colors.accentLight
1173
+ default: {
1174
+ backgroundColor: colors.accentLight
1175
+ },
1176
+ hover: {
1177
+ backgroundColor: colors.accentLight
1178
+ }
1322
1179
  },
1323
1180
  primary: {
1324
- backgroundColor: colors.accentLight
1181
+ default: {
1182
+ backgroundColor: lateOceanColorPalette['lavender.3']
1183
+ },
1184
+ hover: {
1185
+ backgroundColor: lateOceanColorPalette['lavender.5']
1186
+ }
1325
1187
  },
1326
1188
  secondary: {
1327
- backgroundColor: lateOceanColorPalette.moonPurple
1189
+ default: {
1190
+ backgroundColor: lateOceanColorPalette['violine.2']
1191
+ },
1192
+ hover: {
1193
+ backgroundColor: lateOceanColorPalette['violine.4']
1194
+ }
1195
+ },
1196
+ ghost: {
1197
+ default: {
1198
+ backgroundColor: lateOceanColorPalette.white
1199
+ },
1200
+ hover: {
1201
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1202
+ }
1328
1203
  },
1329
1204
  dark: {
1330
- backgroundColor: lateOceanColorPalette.black100
1205
+ default: {
1206
+ backgroundColor: lateOceanColorPalette['eggshell.3']
1207
+ },
1208
+ hover: {
1209
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1210
+ }
1331
1211
  },
1332
- padding: spacing * 5
1212
+ padding: {
1213
+ medium: spacing * 4,
1214
+ large: spacing * 6
1215
+ }
1333
1216
  };
1334
1217
 
1335
1218
  const getIconSizeFromFontSize = fontSize => {
@@ -1452,6 +1335,152 @@ const pageLoader = {
1452
1335
  }
1453
1336
  };
1454
1337
 
1338
+ const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
1339
+ /** @deprecated legacy typography type config is deprecated. */
1340
+ const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
1341
+ baseAndSmall: {
1342
+ fontSize: baseAndSmallFontSize,
1343
+ lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
1344
+ },
1345
+ mediumAndWide: {
1346
+ fontSize: mediumAndWideFontSize,
1347
+ lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
1348
+ }
1349
+ });
1350
+ const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
1351
+ const config = {
1352
+ fontSize,
1353
+ lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
1354
+ };
1355
+ return {
1356
+ baseAndSmall: config,
1357
+ mediumAndWide: config
1358
+ };
1359
+ };
1360
+ const typography = {
1361
+ colors: {
1362
+ black: colors.black,
1363
+ 'black-anthracite': colors.blackAnthracite,
1364
+ 'black-disabled': lateOceanColorPalette.black400,
1365
+ 'black-light': lateOceanColorPalette.black555,
1366
+ white: colors.white,
1367
+ 'white-light': colors.white,
1368
+ primary: colors.primary,
1369
+ 'primary-light': colors.primaryLight,
1370
+ accent: colors.accent,
1371
+ success: colors.success,
1372
+ danger: colors.danger,
1373
+ warning: colors.warning
1374
+ },
1375
+ types: {
1376
+ headings: {
1377
+ fontFamily: {
1378
+ native: {
1379
+ regular: 'Moderat-Bold',
1380
+ bold: 'Moderat-Bold'
1381
+ },
1382
+ web: {
1383
+ regular: 'Moderat',
1384
+ bold: 'Moderat'
1385
+ }
1386
+ },
1387
+ fontWeight: {
1388
+ regular: 400,
1389
+ bold: 700
1390
+ },
1391
+ fontStyle: 'normal',
1392
+ configs: {
1393
+ /* legacy */
1394
+ header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1395
+ header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1396
+ header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1397
+ header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1398
+ header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1399
+ /* latest */
1400
+ 'heading-xxl': createTypographyConfig(56, 1.1),
1401
+ 'heading-xl': createTypographyConfig(48, 1.1),
1402
+ 'heading-l': createTypographyConfig(40, 1.1),
1403
+ 'heading-m': createTypographyConfig(32, 1.2),
1404
+ 'heading-s': createTypographyConfig(24, 1.2),
1405
+ 'heading-xs': createTypographyConfig(18, 1.3),
1406
+ 'heading-xxs': createTypographyConfig(16, 1.3)
1407
+ }
1408
+ },
1409
+ 'headings-impact': {
1410
+ fontFamily: {
1411
+ native: {
1412
+ regular: 'Transducer-Black',
1413
+ bold: 'Transducer-Black'
1414
+ },
1415
+ web: {
1416
+ regular: 'TransducerBlack',
1417
+ bold: 'TransducerBlack'
1418
+ }
1419
+ },
1420
+ fontWeight: 900,
1421
+ fontStyle: 'normal',
1422
+ configs: {
1423
+ /* legacy */
1424
+ 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1425
+ 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1426
+ 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1427
+ 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1428
+ 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1429
+ 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1430
+ 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1431
+ 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1432
+ /* latest */
1433
+ 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1434
+ 'heading-impact-xl': createTypographyConfig(48, 1.2),
1435
+ 'heading-impact-l': createTypographyConfig(40, 1.2),
1436
+ 'heading-impact-m': createTypographyConfig(32, 1.2),
1437
+ 'heading-impact-s': createTypographyConfig(24, 1.2),
1438
+ 'heading-impact-xs': createTypographyConfig(18, 1.2),
1439
+ 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1440
+ 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1441
+ }
1442
+ },
1443
+ bodies: {
1444
+ fontFamily: {
1445
+ web: {
1446
+ regular: 'Moderat',
1447
+ bold: 'Moderat'
1448
+ },
1449
+ native: {
1450
+ regular: 'Moderat-Regular',
1451
+ bold: 'Moderat-Bold'
1452
+ }
1453
+ },
1454
+ fontWeight: {
1455
+ regular: 400,
1456
+ bold: 700
1457
+ },
1458
+ fontStyle: {
1459
+ regular: 'normal',
1460
+ bold: 'normal'
1461
+ },
1462
+ configs: {
1463
+ /* legacy */
1464
+ 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1465
+ 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1466
+ body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1467
+ 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1468
+ 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1469
+ /* latest */
1470
+ 'body-xl': createTypographyConfig(24, 1.4),
1471
+ 'body-l': createTypographyConfig(18, 1.4),
1472
+ 'body-m': createTypographyConfig(16, 1.4),
1473
+ 'body-s': createTypographyConfig(14, 1.4),
1474
+ 'body-xs': createTypographyConfig(12, 1.4)
1475
+ }
1476
+ }
1477
+ },
1478
+ link: {
1479
+ /** @deprecated not used in kitt anymore, use Typography instead */
1480
+ disabledColor: colors.blackDisabled
1481
+ }
1482
+ };
1483
+
1455
1484
  const picker = {
1456
1485
  ios: {
1457
1486
  default: {
@@ -1986,7 +2015,7 @@ function getCurrentScale$1({
1986
2015
  return 1;
1987
2016
  }
1988
2017
 
1989
- function AnimatedContainer$1({
2018
+ function AnimatedContainer$2({
1990
2019
  children,
1991
2020
  type,
1992
2021
  variant,
@@ -2541,7 +2570,7 @@ function FocusBorder({
2541
2570
  });
2542
2571
  }
2543
2572
 
2544
- function useNativeAnimation$3() {
2573
+ function useNativeAnimation$4() {
2545
2574
  return {
2546
2575
  onPressIn: undefined,
2547
2576
  onPressOut: undefined,
@@ -2588,7 +2617,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
2588
2617
  onPressIn,
2589
2618
  onPressOut,
2590
2619
  animatedStyles
2591
- } = useNativeAnimation$3();
2620
+ } = useNativeAnimation$4();
2592
2621
  if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && !allowedGhostTypes.includes(type)) {
2593
2622
  throw new Error('variant=ghost is only allowed with type=primary or default');
2594
2623
  }
@@ -2624,7 +2653,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
2624
2653
  isHovered,
2625
2654
  isPressed,
2626
2655
  isFocused
2627
- }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer$1, {
2656
+ }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer$2, {
2628
2657
  animatedStyles: animatedStyles,
2629
2658
  type: type,
2630
2659
  isHovered: isHovered || isHoveredInternal,
@@ -3303,7 +3332,7 @@ function AnimatedChoiceItemView({
3303
3332
  });
3304
3333
  }
3305
3334
 
3306
- const useNativeAnimation$2 = () => {
3335
+ const useNativeAnimation$3 = () => {
3307
3336
  return {
3308
3337
  onPressIn: () => {},
3309
3338
  onPressOut: () => {},
@@ -3342,7 +3371,7 @@ function ChoiceItem({
3342
3371
  onPressIn,
3343
3372
  onPressOut,
3344
3373
  backgroundStyles
3345
- } = useNativeAnimation$2();
3374
+ } = useNativeAnimation$3();
3346
3375
  const handleChange = () => {
3347
3376
  if (!onChange) return;
3348
3377
 
@@ -5511,7 +5540,7 @@ function getCurrentBorderColor({
5511
5540
  return 'default';
5512
5541
  }
5513
5542
 
5514
- function AnimatedContainer({
5543
+ function AnimatedContainer$1({
5515
5544
  children,
5516
5545
  isFocused,
5517
5546
  isPressed,
@@ -5585,7 +5614,7 @@ function HoverBorder({
5585
5614
  });
5586
5615
  }
5587
5616
 
5588
- function useNativeAnimation$1() {
5617
+ function useNativeAnimation$2() {
5589
5618
  return {
5590
5619
  onPressIn: undefined,
5591
5620
  onPressOut: undefined,
@@ -5627,7 +5656,7 @@ function RadioButton({
5627
5656
  onPressIn,
5628
5657
  onPressOut,
5629
5658
  animatedStyles
5630
- } = useNativeAnimation$1();
5659
+ } = useNativeAnimation$2();
5631
5660
  return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
5632
5661
  accessibilityRole: "radiogroup",
5633
5662
  accessibilityState: {
@@ -5650,7 +5679,7 @@ function RadioButton({
5650
5679
  isHovered,
5651
5680
  isPressed,
5652
5681
  isFocused
5653
- }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer, {
5682
+ }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer$1, {
5654
5683
  animatedStyles: animatedStyles,
5655
5684
  isFocused: isFocused || isFocusedInternal,
5656
5685
  isPressed: isPressed || isPressedInternal,
@@ -6005,18 +6034,202 @@ FullscreenModal.Footer = FullscreenModalFooter;
6005
6034
  FullscreenModal.Body = FullscreenModalBody;
6006
6035
  FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
6007
6036
 
6008
- function Highlight({
6009
- variant = 'regular',
6010
- children
6037
+ function AnimatedCaret({
6038
+ children,
6039
+ isHovered,
6040
+ isExpanded
6041
+ }) {
6042
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
6043
+ _web: {
6044
+ style: {
6045
+ transform: `rotate(${isExpanded ? '180deg' : '0deg'}) translateY(${isHovered ? '2px' : '0'})`,
6046
+ transitionDuration: '300ms',
6047
+ transitionProperty: 'transform',
6048
+ transitionTimingFunction: 'ease'
6049
+ }
6050
+ },
6051
+ children: children
6052
+ });
6053
+ }
6054
+
6055
+ function AnimatedContainer({
6056
+ children,
6057
+ size,
6058
+ isHovered,
6059
+ variant
6011
6060
  }) {
6061
+ const theme = useTheme();
6012
6062
  return /*#__PURE__*/jsxRuntime.jsx(View, {
6063
+ _web: {
6064
+ style: {
6065
+ transitionDuration: '300ms',
6066
+ transitionProperty: 'background-color',
6067
+ transitionTimingFunction: 'ease'
6068
+ }
6069
+ },
6013
6070
  borderRadius: "kitt.highlight.borderRadius",
6014
- padding: "kitt.highlight.padding",
6015
- backgroundColor: `kitt.highlight.${variant}.backgroundColor`,
6071
+ padding: theme.kitt.highlight.padding[size],
6072
+ backgroundColor: isHovered ? theme.kitt.highlight[variant].hover.backgroundColor : theme.kitt.highlight[variant].default.backgroundColor,
6073
+ children: children
6074
+ });
6075
+ }
6076
+
6077
+ function AnimatedContent({
6078
+ children,
6079
+ isExpanded,
6080
+ isInitialRender,
6081
+ contentHeight
6082
+ }) {
6083
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
6084
+ _web: {
6085
+ style: {
6086
+ height: isExpanded ? `${contentHeight}px` : '0',
6087
+ transitionDuration: isInitialRender ? '0ms' : '300ms',
6088
+ transitionProperty: 'height',
6089
+ transitionTimingFunction: 'ease'
6090
+ }
6091
+ },
6092
+ overflow: "hidden",
6016
6093
  children: children
6017
6094
  });
6018
6095
  }
6019
6096
 
6097
+ function useNativeAnimation$1() {
6098
+ return {
6099
+ onPressIn: undefined,
6100
+ onPressOut: undefined,
6101
+ containerAnimatedStyles: {},
6102
+ caretAnimatedStyles: {},
6103
+ contentAnimatedStyles: {}
6104
+ };
6105
+ }
6106
+
6107
+ function Highlight({
6108
+ variant = 'primary',
6109
+ canCollapse = false,
6110
+ isInitialCollapsed = true,
6111
+ title,
6112
+ icon = null,
6113
+ size = 'medium',
6114
+ children
6115
+ }) {
6116
+ const theme = useTheme();
6117
+ const [isExpanded, setIsExpanded] = react.useState(!isInitialCollapsed);
6118
+ const [contentHeight, setContentHeight] = react.useState(0);
6119
+ const [isInitialRender, setIsInitialRender] = react.useState(true);
6120
+ const highlightStyle = {
6121
+ medium: {
6122
+ marginBottom: 'kitt.1',
6123
+ spaceBetween: 'kitt.2',
6124
+ contentMarginY: 8
6125
+ },
6126
+ large: {
6127
+ marginBottom: 'kitt.2',
6128
+ spaceBetween: 'kitt.4',
6129
+ contentMarginY: 16
6130
+ }
6131
+ };
6132
+ const {
6133
+ containerAnimatedStyles,
6134
+ caretAnimatedStyles,
6135
+ contentAnimatedStyles,
6136
+ onPressIn,
6137
+ onPressOut
6138
+ } = useNativeAnimation$1();
6139
+ const handleLayout = event => {
6140
+ const layoutHeight = event.nativeEvent.layout.height;
6141
+ const newContentHeight = layoutHeight + highlightStyle[size].contentMarginY;
6142
+ if (layoutHeight > 0 && newContentHeight !== contentHeight) {
6143
+ setContentHeight(newContentHeight);
6144
+ }
6145
+ };
6146
+ if (!canCollapse) {
6147
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
6148
+ borderRadius: "kitt.highlight.borderRadius",
6149
+ padding: theme.kitt.highlight.padding[size],
6150
+ backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
6151
+ children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
6152
+ space: highlightStyle[size].spaceBetween,
6153
+ children: [icon && /*#__PURE__*/jsxRuntime.jsx(View, {
6154
+ children: icon
6155
+ }), /*#__PURE__*/jsxRuntime.jsxs(View, {
6156
+ flexGrow: 1,
6157
+ flexShrink: 1,
6158
+ children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
6159
+ marginBottom: highlightStyle[size].marginBottom,
6160
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
6161
+ variant: "bold",
6162
+ base: "body",
6163
+ ellipsizeMode: "clip",
6164
+ children: title
6165
+ })
6166
+ }), children]
6167
+ })]
6168
+ })
6169
+ });
6170
+ }
6171
+ return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
6172
+ onPress: () => {
6173
+ setIsExpanded(!isExpanded);
6174
+ setIsInitialRender(false);
6175
+ },
6176
+ onPressIn: onPressIn,
6177
+ onPressOut: onPressOut,
6178
+ children: ({
6179
+ isHovered
6180
+ }) => {
6181
+ return /*#__PURE__*/jsxRuntime.jsxs(AnimatedContainer, {
6182
+ isHovered: isHovered,
6183
+ size: size,
6184
+ variant: variant,
6185
+ animatedStyles: containerAnimatedStyles,
6186
+ children: [title && /*#__PURE__*/jsxRuntime.jsxs(HStack, {
6187
+ space: highlightStyle[size].spaceBetween,
6188
+ alignItems: "center",
6189
+ children: [icon && /*#__PURE__*/jsxRuntime.jsx(View, {
6190
+ flexGrow: 1,
6191
+ children: icon
6192
+ }), /*#__PURE__*/jsxRuntime.jsx(View, {
6193
+ flexGrow: 1,
6194
+ flexShrink: 1,
6195
+ width: "100%",
6196
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
6197
+ variant: "bold",
6198
+ base: "body",
6199
+ ellipsizeMode: "clip",
6200
+ children: title
6201
+ })
6202
+ }), /*#__PURE__*/jsxRuntime.jsx(View, {
6203
+ flexGrow: 2,
6204
+ flexShrink: 2,
6205
+ alignItems: "center",
6206
+ justifyContent: "center",
6207
+ children: /*#__PURE__*/jsxRuntime.jsx(AnimatedCaret, {
6208
+ isHovered: isHovered,
6209
+ isExpanded: isExpanded,
6210
+ animatedStyles: caretAnimatedStyles,
6211
+ children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
6212
+ icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.CaretDownRegularIcon, {})
6213
+ })
6214
+ })
6215
+ })]
6216
+ }), /*#__PURE__*/jsxRuntime.jsx(AnimatedContent, {
6217
+ isExpanded: isExpanded,
6218
+ isInitialRender: isInitialRender,
6219
+ contentHeight: contentHeight,
6220
+ animatedStyles: contentAnimatedStyles,
6221
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
6222
+ marginTop: highlightStyle[size].contentMarginY,
6223
+ position: "absolute",
6224
+ onLayout: handleLayout,
6225
+ children: children
6226
+ })
6227
+ })]
6228
+ });
6229
+ }
6230
+ });
6231
+ }
6232
+
6020
6233
  function getBackgroundColor$1(color, isDisabled) {
6021
6234
  if (isDisabled) {
6022
6235
  return 'kitt.iconButton.disabled.backgroundColor';
@@ -7037,16 +7250,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7037
7250
  },
7038
7251
  highlight: {
7039
7252
  regular: {
7040
- backgroundColor: theme.highlight.regular.backgroundColor
7253
+ default: {
7254
+ backgroundColor: theme.highlight.regular.default.backgroundColor
7255
+ },
7256
+ hover: {
7257
+ backgroundColor: theme.highlight.regular.hover.backgroundColor
7258
+ }
7041
7259
  },
7042
7260
  primary: {
7043
- backgroundColor: theme.highlight.primary.backgroundColor
7261
+ default: {
7262
+ backgroundColor: theme.highlight.primary.default.backgroundColor
7263
+ },
7264
+ hover: {
7265
+ backgroundColor: theme.highlight.primary.hover.backgroundColor
7266
+ }
7044
7267
  },
7045
7268
  secondary: {
7046
- backgroundColor: theme.highlight.secondary.backgroundColor
7269
+ default: {
7270
+ backgroundColor: theme.highlight.secondary.default.backgroundColor
7271
+ },
7272
+ hover: {
7273
+ backgroundColor: theme.highlight.secondary.hover.backgroundColor
7274
+ }
7047
7275
  },
7048
7276
  dark: {
7049
- backgroundColor: theme.highlight.dark.backgroundColor
7277
+ default: {
7278
+ backgroundColor: theme.highlight.dark.default.backgroundColor
7279
+ },
7280
+ hover: {
7281
+ backgroundColor: theme.highlight.dark.hover.backgroundColor
7282
+ }
7283
+ },
7284
+ ghost: {
7285
+ default: {
7286
+ backgroundColor: theme.highlight.ghost.default.backgroundColor
7287
+ },
7288
+ hover: {
7289
+ backgroundColor: theme.highlight.ghost.hover.backgroundColor
7290
+ }
7050
7291
  }
7051
7292
  },
7052
7293
  verticalSteps: {
@@ -7559,7 +7800,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7559
7800
  }
7560
7801
  },
7561
7802
  highlight: {
7562
- padding: theme.highlight.padding
7803
+ medium: {
7804
+ padding: theme.highlight.padding.medium
7805
+ },
7806
+ large: {
7807
+ padding: theme.highlight.padding.large
7808
+ }
7563
7809
  },
7564
7810
  listItem: {
7565
7811
  verticalPadding: theme.listItem.verticalPadding,
@@ -8192,9 +8438,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8192
8438
  borderColor: theme.forms.input.states.default.borderColor,
8193
8439
  bg: theme.forms.input.states.default.backgroundColor,
8194
8440
  _hover: {
8441
+ bg: theme.forms.input.states.hover.backgroundColor,
8195
8442
  borderColor: theme.forms.input.states.hover.borderColor,
8196
8443
  color: theme.forms.input.states.hover.color,
8197
8444
  _focus: {
8445
+ bg: theme.forms.input.states.default.backgroundColor,
8198
8446
  borderColor: theme.forms.input.states.focus.borderColor,
8199
8447
  color: theme.forms.input.states.focus.color
8200
8448
  }