@ornikar/kitt-universal 23.1.0 → 23.2.2

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 (72) hide show
  1. package/CHANGELOG.md +27 -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/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
  21. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +53 -27
  22. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  23. package/dist/definitions/themes/default.d.ts +17 -20
  24. package/dist/definitions/themes/default.d.ts.map +1 -1
  25. package/dist/definitions/themes/late-ocean/colors.d.ts +2 -2
  26. package/dist/definitions/themes/late-ocean/forms.d.ts +1 -4
  27. package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
  28. package/dist/definitions/themes/late-ocean/highlight.d.ts +11 -2
  29. package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
  30. package/dist/definitions/themes/late-ocean/input.d.ts +2 -2
  31. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  32. package/dist/definitions/themes/late-ocean/inputField.d.ts +1 -4
  33. package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -1
  34. package/dist/definitions/themes/late-ocean/typography.d.ts +1 -1
  35. package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +19 -19
  36. package/dist/index-metro.es.android.js +490 -213
  37. package/dist/index-metro.es.android.js.map +1 -1
  38. package/dist/index-metro.es.ios.js +490 -213
  39. package/dist/index-metro.es.ios.js.map +1 -1
  40. package/dist/index-node-20.10.cjs.js +489 -212
  41. package/dist/index-node-20.10.cjs.js.map +1 -1
  42. package/dist/index-node-20.10.cjs.web.css +1 -1
  43. package/dist/index-node-20.10.cjs.web.js +458 -210
  44. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  45. package/dist/index-node-20.10.es.mjs +490 -213
  46. package/dist/index-node-20.10.es.mjs.map +1 -1
  47. package/dist/index-node-20.10.es.web.css +1 -1
  48. package/dist/index-node-20.10.es.web.mjs +459 -211
  49. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  50. package/dist/index.es.js +504 -220
  51. package/dist/index.es.js.map +1 -1
  52. package/dist/index.es.web.js +474 -218
  53. package/dist/index.es.web.js.map +1 -1
  54. package/dist/linaria-themes-metro.es.android.js +219 -190
  55. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  56. package/dist/linaria-themes-metro.es.ios.js +219 -190
  57. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  58. package/dist/linaria-themes-node-20.10.cjs.js +219 -190
  59. package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
  60. package/dist/linaria-themes-node-20.10.cjs.web.js +219 -190
  61. package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
  62. package/dist/linaria-themes-node-20.10.es.mjs +219 -190
  63. package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
  64. package/dist/linaria-themes-node-20.10.es.web.mjs +219 -190
  65. package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
  66. package/dist/linaria-themes.es.js +225 -196
  67. package/dist/linaria-themes.es.js.map +1 -1
  68. package/dist/linaria-themes.es.web.js +225 -196
  69. package/dist/linaria-themes.es.web.js.map +1 -1
  70. package/dist/styles.css +1 -1
  71. package/dist/tsbuildinfo +1 -1
  72. package/package.json +2 -2
@@ -11,7 +11,7 @@ import { BottomSheetScrollView, BottomSheetView, useBottomSheetDynamicSnapPoints
11
11
  import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
12
12
  import { parse } from 'twemoji-parser';
13
13
  import * as WebBrowser from 'expo-web-browser';
14
- import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
14
+ import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, CaretDownRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
15
15
  import Downshift from 'downshift';
16
16
  import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
17
17
  import { FormattedMessage } from 'react-intl';
@@ -70,13 +70,13 @@ const colorScales = {
70
70
  12: '#0a0428'
71
71
  }),
