@ornikar/kitt-universal 11.2.0 → 12.0.0

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 (104) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/babel-plugin-csf-to-jest.js +15 -1
  3. package/dist/definitions/BottomSheet/BottomSheet.d.ts +1 -1
  4. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +15 -0
  5. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -0
  6. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +4 -0
  7. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -0
  8. package/dist/definitions/Choices/ChoiceItem.d.ts +2 -3
  9. package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
  10. package/dist/definitions/Choices/ChoiceItemContainer.d.ts +5 -5
  11. package/dist/definitions/Choices/ChoiceItemContainer.d.ts.map +1 -1
  12. package/dist/definitions/Choices/utils/getBackgroundColor.d.ts +9 -0
  13. package/dist/definitions/Choices/utils/getBackgroundColor.d.ts.map +1 -0
  14. package/dist/definitions/Choices/utils/getBorderRadius.d.ts +3 -0
  15. package/dist/definitions/Choices/utils/getBorderRadius.d.ts.map +1 -0
  16. package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts +10 -0
  17. package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts.map +1 -0
  18. package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
  19. package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
  20. package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
  21. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  22. package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -1
  23. package/dist/definitions/Picker/Picker.d.ts.map +1 -1
  24. package/dist/definitions/Picker/PickerItem.d.ts.map +1 -1
  25. package/dist/definitions/Skeleton/SkeletonContent.d.ts.map +1 -1
  26. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  27. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +7 -3
  28. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
  29. package/dist/definitions/TimePicker/TimePicker.d.ts +19 -8
  30. package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
  31. package/dist/definitions/TimePicker/TimePicker.web.d.ts +2 -1
  32. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
  33. package/dist/definitions/TimePicker/TimePickerPressable.d.ts +20 -0
  34. package/dist/definitions/TimePicker/TimePickerPressable.d.ts.map +1 -0
  35. package/dist/definitions/TimePicker/utils/formatDateToTimeString.d.ts +2 -0
  36. package/dist/definitions/TimePicker/utils/formatDateToTimeString.d.ts.map +1 -0
  37. package/dist/definitions/TimePicker/utils/getCurrentInternalForcedState.d.ts +10 -0
  38. package/dist/definitions/TimePicker/utils/getCurrentInternalForcedState.d.ts.map +1 -0
  39. package/dist/definitions/VerticalSteps/Step.d.ts +16 -0
  40. package/dist/definitions/VerticalSteps/Step.d.ts.map +1 -0
  41. package/dist/definitions/VerticalSteps/StepIcon.d.ts +13 -0
  42. package/dist/definitions/VerticalSteps/StepIcon.d.ts.map +1 -0
  43. package/dist/definitions/VerticalSteps/VerticalSteps.d.ts +12 -0
  44. package/dist/definitions/VerticalSteps/VerticalSteps.d.ts.map +1 -0
  45. package/dist/definitions/VerticalSteps/utils/getStepState.d.ts +3 -0
  46. package/dist/definitions/VerticalSteps/utils/getStepState.d.ts.map +1 -0
  47. package/dist/definitions/forms/InputTag/InputTag.d.ts.map +1 -1
  48. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -4
  49. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  50. package/dist/definitions/forms/RadioButtonGroup/AnimatedContainer/AnimatedContainer.d.ts +1 -1
  51. package/dist/definitions/forms/RadioButtonGroup/AnimatedContainer/AnimatedContainer.d.ts.map +1 -1
  52. package/dist/definitions/index.d.ts +1 -1
  53. package/dist/definitions/index.d.ts.map +1 -1
  54. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +190 -0
  55. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  56. package/dist/definitions/story-components/Flex.d.ts +6 -4
  57. package/dist/definitions/story-components/Flex.d.ts.map +1 -1
  58. package/dist/definitions/themes/default.d.ts +2 -0
  59. package/dist/definitions/themes/default.d.ts.map +1 -1
  60. package/dist/definitions/themes/late-ocean/choices.d.ts +2 -0
  61. package/dist/definitions/themes/late-ocean/choices.d.ts.map +1 -1
  62. package/dist/definitions/themes/late-ocean/forms.d.ts +1 -0
  63. package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
  64. package/dist/definitions/themes/late-ocean/listItem.d.ts +3 -0
  65. package/dist/definitions/themes/late-ocean/listItem.d.ts.map +1 -1
  66. package/dist/definitions/themes/late-ocean/picker.d.ts +3 -0
  67. package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
  68. package/dist/definitions/themes/late-ocean/tag.d.ts +3 -0
  69. package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
  70. package/dist/definitions/themes/late-ocean/timePicker.d.ts +5 -0
  71. package/dist/definitions/themes/late-ocean/timePicker.d.ts.map +1 -0
  72. package/dist/definitions/themes/late-ocean/verticalSteps.d.ts +14 -0
  73. package/dist/definitions/themes/late-ocean/verticalSteps.d.ts.map +1 -0
  74. package/dist/index-browser-all.es.android.js +923 -656
  75. package/dist/index-browser-all.es.android.js.map +1 -1
  76. package/dist/index-browser-all.es.ios.js +923 -656
  77. package/dist/index-browser-all.es.ios.js.map +1 -1
  78. package/dist/index-browser-all.es.js +922 -655
  79. package/dist/index-browser-all.es.js.map +1 -1
  80. package/dist/index-browser-all.es.web.js +726 -383
  81. package/dist/index-browser-all.es.web.js.map +1 -1
  82. package/dist/index-node-14.17.cjs.js +764 -486
  83. package/dist/index-node-14.17.cjs.js.map +1 -1
  84. package/dist/index-node-14.17.cjs.web.js +599 -245
  85. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  86. package/dist/linaria-themes-browser-all.es.android.js +35 -2
  87. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  88. package/dist/linaria-themes-browser-all.es.ios.js +35 -2
  89. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  90. package/dist/linaria-themes-browser-all.es.js +35 -2
  91. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  92. package/dist/linaria-themes-browser-all.es.web.js +35 -2
  93. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  94. package/dist/linaria-themes-node-14.17.cjs.js +35 -2
  95. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  96. package/dist/linaria-themes-node-14.17.cjs.web.js +35 -2
  97. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  98. package/dist/tsbuildinfo +1 -1
  99. package/package.json +5 -5
  100. package/typings/react-native-web.d.ts +2 -0
  101. package/dist/definitions/TimePicker/useTimePicker.d.ts +0 -14
  102. package/dist/definitions/TimePicker/useTimePicker.d.ts.map +0 -1
  103. package/dist/definitions/forms/styledTextInputMixin.d.ts +0 -8
  104. package/dist/definitions/forms/styledTextInputMixin.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import React, { useContext, createContext, forwardRef, cloneElement, useRef, useEffect, useState, useMemo, Children, useReducer, Fragment as Fragment$1, useCallback } from 'react';
1
+ import React, { useContext, createContext, forwardRef, cloneElement, useRef, useEffect, useState, useMemo, Children, useReducer, Fragment as Fragment$1, useCallback, createElement } from 'react';
2
2
  import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useSx, Text, Input, NativeBaseProvider, extendTheme, useBreakpointValue, useMediaQuery } from 'native-base';
3
3
  export { useBreakpointValue, useClipboard, useMediaQuery, useSx, useToken } from 'native-base';
4
4
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
@@ -8,7 +8,7 @@ import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructurin
8
8
  import _extends from '@babel/runtime/helpers/extends';
9
9
  import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate } from 'react-native-reanimated';
10
10
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
11
- import { Platform, Animated as Animated$1, Easing, useWindowDimensions, Pressable as Pressable$2, StyleSheet, Modal as Modal$1, View as View$2, ScrollView as ScrollView$2, Linking, Text as Text$1, PixelRatio } from 'react-native';
11
+ import { Platform, Animated as Animated$1, Easing, useWindowDimensions, StyleSheet, Modal as Modal$1, ScrollView as ScrollView$2, View as View$2, Linking, Text as Text$1, Pressable as Pressable$2, PixelRatio } from 'react-native';
12
12
  export { useWindowDimensions as useWindowSize } from 'react-native';
13
13
  import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
