@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
@@ -988,209 +988,64 @@ const datePicker = {
988
988
  }
989
989
  };
990
990
 
991
- const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
992
- /** @deprecated legacy typography type config is deprecated. */
993
- const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
994
- baseAndSmall: {
995
- fontSize: baseAndSmallFontSize,
996
- lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
997
- },
998
- mediumAndWide: {
999
- fontSize: mediumAndWideFontSize,
1000
- lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
1001
- }
1002
- });
1003
- const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
1004
- const config = {
1005
- fontSize,
1006
- lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
1007
- };
1008
- return {
1009
- baseAndSmall: config,
1010
- mediumAndWide: config
1011
- };
1012
- };
1013
- const typography = {
1014
- colors: {
1015
- black: colors.black,
1016
- 'black-anthracite': colors.blackAnthracite,
1017
- 'black-disabled': lateOceanColorPalette.black400,
1018
- 'black-light': lateOceanColorPalette.black555,
1019
- white: colors.white,
1020
- 'white-light': colors.white,
1021
- primary: colors.primary,
1022
- 'primary-light': colors.primaryLight,
1023
- accent: colors.accent,
1024
- success: colors.success,
1025
- danger: colors.danger,
1026
- warning: colors.warning
1027
- },
1028
- types: {
1029
- headings: {
1030
- fontFamily: {
1031
- native: {
1032
- regular: 'Moderat-Bold',
1033
- bold: 'Moderat-Bold'
1034
- },
1035
- web: {
1036
- regular: 'Moderat',
1037
- bold: 'Moderat'
1038
- }
1039
- },
1040
- fontWeight: {
1041
- regular: 400,
1042
- bold: 700
1043
- },
1044
- fontStyle: 'normal',
1045
- configs: {
1046
- /* legacy */
1047
- header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1048
- header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1049
- header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1050
- header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1051
- header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1052
- /* latest */
1053
- 'heading-xxl': createTypographyConfig(56, 1.1),
1054
- 'heading-xl': createTypographyConfig(48, 1.1),
1055
- 'heading-l': createTypographyConfig(40, 1.1),
1056
- 'heading-m': createTypographyConfig(32, 1.2),
1057
- 'heading-s': createTypographyConfig(24, 1.2),
1058
- 'heading-xs': createTypographyConfig(18, 1.3),
1059
- 'heading-xxs': createTypographyConfig(16, 1.3)
1060
- }
1061
- },
1062
- 'headings-impact': {
1063
- fontFamily: {
1064
- native: {
1065
- regular: 'Transducer-Black',
1066
- bold: 'Transducer-Black'
1067
- },
1068
- web: {
1069
- regular: 'TransducerBlack',
1070
- bold: 'TransducerBlack'
1071
- }
1072
- },
1073
- fontWeight: 900,
1074
- fontStyle: 'normal',
1075
- configs: {
1076
- /* legacy */
1077
- 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1078
- 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1079
- 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1080
- 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1081
- 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1082
- 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1083
- 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1084
- 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1085
- /* latest */
1086
- 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1087
- 'heading-impact-xl': createTypographyConfig(48, 1.2),
1088
- 'heading-impact-l': createTypographyConfig(40, 1.2),
1089
- 'heading-impact-m': createTypographyConfig(32, 1.2),
1090
- 'heading-impact-s': createTypographyConfig(24, 1.2),
1091
- 'heading-impact-xs': createTypographyConfig(18, 1.2),
1092
- 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1093
- 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1094
- }
1095
- },
1096
- bodies: {
1097
- fontFamily: {
1098
- web: {
1099
- regular: 'Moderat',
1100
- bold: 'Moderat'
1101
- },
1102
- native: {
1103
- regular: 'Moderat-Regular',
1104
- bold: 'Moderat-Bold'
1105
- }
1106
- },
1107
- fontWeight: {
1108
- regular: 400,
1109
- bold: 700
1110
- },
1111
- fontStyle: {
1112
- regular: 'normal',
1113
- bold: 'normal'
1114
- },
1115
- configs: {
1116
- /* legacy */
1117
- 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1118
- 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1119
- body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1120
- 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1121
- 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1122
- /* latest */
1123
- 'body-xl': createTypographyConfig(24, 1.4),
1124
- 'body-l': createTypographyConfig(18, 1.4),
1125
- 'body-m': createTypographyConfig(16, 1.4),
1126
- 'body-s': createTypographyConfig(14, 1.4),
1127
- 'body-xs': createTypographyConfig(12, 1.4)
1128
- }
1129
- }
1130
- },
1131
- link: {
1132
- /** @deprecated not used in kitt anymore, use Typography instead */
1133
- disabledColor: colors.blackDisabled
1134
- }
1135
- };
1136
-
1137
991
  const inputStatesStyle = {
1138
992
  default: {
1139
- backgroundColor: colors.uiBackgroundLight,
1140
- borderColor: colors.separator,
1141
- color: colors.black
993
+ backgroundColor: lateOceanColorPalette.white,
994
+ borderColor: lateOceanColorPalette['eggshell.4'],
995
+ color: lateOceanColorPalette.black
1142
996
  },
1143
997
  pending: {
1144
- backgroundColor: colors.uiBackgroundLight,
1145
- borderColor: colors.separator,
1146
- color: colors.black
998
+ backgroundColor: lateOceanColorPalette.white,
999
+ borderColor: lateOceanColorPalette['eggshell.3'],
1000
+ color: lateOceanColorPalette.black
1147
1001
  },
1148
1002
  valid: {
1149
- backgroundColor: colors.uiBackgroundLight,
1150
- borderColor: lateOceanColorPalette.black100,
1151
- color: colors.black
1003
+ backgroundColor: lateOceanColorPalette.white,
1004
+ borderColor: lateOceanColorPalette['eggshell.4'],
1005
+ color: lateOceanColorPalette.black
1152
1006
  },
1153
1007
  hover: {
1154
- borderColor: lateOceanColorPalette.black200,
1155
- color: colors.black
1008
+ backgroundColor: lateOceanColorPalette['eggshell.1'],
1009
+ borderColor: lateOceanColorPalette['eggshell.5'],
1010
+ color: lateOceanColorPalette.black
1156
1011
  },
1157
1012
  focus: {
1158
- borderColor: colors.primary,
1159
- color: colors.black
1013
+ borderColor: lateOceanColorPalette['violine.9'],
1014
+ color: lateOceanColorPalette.black
1160
1015
  },
1161
1016
  disabled: {
1162
- backgroundColor: colors.disabled,
1163
- borderColor: colors.separator,
1164
- color: colors.blackDisabled
1017
+ backgroundColor: lateOceanColorPalette['eggshell.2'],
1018
+ borderColor: lateOceanColorPalette['eggshell.4'],
1019
+ color: lateOceanColorPalette['eggshell.6']
1165
1020
  },
1166
1021
  invalid: {
1167
- borderColor: colors.separator,
1168
- color: colors.black
1022
+ borderColor: lateOceanColorPalette['eggshell.3'],
1023
+ color: lateOceanColorPalette.black
1169
1024
  }
1170
1025
  };