72
72
  lavender: createColorScale({
73
- 1: '#fbf7ff',
74
- 2: '#f7f0ff',
73
+ 1: '#fdf7ff',
74
+ 2: '#fcf2ff',
75
75
  3: '#FAEBFF',
76
- 4: '#ebd9ff',
77
- 5: '#e2c7ff',
78
- 6: '#d4adff',
79
- 7: '#c694ff',
76
+ 4: '#f8e3ff',
77
+ 5: '#f4d6ff',
78
+ 6: '#efc2ff',
79
+ 7: '#d298ff',
80
80
  8: '#b97aff',
81
81
  9: '#ac5ff9',
82
82
  10: '#9d4ced',
@@ -219,7 +219,7 @@ const colors = {
219
219
  accentLight: lateOceanColorPalette['lavender.3'],
220
220
  success: lateOceanColorPalette['green.8'],
221
221
  correct: lateOceanColorPalette['green.8'],
222
- danger: lateOceanColorPalette['coral.7'],
222
+ danger: lateOceanColorPalette['coral.8'],
223
223
  info: lateOceanColorPalette['blue.8'],
224
224
  warning: lateOceanColorPalette['sun.8'],
225
225
  separator: lateOceanColorPalette['eggshell.3'],
@@ -966,209 +966,64 @@ const datePicker = {
966
966
  }
967
967
  };
968
968
 
969
- const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
970
- /** @deprecated legacy typography type config is deprecated. */
971
- const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
972
- baseAndSmall: {
973
- fontSize: baseAndSmallFontSize,
974
- lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
975
- },
976
- mediumAndWide: {
977
- fontSize: mediumAndWideFontSize,
978
- lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
979
- }
980
- });
981
- const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
982
- const config = {
983
- fontSize,
984
- lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
985
- };
986
- return {
987
- baseAndSmall: config,
988
- mediumAndWide: config
989
- };
990
- };
991
- const typography = {
992
- colors: {
993
- black: colors.black,
994
- 'black-anthracite': colors.blackAnthracite,
995
- 'black-disabled': lateOceanColorPalette.black400,
996
- 'black-light': lateOceanColorPalette.black555,
997
- white: colors.white,
998
- 'white-light': colors.white,
999
- primary: colors.primary,
1000
- 'primary-light': colors.primaryLight,
1001
- accent: colors.accent,
1002
- success: colors.success,
1003
- danger: colors.danger,
1004
- warning: colors.warning
1005
- },
1006
- types: {
1007
- headings: {
1008
- fontFamily: {
1009
- native: {
1010
- regular: 'Moderat-Bold',
1011
- bold: 'Moderat-Bold'
1012
- },
1013
- web: {
1014
- regular: 'Moderat',
1015
- bold: 'Moderat'
1016
- }
1017
- },
1018
- fontWeight: {
1019
- regular: 400,
1020
- bold: 700
1021
- },
1022
- fontStyle: 'normal',
1023
- configs: {
1024
- /* legacy */
1025
- header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1026
- header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1027
- header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1028
- header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1029
- header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1030
- /* latest */
1031
- 'heading-xxl': createTypographyConfig(56, 1.1),
1032
- 'heading-xl': createTypographyConfig(48, 1.1),
1033
- 'heading-l': createTypographyConfig(40, 1.1),
1034
- 'heading-m': createTypographyConfig(32, 1.2),
1035
- 'heading-s': createTypographyConfig(24, 1.2),
1036
- 'heading-xs': createTypographyConfig(18, 1.3),
1037
- 'heading-xxs': createTypographyConfig(16, 1.3)
1038
- }
1039
- },
1040
- 'headings-impact': {
1041
- fontFamily: {
1042
- native: {
1043
- regular: 'Transducer-Black',
1044
- bold: 'Transducer-Black'
1045
- },
1046
- web: {
1047
- regular: 'TransducerBlack',
1048
- bold: 'TransducerBlack'
1049
- }
1050
- },
1051
- fontWeight: 900,
1052
- fontStyle: 'normal',
1053
- configs: {
1054
- /* legacy */
1055
- 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1056
- 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1057
- 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1058
- 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1059
- 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1060
- 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1061
- 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1062
- 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1063
- /* latest */
1064
- 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1065
- 'heading-impact-xl': createTypographyConfig(48, 1.2),
1066
- 'heading-impact-l': createTypographyConfig(40, 1.2),
1067
- 'heading-impact-m': createTypographyConfig(32, 1.2),
1068
- 'heading-impact-s': createTypographyConfig(24, 1.2),
1069
- 'heading-impact-xs': createTypographyConfig(18, 1.2),
1070
- 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1071
- 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1072
- }
1073
- },
1074
- bodies: {
1075
- fontFamily: {
1076
- web: {
1077
- regular: 'Moderat',
1078
- bold: 'Moderat'
1079
- },
1080
- native: {
1081
- regular: 'Moderat-Regular',
1082
- bold: 'Moderat-Bold'
1083
- }
1084
- },
1085
- fontWeight: {
1086
- regular: 400,
1087
- bold: 700
1088
- },
1089
- fontStyle: {
1090
- regular: 'normal',
1091
- bold: 'normal'
1092
- },
1093
- configs: {
1094
- /* legacy */
1095
- 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1096
- 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1097
- body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1098
- 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1099
- 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1100
- /* latest */
1101
- 'body-xl': createTypographyConfig(24, 1.4),
1102
- 'body-l': createTypographyConfig(18, 1.4),
1103
- 'body-m': createTypographyConfig(16, 1.4),
1104
- 'body-s': createTypographyConfig(14, 1.4),
1105
- 'body-xs': createTypographyConfig(12, 1.4)
1106
- }
1107
- }
1108
- },
1109
- link: {
1110
- /** @deprecated not used in kitt anymore, use Typography instead */
1111
- disabledColor: colors.blackDisabled
1112
- }
1113
- };
1114
-
1115
969
  const inputStatesStyle = {
1116
970
  default: {
1117
- backgroundColor: colors.uiBackgroundLight,
1118
- borderColor: colors.separator,
1119
- color: colors.black
971
+ backgroundColor: lateOceanColorPalette.white,
972
+ borderColor: lateOceanColorPalette['eggshell.4'],
973
+ color: lateOceanColorPalette.black
1120
974
  },
1121
975
  pending: {
1122
- backgroundColor: colors.uiBackgroundLight,
1123
- borderColor: colors.separator,
1124
- color: colors.black
976
+ backgroundColor: lateOceanColorPalette.white,
977
+ borderColor: lateOceanColorPalette['eggshell.3'],
978
+ color: lateOceanColorPalette.black
1125
979
  },
1126
980
  valid: {
1127
- backgroundColor: colors.uiBackgroundLight,
1128
- borderColor: lateOceanColorPalette.black100,
1129
- color: colors.black
981
+ backgroundColor: lateOceanColorPalette.white,
982
+ borderColor: lateOceanColorPalette['eggshell.4'],
983
+ color: lateOceanColorPalette.black
1130
984
  },
1131
985
  hover: {
1132
- borderColor: lateOceanColorPalette.black200,
1133
- color: colors.black
986
+ backgroundColor: lateOceanColorPalette['eggshell.1'],
987
+ borderColor: lateOceanColorPalette['eggshell.5'],
988
+ color: lateOceanColorPalette.black
1134
989
  },
1135
990
  focus: {
1136
- borderColor: colors.primary,
1137
- color: colors.black
991
+ borderColor: lateOceanColorPalette['violine.9'],
992
+ color: lateOceanColorPalette.black
1138
993
  },
1139
994
  disabled: {
1140
- backgroundColor: colors.disabled,
1141
- borderColor: colors.separator,
1142
- color: colors.blackDisabled
995
+ backgroundColor: lateOceanColorPalette['eggshell.2'],
996
+ borderColor: lateOceanColorPalette['eggshell.4'],
997
+ color: lateOceanColorPalette['eggshell.6']
1143
998
  },
1144
999
  invalid: {
1145
- borderColor: colors.separator,
1146
- color: colors.black
1000
+ borderColor: lateOceanColorPalette['eggshell.3'],
1001
+ color: lateOceanColorPalette.black
1147
1002
  }
1148
1003
  };