14
14
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
@@ -16,11 +16,11 @@ import { ArcIcon, UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, InfoIcon,
16
16
  export * from '@ornikar/kitt-icons';
17
17
  import { BottomSheetScrollView, BottomSheetView, useBottomSheetDynamicSnapPoints, BottomSheetModal, BottomSheetHandle, BottomSheetBackdrop } from '@gorhom/bottom-sheet';
18
18
  import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
19
- import styled, { css, ThemeProvider } from 'styled-components/native';
20
19
  import { parse } from 'twemoji-parser';
21
20
  import * as WebBrowser from 'expo-web-browser';
22
21
  import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
23
22
  import { FormattedMessage } from 'react-intl';
23
+ import styled, { ThemeProvider } from 'styled-components/native';
24
24
  import { parseNumber, getCountryCallingCode, isValidNumber } from 'libphonenumber-js';
25
25
  import Svg, { Circle as Circle$1 } from 'react-native-svg';
26
26
  import { Picker as Picker$1 } from '@react-native-picker/picker';
@@ -1044,6 +1044,10 @@ var textArea = {
1044
1044
  minHeight: 120
1045
1045
  };
1046
1046
 
1047
+ var timePicker = {
1048
+ minWidth: 100
1049
+ };
1050
+
1047
1051
  var forms = {
1048
1052
  datePicker: datePicker,
1049
1053
  input: input,
@@ -1052,7 +1056,8 @@ var forms = {
1052
1056
  textArea: textArea,
1053
1057
  checkbox: checkbox,
1054
1058
  inputTag: inputTag,
1055
- radioButtonGroup: radioButtonGroup
1059
+ radioButtonGroup: radioButtonGroup,
1060
+ timePicker: timePicker
1056
1061
  };
1057
1062
 
1058
1063
  var webAnimationContentDuration = 600;
@@ -1142,6 +1147,8 @@ var iconButton = {
1142
1147
 
1143
1148
  var listItem = {
1144
1149
  padding: '12px 16px',
1150
+ verticalPadding: 12,
1151
+ horizontalPadding: 16,
1145
1152
  borderColor: colors.separator,
1146
1153
  borderWidth: 1,
1147
1154
  innerMargin: 8
@@ -1183,6 +1190,8 @@ var picker = {
1183
1190
  },
1184
1191
  android: {
1185
1192
  padding: '12px 24px',
1193
+ verticalPadding: 12,
1194
+ horizontalPadding: 24,
1186
1195
  "default": {
1187
1196
  backgroundColor: colors.transparent
1188
1197
  },
@@ -1281,6 +1290,8 @@ var skeleton = {
1281
1290
  var tag = {
1282
1291
  borderRadius: 10,
1283
1292
  padding: '2px 12px',
1293
+ verticalPadding: 2,
1294
+ horizontalPadding: 12,
1284
1295
  primary: {
1285
1296
  fill: {
1286
1297
  backgroundColor: lateOceanColorPalette.moonPurpleLight1,
@@ -1357,6 +1368,27 @@ var tooltip = {
1357
1368
  }
1358
1369
  };
1359
1370
 
1371
+ var verticalSteps = {
1372
+ active: {
1373
+ icon: {
1374
+ backgroundColor: colors.primary,
1375
+ textColor: colors.white
1376
+ }
1377
+ },
1378
+ done: {
1379
+ icon: {
1380
+ backgroundColor: lateOceanColorPalette.moonPurple,
1381
+ textColor: colors.primary
1382
+ }
1383
+ },
1384
+ "default": {
1385
+ icon: {
1386
+ backgroundColor: colors.disabled,
1387
+ textColor: colors.blackDisabled
1388
+ }
1389
+ }
1390
+ };
1391
+
1360
1392
  var breakpoints = {
1361
1393
  values: {
1362
1394
  base: 0,
@@ -1408,7 +1440,8 @@ var theme = {
1408
1440
  tooltip: tooltip,
1409
1441
  typography: typography,
1410
1442
  fullscreenModal: fullscreenModal,
1411
- actionCard: actionCard
1443
+ actionCard: actionCard,
1444
+ verticalSteps: verticalSteps
1412
1445
  };
1413
1446
 
1414
1447
  var KittThemeContext = /*#__PURE__*/createContext({
@@ -1713,7 +1746,7 @@ var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1713
1746
  throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1714
1747
  };
1715
1748
 
1716
- var _excluded$E = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1749
+ var _excluded$G = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1717
1750
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
1718
1751
  var TypographyColorContext = /*#__PURE__*/createContext('black');
1719
1752
  function useTypographyColor() {
@@ -1763,7 +1796,7 @@ function Typography(_ref) {
1763
1796
  } : _ref$type,
1764
1797
  variant = _ref.variant,
1765
1798
  color = _ref.color,
1766
- otherProps = _objectWithoutProperties(_ref, _excluded$E);
1799
+ otherProps = _objectWithoutProperties(_ref, _excluded$G);
1767
1800
  var sx = useSx();
1768
1801
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
1769
1802
  var defaultColor = useTypographyDefaultColor();
@@ -1868,11 +1901,11 @@ function Icon(_ref) {
1868
1901
  });
1869
1902
  }
1870
1903
 
1871
- var _excluded$D = ["color"],
1904
+ var _excluded$F = ["color"],
1872
1905
  _excluded2$5 = ["color"];
1873
1906
  function TypographyIconSpecifiedColor(_ref) {
1874
1907
  var color = _ref.color,
1875
- props = _objectWithoutProperties(_ref, _excluded$D);
1908
+ props = _objectWithoutProperties(_ref, _excluded$F);
1876
1909
  var sx = useSx();
1877
1910
  var colorStyle = sx({
1878
1911
  color: getTypographyColorValue(color)
@@ -1916,7 +1949,7 @@ var getTextColorByType = function (type, variant, isHovered, isPressed) {
1916
1949
  }
1917
1950
  };
1918
1951
 
1919
- var _excluded$C = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
1952
+ var _excluded$E = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
1920
1953
  function ButtonIcon(_ref) {
1921
1954
  var icon = _ref.icon,
1922
1955
  color = _ref.color,
@@ -1991,7 +2024,7 @@ function ButtonContent(_ref3) {
1991
2024
  isHovered = _ref3.isHovered,
1992
2025
  isPressed = _ref3.isPressed;
1993
2026
  _ref3.isFocused;
1994
- var props = _objectWithoutProperties(_ref3, _excluded$C);
2027
+ var props = _objectWithoutProperties(_ref3, _excluded$E);
1995
2028
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant, isHovered, isPressed);
1996
2029
  return /*#__PURE__*/jsx(View, {
1997
2030
  _web: {
@@ -2040,7 +2073,7 @@ function ButtonPadding(_ref2) {
2040
2073
  });
2041
2074
  }
2042
2075
 
2043
- function DisabledBorder$1() {
2076
+ function DisabledBorder() {
2044
2077
  return /*#__PURE__*/jsx(View, {
2045
2078
  position: "absolute",
2046
2079
  top: 0,
@@ -2237,7 +2270,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
2237
2270
  isPressed: isPressed,
2238
2271
  isFocused: isFocused,
2239
2272
  children: _children
2240
- }), disabled ? /*#__PURE__*/jsx(DisabledBorder$1, {}) : null, /*#__PURE__*/jsx(FocusBorder, {
2273
+ }), disabled ? /*#__PURE__*/jsx(DisabledBorder, {}) : null, /*#__PURE__*/jsx(FocusBorder, {
2241
2274
  type: type,
2242
2275
  variant: variant,
2243
2276
  isFocused: isFocused || isFocusedInternal,
@@ -2324,7 +2357,7 @@ function useMatchWindowSize(options) {
2324
2357
  }, options);
2325
2358
  }
2326
2359
 
2327
- var _excluded$B = ["as", "onPress", "disabled", "icon", "stretch"];
2360
+ var _excluded$D = ["as", "onPress", "disabled", "icon", "stretch"];
2328
2361
  function getCurrentStretchValue(isStretch, isMedium) {
2329
2362
  // Stretch will follow the value passed from the component occurence if defined
2330
2363
  if (isStretch) return isStretch;
@@ -2339,7 +2372,7 @@ function ActionsItem(_ref) {
2339
2372
  disabled = _ref.disabled,
2340
2373
  icon = _ref.icon,
2341
2374
  stretch = _ref.stretch,
2342
- props = _objectWithoutProperties(_ref, _excluded$B);
2375
+ props = _objectWithoutProperties(_ref, _excluded$D);
2343
2376
  var isMedium = useMatchWindowSize({
2344
2377
  minWidth: KittBreakpoints.MEDIUM
2345
2378
  });
@@ -2414,7 +2447,7 @@ function ActionsButton(_ref) {
2414
2447
  }, props));
2415
2448
  }
2416
2449
 
2417
- var _excluded$A = ["children", "layout"];
2450
+ var _excluded$C = ["children", "layout"];
2418
2451
  function getCurrentLayout(layout) {
2419
2452
  if (!layout) return {
2420
2453
  base: 'stretch',
@@ -2434,7 +2467,7 @@ function getCurrentDirection(layout) {
2434
2467
  function Actions(_ref) {
2435
2468
  var children = _ref.children,
2436
2469
  layout = _ref.layout,
2437
- props = _objectWithoutProperties(_ref, _excluded$A);
2470
+ props = _objectWithoutProperties(_ref, _excluded$C);
2438
2471
  var currentAlignItems = getCurrentLayout(layout);
2439
2472
  var currentDirection = getCurrentDirection(layout);
2440
2473
  return /*#__PURE__*/jsx(Stack, _objectSpread(_objectSpread({
@@ -2480,7 +2513,7 @@ function getInitials(firstname, lastname) {
2480
2513
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
2481
2514
  }
2482
2515
 
2483
- var _excluded$z = ["size", "round", "light", "sizeVariant"];
2516
+ var _excluded$B = ["size", "round", "light", "sizeVariant"];
2484
2517
  function AvatarContent(_ref) {
2485
2518
  var size = _ref.size,
2486
2519
  src = _ref.src,
@@ -2519,7 +2552,7 @@ function Avatar(_ref2) {
2519
2552
  round = _ref2.round,
2520
2553
  light = _ref2.light,
2521
2554
  sizeVariant = _ref2.sizeVariant,
2522
- props = _objectWithoutProperties(_ref2, _excluded$z);
2555
+ props = _objectWithoutProperties(_ref2, _excluded$B);
2523
2556
  var currentSize = getCurrentSize({
2524
2557
  size: size,
2525
2558
  sizeVariant: sizeVariant
@@ -2687,19 +2720,16 @@ function ModalBehaviour(_ref2) {
2687
2720
  }
2688
2721
  ModalBehaviour.CloseButton = CloseButton;
2689
2722
 
2690
- // Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
2691
- var OverlayPressable = /*#__PURE__*/styled(Pressable$2).withConfig({
2692
- displayName: "Overlay__OverlayPressable"
2693
- })(function (_ref) {
2694
- var theme = _ref.theme;
2695
- return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
2696
- backgroundColor: theme.kitt.colors.overlay.dark
2697
- });
2698
- });
2699
- function Overlay(_ref2) {
2700
- var onPress = _ref2.onPress;
2701
- return /*#__PURE__*/jsx(OverlayPressable, {
2723
+ function Overlay(_ref) {
2724
+ var onPress = _ref.onPress;
2725
+ return /*#__PURE__*/jsx(Pressable, {
2702
2726
  accessibilityRole: "none",
2727
+ position: "absolute",
2728
+ top: "0",
2729
+ left: "0",
2730
+ right: "0",
2731
+ bottom: "0",
2732
+ backgroundColor: "kitt.overlay.dark",
2703
2733
  onPress: onPress
2704
2734
  });
2705
2735
  }
@@ -2939,11 +2969,11 @@ function CardModalAnimation(_ref) {
2939
2969
  });
2940
2970
  }
2941
2971
 
2942
- var _excluded$y = ["children"],
2972
+ var _excluded$A = ["children"],
2943
2973
  _excluded2$4 = ["children", "visible", "onClose", "onExited"];
2944
2974
  function CardModalScrollContainer(_ref) {
2945
2975
  var children = _ref.children,
2946
- props = _objectWithoutProperties(_ref, _excluded$y);
2976
+ props = _objectWithoutProperties(_ref, _excluded$A);
2947
2977
  if (Platform.OS !== 'web') {
2948
2978
  return /*#__PURE__*/jsx(View, {
2949
2979
  children: children
@@ -2989,7 +3019,7 @@ function CardModalBehaviour(_ref2) {
2989
3019
  });
2990
3020
  }
2991
3021
 
2992
- var _excluded$x = ["children", "paddingX", "paddingY"];
3022
+ var _excluded$z = ["children", "paddingX", "paddingY"];
2993
3023
  function CardModalBody(_ref) {
2994
3024
  var children = _ref.children,
2995
3025
  _ref$paddingX = _ref.paddingX,
@@ -2999,7 +3029,7 @@ function CardModalBody(_ref) {
2999
3029
  } : _ref$paddingX,
3000
3030
  _ref$paddingY = _ref.paddingY,
3001
3031
  paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
3002
- props = _objectWithoutProperties(_ref, _excluded$x);
3032
+ props = _objectWithoutProperties(_ref, _excluded$z);
3003
3033
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
3004
3034
  paddingX: paddingX,
3005
3035
  paddingY: paddingY
@@ -3008,7 +3038,7 @@ function CardModalBody(_ref) {
3008
3038
  }));
3009
3039
  }
3010
3040
 
3011
- var _excluded$w = ["children", "padding", "hasSeparator"];
3041
+ var _excluded$y = ["children", "padding", "hasSeparator"];
3012
3042
  function CardModalFooter(_ref) {
3013
3043
  var children = _ref.children,
3014
3044
  _ref$padding = _ref.padding,
@@ -3018,7 +3048,7 @@ function CardModalFooter(_ref) {
3018
3048
  } : _ref$padding,
3019
3049
  _ref$hasSeparator = _ref.hasSeparator,
3020
3050
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
3021
- props = _objectWithoutProperties(_ref, _excluded$w);
3051
+ props = _objectWithoutProperties(_ref, _excluded$y);
3022
3052
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
3023
3053
  marginTop: "kitt.2",
3024
3054
  padding: padding,
@@ -3032,7 +3062,7 @@ function CardModalFooter(_ref) {
3032
3062
  }));
3033
3063
  }
3034
3064
 
3035
- var _excluded$v = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
3065
+ var _excluded$x = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
3036
3066
  function CardModalHeader(_ref) {
3037
3067
  var children = _ref.children,
3038
3068
  title = _ref.title,
@@ -3045,7 +3075,7 @@ function CardModalHeader(_ref) {
3045
3075
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
3046
3076
  right = _ref.right,
3047
3077
  left = _ref.left,
3048
- props = _objectWithoutProperties(_ref, _excluded$v);
3078
+ props = _objectWithoutProperties(_ref, _excluded$x);
3049
3079
  var defaultContainerPadding = {
3050
3080
  base: 'kitt.4',
3051
3081
  medium: 'kitt.6'
@@ -3083,7 +3113,7 @@ function CardModalHeader(_ref) {
3083
3113
  }));
3084
3114
  }
3085
3115
 
3086
- var _excluded$u = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
3116
+ var _excluded$w = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
3087
3117
  function CardModal(_ref) {
3088
3118
  var _ref$backgroundColor = _ref.backgroundColor,
3089
3119
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -3094,7 +3124,7 @@ function CardModal(_ref) {
3094
3124
  header = _ref.header,
3095
3125
  body = _ref.body,
3096
3126
  footer = _ref.footer,
3097
- props = _objectWithoutProperties(_ref, _excluded$u);
3127
+ props = _objectWithoutProperties(_ref, _excluded$w);
3098
3128
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
3099
3129
  overflow: "hidden",
3100
3130
  backgroundColor: backgroundColor,
@@ -3112,6 +3142,59 @@ CardModal.Header = CardModalHeader;
3112
3142
  CardModal.Footer = CardModalFooter;
3113
3143
  CardModal.ModalBehaviour = CardModalBehaviour;
3114
3144
 
3145
+ function getBackgroundColor$3(_ref) {
3146
+ var isDisabled = _ref.isDisabled,
3147
+ isSelected = _ref.isSelected,
3148
+ isHovered = _ref.isHovered,
3149
+ isPressed = _ref.isPressed;
3150
+ if (isDisabled) return 'kitt.choices.item.disabled.backgroundColor';
3151
+ if (isSelected && isHovered) return 'kitt.choices.item.hoverWhenSelected.backgroundColor';
3152
+ if (isPressed) return 'kitt.choices.item.pressed.backgroundColor';
3153
+ if (isHovered) return 'kitt.choices.item.hover.backgroundColor';
3154
+ if (isSelected) return 'kitt.choices.item.selected.backgroundColor';
3155
+ return 'kitt.choices.item.default.backgroundColor';
3156
+ }
3157
+
3158
+ function getBorderRadius(variant) {
3159
+ // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
3160
+ // We don't control over the height of the rendered children we just go with a arbitrary really high value
3161
+ return variant === 'rounded' ? Number.MAX_SAFE_INTEGER : 'kitt.choices.item.borderRadius';
3162
+ }
3163
+
3164
+ function AnimatedChoiceItemView(_ref) {
3165
+ var children = _ref.children,
3166
+ variant = _ref.variant,
3167
+ size = _ref.size,
3168
+ isHovered = _ref.isHovered,
3169
+ isPressed = _ref.isPressed,
3170
+ isDisabled = _ref.isDisabled,
3171
+ isSelected = _ref.isSelected,
3172
+ animatedStyles = _ref.animatedStyles;
3173
+ var sx = useSx();
3174
+ var style = sx({
3175
+ position: 'relative',
3176
+ borderRadius: getBorderRadius(variant),
3177
+ backgroundColor: getBackgroundColor$3({
3178
+ isDisabled: isDisabled,
3179
+ isSelected: isSelected,
3180
+ isHovered: isHovered,
3181
+ isPressed: isPressed
3182
+ }),
3183
+ paddingX: size === 'small' ? 'kitt.4' : {
3184
+ base: 'kitt.4',
3185
+ small: 'kitt.6'
3186
+ },
3187
+ paddingY: size === 'small' ? 'kitt.2' : {
3188
+ base: 'kitt.4',
3189
+ small: 'kitt.6'
3190
+ }
3191
+ });
3192
+ return /*#__PURE__*/jsx(Animated.View, {
3193
+ style: [style, animatedStyles],
3194
+ children: children
3195
+ });
3196
+ }
3197
+
3115
3198
  var useNativeAnimation$2 = function (_ref) {
3116
3199
  var selected = _ref.selected,
3117
3200
  disabled = _ref.disabled,
@@ -3202,87 +3285,22 @@ function getCurrentTextColor$1(_ref) {
3202
3285
  if (isSelected || isPressed) return 'white';
3203
3286
  return 'black';
3204
3287
  }
3205
- function getBorderRadius(defaultRadius, variant) {
3206
- // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
3207
- // We don't control over the height of the rendered children we just go with a arbitrary really high value
3208
3288
 
3209
- if (variant === 'rounded') return 800;
3210
- return defaultRadius;
3211
- }
3212
- var DisabledBorder = /*#__PURE__*/styled(View$2).withConfig({
3213
- displayName: "ChoiceItem__DisabledBorder"
3214
- })(["border-radius:", "px;", ";"], function (_ref2) {
3215
- var theme = _ref2.theme,
3216
- $variant = _ref2.$variant;
3217
- return getBorderRadius(theme.kitt.choices.item.borderRadius, $variant);
3218
- }, function (_ref3) {
3219
- var theme = _ref3.theme;
3220
- var _theme$kitt$choices$i = theme.kitt.choices.item.disabled.border,
3221
- width = _theme$kitt$choices$i.width,
3222
- color = _theme$kitt$choices$i.color;
3223
- return css(["border:", "px solid ", ";"], width, color);
3224
- });
3225
- var ChoiceItemView = /*#__PURE__*/styled(Platform.OS === 'web' ? View$2 : Animated.View).withConfig({
3226
- displayName: "ChoiceItem__ChoiceItemView"
3227
- })(["position:relative;border-radius:", "px;background-color:", ";", ";", ""], function (_ref4) {
3228
- var theme = _ref4.theme,
3229
- $variant = _ref4.$variant;
3230
- return getBorderRadius(theme.kitt.choices.item.borderRadius, $variant);
3231
- }, function (_ref5) {
3232
- var theme = _ref5.theme,
3233
- $isHovered = _ref5.$isHovered,
3234
- $isPressed = _ref5.$isPressed,
3235
- $isDisabled = _ref5.$isDisabled,
3236
- $isSelected = _ref5.$isSelected;
3237
- var _theme$kitt$choices$i2 = theme.kitt.choices.item.backgroundColor,
3238
- hoverWhenSelected = _theme$kitt$choices$i2.hoverWhenSelected,
3239
- hover = _theme$kitt$choices$i2.hover,
3240
- disabled = _theme$kitt$choices$i2.disabled,
3241
- selected = _theme$kitt$choices$i2.selected,
3242
- pressed = _theme$kitt$choices$i2.pressed,
3243
- defaultBackground = _theme$kitt$choices$i2["default"];
3244
- if ($isDisabled) return disabled;
3245
- if ($isSelected && $isHovered) return hoverWhenSelected;
3246
- if ($isPressed) return pressed;
3247
- if ($isHovered) return hover;
3248
- if ($isSelected) return selected;
3249
- return defaultBackground;
3250
- }, function (_ref6) {
3251
- var theme = _ref6.theme,
3252
- $size = _ref6.$size;
3253
- var _theme$kitt$choices$i3 = theme.kitt.choices.item.padding,
3254
- base = _theme$kitt$choices$i3.base,
3255
- small = _theme$kitt$choices$i3.small;
3256
- if ($size === 'small') {
3257
- return css(["padding:", "px ", "px;"], base / 2, base);
3258
- }
3259
- return theme.responsive.ifWindowSizeMatches({
3260
- minWidth: KittBreakpoints.SMALL
3261
- }, css(["padding:", "px;"], small), css(["padding:", "px;"], base));
3262
- }, function (_ref7) {
3263
- var theme = _ref7.theme;
3264
- if (Platform.OS !== 'web') return undefined;
3265
- var _theme$kitt$choices$i4 = theme.kitt.choices.item.transition,
3266
- property = _theme$kitt$choices$i4.property,
3267
- duration = _theme$kitt$choices$i4.duration,
3268
- timingFunction = _theme$kitt$choices$i4.timingFunction;
3269
- return css(["transition:", " ", "ms ", ";"], property, duration, timingFunction);
3270
- });
3271
- function ChoiceItem(_ref8) {
3272
- var _ref8$type = _ref8.type,
3273
- type = _ref8$type === void 0 ? 'button' : _ref8$type,
3274
- value = _ref8.value,
3275
- selected = _ref8.selected,
3276
- disabled = _ref8.disabled,
3277
- variant = _ref8.variant,
3278
- _children = _ref8.children,
3279
- isPressedInternal = _ref8.isPressedInternal,
3280
- isHoveredInternal = _ref8.isHoveredInternal,
3281
- onPress = _ref8.onPress,
3282
- onChange = _ref8.onChange,
3283
- onBlur = _ref8.onBlur,
3284
- onFocus = _ref8.onFocus,
3285
- size = _ref8.size;
3289
+ function ChoiceItem(_ref) {
3290
+ var _ref$type = _ref.type,
3291
+ type = _ref$type === void 0 ? 'button' : _ref$type,
3292
+ value = _ref.value,
3293
+ selected = _ref.selected,
3294
+ disabled = _ref.disabled,
3295
+ variant = _ref.variant,
3296
+ _children = _ref.children,
3297
+ isPressedInternal = _ref.isPressedInternal,
3298
+ isHoveredInternal = _ref.isHoveredInternal,
3299
+ onPress = _ref.onPress,
3300
+ onChange = _ref.onChange,
3301
+ onBlur = _ref.onBlur,
3302
+ onFocus = _ref.onFocus,
3303
+ size = _ref.size;
3286
3304
  var _useNativeAnimation = useNativeAnimation$2({
3287
3305
  selected: selected,
3288
3306
  disabled: disabled,
@@ -3317,17 +3335,17 @@ function ChoiceItem(_ref8) {
3317
3335
  },
3318
3336
  onPressIn: onPressIn,
3319
3337
  onPressOut: onPressOut,
3320
- children: function children(_ref9) {
3321
- var isHovered = _ref9.isHovered,
3322
- isPressed = _ref9.isPressed;
3323
- return /*#__PURE__*/jsxs(ChoiceItemView, {
3324
- style: Platform.OS !== 'web' ? [backgroundStyles] : undefined,
3325
- $isHovered: isHovered || isHoveredInternal,
3326
- $isDisabled: disabled,
3327
- $isSelected: selected,
3328
- $isPressed: isPressed || isPressedInternal,
3329
- $variant: variant,
3330
- $size: size,
3338
+ children: function children(_ref2) {
3339
+ var isHovered = _ref2.isHovered,
3340
+ isPressed = _ref2.isPressed;
3341
+ return /*#__PURE__*/jsxs(AnimatedChoiceItemView, {
3342
+ animatedStyles: backgroundStyles,
3343
+ isHovered: isHovered || isHoveredInternal,
3344
+ isDisabled: disabled,
3345
+ isSelected: selected,
3346
+ isPressed: isPressed || isPressedInternal,
3347
+ variant: variant,
3348
+ size: size,
3331
3349
  children: [/*#__PURE__*/jsx(Typography.SetDefaultColor, {
3332
3350
  value: getCurrentTextColor$1({
3333
3351
  isDisabled: disabled,
@@ -3336,34 +3354,37 @@ function ChoiceItem(_ref8) {
3336
3354
  isHovered: isHovered || isHoveredInternal
3337
3355
  }),
3338
3356
  children: _children
3339
- }), disabled ? /*#__PURE__*/jsx(DisabledBorder, {
3340
- $variant: variant,
3341
- style: StyleSheet.absoluteFillObject
3357
+ }), disabled ? /*#__PURE__*/jsx(View, {
3358
+ borderRadius: getBorderRadius(variant),
3359
+ borderWidth: "kitt.choices.item.disabled.borderWidth",
3360
+ borderColor: "kitt.choices.item.disabled.borderColor",
3361
+ position: "absolute",
3362
+ top: "0",
3363
+ right: "0",
3364
+ left: "0",
3365
+ bottom: "0"
3342
3366
  }) : null]
3343
3367
  });
3344
3368
  }
3345
3369
  });
3346
3370
  }
3347
3371
 
3348
- var ChoiceItemContainer = /*#__PURE__*/styled(View$2).withConfig({
3349
- displayName: "ChoiceItemContainer"
3350
- })(["", ""], function (_ref) {
3351
- var theme = _ref.theme,
3352
- $isLast = _ref.$isLast,
3353
- $direction = _ref.$direction;
3354
- var _theme$kitt$choices$s = theme.kitt.choices.spacing,
3355
- row = _theme$kitt$choices$s.row,
3356
- column = _theme$kitt$choices$s.column;
3357
- if ($direction === 'row') {
3358
- return css(["margin-right:", "px;"], $isLast ? 0 : row);
3359
- }
3360
- return css(["margin-bottom:", "px;"], $isLast ? 0 : column);
3361
- });
3372
+ function ChoiceItemContainer(_ref) {
3373
+ var children = _ref.children,
3374
+ direction = _ref.direction,
3375
+ isLast = _ref.isLast;
3376
+ var currentItemMarginValue = isLast ? undefined : 'kitt.3';
3377
+ return /*#__PURE__*/jsx(View, {
3378
+ marginRight: direction === 'row' ? currentItemMarginValue : undefined,
3379
+ marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
3380
+ children: children
3381
+ });
3382
+ }
3362
3383
 
3363
- var _excluded$t = ["direction"];
3384
+ var _excluded$v = ["direction"];
3364
3385
  function ChoicesContainer(_ref) {
3365
3386
  var direction = _ref.direction,
3366
- props = _objectWithoutProperties(_ref, _excluded$t);
3387
+ props = _objectWithoutProperties(_ref, _excluded$v);
3367
3388
  if (direction === 'row') {
3368
3389
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
3369
3390
  horizontal: true
@@ -3417,8 +3438,8 @@ function Choices(_ref2) {
3417
3438
  selected: isForm ? child.props.value === currentValue : undefined
3418
3439
  }, sharedProps));
3419
3440
  return /*#__PURE__*/jsx(ChoiceItemContainer, {
3420
- $direction: direction,
3421
- $isLast: index === childrenArray.length - 1,
3441
+ direction: direction,
3442
+ isLast: index === childrenArray.length - 1,
3422
3443
  children: element
3423
3444
  }, child.key);
3424
3445
  })
@@ -3657,13 +3678,13 @@ function DialogModalAnimation(_ref) {
3657
3678
  });
3658
3679
  }
3659
3680
 
3660
- var _excluded$s = ["children", "visible", "onClose", "onExited"];
3681
+ var _excluded$u = ["children", "visible", "onClose", "onExited"];
3661
3682
  function DialogModalBehaviour(_ref) {
3662
3683
  var children = _ref.children,
3663
3684
  visible = _ref.visible,
3664
3685
  onClose = _ref.onClose,
3665
3686
  onExited = _ref.onExited,
3666
- props = _objectWithoutProperties(_ref, _excluded$s);
3687
+ props = _objectWithoutProperties(_ref, _excluded$u);
3667
3688
  var _useState = useState(visible),
3668
3689
  _useState2 = _slicedToArray(_useState, 2),
3669
3690
  isModalBehaviourVisible = _useState2[0],
@@ -3694,7 +3715,7 @@ function DialogModalBehaviour(_ref) {
3694
3715
  });
3695
3716
  }
3696
3717
 
3697
- var _excluded$r = ["stretch"];
3718
+ var _excluded$t = ["stretch"];
3698
3719
  function DialogModal(_ref) {
3699
3720
  var illustration = _ref.illustration,
3700
3721
  title = _ref.title,
@@ -3735,7 +3756,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
3735
3756
  function DialogModalButton(_ref2) {
3736
3757
  var _ref2$stretch = _ref2.stretch,
3737
3758
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
3738
- props = _objectWithoutProperties(_ref2, _excluded$r);
3759
+ props = _objectWithoutProperties(_ref2, _excluded$t);
3739
3760
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
3740
3761
  stretch: stretch
3741
3762
  }, props));
@@ -3772,7 +3793,7 @@ function Emoji(_ref) {
3772
3793
  });
3773
3794
  }
3774
3795
 
3775
- var _excluded$q = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3796
+ var _excluded$s = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3776
3797
  _excluded2$3 = ["phoneNumber", "children"],
3777
3798
  _excluded3$2 = ["phoneNumber", "children"],
3778
3799
  _excluded4$1 = ["emailAddress", "children"];
@@ -3782,7 +3803,7 @@ function ExternalAppLink(_ref) {
3782
3803
  appValue = _ref.appValue,
3783
3804
  onPress = _ref.onPress,
3784
3805
  onOpenAppError = _ref.onOpenAppError,
3785
- rest = _objectWithoutProperties(_ref, _excluded$q);
3806
+ rest = _objectWithoutProperties(_ref, _excluded$s);
3786
3807
  var href = "".concat(appScheme, ":").concat(appValue);
3787
3808
  var handleOnPress = /*#__PURE__*/function () {
3788
3809
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -3877,14 +3898,14 @@ var defaultOpenLinkBehavior = {
3877
3898
  web: 'targetBlank'
3878
3899
  };
3879
3900
 
3880
- var _excluded$p = ["as", "href", "openLinkBehavior", "onPress"];
3901
+ var _excluded$r = ["as", "href", "openLinkBehavior", "onPress"];
3881
3902
  function ExternalLink(_ref) {
3882
3903
  var Component = _ref.as,
3883
3904
  href = _ref.href,
3884
3905
  _ref$openLinkBehavior = _ref.openLinkBehavior,
3885
3906
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
3886
3907
  onPress = _ref.onPress,
3887
- rest = _objectWithoutProperties(_ref, _excluded$p);
3908
+ rest = _objectWithoutProperties(_ref, _excluded$r);
3888
3909
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
3889
3910
  onPress: function handleOnPress(e) {
3890
3911
  if (onPress) {
@@ -4211,11 +4232,15 @@ function stringToNumber(text) {
4211
4232
  return parseInt(text, 10);
4212
4233
  }
4213
4234
 
4214
- var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
4215
- displayName: "InputTextContainer"
4216
- })(["position:relative;"]);
4235
+ function InputTextContainer(_ref) {
4236
+ var children = _ref.children;
4237
+ return /*#__PURE__*/jsx(View, {
4238
+ position: "relative",
4239
+ children: children
4240
+ });
4241
+ }
4217
4242
 
4218
- var _excluded$o = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
4243
+ var _excluded$q = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
4219
4244
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4220
4245
  var id = _ref.id,
4221
4246
  right = _ref.right;
@@ -4235,14 +4260,13 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4235
4260
  keyboardType = _ref$keyboardType === void 0 ? 'default' : _ref$keyboardType,
4236
4261
  multiline = _ref.multiline,
4237
4262
  onSubmitEditing = _ref.onSubmitEditing,
4238
- props = _objectWithoutProperties(_ref, _excluded$o);
4263
+ props = _objectWithoutProperties(_ref, _excluded$q);
4239
4264
  var theme = useTheme();
4240
4265
  var fontSizeForNativeBase = createNativeBaseFontSize({
4241
4266
  base: 'body'
4242
4267
  });
4243
4268
  var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
4244
4269
  return /*#__PURE__*/jsxs(InputTextContainer, {
4245
- $isDisabled: disabled,
4246
4270
  children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
4247
4271
  ref: ref,
4248
4272
  multiline: multiline,
@@ -4279,7 +4303,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4279
4303
  });
4280
4304
  });
4281
4305
 
4282
- function getCurrentInternalForcedState(_ref) {
4306
+ function getCurrentInternalForcedState$1(_ref) {
4283
4307
  var isDisabled = _ref.isDisabled,
4284
4308
  isHoveredInternal = _ref.isHoveredInternal,
4285
4309
  isFocusedInternal = _ref.isFocusedInternal,
@@ -4303,7 +4327,7 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
4303
4327
  onSubmitEditing = _ref2.onSubmitEditing;
4304
4328
  return /*#__PURE__*/jsx(InputText, {
4305
4329
  ref: ref,
4306
- internalForceState: getCurrentInternalForcedState({
4330
+ internalForceState: getCurrentInternalForcedState$1({
4307
4331
  isDisabled: disabled,
4308
4332
  isHoveredInternal: isHoveredInternal,
4309
4333
  isFocusedInternal: isFocusedInternal,
@@ -4333,7 +4357,7 @@ function PartContainer(_ref) {
4333
4357
  });
4334
4358
  }
4335
4359
 
4336
- var _excluded$n = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
4360
+ var _excluded$p = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
4337
4361
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4338
4362
  var value = _ref.value,
4339
4363
  testID = _ref.testID,
@@ -4351,7 +4375,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4351
4375
  onBlur = _ref.onBlur,
4352
4376
  onFocus = _ref.onFocus,
4353
4377
  onSubmitEditing = _ref.onSubmitEditing;
4354
- _objectWithoutProperties(_ref, _excluded$n);
4378
+ _objectWithoutProperties(_ref, _excluded$p);
4355
4379
  var monthRef = useRef(null);
4356
4380
  var yearRef = useRef(null);
4357
4381
  var defaultValue = value;
@@ -4558,7 +4582,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
4558
4582
  });
4559
4583
  });
4560
4584
 
4561
- var _excluded$m = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
4585
+ var _excluded$o = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
4562
4586
  var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
4563
4587
  var onBlur = _ref.onBlur,
4564
4588
  onFocus = _ref.onFocus,
@@ -4567,7 +4591,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
4567
4591
  isDefaultVisible = _ref.isDefaultVisible,
4568
4592
  value = _ref.value,
4569
4593
  _onChange = _ref.onChange,
4570
- props = _objectWithoutProperties(_ref, _excluded$m);
4594
+ props = _objectWithoutProperties(_ref, _excluded$o);
4571
4595
  var _useState = useState(false),
4572
4596
  _useState2 = _slicedToArray(_useState, 2),
4573
4597
  isFocused = _useState2[0],
@@ -4644,7 +4668,7 @@ function ModalFooter(_ref3) {
4644
4668
  });
4645
4669
  }
4646
4670
 
4647
- var _excluded$l = ["color", "isDisabled"];
4671
+ var _excluded$n = ["color", "isDisabled"];
4648
4672
  function getBackgroundColor$1(color, isDisabled) {
4649
4673
  if (isDisabled) {
4650
4674
  return 'kitt.iconButton.disabled.backgroundColor';
@@ -4662,7 +4686,7 @@ function getBackgroundColor$1(color, isDisabled) {
4662
4686
  function Background(_ref) {
4663
4687
  var color = _ref.color,
4664
4688
  isDisabled = _ref.isDisabled,
4665
- props = _objectWithoutProperties(_ref, _excluded$l);
4689
+ props = _objectWithoutProperties(_ref, _excluded$n);
4666
4690
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4667
4691
  width: "100%",
4668
4692
  height: "100%",
@@ -4913,7 +4937,7 @@ var ModalView = /*#__PURE__*/styled.View.withConfig({
4913
4937
  var theme = _ref2.theme;
4914
4938
  return theme.kitt.spacing * 4;
4915
4939
  });
4916
- var ContentView$1 = /*#__PURE__*/styled.View.withConfig({
4940
+ var ContentView = /*#__PURE__*/styled.View.withConfig({
4917
4941
  displayName: "Modal__ContentView"
4918
4942
  })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
4919
4943
  var theme = _ref3.theme;
@@ -4945,7 +4969,7 @@ function Modal(_ref5) {
4945
4969
  children: /*#__PURE__*/jsxs(ModalView, {
4946
4970
  children: [/*#__PURE__*/jsx(Overlay, {
4947
4971
  onPress: onClose
4948
- }), /*#__PURE__*/jsx(ContentView$1, {
4972
+ }), /*#__PURE__*/jsx(ContentView, {
4949
4973
  children: children
4950
4974
  })]
4951
4975
  })
@@ -4989,7 +5013,7 @@ function PlatformDateTimePicker(_ref) {
4989
5013
  }));
4990
5014
  }
4991
5015
 
4992
- var _excluded$k = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
5016
+ var _excluded$m = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
4993
5017
  function ModalTitle(_ref) {
4994
5018
  var children = _ref.children;
4995
5019
  return /*#__PURE__*/jsx(Modal.Header, {
@@ -5007,7 +5031,7 @@ function ModalPlatformDateTimePicker(_ref2) {
5007
5031
  validateButtonLabel = _ref2.validateButtonLabel,
5008
5032
  onClose = _ref2.onClose,
5009
5033
  onChange = _ref2.onChange,
5010
- props = _objectWithoutProperties(_ref2, _excluded$k);
5034
+ props = _objectWithoutProperties(_ref2, _excluded$m);
5011
5035
  var _useState = useState(value),
5012
5036
  _useState2 = _slicedToArray(_useState, 2),
5013
5037
  currentValue = _useState2[0],
@@ -5051,7 +5075,7 @@ function ModalPlatformDateTimePicker(_ref2) {
5051
5075
  });
5052
5076
  }
5053
5077
 
5054
- var _excluded$j = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
5078
+ var _excluded$l = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
5055
5079
  var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5056
5080
  var value = _ref.value,
5057
5081
  pickerUITestID = _ref.pickerUITestID,
@@ -5065,7 +5089,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5065
5089
  onChange = _ref.onChange,
5066
5090
  onFocus = _ref.onFocus,
5067
5091
  onBlur = _ref.onBlur,
5068
- props = _objectWithoutProperties(_ref, _excluded$j);
5092
+ props = _objectWithoutProperties(_ref, _excluded$l);
5069
5093
  var _useState = useState(isDefaultVisible),
5070
5094
  _useState2 = _slicedToArray(_useState, 2),
5071
5095
  isPickerUIVisible = _useState2[0],
@@ -5112,7 +5136,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5112
5136
  });
5113
5137
  });
5114
5138
 
5115
- var _excluded$i = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
5139
+ var _excluded$k = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
5116
5140
  var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5117
5141
  var value = _ref.value,
5118
5142
  pickerUITestID = _ref.pickerUITestID,
@@ -5120,7 +5144,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5120
5144
  pickerDefaultDate = _ref.pickerDefaultDate,
5121
5145
  onChange = _ref.onChange,
5122
5146
  onBlur = _ref.onBlur,
5123
- props = _objectWithoutProperties(_ref, _excluded$i);
5147
+ props = _objectWithoutProperties(_ref, _excluded$k);
5124
5148
  if (Platform.OS === 'android') {
5125
5149
  return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
5126
5150
  ref: ref,
@@ -5142,14 +5166,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5142
5166
  }, props));
5143
5167
  });
5144
5168
 
5145
- var _excluded$h = ["fillMode", "returnKeyType", "value", "onSubmitEditing"];
5169
+ var _excluded$j = ["fillMode", "returnKeyType", "value", "onSubmitEditing"];
5146
5170
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5147
5171
  var _ref$fillMode = _ref.fillMode,
5148
5172
  fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
5149
5173
  returnKeyType = _ref.returnKeyType,
5150
5174
  value = _ref.value,
5151
5175
  onSubmitEditing = _ref.onSubmitEditing,
5152
- props = _objectWithoutProperties(_ref, _excluded$h);
5176
+ props = _objectWithoutProperties(_ref, _excluded$j);
5153
5177
  // in apps, final-form can give a string value that will break the component
5154
5178
  var currentValue = value || undefined;
5155
5179
  if (fillMode === 'keyboard') {
@@ -5252,11 +5276,11 @@ function InputPressable(_ref) {
5252
5276
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
5253
5277
  }
5254
5278
 
5255
- var _excluded$g = ["isPasswordDefaultVisible", "right"];
5279
+ var _excluded$i = ["isPasswordDefaultVisible", "right"];
5256
5280
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
5257
5281
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
5258
5282
  right = _ref.right,
5259
- props = _objectWithoutProperties(_ref, _excluded$g);
5283
+ props = _objectWithoutProperties(_ref, _excluded$i);
5260
5284
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
5261
5285
  _useState2 = _slicedToArray(_useState, 2),
5262
5286
  isVisible = _useState2[0],
@@ -5284,7 +5308,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
5284
5308
  }));
5285
5309
  });
5286
5310
 
5287
- var _excluded$f = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
5311
+ var _excluded$h = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
5288
5312
  function isPhoneNumberValid(number) {
5289
5313
  return isValidNumber(number);
5290
5314
  }
@@ -5299,7 +5323,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
5299
5323
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
5300
5324
  value = _ref.value,
5301
5325
  onChange = _ref.onChange,
5302
- props = _objectWithoutProperties(_ref, _excluded$f);
5326
+ props = _objectWithoutProperties(_ref, _excluded$h);
5303
5327
  var _useState = useState(value),
5304
5328
  _useState2 = _slicedToArray(_useState, 2),
5305
5329
  currentValue = _useState2[0],
@@ -5347,46 +5371,29 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
5347
5371
  var getTypographyColor = function (type) {
5348
5372
  return type ? 'white' : 'black';
5349
5373
  };
5350
- var InputTagContainer = /*#__PURE__*/styled(View$2).withConfig({
5351
- displayName: "InputTag__InputTagContainer"
5352
- })(["align-items:center;justify-content:center;flex-direction:row;align-self:flex-start;overflow:hidden;padding-horizontal:", "px;background-color:", ";border-radius:", "px;"], function (_ref) {
5353
- var theme = _ref.theme;
5354
- return theme.kitt.spacing * 2;
5355
- }, function (_ref2) {
5356
- var theme = _ref2.theme,
5357
- type = _ref2.type;
5358
- if (type === 'success') {
5359
- return theme.kitt.forms.inputTag.success.backgroundColor;
5360
- }
5361
- if (type === 'danger') {
5362
- return theme.kitt.forms.inputTag.danger.backgroundColor;
5363
- }
5364
- return theme.kitt.forms.inputTag["default"].backgroundColor;
5365
- }, function (_ref3) {
5366
- var theme = _ref3.theme;
5367
- return theme.kitt.forms.inputTag.borderRadius;
5368
- });
5369
- var IconContainer = /*#__PURE__*/styled(View$2).withConfig({
5370
- displayName: "InputTag__IconContainer"
5371
- })(["margin-right:", "px;"], function (_ref4) {
5372
- var theme = _ref4.theme;
5373
- return theme.kitt.spacing;
5374
- });
5375
- function InputTag(_ref5) {
5376
- var children = _ref5.children,
5377
- type = _ref5.type,
5378
- icon = _ref5.icon;
5374
+ function InputTag(_ref) {
5375
+ var children = _ref.children,
5376
+ type = _ref.type,
5377
+ icon = _ref.icon;
5379
5378
  var typographyColor = getTypographyColor(type);
5380
5379
  var theme = useTheme();
5381
- return /*#__PURE__*/jsxs(InputTagContainer, {
5382
- type: type,
5383
- children: [icon && /*#__PURE__*/jsx(IconContainer, {
5380
+ return /*#__PURE__*/jsxs(View, {
5381
+ alignItems: "center",
5382
+ justifyContent: "center",
5383
+ flexDirection: "row",
5384
+ alignSelf: "flex-start",
5385
+ overflow: "hidden",
5386
+ paddingX: "kitt.2",
5387
+ backgroundColor: "kitt.forms.inputTag.".concat(type || 'default', ".backgroundColor"),
5388
+ borderRadius: "kitt.forms.inputTag.borderRadius",
5389
+ children: [icon ? /*#__PURE__*/jsx(View, {
5390
+ marginRight: "kitt.1",
5384
5391
  children: /*#__PURE__*/jsx(TypographyIcon, {
5385
5392
  icon: icon,
5386
5393
  size: theme.kitt.forms.inputTag.iconSize,
5387
5394
  color: typographyColor
5388
5395
  })
5389
- }), /*#__PURE__*/jsx(Typography.Text, {
5396
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
5390
5397
  base: "body-small",
5391
5398
  color: typographyColor,
5392
5399
  children: children
@@ -5561,49 +5568,22 @@ var Radio = /*#__PURE__*/forwardRef(function (_ref, ref) {
5561
5568
  });
5562
5569
  });
5563
5570
 
5564
- var StyledAnimatedView = /*#__PURE__*/styled(Animated.View).withConfig({
5565
- displayName: "AnimatedContainer__StyledAnimatedView"
5566
- })(["border-width:", "px;border-top-left-radius:", "px;border-bottom-left-radius:", "px;border-top-right-radius:", "px;border-bottom-right-radius:", "px;border-left-width:", "px;"], function (_ref) {
5567
- var theme = _ref.theme;
5568
- return theme.kitt.forms.radioButtonGroup.item.borderWidth;
5569
- }, function (_ref2) {
5570
- var theme = _ref2.theme,
5571
- $isFirst = _ref2.$isFirst;
5572
- return $isFirst ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5573
- }, function (_ref3) {
5574
- var theme = _ref3.theme,
5575
- $isFirst = _ref3.$isFirst;
5576
- return $isFirst ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5577
- }, function (_ref4) {
5578
- var theme = _ref4.theme,
5579
- $isLast = _ref4.$isLast;
5580
- return $isLast ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5581
- }, function (_ref5) {
5582
- var theme = _ref5.theme,
5583
- $isLast = _ref5.$isLast;
5584
- return $isLast ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5585
- }, function (_ref6) {
5586
- var theme = _ref6.theme,
5587
- $isFirst = _ref6.$isFirst;
5588
- return $isFirst ? theme.kitt.forms.radioButtonGroup.item.borderWidth : 0;
5589
- });
5590
- function AnimatedContainer(_ref7) {
5591
- var children = _ref7.children,
5592
- isFocused = _ref7.isFocused,
5593
- isPressed = _ref7.isPressed,
5594
- isSelected = _ref7.isSelected,
5595
- isDisabled = _ref7.isDisabled,
5596
- isFirst = _ref7.isFirst,
5597
- isLast = _ref7.isLast,
5598
- animatedStyles = _ref7.animatedStyles;
5599
- return /*#__PURE__*/jsx(StyledAnimatedView, {
5600
- style: [animatedStyles],
5601
- $isFocused: isFocused,
5602
- $isPressed: isPressed,
5603
- $isSelected: isSelected,
5604
- $isDisabled: isDisabled,
5605
- $isFirst: isFirst,
5606
- $isLast: isLast,
5571
+ function AnimatedContainer(_ref) {
5572
+ var children = _ref.children,
5573
+ isFirst = _ref.isFirst,
5574
+ isLast = _ref.isLast,
5575
+ animatedStyles = _ref.animatedStyles;
5576
+ var sx = useSx();
5577
+ var styles = sx({
5578
+ borderWidth: 'kitt.forms.radioButtonGroup.item.borderWidth',
5579
+ borderTopLeftRadius: isFirst ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5580
+ borderBottomLeftRadius: isFirst ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5581
+ borderTopRightRadius: isLast ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5582
+ borderBottomRightRadius: isLast ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5583
+ borderLeftWidth: isFirst ? 'kitt.forms.radioButtonGroup.item.borderWidth' : 0
5584
+ });
5585
+ return /*#__PURE__*/jsx(Animated.View, {
5586
+ style: [styles, animatedStyles],
5607
5587
  children: children
5608
5588
  });
5609
5589
  }
@@ -5808,7 +5788,7 @@ function RadioButton(_ref) {
5808
5788
  });
5809
5789
  }
5810
5790
 
5811
- var _excluded$e = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
5791
+ var _excluded$g = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
5812
5792
  function RadioButtonGroupItem(_ref) {
5813
5793
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
5814
5794
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -5821,7 +5801,7 @@ function RadioButtonGroup(_ref2) {
5821
5801
  onFocus = _ref2.onFocus,
5822
5802
  onBlur = _ref2.onBlur,
5823
5803
  onChange = _ref2.onChange,
5824
- props = _objectWithoutProperties(_ref2, _excluded$e);
5804
+ props = _objectWithoutProperties(_ref2, _excluded$g);
5825
5805
  var _useState = useState(value),
5826
5806
  _useState2 = _slicedToArray(_useState, 2),
5827
5807
  currentValue = _useState2[0],
@@ -5863,13 +5843,13 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
5863
5843
  }, props));
5864
5844
  });
5865
5845
 
5866
- var _excluded$d = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
5846
+ var _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
5867
5847
  function FullscreenModalBody(_ref) {
5868
5848
  var children = _ref.children,
5869
5849
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
5870
5850
  style = _ref.style,
5871
5851
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
5872
- props = _objectWithoutProperties(_ref, _excluded$d);
5852
+ props = _objectWithoutProperties(_ref, _excluded$f);
5873
5853
  var _useSafeAreaInsets = useSafeAreaInsets(),
5874
5854
  bottom = _useSafeAreaInsets.bottom,
5875
5855
  top = _useSafeAreaInsets.top;
@@ -5886,14 +5866,14 @@ function FullscreenModalBody(_ref) {
5886
5866
  }));
5887
5867
  }
5888
5868
 
5889
- var _excluded$c = ["shouldHandleBottomNotch", "hasSeparator", "children"];
5869
+ var _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
5890
5870
  function FullscreenModalFooter(_ref) {
5891
5871
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
5892
5872
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
5893
5873
  _ref$hasSeparator = _ref.hasSeparator,
5894
5874
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
5895
5875
  children = _ref.children,
5896
- props = _objectWithoutProperties(_ref, _excluded$c);
5876
+ props = _objectWithoutProperties(_ref, _excluded$e);
5897
5877
  var _useSafeAreaInsets = useSafeAreaInsets(),
5898
5878
  bottom = _useSafeAreaInsets.bottom;
5899
5879
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -6109,13 +6089,13 @@ function FullscreenModalAnimation(_ref) {
6109
6089
  });
6110
6090
  }
6111
6091
 
6112
- var _excluded$b = ["children", "visible", "onClose", "onExited"];
6092
+ var _excluded$d = ["children", "visible", "onClose", "onExited"];
6113
6093
  function FullscreenModalBehaviour(_ref) {
6114
6094
  var children = _ref.children,
6115
6095
  visible = _ref.visible,
6116
6096
  onClose = _ref.onClose,
6117
6097
  onExited = _ref.onExited,
6118
- props = _objectWithoutProperties(_ref, _excluded$b);
6098
+ props = _objectWithoutProperties(_ref, _excluded$d);
6119
6099
  var _useState = useState(visible),
6120
6100
  _useState2 = _slicedToArray(_useState, 2),
6121
6101
  isModalBehaviourVisible = _useState2[0],
@@ -6159,7 +6139,7 @@ function FullscreenModalContainer(_ref) {
6159
6139
  });
6160
6140
  }
6161
6141
 
6162
- var _excluded$a = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
6142
+ var _excluded$c = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
6163
6143
  function FullscreenModalHeader(_ref) {
6164
6144
  var _ref$hasSeparator = _ref.hasSeparator,
6165
6145
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
@@ -6170,7 +6150,7 @@ function FullscreenModalHeader(_ref) {
6170
6150
  left = _ref.left,
6171
6151
  _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
6172
6152
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
6173
- props = _objectWithoutProperties(_ref, _excluded$a);
6153
+ props = _objectWithoutProperties(_ref, _excluded$c);
6174
6154
  var _useSafeAreaInsets = useSafeAreaInsets(),
6175
6155
  top = _useSafeAreaInsets.top;
6176
6156
  var hasRight = Boolean(right);
@@ -6283,98 +6263,57 @@ function useKittMapConfig() {
6283
6263
  return context;
6284
6264
  }
6285
6265
 
6286
- var _excluded$9 = ["children"];
6287
- var ContentView = /*#__PURE__*/styled.View.withConfig({
6288
- displayName: "ListItemContent__ContentView"
6289
- })(["flex:1 0 0%;align-self:center;"]);
6266
+ var _excluded$b = ["children"];
6290
6267
  function ListItemContent(_ref) {
6291
6268
  var children = _ref.children,
6292
- rest = _objectWithoutProperties(_ref, _excluded$9);
6293
- return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
6269
+ rest = _objectWithoutProperties(_ref, _excluded$b);
6270
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6271
+ alignSelf: "center",
6272
+ flexBasis: "0%",
6273
+ flexGrow: 1,
6274
+ flexShrink: 0
6275
+ }, rest), {}, {
6294
6276
  children: children
6295
6277
  }));
6296
6278
  }
6297
6279
 
6298
- var _excluded$8 = ["children", "side"],
6280
+ var _excluded$a = ["children", "side"],
6299
6281
  _excluded2$2 = ["children", "align"];
6300
- var SideContainerView = /*#__PURE__*/styled.View.withConfig({
6301
- displayName: "ListItemSideContent__SideContainerView"
6302
- })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
6303
- var theme = _ref.theme,
6304
- side = _ref.side;
6305
- return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
6306
- }, function (_ref2) {
6307
- var theme = _ref2.theme,
6308
- side = _ref2.side;
6309
- return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
6310
- });
6311
-
6312
6282
  // Handles the vertical alignment of the side elements of the list item
6313
- function ListItemSideContainer(_ref3) {
6314
- var children = _ref3.children,
6315
- _ref3$side = _ref3.side,
6316
- side = _ref3$side === void 0 ? 'left' : _ref3$side,
6317
- rest = _objectWithoutProperties(_ref3, _excluded$8);
6318
- return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
6319
- side: side
6283
+ function ListItemSideContainer(_ref) {
6284
+ var children = _ref.children,
6285
+ _ref$side = _ref.side,
6286
+ side = _ref$side === void 0 ? 'left' : _ref$side,
6287
+ rest = _objectWithoutProperties(_ref, _excluded$a);
6288
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6289
+ flexDirection: "row",
6290
+ marginLeft: side === 'right' ? 'kitt.2' : undefined,
6291
+ marginRight: side === 'left' ? 'kitt.2' : undefined
6320
6292
  }, rest), {}, {
6321
6293
  children: children
6322
6294
  }));
6323
6295
  }
6324
- var SideContentView = /*#__PURE__*/styled.View.withConfig({
6325
- displayName: "ListItemSideContent__SideContentView"
6326
- })(["align-self:", ";"], function (_ref4) {
6327
- var align = _ref4.align;
6328
- return align;
6329
- });
6330
- function ListItemSideContent(_ref5) {
6331
- var children = _ref5.children,
6332
- _ref5$align = _ref5.align,
6333
- align = _ref5$align === void 0 ? 'auto' : _ref5$align,
6334
- rest = _objectWithoutProperties(_ref5, _excluded2$2);
6335
- return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
6336
- align: align
6296
+ function ListItemSideContent(_ref2) {
6297
+ var children = _ref2.children,
6298
+ _ref2$align = _ref2.align,
6299
+ align = _ref2$align === void 0 ? 'auto' : _ref2$align,
6300
+ rest = _objectWithoutProperties(_ref2, _excluded2$2);
6301
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6302
+ alignSelf: align
6337
6303
  }, rest), {}, {
6338
6304
  children: children
6339
6305
  }));
6340
6306
  }
6341
6307
 
6342
- var _excluded$7 = ["children", "withPadding", "borders", "left", "right", "onPress"];
6343
- var ContainerView = /*#__PURE__*/styled.View.withConfig({
6344
- displayName: "ListItem__ContainerView"
6345
- })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
6346
- var withPadding = _ref.withPadding,
6347
- theme = _ref.theme;
6348
- return withPadding ? theme.kitt.listItem.padding : 0;
6349
- }, function (_ref2) {
6350
- var theme = _ref2.theme,
6351
- borders = _ref2.borders;
6352
- var borderWidth = theme.kitt.listItem.borderWidth;
6353
- if (borders === 'top') {
6354
- return "border-top-width: ".concat(borderWidth, "px");
6355
- }
6356
- if (borders === 'bottom') {
6357
- return "border-bottom-width: ".concat(borderWidth, "px");
6358
- }
6359
- if (borders === 'both') {
6360
- return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
6361
- }
6362
- return 'border: none';
6363
- }, function (_ref3) {
6364
- var theme = _ref3.theme;
6365
- return theme.kitt.listItem.borderColor;
6366
- }, function (_ref4) {
6367
- var theme = _ref4.theme;
6368
- return theme.kitt.colors.uiBackgroundLight;
6369
- });
6370
- function ListItem(_ref5) {
6371
- var children = _ref5.children,
6372
- withPadding = _ref5.withPadding,
6373
- borders = _ref5.borders,
6374
- left = _ref5.left,
6375
- right = _ref5.right,
6376
- onPress = _ref5.onPress,
6377
- rest = _objectWithoutProperties(_ref5, _excluded$7);
6308
+ var _excluded$9 = ["children", "withPadding", "borders", "left", "right", "onPress"];
6309
+ function ListItem(_ref) {
6310
+ var children = _ref.children,
6311
+ withPadding = _ref.withPadding,
6312
+ borders = _ref.borders,
6313
+ left = _ref.left,
6314
+ right = _ref.right,
6315
+ onPress = _ref.onPress,
6316
+ rest = _objectWithoutProperties(_ref, _excluded$9);
6378
6317
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
6379
6318
  var wrapperProps = onPress ? _objectSpread({
6380
6319
  accessibilityRole: 'button',
@@ -6382,9 +6321,14 @@ function ListItem(_ref5) {
6382
6321
  }, rest) : undefined;
6383
6322
  var containerProps = onPress ? undefined : rest;
6384
6323
  return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
6385
- children: /*#__PURE__*/jsxs(ContainerView, _objectSpread(_objectSpread({
6386
- withPadding: withPadding,
6387
- borders: borders
6324
+ children: /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
6325
+ flexDirection: "row",
6326
+ paddingX: withPadding ? 'kitt.listItem.horizontalPadding' : undefined,
6327
+ paddingY: withPadding ? 'kitt.listItem.verticalPadding' : undefined,
6328
+ borderColor: "kitt.listItem.borderColor",
6329
+ backgroundColor: "kitt.uiBackgroundLight",
6330
+ borderTopWidth: borders === 'top' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined,
6331
+ borderBottomWidth: borders === 'bottom' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined
6388
6332
  }, containerProps), {}, {
6389
6333
  children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
6390
6334
  side: "left",
@@ -6912,6 +6856,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6912
6856
  'subtle-dark': theme.button['subtle-dark'],
6913
6857
  disabled: theme.button.disabled
6914
6858
  },
6859
+ choices: {
6860
+ item: {
6861
+ "default": {
6862
+ backgroundColor: theme.choices.item.backgroundColor["default"]
6863
+ },
6864
+ disabled: {
6865
+ backgroundColor: theme.choices.item.backgroundColor.disabled,
6866
+ borderColor: theme.choices.item.disabled.border.color
6867
+ },
6868
+ selected: {
6869
+ backgroundColor: theme.choices.item.backgroundColor.selected
6870
+ },
6871
+ pressed: {
6872
+ backgroundColor: theme.choices.item.backgroundColor.pressed
6873
+ },
6874
+ hover: {
6875
+ backgroundColor: theme.choices.item.backgroundColor.hover
6876
+ },
6877
+ hoverWhenSelected: {
6878
+ backgroundColor: theme.choices.item.backgroundColor.hoverWhenSelected
6879
+ }
6880
+ }
6881
+ },
6882
+ tag: {
6883
+ primary: {
6884
+ fill: {
6885
+ backgroundColor: theme.tag.primary.fill.backgroundColor,
6886
+ borderColor: theme.tag.primary.fill.borderColor
6887
+ },
6888
+ outline: {
6889
+ backgroundColor: theme.tag.primary.outline.backgroundColor,
6890
+ borderColor: theme.tag.primary.outline.borderColor
6891
+ }
6892
+ },
6893
+ "default": {
6894
+ fill: {
6895
+ backgroundColor: theme.tag["default"].fill.backgroundColor,
6896
+ borderColor: theme.tag["default"].fill.borderColor
6897
+ },
6898
+ outline: {
6899
+ backgroundColor: theme.tag["default"].outline.backgroundColor,
6900
+ borderColor: theme.tag["default"].outline.borderColor
6901
+ }
6902
+ },
6903
+ danger: {
6904
+ fill: {
6905
+ backgroundColor: theme.tag.danger.fill.backgroundColor,
6906
+ borderColor: theme.tag.danger.fill.borderColor
6907
+ },
6908
+ outline: {
6909
+ backgroundColor: theme.tag.danger.outline.backgroundColor,
6910
+ borderColor: theme.tag.danger.outline.borderColor
6911
+ }
6912
+ },
6913
+ warn: {
6914
+ fill: {
6915
+ backgroundColor: theme.tag.warn.fill.backgroundColor,
6916
+ borderColor: theme.tag.warn.fill.borderColor
6917
+ },
6918
+ outline: {
6919
+ backgroundColor: theme.tag.warn.outline.backgroundColor,
6920
+ borderColor: theme.tag.warn.outline.borderColor
6921
+ }
6922
+ }
6923
+ },
6915
6924
  tooltip: {
6916
6925
  backgroundColor: theme.tooltip.backgroundColor
6917
6926
  },
@@ -6935,6 +6944,17 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6935
6944
  input: {
6936
6945
  states: theme.forms.input.states
6937
6946
  },
6947
+ inputTag: {
6948
+ danger: {
6949
+ backgroundColor: theme.forms.inputTag.danger.backgroundColor
6950
+ },
6951
+ "default": {
6952
+ backgroundColor: theme.forms.inputTag["default"].backgroundColor
6953
+ },
6954
+ success: {
6955
+ backgroundColor: theme.forms.inputTag.success.backgroundColor
6956
+ }
6957
+ },
6938
6958
  radioButtonGroup: {
6939
6959
  item: {
6940
6960
  borderColor: theme.forms.radioButtonGroup.item.borderColor,
@@ -7033,6 +7053,49 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7033
7053
  dark: {
7034
7054
  backgroundColor: theme.highlight.dark.backgroundColor
7035
7055
  }
7056
+ },
7057
+ verticalSteps: {
7058
+ active: {
7059
+ icon: {
7060
+ backgroundColor: theme.verticalSteps.active.icon.backgroundColor,
7061
+ textColor: theme.verticalSteps.active.icon.textColor
7062
+ }
7063
+ },
7064
+ done: {
7065
+ icon: {
7066
+ backgroundColor: theme.verticalSteps.done.icon.backgroundColor,
7067
+ textColor: theme.verticalSteps.done.icon.textColor
7068
+ }
7069
+ },
7070
+ "default": {
7071
+ icon: {
7072
+ backgroundColor: theme.verticalSteps["default"].icon.backgroundColor,
7073
+ textColor: theme.verticalSteps["default"].icon.textColor
7074
+ }
7075
+ }
7076
+ },
7077
+ listItem: {
7078
+ borderColor: theme.listItem.borderColor
7079
+ },
7080
+ picker: {
7081
+ ios: {
7082
+ item: {
7083
+ selected: {
7084
+ color: theme.picker.ios.selected.color
7085
+ }
7086
+ }
7087
+ },
7088
+ android: {
7089
+ item: {
7090
+ "default": {
7091
+ backgroundColor: theme.picker.android["default"].backgroundColor
7092
+ },
7093
+ selected: {
7094
+ color: theme.picker.android.selected.color,
7095
+ backgroundColor: theme.picker.android.selected.backgroundColor
7096
+ }
7097
+ }
7098
+ }
7036
7099
  }
7037
7100
  }),
7038
7101
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.colors
@@ -7067,6 +7130,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7067
7130
  cardModal: {
7068
7131
  borderRadius: theme.cardModal.borderRadius
7069
7132
  },
7133
+ choices: {
7134
+ item: {
7135
+ borderRadius: theme.choices.item.borderRadius
7136
+ }
7137
+ },
7070
7138
  dialogModal: {
7071
7139
  borderRadius: theme.dialogModal.borderRadius
7072
7140
  },
@@ -7074,6 +7142,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7074
7142
  input: {
7075
7143
  borderRadius: theme.forms.input.borderRadius
7076
7144
  },
7145
+ inputTag: {
7146
+ borderRadius: theme.forms.inputTag.borderRadius
7147
+ },
7077
7148
  radioButtonGroup: {
7078
7149
  item: {
7079
7150
  borderRadius: theme.forms.radioButtonGroup.item.borderRadius
@@ -7095,6 +7166,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7095
7166
  iconButton: {
7096
7167
  borderRadius: theme.iconButton.borderRadius
7097
7168
  },
7169
+ tag: {
7170
+ borderRadius: theme.tag.borderRadius
7171
+ },
7098
7172
  tooltip: {
7099
7173
  borderRadius: theme.tooltip.borderRadius
7100
7174
  },
@@ -7206,6 +7280,13 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7206
7280
  button: {
7207
7281
  borderWidth: theme.button.borderWidth
7208
7282
  },
7283
+ choices: {
7284
+ item: {
7285
+ disabled: {
7286
+ borderWidth: theme.choices.item.disabled.border.width
7287
+ }
7288
+ }
7289
+ },
7209
7290
  iconButton: {
7210
7291
  borderWidth: theme.iconButton.borderWidth
7211
7292
  },
@@ -7232,9 +7313,46 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7232
7313
  footer: {
7233
7314
  borderWidth: theme.cardModal.footer.borderWidth
7234
7315
  }
7235
- }
7236
- },
7237
- app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.borderWidths
7316
+ },
7317
+ listItem: {
7318
+ borderWidth: theme.listItem.borderWidth
7319
+ },
7320
+ tag: {
7321
+ primary: {
7322
+ fill: {
7323
+ borderWidth: theme.tag.primary.fill.borderWidth
7324
+ },
7325
+ outline: {
7326
+ borderWidth: theme.tag.primary.outline.borderWidth
7327
+ }
7328
+ },
7329
+ "default": {
7330
+ fill: {
7331
+ borderWidth: theme.tag["default"].fill.borderWidth
7332
+ },
7333
+ outline: {
7334
+ borderWidth: theme.tag["default"].outline.borderWidth
7335
+ }
7336
+ },
7337
+ danger: {
7338
+ fill: {
7339
+ borderWidth: theme.tag.danger.fill.borderWidth
7340
+ },
7341
+ outline: {
7342
+ borderWidth: theme.tag.danger.outline.borderWidth
7343
+ }
7344
+ },
7345
+ warn: {
7346
+ fill: {
7347
+ borderWidth: theme.tag.warn.fill.borderWidth
7348
+ },
7349
+ outline: {
7350
+ borderWidth: theme.tag.warn.outline.borderWidth
7351
+ }
7352
+ }
7353
+ }
7354
+ },
7355
+ app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.borderWidths
7238
7356
  },
7239
7357
  sizes: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, spaces.positive), spaces.negative), overridenNativeBaseSizeandSpaceScale), {}, {
7240
7358
  kitt: {
@@ -7303,6 +7421,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7303
7421
  },
7304
7422
  textArea: {
7305
7423
  minHeight: theme.forms.textArea.minHeight
7424
+ },
7425
+ timePicker: {
7426
+ minWidth: theme.forms.timePicker.minWidth
7306
7427
  }
7307
7428
  },
7308
7429
  iconButton: {
@@ -7315,6 +7436,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7315
7436
  height: theme.fullscreenModal.header.height
7316
7437
  }
7317
7438
  },
7439
+ pageLoader: {
7440
+ size: theme.pageLoader.size
7441
+ },
7318
7442
  tooltip: {
7319
7443
  maxWidth: theme.tooltip.maxWidth,
7320
7444
  arrow: {
@@ -7334,6 +7458,16 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7334
7458
  size: theme.skeleton.shape.square.size
7335
7459
  }
7336
7460
  }
7461
+ },
7462
+ picker: {
7463
+ ios: {
7464
+ "default": {
7465
+ height: theme.picker.ios["default"].height
7466
+ },
7467
+ landscape: {
7468
+ height: theme.picker.ios.landscape.height
7469
+ }
7470
+ }
7337
7471
  }
7338
7472
  },
7339
7473
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.sizes
@@ -7379,10 +7513,26 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7379
7513
  highlight: {
7380
7514
  padding: theme.highlight.padding
7381
7515
  },
7516
+ listItem: {
7517
+ verticalPadding: theme.listItem.verticalPadding,
7518
+ horizontalPadding: theme.listItem.horizontalPadding
7519
+ },
7520
+ tag: {
7521
+ verticalPadding: theme.tag.verticalPadding,
7522
+ horizontalPadding: theme.tag.horizontalPadding
7523
+ },
7382
7524
  tooltip: {
7383
7525
  horizontalPadding: theme.tooltip.horizontalPadding,
7384
7526
  verticalPadding: theme.tooltip.verticalPadding,
7385
7527
  floatingPadding: theme.tooltip.floatingPadding
7528
+ },
7529
+ picker: {
7530
+ android: {
7531
+ item: {
7532
+ verticalPadding: theme.picker.android.verticalPadding,
7533
+ horizontalPadding: theme.picker.android.horizontalPadding
7534
+ }
7535
+ }
7386
7536
  }
7387
7537
  },
7388
7538
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.space
@@ -7952,7 +8102,7 @@ function KittNativeBaseProvider(_ref) {
7952
8102
  });
7953
8103
  }
7954
8104
 
7955
- var _excluded$6 = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
8105
+ var _excluded$8 = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
7956
8106
  function SimpleContainer(_ref) {
7957
8107
  var children = _ref.children;
7958
8108
  return children;
@@ -7966,7 +8116,7 @@ function NavigationModalBehaviour(_ref2) {
7966
8116
  onEnter = _ref2.onEnter,
7967
8117
  onExit = _ref2.onExit,
7968
8118
  onClose = _ref2.onClose,
7969
- props = _objectWithoutProperties(_ref2, _excluded$6);
8119
+ props = _objectWithoutProperties(_ref2, _excluded$8);
7970
8120
  var AnimationComponent = useBreakpointValue({
7971
8121
  base: FullscreenModalAnimation,
7972
8122
  small: CardModalAnimation
@@ -8234,47 +8384,46 @@ function AnimatedFilledCircle() {
8234
8384
  });
8235
8385
  }
8236
8386
 
8237
- var PageLoaderContainer = /*#__PURE__*/styled.View.withConfig({
8238
- displayName: "PageLoader__PageLoaderContainer"
8239
- })(["transform:scale(-1) rotate(90deg);position:relative;width:", "px;height:", "px;"], function (_ref) {
8240
- var theme = _ref.theme;
8241
- return theme.kitt.pageLoader.size;
8242
- }, function (_ref2) {
8243
- var theme = _ref2.theme;
8244
- return theme.kitt.pageLoader.size;
8245
- });
8246
8387
  function PageLoader() {
8247
- return /*#__PURE__*/jsxs(PageLoaderContainer, {
8388
+ var sharedTransformStyle = {
8389
+ style: {
8390
+ /* Needed to make the animation starting from the top of the circles */
8391
+ transform: [{
8392
+ rotate: '90deg'
8393
+ }, {
8394
+ scale: -1
8395
+ }]
8396
+ }
8397
+ };
8398
+ return /*#__PURE__*/jsxs(View, {
8399
+ position: "relative",
8400
+ height: "kitt.pageLoader.size",
8401
+ width: "kitt.pageLoader.size",
8402
+ _ios: sharedTransformStyle,
8403
+ _android: sharedTransformStyle,
8248
8404
  children: [/*#__PURE__*/jsx(AnimatedBackgroundCircle, {}), /*#__PURE__*/jsx(AnimatedFilledCircle, {})]
8249
8405
  });
8250
8406
  }
8251
8407
 
8252
- var ContainerPressable = /*#__PURE__*/styled.Pressable.withConfig({
8253
- displayName: "PickerItem__ContainerPressable"
8254
- })(["padding:", ";background-color:", ";"], function (_ref) {
8255
- var theme = _ref.theme;
8256
- return theme.kitt.picker.android.padding;
8257
- }, function (_ref2) {
8258
- var theme = _ref2.theme,
8259
- $isSelected = _ref2.$isSelected;
8260
- return $isSelected ? theme.kitt.picker.android.selected.backgroundColor : theme.kitt.picker.android["default"].backgroundColor;
8261
- });
8262
-
8263
8408
  // This item is for Android only, iOS uses its own implementation and web is not supported yet
8264
- function PickerItem(_ref3) {
8265
- var label = _ref3.label,
8266
- value = _ref3.value,
8267
- isSelected = _ref3.isSelected,
8268
- onPress = _ref3.onPress;
8269
- return /*#__PURE__*/jsx(ContainerPressable, {
8409
+ function PickerItem(_ref) {
8410
+ var label = _ref.label,
8411
+ value = _ref.value,
8412
+ isSelected = _ref.isSelected,
8413
+ onPress = _ref.onPress;
8414
+ return /*#__PURE__*/jsx(Pressable, {
8270
8415
  accessibilityRole: "button",
8271
8416
  accessibilityState: {
8272
8417
  selected: isSelected
8273
8418
  },
8274
- $isSelected: isSelected,
8275
- onPress: onPress ? function () {
8276
- return onPress(value);
8277
- } : undefined,
8419
+ backgroundColor: isSelected ? 'kitt.picker.android.item.selected.backgroundColor' : 'kitt.picker.android.item.default.backgroundColor',
8420
+ paddingX: "kitt.picker.android.horizontalPadding",
8421
+ paddingY: "kitt.picker.android.verticalPadding",
8422
+ onPress: function handelPress() {
8423
+ if (onPress) {
8424
+ onPress(value);
8425
+ }
8426
+ },
8278
8427
  children: /*#__PURE__*/jsx(Typography.Text, {
8279
8428
  base: "body",
8280
8429
  color: isSelected ? 'white' : undefined,
@@ -8292,69 +8441,86 @@ function Picker(_ref) {
8292
8441
  testID = _ref.testID,
8293
8442
  onValueSelected = _ref.onValueSelected,
8294
8443
  onClose = _ref.onClose;
8444
+ var sx = useSx();
8445
+
8295
8446
  // Max height is based on base Modal sizes (which are not themified): padding (4*20*2) + footer (58) + header (58) + default iOS picker height (216)
8296
8447
  var _useMediaQuery = useMediaQuery({
8297
8448
  maxHeight: 492
8298
8449
  }),
8299
8450
  _useMediaQuery2 = _slicedToArray(_useMediaQuery, 1),
8300
8451
  isMatchingMaxHeight = _useMediaQuery2[0];
8452
+ var iosItemStyle = sx({
8453
+ fontSize: 'baseAndSmall.body',
8454
+ lineHeight: 'baseAndSmall.body',
8455
+ fontFamily: 'bodies.regular',
8456
+ color: 'kitt.typography.black-light',
8457
+ // As it is displayed in a modal, we must hard code an height to ensure that the picker doesn't bleed out of it
8458
+ // We can't set a percentage as it will be computed based on the page height
8459
+ height: isMatchingMaxHeight ? 'kitt.picker.ios.landscape.height' : 'kitt.picker.ios.default.height'
8460
+ });
8461
+ var getIosTextStyle = function (isSelected) {
8462
+ return sx({
8463
+ color: isSelected ? 'kitt.picker.ios.selected.color' : undefined
8464
+ });
8465
+ };
8301
8466
  var _useState = useState(initialValue),
8302
8467
  _useState2 = _slicedToArray(_useState, 2),
8303
8468
  value = _useState2[0],
8304
8469
  setValue = _useState2[1];
8305
- return /*#__PURE__*/jsxs(Modal, {
8470
+ return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
8306
8471
  visible: isVisible,
8307
8472
  onClose: onClose,
8308
- children: [/*#__PURE__*/jsx(Modal.Header, {
8309
- children: /*#__PURE__*/jsx(Typography.Text, {
8310
- base: "body",
8311
- variant: "bold",
8312
- children: title
8313
- })
8314
- }), Platform.OS === 'ios' ? /*#__PURE__*/jsx(Picker$1, {
8315
- testID: testID,
8316
- selectedValue: value
8317
- // As it is displayed in a modal, we must hard code an height to ensure that the picker doesn't bleed out of it
8318
- // We can't set a percentage as it will be computed based on the page height
8319
- ,
8320
- itemStyle: _objectSpread(_objectSpread({}, theme.picker.ios["default"]), {}, {
8321
- height: isMatchingMaxHeight ? theme.picker.ios.landscape.height : theme.picker.ios["default"].height
8322
- }),
8323
- onValueChange: function onValueChange(itemValue) {
8324
- return setValue(itemValue);
8325
- },
8326
- children: React.Children.map(children, function (child) {
8327
- var item = child;
8473
+ children: /*#__PURE__*/jsxs(CardModal, {
8474
+ children: [/*#__PURE__*/jsx(CardModal.Header, {
8475
+ right: /*#__PURE__*/jsx(IconButton, {
8476
+ icon: /*#__PURE__*/jsx(XIcon, {}),
8477
+ onPress: onClose
8478
+ }),
8479
+ children: /*#__PURE__*/jsx(Typography.Text, {
8480
+ base: "body",
8481
+ variant: "bold",
8482
+ children: title
8483
+ })
8484
+ }), Platform.OS === 'ios' ? /*#__PURE__*/jsx(Picker$1, {
8485
+ testID: testID,
8486
+ selectedValue: value,
8487
+ itemStyle: iosItemStyle,
8488
+ onValueChange: function onValueChange(itemValue) {
8489
+ return setValue(itemValue);
8490
+ },
8491
+ children: React.Children.map(children, function (child) {
8492
+ var item = child;
8328
8493
 
8329
- // iOS Picker doesn't support a custom Item component, we need to override its props manually for the selected one
8330
- return /*#__PURE__*/cloneElement(item, {
8331
- color: item.props.value === value ? theme.picker.ios.selected.color : undefined
8332
- });
8333
- })
8334
- }) : /*#__PURE__*/jsx(ScrollView$2, {
8335
- testID: testID,
8336
- children: React.Children.map(children, function (child) {
8337
- var item = child;
8338
- return /*#__PURE__*/cloneElement(item, {
8339
- onPress: function onPress(newValue) {
8340
- return setValue(newValue);
8494
+ // iOS Picker doesn't support a custom Item component, we need to override its props manually for the selected one
8495
+ return /*#__PURE__*/cloneElement(item, {
8496
+ color: getIosTextStyle(item.props.value === value).color
8497
+ });
8498
+ })
8499
+ }) : /*#__PURE__*/jsx(ScrollView$2, {
8500
+ testID: testID,
8501
+ children: React.Children.map(children, function (child) {
8502
+ var item = child;
8503
+ return /*#__PURE__*/cloneElement(item, {
8504
+ onPress: function onPress(newValue) {
8505
+ return setValue(newValue);
8506
+ },
8507
+ isSelected: item.props.value === value
8508
+ });
8509
+ })
8510
+ }), /*#__PURE__*/jsx(CardModal.Footer, {
8511
+ children: /*#__PURE__*/jsx(Button, {
8512
+ stretch: true,
8513
+ type: "primary",
8514
+ onPress: function handleValueSelected() {
8515
+ onValueSelected(value);
8516
+ onClose();
8341
8517
  },
8342
- isSelected: item.props.value === value
8343
- });
8344
- })
8345
- }), /*#__PURE__*/jsx(Modal.Footer, {
8346
- children: /*#__PURE__*/jsx(Button, {
8347
- stretch: true,
8348
- type: "primary",
8349
- onPress: function handleValueSelected() {
8350
- onValueSelected(value);
8351
- onClose();
8352
- },
8353
- children: validateButtonLabel || /*#__PURE__*/jsx(FormattedMessage, {
8354
- id: "kitt-universal.Picker.validate"
8518
+ children: validateButtonLabel || /*#__PURE__*/jsx(FormattedMessage, {
8519
+ id: "kitt-universal.Picker.validate"
8520
+ })
8355
8521
  })
8356
- })
8357
- })]
8522
+ })]
8523
+ })
8358
8524
  });
8359
8525
  }
8360
8526
  Picker.Item = PickerItem;
@@ -8412,19 +8578,10 @@ function SegmentedProgressBar(_ref) {
8412
8578
  });
8413
8579
  }
8414
8580
 
8415
- var Container$2 = /*#__PURE__*/styled.View.withConfig({
8416
- displayName: "SkeletonContent__Container"
8417
- })(["background-color:", ";border-color:", ";height:100%;width:100%;"], function (_ref) {
8418
- var theme = _ref.theme;
8419
- return theme.kitt.skeleton.backgroundColor;
8420
- }, function (_ref2) {
8421
- var theme = _ref2.theme;
8422
- return theme.kitt.skeleton.flareColor;
8423
- });
8424
8581
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
8425
- function SkeletonContent(_ref3) {
8426
- var isLoading = _ref3.isLoading,
8427
- width = _ref3.width;
8582
+ function SkeletonContent(_ref) {
8583
+ var isLoading = _ref.isLoading,
8584
+ width = _ref.width;
8428
8585
  var theme = useTheme();
8429
8586
  var sharedX = useSharedValue(0);
8430
8587
  useEffect(function () {
@@ -8450,11 +8607,15 @@ function SkeletonContent(_ref3) {
8450
8607
  };
8451
8608
  _f.asString = "function _f(){const{interpolate,sharedX,width}=jsThis._closure;{return{transform:[{translateX:interpolate(sharedX.value,[0,1],[-width,width])}]};}}";
8452
8609
  _f.__workletHash = 1670955855244;
8453
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Skeleton/SkeletonContent.tsx (42:47)";
8610
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Skeleton/SkeletonContent.tsx (36:47)";
8454
8611
  _f.__optimalization = 3;
8455
8612
  return _f;
8456
8613
  }());
8457
- return /*#__PURE__*/jsx(Container$2, {
8614
+ return /*#__PURE__*/jsx(View, {
8615
+ height: "100%",
8616
+ width: "100%",
8617
+ backgroundColor: "kitt.skeleton.backgroundColor",
8618
+ borderColor: "kitt.skeleton.flareColor",
8458
8619
  children: /*#__PURE__*/jsx(AnimatedLinearGradient, {
8459
8620
  colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
8460
8621
  locations: [0.1, 0.5, 0.9],
@@ -8471,7 +8632,7 @@ function SkeletonContent(_ref3) {
8471
8632
  });
8472
8633
  }
8473
8634
 
8474
- var _excluded$5 = ["isLoading", "style"],
8635
+ var _excluded$7 = ["isLoading", "style"],
8475
8636
  _excluded2$1 = ["size"],
8476
8637
  _excluded3$1 = ["size"],
8477
8638
  _excluded4 = ["size"];
@@ -8479,7 +8640,7 @@ function Skeleton(_ref) {
8479
8640
  var _ref$isLoading = _ref.isLoading,
8480
8641
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
8481
8642
  style = _ref.style,
8482
- props = _objectWithoutProperties(_ref, _excluded$5);
8643
+ props = _objectWithoutProperties(_ref, _excluded$7);
8483
8644
  var _useState = useState(0),
8484
8645
  _useState2 = _slicedToArray(_useState, 2),
8485
8646
  width = _useState2[0],
@@ -8674,7 +8835,7 @@ function getShouldDisplay2x() {
8674
8835
  return currentDevicePixelRatio > 1;
8675
8836
  }
8676
8837
 
8677
- var _excluded$4 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
8838
+ var _excluded$6 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
8678
8839
  var mapBoxMaxPictureWidth = 1280;
8679
8840
 
8680
8841
  // Mapbox requestable width for image is between 1 - 1280px
@@ -8692,7 +8853,7 @@ function StaticMap(_ref) {
8692
8853
  center = _ref.center,
8693
8854
  onLoaded = _ref.onLoaded,
8694
8855
  onError = _ref.onError,
8695
- props = _objectWithoutProperties(_ref, _excluded$4);
8856
+ props = _objectWithoutProperties(_ref, _excluded$6);
8696
8857
  var _useState = useState(getPictureWidth(width)),
8697
8858
  _useState2 = _slicedToArray(_useState, 2),
8698
8859
  currentWidth = _useState2[0],
@@ -8782,21 +8943,17 @@ StaticMap.Loader = StaticMapLoader;
8782
8943
  StaticMap.Error = StaticMapError;
8783
8944
  StaticMap.Marker = StaticMapMarker;
8784
8945
 
8785
- var Flex = /*#__PURE__*/styled.View.withConfig({
8786
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
8787
- return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
8788
- }
8789
- }).withConfig({
8790
- displayName: "Flex"
8791
- })(["display:flex;flex-direction:", ";flex-wrap:wrap;padding:", "px;"], function (_ref) {
8792
- var direction = _ref.direction;
8793
- return direction;
8794
- }, function (_ref2) {
8795
- var theme = _ref2.theme,
8796
- _ref2$padding = _ref2.padding,
8797
- padding = _ref2$padding === void 0 ? 0 : _ref2$padding;
8798
- return padding * theme.kitt.spacing;
8799
- });
8946
+ var _excluded$5 = ["direction", "wrap"];
8947
+ function Flex(_ref) {
8948
+ var direction = _ref.direction,
8949
+ _ref$wrap = _ref.wrap,
8950
+ wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
8951
+ props = _objectWithoutProperties(_ref, _excluded$5);
8952
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8953
+ flexDirection: direction,
8954
+ flexWrap: wrap
8955
+ }));
8956
+ }
8800
8957
 
8801
8958
  var storyPadding = 'kitt.4';
8802
8959
 
@@ -8931,14 +9088,14 @@ function Story(_ref) {
8931
9088
  });
8932
9089
  }
8933
9090
 
8934
- var _excluded$3 = ["title", "children", "internalIsDemoSection"],
9091
+ var _excluded$4 = ["title", "children", "internalIsDemoSection"],
8935
9092
  _excluded2 = ["title", "children"],
8936
9093
  _excluded3 = ["title", "children"];
8937
9094
  function StorySection(_ref) {
8938
9095
  var title = _ref.title,
8939
9096
  children = _ref.children,
8940
9097
  internalIsDemoSection = _ref.internalIsDemoSection,
8941
- props = _objectWithoutProperties(_ref, _excluded$3);
9098
+ props = _objectWithoutProperties(_ref, _excluded$4);
8942
9099
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
8943
9100
  return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
8944
9101
  marginBottom: "kitt.8"
@@ -9066,30 +9223,6 @@ var StoryGrid = {
9066
9223
  Col: StoryGridCol
9067
9224
  };
9068
9225
 
9069
- var Container$1 = /*#__PURE__*/styled.View.withConfig({
9070
- displayName: "Tag__Container"
9071
- })(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
9072
- var theme = _ref.theme,
9073
- type = _ref.type,
9074
- variant = _ref.variant;
9075
- return theme.kitt.tag[type][variant].backgroundColor;
9076
- }, function (_ref2) {
9077
- var theme = _ref2.theme,
9078
- type = _ref2.type,
9079
- variant = _ref2.variant;
9080
- return theme.kitt.tag[type][variant].borderWidth;
9081
- }, function (_ref3) {
9082
- var theme = _ref3.theme,
9083
- type = _ref3.type,
9084
- variant = _ref3.variant;
9085
- return theme.kitt.tag[type][variant].borderColor;
9086
- }, function (_ref4) {
9087
- var theme = _ref4.theme;
9088
- return theme.kitt.tag.padding;
9089
- }, function (_ref5) {
9090
- var theme = _ref5.theme;
9091
- return theme.kitt.tag.borderRadius;
9092
- });
9093
9226
  var getLabelColor = function (type, variant) {
9094
9227
  switch (type) {
9095
9228
  case 'danger':
@@ -9114,15 +9247,20 @@ var getLabelColor = function (type, variant) {
9114
9247
  }
9115
9248
  }
9116
9249
  };
9117
- function Tag(_ref6) {
9118
- var label = _ref6.label,
9119
- _ref6$type = _ref6.type,
9120
- type = _ref6$type === void 0 ? 'default' : _ref6$type,
9121
- _ref6$variant = _ref6.variant,
9122
- variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
9123
- return /*#__PURE__*/jsx(Container$1, {
9124
- type: type,
9125
- variant: variant,
9250
+ function Tag(_ref) {
9251
+ var label = _ref.label,
9252
+ _ref$type = _ref.type,
9253
+ type = _ref$type === void 0 ? 'default' : _ref$type,
9254
+ _ref$variant = _ref.variant,
9255
+ variant = _ref$variant === void 0 ? 'fill' : _ref$variant;
9256
+ return /*#__PURE__*/jsx(View, {
9257
+ alignSelf: "flex-start",
9258
+ borderRadius: "kitt.tag.borderRadius",
9259
+ paddingX: "kitt.tag.horizontalPadding",
9260
+ paddingY: "kitt.tag.verticalPadding",
9261
+ backgroundColor: "kitt.tag.".concat(type, ".").concat(variant, ".backgroundColor"),
9262
+ borderColor: "kitt.tag.".concat(type, ".").concat(variant, ".borderColor"),
9263
+ borderWidth: "kitt.tag.".concat(type, ".").concat(variant, ".borderWidth"),
9126
9264
  children: /*#__PURE__*/jsx(Typography.Text, {
9127
9265
  base: "body-xsmall",
9128
9266
  color: getLabelColor(type, variant),
@@ -9131,194 +9269,200 @@ function Tag(_ref6) {
9131
9269
  });
9132
9270
  }
9133
9271
 
9134
- /** @deprecated use native-base instead for SSR compatibility */
9135
- var getTypographyTypeConfigKey = function (theme) {
9136
- var isMediumOrAbove = theme.responsive.matchWindowSize({
9137
- minWidth: KittBreakpoints.MEDIUM
9138
- });
9139
- return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
9140
- };
9141
- /** @deprecated this mixin is not SSR compatible */
9142
- var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
9143
- var theme = _ref.theme,
9144
- $state = _ref.$state;
9145
- return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
9146
- }, function (_ref2) {
9147
- var theme = _ref2.theme;
9148
- return theme.kitt.forms.input.borderWidth;
9149
- }, function (_ref3) {
9150
- var theme = _ref3.theme;
9151
- return theme.kitt.forms.input.borderRadius;
9152
- }, function (_ref4) {
9153
- var theme = _ref4.theme,
9154
- $state = _ref4.$state;
9155
- return theme.kitt.forms.input.states[$state].borderColor;
9156
- }, function (_ref5) {
9157
- var theme = _ref5.theme;
9158
- var typeConfigKey = getTypographyTypeConfigKey(theme);
9159
- return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
9160
- }, function (_ref6) {
9161
- var theme = _ref6.theme,
9162
- $state = _ref6.$state;
9163
- return theme.kitt.forms.input.states[$state].color || theme.kitt.forms.input.states["default"].color;
9164
- }, function (_ref7) {
9165
- var theme = _ref7.theme;
9166
- return Platform.OS === 'web' ? theme.kitt.typography.types.bodies.fontFamily.web.regular : theme.kitt.typography.types.bodies.fontFamily["native"].regular;
9167
- });
9168
-
9169
- function Title(_ref) {
9170
- var children = _ref.children;
9171
- return /*#__PURE__*/jsx(Modal.Header, {
9172
- children: /*#__PURE__*/jsx(Typography.Text, {
9173
- base: "body",
9174
- variant: "bold",
9175
- children: children
9176
- })
9177
- });
9178
- }
9179
- function ModalDateTimePicker(_ref2) {
9180
- var title = _ref2.title,
9181
- visible = _ref2.visible,
9182
- value = _ref2.value,
9183
- validateButtonLabel = _ref2.validateButtonLabel,
9184
- onChange = _ref2.onChange,
9185
- onClose = _ref2.onClose;
9272
+ function ModalDateTimePicker(_ref) {
9273
+ var title = _ref.title,
9274
+ visible = _ref.visible,
9275
+ value = _ref.value,
9276
+ validateButtonLabel = _ref.validateButtonLabel,
9277
+ testID = _ref.testID,
9278
+ pickerTestID = _ref.pickerTestID,
9279
+ onChange = _ref.onChange,
9280
+ onClose = _ref.onClose;
9186
9281
  var _useState = useState(value),
9187
9282
  _useState2 = _slicedToArray(_useState, 2),
9188
9283
  currentValue = _useState2[0],
9189
9284
  setCurrentValue = _useState2[1];
9190
9285
 
9191
9286
  // Prevent unsynced value between the modal and its parent state
9192
-
9193
- return /*#__PURE__*/jsx(Modal, {
9287
+ var handleClose = function () {
9288
+ setCurrentValue(value);
9289
+ onClose();
9290
+ };
9291
+ var handleChange = function (nextDate) {
9292
+ if (nextDate) setCurrentValue(nextDate);
9293
+ };
9294
+ var buttonContent = validateButtonLabel || /*#__PURE__*/jsx(FormattedMessage, {
9295
+ id: "kitt-universal.ModalDateTimePicker.confirm"
9296
+ });
9297
+ return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
9194
9298
  visible: Boolean(visible),
9195
- onClose: function handleClose() {
9196
- setCurrentValue(value);
9197
- onClose();
9198
- },
9199
- children: visible ? /*#__PURE__*/jsxs(Fragment, {
9200
- children: [title ? /*#__PURE__*/jsx(Title, {
9201
- children: title
9202
- }) : null, /*#__PURE__*/jsx(Modal.Body, {
9299
+ onClose: handleClose,
9300
+ children: /*#__PURE__*/jsxs(CardModal, {
9301
+ testID: testID,
9302
+ children: [title ? /*#__PURE__*/jsx(CardModal.Header, {
9303
+ title: title,
9304
+ right: /*#__PURE__*/jsx(IconButton, {
9305
+ testID: "timePicker.ModalDateTimePicker.closeButton",
9306
+ icon: /*#__PURE__*/jsx(XIcon, {}),
9307
+ onPress: handleClose
9308
+ })
9309
+ }) : null, /*#__PURE__*/jsx(CardModal.Body, {
9203
9310
  children: /*#__PURE__*/jsx(DateTimePicker, {
9204
9311
  is24Hour: true,
9205
- testID: "timePicker.ModalDateTimePicker.dateTimeNativePicker",
9312
+ testID: pickerTestID,
9206
9313
  value: currentValue,
9207
9314
  mode: "time",
9208
9315
  display: Platform.OS === 'ios' ? 'spinner' : 'default',
9209
- onChange: function (_event, date) {
9210
- return setCurrentValue(function (prev) {
9211
- return date || prev;
9212
- });
9316
+ onChange: function (event, date) {
9317
+ return handleChange(date);
9213
9318
  }
9214
9319
  })
9215
- }), /*#__PURE__*/jsx(Modal.Footer, {
9320
+ }), /*#__PURE__*/jsx(CardModal.Footer, {
9216
9321
  children: /*#__PURE__*/jsx(Button, {
9217
9322
  stretch: true,
9323
+ testID: "timePicker.ModalDateTimePicker.submitButton",
9218
9324
  type: "primary",
9219
9325
  onPress: function handleSubmit() {
9220
9326
  onChange(currentValue);
9221
9327
  },
9222
- children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
9223
- children: validateButtonLabel
9224
- }) : /*#__PURE__*/jsx(FormattedMessage, {
9225
- id: "kitt-universal.ModalDateTimePicker.confirm"
9226
- })
9328
+ children: buttonContent
9227
9329
  })
9228
9330
  })]
9229
- }) : null
9331
+ })
9230
9332
  });
9231
9333
  }
9232
9334
 
9233
- var timePickerPlaceholder = '--:--';
9234
- var formatNumberToTimeString = function (time) {
9335
+ function formatNumberToTimeString(time) {
9235
9336
  return "".concat(String(time).padStart(2, '0'));
9236
- };
9237
- var formatDateToTimeString = function (date) {
9337
+ }
9338
+ function formatDateToTimeString(date) {
9238
9339
  return "".concat(formatNumberToTimeString(date.getHours()), ":").concat(formatNumberToTimeString(date.getMinutes()));
9239
- };
9240
- var useTimePicker = function (value, onChange, onBlur, disabled, defaultValue, isDefaultVisible) {
9241
- var _useState = useState(Boolean(isDefaultVisible)),
9242
- _useState2 = _slicedToArray(_useState, 2),
9243
- isTimePickerModalVisible = _useState2[0],
9244
- setIsTimePickerModalVisible = _useState2[1];
9245
- var todayAtNoon = useMemo(function () {
9246
- var now = new Date(2000, 0, 1, 12);
9247
- return new Date(now.getFullYear(), now.getMonth(), now.getDay(), 12);
9248
- }, []);
9249
- var defaultDate = defaultValue || todayAtNoon;
9250
- var dateTimePickerValue = value || defaultDate;
9251
- var displayedValue = value === null ? timePickerPlaceholder : formatDateToTimeString(dateTimePickerValue);
9252
- var timePickerState = isTimePickerModalVisible ? 'focus' : 'default';
9253
- return {
9254
- dateTimePickerValue: dateTimePickerValue,
9255
- displayedValue: displayedValue,
9256
- timePickerState: timePickerState,
9257
- isTimePickerModalVisible: isTimePickerModalVisible,
9258
- handleInputPress: function handleInputPress() {
9259
- if (disabled) {
9260
- return;
9261
- }
9262
- setIsTimePickerModalVisible(true);
9263
- },
9264
- handleTimeChange: function handleTimeChange(date) {
9265
- setIsTimePickerModalVisible(false);
9266
- onChange(date || defaultDate);
9267
- onBlur();
9268
- },
9269
- handleModalClose: function handleModalClose() {
9270
- return setIsTimePickerModalVisible(false);
9340
+ }
9341
+
9342
+ function getCurrentInternalForcedState(_ref) {
9343
+ var isDisabled = _ref.isDisabled,
9344
+ isHoveredInternal = _ref.isHoveredInternal,
9345
+ isFocusedInternal = _ref.isFocusedInternal,
9346
+ isPressedInternal = _ref.isPressedInternal;
9347
+ if (isDisabled) return 'disabled';
9348
+ if (isHoveredInternal) return 'hover';
9349
+ if (isFocusedInternal) return 'focus';
9350
+ if (isPressedInternal) return 'hover';
9351
+ return 'default';
9352
+ }
9353
+
9354
+ function TimePickerPressable(_ref) {
9355
+ var testID = _ref.testID,
9356
+ disabled = _ref.disabled,
9357
+ stretch = _ref.stretch,
9358
+ value = _ref.value,
9359
+ placeholder = _ref.placeholder,
9360
+ isHoveredInternal = _ref.isHoveredInternal,
9361
+ isFocusedInternal = _ref.isFocusedInternal,
9362
+ isPressedInternal = _ref.isPressedInternal,
9363
+ onPress = _ref.onPress;
9364
+ return /*#__PURE__*/jsx(Pressable, {
9365
+ testID: testID,
9366
+ disabled: disabled,
9367
+ accessibilityRole: "button",
9368
+ width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
9369
+ onPress: onPress,
9370
+ children: function children(_ref2) {
9371
+ var isHovered = _ref2.isHovered,
9372
+ isFocused = _ref2.isFocused,
9373
+ isPressed = _ref2.isPressed;
9374
+ return /*#__PURE__*/jsxs(View, {
9375
+ position: "relative",
9376
+ children: [/*#__PURE__*/jsx(InputText, {
9377
+ internalForceState: getCurrentInternalForcedState({
9378
+ isDisabled: disabled,
9379
+ isHoveredInternal: isHovered || isHoveredInternal,
9380
+ isFocusedInternal: isFocused || isFocusedInternal,
9381
+ isPressedInternal: isPressed || isPressedInternal
9382
+ }),
9383
+ value: value ? formatDateToTimeString(value) : undefined,
9384
+ placeholder: placeholder,
9385
+ disabled: disabled,
9386
+ textAlign: "center"
9387
+ }), /*#__PURE__*/jsx(View, {
9388
+ position: "absolute",
9389
+ top: "0",
9390
+ left: "0",
9391
+ height: "100%",
9392
+ width: "100%"
9393
+ })]
9394
+ });
9271
9395
  }
9272
- };
9273
- };
9396
+ });
9397
+ }
9274
9398
 
9275
- var Container = /*#__PURE__*/styled.Pressable.withConfig({
9276
- displayName: "TimePicker__Container"
9277
- })(["", " width:100px;height:40px;justify-content:center;align-items:center;"], styledTextInputMixin);
9278
9399
  function TimePicker(_ref) {
9279
9400
  var title = _ref.title,
9280
- _ref$state = _ref.state,
9281
- state = _ref$state === void 0 ? 'default' : _ref$state,
9282
9401
  _ref$disabled = _ref.disabled,
9283
9402
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
9284
- forceDefaultValue = _ref.forceDefaultValue,
9403
+ stretch = _ref.stretch,
9285
9404
  value = _ref.value,
9286
9405
  validateButtonLabel = _ref.validateButtonLabel,
9287
9406
  isDefaultVisible = _ref.isDefaultVisible,
9407
+ _ref$placeholder = _ref.placeholder,
9408
+ placeholder = _ref$placeholder === void 0 ? '--:--' : _ref$placeholder,
9409
+ testID = _ref.testID,
9410
+ modalTestID = _ref.modalTestID,
9411
+ _ref$pickerTestID = _ref.pickerTestID,
9412
+ pickerTestID = _ref$pickerTestID === void 0 ? 'timePicker.ModalDateTimePicker.dateTimeNativePicker' : _ref$pickerTestID,
9413
+ isHoveredInternal = _ref.isHoveredInternal,
9414
+ isFocusedInternal = _ref.isFocusedInternal,
9415
+ isPressedInternal = _ref.isPressedInternal,
9288
9416
  onChange = _ref.onChange,
9289
9417
  onBlur = _ref.onBlur;
9290
- var _useTimePicker = useTimePicker(value || null, onChange, onBlur, disabled, forceDefaultValue, isDefaultVisible),
9291
- dateTimePickerValue = _useTimePicker.dateTimePickerValue,
9292
- displayedValue = _useTimePicker.displayedValue,
9293
- timePickerState = _useTimePicker.timePickerState,
9294
- handleInputPress = _useTimePicker.handleInputPress,
9295
- handleModalClose = _useTimePicker.handleModalClose,
9296
- handleTimeChange = _useTimePicker.handleTimeChange,
9297
- isTimePickerModalVisible = _useTimePicker.isTimePickerModalVisible;
9298
- return /*#__PURE__*/jsxs(Container, {
9299
- $state: timePickerState === 'default' ? state : timePickerState,
9300
- accessibilityRole: "button",
9301
- onPress: handleInputPress,
9302
- children: [/*#__PURE__*/jsx(Typography.Text, {
9303
- base: "body",
9304
- color: displayedValue === timePickerPlaceholder ? 'black-light' : 'black',
9305
- children: displayedValue
9306
- }), Platform.OS === 'android' && isTimePickerModalVisible ? /*#__PURE__*/jsx(DateTimePicker, {
9418
+ var _useState = useState(value),
9419
+ _useState2 = _slicedToArray(_useState, 2),
9420
+ currentValue = _useState2[0],
9421
+ setCurrentValue = _useState2[1];
9422
+ var _useState3 = useState(isDefaultVisible),
9423
+ _useState4 = _slicedToArray(_useState3, 2),
9424
+ isPickerVisible = _useState4[0],
9425
+ setIsPickerVisible = _useState4[1];
9426
+ var handleChange = function (nextDate) {
9427
+ setCurrentValue(nextDate);
9428
+ setIsPickerVisible(false);
9429
+ if (onChange) onChange(nextDate);
9430
+ if (onBlur) onBlur();
9431
+ };
9432
+ var pickerValue = currentValue || new Date();
9433
+ return /*#__PURE__*/jsxs(Fragment, {
9434
+ children: [/*#__PURE__*/jsx(TimePickerPressable, {
9435
+ testID: testID,
9436
+ disabled: disabled,
9437
+ stretch: stretch,
9438
+ value: currentValue,
9439
+ placeholder: placeholder,
9440
+ isHoveredInternal: isHoveredInternal,
9441
+ isFocusedInternal: isFocusedInternal,
9442
+ isPressedInternal: isPressedInternal,
9443
+ onPress: function handlePress() {
9444
+ setIsPickerVisible(true);
9445
+ }
9446
+ }), Platform.OS === 'android' && isPickerVisible ? /*#__PURE__*/jsx(DateTimePicker, {
9307
9447
  is24Hour: true,
9308
- testID: "timePicker.TimePicker.dateTimeNativePicker",
9309
- value: dateTimePickerValue,
9448
+ testID: pickerTestID,
9449
+ value: pickerValue,
9310
9450
  mode: "time",
9311
9451
  display: "default",
9312
- onChange: function (_event, date) {
9313
- return handleTimeChange(date);
9452
+ onChange: function (event, date) {
9453
+ return handleChange(date);
9314
9454
  }
9315
9455
  }) : null, Platform.OS !== 'android' ? /*#__PURE__*/jsx(ModalDateTimePicker, {
9456
+ visible: isPickerVisible,
9316
9457
  title: title,
9317
- visible: isTimePickerModalVisible,
9318
- value: dateTimePickerValue,
9458
+ testID: modalTestID,
9459
+ pickerTestID: pickerTestID,
9460
+ value: pickerValue,
9319
9461
  validateButtonLabel: validateButtonLabel,
9320
- onChange: handleTimeChange,
9321
- onClose: handleModalClose
9462
+ onChange: handleChange,
9463
+ onClose: function handleClose() {
9464
+ setIsPickerVisible(false);
9465
+ }
9322
9466
  }) : null]
9323
9467
  });
9324
9468
  }
@@ -9652,11 +9796,11 @@ function TypographyEmoji(_ref3) {
9652
9796
  });
9653
9797
  }
9654
9798
 
9655
- var _excluded$2 = ["as", "children"];
9799
+ var _excluded$3 = ["as", "children"];
9656
9800
  function StyleWebWrapper(_ref) {
9657
9801
  var as = _ref.as,
9658
9802
  children = _ref.children,
9659
- props = _objectWithoutProperties(_ref, _excluded$2);
9803
+ props = _objectWithoutProperties(_ref, _excluded$3);
9660
9804
  if (Platform.OS !== 'web') return children;
9661
9805
  // as or default to div. If as is undefined, T is div but typescript is not sure
9662
9806
  return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
@@ -9664,7 +9808,7 @@ function StyleWebWrapper(_ref) {
9664
9808
  }));
9665
9809
  }
9666
9810
 
9667
- var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
9811
+ var _excluded$2 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
9668
9812
  // overrides :global(a) in Link styles.module.css
9669
9813
  var _exp = function () {
9670
9814
  return function (_ref) {
@@ -9694,7 +9838,7 @@ function TypographyLink(_ref3) {
9694
9838
  href = _ref3.href,
9695
9839
  hrefAttrs = _ref3.hrefAttrs,
9696
9840
  onPress = _ref3.onPress,
9697
- otherProps = _objectWithoutProperties(_ref3, _excluded$1);
9841
+ otherProps = _objectWithoutProperties(_ref3, _excluded$2);
9698
9842
  return /*#__PURE__*/jsx(StyleWebWrapper, {
9699
9843
  as: TypographyLinkWebWrapper,
9700
9844
  $hasNoUnderline: noUnderline,
@@ -9807,7 +9951,7 @@ var KittThemeDecorator = makeDecorator({
9807
9951
  }
9808
9952
  });
9809
9953
 
9810
- var _excluded = ["children"];
9954
+ var _excluded$1 = ["children"];
9811
9955
  /**
9812
9956
  * Display children if match window size options
9813
9957
  *
@@ -9815,7 +9959,7 @@ var _excluded = ["children"];
9815
9959
  */
9816
9960
  function MatchWindowSize(_ref) {
9817
9961
  var children = _ref.children,
9818
- matchWindowSizeOptions = _objectWithoutProperties(_ref, _excluded);
9962
+ matchWindowSizeOptions = _objectWithoutProperties(_ref, _excluded$1);
9819
9963
  var match = useMatchWindowSize(matchWindowSizeOptions);
9820
9964
  if (!match) return null;
9821
9965
  return children;
@@ -9842,5 +9986,128 @@ function withTheme(WrappedComponent) {
9842
9986
  });
9843
9987
  }
9844
9988
 
9845
- export { ActionCard, Actions, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, FlatList, Flex, FullscreenModal, HStack, Highlight, Icon, IconButton, Image, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarkerLarge, MapMarkerPosition, MapMarkerSimple, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createResponsiveStyleFromProp, createWindowSizeHelper, getStaticMapImageUrl, hex2rgba, matchWindowSize, theme, useBottomSheet, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useStaticBottomSheet, useStoryBlockColor, useTheme, withTheme };
9989
+ var backgroundColors = {
9990
+ done: 'kitt.verticalSteps.done.icon.backgroundColor',
9991
+ active: 'kitt.verticalSteps.active.icon.backgroundColor',
9992
+ "default": 'kitt.verticalSteps.default.icon.backgroundColor'
9993
+ };
9994
+ function IconStatus(_ref) {
9995
+ var state = _ref.state,
9996
+ index = _ref.index;
9997
+ if (state === 'done') {
9998
+ return /*#__PURE__*/jsx(TypographyIcon, {
9999
+ icon: /*#__PURE__*/jsx(CheckIcon, {}),
10000
+ color: "kitt.verticalSteps.done.icon.textColor"
10001
+ });
10002
+ }
10003
+ if (state === 'active') {
10004
+ return /*#__PURE__*/jsx(Typography.Text, {
10005
+ textAlign: "center",
10006
+ variant: "bold",
10007
+ color: "kitt.verticalSteps.active.icon.textColor",
10008
+ children: index + 1
10009
+ });
10010
+ }
10011
+ return /*#__PURE__*/jsx(Typography.Text, {
10012
+ textAlign: "center",
10013
+ variant: "bold",
10014
+ color: "kitt.verticalSteps.default.icon.textColor",
10015
+ children: index + 1
10016
+ });
10017
+ }
10018
+ function StepIcon(_ref2) {
10019
+ var index = _ref2.index,
10020
+ _ref2$state = _ref2.state,
10021
+ state = _ref2$state === void 0 ? 'default' : _ref2$state;
10022
+ return /*#__PURE__*/jsx(View, {
10023
+ justifyContent: "center",
10024
+ alignItems: "center",
10025
+ width: 30,
10026
+ height: 30,
10027
+ borderRadius: 15,
10028
+ backgroundColor: backgroundColors[state],
10029
+ children: /*#__PURE__*/jsx(IconStatus, {
10030
+ state: state,
10031
+ index: index
10032
+ })
10033
+ });
10034
+ }
10035
+
10036
+ function ExternalStep() {
10037
+ return null;
10038
+ }
10039
+ function Step(_ref) {
10040
+ var _ref$index = _ref.index,
10041
+ index = _ref$index === void 0 ? 0 : _ref$index,
10042
+ children = _ref.children,
10043
+ _ref$state = _ref.state,
10044
+ state = _ref$state === void 0 ? 'default' : _ref$state,
10045
+ _ref$isLast = _ref.isLast,
10046
+ isLast = _ref$isLast === void 0 ? false : _ref$isLast,
10047
+ _ref$shouldDisableNex = _ref.shouldDisableNextLink,
10048
+ shouldDisableNextLink = _ref$shouldDisableNex === void 0 ? false : _ref$shouldDisableNex;
10049
+ return /*#__PURE__*/jsxs(HStack$1, {
10050
+ space: "kitt.2",
10051
+ flexGrow: 1,
10052
+ children: [/*#__PURE__*/jsxs(View, {
10053
+ marginTop: "kitt.2",
10054
+ paddingY: "kitt.2",
10055
+ backgroundColor: "kitt.white",
10056
+ children: [/*#__PURE__*/jsx(StepIcon, {
10057
+ state: state,
10058
+ index: index
10059
+ }), !isLast ? /*#__PURE__*/jsx(View, {
10060
+ backgroundColor: shouldDisableNextLink ? 'kitt.palettes.lateOcean.black100' : 'kitt.palettes.lateOcean.moonPurple',
10061
+ width: 1,
10062
+ position: "absolute",
10063
+ top: 46,
10064
+ left: 15,
10065
+ zIndex: -1,
10066
+ height: "100%"
10067
+ }) : null]
10068
+ }), /*#__PURE__*/jsx(View, {
10069
+ flexGrow: 1,
10070
+ children: /*#__PURE__*/jsx(ActionCard, {
10071
+ variant: "primary",
10072
+ children: children
10073
+ })
10074
+ })]
10075
+ });
10076
+ }
10077
+
10078
+ function getStepState(index, activeIndex) {
10079
+ if (index === activeIndex) {
10080
+ return 'active';
10081
+ }
10082
+ if (index < activeIndex) {
10083
+ return 'done';
10084
+ }
10085
+ return 'default';
10086
+ }
10087
+
10088
+ var _excluded = ["children", "activeIndex"];
10089
+ function VerticalSteps(_ref) {
10090
+ var children = _ref.children,
10091
+ activeIndex = _ref.activeIndex,
10092
+ props = _objectWithoutProperties(_ref, _excluded);
10093
+ return /*#__PURE__*/jsx(VStack$1, _objectSpread(_objectSpread({
10094
+ space: "kitt.4",
10095
+ width: "100%"
10096
+ }, props), {}, {
10097
+ children: Children.map(children, function (child, index) {
10098
+ if ((process.env.NODE_ENV !== "production") && child.type !== ExternalStep) {
10099
+ throw new Error('VerticalSteps only accepts VerticalSteps.Step as children');
10100
+ }
10101
+ var isLast = index === Children.count(children) - 1;
10102
+ return /*#__PURE__*/createElement(Step, _objectSpread(_objectSpread({}, child.props), {}, {
10103
+ index: index,
10104
+ isLast: isLast,
10105
+ state: getStepState(index, activeIndex)
10106
+ }), child.props.children);
10107
+ })
10108
+ }));
10109
+ }
10110
+ VerticalSteps.Step = ExternalStep;
10111
+
10112
+ export { ActionCard, Actions, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, FlatList, Flex, FullscreenModal, HStack, Highlight, Icon, IconButton, Image, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarkerLarge, MapMarkerPosition, MapMarkerSimple, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, createWindowSizeHelper, getStaticMapImageUrl, hex2rgba, matchWindowSize, theme, useBottomSheet, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useStaticBottomSheet, useStoryBlockColor, useTheme, withTheme };
9846
10113
  //# sourceMappingURL=index-browser-all.es.js.map