@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 { useContext, createContext, forwardRef, cloneElement, useState, useRef, useEffect, useMemo, Children, useReducer, Fragment as Fragment$1 } from 'react';
1
+ import { useContext, createContext, forwardRef, cloneElement, useState, useRef, useEffect, useMemo, Children, useReducer, Fragment as Fragment$1, 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, useBreakpointValue, useSx, Text, Input, NativeBaseProvider, extendTheme } from 'native-base';
3
3
  export { useBreakpointValue, useClipboard, useMediaQuery, useSx, useToken } from 'native-base';
4
4
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
@@ -13,14 +13,14 @@ import { ArcIcon, UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, InfoIcon, AlertTr
13
13
  export * from '@ornikar/kitt-icons';
14
14
  import { styled } from '@linaria/react';
15
15
  import * as BabelPluginStyledComponentsReactNative from 'react-native';
16
- import { useWindowDimensions, Pressable as Pressable$2, StyleSheet, View as View$2, ScrollView as ScrollView$2, Linking, Modal as Modal$1 } from 'react-native';
16
+ import { useWindowDimensions, ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, Modal as Modal$1 } from 'react-native';
17
17
  export { useWindowDimensions as useWindowSize } from 'react-native';
18
18
  import { Portal } from 'react-portal';
19
19
  import { CSSTransition } from 'react-transition-group';
20
- import styled$1, { css, ThemeProvider } from 'styled-components/native';
21
20
  import { parse } from 'twemoji-parser';
22
21
  import { parseNumber, getCountryCallingCode, isValidNumber } from 'libphonenumber-js';
23
22
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
23
+ import styled$1, { ThemeProvider } from 'styled-components/native';
24
24
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
25
25
  import { useFloating, autoUpdate, offset, autoPlacement, shift, arrow } from '@floating-ui/react-dom';
26
26
  import { useOnClickOutside } from 'usehooks-ts';
@@ -1040,6 +1040,10 @@ var textArea = {
1040
1040
  minHeight: 120
1041
1041
  };
1042
1042
 
1043
+ var timePicker = {
1044
+ minWidth: 100
1045
+ };
1046
+
1043
1047
  var forms = {
1044
1048
  datePicker: datePicker,
1045
1049
  input: input,
@@ -1048,7 +1052,8 @@ var forms = {
1048
1052
  textArea: textArea,
1049
1053
  checkbox: checkbox,
1050
1054
  inputTag: inputTag,
1051
- radioButtonGroup: radioButtonGroup
1055
+ radioButtonGroup: radioButtonGroup,
1056
+ timePicker: timePicker
1052
1057
  };
1053
1058
 
1054
1059
  var webAnimationContentDuration = 600;
@@ -1138,6 +1143,8 @@ var iconButton = {
1138
1143
 
1139
1144
  var listItem = {
1140
1145
  padding: '12px 16px',
1146
+ verticalPadding: 12,
1147
+ horizontalPadding: 16,
1141
1148
  borderColor: colors.separator,
1142
1149
  borderWidth: 1,
1143
1150
  innerMargin: 8
@@ -1179,6 +1186,8 @@ var picker = {
1179
1186
  },
1180
1187
  android: {
1181
1188
  padding: '12px 24px',
1189
+ verticalPadding: 12,
1190
+ horizontalPadding: 24,
1182
1191
  "default": {
1183
1192
  backgroundColor: colors.transparent
1184
1193
  },
@@ -1277,6 +1286,8 @@ var skeleton = {
1277
1286
  var tag = {
1278
1287
  borderRadius: 10,
1279
1288
  padding: '2px 12px',
1289
+ verticalPadding: 2,
1290
+ horizontalPadding: 12,
1280
1291
  primary: {
1281
1292
  fill: {
1282
1293
  backgroundColor: lateOceanColorPalette.moonPurpleLight1,
@@ -1353,6 +1364,27 @@ var tooltip = {
1353
1364
  }
1354
1365
  };
1355
1366
 
1367
+ var verticalSteps = {
1368
+ active: {
1369
+ icon: {
1370
+ backgroundColor: colors.primary,
1371
+ textColor: colors.white
1372
+ }
1373
+ },
1374
+ done: {
1375
+ icon: {
1376
+ backgroundColor: lateOceanColorPalette.moonPurple,
1377
+ textColor: colors.primary
1378
+ }
1379
+ },
1380
+ "default": {
1381
+ icon: {
1382
+ backgroundColor: colors.disabled,
1383
+ textColor: colors.blackDisabled
1384
+ }
1385
+ }
1386
+ };
1387
+
1356
1388
  var breakpoints = {
1357
1389
  values: {
1358
1390
  base: 0,
@@ -1404,7 +1436,8 @@ var theme = {
1404
1436
  tooltip: tooltip,
1405
1437
  typography: typography,
1406
1438
  fullscreenModal: fullscreenModal,
1407
- actionCard: actionCard
1439
+ actionCard: actionCard,
1440
+ verticalSteps: verticalSteps
1408
1441
  };
1409
1442
 
1410
1443
  var KittThemeContext = /*#__PURE__*/createContext({
@@ -1752,7 +1785,7 @@ var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1752
1785
  throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1753
1786
  };
1754
1787
 
1755
- var _excluded$D = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1788
+ var _excluded$F = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1756
1789
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
1757
1790
  var TypographyColorContext = /*#__PURE__*/createContext('black');
1758
1791
  function useTypographyColor() {
@@ -1802,7 +1835,7 @@ function Typography(_ref) {
1802
1835
  } : _ref$type,
1803
1836
  variant = _ref.variant,
1804
1837
  color = _ref.color,
1805
- otherProps = _objectWithoutProperties(_ref, _excluded$D);
1838
+ otherProps = _objectWithoutProperties(_ref, _excluded$F);
1806
1839
  var sx = useSx();
1807
1840
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
1808
1841
  var defaultColor = useTypographyDefaultColor();
@@ -1907,11 +1940,11 @@ function Icon(_ref) {
1907
1940
  });
1908
1941
  }
1909
1942
 
1910
- var _excluded$C = ["color"],
1943
+ var _excluded$E = ["color"],
1911
1944
  _excluded2$5 = ["color"];
1912
1945
  function TypographyIconSpecifiedColor(_ref) {
1913
1946
  var color = _ref.color,
1914
- props = _objectWithoutProperties(_ref, _excluded$C);
1947
+ props = _objectWithoutProperties(_ref, _excluded$E);
1915
1948
  var sx = useSx();
1916
1949
  var colorStyle = sx({
1917
1950
  color: getTypographyColorValue(color)
@@ -1955,7 +1988,7 @@ var getTextColorByType = function (type, variant, isHovered, isPressed) {
1955
1988
  }
1956
1989
  };
1957
1990
 
1958
- var _excluded$B = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
1991
+ var _excluded$D = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
1959
1992
  function ButtonIcon(_ref) {
1960
1993
  var icon = _ref.icon,
1961
1994
  color = _ref.color,
@@ -2030,7 +2063,7 @@ function ButtonContent(_ref3) {
2030
2063
  isHovered = _ref3.isHovered,
2031
2064
  isPressed = _ref3.isPressed;
2032
2065
  _ref3.isFocused;
2033
- var props = _objectWithoutProperties(_ref3, _excluded$B);
2066
+ var props = _objectWithoutProperties(_ref3, _excluded$D);
2034
2067
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant, isHovered, isPressed);
2035
2068
  return /*#__PURE__*/jsx(View, {
2036
2069
  _web: {
@@ -2079,7 +2112,7 @@ function ButtonPadding(_ref2) {
2079
2112
  });
2080
2113
  }
2081
2114
 
2082
- function DisabledBorder$1() {
2115
+ function DisabledBorder() {
2083
2116
  return /*#__PURE__*/jsx(View, {
2084
2117
  position: "absolute",
2085
2118
  top: 0,
@@ -2217,7 +2250,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
2217
2250
  isPressed: isPressed,
2218
2251
  isFocused: isFocused,
2219
2252
  children: _children
2220
- }), disabled ? /*#__PURE__*/jsx(DisabledBorder$1, {}) : null, /*#__PURE__*/jsx(FocusBorder, {
2253
+ }), disabled ? /*#__PURE__*/jsx(DisabledBorder, {}) : null, /*#__PURE__*/jsx(FocusBorder, {
2221
2254
  type: type,
2222
2255
  variant: variant,
2223
2256
  isFocused: isFocused || isFocusedInternal,
@@ -2292,7 +2325,7 @@ function useMatchWindowSize(options) {
2292
2325
  }, options);
2293
2326
  }
2294
2327
 
2295
- var _excluded$A = ["as", "onPress", "disabled", "icon", "stretch"];
2328
+ var _excluded$C = ["as", "onPress", "disabled", "icon", "stretch"];
2296
2329
  function getCurrentStretchValue(isStretch, isMedium) {
2297
2330
  // Stretch will follow the value passed from the component occurence if defined
2298
2331
  if (isStretch) return isStretch;
@@ -2307,7 +2340,7 @@ function ActionsItem(_ref) {
2307
2340
  disabled = _ref.disabled,
2308
2341
  icon = _ref.icon,
2309
2342
  stretch = _ref.stretch,
2310
- props = _objectWithoutProperties(_ref, _excluded$A);
2343
+ props = _objectWithoutProperties(_ref, _excluded$C);
2311
2344
  var isMedium = useMatchWindowSize({
2312
2345
  minWidth: KittBreakpoints.MEDIUM
2313
2346
  });
@@ -2382,7 +2415,7 @@ function ActionsButton(_ref) {
2382
2415
  }, props));
2383
2416
  }
2384
2417
 
2385
- var _excluded$z = ["children", "layout"];
2418
+ var _excluded$B = ["children", "layout"];
2386
2419
  function getCurrentLayout(layout) {
2387
2420
  if (!layout) return {
2388
2421
  base: 'stretch',
@@ -2402,7 +2435,7 @@ function getCurrentDirection(layout) {
2402
2435
  function Actions(_ref) {
2403
2436
  var children = _ref.children,
2404
2437
  layout = _ref.layout,
2405
- props = _objectWithoutProperties(_ref, _excluded$z);
2438
+ props = _objectWithoutProperties(_ref, _excluded$B);
2406
2439
  var currentAlignItems = getCurrentLayout(layout);
2407
2440
  var currentDirection = getCurrentDirection(layout);
2408
2441
  return /*#__PURE__*/jsx(Stack, _objectSpread(_objectSpread({
@@ -2448,7 +2481,7 @@ function getInitials(firstname, lastname) {
2448
2481
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
2449
2482
  }
2450
2483
 
2451
- var _excluded$y = ["size", "round", "light", "sizeVariant"];
2484
+ var _excluded$A = ["size", "round", "light", "sizeVariant"];
2452
2485
  function AvatarContent(_ref) {
2453
2486
  var size = _ref.size,
2454
2487
  src = _ref.src,
@@ -2487,7 +2520,7 @@ function Avatar(_ref2) {
2487
2520
  round = _ref2.round,
2488
2521
  light = _ref2.light,
2489
2522
  sizeVariant = _ref2.sizeVariant,
2490
- props = _objectWithoutProperties(_ref2, _excluded$y);
2523
+ props = _objectWithoutProperties(_ref2, _excluded$A);
2491
2524
  var currentSize = getCurrentSize({
2492
2525
  size: size,
2493
2526
  sizeVariant: sizeVariant
@@ -2615,20 +2648,16 @@ function ModalBehaviour(_ref2) {
2615
2648
  }
2616
2649
  ModalBehaviour.CloseButton = CloseButton;
2617
2650
 
2618
- // Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
2619
- var OverlayPressable = /*#__PURE__*/styled$1(Pressable$2).withConfig({
2620
- displayName: "Overlay__OverlayPressable",
2621
- componentId: "kitt-universal__sc-1cz1gbr-0"
2622
- })(function (_ref) {
2623
- var theme = _ref.theme;
2624
- return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
2625
- backgroundColor: theme.kitt.colors.overlay.dark
2626
- });
2627
- });
2628
- function Overlay(_ref2) {
2629
- var onPress = _ref2.onPress;
2630
- return /*#__PURE__*/jsx(OverlayPressable, {
2651
+ function Overlay(_ref) {
2652
+ var onPress = _ref.onPress;
2653
+ return /*#__PURE__*/jsx(Pressable, {
2631
2654
  accessibilityRole: "none",
2655
+ position: "absolute",
2656
+ top: "0",
2657
+ left: "0",
2658
+ right: "0",
2659
+ bottom: "0",
2660
+ backgroundColor: "kitt.overlay.dark",
2632
2661
  onPress: onPress
2633
2662
  });
2634
2663
  }
@@ -2642,7 +2671,7 @@ function CardModalRotationContainer(props) {
2642
2671
  }, props));
2643
2672
  }
2644
2673
 
2645
- var _excluded$x = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
2674
+ var _excluded$z = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
2646
2675
  var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
2647
2676
  var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
2648
2677
  var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
@@ -2681,7 +2710,7 @@ function CardModalAnimation(_ref) {
2681
2710
  onExit = _ref.onExit,
2682
2711
  onExited = _ref.onExited,
2683
2712
  onClose = _ref.onClose,
2684
- props = _objectWithoutProperties(_ref, _excluded$x);
2713
+ props = _objectWithoutProperties(_ref, _excluded$z);
2685
2714
  var theme = useTheme();
2686
2715
  var animation = theme.kitt.cardModal.animation;
2687
2716
  var sharedProps = {
@@ -2714,11 +2743,11 @@ function CardModalAnimation(_ref) {
2714
2743
  }));
2715
2744
  }
2716
2745
 
2717
- var _excluded$w = ["children"],
2746
+ var _excluded$y = ["children"],
2718
2747
  _excluded2$4 = ["children", "visible", "onClose", "onExited"];
2719
2748
  function CardModalScrollContainer(_ref) {
2720
2749
  var children = _ref.children,
2721
- props = _objectWithoutProperties(_ref, _excluded$w);
2750
+ props = _objectWithoutProperties(_ref, _excluded$y);
2722
2751
  return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({}, props), {}, {
2723
2752
  children: children
2724
2753
  }));
@@ -2759,7 +2788,7 @@ function CardModalBehaviour(_ref2) {
2759
2788
  });
2760
2789
  }
2761
2790
 
2762
- var _excluded$v = ["children", "paddingX", "paddingY"];
2791
+ var _excluded$x = ["children", "paddingX", "paddingY"];
2763
2792
  function CardModalBody(_ref) {
2764
2793
  var children = _ref.children,
2765
2794
  _ref$paddingX = _ref.paddingX,
@@ -2769,7 +2798,7 @@ function CardModalBody(_ref) {
2769
2798
  } : _ref$paddingX,
2770
2799
  _ref$paddingY = _ref.paddingY,
2771
2800
  paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
2772
- props = _objectWithoutProperties(_ref, _excluded$v);
2801
+ props = _objectWithoutProperties(_ref, _excluded$x);
2773
2802
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
2774
2803
  paddingX: paddingX,
2775
2804
  paddingY: paddingY
@@ -2778,7 +2807,7 @@ function CardModalBody(_ref) {
2778
2807
  }));
2779
2808
  }
2780
2809
 
2781
- var _excluded$u = ["children", "padding", "hasSeparator"];
2810
+ var _excluded$w = ["children", "padding", "hasSeparator"];
2782
2811
  function CardModalFooter(_ref) {
2783
2812
  var children = _ref.children,
2784
2813
  _ref$padding = _ref.padding,
@@ -2788,7 +2817,7 @@ function CardModalFooter(_ref) {
2788
2817
  } : _ref$padding,
2789
2818
  _ref$hasSeparator = _ref.hasSeparator,
2790
2819
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
2791
- props = _objectWithoutProperties(_ref, _excluded$u);
2820
+ props = _objectWithoutProperties(_ref, _excluded$w);
2792
2821
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2793
2822
  marginTop: "kitt.2",
2794
2823
  padding: padding,
@@ -2802,7 +2831,7 @@ function CardModalFooter(_ref) {
2802
2831
  }));
2803
2832
  }
2804
2833
 
2805
- var _excluded$t = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
2834
+ var _excluded$v = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
2806
2835
  function CardModalHeader(_ref) {
2807
2836
  var children = _ref.children,
2808
2837
  title = _ref.title,
@@ -2815,7 +2844,7 @@ function CardModalHeader(_ref) {
2815
2844
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
2816
2845
  right = _ref.right,
2817
2846
  left = _ref.left,
2818
- props = _objectWithoutProperties(_ref, _excluded$t);
2847
+ props = _objectWithoutProperties(_ref, _excluded$v);
2819
2848
  var defaultContainerPadding = {
2820
2849
  base: 'kitt.4',
2821
2850
  medium: 'kitt.6'
@@ -2853,7 +2882,7 @@ function CardModalHeader(_ref) {
2853
2882
  }));
2854
2883
  }
2855
2884
 
2856
- var _excluded$s = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
2885
+ var _excluded$u = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
2857
2886
  function CardModal(_ref) {
2858
2887
  var _ref$backgroundColor = _ref.backgroundColor,
2859
2888
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -2864,7 +2893,7 @@ function CardModal(_ref) {
2864
2893
  header = _ref.header,
2865
2894
  body = _ref.body,
2866
2895
  footer = _ref.footer,
2867
- props = _objectWithoutProperties(_ref, _excluded$s);
2896
+ props = _objectWithoutProperties(_ref, _excluded$u);
2868
2897
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
2869
2898
  overflow: "hidden",
2870
2899
  backgroundColor: backgroundColor,
@@ -2882,6 +2911,62 @@ CardModal.Header = CardModalHeader;
2882
2911
  CardModal.Footer = CardModalFooter;
2883
2912
  CardModal.ModalBehaviour = CardModalBehaviour;
2884
2913
 
2914
+ function getBackgroundColor$3(_ref) {
2915
+ var isDisabled = _ref.isDisabled,
2916
+ isSelected = _ref.isSelected,
2917
+ isHovered = _ref.isHovered,
2918
+ isPressed = _ref.isPressed;
2919
+ if (isDisabled) return 'kitt.choices.item.disabled.backgroundColor';
2920
+ if (isSelected && isHovered) return 'kitt.choices.item.hoverWhenSelected.backgroundColor';
2921
+ if (isPressed) return 'kitt.choices.item.pressed.backgroundColor';
2922
+ if (isHovered) return 'kitt.choices.item.hover.backgroundColor';
2923
+ if (isSelected) return 'kitt.choices.item.selected.backgroundColor';
2924
+ return 'kitt.choices.item.default.backgroundColor';
2925
+ }
2926
+
2927
+ function getBorderRadius(variant) {
2928
+ // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
2929
+ // We don't control over the height of the rendered children we just go with a arbitrary really high value
2930
+ return variant === 'rounded' ? Number.MAX_SAFE_INTEGER : 'kitt.choices.item.borderRadius';
2931
+ }
2932
+
2933
+ function AnimatedChoiceItemView(_ref) {
2934
+ var children = _ref.children,
2935
+ variant = _ref.variant,
2936
+ size = _ref.size,
2937
+ isHovered = _ref.isHovered,
2938
+ isPressed = _ref.isPressed,
2939
+ isDisabled = _ref.isDisabled,
2940
+ isSelected = _ref.isSelected;
2941
+ var theme = useTheme();
2942
+ return /*#__PURE__*/jsx(View, {
2943
+ position: "relative",
2944
+ borderRadius: getBorderRadius(variant),
2945
+ backgroundColor: getBackgroundColor$3({
2946
+ isDisabled: isDisabled,
2947
+ isSelected: isSelected,
2948
+ isHovered: isHovered,
2949
+ isPressed: isPressed
2950
+ }),
2951
+ paddingX: size === 'small' ? 'kitt.4' : {
2952
+ base: 'kitt.4',
2953
+ small: 'kitt.6'
2954
+ },
2955
+ paddingY: size === 'small' ? 'kitt.2' : {
2956
+ base: 'kitt.4',
2957
+ small: 'kitt.6'
2958
+ },
2959
+ _web: {
2960
+ style: {
2961
+ transitionProperty: theme.kitt.choices.item.transition.property,
2962
+ transitionDuration: "".concat(theme.kitt.choices.item.transition.duration, "ms"),
2963
+ transitionTimingFunction: theme.kitt.choices.item.transition.timingFunction
2964
+ }
2965
+ },
2966
+ children: children
2967
+ });
2968
+ }
2969
+
2885
2970
  var useNativeAnimation$2 = function () {
2886
2971
  return {
2887
2972
  onPressIn: function onPressIn() {},
@@ -2900,92 +2985,26 @@ function getCurrentTextColor$1(_ref) {
2900
2985
  if (isSelected || isPressed) return 'white';
2901
2986
  return 'black';
2902
2987
  }
2903
- function getBorderRadius(defaultRadius, variant) {
2904
- // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
2905
- // We don't control over the height of the rendered children we just go with a arbitrary really high value
2906
2988
 
2907
- if (variant === 'rounded') return 800;
2908
- return defaultRadius;
2909
- }
2910
- var DisabledBorder = /*#__PURE__*/styled$1(View$2).withConfig({
2911
- displayName: "ChoiceItem__DisabledBorder",
2912
- componentId: "kitt-universal__sc-wuv3y6-0"
2913
- })(["border-radius:", "px;", ";"], function (_ref2) {
2914
- var theme = _ref2.theme,
2915
- $variant = _ref2.$variant;
2916
- return getBorderRadius(theme.kitt.choices.item.borderRadius, $variant);
2917
- }, function (_ref3) {
2918
- var theme = _ref3.theme;
2919
- var _theme$kitt$choices$i = theme.kitt.choices.item.disabled.border,
2920
- width = _theme$kitt$choices$i.width,
2921
- color = _theme$kitt$choices$i.color;
2922
- return css(["border:", "px solid ", ";"], width, color);
2923
- });
2924
- var ChoiceItemView = /*#__PURE__*/styled$1(View$2).withConfig({
2925
- displayName: "ChoiceItem__ChoiceItemView",
2926
- componentId: "kitt-universal__sc-wuv3y6-1"
2927
- })(["position:relative;border-radius:", "px;background-color:", ";", ";", ""], function (_ref4) {
2928
- var theme = _ref4.theme,
2929
- $variant = _ref4.$variant;
2930
- return getBorderRadius(theme.kitt.choices.item.borderRadius, $variant);
2931
- }, function (_ref5) {
2932
- var theme = _ref5.theme,
2933
- $isHovered = _ref5.$isHovered,
2934
- $isPressed = _ref5.$isPressed,
2935
- $isDisabled = _ref5.$isDisabled,
2936
- $isSelected = _ref5.$isSelected;
2937
- var _theme$kitt$choices$i2 = theme.kitt.choices.item.backgroundColor,
2938
- hoverWhenSelected = _theme$kitt$choices$i2.hoverWhenSelected,
2939
- hover = _theme$kitt$choices$i2.hover,
2940
- disabled = _theme$kitt$choices$i2.disabled,
2941
- selected = _theme$kitt$choices$i2.selected,
2942
- pressed = _theme$kitt$choices$i2.pressed,
2943
- defaultBackground = _theme$kitt$choices$i2["default"];
2944
- if ($isDisabled) return disabled;
2945
- if ($isSelected && $isHovered) return hoverWhenSelected;
2946
- if ($isPressed) return pressed;
2947
- if ($isHovered) return hover;
2948
- if ($isSelected) return selected;
2949
- return defaultBackground;
2950
- }, function (_ref6) {
2951
- var theme = _ref6.theme,
2952
- $size = _ref6.$size;
2953
- var _theme$kitt$choices$i3 = theme.kitt.choices.item.padding,
2954
- base = _theme$kitt$choices$i3.base,
2955
- small = _theme$kitt$choices$i3.small;
2956
- if ($size === 'small') {
2957
- return css(["padding:", "px ", "px;"], base / 2, base);
2958
- }
2959
- return theme.responsive.ifWindowSizeMatches({
2960
- minWidth: KittBreakpoints.SMALL
2961
- }, css(["padding:", "px;"], small), css(["padding:", "px;"], base));
2962
- }, function (_ref7) {
2963
- var theme = _ref7.theme;
2964
- var _theme$kitt$choices$i4 = theme.kitt.choices.item.transition,
2965
- property = _theme$kitt$choices$i4.property,
2966
- duration = _theme$kitt$choices$i4.duration,
2967
- timingFunction = _theme$kitt$choices$i4.timingFunction;
2968
- return css(["transition:", " ", "ms ", ";"], property, duration, timingFunction);
2969
- });
2970
- function ChoiceItem(_ref8) {
2971
- var _ref8$type = _ref8.type,
2972
- type = _ref8$type === void 0 ? 'button' : _ref8$type,
2973
- value = _ref8.value,
2974
- selected = _ref8.selected,
2975
- disabled = _ref8.disabled,
2976
- variant = _ref8.variant,
2977
- _children = _ref8.children,
2978
- isPressedInternal = _ref8.isPressedInternal,
2979
- isHoveredInternal = _ref8.isHoveredInternal,
2980
- onPress = _ref8.onPress,
2981
- onChange = _ref8.onChange,
2982
- onBlur = _ref8.onBlur,
2983
- onFocus = _ref8.onFocus,
2984
- size = _ref8.size;
2989
+ function ChoiceItem(_ref) {
2990
+ var _ref$type = _ref.type,
2991
+ type = _ref$type === void 0 ? 'button' : _ref$type,
2992
+ value = _ref.value,
2993
+ selected = _ref.selected,
2994
+ disabled = _ref.disabled,
2995
+ variant = _ref.variant,
2996
+ _children = _ref.children,
2997
+ isPressedInternal = _ref.isPressedInternal,
2998
+ isHoveredInternal = _ref.isHoveredInternal,
2999
+ onPress = _ref.onPress,
3000
+ onChange = _ref.onChange,
3001
+ onBlur = _ref.onBlur,
3002
+ onFocus = _ref.onFocus,
3003
+ size = _ref.size;
2985
3004
  var _useNativeAnimation = useNativeAnimation$2(),
2986
3005
  onPressIn = _useNativeAnimation.onPressIn,
2987
- onPressOut = _useNativeAnimation.onPressOut;
2988
- _useNativeAnimation.backgroundStyles;
3006
+ onPressOut = _useNativeAnimation.onPressOut,
3007
+ backgroundStyles = _useNativeAnimation.backgroundStyles;
2989
3008
  var handleChange = function () {
2990
3009
  if (!onChange) return;
2991
3010
 
@@ -3012,17 +3031,17 @@ function ChoiceItem(_ref8) {
3012
3031
  },
3013
3032
  onPressIn: onPressIn,
3014
3033
  onPressOut: onPressOut,
3015
- children: function children(_ref9) {
3016
- var isHovered = _ref9.isHovered,
3017
- isPressed = _ref9.isPressed;
3018
- return /*#__PURE__*/jsxs(ChoiceItemView, {
3019
- style: undefined,
3020
- $isHovered: isHovered || isHoveredInternal,
3021
- $isDisabled: disabled,
3022
- $isSelected: selected,
3023
- $isPressed: isPressed || isPressedInternal,
3024
- $variant: variant,
3025
- $size: size,
3034
+ children: function children(_ref2) {
3035
+ var isHovered = _ref2.isHovered,
3036
+ isPressed = _ref2.isPressed;
3037
+ return /*#__PURE__*/jsxs(AnimatedChoiceItemView, {
3038
+ animatedStyles: backgroundStyles,
3039
+ isHovered: isHovered || isHoveredInternal,
3040
+ isDisabled: disabled,
3041
+ isSelected: selected,
3042
+ isPressed: isPressed || isPressedInternal,
3043
+ variant: variant,
3044
+ size: size,
3026
3045
  children: [/*#__PURE__*/jsx(Typography.SetDefaultColor, {
3027
3046
  value: getCurrentTextColor$1({
3028
3047
  isDisabled: disabled,
@@ -3031,35 +3050,37 @@ function ChoiceItem(_ref8) {
3031
3050
  isHovered: isHovered || isHoveredInternal
3032
3051
  }),
3033
3052
  children: _children
3034
- }), disabled ? /*#__PURE__*/jsx(DisabledBorder, {
3035
- $variant: variant,
3036
- style: StyleSheet.absoluteFillObject
3053
+ }), disabled ? /*#__PURE__*/jsx(View, {
3054
+ borderRadius: getBorderRadius(variant),
3055
+ borderWidth: "kitt.choices.item.disabled.borderWidth",
3056
+ borderColor: "kitt.choices.item.disabled.borderColor",
3057
+ position: "absolute",
3058
+ top: "0",
3059
+ right: "0",
3060
+ left: "0",
3061
+ bottom: "0"
3037
3062
  }) : null]
3038
3063
  });
3039
3064
  }
3040
3065
  });
3041
3066
  }
3042
3067
 
3043
- var ChoiceItemContainer = /*#__PURE__*/styled$1(View$2).withConfig({
3044
- displayName: "ChoiceItemContainer",
3045
- componentId: "kitt-universal__sc-17uuimx-0"
3046
- })(["", ""], function (_ref) {
3047
- var theme = _ref.theme,
3048
- $isLast = _ref.$isLast,
3049
- $direction = _ref.$direction;
3050
- var _theme$kitt$choices$s = theme.kitt.choices.spacing,
3051
- row = _theme$kitt$choices$s.row,
3052
- column = _theme$kitt$choices$s.column;
3053
- if ($direction === 'row') {
3054
- return css(["margin-right:", "px;"], $isLast ? 0 : row);
3055
- }
3056
- return css(["margin-bottom:", "px;"], $isLast ? 0 : column);
3057
- });
3068
+ function ChoiceItemContainer(_ref) {
3069
+ var children = _ref.children,
3070
+ direction = _ref.direction,
3071
+ isLast = _ref.isLast;
3072
+ var currentItemMarginValue = isLast ? undefined : 'kitt.3';
3073
+ return /*#__PURE__*/jsx(View, {
3074
+ marginRight: direction === 'row' ? currentItemMarginValue : undefined,
3075
+ marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
3076
+ children: children
3077
+ });
3078
+ }
3058
3079
 
3059
- var _excluded$r = ["direction"];
3080
+ var _excluded$t = ["direction"];
3060
3081
  function ChoicesContainer(_ref) {
3061
3082
  var direction = _ref.direction,
3062
- props = _objectWithoutProperties(_ref, _excluded$r);
3083
+ props = _objectWithoutProperties(_ref, _excluded$t);
3063
3084
  if (direction === 'row') {
3064
3085
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
3065
3086
  horizontal: true
@@ -3113,8 +3134,8 @@ function Choices(_ref2) {
3113
3134
  selected: isForm ? child.props.value === currentValue : undefined
3114
3135
  }, sharedProps));
3115
3136
  return /*#__PURE__*/jsx(ChoiceItemContainer, {
3116
- $direction: direction,
3117
- $isLast: index === childrenArray.length - 1,
3137
+ direction: direction,
3138
+ isLast: index === childrenArray.length - 1,
3118
3139
  children: element
3119
3140
  }, child.key);
3120
3141
  })
@@ -3131,7 +3152,7 @@ var ChoicesElements = {
3131
3152
  ButtonChoices: ButtonChoices
3132
3153
  };
3133
3154
 
3134
- var _excluded$q = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
3155
+ var _excluded$s = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
3135
3156
  var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
3136
3157
  var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
3137
3158
  var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
@@ -3170,7 +3191,7 @@ function DialogModalAnimation(_ref) {
3170
3191
  onExit = _ref.onExit,
3171
3192
  onExited = _ref.onExited,
3172
3193
  onClose = _ref.onClose,
3173
- props = _objectWithoutProperties(_ref, _excluded$q);
3194
+ props = _objectWithoutProperties(_ref, _excluded$s);
3174
3195
  var theme = useTheme();
3175
3196
  var animation = theme.kitt.dialogModal.animation;
3176
3197
  var sharedProps = {
@@ -3205,13 +3226,13 @@ function DialogModalAnimation(_ref) {
3205
3226
  }));
3206
3227
  }
3207
3228
 
3208
- var _excluded$p = ["children", "visible", "onClose", "onExited"];
3229
+ var _excluded$r = ["children", "visible", "onClose", "onExited"];
3209
3230
  function DialogModalBehaviour(_ref) {
3210
3231
  var children = _ref.children,
3211
3232
  visible = _ref.visible,
3212
3233
  onClose = _ref.onClose,
3213
3234
  onExited = _ref.onExited,
3214
- props = _objectWithoutProperties(_ref, _excluded$p);
3235
+ props = _objectWithoutProperties(_ref, _excluded$r);
3215
3236
  var _useState = useState(visible),
3216
3237
  _useState2 = _slicedToArray(_useState, 2),
3217
3238
  isModalBehaviourVisible = _useState2[0],
@@ -3242,7 +3263,7 @@ function DialogModalBehaviour(_ref) {
3242
3263
  });
3243
3264
  }
3244
3265
 
3245
- var _excluded$o = ["stretch"];
3266
+ var _excluded$q = ["stretch"];
3246
3267
  function DialogModal(_ref) {
3247
3268
  var illustration = _ref.illustration,
3248
3269
  title = _ref.title,
@@ -3283,7 +3304,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
3283
3304
  function DialogModalButton(_ref2) {
3284
3305
  var _ref2$stretch = _ref2.stretch,
3285
3306
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
3286
- props = _objectWithoutProperties(_ref2, _excluded$o);
3307
+ props = _objectWithoutProperties(_ref2, _excluded$q);
3287
3308
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
3288
3309
  stretch: stretch
3289
3310
  }, props));
@@ -3320,7 +3341,7 @@ function Emoji(_ref) {
3320
3341
  });
3321
3342
  }
3322
3343
 
3323
- var _excluded$n = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3344
+ var _excluded$p = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3324
3345
  _excluded2$3 = ["phoneNumber", "children"],
3325
3346
  _excluded3$2 = ["phoneNumber", "children"],
3326
3347
  _excluded4$1 = ["emailAddress", "children"];
@@ -3330,7 +3351,7 @@ function ExternalAppLink(_ref) {
3330
3351
  appValue = _ref.appValue,
3331
3352
  onPress = _ref.onPress,
3332
3353
  onOpenAppError = _ref.onOpenAppError,
3333
- rest = _objectWithoutProperties(_ref, _excluded$n);
3354
+ rest = _objectWithoutProperties(_ref, _excluded$p);
3334
3355
  var href = "".concat(appScheme, ":").concat(appValue);
3335
3356
  var handleOnPress = /*#__PURE__*/function () {
3336
3357
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -3425,14 +3446,14 @@ var defaultOpenLinkBehavior = {
3425
3446
  web: 'targetBlank'
3426
3447
  };
3427
3448
 
3428
- var _excluded$m = ["as", "href", "openLinkBehavior", "onPress"];
3449
+ var _excluded$o = ["as", "href", "openLinkBehavior", "onPress"];
3429
3450
  function ExternalLink(_ref) {
3430
3451
  var Component = _ref.as,
3431
3452
  href = _ref.href,
3432
3453
  _ref$openLinkBehavior = _ref.openLinkBehavior,
3433
3454
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
3434
3455
  onPress = _ref.onPress,
3435
- rest = _objectWithoutProperties(_ref, _excluded$m);
3456
+ rest = _objectWithoutProperties(_ref, _excluded$o);
3436
3457
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
3437
3458
  href: href,
3438
3459
  hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
@@ -3758,7 +3779,7 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled('div')({
3758
3779
  }
3759
3780
  }));
3760
3781
 
3761
- var _excluded$l = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
3782
+ var _excluded$n = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
3762
3783
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3763
3784
  var id = _ref.id,
3764
3785
  right = _ref.right;
@@ -3778,13 +3799,12 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3778
3799
  keyboardType = _ref$keyboardType === void 0 ? 'default' : _ref$keyboardType,
3779
3800
  multiline = _ref.multiline,
3780
3801
  onSubmitEditing = _ref.onSubmitEditing,
3781
- props = _objectWithoutProperties(_ref, _excluded$l);
3802
+ props = _objectWithoutProperties(_ref, _excluded$n);
3782
3803
  var theme = useTheme();
3783
3804
  var fontSizeForNativeBase = createNativeBaseFontSize({
3784
3805
  base: 'body'
3785
3806
  });
3786
3807
  return /*#__PURE__*/jsxs(InputTextContainer, {
3787
- $isDisabled: disabled,
3788
3808
  children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
3789
3809
  ref: ref,
3790
3810
  multiline: multiline,
@@ -3821,7 +3841,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3821
3841
  });
3822
3842
  });
3823
3843
 
3824
- function getCurrentInternalForcedState(_ref) {
3844
+ function getCurrentInternalForcedState$1(_ref) {
3825
3845
  var isDisabled = _ref.isDisabled,
3826
3846
  isHoveredInternal = _ref.isHoveredInternal,
3827
3847
  isFocusedInternal = _ref.isFocusedInternal,
@@ -3845,7 +3865,7 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
3845
3865
  onSubmitEditing = _ref2.onSubmitEditing;
3846
3866
  return /*#__PURE__*/jsx(InputText, {
3847
3867
  ref: ref,
3848
- internalForceState: getCurrentInternalForcedState({
3868
+ internalForceState: getCurrentInternalForcedState$1({
3849
3869
  isDisabled: disabled,
3850
3870
  isHoveredInternal: isHoveredInternal,
3851
3871
  isFocusedInternal: isFocusedInternal,
@@ -3875,7 +3895,7 @@ function PartContainer(_ref) {
3875
3895
  });
3876
3896
  }
3877
3897
 
3878
- var _excluded$k = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
3898
+ var _excluded$m = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
3879
3899
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3880
3900
  var value = _ref.value,
3881
3901
  testID = _ref.testID,
@@ -3893,7 +3913,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3893
3913
  onBlur = _ref.onBlur,
3894
3914
  onFocus = _ref.onFocus,
3895
3915
  onSubmitEditing = _ref.onSubmitEditing;
3896
- _objectWithoutProperties(_ref, _excluded$k);
3916
+ _objectWithoutProperties(_ref, _excluded$m);
3897
3917
  var monthRef = useRef(null);
3898
3918
  var yearRef = useRef(null);
3899
3919
  var defaultValue = value;
@@ -4033,10 +4053,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4033
4053
  });
4034
4054
  });
4035
4055
 
4036
- var _excluded$j = ["value"];
4056
+ var _excluded$l = ["value"];
4037
4057
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4038
4058
  var value = _ref.value,
4039
- props = _objectWithoutProperties(_ref, _excluded$j);
4059
+ props = _objectWithoutProperties(_ref, _excluded$l);
4040
4060
  // in apps, final-form can give a string value that will break the component
4041
4061
  var currentValue = value || undefined;
4042
4062
  return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
@@ -4130,11 +4150,11 @@ function InputPressable(_ref) {
4130
4150
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
4131
4151
  }
4132
4152
 
4133
- var _excluded$i = ["isPasswordDefaultVisible", "right"];
4153
+ var _excluded$k = ["isPasswordDefaultVisible", "right"];
4134
4154
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
4135
4155
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
4136
4156
  right = _ref.right,
4137
- props = _objectWithoutProperties(_ref, _excluded$i);
4157
+ props = _objectWithoutProperties(_ref, _excluded$k);
4138
4158
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
4139
4159
  _useState2 = _slicedToArray(_useState, 2),
4140
4160
  isVisible = _useState2[0],
@@ -4162,7 +4182,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
4162
4182
  }));
4163
4183
  });
4164
4184
 
4165
- var _excluded$h = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
4185
+ var _excluded$j = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
4166
4186
  function isPhoneNumberValid(number) {
4167
4187
  return isValidNumber(number);
4168
4188
  }
@@ -4177,7 +4197,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
4177
4197
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
4178
4198
  value = _ref.value,
4179
4199
  onChange = _ref.onChange,
4180
- props = _objectWithoutProperties(_ref, _excluded$h);
4200
+ props = _objectWithoutProperties(_ref, _excluded$j);
4181
4201
  var _useState = useState(value),
4182
4202
  _useState2 = _slicedToArray(_useState, 2),
4183
4203
  currentValue = _useState2[0],
@@ -4225,48 +4245,29 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
4225
4245
  var getTypographyColor = function (type) {
4226
4246
  return type ? 'white' : 'black';
4227
4247
  };
4228
- var InputTagContainer = /*#__PURE__*/styled$1(View$2).withConfig({
4229
- displayName: "InputTag__InputTagContainer",
4230
- componentId: "kitt-universal__sc-1511dsf-0"
4231
- })(["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) {
4232
- var theme = _ref.theme;
4233
- return theme.kitt.spacing * 2;
4234
- }, function (_ref2) {
4235
- var theme = _ref2.theme,
4236
- type = _ref2.type;
4237
- if (type === 'success') {
4238
- return theme.kitt.forms.inputTag.success.backgroundColor;
4239
- }
4240
- if (type === 'danger') {
4241
- return theme.kitt.forms.inputTag.danger.backgroundColor;
4242
- }
4243
- return theme.kitt.forms.inputTag["default"].backgroundColor;
4244
- }, function (_ref3) {
4245
- var theme = _ref3.theme;
4246
- return theme.kitt.forms.inputTag.borderRadius;
4247
- });
4248
- var IconContainer = /*#__PURE__*/styled$1(View$2).withConfig({
4249
- displayName: "InputTag__IconContainer",
4250
- componentId: "kitt-universal__sc-1511dsf-1"
4251
- })(["margin-right:", "px;"], function (_ref4) {
4252
- var theme = _ref4.theme;
4253
- return theme.kitt.spacing;
4254
- });
4255
- function InputTag(_ref5) {
4256
- var children = _ref5.children,
4257
- type = _ref5.type,
4258
- icon = _ref5.icon;
4248
+ function InputTag(_ref) {
4249
+ var children = _ref.children,
4250
+ type = _ref.type,
4251
+ icon = _ref.icon;
4259
4252
  var typographyColor = getTypographyColor(type);
4260
4253
  var theme = useTheme();
4261
- return /*#__PURE__*/jsxs(InputTagContainer, {
4262
- type: type,
4263
- children: [icon && /*#__PURE__*/jsx(IconContainer, {
4254
+ return /*#__PURE__*/jsxs(View, {
4255
+ alignItems: "center",
4256
+ justifyContent: "center",
4257
+ flexDirection: "row",
4258
+ alignSelf: "flex-start",
4259
+ overflow: "hidden",
4260
+ paddingX: "kitt.2",
4261
+ backgroundColor: "kitt.forms.inputTag.".concat(type || 'default', ".backgroundColor"),
4262
+ borderRadius: "kitt.forms.inputTag.borderRadius",
4263
+ children: [icon ? /*#__PURE__*/jsx(View, {
4264
+ marginRight: "kitt.1",
4264
4265
  children: /*#__PURE__*/jsx(TypographyIcon, {
4265
4266
  icon: icon,
4266
4267
  size: theme.kitt.forms.inputTag.iconSize,
4267
4268
  color: typographyColor
4268
4269
  })
4269
- }), /*#__PURE__*/jsx(Typography.Text, {
4270
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
4270
4271
  base: "body-small",
4271
4272
  color: typographyColor,
4272
4273
  children: children
@@ -4632,7 +4633,7 @@ function RadioButton(_ref) {
4632
4633
  });
4633
4634
  }
4634
4635
 
4635
- var _excluded$g = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
4636
+ var _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
4636
4637
  function RadioButtonGroupItem(_ref) {
4637
4638
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
4638
4639
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -4645,7 +4646,7 @@ function RadioButtonGroup(_ref2) {
4645
4646
  onFocus = _ref2.onFocus,
4646
4647
  onBlur = _ref2.onBlur,
4647
4648
  onChange = _ref2.onChange,
4648
- props = _objectWithoutProperties(_ref2, _excluded$g);
4649
+ props = _objectWithoutProperties(_ref2, _excluded$i);
4649
4650
  var _useState = useState(value),
4650
4651
  _useState2 = _slicedToArray(_useState, 2),
4651
4652
  currentValue = _useState2[0],
@@ -4687,13 +4688,13 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
4687
4688
  }, props));
4688
4689
  });
4689
4690
 
4690
- var _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
4691
+ var _excluded$h = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
4691
4692
  function FullscreenModalBody(_ref) {
4692
4693
  var children = _ref.children,
4693
4694
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
4694
4695
  style = _ref.style,
4695
4696
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
4696
- props = _objectWithoutProperties(_ref, _excluded$f);
4697
+ props = _objectWithoutProperties(_ref, _excluded$h);
4697
4698
  var _useSafeAreaInsets = useSafeAreaInsets(),
4698
4699
  bottom = _useSafeAreaInsets.bottom,
4699
4700
  top = _useSafeAreaInsets.top;
@@ -4710,14 +4711,14 @@ function FullscreenModalBody(_ref) {
4710
4711
  }));
4711
4712
  }
4712
4713
 
4713
- var _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
4714
+ var _excluded$g = ["shouldHandleBottomNotch", "hasSeparator", "children"];
4714
4715
  function FullscreenModalFooter(_ref) {
4715
4716
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
4716
4717
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
4717
4718
  _ref$hasSeparator = _ref.hasSeparator,
4718
4719
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4719
4720
  children = _ref.children,
4720
- props = _objectWithoutProperties(_ref, _excluded$e);
4721
+ props = _objectWithoutProperties(_ref, _excluded$g);
4721
4722
  var _useSafeAreaInsets = useSafeAreaInsets(),
4722
4723
  bottom = _useSafeAreaInsets.bottom;
4723
4724
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -4734,7 +4735,7 @@ function FullscreenModalFooter(_ref) {
4734
4735
  }));
4735
4736
  }
4736
4737
 
4737
- var _excluded$d = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4738
+ var _excluded$f = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
4738
4739
  var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
4739
4740
  var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
4740
4741
  var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
@@ -4773,7 +4774,7 @@ function FullscreenModalAnimation(_ref) {
4773
4774
  onExit = _ref.onExit,
4774
4775
  onExited = _ref.onExited,
4775
4776
  onClose = _ref.onClose,
4776
- props = _objectWithoutProperties(_ref, _excluded$d);
4777
+ props = _objectWithoutProperties(_ref, _excluded$f);
4777
4778
  var theme = useTheme();
4778
4779
  var animation = theme.kitt.fullscreenModal.animation;
4779
4780
  var sharedProps = {
@@ -4800,13 +4801,13 @@ function FullscreenModalAnimation(_ref) {
4800
4801
  }));
4801
4802
  }
4802
4803
 
4803
- var _excluded$c = ["children", "visible", "onClose", "onExited"];
4804
+ var _excluded$e = ["children", "visible", "onClose", "onExited"];
4804
4805
  function FullscreenModalBehaviour(_ref) {
4805
4806
  var children = _ref.children,
4806
4807
  visible = _ref.visible,
4807
4808
  onClose = _ref.onClose,
4808
4809
  onExited = _ref.onExited,
4809
- props = _objectWithoutProperties(_ref, _excluded$c);
4810
+ props = _objectWithoutProperties(_ref, _excluded$e);
4810
4811
  var _useState = useState(visible),
4811
4812
  _useState2 = _slicedToArray(_useState, 2),
4812
4813
  isModalBehaviourVisible = _useState2[0],
@@ -4850,7 +4851,7 @@ function FullscreenModalContainer(_ref) {
4850
4851
  });
4851
4852
  }
4852
4853
 
4853
- var _excluded$b = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
4854
+ var _excluded$d = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
4854
4855
  function FullscreenModalHeader(_ref) {
4855
4856
  var _ref$hasSeparator = _ref.hasSeparator,
4856
4857
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
@@ -4861,7 +4862,7 @@ function FullscreenModalHeader(_ref) {
4861
4862
  left = _ref.left,
4862
4863
  _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
4863
4864
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
4864
- props = _objectWithoutProperties(_ref, _excluded$b);
4865
+ props = _objectWithoutProperties(_ref, _excluded$d);
4865
4866
  var _useSafeAreaInsets = useSafeAreaInsets(),
4866
4867
  top = _useSafeAreaInsets.top;
4867
4868
  var hasRight = Boolean(right);
@@ -4949,7 +4950,7 @@ function Highlight(_ref) {
4949
4950
  });
4950
4951
  }
4951
4952
 
4952
- var _excluded$a = ["color", "isDisabled"];
4953
+ var _excluded$c = ["color", "isDisabled"];
4953
4954
  function getBackgroundColor(color, isDisabled) {
4954
4955
  if (isDisabled) {
4955
4956
  return 'kitt.iconButton.disabled.backgroundColor';
@@ -4967,7 +4968,7 @@ function getBackgroundColor(color, isDisabled) {
4967
4968
  function Background(_ref) {
4968
4969
  var color = _ref.color,
4969
4970
  isDisabled = _ref.isDisabled,
4970
- props = _objectWithoutProperties(_ref, _excluded$a);
4971
+ props = _objectWithoutProperties(_ref, _excluded$c);
4971
4972
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4972
4973
  width: "100%",
4973
4974
  height: "100%",
@@ -5158,102 +5159,57 @@ function useKittMapConfig() {
5158
5159
  return context;
5159
5160
  }
5160
5161
 
5161
- var _excluded$9 = ["children"];
5162
- var ContentView$1 = /*#__PURE__*/styled$1(BabelPluginStyledComponentsReactNative.View).withConfig({
5163
- displayName: "ListItemContent__ContentView",
5164
- componentId: "kitt-universal__sc-57q0u9-0"
5165
- })(["flex:1 0 0%;align-self:center;"]);
5162
+ var _excluded$b = ["children"];
5166
5163
  function ListItemContent(_ref) {
5167
5164
  var children = _ref.children,
5168
- rest = _objectWithoutProperties(_ref, _excluded$9);
5169
- return /*#__PURE__*/jsx(ContentView$1, _objectSpread(_objectSpread({}, rest), {}, {
5165
+ rest = _objectWithoutProperties(_ref, _excluded$b);
5166
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5167
+ alignSelf: "center",
5168
+ flexBasis: "0%",
5169
+ flexGrow: 1,
5170
+ flexShrink: 0
5171
+ }, rest), {}, {
5170
5172
  children: children
5171
5173
  }));
5172
5174
  }
5173
5175
 
5174
- var _excluded$8 = ["children", "side"],
5176
+ var _excluded$a = ["children", "side"],
5175
5177
  _excluded2$2 = ["children", "align"];
5176
- var SideContainerView = /*#__PURE__*/styled$1(BabelPluginStyledComponentsReactNative.View).withConfig({
5177
- displayName: "ListItemSideContent__SideContainerView",
5178
- componentId: "kitt-universal__sc-1vajiw-0"
5179
- })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
5180
- var theme = _ref.theme,
5181
- side = _ref.side;
5182
- return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
5183
- }, function (_ref2) {
5184
- var theme = _ref2.theme,
5185
- side = _ref2.side;
5186
- return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
5187
- });
5188
-
5189
5178
  // Handles the vertical alignment of the side elements of the list item
5190
- function ListItemSideContainer(_ref3) {
5191
- var children = _ref3.children,
5192
- _ref3$side = _ref3.side,
5193
- side = _ref3$side === void 0 ? 'left' : _ref3$side,
5194
- rest = _objectWithoutProperties(_ref3, _excluded$8);
5195
- return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
5196
- side: side
5179
+ function ListItemSideContainer(_ref) {
5180
+ var children = _ref.children,
5181
+ _ref$side = _ref.side,
5182
+ side = _ref$side === void 0 ? 'left' : _ref$side,
5183
+ rest = _objectWithoutProperties(_ref, _excluded$a);
5184
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5185
+ flexDirection: "row",
5186
+ marginLeft: side === 'right' ? 'kitt.2' : undefined,
5187
+ marginRight: side === 'left' ? 'kitt.2' : undefined
5197
5188
  }, rest), {}, {
5198
5189
  children: children
5199
5190
  }));
5200
5191
  }
5201
- var SideContentView = /*#__PURE__*/styled$1(BabelPluginStyledComponentsReactNative.View).withConfig({
5202
- displayName: "ListItemSideContent__SideContentView",
5203
- componentId: "kitt-universal__sc-1vajiw-1"
5204
- })(["align-self:", ";"], function (_ref4) {
5205
- var align = _ref4.align;
5206
- return align;
5207
- });
5208
- function ListItemSideContent(_ref5) {
5209
- var children = _ref5.children,
5210
- _ref5$align = _ref5.align,
5211
- align = _ref5$align === void 0 ? 'auto' : _ref5$align,
5212
- rest = _objectWithoutProperties(_ref5, _excluded2$2);
5213
- return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
5214
- align: align
5192
+ function ListItemSideContent(_ref2) {
5193
+ var children = _ref2.children,
5194
+ _ref2$align = _ref2.align,
5195
+ align = _ref2$align === void 0 ? 'auto' : _ref2$align,
5196
+ rest = _objectWithoutProperties(_ref2, _excluded2$2);
5197
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5198
+ alignSelf: align
5215
5199
  }, rest), {}, {
5216
5200
  children: children
5217
5201
  }));
5218
5202
  }
5219
5203
 
5220
- var _excluded$7 = ["children", "withPadding", "borders", "left", "right", "onPress"];
5221
- var ContainerView = /*#__PURE__*/styled$1(BabelPluginStyledComponentsReactNative.View).withConfig({
5222
- displayName: "ListItem__ContainerView",
5223
- componentId: "kitt-universal__sc-2afp9s-0"
5224
- })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
5225
- var withPadding = _ref.withPadding,
5226
- theme = _ref.theme;
5227
- return withPadding ? theme.kitt.listItem.padding : 0;
5228
- }, function (_ref2) {
5229
- var theme = _ref2.theme,
5230
- borders = _ref2.borders;
5231
- var borderWidth = theme.kitt.listItem.borderWidth;
5232
- if (borders === 'top') {
5233
- return "border-top-width: ".concat(borderWidth, "px");
5234
- }
5235
- if (borders === 'bottom') {
5236
- return "border-bottom-width: ".concat(borderWidth, "px");
5237
- }
5238
- if (borders === 'both') {
5239
- return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
5240
- }
5241
- return 'border: none';
5242
- }, function (_ref3) {
5243
- var theme = _ref3.theme;
5244
- return theme.kitt.listItem.borderColor;
5245
- }, function (_ref4) {
5246
- var theme = _ref4.theme;
5247
- return theme.kitt.colors.uiBackgroundLight;
5248
- });
5249
- function ListItem(_ref5) {
5250
- var children = _ref5.children,
5251
- withPadding = _ref5.withPadding,
5252
- borders = _ref5.borders,
5253
- left = _ref5.left,
5254
- right = _ref5.right,
5255
- onPress = _ref5.onPress,
5256
- rest = _objectWithoutProperties(_ref5, _excluded$7);
5204
+ var _excluded$9 = ["children", "withPadding", "borders", "left", "right", "onPress"];
5205
+ function ListItem(_ref) {
5206
+ var children = _ref.children,
5207
+ withPadding = _ref.withPadding,
5208
+ borders = _ref.borders,
5209
+ left = _ref.left,
5210
+ right = _ref.right,
5211
+ onPress = _ref.onPress,
5212
+ rest = _objectWithoutProperties(_ref, _excluded$9);
5257
5213
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
5258
5214
  var wrapperProps = onPress ? _objectSpread({
5259
5215
  accessibilityRole: 'button',
@@ -5261,9 +5217,14 @@ function ListItem(_ref5) {
5261
5217
  }, rest) : undefined;
5262
5218
  var containerProps = onPress ? undefined : rest;
5263
5219
  return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
5264
- children: /*#__PURE__*/jsxs(ContainerView, _objectSpread(_objectSpread({
5265
- withPadding: withPadding,
5266
- borders: borders
5220
+ children: /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
5221
+ flexDirection: "row",
5222
+ paddingX: withPadding ? 'kitt.listItem.horizontalPadding' : undefined,
5223
+ paddingY: withPadding ? 'kitt.listItem.verticalPadding' : undefined,
5224
+ borderColor: "kitt.listItem.borderColor",
5225
+ backgroundColor: "kitt.uiBackgroundLight",
5226
+ borderTopWidth: borders === 'top' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined,
5227
+ borderBottomWidth: borders === 'bottom' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined
5267
5228
  }, containerProps), {}, {
5268
5229
  children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
5269
5230
  side: "left",
@@ -5936,6 +5897,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5936
5897
  'subtle-dark': theme.button['subtle-dark'],
5937
5898
  disabled: theme.button.disabled
5938
5899
  },
5900
+ choices: {
5901
+ item: {
5902
+ "default": {
5903
+ backgroundColor: theme.choices.item.backgroundColor["default"]
5904
+ },
5905
+ disabled: {
5906
+ backgroundColor: theme.choices.item.backgroundColor.disabled,
5907
+ borderColor: theme.choices.item.disabled.border.color
5908
+ },
5909
+ selected: {
5910
+ backgroundColor: theme.choices.item.backgroundColor.selected
5911
+ },
5912
+ pressed: {
5913
+ backgroundColor: theme.choices.item.backgroundColor.pressed
5914
+ },
5915
+ hover: {
5916
+ backgroundColor: theme.choices.item.backgroundColor.hover
5917
+ },
5918
+ hoverWhenSelected: {
5919
+ backgroundColor: theme.choices.item.backgroundColor.hoverWhenSelected
5920
+ }
5921
+ }
5922
+ },
5923
+ tag: {
5924
+ primary: {
5925
+ fill: {
5926
+ backgroundColor: theme.tag.primary.fill.backgroundColor,
5927
+ borderColor: theme.tag.primary.fill.borderColor
5928
+ },
5929
+ outline: {
5930
+ backgroundColor: theme.tag.primary.outline.backgroundColor,
5931
+ borderColor: theme.tag.primary.outline.borderColor
5932
+ }
5933
+ },
5934
+ "default": {
5935
+ fill: {
5936
+ backgroundColor: theme.tag["default"].fill.backgroundColor,
5937
+ borderColor: theme.tag["default"].fill.borderColor
5938
+ },
5939
+ outline: {
5940
+ backgroundColor: theme.tag["default"].outline.backgroundColor,
5941
+ borderColor: theme.tag["default"].outline.borderColor
5942
+ }
5943
+ },
5944
+ danger: {
5945
+ fill: {
5946
+ backgroundColor: theme.tag.danger.fill.backgroundColor,
5947
+ borderColor: theme.tag.danger.fill.borderColor
5948
+ },
5949
+ outline: {
5950
+ backgroundColor: theme.tag.danger.outline.backgroundColor,
5951
+ borderColor: theme.tag.danger.outline.borderColor
5952
+ }
5953
+ },
5954
+ warn: {
5955
+ fill: {
5956
+ backgroundColor: theme.tag.warn.fill.backgroundColor,
5957
+ borderColor: theme.tag.warn.fill.borderColor
5958
+ },
5959
+ outline: {
5960
+ backgroundColor: theme.tag.warn.outline.backgroundColor,
5961
+ borderColor: theme.tag.warn.outline.borderColor
5962
+ }
5963
+ }
5964
+ },
5939
5965
  tooltip: {
5940
5966
  backgroundColor: theme.tooltip.backgroundColor
5941
5967
  },
@@ -5959,6 +5985,17 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
5959
5985
  input: {
5960
5986
  states: theme.forms.input.states
5961
5987
  },
5988
+ inputTag: {
5989
+ danger: {
5990
+ backgroundColor: theme.forms.inputTag.danger.backgroundColor
5991
+ },
5992
+ "default": {
5993
+ backgroundColor: theme.forms.inputTag["default"].backgroundColor
5994
+ },
5995
+ success: {
5996
+ backgroundColor: theme.forms.inputTag.success.backgroundColor
5997
+ }
5998
+ },
5962
5999
  radioButtonGroup: {
5963
6000
  item: {
5964
6001
  borderColor: theme.forms.radioButtonGroup.item.borderColor,
@@ -6057,6 +6094,49 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6057
6094
  dark: {
6058
6095
  backgroundColor: theme.highlight.dark.backgroundColor
6059
6096
  }
6097
+ },
6098
+ verticalSteps: {
6099
+ active: {
6100
+ icon: {
6101
+ backgroundColor: theme.verticalSteps.active.icon.backgroundColor,
6102
+ textColor: theme.verticalSteps.active.icon.textColor
6103
+ }
6104
+ },
6105
+ done: {
6106
+ icon: {
6107
+ backgroundColor: theme.verticalSteps.done.icon.backgroundColor,
6108
+ textColor: theme.verticalSteps.done.icon.textColor
6109
+ }
6110
+ },
6111
+ "default": {
6112
+ icon: {
6113
+ backgroundColor: theme.verticalSteps["default"].icon.backgroundColor,
6114
+ textColor: theme.verticalSteps["default"].icon.textColor
6115
+ }
6116
+ }
6117
+ },
6118
+ listItem: {
6119
+ borderColor: theme.listItem.borderColor
6120
+ },
6121
+ picker: {
6122
+ ios: {
6123
+ item: {
6124
+ selected: {
6125
+ color: theme.picker.ios.selected.color
6126
+ }
6127
+ }
6128
+ },
6129
+ android: {
6130
+ item: {
6131
+ "default": {
6132
+ backgroundColor: theme.picker.android["default"].backgroundColor
6133
+ },
6134
+ selected: {
6135
+ color: theme.picker.android.selected.color,
6136
+ backgroundColor: theme.picker.android.selected.backgroundColor
6137
+ }
6138
+ }
6139
+ }
6060
6140
  }
6061
6141
  }),
6062
6142
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.colors
@@ -6091,6 +6171,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6091
6171
  cardModal: {
6092
6172
  borderRadius: theme.cardModal.borderRadius
6093
6173
  },
6174
+ choices: {
6175
+ item: {
6176
+ borderRadius: theme.choices.item.borderRadius
6177
+ }
6178
+ },
6094
6179
  dialogModal: {
6095
6180
  borderRadius: theme.dialogModal.borderRadius
6096
6181
  },
@@ -6098,6 +6183,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6098
6183
  input: {
6099
6184
  borderRadius: theme.forms.input.borderRadius
6100
6185
  },
6186
+ inputTag: {
6187
+ borderRadius: theme.forms.inputTag.borderRadius
6188
+ },
6101
6189
  radioButtonGroup: {
6102
6190
  item: {
6103
6191
  borderRadius: theme.forms.radioButtonGroup.item.borderRadius
@@ -6119,6 +6207,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6119
6207
  iconButton: {
6120
6208
  borderRadius: theme.iconButton.borderRadius
6121
6209
  },
6210
+ tag: {
6211
+ borderRadius: theme.tag.borderRadius
6212
+ },
6122
6213
  tooltip: {
6123
6214
  borderRadius: theme.tooltip.borderRadius
6124
6215
  },
@@ -6230,6 +6321,13 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6230
6321
  button: {
6231
6322
  borderWidth: theme.button.borderWidth
6232
6323
  },
6324
+ choices: {
6325
+ item: {
6326
+ disabled: {
6327
+ borderWidth: theme.choices.item.disabled.border.width
6328
+ }
6329
+ }
6330
+ },
6233
6331
  iconButton: {
6234
6332
  borderWidth: theme.iconButton.borderWidth
6235
6333
  },
@@ -6256,6 +6354,43 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6256
6354
  footer: {
6257
6355
  borderWidth: theme.cardModal.footer.borderWidth
6258
6356
  }
6357
+ },
6358
+ listItem: {
6359
+ borderWidth: theme.listItem.borderWidth
6360
+ },
6361
+ tag: {
6362
+ primary: {
6363
+ fill: {
6364
+ borderWidth: theme.tag.primary.fill.borderWidth
6365
+ },
6366
+ outline: {
6367
+ borderWidth: theme.tag.primary.outline.borderWidth
6368
+ }
6369
+ },
6370
+ "default": {
6371
+ fill: {
6372
+ borderWidth: theme.tag["default"].fill.borderWidth
6373
+ },
6374
+ outline: {
6375
+ borderWidth: theme.tag["default"].outline.borderWidth
6376
+ }
6377
+ },
6378
+ danger: {
6379
+ fill: {
6380
+ borderWidth: theme.tag.danger.fill.borderWidth
6381
+ },
6382
+ outline: {
6383
+ borderWidth: theme.tag.danger.outline.borderWidth
6384
+ }
6385
+ },
6386
+ warn: {
6387
+ fill: {
6388
+ borderWidth: theme.tag.warn.fill.borderWidth
6389
+ },
6390
+ outline: {
6391
+ borderWidth: theme.tag.warn.outline.borderWidth
6392
+ }
6393
+ }
6259
6394
  }
6260
6395
  },
6261
6396
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.borderWidths
@@ -6327,6 +6462,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6327
6462
  },
6328
6463
  textArea: {
6329
6464
  minHeight: theme.forms.textArea.minHeight
6465
+ },
6466
+ timePicker: {
6467
+ minWidth: theme.forms.timePicker.minWidth
6330
6468
  }
6331
6469
  },
6332
6470
  iconButton: {
@@ -6339,6 +6477,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6339
6477
  height: theme.fullscreenModal.header.height
6340
6478
  }
6341
6479
  },
6480
+ pageLoader: {
6481
+ size: theme.pageLoader.size
6482
+ },
6342
6483
  tooltip: {
6343
6484
  maxWidth: theme.tooltip.maxWidth,
6344
6485
  arrow: {
@@ -6358,6 +6499,16 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6358
6499
  size: theme.skeleton.shape.square.size
6359
6500
  }
6360
6501
  }
6502
+ },
6503
+ picker: {
6504
+ ios: {
6505
+ "default": {
6506
+ height: theme.picker.ios["default"].height
6507
+ },
6508
+ landscape: {
6509
+ height: theme.picker.ios.landscape.height
6510
+ }
6511
+ }
6361
6512
  }
6362
6513
  },
6363
6514
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.sizes
@@ -6403,10 +6554,26 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6403
6554
  highlight: {
6404
6555
  padding: theme.highlight.padding
6405
6556
  },
6557
+ listItem: {
6558
+ verticalPadding: theme.listItem.verticalPadding,
6559
+ horizontalPadding: theme.listItem.horizontalPadding
6560
+ },
6561
+ tag: {
6562
+ verticalPadding: theme.tag.verticalPadding,
6563
+ horizontalPadding: theme.tag.horizontalPadding
6564
+ },
6406
6565
  tooltip: {
6407
6566
  horizontalPadding: theme.tooltip.horizontalPadding,
6408
6567
  verticalPadding: theme.tooltip.verticalPadding,
6409
6568
  floatingPadding: theme.tooltip.floatingPadding
6569
+ },
6570
+ picker: {
6571
+ android: {
6572
+ item: {
6573
+ verticalPadding: theme.picker.android.verticalPadding,
6574
+ horizontalPadding: theme.picker.android.horizontalPadding
6575
+ }
6576
+ }
6410
6577
  }
6411
6578
  },
6412
6579
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.space
@@ -6976,7 +7143,7 @@ function KittNativeBaseProvider(_ref) {
6976
7143
  });
6977
7144
  }
6978
7145
 
6979
- var _excluded$6 = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
7146
+ var _excluded$8 = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
6980
7147
  function SimpleContainer(_ref) {
6981
7148
  var children = _ref.children;
6982
7149
  return children;
@@ -6990,7 +7157,7 @@ function NavigationModalBehaviour(_ref2) {
6990
7157
  onEnter = _ref2.onEnter,
6991
7158
  onExit = _ref2.onExit,
6992
7159
  onClose = _ref2.onClose,
6993
- props = _objectWithoutProperties(_ref2, _excluded$6);
7160
+ props = _objectWithoutProperties(_ref2, _excluded$8);
6994
7161
  var AnimationComponent = useBreakpointValue({
6995
7162
  base: FullscreenModalAnimation,
6996
7163
  small: CardModalAnimation
@@ -7321,7 +7488,7 @@ function SkeletonContent(_ref4) {
7321
7488
  });
7322
7489
  }
7323
7490
 
7324
- var _excluded$5 = ["isLoading", "style"],
7491
+ var _excluded$7 = ["isLoading", "style"],
7325
7492
  _excluded2$1 = ["size"],
7326
7493
  _excluded3$1 = ["size"],
7327
7494
  _excluded4 = ["size"];
@@ -7329,7 +7496,7 @@ function Skeleton(_ref) {
7329
7496
  var _ref$isLoading = _ref.isLoading,
7330
7497
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
7331
7498
  style = _ref.style,
7332
- props = _objectWithoutProperties(_ref, _excluded$5);
7499
+ props = _objectWithoutProperties(_ref, _excluded$7);
7333
7500
  var _useState = useState(0),
7334
7501
  _useState2 = _slicedToArray(_useState, 2),
7335
7502
  width = _useState2[0],
@@ -7528,7 +7695,7 @@ function getShouldDisplay2x() {
7528
7695
  return window.devicePixelRatio ? window.devicePixelRatio > 1 : false;
7529
7696
  }
7530
7697
 
7531
- var _excluded$4 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
7698
+ var _excluded$6 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
7532
7699
  var mapBoxMaxPictureWidth = 1280;
7533
7700
 
7534
7701
  // Mapbox requestable width for image is between 1 - 1280px
@@ -7546,7 +7713,7 @@ function StaticMap(_ref) {
7546
7713
  center = _ref.center,
7547
7714
  onLoaded = _ref.onLoaded,
7548
7715
  onError = _ref.onError,
7549
- props = _objectWithoutProperties(_ref, _excluded$4);
7716
+ props = _objectWithoutProperties(_ref, _excluded$6);
7550
7717
  var _useState = useState(getPictureWidth(width)),
7551
7718
  _useState2 = _slicedToArray(_useState, 2),
7552
7719
  currentWidth = _useState2[0],
@@ -7636,22 +7803,17 @@ StaticMap.Loader = StaticMapLoader;
7636
7803
  StaticMap.Error = StaticMapError;
7637
7804
  StaticMap.Marker = StaticMapMarker;
7638
7805
 
7639
- var Flex = /*#__PURE__*/styled$1(BabelPluginStyledComponentsReactNative.View).withConfig({
7640
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
7641
- return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
7642
- }
7643
- }).withConfig({
7644
- displayName: "Flex",
7645
- componentId: "kitt-universal__sc-15q3v3h-0"
7646
- })(["display:flex;flex-direction:", ";flex-wrap:wrap;padding:", "px;"], function (_ref) {
7647
- var direction = _ref.direction;
7648
- return direction;
7649
- }, function (_ref2) {
7650
- var theme = _ref2.theme,
7651
- _ref2$padding = _ref2.padding,
7652
- padding = _ref2$padding === void 0 ? 0 : _ref2$padding;
7653
- return padding * theme.kitt.spacing;
7654
- });
7806
+ var _excluded$5 = ["direction", "wrap"];
7807
+ function Flex(_ref) {
7808
+ var direction = _ref.direction,
7809
+ _ref$wrap = _ref.wrap,
7810
+ wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
7811
+ props = _objectWithoutProperties(_ref, _excluded$5);
7812
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7813
+ flexDirection: direction,
7814
+ flexWrap: wrap
7815
+ }));
7816
+ }
7655
7817
 
7656
7818
  var storyPadding = 'kitt.4';
7657
7819
 
@@ -7786,14 +7948,14 @@ function Story(_ref) {
7786
7948
  });
7787
7949
  }
7788
7950
 
7789
- var _excluded$3 = ["title", "children", "internalIsDemoSection"],
7951
+ var _excluded$4 = ["title", "children", "internalIsDemoSection"],
7790
7952
  _excluded2 = ["title", "children"],
7791
7953
  _excluded3 = ["title", "children"];
7792
7954
  function StorySection(_ref) {
7793
7955
  var title = _ref.title,
7794
7956
  children = _ref.children,
7795
7957
  internalIsDemoSection = _ref.internalIsDemoSection,
7796
- props = _objectWithoutProperties(_ref, _excluded$3);
7958
+ props = _objectWithoutProperties(_ref, _excluded$4);
7797
7959
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
7798
7960
  return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
7799
7961
  marginBottom: "kitt.8"
@@ -7918,31 +8080,6 @@ var StoryGrid = {
7918
8080
  Col: StoryGridCol
7919
8081
  };
7920
8082
 
7921
- var Container = /*#__PURE__*/styled$1(BabelPluginStyledComponentsReactNative.View).withConfig({
7922
- displayName: "Tag__Container",
7923
- componentId: "kitt-universal__sc-19jmowi-0"
7924
- })(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
7925
- var theme = _ref.theme,
7926
- type = _ref.type,
7927
- variant = _ref.variant;
7928
- return theme.kitt.tag[type][variant].backgroundColor;
7929
- }, function (_ref2) {
7930
- var theme = _ref2.theme,
7931
- type = _ref2.type,
7932
- variant = _ref2.variant;
7933
- return theme.kitt.tag[type][variant].borderWidth;
7934
- }, function (_ref3) {
7935
- var theme = _ref3.theme,
7936
- type = _ref3.type,
7937
- variant = _ref3.variant;
7938
- return theme.kitt.tag[type][variant].borderColor;
7939
- }, function (_ref4) {
7940
- var theme = _ref4.theme;
7941
- return theme.kitt.tag.padding;
7942
- }, function (_ref5) {
7943
- var theme = _ref5.theme;
7944
- return theme.kitt.tag.borderRadius;
7945
- });
7946
8083
  var getLabelColor = function (type, variant) {
7947
8084
  switch (type) {
7948
8085
  case 'danger':
@@ -7967,15 +8104,20 @@ var getLabelColor = function (type, variant) {
7967
8104
  }
7968
8105
  }
7969
8106
  };
7970
- function Tag(_ref6) {
7971
- var label = _ref6.label,
7972
- _ref6$type = _ref6.type,
7973
- type = _ref6$type === void 0 ? 'default' : _ref6$type,
7974
- _ref6$variant = _ref6.variant,
7975
- variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
7976
- return /*#__PURE__*/jsx(Container, {
7977
- type: type,
7978
- variant: variant,
8107
+ function Tag(_ref) {
8108
+ var label = _ref.label,
8109
+ _ref$type = _ref.type,
8110
+ type = _ref$type === void 0 ? 'default' : _ref$type,
8111
+ _ref$variant = _ref.variant,
8112
+ variant = _ref$variant === void 0 ? 'fill' : _ref$variant;
8113
+ return /*#__PURE__*/jsx(View, {
8114
+ alignSelf: "flex-start",
8115
+ borderRadius: "kitt.tag.borderRadius",
8116
+ paddingX: "kitt.tag.horizontalPadding",
8117
+ paddingY: "kitt.tag.verticalPadding",
8118
+ backgroundColor: "kitt.tag.".concat(type, ".").concat(variant, ".backgroundColor"),
8119
+ borderColor: "kitt.tag.".concat(type, ".").concat(variant, ".borderColor"),
8120
+ borderWidth: "kitt.tag.".concat(type, ".").concat(variant, ".borderWidth"),
7979
8121
  children: /*#__PURE__*/jsx(Typography.Text, {
7980
8122
  base: "body-xsmall",
7981
8123
  color: getLabelColor(type, variant),
@@ -7984,10 +8126,88 @@ function Tag(_ref6) {
7984
8126
  });
7985
8127
  }
7986
8128
 
7987
- function TimePicker() {
7988
- return /*#__PURE__*/jsx(Typography.Text, {
7989
- base: "body",
7990
- children: "TimePicker is not implemented for the web"
8129
+ function formatNumberToTimeString(time) {
8130
+ return "".concat(String(time).padStart(2, '0'));
8131
+ }
8132
+ function formatDateToTimeString(date) {
8133
+ return "".concat(formatNumberToTimeString(date.getHours()), ":").concat(formatNumberToTimeString(date.getMinutes()));
8134
+ }
8135
+
8136
+ function getCurrentInternalForcedState(_ref) {
8137
+ var isDisabled = _ref.isDisabled,
8138
+ isHoveredInternal = _ref.isHoveredInternal,
8139
+ isFocusedInternal = _ref.isFocusedInternal,
8140
+ isPressedInternal = _ref.isPressedInternal;
8141
+ if (isDisabled) return 'disabled';
8142
+ if (isHoveredInternal) return 'hover';
8143
+ if (isFocusedInternal) return 'focus';
8144
+ if (isPressedInternal) return 'hover';
8145
+ return 'default';
8146
+ }
8147
+
8148
+ function TimePickerPressable(_ref) {
8149
+ var testID = _ref.testID,
8150
+ disabled = _ref.disabled,
8151
+ stretch = _ref.stretch,
8152
+ value = _ref.value,
8153
+ placeholder = _ref.placeholder,
8154
+ isHoveredInternal = _ref.isHoveredInternal,
8155
+ isFocusedInternal = _ref.isFocusedInternal,
8156
+ isPressedInternal = _ref.isPressedInternal,
8157
+ onPress = _ref.onPress;
8158
+ return /*#__PURE__*/jsx(Pressable, {
8159
+ testID: testID,
8160
+ disabled: disabled,
8161
+ accessibilityRole: "button",
8162
+ width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
8163
+ onPress: onPress,
8164
+ children: function children(_ref2) {
8165
+ var isHovered = _ref2.isHovered,
8166
+ isFocused = _ref2.isFocused,
8167
+ isPressed = _ref2.isPressed;
8168
+ return /*#__PURE__*/jsxs(View, {
8169
+ position: "relative",
8170
+ children: [/*#__PURE__*/jsx(InputText, {
8171
+ internalForceState: getCurrentInternalForcedState({
8172
+ isDisabled: disabled,
8173
+ isHoveredInternal: isHovered || isHoveredInternal,
8174
+ isFocusedInternal: isFocused || isFocusedInternal,
8175
+ isPressedInternal: isPressed || isPressedInternal
8176
+ }),
8177
+ value: value ? formatDateToTimeString(value) : undefined,
8178
+ placeholder: placeholder,
8179
+ disabled: disabled,
8180
+ textAlign: "center"
8181
+ }), /*#__PURE__*/jsx(View, {
8182
+ position: "absolute",
8183
+ top: "0",
8184
+ left: "0",
8185
+ height: "100%",
8186
+ width: "100%"
8187
+ })]
8188
+ });
8189
+ }
8190
+ });
8191
+ }
8192
+
8193
+ function TimePicker(_ref) {
8194
+ var testID = _ref.testID,
8195
+ disabled = _ref.disabled,
8196
+ stretch = _ref.stretch,
8197
+ value = _ref.value,
8198
+ placeholder = _ref.placeholder,
8199
+ isHoveredInternal = _ref.isHoveredInternal,
8200
+ isFocusedInternal = _ref.isFocusedInternal,
8201
+ isPressedInternal = _ref.isPressedInternal;
8202
+ return /*#__PURE__*/jsx(TimePickerPressable, {
8203
+ testID: testID,
8204
+ disabled: disabled,
8205
+ stretch: stretch,
8206
+ value: value,
8207
+ placeholder: placeholder,
8208
+ isHoveredInternal: isHoveredInternal,
8209
+ isFocusedInternal: isFocusedInternal,
8210
+ isPressedInternal: isPressedInternal
7991
8211
  });
7992
8212
  }
7993
8213
 
@@ -8320,18 +8540,18 @@ function TypographyEmoji(_ref3) {
8320
8540
  });
8321
8541
  }
8322
8542
 
8323
- var _excluded$2 = ["as", "children"];
8543
+ var _excluded$3 = ["as", "children"];
8324
8544
  function StyleWebWrapper(_ref) {
8325
8545
  var as = _ref.as,
8326
8546
  children = _ref.children,
8327
- props = _objectWithoutProperties(_ref, _excluded$2);
8547
+ props = _objectWithoutProperties(_ref, _excluded$3);
8328
8548
  // as or default to div. If as is undefined, T is div but typescript is not sure
8329
8549
  return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
8330
8550
  children: children
8331
8551
  }));
8332
8552
  }
8333
8553
 
8334
- var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
8554
+ var _excluded$2 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
8335
8555
  // overrides :global(a) in Link styles.module.css
8336
8556
  var _exp = function () {
8337
8557
  return function (_ref) {
@@ -8361,7 +8581,7 @@ function TypographyLink(_ref3) {
8361
8581
  href = _ref3.href,
8362
8582
  hrefAttrs = _ref3.hrefAttrs,
8363
8583
  onPress = _ref3.onPress,
8364
- otherProps = _objectWithoutProperties(_ref3, _excluded$1);
8584
+ otherProps = _objectWithoutProperties(_ref3, _excluded$2);
8365
8585
  return /*#__PURE__*/jsx(StyleWebWrapper, {
8366
8586
  as: TypographyLinkWebWrapper,
8367
8587
  $hasNoUnderline: noUnderline,
@@ -8474,7 +8694,7 @@ var KittThemeDecorator = makeDecorator({
8474
8694
  }
8475
8695
  });
8476
8696
 
8477
- var _excluded = ["children"];
8697
+ var _excluded$1 = ["children"];
8478
8698
  /**
8479
8699
  * Display children if match window size options
8480
8700
  *
@@ -8482,7 +8702,7 @@ var _excluded = ["children"];
8482
8702
  */
8483
8703
  function MatchWindowSize(_ref) {
8484
8704
  var children = _ref.children,
8485
- matchWindowSizeOptions = _objectWithoutProperties(_ref, _excluded);
8705
+ matchWindowSizeOptions = _objectWithoutProperties(_ref, _excluded$1);
8486
8706
  var match = useMatchWindowSize(matchWindowSizeOptions);
8487
8707
  if (!match) return null;
8488
8708
  return children;
@@ -8498,5 +8718,128 @@ function useCurrentBreakpointName() {
8498
8718
  });
8499
8719
  }
8500
8720
 
8501
- 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 };
8721
+ var backgroundColors = {
8722
+ done: 'kitt.verticalSteps.done.icon.backgroundColor',
8723
+ active: 'kitt.verticalSteps.active.icon.backgroundColor',
8724
+ "default": 'kitt.verticalSteps.default.icon.backgroundColor'
8725
+ };
8726
+ function IconStatus(_ref) {
8727
+ var state = _ref.state,
8728
+ index = _ref.index;
8729
+ if (state === 'done') {
8730
+ return /*#__PURE__*/jsx(TypographyIcon, {
8731
+ icon: /*#__PURE__*/jsx(CheckIcon, {}),
8732
+ color: "kitt.verticalSteps.done.icon.textColor"
8733
+ });
8734
+ }
8735
+ if (state === 'active') {
8736
+ return /*#__PURE__*/jsx(Typography.Text, {
8737
+ textAlign: "center",
8738
+ variant: "bold",
8739
+ color: "kitt.verticalSteps.active.icon.textColor",
8740
+ children: index + 1
8741
+ });
8742
+ }
8743
+ return /*#__PURE__*/jsx(Typography.Text, {
8744
+ textAlign: "center",
8745
+ variant: "bold",
8746
+ color: "kitt.verticalSteps.default.icon.textColor",
8747
+ children: index + 1
8748
+ });
8749
+ }
8750
+ function StepIcon(_ref2) {
8751
+ var index = _ref2.index,
8752
+ _ref2$state = _ref2.state,
8753
+ state = _ref2$state === void 0 ? 'default' : _ref2$state;
8754
+ return /*#__PURE__*/jsx(View, {
8755
+ justifyContent: "center",
8756
+ alignItems: "center",
8757
+ width: 30,
8758
+ height: 30,
8759
+ borderRadius: 15,
8760
+ backgroundColor: backgroundColors[state],
8761
+ children: /*#__PURE__*/jsx(IconStatus, {
8762
+ state: state,
8763
+ index: index
8764
+ })
8765
+ });
8766
+ }
8767
+
8768
+ function ExternalStep() {
8769
+ return null;
8770
+ }
8771
+ function Step(_ref) {
8772
+ var _ref$index = _ref.index,
8773
+ index = _ref$index === void 0 ? 0 : _ref$index,
8774
+ children = _ref.children,
8775
+ _ref$state = _ref.state,
8776
+ state = _ref$state === void 0 ? 'default' : _ref$state,
8777
+ _ref$isLast = _ref.isLast,
8778
+ isLast = _ref$isLast === void 0 ? false : _ref$isLast,
8779
+ _ref$shouldDisableNex = _ref.shouldDisableNextLink,
8780
+ shouldDisableNextLink = _ref$shouldDisableNex === void 0 ? false : _ref$shouldDisableNex;
8781
+ return /*#__PURE__*/jsxs(HStack$1, {
8782
+ space: "kitt.2",
8783
+ flexGrow: 1,
8784
+ children: [/*#__PURE__*/jsxs(View, {
8785
+ marginTop: "kitt.2",
8786
+ paddingY: "kitt.2",
8787
+ backgroundColor: "kitt.white",
8788
+ children: [/*#__PURE__*/jsx(StepIcon, {
8789
+ state: state,
8790
+ index: index
8791
+ }), !isLast ? /*#__PURE__*/jsx(View, {
8792
+ backgroundColor: shouldDisableNextLink ? 'kitt.palettes.lateOcean.black100' : 'kitt.palettes.lateOcean.moonPurple',
8793
+ width: 1,
8794
+ position: "absolute",
8795
+ top: 46,
8796
+ left: 15,
8797
+ zIndex: -1,
8798
+ height: "100%"
8799
+ }) : null]
8800
+ }), /*#__PURE__*/jsx(View, {
8801
+ flexGrow: 1,
8802
+ children: /*#__PURE__*/jsx(ActionCard, {
8803
+ variant: "primary",
8804
+ children: children
8805
+ })
8806
+ })]
8807
+ });
8808
+ }
8809
+
8810
+ function getStepState(index, activeIndex) {
8811
+ if (index === activeIndex) {
8812
+ return 'active';
8813
+ }
8814
+ if (index < activeIndex) {
8815
+ return 'done';
8816
+ }
8817
+ return 'default';
8818
+ }
8819
+
8820
+ var _excluded = ["children", "activeIndex"];
8821
+ function VerticalSteps(_ref) {
8822
+ var children = _ref.children,
8823
+ activeIndex = _ref.activeIndex,
8824
+ props = _objectWithoutProperties(_ref, _excluded);
8825
+ return /*#__PURE__*/jsx(VStack$1, _objectSpread(_objectSpread({
8826
+ space: "kitt.4",
8827
+ width: "100%"
8828
+ }, props), {}, {
8829
+ children: Children.map(children, function (child, index) {
8830
+ if ((process.env.NODE_ENV !== "production") && child.type !== ExternalStep) {
8831
+ throw new Error('VerticalSteps only accepts VerticalSteps.Step as children');
8832
+ }
8833
+ var isLast = index === Children.count(children) - 1;
8834
+ return /*#__PURE__*/createElement(Step, _objectSpread(_objectSpread({}, child.props), {}, {
8835
+ index: index,
8836
+ isLast: isLast,
8837
+ state: getStepState(index, activeIndex)
8838
+ }), child.props.children);
8839
+ })
8840
+ }));
8841
+ }
8842
+ VerticalSteps.Step = ExternalStep;
8843
+
8844
+ 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 };
8502
8845
  //# sourceMappingURL=index-browser-all.es.web.js.map