@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
@@ -17,7 +17,7 @@ import { CSSTransition } from 'react-transition-group';
17
17
  import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
18
18
  export { useWindowDimensions as useWindowSize } from 'react-native';
19
19
  import { parse } from 'twemoji-parser';
20
- import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
20
+ import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, CaretDownRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
21
21
  import Downshift, { useSelect } from 'downshift';
22
22
  import { useDebouncedCallback } from 'use-debounce';
23
23
  import { Loader } from '@googlemaps/js-api-loader';
@@ -980,215 +980,64 @@ var datePicker = {
980
980
  }
981
981
  };
982
982
 
983
- var calcLineHeight = function (fontSize, lineHeightMultiplier) {
984
- return Math.round(fontSize * lineHeightMultiplier);
985
- };
986
- /** @deprecated legacy typography type config is deprecated. */
987
- var createLegacyTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
988
- var mediumAndWideFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : baseAndSmallFontSize;
989
- var lineHeightMultiplierMediumAndWide = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : lineHeightMultiplierBaseAndSmall;
990
- return {
991
- baseAndSmall: {
992
- fontSize: baseAndSmallFontSize,
993
- lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
994
- },
995
- mediumAndWide: {
996
- fontSize: mediumAndWideFontSize,
997
- lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
998
- }
999
- };
1000
- };
1001
- var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
1002
- var config = {
1003
- fontSize: fontSize,
1004
- lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
1005
- };
1006
- return {
1007
- baseAndSmall: config,
1008
- mediumAndWide: config
1009
- };
1010
- };
1011
- var typography = {
1012
- colors: {
1013
- black: colors.black,
1014
- 'black-anthracite': colors.blackAnthracite,
1015
- 'black-disabled': lateOceanColorPalette.black400,
1016
- 'black-light': lateOceanColorPalette.black555,
1017
- white: colors.white,
1018
- 'white-light': colors.white,
1019
- primary: colors.primary,
1020
- 'primary-light': colors.primaryLight,
1021
- accent: colors.accent,
1022
- success: colors.success,
1023
- danger: colors.danger,
1024
- warning: colors.warning
1025
- },
1026
- types: {
1027
- headings: {
1028
- fontFamily: {
1029
- "native": {
1030
- regular: 'Moderat-Bold',
1031
- bold: 'Moderat-Bold'
1032
- },
1033
- web: {
1034
- regular: 'Moderat',
1035
- bold: 'Moderat'
1036
- }
1037
- },
1038
- fontWeight: {
1039
- regular: 400,
1040
- bold: 700
1041
- },
1042
- fontStyle: 'normal',
1043
- configs: {
1044
- /* legacy */
1045
- header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1046
- header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1047
- header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1048
- header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1049
- header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1050
- /* latest */
1051
- 'heading-xxl': createTypographyConfig(56, 1.1),
1052
- 'heading-xl': createTypographyConfig(48, 1.1),
1053
- 'heading-l': createTypographyConfig(40, 1.1),
1054
- 'heading-m': createTypographyConfig(32, 1.2),
1055
- 'heading-s': createTypographyConfig(24, 1.2),
1056
- 'heading-xs': createTypographyConfig(18, 1.3),
1057
- 'heading-xxs': createTypographyConfig(16, 1.3)
1058
- }
1059
- },
1060
- 'headings-impact': {
1061
- fontFamily: {
1062
- "native": {
1063
- regular: 'Transducer-Black',
1064
- bold: 'Transducer-Black'
1065
- },
1066
- web: {
1067
- regular: 'TransducerBlack',
1068
- bold: 'TransducerBlack'
1069
- }
1070
- },
1071
- fontWeight: 900,
1072
- fontStyle: 'normal',
1073
- configs: {
1074
- /* legacy */
1075
- 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1076
- 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1077
- 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1078
- 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1079
- 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1080
- 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1081
- 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1082
- 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1083
- /* latest */
1084
- 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1085
- 'heading-impact-xl': createTypographyConfig(48, 1.2),
1086
- 'heading-impact-l': createTypographyConfig(40, 1.2),
1087
- 'heading-impact-m': createTypographyConfig(32, 1.2),
1088
- 'heading-impact-s': createTypographyConfig(24, 1.2),
1089
- 'heading-impact-xs': createTypographyConfig(18, 1.2),
1090
- 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1091
- 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1092
- }
1093
- },
1094
- bodies: {
1095
- fontFamily: {
1096
- web: {
1097
- regular: 'Moderat',
1098
- bold: 'Moderat'
1099
- },
1100
- "native": {
1101
- regular: 'Moderat-Regular',
1102
- bold: 'Moderat-Bold'
1103
- }
1104
- },
1105
- fontWeight: {
1106
- regular: 400,
1107
- bold: 700
1108
- },
1109
- fontStyle: {
1110
- regular: 'normal',
1111
- bold: 'normal'
1112
- },
1113
- configs: {
1114
- /* legacy */
1115
- 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1116
- 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1117
- body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1118
- 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1119
- 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1120
- /* latest */
1121
- 'body-xl': createTypographyConfig(24, 1.4),
1122
- 'body-l': createTypographyConfig(18, 1.4),
1123
- 'body-m': createTypographyConfig(16, 1.4),
1124
- 'body-s': createTypographyConfig(14, 1.4),
1125
- 'body-xs': createTypographyConfig(12, 1.4)
1126
- }
1127
- }
1128
- },
1129
- link: {
1130
- /** @deprecated not used in kitt anymore, use Typography instead */
1131
- disabledColor: colors.blackDisabled
1132
- }
1133
- };
1134
-
1135
983
  var inputStatesStyle = {
1136
984
  "default": {
1137
- backgroundColor: colors.uiBackgroundLight,
1138
- borderColor: colors.separator,
1139
- color: colors.black
985
+ backgroundColor: lateOceanColorPalette.white,
986
+ borderColor: lateOceanColorPalette['eggshell.4'],
987
+ color: lateOceanColorPalette.black
1140
988
  },
1141
989
  pending: {
1142
- backgroundColor: colors.uiBackgroundLight,
1143
- borderColor: colors.separator,
1144
- color: colors.black
990
+ backgroundColor: lateOceanColorPalette.white,
991
+ borderColor: lateOceanColorPalette['eggshell.3'],
992
+ color: lateOceanColorPalette.black
1145
993
  },
1146
994
  valid: {
1147
- backgroundColor: colors.uiBackgroundLight,
1148
- borderColor: lateOceanColorPalette.black100,
1149
- color: colors.black
995
+ backgroundColor: lateOceanColorPalette.white,
996
+ borderColor: lateOceanColorPalette['eggshell.4'],
997
+ color: lateOceanColorPalette.black
1150
998
  },
1151
999
  hover: {
1152
- borderColor: lateOceanColorPalette.black200,
1153
- color: colors.black
1000
+ backgroundColor: lateOceanColorPalette['eggshell.1'],
1001
+ borderColor: lateOceanColorPalette['eggshell.5'],
1002
+ color: lateOceanColorPalette.black
1154
1003
  },
1155
1004
  focus: {
1156
- borderColor: colors.primary,
1157
- color: colors.black
1005
+ borderColor: lateOceanColorPalette['violine.9'],
1006
+ color: lateOceanColorPalette.black
1158
1007
  },
1159
1008
  disabled: {
1160
- backgroundColor: colors.disabled,
1161
- borderColor: colors.separator,
1162
- color: colors.blackDisabled
1009
+ backgroundColor: lateOceanColorPalette['eggshell.2'],
1010
+ borderColor: lateOceanColorPalette['eggshell.4'],
1011
+ color: lateOceanColorPalette['eggshell.6']
1163
1012
  },
1164
1013
  invalid: {
1165
- borderColor: colors.separator,
1166
- color: colors.black
1014
+ borderColor: lateOceanColorPalette['eggshell.3'],
1015
+ color: lateOceanColorPalette.black
1167
1016
  }
1168
1017
  };