1149
1004
  const webAnimationDuration = '200ms';
1150
1005
  const webAnimationTimingFunction = 'ease-in-out';
1151
- const webAnimationProperty = 'border-color';
1006
+ const webAnimationProperties = ['border-color', 'background-color'];
1152
1007
  const input = {
1153
1008
  minHeight: 40,
1154
1009
  color: {
1155
- selection: colors.primary,
1156
- placeholder: typography.colors['black-light']
1010
+ selection: lateOceanColorPalette['violine.9'],
1011
+ placeholder: lateOceanColorPalette['eggshell.9']
1157
1012
  },
1158
- borderWidth: 2,
1159
- borderRadius: 10,
1013
+ borderWidth: 1,
1014
+ borderRadius: 8,
1160
1015
  icon: {
1161
1016
  size: 20
1162
1017
  },
1163
1018
  rightContainer: {
1164
- padding: 10
1019
+ padding: 16
1165
1020
  },
1166
1021
  padding: {
1167
1022
  horizontal: 16,
1168
- vertical: 5
1023
+ vertical: 0
1169
1024
  },
1170
1025
  transition: {
1171
- property: webAnimationProperty,
1026
+ properties: webAnimationProperties,
1172
1027
  duration: webAnimationDuration,
1173
1028
  timingFunction: webAnimationTimingFunction
1174
1029
  },
@@ -1178,11 +1033,8 @@ const input = {
1178
1033
  const inputField = {
1179
1034
  containerPaddingTop: 5,
1180
1035
  containerPaddingBottom: 10,
1181
- feedbackPaddingTop: {
1182
- base: 5,
1183
- small: 10
1184
- },
1185
- labelContainerPaddingBottom: 5,
1036
+ feedbackPaddingTop: 4,
1037
+ labelContainerPaddingBottom: 4,
1186
1038
  labelFeedbackMarginLeft: 6
1187
1039
  };
1188
1040
 
@@ -1314,21 +1166,52 @@ const fullscreenModal = {
1314
1166
  };
1315
1167
 
1316
1168
  const highlight = {
1317
- borderRadius: spacing * 5,
1169
+ borderRadius: spacing * 2,
1318
1170
  /** @deprecated use primary instead */
1319
1171
  regular: {
1320
- backgroundColor: colors.accentLight
1172
+ default: {
1173
+ backgroundColor: colors.accentLight
1174
+ },
1175
+ hover: {
1176
+ backgroundColor: colors.accentLight
1177
+ }
1321
1178
  },
1322
1179
  primary: {
1323
- backgroundColor: colors.accentLight
1180
+ default: {
1181
+ backgroundColor: lateOceanColorPalette['lavender.3']
1182
+ },
1183
+ hover: {
1184
+ backgroundColor: lateOceanColorPalette['lavender.5']
1185
+ }
1324
1186
  },
1325
1187
  secondary: {
1326
- backgroundColor: lateOceanColorPalette.moonPurple
1188
+ default: {
1189
+ backgroundColor: lateOceanColorPalette['violine.2']
1190
+ },
1191
+ hover: {
1192
+ backgroundColor: lateOceanColorPalette['violine.4']
1193
+ }
1194
+ },
1195
+ ghost: {
1196
+ default: {
1197
+ backgroundColor: lateOceanColorPalette.white
1198
+ },
1199
+ hover: {
1200
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1201
+ }
1327
1202
  },
1328
1203
  dark: {
1329
- backgroundColor: lateOceanColorPalette.black100
1204
+ default: {
1205
+ backgroundColor: lateOceanColorPalette['eggshell.3']
1206
+ },
1207
+ hover: {
1208
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1209
+ }
1330
1210
  },
1331
- padding: spacing * 5
1211
+ padding: {
1212
+ medium: spacing * 4,
1213
+ large: spacing * 6
1214
+ }
1332
1215
  };
1333
1216
 
1334
1217
  const getIconSizeFromFontSize = fontSize => {
@@ -1451,6 +1334,152 @@ const pageLoader = {
1451
1334
  }
1452
1335
  };
1453
1336
 
1337
+ const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
1338
+ /** @deprecated legacy typography type config is deprecated. */
1339
+ const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
1340
+ baseAndSmall: {
1341
+ fontSize: baseAndSmallFontSize,
1342
+ lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
1343
+ },
1344
+ mediumAndWide: {
1345
+ fontSize: mediumAndWideFontSize,
1346
+ lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
1347
+ }
1348
+ });
1349
+ const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
1350
+ const config = {
1351
+ fontSize,
1352
+ lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
1353
+ };
1354
+ return {
1355
+ baseAndSmall: config,
1356
+ mediumAndWide: config
1357
+ };
1358
+ };
1359
+ const typography = {
1360
+ colors: {
1361
+ black: colors.black,
1362
+ 'black-anthracite': colors.blackAnthracite,
1363
+ 'black-disabled': lateOceanColorPalette.black400,
1364
+ 'black-light': lateOceanColorPalette.black555,
1365
+ white: colors.white,
1366
+ 'white-light': colors.white,
1367
+ primary: colors.primary,
1368
+ 'primary-light': colors.primaryLight,
1369
+ accent: colors.accent,
1370
+ success: colors.success,
1371
+ danger: colors.danger,
1372
+ warning: colors.warning
1373
+ },
1374
+ types: {
1375
+ headings: {
1376
+ fontFamily: {
1377
+ native: {
1378
+ regular: 'Moderat-Bold',
1379
+ bold: 'Moderat-Bold'
1380
+ },
1381
+ web: {
1382
+ regular: 'Moderat',
1383
+ bold: 'Moderat'
1384
+ }
1385
+ },
1386
+ fontWeight: {
1387
+ regular: 400,
1388
+ bold: 700
1389
+ },
1390
+ fontStyle: 'normal',
1391
+ configs: {
1392
+ /* legacy */
1393
+ header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1394
+ header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1395
+ header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1396
+ header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1397
+ header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1398
+ /* latest */
1399
+ 'heading-xxl': createTypographyConfig(56, 1.1),
1400
+ 'heading-xl': createTypographyConfig(48, 1.1),
1401
+ 'heading-l': createTypographyConfig(40, 1.1),
1402
+ 'heading-m': createTypographyConfig(32, 1.2),
1403
+ 'heading-s': createTypographyConfig(24, 1.2),
1404
+ 'heading-xs': createTypographyConfig(18, 1.3),
1405
+ 'heading-xxs': createTypographyConfig(16, 1.3)
1406
+ }
1407
+ },
1408
+ 'headings-impact': {
1409
+ fontFamily: {
1410
+ native: {
1411
+ regular: 'Transducer-Black',
1412
+ bold: 'Transducer-Black'
1413
+ },
1414
+ web: {
1415
+ regular: 'TransducerBlack',
1416
+ bold: 'TransducerBlack'
1417
+ }
1418
+ },
1419
+ fontWeight: 900,
1420
+ fontStyle: 'normal',
1421
+ configs: {
1422
+ /* legacy */
1423
+ 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1424
+ 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1425
+ 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1426
+ 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1427
+ 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1428
+ 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1429
+ 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1430
+ 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1431
+ /* latest */
1432
+ 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1433
+ 'heading-impact-xl': createTypographyConfig(48, 1.2),
1434
+ 'heading-impact-l': createTypographyConfig(40, 1.2),
1435
+ 'heading-impact-m': createTypographyConfig(32, 1.2),
1436
+ 'heading-impact-s': createTypographyConfig(24, 1.2),
1437
+ 'heading-impact-xs': createTypographyConfig(18, 1.2),
1438
+ 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1439
+ 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1440
+ }
1441
+ },
1442
+ bodies: {
1443
+ fontFamily: {
1444
+ web: {
1445
+ regular: 'Moderat',
1446
+ bold: 'Moderat'
1447
+ },
1448
+ native: {
1449
+ regular: 'Moderat-Regular',
1450
+ bold: 'Moderat-Bold'
1451
+ }
1452
+ },
1453
+ fontWeight: {
1454
+ regular: 400,
1455
+ bold: 700
1456
+ },
1457
+ fontStyle: {
1458
+ regular: 'normal',
1459
+ bold: 'normal'
1460
+ },
1461
+ configs: {
1462
+ /* legacy */
1463
+ 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1464
+ 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1465
+ body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1466
+ 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1467
+ 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1468
+ /* latest */
1469
+ 'body-xl': createTypographyConfig(24, 1.4),
1470
+ 'body-l': createTypographyConfig(18, 1.4),
1471
+ 'body-m': createTypographyConfig(16, 1.4),
1472
+ 'body-s': createTypographyConfig(14, 1.4),
1473
+ 'body-xs': createTypographyConfig(12, 1.4)
1474
+ }
1475
+ }
1476
+ },
1477
+ link: {
1478
+ /** @deprecated not used in kitt anymore, use Typography instead */
1479
+ disabledColor: colors.blackDisabled
1480
+ }
1481
+ };
1482
+
1454
1483
  const picker = {
1455
1484
  ios: {
1456
1485
  default: {
@@ -1965,7 +1994,7 @@ function getCurrentBackgroundColorForNativeBaseTheme({
1965
1994
  return `${baseKey}.backgroundColor`;
1966
1995
  }
1967
1996
 
1968
- function AnimatedContainer$1({
1997
+ function AnimatedContainer$2({
1969
1998
  disabled,
1970
1999
  animatedStyles,
1971
2000
  children,
@@ -2504,7 +2533,7 @@ function getVariantValuesIfExist(theme, type, variant) {
2504
2533
  return theme.kitt.button[type].default;
2505
2534
  }
2506
2535
 
2507
- const useNativeAnimation$3 = ({
2536
+ const useNativeAnimation$4 = ({
2508
2537
  type,
2509
2538
  variant,
2510
2539
  isPressedInternal
@@ -2579,7 +2608,7 @@ const Button = /*#__PURE__*/forwardRef(({
2579
2608
  onPressIn,
2580
2609
  onPressOut,
2581
2610
  animatedStyles
2582
- } = useNativeAnimation$3({
2611
+ } = useNativeAnimation$4({
2583
2612
  type,
2584
2613
  variant
2585
2614
  });
@@ -2618,7 +2647,7 @@ const Button = /*#__PURE__*/forwardRef(({
2618
2647
  isHovered,
2619
2648
  isPressed,
2620
2649
  isFocused
2621
- }) => /*#__PURE__*/jsx(AnimatedContainer$1, {
2650
+ }) => /*#__PURE__*/jsx(AnimatedContainer$2, {
2622
2651
  animatedStyles: animatedStyles,
2623
2652
  type: type,
2624
2653
  isHovered: isHovered || isHoveredInternal,
@@ -3424,7 +3453,7 @@ function AnimatedChoiceItemView({
3424
3453
  });
3425
3454
  }
3426
3455
 
3427
- const useNativeAnimation$2 = ({
3456
+ const useNativeAnimation$3 = ({
3428
3457
  selected,
3429
3458
  disabled,
3430
3459
  isPressedInternal
@@ -3495,7 +3524,7 @@ function ChoiceItem({
3495
3524
  onPressIn,
3496
3525
  onPressOut,
3497
3526
  backgroundStyles
3498
- } = useNativeAnimation$2({
3527
+ } = useNativeAnimation$3({
3499
3528
  selected,
3500
3529
  disabled,
3501
3530
  isPressedInternal
@@ -6045,7 +6074,7 @@ const Radio = /*#__PURE__*/forwardRef(({
6045
6074
  });
6046
6075
  });
6047
6076
 
6048
- function AnimatedContainer({
6077
+ function AnimatedContainer$1({
6049
6078
  children,
6050
6079
  isFirst,
6051
6080
  isLast,
@@ -6100,7 +6129,7 @@ function HoverBorder({
6100
6129
  });
6101
6130
  }
6102
6131
 
6103
- const useNativeAnimation$1 = ({
6132
+ const useNativeAnimation$2 = ({
6104
6133
  isDisabled,
6105
6134
  isSelected,
6106
6135
  isPressedInternal
@@ -6181,7 +6210,7 @@ function RadioButton({
6181
6210
  onPressIn,
6182
6211
  onPressOut,
6183
6212
  animatedStyles
6184
- } = useNativeAnimation$1({
6213
+ } = useNativeAnimation$2({
6185
6214
  isDisabled: disabled,
6186
6215
  isSelected: selected,
6187
6216
  isPressedInternal
@@ -6208,7 +6237,7 @@ function RadioButton({
6208
6237
  isHovered,
6209
6238
  isPressed,
6210
6239
  isFocused
6211
- }) => /*#__PURE__*/jsx(AnimatedContainer, {
6240
+ }) => /*#__PURE__*/jsx(AnimatedContainer$1, {
6212
6241
  animatedStyles: animatedStyles,
6213
6242
  isFocused: isFocused || isFocusedInternal,
6214
6243
  isPressed: isPressed || isPressedInternal,
@@ -6628,15 +6657,228 @@ FullscreenModal.Footer = FullscreenModalFooter;
6628
6657
  FullscreenModal.Body = FullscreenModalBody;
6629
6658
  FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
6630
6659
 
6660
+ function AnimatedCaret({
6661
+ children,
6662
+ animatedStyles
6663
+ }) {
6664
+ return /*#__PURE__*/jsx(Animated.View, {
6665
+ style: [animatedStyles],
6666
+ children: children
6667
+ });
6668
+ }
6669
+
6670
+ function AnimatedContainer({
6671
+ children,
6672
+ size,
6673
+ animatedStyles
6674
+ }) {
6675
+ const sx = useSx();
6676
+ const theme = useTheme();
6677
+ const styles = sx({
6678
+ borderRadius: theme.kitt.highlight.borderRadius,
6679
+ padding: theme.kitt.highlight.padding[size]
6680
+ });
6681
+ return /*#__PURE__*/jsx(Animated.View, {
6682
+ style: [styles, animatedStyles],
6683
+ children: children
6684
+ });
6685
+ }
6686
+
6687
+ function AnimatedContent({
6688
+ children,
6689
+ animatedStyles
6690
+ }) {
6691
+ return /*#__PURE__*/jsx(Animated.View, {
6692
+ style: [{
6693
+ overflow: 'hidden'
6694
+ }, animatedStyles],
6695
+ children: children
6696
+ });
6697
+ }
6698
+
6699
+ const withTimingConfig = {
6700
+ duration: 100,
6701
+ easing: Easing$1.ease
6702
+ };
6703
+ const useNativeAnimation$1 = ({
6704
+ variant,
6705
+ isExpanded,
6706
+ isInitialRender,
6707
+ contentHeight
6708
+ }) => {
6709
+ const theme = useTheme();
6710
+ const color = useSharedValue(0);
6711
+ const rotation = useSharedValue(0);
6712
+ const translate = useSharedValue(0);
6713
+ const containerAnimatedStyles = useAnimatedStyle(() => {
6714
+ return {
6715
+ backgroundColor: interpolateColor(color.value, [0, 1], [theme.kitt.highlight[variant].default.backgroundColor, theme.kitt.highlight[variant].hover.backgroundColor])
6716
+ };
6717
+ });
6718
+ const caretAnimatedStyles = useAnimatedStyle(() => {
6719
+ rotation.value = withTiming(isExpanded ? 180 : 0, {
6720
+ duration: 300,
6721
+ easing: Easing$1.ease
6722
+ });
6723
+ return {
6724
+ transform: [{
6725
+ rotate: `${rotation.value}deg`
6726
+ }, {
6727
+ translateY: translate.value
6728
+ }]
6729
+ };
6730
+ });
6731
+ const contentAnimatedStyles = useAnimatedStyle(() => {
6732
+ return {
6733
+ height: withTiming(isExpanded ? contentHeight : 0, {
6734
+ duration: isInitialRender ? 0 : 300,
6735
+ easing: Easing$1.ease
6736
+ })
6737
+ };
6738
+ });
6739
+ return {
6740
+ onPressIn: () => {
6741
+ color.value = withTiming(1, withTimingConfig);
6742
+ translate.value = withTiming(2, withTimingConfig);
6743
+ },
6744
+ onPressOut: () => {
6745
+ color.value = withTiming(0, withTimingConfig);
6746
+ translate.value = withTiming(0, withTimingConfig);
6747
+ },
6748
+ containerAnimatedStyles,
6749
+ caretAnimatedStyles,
6750
+ contentAnimatedStyles
6751
+ };
6752
+ };
6753
+
6631
6754
  function Highlight({
6632
- variant = 'regular',
6755
+ variant = 'primary',
6756
+ canCollapse = false,
6757
+ isInitialCollapsed = true,
6758
+ title,
6759
+ icon = null,
6760
+ size = 'medium',
6633
6761
  children
6634
6762
  }) {
6635
- return /*#__PURE__*/jsx(View, {
6636
- borderRadius: "kitt.highlight.borderRadius",
6637
- padding: "kitt.highlight.padding",
6638
- backgroundColor: `kitt.highlight.${variant}.backgroundColor`,
6639
- children: children
6763
+ const theme = useTheme();
6764
+ const [isExpanded, setIsExpanded] = useState(!isInitialCollapsed);
6765
+ const [contentHeight, setContentHeight] = useState(0);
6766
+ const [isInitialRender, setIsInitialRender] = useState(true);
6767
+ const highlightStyle = {
6768
+ medium: {
6769
+ marginBottom: 'kitt.1',
6770
+ spaceBetween: 'kitt.2',
6771
+ contentMarginY: 8
6772
+ },
6773
+ large: {
6774
+ marginBottom: 'kitt.2',
6775
+ spaceBetween: 'kitt.4',
6776
+ contentMarginY: 16
6777
+ }
6778
+ };
6779
+ const {
6780
+ containerAnimatedStyles,
6781
+ caretAnimatedStyles,
6782
+ contentAnimatedStyles,
6783
+ onPressIn,
6784
+ onPressOut
6785
+ } = useNativeAnimation$1({
6786
+ variant,
6787
+ isExpanded,
6788
+ isInitialRender,
6789
+ contentHeight
6790
+ });
6791
+ const handleLayout = event => {
6792
+ const layoutHeight = event.nativeEvent.layout.height;
6793
+ const newContentHeight = layoutHeight + highlightStyle[size].contentMarginY;
6794
+ if (layoutHeight > 0 && newContentHeight !== contentHeight) {
6795
+ setContentHeight(newContentHeight);
6796
+ }
6797
+ };
6798
+ if (!canCollapse) {
6799
+ return /*#__PURE__*/jsx(View, {
6800
+ borderRadius: "kitt.highlight.borderRadius",
6801
+ padding: theme.kitt.highlight.padding[size],
6802
+ backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
6803
+ children: /*#__PURE__*/jsxs(HStack, {
6804
+ space: highlightStyle[size].spaceBetween,
6805
+ children: [icon && /*#__PURE__*/jsx(View, {
6806
+ children: icon
6807
+ }), /*#__PURE__*/jsxs(View, {
6808
+ flexGrow: 1,
6809
+ flexShrink: 1,
6810
+ children: [title && /*#__PURE__*/jsx(View, {
6811
+ marginBottom: highlightStyle[size].marginBottom,
6812
+ children: /*#__PURE__*/jsx(Typography.Text, {
6813
+ variant: "bold",
6814
+ base: "body",
6815
+ ellipsizeMode: "clip",
6816
+ children: title
6817
+ })
6818
+ }), children]
6819
+ })]
6820
+ })
6821
+ });
6822
+ }
6823
+ return /*#__PURE__*/jsx(Pressable, {
6824
+ onPress: () => {
6825
+ setIsExpanded(!isExpanded);
6826
+ setIsInitialRender(false);
6827
+ },
6828
+ onPressIn: onPressIn,
6829
+ onPressOut: onPressOut,
6830
+ children: ({
6831
+ isHovered
6832
+ }) => {
6833
+ return /*#__PURE__*/jsxs(AnimatedContainer, {
6834
+ isHovered: isHovered,
6835
+ size: size,
6836
+ variant: variant,
6837
+ animatedStyles: containerAnimatedStyles,
6838
+ children: [title && /*#__PURE__*/jsxs(HStack, {
6839
+ space: highlightStyle[size].spaceBetween,
6840
+ alignItems: "center",
6841
+ children: [icon && /*#__PURE__*/jsx(View, {
6842
+ flexGrow: 1,
6843
+ children: icon
6844
+ }), /*#__PURE__*/jsx(View, {
6845
+ flexGrow: 1,
6846
+ flexShrink: 1,
6847
+ width: "100%",
6848
+ children: /*#__PURE__*/jsx(Typography.Text, {
6849
+ variant: "bold",
6850
+ base: "body",
6851
+ ellipsizeMode: "clip",
6852
+ children: title
6853
+ })
6854
+ }), /*#__PURE__*/jsx(View, {
6855
+ flexGrow: 2,
6856
+ flexShrink: 2,
6857
+ alignItems: "center",
6858
+ justifyContent: "center",
6859
+ children: /*#__PURE__*/jsx(AnimatedCaret, {
6860
+ isHovered: isHovered,
6861
+ isExpanded: isExpanded,
6862
+ animatedStyles: caretAnimatedStyles,
6863
+ children: /*#__PURE__*/jsx(TypographyIcon, {
6864
+ icon: /*#__PURE__*/jsx(CaretDownRegularIcon, {})
6865
+ })
6866
+ })
6867
+ })]
6868
+ }), /*#__PURE__*/jsx(AnimatedContent, {
6869
+ isExpanded: isExpanded,
6870
+ isInitialRender: isInitialRender,
6871
+ contentHeight: contentHeight,
6872
+ animatedStyles: contentAnimatedStyles,
6873
+ children: /*#__PURE__*/jsx(View, {
6874
+ marginTop: highlightStyle[size].contentMarginY,
6875
+ position: "absolute",
6876
+ onLayout: handleLayout,
6877
+ children: children
6878
+ })
6879
+ })]
6880
+ });
6881
+ }
6640
6882
  });
6641
6883
  }
6642
6884
 
@@ -7653,16 +7895,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7653
7895
  },
7654
7896
  highlight: {
7655
7897
  regular: {
7656
- backgroundColor: theme.highlight.regular.backgroundColor
7898
+ default: {
7899
+ backgroundColor: theme.highlight.regular.default.backgroundColor
7900
+ },
7901
+ hover: {
7902
+ backgroundColor: theme.highlight.regular.hover.backgroundColor
7903
+ }
7657
7904
  },
7658
7905
  primary: {
7659
- backgroundColor: theme.highlight.primary.backgroundColor
7906
+ default: {
7907
+ backgroundColor: theme.highlight.primary.default.backgroundColor
7908
+ },
7909
+ hover: {
7910
+ backgroundColor: theme.highlight.primary.hover.backgroundColor
7911
+ }
7660
7912
  },
7661
7913
  secondary: {
7662
- backgroundColor: theme.highlight.secondary.backgroundColor
7914
+ default: {
7915
+ backgroundColor: theme.highlight.secondary.default.backgroundColor
7916
+ },
7917
+ hover: {
7918
+ backgroundColor: theme.highlight.secondary.hover.backgroundColor
7919
+ }
7663
7920
  },
7664
7921
  dark: {
7665
- backgroundColor: theme.highlight.dark.backgroundColor
7922
+ default: {
7923
+ backgroundColor: theme.highlight.dark.default.backgroundColor
7924
+ },
7925
+ hover: {
7926
+ backgroundColor: theme.highlight.dark.hover.backgroundColor
7927
+ }
7928
+ },
7929
+ ghost: {
7930
+ default: {
7931
+ backgroundColor: theme.highlight.ghost.default.backgroundColor
7932
+ },
7933
+ hover: {
7934
+ backgroundColor: theme.highlight.ghost.hover.backgroundColor
7935
+ }
7666
7936
  }
7667
7937
  },
7668
7938
  verticalSteps: {
@@ -8175,7 +8445,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8175
8445
  }
8176
8446
  },
8177
8447
  highlight: {
8178
- padding: theme.highlight.padding
8448
+ medium: {
8449
+ padding: theme.highlight.padding.medium
8450
+ },
8451
+ large: {
8452
+ padding: theme.highlight.padding.large
8453
+ }
8179
8454
  },
8180
8455
  listItem: {
8181
8456
  verticalPadding: theme.listItem.verticalPadding,
@@ -8808,9 +9083,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8808
9083
  borderColor: theme.forms.input.states.default.borderColor,
8809
9084
  bg: theme.forms.input.states.default.backgroundColor,
8810
9085
  _hover: {
9086
+ bg: theme.forms.input.states.hover.backgroundColor,
8811
9087
  borderColor: theme.forms.input.states.hover.borderColor,
8812
9088
  color: theme.forms.input.states.hover.color,
8813
9089
  _focus: {
9090
+ bg: theme.forms.input.states.default.backgroundColor,
8814
9091
  borderColor: theme.forms.input.states.focus.borderColor,
8815
9092
  color: theme.forms.input.states.focus.color
8816
9093
  }
@@ -10327,7 +10604,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
10327
10604
  value: pickerValue,
10328
10605
  minuteInterval: minuteInterval,
10329
10606
  mode: "time",
10330
- display: "default",
10607
+ display: "spinner",
10331
10608
  onChange: (event, date) => handleChange(date)
10332
10609
  }) : null, Platform.OS !== 'android' ? /*#__PURE__*/jsx(ModalDateTimePicker, {
10333
10610
  visible: isPickerVisible,