1171
1026
  const webAnimationDuration = '200ms';
1172
1027
  const webAnimationTimingFunction = 'ease-in-out';
1173
- const webAnimationProperty = 'border-color';
1028
+ const webAnimationProperties = ['border-color', 'background-color'];
1174
1029
  const input = {
1175
1030
  minHeight: 40,
1176
1031
  color: {
1177
- selection: colors.primary,
1178
- placeholder: typography.colors['black-light']
1032
+ selection: lateOceanColorPalette['violine.9'],
1033
+ placeholder: lateOceanColorPalette['eggshell.9']
1179
1034
  },
1180
- borderWidth: 2,
1181
- borderRadius: 10,
1035
+ borderWidth: 1,
1036
+ borderRadius: 8,
1182
1037
  icon: {
1183
1038
  size: 20
1184
1039
  },
1185
1040
  rightContainer: {
1186
- padding: 10
1041
+ padding: 16
1187
1042
  },
1188
1043
  padding: {
1189
1044
  horizontal: 16,
1190
- vertical: 5
1045
+ vertical: 0
1191
1046
  },
1192
1047
  transition: {
1193
- property: webAnimationProperty,
1048
+ properties: webAnimationProperties,
1194
1049
  duration: webAnimationDuration,
1195
1050
  timingFunction: webAnimationTimingFunction
1196
1051
  },
@@ -1200,11 +1055,8 @@ const input = {
1200
1055
  const inputField = {
1201
1056
  containerPaddingTop: 5,
1202
1057
  containerPaddingBottom: 10,
1203
- feedbackPaddingTop: {
1204
- base: 5,
1205
- small: 10
1206
- },
1207
- labelContainerPaddingBottom: 5,
1058
+ feedbackPaddingTop: 4,
1059
+ labelContainerPaddingBottom: 4,
1208
1060
  labelFeedbackMarginLeft: 6
1209
1061
  };
1210
1062
 
@@ -1336,21 +1188,52 @@ const fullscreenModal = {
1336
1188
  };
1337
1189
 
1338
1190
  const highlight = {
1339
- borderRadius: spacing * 5,
1191
+ borderRadius: spacing * 2,
1340
1192
  /** @deprecated use primary instead */
1341
1193
  regular: {
1342
- backgroundColor: colors.accentLight
1194
+ default: {
1195
+ backgroundColor: colors.accentLight
1196
+ },
1197
+ hover: {
1198
+ backgroundColor: colors.accentLight
1199
+ }
1343
1200
  },
1344
1201
  primary: {
1345
- backgroundColor: colors.accentLight
1202
+ default: {
1203
+ backgroundColor: lateOceanColorPalette['lavender.3']
1204
+ },
1205
+ hover: {
1206
+ backgroundColor: lateOceanColorPalette['lavender.5']
1207
+ }
1346
1208
  },
1347
1209
  secondary: {
1348
- backgroundColor: lateOceanColorPalette.moonPurple
1210
+ default: {
1211
+ backgroundColor: lateOceanColorPalette['violine.2']
1212
+ },
1213
+ hover: {
1214
+ backgroundColor: lateOceanColorPalette['violine.4']
1215
+ }
1216
+ },
1217
+ ghost: {
1218
+ default: {
1219
+ backgroundColor: lateOceanColorPalette.white
1220
+ },
1221
+ hover: {
1222
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1223
+ }
1349
1224
  },
1350
1225
  dark: {
1351
- backgroundColor: lateOceanColorPalette.black100
1226
+ default: {
1227
+ backgroundColor: lateOceanColorPalette['eggshell.3']
1228
+ },
1229
+ hover: {
1230
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1231
+ }
1352
1232
  },
1353
- padding: spacing * 5
1233
+ padding: {
1234
+ medium: spacing * 4,
1235
+ large: spacing * 6
1236
+ }
1354
1237
  };
1355
1238
 
1356
1239
  const getIconSizeFromFontSize = fontSize => {
@@ -1473,6 +1356,152 @@ const pageLoader = {
1473
1356
  }
1474
1357
  };
1475
1358
 
1359
+ const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
1360
+ /** @deprecated legacy typography type config is deprecated. */
1361
+ const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
1362
+ baseAndSmall: {
1363
+ fontSize: baseAndSmallFontSize,
1364
+ lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
1365
+ },
1366
+ mediumAndWide: {
1367
+ fontSize: mediumAndWideFontSize,
1368
+ lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
1369
+ }
1370
+ });
1371
+ const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
1372
+ const config = {
1373
+ fontSize,
1374
+ lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
1375
+ };
1376
+ return {
1377
+ baseAndSmall: config,
1378
+ mediumAndWide: config
1379
+ };
1380
+ };
1381
+ const typography = {
1382
+ colors: {
1383
+ black: colors.black,
1384
+ 'black-anthracite': colors.blackAnthracite,
1385
+ 'black-disabled': lateOceanColorPalette.black400,
1386
+ 'black-light': lateOceanColorPalette.black555,
1387
+ white: colors.white,
1388
+ 'white-light': colors.white,
1389
+ primary: colors.primary,
1390
+ 'primary-light': colors.primaryLight,
1391
+ accent: colors.accent,
1392
+ success: colors.success,
1393
+ danger: colors.danger,
1394
+ warning: colors.warning
1395
+ },
1396
+ types: {
1397
+ headings: {
1398
+ fontFamily: {
1399
+ native: {
1400
+ regular: 'Moderat-Bold',
1401
+ bold: 'Moderat-Bold'
1402
+ },
1403
+ web: {
1404
+ regular: 'Moderat',
1405
+ bold: 'Moderat'
1406
+ }
1407
+ },
1408
+ fontWeight: {
1409
+ regular: 400,
1410
+ bold: 700
1411
+ },
1412
+ fontStyle: 'normal',
1413
+ configs: {
1414
+ /* legacy */
1415
+ header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1416
+ header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1417
+ header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1418
+ header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1419
+ header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1420
+ /* latest */
1421
+ 'heading-xxl': createTypographyConfig(56, 1.1),
1422
+ 'heading-xl': createTypographyConfig(48, 1.1),
1423
+ 'heading-l': createTypographyConfig(40, 1.1),
1424
+ 'heading-m': createTypographyConfig(32, 1.2),
1425
+ 'heading-s': createTypographyConfig(24, 1.2),
1426
+ 'heading-xs': createTypographyConfig(18, 1.3),
1427
+ 'heading-xxs': createTypographyConfig(16, 1.3)
1428
+ }
1429
+ },
1430
+ 'headings-impact': {
1431
+ fontFamily: {
1432
+ native: {
1433
+ regular: 'Transducer-Black',
1434
+ bold: 'Transducer-Black'
1435
+ },
1436
+ web: {
1437
+ regular: 'TransducerBlack',
1438
+ bold: 'TransducerBlack'
1439
+ }
1440
+ },
1441
+ fontWeight: 900,
1442
+ fontStyle: 'normal',
1443
+ configs: {
1444
+ /* legacy */
1445
+ 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1446
+ 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1447
+ 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1448
+ 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1449
+ 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1450
+ 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1451
+ 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1452
+ 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1453
+ /* latest */
1454
+ 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1455
+ 'heading-impact-xl': createTypographyConfig(48, 1.2),
1456
+ 'heading-impact-l': createTypographyConfig(40, 1.2),
1457
+ 'heading-impact-m': createTypographyConfig(32, 1.2),
1458
+ 'heading-impact-s': createTypographyConfig(24, 1.2),
1459
+ 'heading-impact-xs': createTypographyConfig(18, 1.2),
1460
+ 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1461
+ 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1462
+ }
1463
+ },
1464
+ bodies: {
1465
+ fontFamily: {
1466
+ web: {
1467
+ regular: 'Moderat',
1468
+ bold: 'Moderat'
1469
+ },
1470
+ native: {
1471
+ regular: 'Moderat-Regular',
1472
+ bold: 'Moderat-Bold'
1473
+ }
1474
+ },
1475
+ fontWeight: {
1476
+ regular: 400,
1477
+ bold: 700
1478
+ },
1479
+ fontStyle: {
1480
+ regular: 'normal',
1481
+ bold: 'normal'
1482
+ },
1483
+ configs: {
1484
+ /* legacy */
1485
+ 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1486
+ 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1487
+ body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1488
+ 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1489
+ 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1490
+ /* latest */
1491
+ 'body-xl': createTypographyConfig(24, 1.4),
1492
+ 'body-l': createTypographyConfig(18, 1.4),
1493
+ 'body-m': createTypographyConfig(16, 1.4),
1494
+ 'body-s': createTypographyConfig(14, 1.4),
1495
+ 'body-xs': createTypographyConfig(12, 1.4)
1496
+ }
1497
+ }
1498
+ },
1499
+ link: {
1500
+ /** @deprecated not used in kitt anymore, use Typography instead */
1501
+ disabledColor: colors.blackDisabled
1502
+ }
1503
+ };
1504
+
1476
1505
  const picker = {
1477
1506
  ios: {
1478
1507
  default: {
@@ -1987,7 +2016,7 @@ function getCurrentBackgroundColorForNativeBaseTheme({
1987
2016
  return `${baseKey}.backgroundColor`;
1988
2017
  }
1989
2018
 
1990
- function AnimatedContainer$1({
2019
+ function AnimatedContainer$2({
1991
2020
  disabled,
1992
2021
  animatedStyles,
1993
2022
  children,
@@ -2526,7 +2555,7 @@ function getVariantValuesIfExist(theme, type, variant) {
2526
2555
  return theme.kitt.button[type].default;
2527
2556
  }
2528
2557
 
2529
- const useNativeAnimation$3 = ({
2558
+ const useNativeAnimation$4 = ({
2530
2559
  type,
2531
2560
  variant,
2532
2561
  isPressedInternal
@@ -2601,7 +2630,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
2601
2630
  onPressIn,
2602
2631
  onPressOut,
2603
2632
  animatedStyles
2604
- } = useNativeAnimation$3({
2633
+ } = useNativeAnimation$4({
2605
2634
  type,
2606
2635
  variant
2607
2636
  });
@@ -2640,7 +2669,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
2640
2669
  isHovered,
2641
2670
  isPressed,
2642
2671
  isFocused
2643
- }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer$1, {
2672
+ }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer$2, {
2644
2673
  animatedStyles: animatedStyles,
2645
2674
  type: type,
2646
2675
  isHovered: isHovered || isHoveredInternal,
@@ -3446,7 +3475,7 @@ function AnimatedChoiceItemView({
3446
3475
  });
3447
3476
  }
3448
3477
 
3449
- const useNativeAnimation$2 = ({
3478
+ const useNativeAnimation$3 = ({
3450
3479
  selected,
3451
3480
  disabled,
3452
3481
  isPressedInternal
@@ -3517,7 +3546,7 @@ function ChoiceItem({
3517
3546
  onPressIn,
3518
3547
  onPressOut,
3519
3548
  backgroundStyles
3520
- } = useNativeAnimation$2({
3549
+ } = useNativeAnimation$3({
3521
3550
  selected,
3522
3551
  disabled,
3523
3552
  isPressedInternal
@@ -6067,7 +6096,7 @@ const Radio = /*#__PURE__*/React.forwardRef(({
6067
6096
  });
6068
6097
  });
6069
6098
 
6070
- function AnimatedContainer({
6099
+ function AnimatedContainer$1({
6071
6100
  children,
6072
6101
  isFirst,
6073
6102
  isLast,
@@ -6122,7 +6151,7 @@ function HoverBorder({
6122
6151
  });
6123
6152
  }
6124
6153
 
6125
- const useNativeAnimation$1 = ({
6154
+ const useNativeAnimation$2 = ({
6126
6155
  isDisabled,
6127
6156
  isSelected,
6128
6157
  isPressedInternal
@@ -6203,7 +6232,7 @@ function RadioButton({
6203
6232
  onPressIn,
6204
6233
  onPressOut,
6205
6234
  animatedStyles
6206
- } = useNativeAnimation$1({
6235
+ } = useNativeAnimation$2({
6207
6236
  isDisabled: disabled,
6208
6237
  isSelected: selected,
6209
6238
  isPressedInternal
@@ -6230,7 +6259,7 @@ function RadioButton({
6230
6259
  isHovered,
6231
6260
  isPressed,
6232
6261
  isFocused
6233
- }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer, {
6262
+ }) => /*#__PURE__*/jsxRuntime.jsx(AnimatedContainer$1, {
6234
6263
  animatedStyles: animatedStyles,
6235
6264
  isFocused: isFocused || isFocusedInternal,
6236
6265
  isPressed: isPressed || isPressedInternal,
@@ -6650,15 +6679,228 @@ FullscreenModal.Footer = FullscreenModalFooter;
6650
6679
  FullscreenModal.Body = FullscreenModalBody;
6651
6680
  FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
6652
6681
 
6682
+ function AnimatedCaret({
6683
+ children,
6684
+ animatedStyles
6685
+ }) {
6686
+ return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
6687
+ style: [animatedStyles],
6688
+ children: children
6689
+ });
6690
+ }
6691
+
6692
+ function AnimatedContainer({
6693
+ children,
6694
+ size,
6695
+ animatedStyles
6696
+ }) {
6697
+ const sx = nativeBase.useSx();
6698
+ const theme = useTheme();
6699
+ const styles = sx({
6700
+ borderRadius: theme.kitt.highlight.borderRadius,
6701
+ padding: theme.kitt.highlight.padding[size]
6702
+ });
6703
+ return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
6704
+ style: [styles, animatedStyles],
6705
+ children: children
6706
+ });
6707
+ }
6708
+
6709
+ function AnimatedContent({
6710
+ children,
6711
+ animatedStyles
6712
+ }) {
6713
+ return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
6714
+ style: [{
6715
+ overflow: 'hidden'
6716
+ }, animatedStyles],
6717
+ children: children
6718
+ });
6719
+ }
6720
+
6721
+ const withTimingConfig = {
6722
+ duration: 100,
6723
+ easing: Animated.Easing.ease
6724
+ };
6725
+ const useNativeAnimation$1 = ({
6726
+ variant,
6727
+ isExpanded,
6728
+ isInitialRender,
6729
+ contentHeight
6730
+ }) => {
6731
+ const theme = useTheme();
6732
+ const color = Animated.useSharedValue(0);
6733
+ const rotation = Animated.useSharedValue(0);
6734
+ const translate = Animated.useSharedValue(0);
6735
+ const containerAnimatedStyles = Animated.useAnimatedStyle(() => {
6736
+ return {
6737
+ backgroundColor: Animated.interpolateColor(color.value, [0, 1], [theme.kitt.highlight[variant].default.backgroundColor, theme.kitt.highlight[variant].hover.backgroundColor])
6738
+ };
6739
+ });
6740
+ const caretAnimatedStyles = Animated.useAnimatedStyle(() => {
6741
+ rotation.value = Animated.withTiming(isExpanded ? 180 : 0, {
6742
+ duration: 300,
6743
+ easing: Animated.Easing.ease
6744
+ });
6745
+ return {
6746
+ transform: [{
6747
+ rotate: `${rotation.value}deg`
6748
+ }, {
6749
+ translateY: translate.value
6750
+ }]
6751
+ };
6752
+ });
6753
+ const contentAnimatedStyles = Animated.useAnimatedStyle(() => {
6754
+ return {
6755
+ height: Animated.withTiming(isExpanded ? contentHeight : 0, {
6756
+ duration: isInitialRender ? 0 : 300,
6757
+ easing: Animated.Easing.ease
6758
+ })
6759
+ };
6760
+ });
6761
+ return {
6762
+ onPressIn: () => {
6763
+ color.value = Animated.withTiming(1, withTimingConfig);
6764
+ translate.value = Animated.withTiming(2, withTimingConfig);
6765
+ },
6766
+ onPressOut: () => {
6767
+ color.value = Animated.withTiming(0, withTimingConfig);
6768
+ translate.value = Animated.withTiming(0, withTimingConfig);
6769
+ },
6770
+ containerAnimatedStyles,
6771
+ caretAnimatedStyles,
6772
+ contentAnimatedStyles
6773
+ };
6774
+ };
6775
+
6653
6776
  function Highlight({
6654
- variant = 'regular',
6777
+ variant = 'primary',
6778
+ canCollapse = false,
6779
+ isInitialCollapsed = true,
6780
+ title,
6781
+ icon = null,
6782
+ size = 'medium',
6655
6783
  children
6656
6784
  }) {
6657
- return /*#__PURE__*/jsxRuntime.jsx(View, {
6658
- borderRadius: "kitt.highlight.borderRadius",
6659
- padding: "kitt.highlight.padding",
6660
- backgroundColor: `kitt.highlight.${variant}.backgroundColor`,
6661
- children: children
6785
+ const theme = useTheme();
6786
+ const [isExpanded, setIsExpanded] = React.useState(!isInitialCollapsed);
6787
+ const [contentHeight, setContentHeight] = React.useState(0);
6788
+ const [isInitialRender, setIsInitialRender] = React.useState(true);
6789
+ const highlightStyle = {
6790
+ medium: {
6791
+ marginBottom: 'kitt.1',
6792
+ spaceBetween: 'kitt.2',
6793
+ contentMarginY: 8
6794
+ },
6795
+ large: {
6796
+ marginBottom: 'kitt.2',
6797
+ spaceBetween: 'kitt.4',
6798
+ contentMarginY: 16
6799
+ }
6800
+ };
6801
+ const {
6802
+ containerAnimatedStyles,
6803
+ caretAnimatedStyles,
6804
+ contentAnimatedStyles,
6805
+ onPressIn,
6806
+ onPressOut
6807
+ } = useNativeAnimation$1({
6808
+ variant,
6809
+ isExpanded,
6810
+ isInitialRender,
6811
+ contentHeight
6812
+ });
6813
+ const handleLayout = event => {
6814
+ const layoutHeight = event.nativeEvent.layout.height;
6815
+ const newContentHeight = layoutHeight + highlightStyle[size].contentMarginY;
6816
+ if (layoutHeight > 0 && newContentHeight !== contentHeight) {
6817
+ setContentHeight(newContentHeight);
6818
+ }
6819
+ };
6820
+ if (!canCollapse) {
6821
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
6822
+ borderRadius: "kitt.highlight.borderRadius",
6823
+ padding: theme.kitt.highlight.padding[size],
6824
+ backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
6825
+ children: /*#__PURE__*/jsxRuntime.jsxs(HStack, {
6826
+ space: highlightStyle[size].spaceBetween,
6827
+ children: [icon && /*#__PURE__*/jsxRuntime.jsx(View, {
6828
+ children: icon
6829
+ }), /*#__PURE__*/jsxRuntime.jsxs(View, {
6830
+ flexGrow: 1,
6831
+ flexShrink: 1,
6832
+ children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
6833
+ marginBottom: highlightStyle[size].marginBottom,
6834
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
6835
+ variant: "bold",
6836
+ base: "body",
6837
+ ellipsizeMode: "clip",
6838
+ children: title
6839
+ })
6840
+ }), children]
6841
+ })]
6842
+ })
6843
+ });
6844
+ }
6845
+ return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
6846
+ onPress: () => {
6847
+ setIsExpanded(!isExpanded);
6848
+ setIsInitialRender(false);
6849
+ },
6850
+ onPressIn: onPressIn,
6851
+ onPressOut: onPressOut,
6852
+ children: ({
6853
+ isHovered
6854
+ }) => {
6855
+ return /*#__PURE__*/jsxRuntime.jsxs(AnimatedContainer, {
6856
+ isHovered: isHovered,
6857
+ size: size,
6858
+ variant: variant,
6859
+ animatedStyles: containerAnimatedStyles,
6860
+ children: [title && /*#__PURE__*/jsxRuntime.jsxs(HStack, {
6861
+ space: highlightStyle[size].spaceBetween,
6862
+ alignItems: "center",
6863
+ children: [icon && /*#__PURE__*/jsxRuntime.jsx(View, {
6864
+ flexGrow: 1,
6865
+ children: icon
6866
+ }), /*#__PURE__*/jsxRuntime.jsx(View, {
6867
+ flexGrow: 1,
6868
+ flexShrink: 1,
6869
+ width: "100%",
6870
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
6871
+ variant: "bold",
6872
+ base: "body",
6873
+ ellipsizeMode: "clip",
6874
+ children: title
6875
+ })
6876
+ }), /*#__PURE__*/jsxRuntime.jsx(View, {
6877
+ flexGrow: 2,
6878
+ flexShrink: 2,
6879
+ alignItems: "center",
6880
+ justifyContent: "center",
6881
+ children: /*#__PURE__*/jsxRuntime.jsx(AnimatedCaret, {
6882
+ isHovered: isHovered,
6883
+ isExpanded: isExpanded,
6884
+ animatedStyles: caretAnimatedStyles,
6885
+ children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
6886
+ icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.CaretDownRegularIcon, {})
6887
+ })
6888
+ })
6889
+ })]
6890
+ }), /*#__PURE__*/jsxRuntime.jsx(AnimatedContent, {
6891
+ isExpanded: isExpanded,
6892
+ isInitialRender: isInitialRender,
6893
+ contentHeight: contentHeight,
6894
+ animatedStyles: contentAnimatedStyles,
6895
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
6896
+ marginTop: highlightStyle[size].contentMarginY,
6897
+ position: "absolute",
6898
+ onLayout: handleLayout,
6899
+ children: children
6900
+ })
6901
+ })]
6902
+ });
6903
+ }
6662
6904
  });
6663
6905
  }
6664
6906
 
@@ -7675,16 +7917,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7675
7917
  },
7676
7918
  highlight: {
7677
7919
  regular: {
7678
- backgroundColor: theme.highlight.regular.backgroundColor
7920
+ default: {
7921
+ backgroundColor: theme.highlight.regular.default.backgroundColor
7922
+ },
7923
+ hover: {
7924
+ backgroundColor: theme.highlight.regular.hover.backgroundColor
7925
+ }
7679
7926
  },
7680
7927
  primary: {
7681
- backgroundColor: theme.highlight.primary.backgroundColor
7928
+ default: {
7929
+ backgroundColor: theme.highlight.primary.default.backgroundColor
7930
+ },
7931
+ hover: {
7932
+ backgroundColor: theme.highlight.primary.hover.backgroundColor
7933
+ }
7682
7934
  },
7683
7935
  secondary: {
7684
- backgroundColor: theme.highlight.secondary.backgroundColor
7936
+ default: {
7937
+ backgroundColor: theme.highlight.secondary.default.backgroundColor
7938
+ },
7939
+ hover: {
7940
+ backgroundColor: theme.highlight.secondary.hover.backgroundColor
7941
+ }
7685
7942
  },
7686
7943
  dark: {
7687
- backgroundColor: theme.highlight.dark.backgroundColor
7944
+ default: {
7945
+ backgroundColor: theme.highlight.dark.default.backgroundColor
7946
+ },
7947
+ hover: {
7948
+ backgroundColor: theme.highlight.dark.hover.backgroundColor
7949
+ }
7950
+ },
7951
+ ghost: {
7952
+ default: {
7953
+ backgroundColor: theme.highlight.ghost.default.backgroundColor
7954
+ },
7955
+ hover: {
7956
+ backgroundColor: theme.highlight.ghost.hover.backgroundColor
7957
+ }
7688
7958
  }
7689
7959
  },
7690
7960
  verticalSteps: {
@@ -8197,7 +8467,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8197
8467
  }
8198
8468
  },
8199
8469
  highlight: {
8200
- padding: theme.highlight.padding
8470
+ medium: {
8471
+ padding: theme.highlight.padding.medium
8472
+ },
8473
+ large: {
8474
+ padding: theme.highlight.padding.large
8475
+ }
8201
8476
  },
8202
8477
  listItem: {
8203
8478
  verticalPadding: theme.listItem.verticalPadding,
@@ -8830,9 +9105,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8830
9105
  borderColor: theme.forms.input.states.default.borderColor,
8831
9106
  bg: theme.forms.input.states.default.backgroundColor,
8832
9107
  _hover: {
9108
+ bg: theme.forms.input.states.hover.backgroundColor,
8833
9109
  borderColor: theme.forms.input.states.hover.borderColor,
8834
9110
  color: theme.forms.input.states.hover.color,
8835
9111
  _focus: {
9112
+ bg: theme.forms.input.states.default.backgroundColor,
8836
9113
  borderColor: theme.forms.input.states.focus.borderColor,
8837
9114
  color: theme.forms.input.states.focus.color
8838
9115
  }
@@ -10178,6 +10455,7 @@ function ModalDateTimePicker({
10178
10455
  title,
10179
10456
  visible,
10180
10457
  value,
10458
+ minuteInterval,
10181
10459
  validateButtonLabel,
10182
10460
  testID,
10183
10461
  pickerTestID,
@@ -10212,6 +10490,7 @@ function ModalDateTimePicker({
10212
10490
  }) : null, /*#__PURE__*/jsxRuntime.jsx(CardModal.Body, {
10213
10491
  children: /*#__PURE__*/jsxRuntime.jsx(DateTimePicker__default, {
10214
10492
  is24Hour: true,
10493
+ minuteInterval: minuteInterval,
10215
10494
  testID: pickerTestID,
10216
10495
  value: currentValue,
10217
10496
  mode: "time",
@@ -10305,6 +10584,7 @@ const TimePicker = /*#__PURE__*/React.forwardRef(({
10305
10584
  disabled = false,
10306
10585
  stretch,
10307
10586
  value,
10587
+ minuteInterval,
10308
10588
  validateButtonLabel,
10309
10589
  isDefaultVisible,
10310
10590
  placeholder = '--:--',
@@ -10344,11 +10624,13 @@ const TimePicker = /*#__PURE__*/React.forwardRef(({
10344
10624
  is24Hour: true,
10345
10625
  testID: pickerTestID,
10346
10626
  value: pickerValue,
10627
+ minuteInterval: minuteInterval,
10347
10628
  mode: "time",
10348
10629
  display: "default",
10349
10630
  onChange: (event, date) => handleChange(date)
10350
10631
  }) : null, reactNative.Platform.OS !== 'android' ? /*#__PURE__*/jsxRuntime.jsx(ModalDateTimePicker, {
10351
10632
  visible: isPickerVisible,
10633
+ minuteInterval: minuteInterval,
10352
10634
  title: title,
10353
10635
  testID: modalTestID,
10354
10636
  pickerTestID: pickerTestID,