1169
1018
  var webAnimationDuration = '200ms';
1170
1019
  var webAnimationTimingFunction = 'ease-in-out';
1171
- var webAnimationProperty = 'border-color';
1020
+ var webAnimationProperties = ['border-color', 'background-color'];
1172
1021
  var input = {
1173
1022
  minHeight: 40,
1174
1023
  color: {
1175
- selection: colors.primary,
1176
- placeholder: typography.colors['black-light']
1024
+ selection: lateOceanColorPalette['violine.9'],
1025
+ placeholder: lateOceanColorPalette['eggshell.9']
1177
1026
  },
1178
- borderWidth: 2,
1179
- borderRadius: 10,
1027
+ borderWidth: 1,
1028
+ borderRadius: 8,
1180
1029
  icon: {
1181
1030
  size: 20
1182
1031
  },
1183
1032
  rightContainer: {
1184
- padding: 10
1033
+ padding: 16
1185
1034
  },
1186
1035
  padding: {
1187
1036
  horizontal: 16,
1188
- vertical: 5
1037
+ vertical: 0
1189
1038
  },
1190
1039
  transition: {
1191
- property: webAnimationProperty,
1040
+ properties: webAnimationProperties,
1192
1041
  duration: webAnimationDuration,
1193
1042
  timingFunction: webAnimationTimingFunction
1194
1043
  },
@@ -1198,11 +1047,8 @@ var input = {
1198
1047
  var inputField = {
1199
1048
  containerPaddingTop: 5,
1200
1049
  containerPaddingBottom: 10,
1201
- feedbackPaddingTop: {
1202
- base: 5,
1203
- small: 10
1204
- },
1205
- labelContainerPaddingBottom: 5,
1050
+ feedbackPaddingTop: 4,
1051
+ labelContainerPaddingBottom: 4,
1206
1052
  labelFeedbackMarginLeft: 6
1207
1053
  };
1208
1054
 
@@ -1334,21 +1180,52 @@ var fullscreenModal = {
1334
1180
  };
1335
1181
 
1336
1182
  var highlight = {
1337
- borderRadius: spacing * 5,
1183
+ borderRadius: spacing * 2,
1338
1184
  /** @deprecated use primary instead */
1339
1185
  regular: {
1340
- backgroundColor: colors.accentLight
1186
+ "default": {
1187
+ backgroundColor: colors.accentLight
1188
+ },
1189
+ hover: {
1190
+ backgroundColor: colors.accentLight
1191
+ }
1341
1192
  },
1342
1193
  primary: {
1343
- backgroundColor: colors.accentLight
1194
+ "default": {
1195
+ backgroundColor: lateOceanColorPalette['lavender.3']
1196
+ },
1197
+ hover: {
1198
+ backgroundColor: lateOceanColorPalette['lavender.5']
1199
+ }
1344
1200
  },
1345
1201
  secondary: {
1346
- backgroundColor: lateOceanColorPalette.moonPurple
1202
+ "default": {
1203
+ backgroundColor: lateOceanColorPalette['violine.2']
1204
+ },
1205
+ hover: {
1206
+ backgroundColor: lateOceanColorPalette['violine.4']
1207
+ }
1208
+ },
1209
+ ghost: {
1210
+ "default": {
1211
+ backgroundColor: lateOceanColorPalette.white
1212
+ },
1213
+ hover: {
1214
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1215
+ }
1347
1216
  },
1348
1217
  dark: {
1349
- backgroundColor: lateOceanColorPalette.black100
1218
+ "default": {
1219
+ backgroundColor: lateOceanColorPalette['eggshell.3']
1220
+ },
1221
+ hover: {
1222
+ backgroundColor: lateOceanColorPalette['eggshell.2']
1223
+ }
1350
1224
  },
1351
- padding: spacing * 5
1225
+ padding: {
1226
+ medium: spacing * 4,
1227
+ large: spacing * 6
1228
+ }
1352
1229
  };
1353
1230
 
1354
1231
  var getIconSizeFromFontSize = function (fontSize) {
@@ -1471,6 +1348,158 @@ var pageLoader = {
1471
1348
  }
1472
1349
  };
1473
1350
 
1351
+ var calcLineHeight = function (fontSize, lineHeightMultiplier) {
1352
+ return Math.round(fontSize * lineHeightMultiplier);
1353
+ };
1354
+ /** @deprecated legacy typography type config is deprecated. */
1355
+ var createLegacyTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
1356
+ var mediumAndWideFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : baseAndSmallFontSize;
1357
+ var lineHeightMultiplierMediumAndWide = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : lineHeightMultiplierBaseAndSmall;
1358
+ return {
1359
+ baseAndSmall: {
1360
+ fontSize: baseAndSmallFontSize,
1361
+ lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
1362
+ },
1363
+ mediumAndWide: {
1364
+ fontSize: mediumAndWideFontSize,
1365
+ lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
1366
+ }
1367
+ };
1368
+ };
1369
+ var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
1370
+ var config = {
1371
+ fontSize: fontSize,
1372
+ lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
1373
+ };
1374
+ return {
1375
+ baseAndSmall: config,
1376
+ mediumAndWide: config
1377
+ };
1378
+ };
1379
+ var typography = {
1380
+ colors: {
1381
+ black: colors.black,
1382
+ 'black-anthracite': colors.blackAnthracite,
1383
+ 'black-disabled': lateOceanColorPalette.black400,
1384
+ 'black-light': lateOceanColorPalette.black555,
1385
+ white: colors.white,
1386
+ 'white-light': colors.white,
1387
+ primary: colors.primary,
1388
+ 'primary-light': colors.primaryLight,
1389
+ accent: colors.accent,
1390
+ success: colors.success,
1391
+ danger: colors.danger,
1392
+ warning: colors.warning
1393
+ },
1394
+ types: {
1395
+ headings: {
1396
+ fontFamily: {
1397
+ "native": {
1398
+ regular: 'Moderat-Bold',
1399
+ bold: 'Moderat-Bold'
1400
+ },
1401
+ web: {
1402
+ regular: 'Moderat',
1403
+ bold: 'Moderat'
1404
+ }
1405
+ },
1406
+ fontWeight: {
1407
+ regular: 400,
1408
+ bold: 700
1409
+ },
1410
+ fontStyle: 'normal',
1411
+ configs: {
1412
+ /* legacy */
1413
+ header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
1414
+ header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
1415
+ header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
1416
+ header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
1417
+ header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
1418
+ /* latest */
1419
+ 'heading-xxl': createTypographyConfig(56, 1.1),
1420
+ 'heading-xl': createTypographyConfig(48, 1.1),
1421
+ 'heading-l': createTypographyConfig(40, 1.1),
1422
+ 'heading-m': createTypographyConfig(32, 1.2),
1423
+ 'heading-s': createTypographyConfig(24, 1.2),
1424
+ 'heading-xs': createTypographyConfig(18, 1.3),
1425
+ 'heading-xxs': createTypographyConfig(16, 1.3)
1426
+ }
1427
+ },
1428
+ 'headings-impact': {
1429
+ fontFamily: {
1430
+ "native": {
1431
+ regular: 'Transducer-Black',
1432
+ bold: 'Transducer-Black'
1433
+ },
1434
+ web: {
1435
+ regular: 'TransducerBlack',
1436
+ bold: 'TransducerBlack'
1437
+ }
1438
+ },
1439
+ fontWeight: 900,
1440
+ fontStyle: 'normal',
1441
+ configs: {
1442
+ /* legacy */
1443
+ 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
1444
+ 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
1445
+ 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
1446
+ 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
1447
+ 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
1448
+ 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
1449
+ 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
1450
+ 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
1451
+ /* latest */
1452
+ 'heading-impact-xxl': createTypographyConfig(56, 1.2),
1453
+ 'heading-impact-xl': createTypographyConfig(48, 1.2),
1454
+ 'heading-impact-l': createTypographyConfig(40, 1.2),
1455
+ 'heading-impact-m': createTypographyConfig(32, 1.2),
1456
+ 'heading-impact-s': createTypographyConfig(24, 1.2),
1457
+ 'heading-impact-xs': createTypographyConfig(18, 1.2),
1458
+ 'heading-impact-xxs': createTypographyConfig(16, 1.2),
1459
+ 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
1460
+ }
1461
+ },
1462
+ bodies: {
1463
+ fontFamily: {
1464
+ web: {
1465
+ regular: 'Moderat',
1466
+ bold: 'Moderat'
1467
+ },
1468
+ "native": {
1469
+ regular: 'Moderat-Regular',
1470
+ bold: 'Moderat-Bold'
1471
+ }
1472
+ },
1473
+ fontWeight: {
1474
+ regular: 400,
1475
+ bold: 700
1476
+ },
1477
+ fontStyle: {
1478
+ regular: 'normal',
1479
+ bold: 'normal'
1480
+ },
1481
+ configs: {
1482
+ /* legacy */
1483
+ 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
1484
+ 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
1485
+ body: createLegacyTypographyTypeConfig(1.4, 16, 16),
1486
+ 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
1487
+ 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
1488
+ /* latest */
1489
+ 'body-xl': createTypographyConfig(24, 1.4),
1490
+ 'body-l': createTypographyConfig(18, 1.4),
1491
+ 'body-m': createTypographyConfig(16, 1.4),
1492
+ 'body-s': createTypographyConfig(14, 1.4),
1493
+ 'body-xs': createTypographyConfig(12, 1.4)
1494
+ }
1495
+ }
1496
+ },
1497
+ link: {
1498
+ /** @deprecated not used in kitt anymore, use Typography instead */
1499
+ disabledColor: colors.blackDisabled
1500
+ }
1501
+ };
1502
+
1474
1503
  var picker = {
1475
1504
  ios: {
1476
1505
  "default": _objectSpread(_objectSpread({
@@ -2008,7 +2037,7 @@ function getCurrentScale$1(_ref) {
2008
2037
  return 1;
2009
2038
  }
2010
2039
 
2011
- function AnimatedContainer$1(_ref) {
2040
+ function AnimatedContainer$2(_ref) {
2012
2041
  var children = _ref.children,
2013
2042
  type = _ref.type,
2014
2043
  variant = _ref.variant,
@@ -2552,7 +2581,7 @@ function FocusBorder(_ref) {
2552
2581
  });
2553
2582
  }
2554
2583
 
2555
- function useNativeAnimation$3() {
2584
+ function useNativeAnimation$4() {
2556
2585
  return {
2557
2586
  onPressIn: undefined,
2558
2587
  onPressOut: undefined,
@@ -2597,7 +2626,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
2597
2626
  onHoverOut = _ref.onHoverOut,
2598
2627
  onFocus = _ref.onFocus,
2599
2628
  onBlur = _ref.onBlur;
2600
- var _useNativeAnimation = useNativeAnimation$3(),
2629
+ var _useNativeAnimation = useNativeAnimation$4(),
2601
2630
  onPressIn = _useNativeAnimation.onPressIn,
2602
2631
  onPressOut = _useNativeAnimation.onPressOut,
2603
2632
  animatedStyles = _useNativeAnimation.animatedStyles;
@@ -2636,7 +2665,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
2636
2665
  var isHovered = _ref2.isHovered,
2637
2666
  isPressed = _ref2.isPressed,
2638
2667
  isFocused = _ref2.isFocused;
2639
- return /*#__PURE__*/jsx(AnimatedContainer$1, {
2668
+ return /*#__PURE__*/jsx(AnimatedContainer$2, {
2640
2669
  animatedStyles: animatedStyles,
2641
2670
  type: type,
2642
2671
  isHovered: isHovered || isHoveredInternal,
@@ -3334,7 +3363,7 @@ function AnimatedChoiceItemView(_ref) {
3334
3363
  });
3335
3364
  }
3336
3365
 
3337
- var useNativeAnimation$2 = function () {
3366
+ var useNativeAnimation$3 = function () {
3338
3367
  return {
3339
3368
  onPressIn: function onPressIn() {},
3340
3369
  onPressOut: function onPressOut() {},
@@ -3368,7 +3397,7 @@ function ChoiceItem(_ref) {
3368
3397
  onBlur = _ref.onBlur,
3369
3398
  onFocus = _ref.onFocus,
3370
3399
  size = _ref.size;
3371
- var _useNativeAnimation = useNativeAnimation$2(),
3400
+ var _useNativeAnimation = useNativeAnimation$3(),
3372
3401
  onPressIn = _useNativeAnimation.onPressIn,
3373
3402
  onPressOut = _useNativeAnimation.onPressOut,
3374
3403
  backgroundStyles = _useNativeAnimation.backgroundStyles;
@@ -5651,7 +5680,7 @@ function getCurrentBorderColor(_ref) {
5651
5680
  return 'default';
5652
5681
  }
5653
5682
 
5654
- function AnimatedContainer(_ref) {
5683
+ function AnimatedContainer$1(_ref) {
5655
5684
  var children = _ref.children,
5656
5685
  isFocused = _ref.isFocused,
5657
5686
  isPressed = _ref.isPressed,
@@ -5723,7 +5752,7 @@ function HoverBorder(_ref) {
5723
5752
  });
5724
5753
  }
5725
5754
 
5726
- function useNativeAnimation$1() {
5755
+ function useNativeAnimation$2() {
5727
5756
  return {
5728
5757
  onPressIn: undefined,
5729
5758
  onPressOut: undefined,
@@ -5759,7 +5788,7 @@ function RadioButton(_ref) {
5759
5788
  onChange = _ref.onChange,
5760
5789
  onFocus = _ref.onFocus,
5761
5790
  onBlur = _ref.onBlur;
5762
- var _useNativeAnimation = useNativeAnimation$1(),
5791
+ var _useNativeAnimation = useNativeAnimation$2(),
5763
5792
  onPressIn = _useNativeAnimation.onPressIn,
5764
5793
  onPressOut = _useNativeAnimation.onPressOut,
5765
5794
  animatedStyles = _useNativeAnimation.animatedStyles;
@@ -5785,7 +5814,7 @@ function RadioButton(_ref) {
5785
5814
  var isHovered = _ref2.isHovered,
5786
5815
  isPressed = _ref2.isPressed,
5787
5816
  isFocused = _ref2.isFocused;
5788
- return /*#__PURE__*/jsx(AnimatedContainer, {
5817
+ return /*#__PURE__*/jsx(AnimatedContainer$1, {
5789
5818
  animatedStyles: animatedStyles,
5790
5819
  isFocused: isFocused || isFocusedInternal,
5791
5820
  isPressed: isPressed || isPressedInternal,
@@ -6130,18 +6159,210 @@ FullscreenModal.Footer = FullscreenModalFooter;
6130
6159
  FullscreenModal.Body = FullscreenModalBody;
6131
6160
  FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
6132
6161
 
6133
- function Highlight(_ref) {
6134
- var _ref$variant = _ref.variant,
6135
- variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
6136
- children = _ref.children;
6162
+ function AnimatedCaret(_ref) {
6163
+ var children = _ref.children,
6164
+ isHovered = _ref.isHovered,
6165
+ isExpanded = _ref.isExpanded;
6137
6166
  return /*#__PURE__*/jsx(View, {
6167
+ _web: {
6168
+ style: {
6169
+ transform: "rotate(".concat(isExpanded ? '180deg' : '0deg', ") translateY(").concat(isHovered ? '2px' : '0', ")"),
6170
+ transitionDuration: '300ms',
6171
+ transitionProperty: 'transform',
6172
+ transitionTimingFunction: 'ease'
6173
+ }
6174
+ },
6175
+ children: children
6176
+ });
6177
+ }
6178
+
6179
+ function AnimatedContainer(_ref) {
6180
+ var children = _ref.children,
6181
+ size = _ref.size,
6182
+ isHovered = _ref.isHovered,
6183
+ variant = _ref.variant;
6184
+ var theme = useTheme();
6185
+ return /*#__PURE__*/jsx(View, {
6186
+ _web: {
6187
+ style: {
6188
+ transitionDuration: '300ms',
6189
+ transitionProperty: 'background-color',
6190
+ transitionTimingFunction: 'ease'
6191
+ }
6192
+ },
6138
6193
  borderRadius: "kitt.highlight.borderRadius",
6139
- padding: "kitt.highlight.padding",
6140
- backgroundColor: "kitt.highlight.".concat(variant, ".backgroundColor"),
6194
+ padding: theme.kitt.highlight.padding[size],
6195
+ backgroundColor: isHovered ? theme.kitt.highlight[variant].hover.backgroundColor : theme.kitt.highlight[variant]["default"].backgroundColor,
6196
+ children: children
6197
+ });
6198
+ }
6199
+
6200
+ function AnimatedContent(_ref) {
6201
+ var children = _ref.children,
6202
+ isExpanded = _ref.isExpanded,
6203
+ isInitialRender = _ref.isInitialRender,
6204
+ contentHeight = _ref.contentHeight;
6205
+ return /*#__PURE__*/jsx(View, {
6206
+ _web: {
6207
+ style: {
6208
+ height: isExpanded ? "".concat(contentHeight, "px") : '0',
6209
+ transitionDuration: isInitialRender ? '0ms' : '300ms',
6210
+ transitionProperty: 'height',
6211
+ transitionTimingFunction: 'ease'
6212
+ }
6213
+ },
6214
+ overflow: "hidden",
6141
6215
  children: children
6142
6216
  });
6143
6217
  }
6144
6218
 
6219
+ function useNativeAnimation$1() {
6220
+ return {
6221
+ onPressIn: undefined,
6222
+ onPressOut: undefined,
6223
+ containerAnimatedStyles: {},
6224
+ caretAnimatedStyles: {},
6225
+ contentAnimatedStyles: {}
6226
+ };
6227
+ }
6228
+
6229
+ function Highlight(_ref) {
6230
+ var _ref$variant = _ref.variant,
6231
+ variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
6232
+ _ref$canCollapse = _ref.canCollapse,
6233
+ canCollapse = _ref$canCollapse === void 0 ? false : _ref$canCollapse,
6234
+ _ref$isInitialCollaps = _ref.isInitialCollapsed,
6235
+ isInitialCollapsed = _ref$isInitialCollaps === void 0 ? true : _ref$isInitialCollaps,
6236
+ title = _ref.title,
6237
+ _ref$icon = _ref.icon,
6238
+ icon = _ref$icon === void 0 ? null : _ref$icon,
6239
+ _ref$size = _ref.size,
6240
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
6241
+ _children = _ref.children;
6242
+ var theme = useTheme();
6243
+ var _useState = useState(!isInitialCollapsed),
6244
+ _useState2 = _slicedToArray(_useState, 2),
6245
+ isExpanded = _useState2[0],
6246
+ setIsExpanded = _useState2[1];
6247
+ var _useState3 = useState(0),
6248
+ _useState4 = _slicedToArray(_useState3, 2),
6249
+ contentHeight = _useState4[0],
6250
+ setContentHeight = _useState4[1];
6251
+ var _useState5 = useState(true),
6252
+ _useState6 = _slicedToArray(_useState5, 2),
6253
+ isInitialRender = _useState6[0],
6254
+ setIsInitialRender = _useState6[1];
6255
+ var highlightStyle = {
6256
+ medium: {
6257
+ marginBottom: 'kitt.1',
6258
+ spaceBetween: 'kitt.2',
6259
+ contentMarginY: 8
6260
+ },
6261
+ large: {
6262
+ marginBottom: 'kitt.2',
6263
+ spaceBetween: 'kitt.4',
6264
+ contentMarginY: 16
6265
+ }
6266
+ };
6267
+ var _useNativeAnimation = useNativeAnimation$1(),
6268
+ containerAnimatedStyles = _useNativeAnimation.containerAnimatedStyles,
6269
+ caretAnimatedStyles = _useNativeAnimation.caretAnimatedStyles,
6270
+ contentAnimatedStyles = _useNativeAnimation.contentAnimatedStyles,
6271
+ onPressIn = _useNativeAnimation.onPressIn,
6272
+ onPressOut = _useNativeAnimation.onPressOut;
6273
+ var handleLayout = function (event) {
6274
+ var layoutHeight = event.nativeEvent.layout.height;
6275
+ var newContentHeight = layoutHeight + highlightStyle[size].contentMarginY;
6276
+ if (layoutHeight > 0 && newContentHeight !== contentHeight) {
6277
+ setContentHeight(newContentHeight);
6278
+ }
6279
+ };
6280
+ if (!canCollapse) {
6281
+ return /*#__PURE__*/jsx(View, {
6282
+ borderRadius: "kitt.highlight.borderRadius",
6283
+ padding: theme.kitt.highlight.padding[size],
6284
+ backgroundColor: "kitt.highlight.".concat(variant, ".default.backgroundColor"),
6285
+ children: /*#__PURE__*/jsxs(HStack, {
6286
+ space: highlightStyle[size].spaceBetween,
6287
+ children: [icon && /*#__PURE__*/jsx(View, {
6288
+ children: icon
6289
+ }), /*#__PURE__*/jsxs(View, {
6290
+ flexGrow: 1,
6291
+ flexShrink: 1,
6292
+ children: [title && /*#__PURE__*/jsx(View, {
6293
+ marginBottom: highlightStyle[size].marginBottom,
6294
+ children: /*#__PURE__*/jsx(Typography.Text, {
6295
+ variant: "bold",
6296
+ base: "body",
6297
+ ellipsizeMode: "clip",
6298
+ children: title
6299
+ })
6300
+ }), _children]
6301
+ })]
6302
+ })
6303
+ });
6304
+ }
6305
+ return /*#__PURE__*/jsx(Pressable, {
6306
+ onPress: function handlePress() {
6307
+ setIsExpanded(!isExpanded);
6308
+ setIsInitialRender(false);
6309
+ },
6310
+ onPressIn: onPressIn,
6311
+ onPressOut: onPressOut,
6312
+ children: function children(_ref2) {
6313
+ var isHovered = _ref2.isHovered;
6314
+ return /*#__PURE__*/jsxs(AnimatedContainer, {
6315
+ isHovered: isHovered,
6316
+ size: size,
6317
+ variant: variant,
6318
+ animatedStyles: containerAnimatedStyles,
6319
+ children: [title && /*#__PURE__*/jsxs(HStack, {
6320
+ space: highlightStyle[size].spaceBetween,
6321
+ alignItems: "center",
6322
+ children: [icon && /*#__PURE__*/jsx(View, {
6323
+ flexGrow: 1,
6324
+ children: icon
6325
+ }), /*#__PURE__*/jsx(View, {
6326
+ flexGrow: 1,
6327
+ flexShrink: 1,
6328
+ width: "100%",
6329
+ children: /*#__PURE__*/jsx(Typography.Text, {
6330
+ variant: "bold",
6331
+ base: "body",
6332
+ ellipsizeMode: "clip",
6333
+ children: title
6334
+ })
6335
+ }), /*#__PURE__*/jsx(View, {
6336
+ flexGrow: 2,
6337
+ flexShrink: 2,
6338
+ alignItems: "center",
6339
+ justifyContent: "center",
6340
+ children: /*#__PURE__*/jsx(AnimatedCaret, {
6341
+ isHovered: isHovered,
6342
+ isExpanded: isExpanded,
6343
+ animatedStyles: caretAnimatedStyles,
6344
+ children: /*#__PURE__*/jsx(TypographyIcon, {
6345
+ icon: /*#__PURE__*/jsx(CaretDownRegularIcon, {})
6346
+ })
6347
+ })
6348
+ })]
6349
+ }), /*#__PURE__*/jsx(AnimatedContent, {
6350
+ isExpanded: isExpanded,
6351
+ isInitialRender: isInitialRender,
6352
+ contentHeight: contentHeight,
6353
+ animatedStyles: contentAnimatedStyles,
6354
+ children: /*#__PURE__*/jsx(View, {
6355
+ marginTop: highlightStyle[size].contentMarginY,
6356
+ position: "absolute",
6357
+ onLayout: handleLayout,
6358
+ children: _children
6359
+ })
6360
+ })]
6361
+ });
6362
+ }
6363
+ });
6364
+ }
6365
+
6145
6366
  var _excluded$f = ["color", "isDisabled"];
6146
6367
  function getBackgroundColor$1(color, isDisabled) {
6147
6368
  if (isDisabled) {
@@ -7166,16 +7387,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7166
7387
  },
7167
7388
  highlight: {
7168
7389
  regular: {
7169
- backgroundColor: theme.highlight.regular.backgroundColor
7390
+ "default": {
7391
+ backgroundColor: theme.highlight.regular["default"].backgroundColor
7392
+ },
7393
+ hover: {
7394
+ backgroundColor: theme.highlight.regular.hover.backgroundColor
7395
+ }
7170
7396
  },
7171
7397
  primary: {
7172
- backgroundColor: theme.highlight.primary.backgroundColor
7398
+ "default": {
7399
+ backgroundColor: theme.highlight.primary["default"].backgroundColor
7400
+ },
7401
+ hover: {
7402
+ backgroundColor: theme.highlight.primary.hover.backgroundColor
7403
+ }
7173
7404
  },
7174
7405
  secondary: {
7175
- backgroundColor: theme.highlight.secondary.backgroundColor
7406
+ "default": {
7407
+ backgroundColor: theme.highlight.secondary["default"].backgroundColor
7408
+ },
7409
+ hover: {
7410
+ backgroundColor: theme.highlight.secondary.hover.backgroundColor
7411
+ }
7176
7412
  },
7177
7413
  dark: {
7178
- backgroundColor: theme.highlight.dark.backgroundColor
7414
+ "default": {
7415
+ backgroundColor: theme.highlight.dark["default"].backgroundColor
7416
+ },
7417
+ hover: {
7418
+ backgroundColor: theme.highlight.dark.hover.backgroundColor
7419
+ }
7420
+ },
7421
+ ghost: {
7422
+ "default": {
7423
+ backgroundColor: theme.highlight.ghost["default"].backgroundColor
7424
+ },
7425
+ hover: {
7426
+ backgroundColor: theme.highlight.ghost.hover.backgroundColor
7427
+ }
7179
7428
  }
7180
7429
  },
7181
7430
  verticalSteps: {
@@ -7681,7 +7930,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7681
7930
  }
7682
7931
  },
7683
7932
  highlight: {
7684
- padding: theme.highlight.padding
7933
+ medium: {
7934
+ padding: theme.highlight.padding.medium
7935
+ },
7936
+ large: {
7937
+ padding: theme.highlight.padding.large
7938
+ }
7685
7939
  },
7686
7940
  listItem: {
7687
7941
  verticalPadding: theme.listItem.verticalPadding,
@@ -8312,9 +8566,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8312
8566
  borderColor: theme.forms.input.states["default"].borderColor,
8313
8567
  bg: theme.forms.input.states["default"].backgroundColor,
8314
8568
  _hover: {
8569
+ bg: theme.forms.input.states.hover.backgroundColor,
8315
8570
  borderColor: theme.forms.input.states.hover.borderColor,
8316
8571
  color: theme.forms.input.states.hover.color,
8317
8572
  _focus: {
8573
+ bg: theme.forms.input.states["default"].backgroundColor,
8318
8574
  borderColor: theme.forms.input.states.focus.borderColor,
8319
8575
  color: theme.forms.input.states.focus.color
8320
8576
  }