@ornikar/kitt-universal 11.2.0 → 13.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 (150) 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/Icon/SpinningIcon.web.d.ts.map +1 -1
  19. package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
  20. package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
  21. package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
  22. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  23. package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -1
  24. package/dist/definitions/PageLoader/PageLoader.web.d.ts.map +1 -1
  25. package/dist/definitions/Picker/Picker.d.ts.map +1 -1
  26. package/dist/definitions/Picker/PickerItem.d.ts.map +1 -1
  27. package/dist/definitions/Skeleton/SkeletonContent.d.ts.map +1 -1
  28. package/dist/definitions/Skeleton/SkeletonContent.web.d.ts.map +1 -1
  29. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  30. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +7 -3
  31. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
  32. package/dist/definitions/TimePicker/TimePicker.d.ts +19 -8
  33. package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
  34. package/dist/definitions/TimePicker/TimePicker.web.d.ts +2 -1
  35. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
  36. package/dist/definitions/TimePicker/TimePickerPressable.d.ts +20 -0
  37. package/dist/definitions/TimePicker/TimePickerPressable.d.ts.map +1 -0
  38. package/dist/definitions/TimePicker/utils/formatDateToTimeString.d.ts +2 -0
  39. package/dist/definitions/TimePicker/utils/formatDateToTimeString.d.ts.map +1 -0
  40. package/dist/definitions/TimePicker/utils/getCurrentInternalForcedState.d.ts +10 -0
  41. package/dist/definitions/TimePicker/utils/getCurrentInternalForcedState.d.ts.map +1 -0
  42. package/dist/definitions/VerticalSteps/Step.d.ts +16 -0
  43. package/dist/definitions/VerticalSteps/Step.d.ts.map +1 -0
  44. package/dist/definitions/VerticalSteps/StepIcon.d.ts +13 -0
  45. package/dist/definitions/VerticalSteps/StepIcon.d.ts.map +1 -0
  46. package/dist/definitions/VerticalSteps/VerticalSteps.d.ts +12 -0
  47. package/dist/definitions/VerticalSteps/VerticalSteps.d.ts.map +1 -0
  48. package/dist/definitions/VerticalSteps/utils/getStepState.d.ts +3 -0
  49. package/dist/definitions/VerticalSteps/utils/getStepState.d.ts.map +1 -0
  50. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/ModalPlatformDateTimePicker.d.ts.map +1 -1
  51. package/dist/definitions/forms/InputTag/InputTag.d.ts.map +1 -1
  52. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -4
  53. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  54. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +2 -9
  55. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
  56. package/dist/definitions/forms/RadioButtonGroup/AnimatedContainer/AnimatedContainer.d.ts +1 -1
  57. package/dist/definitions/forms/RadioButtonGroup/AnimatedContainer/AnimatedContainer.d.ts.map +1 -1
  58. package/dist/definitions/index.d.ts +1 -6
  59. package/dist/definitions/index.d.ts.map +1 -1
  60. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +190 -0
  61. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  62. package/dist/definitions/story-components/Flex.d.ts +6 -4
  63. package/dist/definitions/story-components/Flex.d.ts.map +1 -1
  64. package/dist/definitions/themes/default.d.ts +2 -0
  65. package/dist/definitions/themes/default.d.ts.map +1 -1
  66. package/dist/definitions/themes/late-ocean/choices.d.ts +2 -0
  67. package/dist/definitions/themes/late-ocean/choices.d.ts.map +1 -1
  68. package/dist/definitions/themes/late-ocean/forms.d.ts +1 -0
  69. package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
  70. package/dist/definitions/themes/late-ocean/input.d.ts +3 -0
  71. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  72. package/dist/definitions/themes/late-ocean/listItem.d.ts +3 -0
  73. package/dist/definitions/themes/late-ocean/listItem.d.ts.map +1 -1
  74. package/dist/definitions/themes/late-ocean/pageLoader.d.ts +7 -0
  75. package/dist/definitions/themes/late-ocean/pageLoader.d.ts.map +1 -1
  76. package/dist/definitions/themes/late-ocean/picker.d.ts +3 -0
  77. package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
  78. package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -0
  79. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
  80. package/dist/definitions/themes/late-ocean/tag.d.ts +3 -0
  81. package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
  82. package/dist/definitions/themes/late-ocean/timePicker.d.ts +5 -0
  83. package/dist/definitions/themes/late-ocean/timePicker.d.ts.map +1 -0
  84. package/dist/definitions/themes/late-ocean/verticalSteps.d.ts +14 -0
  85. package/dist/definitions/themes/late-ocean/verticalSteps.d.ts.map +1 -0
  86. package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
  87. package/dist/definitions/typography/TypographyLinkWebWrapper.d.ts +7 -0
  88. package/dist/definitions/typography/TypographyLinkWebWrapper.d.ts.map +1 -0
  89. package/dist/definitions/typography/TypographyLinkWebWrapper.web.d.ts +4 -0
  90. package/dist/definitions/typography/TypographyLinkWebWrapper.web.d.ts.map +1 -0
  91. package/dist/definitions/useKittTheme.d.ts +0 -3
  92. package/dist/definitions/useKittTheme.d.ts.map +1 -1
  93. package/dist/definitions/utils/StyleWebWrapper.d.ts +3 -0
  94. package/dist/definitions/utils/StyleWebWrapper.d.ts.map +1 -1
  95. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts +0 -5
  96. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -1
  97. package/dist/definitions/utils/windowSize/useMatchWindowSize.d.ts +4 -1
  98. package/dist/definitions/utils/windowSize/useMatchWindowSize.d.ts.map +1 -1
  99. package/dist/index-browser-all.es.android.js +1278 -1181
  100. package/dist/index-browser-all.es.android.js.map +1 -1
  101. package/dist/index-browser-all.es.ios.js +1278 -1181
  102. package/dist/index-browser-all.es.ios.js.map +1 -1
  103. package/dist/index-browser-all.es.js +1285 -1209
  104. package/dist/index-browser-all.es.js.map +1 -1
  105. package/dist/index-browser-all.es.web.js +819 -791
  106. package/dist/index-browser-all.es.web.js.map +1 -1
  107. package/dist/index-node-14.17.cjs.js +1143 -1041
  108. package/dist/index-node-14.17.cjs.js.map +1 -1
  109. package/dist/index-node-14.17.cjs.web.css +7 -5
  110. package/dist/index-node-14.17.cjs.web.js +693 -619
  111. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  112. package/dist/linaria-themes-browser-all.es.android.js +59 -14
  113. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  114. package/dist/linaria-themes-browser-all.es.ios.js +59 -14
  115. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  116. package/dist/linaria-themes-browser-all.es.js +59 -14
  117. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  118. package/dist/linaria-themes-browser-all.es.web.js +59 -14
  119. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  120. package/dist/linaria-themes-node-14.17.cjs.js +59 -14
  121. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  122. package/dist/linaria-themes-node-14.17.cjs.web.js +59 -14
  123. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  124. package/dist/styles.css +7 -5
  125. package/dist/tsbuildinfo +1 -1
  126. package/package.json +7 -11
  127. package/typings/react-native-web.d.ts +2 -0
  128. package/.stylelintrc +0 -3
  129. package/dist/definitions/Modal/Body.d.ts +0 -6
  130. package/dist/definitions/Modal/Body.d.ts.map +0 -1
  131. package/dist/definitions/Modal/Footer.d.ts +0 -6
  132. package/dist/definitions/Modal/Footer.d.ts.map +0 -1
  133. package/dist/definitions/Modal/Header.d.ts +0 -8
  134. package/dist/definitions/Modal/Header.d.ts.map +0 -1
  135. package/dist/definitions/Modal/Modal.d.ts +0 -21
  136. package/dist/definitions/Modal/Modal.d.ts.map +0 -1
  137. package/dist/definitions/Modal/OnCloseContext.d.ts +0 -3
  138. package/dist/definitions/Modal/OnCloseContext.d.ts.map +0 -1
  139. package/dist/definitions/TimePicker/useTimePicker.d.ts +0 -14
  140. package/dist/definitions/TimePicker/useTimePicker.d.ts.map +0 -1
  141. package/dist/definitions/forms/styledTextInputMixin.d.ts +0 -8
  142. package/dist/definitions/forms/styledTextInputMixin.d.ts.map +0 -1
  143. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts +0 -19
  144. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts.map +0 -1
  145. package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +0 -50
  146. package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts.map +0 -1
  147. package/dist/definitions/utils/withTheme.d.ts +0 -7
  148. package/dist/definitions/utils/withTheme.d.ts.map +0 -1
  149. package/dist/index-browser-all.es.css +0 -1
  150. package/dist/index-node-14.17.cjs.css +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,15 +8,14 @@ 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, 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';
15
- import { ArcIcon, UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, RotateCCWIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
15
+ import { ArcIcon, UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, RotateCCWIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
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';
@@ -923,6 +922,9 @@ var inputStatesStyle = {
923
922
  color: colors.black
924
923
  }
925
924
  };
925
+ var webAnimationDuration = '200ms';
926
+ var webAnimationTimingFunction = 'ease-in-out';
927
+ var webAnimationProperty = 'border-color';
926
928
  var input = {
927
929
  minHeight: 40,
928
930
  color: {
@@ -942,9 +944,9 @@ var input = {
942
944
  vertical: 5
943
945
  },
944
946
  transition: {
945
- property: 'border-color',
946
- duration: '200ms',
947
- timingFunction: 'ease-in-out'
947
+ property: webAnimationProperty,
948
+ duration: webAnimationDuration,
949
+ timingFunction: webAnimationTimingFunction
948
950
  },
949
951
  states: inputStatesStyle
950
952
  };
@@ -1043,6 +1045,10 @@ var textArea = {
1043
1045
  minHeight: 120
1044
1046
  };
1045
1047
 
1048
+ var timePicker = {
1049
+ minWidth: 100
1050
+ };
1051
+
1046
1052
  var forms = {
1047
1053
  datePicker: datePicker,
1048
1054
  input: input,
@@ -1051,7 +1057,8 @@ var forms = {
1051
1057
  textArea: textArea,
1052
1058
  checkbox: checkbox,
1053
1059
  inputTag: inputTag,
1054
- radioButtonGroup: radioButtonGroup
1060
+ radioButtonGroup: radioButtonGroup,
1061
+ timePicker: timePicker
1055
1062
  };
1056
1063
 
1057
1064
  var webAnimationContentDuration = 600;
@@ -1141,25 +1148,34 @@ var iconButton = {
1141
1148
 
1142
1149
  var listItem = {
1143
1150
  padding: '12px 16px',
1151
+ verticalPadding: 12,
1152
+ horizontalPadding: 16,
1144
1153
  borderColor: colors.separator,
1145
1154
  borderWidth: 1,
1146
1155
  innerMargin: 8
1147
1156
  };
1148
1157
 
1158
+ var pageLoaderSize = 60;
1159
+ var pageLoaderStrokeWidth = 3;
1160
+ var webAnimationDelay = 500;
1161
+ var webAnimationCircleBackgroundFillDuration = 1000;
1162
+ var webAnimationFilledCircleFillDuration = 1800;
1163
+ var webAnimationFilledCircleRotationDuration = 2160;
1164
+ var fillEasingFunction = [0.39, 0.575, 0.565, 1];
1149
1165
  var pageLoader = {
1150
- size: 60,
1151
- strokeWidth: 3,
1166
+ size: pageLoaderSize,
1167
+ strokeWidth: pageLoaderStrokeWidth,
1152
1168
  colors: {
1153
1169
  base: colors.separator,
1154
1170
  fill: colors.primary
1155
1171
  },
1156
1172
  animation: {
1157
- delay: 500,
1158
- circleBackgroundFillDuration: 1000,
1159
- filledCircleFillDuration: 1800,
1173
+ delay: webAnimationDelay,
1174
+ circleBackgroundFillDuration: webAnimationCircleBackgroundFillDuration,
1175
+ filledCircleFillDuration: webAnimationFilledCircleFillDuration,
1160
1176
  groupFilledCircleRotationDuration: 1800,
1161
- filledCircleRotationDuration: 2160,
1162
- fillEasingFunction: [0.39, 0.575, 0.565, 1]
1177
+ filledCircleRotationDuration: webAnimationFilledCircleRotationDuration,
1178
+ fillEasingFunction: fillEasingFunction
1163
1179
  }
1164
1180
  };
1165
1181
 
@@ -1182,6 +1198,8 @@ var picker = {
1182
1198
  },
1183
1199
  android: {
1184
1200
  padding: '12px 24px',
1201
+ verticalPadding: 12,
1202
+ horizontalPadding: 24,
1185
1203
  "default": {
1186
1204
  backgroundColor: colors.transparent
1187
1205
  },
@@ -1257,9 +1275,11 @@ var shadows = {
1257
1275
  }
1258
1276
  };
1259
1277
 
1278
+ var skeletonBackgroundColor = lateOceanColorPalette.black100;
1279
+ var skeletonFlareColor = lateOceanColorPalette.black200;
1260
1280
  var skeleton = {
1261
- backgroundColor: lateOceanColorPalette.black100,
1262
- flareColor: lateOceanColorPalette.black200,
1281
+ backgroundColor: skeletonBackgroundColor,
1282
+ flareColor: skeletonFlareColor,
1263
1283
  animationDuration: 1000,
1264
1284
  shape: {
1265
1285
  bar: {
@@ -1280,6 +1300,8 @@ var skeleton = {
1280
1300
  var tag = {
1281
1301
  borderRadius: 10,
1282
1302
  padding: '2px 12px',
1303
+ verticalPadding: 2,
1304
+ horizontalPadding: 12,
1283
1305
  primary: {
1284
1306
  fill: {
1285
1307
  backgroundColor: lateOceanColorPalette.moonPurpleLight1,
@@ -1356,6 +1378,27 @@ var tooltip = {
1356
1378
  }
1357
1379
  };
1358
1380
 
1381
+ var verticalSteps = {
1382
+ active: {
1383
+ icon: {
1384
+ backgroundColor: colors.primary,
1385
+ textColor: colors.white
1386
+ }
1387
+ },
1388
+ done: {
1389
+ icon: {
1390
+ backgroundColor: lateOceanColorPalette.moonPurple,
1391
+ textColor: colors.primary
1392
+ }
1393
+ },
1394
+ "default": {
1395
+ icon: {
1396
+ backgroundColor: colors.disabled,
1397
+ textColor: colors.blackDisabled
1398
+ }
1399
+ }
1400
+ };
1401
+
1359
1402
  var breakpoints = {
1360
1403
  values: {
1361
1404
  base: 0,
@@ -1407,7 +1450,8 @@ var theme = {
1407
1450
  tooltip: tooltip,
1408
1451
  typography: typography,
1409
1452
  fullscreenModal: fullscreenModal,
1410
- actionCard: actionCard
1453
+ actionCard: actionCard,
1454
+ verticalSteps: verticalSteps
1411
1455
  };
1412
1456
 
1413
1457
  var KittThemeContext = /*#__PURE__*/createContext({
@@ -1712,7 +1756,7 @@ var isTypographyHeader = function (type, isHeaderTypographyInContext) {
1712
1756
  throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
1713
1757
  };
1714
1758
 
1715
- var _excluded$E = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1759
+ var _excluded$H = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
1716
1760
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
1717
1761
  var TypographyColorContext = /*#__PURE__*/createContext('black');
1718
1762
  function useTypographyColor() {
@@ -1762,7 +1806,7 @@ function Typography(_ref) {
1762
1806
  } : _ref$type,
1763
1807
  variant = _ref.variant,
1764
1808
  color = _ref.color,
1765
- otherProps = _objectWithoutProperties(_ref, _excluded$E);
1809
+ otherProps = _objectWithoutProperties(_ref, _excluded$H);
1766
1810
  var sx = useSx();
1767
1811
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
1768
1812
  var defaultColor = useTypographyDefaultColor();
@@ -1867,11 +1911,11 @@ function Icon(_ref) {
1867
1911
  });
1868
1912
  }
1869
1913
 
1870
- var _excluded$D = ["color"],
1914
+ var _excluded$G = ["color"],
1871
1915
  _excluded2$5 = ["color"];
1872
1916
  function TypographyIconSpecifiedColor(_ref) {
1873
1917
  var color = _ref.color,
1874
- props = _objectWithoutProperties(_ref, _excluded$D);
1918
+ props = _objectWithoutProperties(_ref, _excluded$G);
1875
1919
  var sx = useSx();
1876
1920
  var colorStyle = sx({
1877
1921
  color: getTypographyColorValue(color)
@@ -1915,7 +1959,7 @@ var getTextColorByType = function (type, variant, isHovered, isPressed) {
1915
1959
  }
1916
1960
  };
1917
1961
 
1918
- var _excluded$C = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
1962
+ var _excluded$F = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
1919
1963
  function ButtonIcon(_ref) {
1920
1964
  var icon = _ref.icon,
1921
1965
  color = _ref.color,
@@ -1990,7 +2034,7 @@ function ButtonContent(_ref3) {
1990
2034
  isHovered = _ref3.isHovered,
1991
2035
  isPressed = _ref3.isPressed;
1992
2036
  _ref3.isFocused;
1993
- var props = _objectWithoutProperties(_ref3, _excluded$C);
2037
+ var props = _objectWithoutProperties(_ref3, _excluded$F);
1994
2038
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant, isHovered, isPressed);
1995
2039
  return /*#__PURE__*/jsx(View, {
1996
2040
  _web: {
@@ -2039,7 +2083,7 @@ function ButtonPadding(_ref2) {
2039
2083
  });
2040
2084
  }
2041
2085
 
2042
- function DisabledBorder$1() {
2086
+ function DisabledBorder() {
2043
2087
  return /*#__PURE__*/jsx(View, {
2044
2088
  position: "absolute",
2045
2089
  top: 0,
@@ -2236,7 +2280,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
2236
2280
  isPressed: isPressed,
2237
2281
  isFocused: isFocused,
2238
2282
  children: _children
2239
- }), disabled ? /*#__PURE__*/jsx(DisabledBorder$1, {}) : null, /*#__PURE__*/jsx(FocusBorder, {
2283
+ }), disabled ? /*#__PURE__*/jsx(DisabledBorder, {}) : null, /*#__PURE__*/jsx(FocusBorder, {
2240
2284
  type: type,
2241
2285
  variant: variant,
2242
2286
  isFocused: isFocused || isFocusedInternal,
@@ -2323,7 +2367,7 @@ function useMatchWindowSize(options) {
2323
2367
  }, options);
2324
2368
  }
2325
2369
 
2326
- var _excluded$B = ["as", "onPress", "disabled", "icon", "stretch"];
2370
+ var _excluded$E = ["as", "onPress", "disabled", "icon", "stretch"];
2327
2371
  function getCurrentStretchValue(isStretch, isMedium) {
2328
2372
  // Stretch will follow the value passed from the component occurence if defined
2329
2373
  if (isStretch) return isStretch;
@@ -2338,7 +2382,7 @@ function ActionsItem(_ref) {
2338
2382
  disabled = _ref.disabled,
2339
2383
  icon = _ref.icon,
2340
2384
  stretch = _ref.stretch,
2341
- props = _objectWithoutProperties(_ref, _excluded$B);
2385
+ props = _objectWithoutProperties(_ref, _excluded$E);
2342
2386
  var isMedium = useMatchWindowSize({
2343
2387
  minWidth: KittBreakpoints.MEDIUM
2344
2388
  });
@@ -2413,7 +2457,7 @@ function ActionsButton(_ref) {
2413
2457
  }, props));
2414
2458
  }
2415
2459
 
2416
- var _excluded$A = ["children", "layout"];
2460
+ var _excluded$D = ["children", "layout"];
2417
2461
  function getCurrentLayout(layout) {
2418
2462
  if (!layout) return {
2419
2463
  base: 'stretch',
@@ -2433,7 +2477,7 @@ function getCurrentDirection(layout) {
2433
2477
  function Actions(_ref) {
2434
2478
  var children = _ref.children,
2435
2479
  layout = _ref.layout,
2436
- props = _objectWithoutProperties(_ref, _excluded$A);
2480
+ props = _objectWithoutProperties(_ref, _excluded$D);
2437
2481
  var currentAlignItems = getCurrentLayout(layout);
2438
2482
  var currentDirection = getCurrentDirection(layout);
2439
2483
  return /*#__PURE__*/jsx(Stack, _objectSpread(_objectSpread({
@@ -2479,7 +2523,7 @@ function getInitials(firstname, lastname) {
2479
2523
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
2480
2524
  }
2481
2525
 
2482
- var _excluded$z = ["size", "round", "light", "sizeVariant"];
2526
+ var _excluded$C = ["size", "round", "light", "sizeVariant"];
2483
2527
  function AvatarContent(_ref) {
2484
2528
  var size = _ref.size,
2485
2529
  src = _ref.src,
@@ -2518,7 +2562,7 @@ function Avatar(_ref2) {
2518
2562
  round = _ref2.round,
2519
2563
  light = _ref2.light,
2520
2564
  sizeVariant = _ref2.sizeVariant,
2521
- props = _objectWithoutProperties(_ref2, _excluded$z);
2565
+ props = _objectWithoutProperties(_ref2, _excluded$C);
2522
2566
  var currentSize = getCurrentSize({
2523
2567
  size: size,
2524
2568
  sizeVariant: sizeVariant
@@ -2638,17 +2682,17 @@ function ModalBehaviourPortal(_ref) {
2638
2682
  });
2639
2683
  }
2640
2684
 
2641
- var OnCloseContext$1 = /*#__PURE__*/createContext(function () {});
2685
+ var OnCloseContext = /*#__PURE__*/createContext(function () {});
2642
2686
  function OnCloseProvider(_ref) {
2643
2687
  var children = _ref.children,
2644
2688
  onClose = _ref.onClose;
2645
- return /*#__PURE__*/jsx(OnCloseContext$1.Provider, {
2689
+ return /*#__PURE__*/jsx(OnCloseContext.Provider, {
2646
2690
  value: onClose,
2647
2691
  children: children
2648
2692
  });
2649
2693
  }
2650
2694
  function useOnCloseModalBehaviour() {
2651
- var onClose = useContext(OnCloseContext$1);
2695
+ var onClose = useContext(OnCloseContext);
2652
2696
  return onClose;
2653
2697
  }
2654
2698
 
@@ -2686,19 +2730,16 @@ function ModalBehaviour(_ref2) {
2686
2730
  }
2687
2731
  ModalBehaviour.CloseButton = CloseButton;
2688
2732
 
2689
- // Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
2690
- var OverlayPressable = /*#__PURE__*/styled(Pressable$2).withConfig({
2691
- displayName: "Overlay__OverlayPressable"
2692
- })(function (_ref) {
2693
- var theme = _ref.theme;
2694
- return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
2695
- backgroundColor: theme.kitt.colors.overlay.dark
2696
- });
2697
- });
2698
- function Overlay(_ref2) {
2699
- var onPress = _ref2.onPress;
2700
- return /*#__PURE__*/jsx(OverlayPressable, {
2733
+ function Overlay(_ref) {
2734
+ var onPress = _ref.onPress;
2735
+ return /*#__PURE__*/jsx(Pressable, {
2701
2736
  accessibilityRole: "none",
2737
+ position: "absolute",
2738
+ top: "0",
2739
+ left: "0",
2740
+ right: "0",
2741
+ bottom: "0",
2742
+ backgroundColor: "kitt.overlay.dark",
2702
2743
  onPress: onPress
2703
2744
  });
2704
2745
  }
@@ -2898,7 +2939,7 @@ function CardModalAnimation(_ref) {
2898
2939
  if (onExit) onExit();
2899
2940
  setIsContentVisible(false);
2900
2941
  }, [visible, isContentVisible, onExit]);
2901
- return /*#__PURE__*/jsx(Modal$1, {
2942
+ return /*#__PURE__*/jsx(Modal, {
2902
2943
  transparent: true,
2903
2944
  supportedOrientations: ['landscape', 'portrait'],
2904
2945
  visible: isModalVisible,
@@ -2938,11 +2979,11 @@ function CardModalAnimation(_ref) {
2938
2979
  });
2939
2980
  }
2940
2981
 
2941
- var _excluded$y = ["children"],
2982
+ var _excluded$B = ["children"],
2942
2983
  _excluded2$4 = ["children", "visible", "onClose", "onExited"];
2943
2984
  function CardModalScrollContainer(_ref) {
2944
2985
  var children = _ref.children,
2945
- props = _objectWithoutProperties(_ref, _excluded$y);
2986
+ props = _objectWithoutProperties(_ref, _excluded$B);
2946
2987
  if (Platform.OS !== 'web') {
2947
2988
  return /*#__PURE__*/jsx(View, {
2948
2989
  children: children
@@ -2988,7 +3029,7 @@ function CardModalBehaviour(_ref2) {
2988
3029
  });
2989
3030
  }
2990
3031
 
2991
- var _excluded$x = ["children", "paddingX", "paddingY"];
3032
+ var _excluded$A = ["children", "paddingX", "paddingY"];
2992
3033
  function CardModalBody(_ref) {
2993
3034
  var children = _ref.children,
2994
3035
  _ref$paddingX = _ref.paddingX,
@@ -2998,7 +3039,7 @@ function CardModalBody(_ref) {
2998
3039
  } : _ref$paddingX,
2999
3040
  _ref$paddingY = _ref.paddingY,
3000
3041
  paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
3001
- props = _objectWithoutProperties(_ref, _excluded$x);
3042
+ props = _objectWithoutProperties(_ref, _excluded$A);
3002
3043
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
3003
3044
  paddingX: paddingX,
3004
3045
  paddingY: paddingY
@@ -3007,7 +3048,7 @@ function CardModalBody(_ref) {
3007
3048
  }));
3008
3049
  }
3009
3050
 
3010
- var _excluded$w = ["children", "padding", "hasSeparator"];
3051
+ var _excluded$z = ["children", "padding", "hasSeparator"];
3011
3052
  function CardModalFooter(_ref) {
3012
3053
  var children = _ref.children,
3013
3054
  _ref$padding = _ref.padding,
@@ -3017,7 +3058,7 @@ function CardModalFooter(_ref) {
3017
3058
  } : _ref$padding,
3018
3059
  _ref$hasSeparator = _ref.hasSeparator,
3019
3060
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
3020
- props = _objectWithoutProperties(_ref, _excluded$w);
3061
+ props = _objectWithoutProperties(_ref, _excluded$z);
3021
3062
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
3022
3063
  marginTop: "kitt.2",
3023
3064
  padding: padding,
@@ -3031,7 +3072,7 @@ function CardModalFooter(_ref) {
3031
3072
  }));
3032
3073
  }
3033
3074
 
3034
- var _excluded$v = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
3075
+ var _excluded$y = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
3035
3076
  function CardModalHeader(_ref) {
3036
3077
  var children = _ref.children,
3037
3078
  title = _ref.title,
@@ -3044,7 +3085,7 @@ function CardModalHeader(_ref) {
3044
3085
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
3045
3086
  right = _ref.right,
3046
3087
  left = _ref.left,
3047
- props = _objectWithoutProperties(_ref, _excluded$v);
3088
+ props = _objectWithoutProperties(_ref, _excluded$y);
3048
3089
  var defaultContainerPadding = {
3049
3090
  base: 'kitt.4',
3050
3091
  medium: 'kitt.6'
@@ -3082,7 +3123,7 @@ function CardModalHeader(_ref) {
3082
3123
  }));
3083
3124
  }
3084
3125
 
3085
- var _excluded$u = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
3126
+ var _excluded$x = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
3086
3127
  function CardModal(_ref) {
3087
3128
  var _ref$backgroundColor = _ref.backgroundColor,
3088
3129
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -3093,7 +3134,7 @@ function CardModal(_ref) {
3093
3134
  header = _ref.header,
3094
3135
  body = _ref.body,
3095
3136
  footer = _ref.footer,
3096
- props = _objectWithoutProperties(_ref, _excluded$u);
3137
+ props = _objectWithoutProperties(_ref, _excluded$x);
3097
3138
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
3098
3139
  overflow: "hidden",
3099
3140
  backgroundColor: backgroundColor,
@@ -3111,6 +3152,59 @@ CardModal.Header = CardModalHeader;
3111
3152
  CardModal.Footer = CardModalFooter;
3112
3153
  CardModal.ModalBehaviour = CardModalBehaviour;
3113
3154
 
3155
+ function getBackgroundColor$3(_ref) {
3156
+ var isDisabled = _ref.isDisabled,
3157
+ isSelected = _ref.isSelected,
3158
+ isHovered = _ref.isHovered,
3159
+ isPressed = _ref.isPressed;
3160
+ if (isDisabled) return 'kitt.choices.item.disabled.backgroundColor';
3161
+ if (isSelected && isHovered) return 'kitt.choices.item.hoverWhenSelected.backgroundColor';
3162
+ if (isPressed) return 'kitt.choices.item.pressed.backgroundColor';
3163
+ if (isHovered) return 'kitt.choices.item.hover.backgroundColor';
3164
+ if (isSelected) return 'kitt.choices.item.selected.backgroundColor';
3165
+ return 'kitt.choices.item.default.backgroundColor';
3166
+ }
3167
+
3168
+ function getBorderRadius(variant) {
3169
+ // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
3170
+ // We don't control over the height of the rendered children we just go with a arbitrary really high value
3171
+ return variant === 'rounded' ? Number.MAX_SAFE_INTEGER : 'kitt.choices.item.borderRadius';
3172
+ }
3173
+
3174
+ function AnimatedChoiceItemView(_ref) {
3175
+ var children = _ref.children,
3176
+ variant = _ref.variant,
3177
+ size = _ref.size,
3178
+ isHovered = _ref.isHovered,
3179
+ isPressed = _ref.isPressed,
3180
+ isDisabled = _ref.isDisabled,
3181
+ isSelected = _ref.isSelected,
3182
+ animatedStyles = _ref.animatedStyles;
3183
+ var sx = useSx();
3184
+ var style = sx({
3185
+ position: 'relative',
3186
+ borderRadius: getBorderRadius(variant),
3187
+ backgroundColor: getBackgroundColor$3({
3188
+ isDisabled: isDisabled,
3189
+ isSelected: isSelected,
3190
+ isHovered: isHovered,
3191
+ isPressed: isPressed
3192
+ }),
3193
+ paddingX: size === 'small' ? 'kitt.4' : {
3194
+ base: 'kitt.4',
3195
+ small: 'kitt.6'
3196
+ },
3197
+ paddingY: size === 'small' ? 'kitt.2' : {
3198
+ base: 'kitt.4',
3199
+ small: 'kitt.6'
3200
+ }
3201
+ });
3202
+ return /*#__PURE__*/jsx(Animated.View, {
3203
+ style: [style, animatedStyles],
3204
+ children: children
3205
+ });
3206
+ }
3207
+
3114
3208
  var useNativeAnimation$2 = function (_ref) {
3115
3209
  var selected = _ref.selected,
3116
3210
  disabled = _ref.disabled,
@@ -3201,87 +3295,22 @@ function getCurrentTextColor$1(_ref) {
3201
3295
  if (isSelected || isPressed) return 'white';
3202
3296
  return 'black';
3203
3297
  }
3204
- function getBorderRadius(defaultRadius, variant) {
3205
- // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
3206
- // We don't control over the height of the rendered children we just go with a arbitrary really high value
3207
3298
 
3208
- if (variant === 'rounded') return 800;
3209
- return defaultRadius;
3210
- }
3211
- var DisabledBorder = /*#__PURE__*/styled(View$2).withConfig({
3212
- displayName: "ChoiceItem__DisabledBorder"
3213
- })(["border-radius:", "px;", ";"], function (_ref2) {
3214
- var theme = _ref2.theme,
3215
- $variant = _ref2.$variant;
3216
- return getBorderRadius(theme.kitt.choices.item.borderRadius, $variant);
3217
- }, function (_ref3) {
3218
- var theme = _ref3.theme;
3219
- var _theme$kitt$choices$i = theme.kitt.choices.item.disabled.border,
3220
- width = _theme$kitt$choices$i.width,
3221
- color = _theme$kitt$choices$i.color;
3222
- return css(["border:", "px solid ", ";"], width, color);
3223
- });
3224
- var ChoiceItemView = /*#__PURE__*/styled(Platform.OS === 'web' ? View$2 : Animated.View).withConfig({
3225
- displayName: "ChoiceItem__ChoiceItemView"
3226
- })(["position:relative;border-radius:", "px;background-color:", ";", ";", ""], function (_ref4) {
3227
- var theme = _ref4.theme,
3228
- $variant = _ref4.$variant;
3229
- return getBorderRadius(theme.kitt.choices.item.borderRadius, $variant);
3230
- }, function (_ref5) {
3231
- var theme = _ref5.theme,
3232
- $isHovered = _ref5.$isHovered,
3233
- $isPressed = _ref5.$isPressed,
3234
- $isDisabled = _ref5.$isDisabled,
3235
- $isSelected = _ref5.$isSelected;
3236
- var _theme$kitt$choices$i2 = theme.kitt.choices.item.backgroundColor,
3237
- hoverWhenSelected = _theme$kitt$choices$i2.hoverWhenSelected,
3238
- hover = _theme$kitt$choices$i2.hover,
3239
- disabled = _theme$kitt$choices$i2.disabled,
3240
- selected = _theme$kitt$choices$i2.selected,
3241
- pressed = _theme$kitt$choices$i2.pressed,
3242
- defaultBackground = _theme$kitt$choices$i2["default"];
3243
- if ($isDisabled) return disabled;
3244
- if ($isSelected && $isHovered) return hoverWhenSelected;
3245
- if ($isPressed) return pressed;
3246
- if ($isHovered) return hover;
3247
- if ($isSelected) return selected;
3248
- return defaultBackground;
3249
- }, function (_ref6) {
3250
- var theme = _ref6.theme,
3251
- $size = _ref6.$size;
3252
- var _theme$kitt$choices$i3 = theme.kitt.choices.item.padding,
3253
- base = _theme$kitt$choices$i3.base,
3254
- small = _theme$kitt$choices$i3.small;
3255
- if ($size === 'small') {
3256
- return css(["padding:", "px ", "px;"], base / 2, base);
3257
- }
3258
- return theme.responsive.ifWindowSizeMatches({
3259
- minWidth: KittBreakpoints.SMALL
3260
- }, css(["padding:", "px;"], small), css(["padding:", "px;"], base));
3261
- }, function (_ref7) {
3262
- var theme = _ref7.theme;
3263
- if (Platform.OS !== 'web') return undefined;
3264
- var _theme$kitt$choices$i4 = theme.kitt.choices.item.transition,
3265
- property = _theme$kitt$choices$i4.property,
3266
- duration = _theme$kitt$choices$i4.duration,
3267
- timingFunction = _theme$kitt$choices$i4.timingFunction;
3268
- return css(["transition:", " ", "ms ", ";"], property, duration, timingFunction);
3269
- });
3270
- function ChoiceItem(_ref8) {
3271
- var _ref8$type = _ref8.type,
3272
- type = _ref8$type === void 0 ? 'button' : _ref8$type,
3273
- value = _ref8.value,
3274
- selected = _ref8.selected,
3275
- disabled = _ref8.disabled,
3276
- variant = _ref8.variant,
3277
- _children = _ref8.children,
3278
- isPressedInternal = _ref8.isPressedInternal,
3279
- isHoveredInternal = _ref8.isHoveredInternal,
3280
- onPress = _ref8.onPress,
3281
- onChange = _ref8.onChange,
3282
- onBlur = _ref8.onBlur,
3283
- onFocus = _ref8.onFocus,
3284
- size = _ref8.size;
3299
+ function ChoiceItem(_ref) {
3300
+ var _ref$type = _ref.type,
3301
+ type = _ref$type === void 0 ? 'button' : _ref$type,
3302
+ value = _ref.value,
3303
+ selected = _ref.selected,
3304
+ disabled = _ref.disabled,
3305
+ variant = _ref.variant,
3306
+ _children = _ref.children,
3307
+ isPressedInternal = _ref.isPressedInternal,
3308
+ isHoveredInternal = _ref.isHoveredInternal,
3309
+ onPress = _ref.onPress,
3310
+ onChange = _ref.onChange,
3311
+ onBlur = _ref.onBlur,
3312
+ onFocus = _ref.onFocus,
3313
+ size = _ref.size;
3285
3314
  var _useNativeAnimation = useNativeAnimation$2({
3286
3315
  selected: selected,
3287
3316
  disabled: disabled,
@@ -3316,17 +3345,17 @@ function ChoiceItem(_ref8) {
3316
3345
  },
3317
3346
  onPressIn: onPressIn,
3318
3347
  onPressOut: onPressOut,
3319
- children: function children(_ref9) {
3320
- var isHovered = _ref9.isHovered,
3321
- isPressed = _ref9.isPressed;
3322
- return /*#__PURE__*/jsxs(ChoiceItemView, {
3323
- style: Platform.OS !== 'web' ? [backgroundStyles] : undefined,
3324
- $isHovered: isHovered || isHoveredInternal,
3325
- $isDisabled: disabled,
3326
- $isSelected: selected,
3327
- $isPressed: isPressed || isPressedInternal,
3328
- $variant: variant,
3329
- $size: size,
3348
+ children: function children(_ref2) {
3349
+ var isHovered = _ref2.isHovered,
3350
+ isPressed = _ref2.isPressed;
3351
+ return /*#__PURE__*/jsxs(AnimatedChoiceItemView, {
3352
+ animatedStyles: backgroundStyles,
3353
+ isHovered: isHovered || isHoveredInternal,
3354
+ isDisabled: disabled,
3355
+ isSelected: selected,
3356
+ isPressed: isPressed || isPressedInternal,
3357
+ variant: variant,
3358
+ size: size,
3330
3359
  children: [/*#__PURE__*/jsx(Typography.SetDefaultColor, {
3331
3360
  value: getCurrentTextColor$1({
3332
3361
  isDisabled: disabled,
@@ -3335,34 +3364,37 @@ function ChoiceItem(_ref8) {
3335
3364
  isHovered: isHovered || isHoveredInternal
3336
3365
  }),
3337
3366
  children: _children
3338
- }), disabled ? /*#__PURE__*/jsx(DisabledBorder, {
3339
- $variant: variant,
3340
- style: StyleSheet.absoluteFillObject
3367
+ }), disabled ? /*#__PURE__*/jsx(View, {
3368
+ borderRadius: getBorderRadius(variant),
3369
+ borderWidth: "kitt.choices.item.disabled.borderWidth",
3370
+ borderColor: "kitt.choices.item.disabled.borderColor",
3371
+ position: "absolute",
3372
+ top: "0",
3373
+ right: "0",
3374
+ left: "0",
3375
+ bottom: "0"
3341
3376
  }) : null]
3342
3377
  });
3343
3378
  }
3344
3379
  });
3345
3380
  }
3346
3381
 
3347
- var ChoiceItemContainer = /*#__PURE__*/styled(View$2).withConfig({
3348
- displayName: "ChoiceItemContainer"
3349
- })(["", ""], function (_ref) {
3350
- var theme = _ref.theme,
3351
- $isLast = _ref.$isLast,
3352
- $direction = _ref.$direction;
3353
- var _theme$kitt$choices$s = theme.kitt.choices.spacing,
3354
- row = _theme$kitt$choices$s.row,
3355
- column = _theme$kitt$choices$s.column;
3356
- if ($direction === 'row') {
3357
- return css(["margin-right:", "px;"], $isLast ? 0 : row);
3358
- }
3359
- return css(["margin-bottom:", "px;"], $isLast ? 0 : column);
3360
- });
3382
+ function ChoiceItemContainer(_ref) {
3383
+ var children = _ref.children,
3384
+ direction = _ref.direction,
3385
+ isLast = _ref.isLast;
3386
+ var currentItemMarginValue = isLast ? undefined : 'kitt.3';
3387
+ return /*#__PURE__*/jsx(View, {
3388
+ marginRight: direction === 'row' ? currentItemMarginValue : undefined,
3389
+ marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
3390
+ children: children
3391
+ });
3392
+ }
3361
3393
 
3362
- var _excluded$t = ["direction"];
3394
+ var _excluded$w = ["direction"];
3363
3395
  function ChoicesContainer(_ref) {
3364
3396
  var direction = _ref.direction,
3365
- props = _objectWithoutProperties(_ref, _excluded$t);
3397
+ props = _objectWithoutProperties(_ref, _excluded$w);
3366
3398
  if (direction === 'row') {
3367
3399
  return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
3368
3400
  horizontal: true
@@ -3416,8 +3448,8 @@ function Choices(_ref2) {
3416
3448
  selected: isForm ? child.props.value === currentValue : undefined
3417
3449
  }, sharedProps));
3418
3450
  return /*#__PURE__*/jsx(ChoiceItemContainer, {
3419
- $direction: direction,
3420
- $isLast: index === childrenArray.length - 1,
3451
+ direction: direction,
3452
+ isLast: index === childrenArray.length - 1,
3421
3453
  children: element
3422
3454
  }, child.key);
3423
3455
  })
@@ -3620,7 +3652,7 @@ function DialogModalAnimation(_ref) {
3620
3652
  if (onExit) onExit();
3621
3653
  setIsContentVisible(false);
3622
3654
  }, [visible, isContentVisible, onExit]);
3623
- return /*#__PURE__*/jsx(Modal$1, {
3655
+ return /*#__PURE__*/jsx(Modal, {
3624
3656
  transparent: true,
3625
3657
  supportedOrientations: ['landscape', 'portrait'],
3626
3658
  visible: isModalVisible,
@@ -3656,13 +3688,13 @@ function DialogModalAnimation(_ref) {
3656
3688
  });
3657
3689
  }
3658
3690
 
3659
- var _excluded$s = ["children", "visible", "onClose", "onExited"];
3691
+ var _excluded$v = ["children", "visible", "onClose", "onExited"];
3660
3692
  function DialogModalBehaviour(_ref) {
3661
3693
  var children = _ref.children,
3662
3694
  visible = _ref.visible,
3663
3695
  onClose = _ref.onClose,
3664
3696
  onExited = _ref.onExited,
3665
- props = _objectWithoutProperties(_ref, _excluded$s);
3697
+ props = _objectWithoutProperties(_ref, _excluded$v);
3666
3698
  var _useState = useState(visible),
3667
3699
  _useState2 = _slicedToArray(_useState, 2),
3668
3700
  isModalBehaviourVisible = _useState2[0],
@@ -3693,7 +3725,7 @@ function DialogModalBehaviour(_ref) {
3693
3725
  });
3694
3726
  }
3695
3727
 
3696
- var _excluded$r = ["stretch"];
3728
+ var _excluded$u = ["stretch"];
3697
3729
  function DialogModal(_ref) {
3698
3730
  var illustration = _ref.illustration,
3699
3731
  title = _ref.title,
@@ -3734,7 +3766,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
3734
3766
  function DialogModalButton(_ref2) {
3735
3767
  var _ref2$stretch = _ref2.stretch,
3736
3768
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
3737
- props = _objectWithoutProperties(_ref2, _excluded$r);
3769
+ props = _objectWithoutProperties(_ref2, _excluded$u);
3738
3770
  return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
3739
3771
  stretch: stretch
3740
3772
  }, props));
@@ -3771,7 +3803,7 @@ function Emoji(_ref) {
3771
3803
  });
3772
3804
  }
3773
3805
 
3774
- var _excluded$q = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3806
+ var _excluded$t = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
3775
3807
  _excluded2$3 = ["phoneNumber", "children"],
3776
3808
  _excluded3$2 = ["phoneNumber", "children"],
3777
3809
  _excluded4$1 = ["emailAddress", "children"];
@@ -3781,7 +3813,7 @@ function ExternalAppLink(_ref) {
3781
3813
  appValue = _ref.appValue,
3782
3814
  onPress = _ref.onPress,
3783
3815
  onOpenAppError = _ref.onOpenAppError,
3784
- rest = _objectWithoutProperties(_ref, _excluded$q);
3816
+ rest = _objectWithoutProperties(_ref, _excluded$t);
3785
3817
  var href = "".concat(appScheme, ":").concat(appValue);
3786
3818
  var handleOnPress = /*#__PURE__*/function () {
3787
3819
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
@@ -3876,14 +3908,14 @@ var defaultOpenLinkBehavior = {
3876
3908
  web: 'targetBlank'
3877
3909
  };
3878
3910
 
3879
- var _excluded$p = ["as", "href", "openLinkBehavior", "onPress"];
3911
+ var _excluded$s = ["as", "href", "openLinkBehavior", "onPress"];
3880
3912
  function ExternalLink(_ref) {
3881
3913
  var Component = _ref.as,
3882
3914
  href = _ref.href,
3883
3915
  _ref$openLinkBehavior = _ref.openLinkBehavior,
3884
3916
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
3885
3917
  onPress = _ref.onPress,
3886
- rest = _objectWithoutProperties(_ref, _excluded$p);
3918
+ rest = _objectWithoutProperties(_ref, _excluded$s);
3887
3919
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
3888
3920
  onPress: function handleOnPress(e) {
3889
3921
  if (onPress) {
@@ -4210,11 +4242,15 @@ function stringToNumber(text) {
4210
4242
  return parseInt(text, 10);
4211
4243
  }
4212
4244
 
4213
- var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
4214
- displayName: "InputTextContainer"
4215
- })(["position:relative;"]);
4245
+ function InputTextContainer(_ref) {
4246
+ var children = _ref.children;
4247
+ return /*#__PURE__*/jsx(View, {
4248
+ position: "relative",
4249
+ children: children
4250
+ });
4251
+ }
4216
4252
 
4217
- var _excluded$o = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
4253
+ var _excluded$r = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
4218
4254
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4219
4255
  var id = _ref.id,
4220
4256
  right = _ref.right;
@@ -4234,14 +4270,13 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4234
4270
  keyboardType = _ref$keyboardType === void 0 ? 'default' : _ref$keyboardType,
4235
4271
  multiline = _ref.multiline,
4236
4272
  onSubmitEditing = _ref.onSubmitEditing,
4237
- props = _objectWithoutProperties(_ref, _excluded$o);
4273
+ props = _objectWithoutProperties(_ref, _excluded$r);
4238
4274
  var theme = useTheme();
4239
4275
  var fontSizeForNativeBase = createNativeBaseFontSize({
4240
4276
  base: 'body'
4241
4277
  });
4242
4278
  var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
4243
4279
  return /*#__PURE__*/jsxs(InputTextContainer, {
4244
- $isDisabled: disabled,
4245
4280
  children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
4246
4281
  ref: ref,
4247
4282
  multiline: multiline,
@@ -4278,7 +4313,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4278
4313
  });
4279
4314
  });
4280
4315
 
4281
- function getCurrentInternalForcedState(_ref) {
4316
+ function getCurrentInternalForcedState$1(_ref) {
4282
4317
  var isDisabled = _ref.isDisabled,
4283
4318
  isHoveredInternal = _ref.isHoveredInternal,
4284
4319
  isFocusedInternal = _ref.isFocusedInternal,
@@ -4302,7 +4337,7 @@ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
4302
4337
  onSubmitEditing = _ref2.onSubmitEditing;
4303
4338
  return /*#__PURE__*/jsx(InputText, {
4304
4339
  ref: ref,
4305
- internalForceState: getCurrentInternalForcedState({
4340
+ internalForceState: getCurrentInternalForcedState$1({
4306
4341
  isDisabled: disabled,
4307
4342
  isHoveredInternal: isHoveredInternal,
4308
4343
  isFocusedInternal: isFocusedInternal,
@@ -4332,7 +4367,7 @@ function PartContainer(_ref) {
4332
4367
  });
4333
4368
  }
4334
4369
 
4335
- var _excluded$n = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
4370
+ var _excluded$q = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "returnKeyType", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
4336
4371
  var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4337
4372
  var value = _ref.value,
4338
4373
  testID = _ref.testID,
@@ -4350,7 +4385,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
4350
4385
  onBlur = _ref.onBlur,
4351
4386
  onFocus = _ref.onFocus,
4352
4387
  onSubmitEditing = _ref.onSubmitEditing;
4353
- _objectWithoutProperties(_ref, _excluded$n);
4388
+ _objectWithoutProperties(_ref, _excluded$q);
4354
4389
  var monthRef = useRef(null);
4355
4390
  var yearRef = useRef(null);
4356
4391
  var defaultValue = value;
@@ -4557,7 +4592,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
4557
4592
  });
4558
4593
  });
4559
4594
 
4560
- var _excluded$m = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
4595
+ var _excluded$p = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
4561
4596
  var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
4562
4597
  var onBlur = _ref.onBlur,
4563
4598
  onFocus = _ref.onFocus,
@@ -4566,7 +4601,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
4566
4601
  isDefaultVisible = _ref.isDefaultVisible,
4567
4602
  value = _ref.value,
4568
4603
  _onChange = _ref.onChange,
4569
- props = _objectWithoutProperties(_ref, _excluded$m);
4604
+ props = _objectWithoutProperties(_ref, _excluded$p);
4570
4605
  var _useState = useState(false),
4571
4606
  _useState2 = _slicedToArray(_useState, 2),
4572
4607
  isFocused = _useState2[0],
@@ -4609,448 +4644,104 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
4609
4644
  }, props));
4610
4645
  });
4611
4646
 
4612
- var BodyView = /*#__PURE__*/styled.View.withConfig({
4613
- displayName: "Body__BodyView"
4614
- })(["padding:", "px ", "px;"], function (_ref) {
4615
- var theme = _ref.theme;
4616
- return theme.kitt.spacing * 6;
4617
- }, function (_ref2) {
4618
- var theme = _ref2.theme;
4619
- return theme.kitt.spacing * 4;
4620
- });
4621
- function ModalBody(_ref3) {
4622
- var children = _ref3.children;
4623
- return /*#__PURE__*/jsx(ScrollView$2, {
4624
- children: /*#__PURE__*/jsx(BodyView, {
4625
- children: children
4626
- })
4627
- });
4628
- }
4629
-
4630
- var FooterView = /*#__PURE__*/styled.View.withConfig({
4631
- displayName: "Footer__FooterView"
4632
- })(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
4633
- var theme = _ref.theme;
4634
- return theme.kitt.spacing * 4;
4635
- }, function (_ref2) {
4636
- var theme = _ref2.theme;
4637
- return theme.kitt.colors.separator;
4638
- });
4639
- function ModalFooter(_ref3) {
4640
- var children = _ref3.children;
4641
- return /*#__PURE__*/jsx(FooterView, {
4642
- children: children
4643
- });
4644
- }
4645
-
4646
- var _excluded$l = ["color", "isDisabled"];
4647
- function getBackgroundColor$1(color, isDisabled) {
4648
- if (isDisabled) {
4649
- return 'kitt.iconButton.disabled.backgroundColor';
4650
- }
4651
- switch (color) {
4652
- case 'primary':
4653
- return 'kitt.iconButton.primary.pressed.backgroundColor';
4654
- case 'white':
4655
- return 'kitt.iconButton.white.pressed.backgroundColor';
4656
- case 'black':
4657
- default:
4658
- return 'kitt.iconButton.black.pressed.backgroundColor';
4659
- }
4647
+ function getDatePickerDisplayMode() {
4648
+ if (Platform.OS === 'android') return 'calendar';
4649
+ if (Platform.OS === 'ios') return 'spinner';
4650
+ return 'default';
4660
4651
  }
4661
- function Background(_ref) {
4662
- var color = _ref.color,
4663
- isDisabled = _ref.isDisabled,
4664
- props = _objectWithoutProperties(_ref, _excluded$l);
4665
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4666
- width: "100%",
4667
- height: "100%",
4668
- borderRadius: "kitt.iconButton.borderRadius",
4669
- backgroundColor: getBackgroundColor$1(color, isDisabled)
4652
+ function PlatformDateTimePicker(_ref) {
4653
+ var value = _ref.value,
4654
+ _ref$defaultDate = _ref.defaultDate,
4655
+ defaultDate = _ref$defaultDate === void 0 ? new Date() : _ref$defaultDate,
4656
+ maximumDate = _ref.maximumDate,
4657
+ minimuDate = _ref.minimuDate,
4658
+ testID = _ref.testID,
4659
+ _onChange = _ref.onChange;
4660
+ var theme = useTheme();
4661
+ var displayMode = getDatePickerDisplayMode();
4662
+ var iosProps = Platform.OS === 'ios' ? {
4663
+ textColor: theme.kitt.colors.primary
4664
+ } : {};
4665
+ return /*#__PURE__*/jsx(DateTimePicker, _objectSpread(_objectSpread({
4666
+ is24Hour: true,
4667
+ testID: testID,
4668
+ value: value || defaultDate,
4669
+ mode: "date",
4670
+ maximumDate: maximumDate,
4671
+ minimumDate: minimuDate,
4672
+ display: displayMode
4673
+ }, iosProps), {}, {
4674
+ onChange: function onChange(_event, date) {
4675
+ return _onChange(date);
4676
+ }
4670
4677
  }));
4671
4678
  }
4672
4679
 
4673
- function AnimatedBackground(_ref) {
4674
- var color = _ref.color,
4675
- isDisabled = _ref.isDisabled,
4676
- opacityStyles = _ref.opacityStyles;
4677
- var sx = useSx();
4678
- var currentOpacityStyles = isDisabled ? {
4679
- opacity: 1
4680
- } : opacityStyles;
4681
- var styles = sx({
4682
- position: 'absolute',
4683
- top: 0,
4684
- left: 0,
4685
- width: '100%',
4686
- height: '100%'
4687
- });
4688
- return /*#__PURE__*/jsx(Animated.View, {
4689
- style: [styles, currentOpacityStyles],
4690
- children: /*#__PURE__*/jsx(Background, {
4691
- color: color,
4692
- isDisabled: isDisabled
4680
+ var _excluded$o = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
4681
+ function ModalTitle(_ref) {
4682
+ var children = _ref.children;
4683
+ return /*#__PURE__*/jsx(CardModal.Header, {
4684
+ children: /*#__PURE__*/jsx(Typography.Text, {
4685
+ base: "body",
4686
+ variant: "bold",
4687
+ children: children
4693
4688
  })
4694
4689
  });
4695
4690
  }
4691
+ function ModalPlatformDateTimePicker(_ref2) {
4692
+ var title = _ref2.title,
4693
+ isVisible = _ref2.isVisible,
4694
+ value = _ref2.value,
4695
+ validateButtonLabel = _ref2.validateButtonLabel,
4696
+ onClose = _ref2.onClose,
4697
+ onChange = _ref2.onChange,
4698
+ props = _objectWithoutProperties(_ref2, _excluded$o);
4699
+ var _useState = useState(value),
4700
+ _useState2 = _slicedToArray(_useState, 2),
4701
+ currentValue = _useState2[0],
4702
+ setCurrentValue = _useState2[1];
4696
4703
 
4697
- function AnimatedScale(_ref) {
4698
- var isDisabled = _ref.isDisabled,
4699
- scaleStyles = _ref.scaleStyles,
4700
- children = _ref.children;
4701
- var sx = useSx();
4702
- var currentOpacityStyles = isDisabled ? {
4703
- transform: [{
4704
- scale: 1
4705
- }]
4706
- } : scaleStyles;
4707
- var styles = sx({
4708
- position: 'relative',
4709
- alignItems: 'center',
4710
- justifyContent: 'center',
4711
- width: '100%',
4712
- height: '100%'
4713
- });
4714
- return /*#__PURE__*/jsx(Animated.View, {
4715
- style: [styles, currentOpacityStyles],
4716
- children: children
4704
+ // Prevent unsynced value between the modal and its parent state
4705
+
4706
+ return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
4707
+ visible: Boolean(isVisible),
4708
+ onClose: function handleClose() {
4709
+ setCurrentValue(value);
4710
+ onClose();
4711
+ },
4712
+ children: /*#__PURE__*/jsx(CardModal, {
4713
+ children: isVisible ? /*#__PURE__*/jsxs(Fragment, {
4714
+ children: [title ? /*#__PURE__*/jsx(ModalTitle, {
4715
+ children: title
4716
+ }) : null, /*#__PURE__*/jsx(CardModal.Body, {
4717
+ children: /*#__PURE__*/jsx(PlatformDateTimePicker, _objectSpread(_objectSpread({}, props), {}, {
4718
+ value: currentValue,
4719
+ onChange: function handleChange(newDate) {
4720
+ setCurrentValue(function (prev) {
4721
+ return newDate || prev;
4722
+ });
4723
+ }
4724
+ }))
4725
+ }), /*#__PURE__*/jsx(CardModal.Footer, {
4726
+ children: /*#__PURE__*/jsx(Button, {
4727
+ stretch: true,
4728
+ type: "primary",
4729
+ onPress: function handleSubmit() {
4730
+ onChange(currentValue);
4731
+ },
4732
+ children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
4733
+ children: validateButtonLabel
4734
+ }) : /*#__PURE__*/jsx(FormattedMessage, {
4735
+ id: "kitt-universal.ModalPlatformDateTimePicker.confirm"
4736
+ })
4737
+ })
4738
+ })]
4739
+ }) : null
4740
+ })
4717
4741
  });
4718
4742
  }
4719
4743
 
4720
- function useNativeAnimation$1(_ref) {
4721
- var isPressed = _ref.isPressed;
4722
- var theme = useTheme();
4723
- var pressed = useSharedValue(!!isPressed);
4724
- var opacityStyles = useAnimatedStyle(function () {
4725
- var _f = function () {
4726
- return {
4727
- opacity: withSpring(pressed.value ? 1 : 0)
4728
- };
4729
- };
4730
- _f._closure = {
4731
- withSpring: withSpring,
4732
- pressed: pressed
4733
- };
4734
- _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
4735
- _f.__workletHash = 10645190329247;
4736
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (24:41)";
4737
- _f.__optimalization = 2;
4738
- return _f;
4739
- }());
4740
- var scaleStyles = useAnimatedStyle(function () {
4741
- var _f = function () {
4742
- return {
4743
- transform: [{
4744
- scale: withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base["default"])
4745
- }]
4746
- };
4747
- };
4748
- _f._closure = {
4749
- withSpring: withSpring,
4750
- pressed: pressed,
4751
- theme: {
4752
- kitt: {
4753
- iconButton: {
4754
- scale: {
4755
- base: {
4756
- active: theme.kitt.iconButton.scale.base.active,
4757
- "default": theme.kitt.iconButton.scale.base["default"]
4758
- }
4759
- }
4760
- }
4761
- }
4762
- }
4763
- };
4764
- _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
4765
- _f.__workletHash = 13861998831411;
4766
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (30:39)";
4767
- _f.__optimalization = 2;
4768
- return _f;
4769
- }());
4770
- return {
4771
- opacityStyles: opacityStyles,
4772
- scaleStyles: scaleStyles,
4773
- onPressIn: function handlePressIn() {
4774
- pressed.value = true;
4775
- },
4776
- onPressOut: function handlePressOut() {
4777
- pressed.value = false;
4778
- }
4779
- };
4780
- }
4781
-
4782
- function IconButton(_ref) {
4783
- var icon = _ref.icon,
4784
- _ref$color = _ref.color,
4785
- color = _ref$color === void 0 ? 'black' : _ref$color,
4786
- disabled = _ref.disabled,
4787
- testID = _ref.testID,
4788
- accessibilityLabel = _ref.accessibilityLabel,
4789
- _ref$accessibilityRol = _ref.accessibilityRole,
4790
- accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
4791
- isHoveredInternal = _ref.isHoveredInternal,
4792
- isPressedInternal = _ref.isPressedInternal,
4793
- isFocusedInternal = _ref.isFocusedInternal,
4794
- onPress = _ref.onPress;
4795
- var _useNativeAnimation = useNativeAnimation$1({
4796
- isDisabled: disabled,
4797
- isPressed: isPressedInternal
4798
- }),
4799
- onPressIn = _useNativeAnimation.onPressIn,
4800
- onPressOut = _useNativeAnimation.onPressOut,
4801
- opacityStyles = _useNativeAnimation.opacityStyles,
4802
- scaleStyles = _useNativeAnimation.scaleStyles;
4803
- return /*#__PURE__*/jsx(Pressable, {
4804
- testID: testID,
4805
- disabled: disabled,
4806
- width: "kitt.iconButton.width",
4807
- height: "kitt.iconButton.height",
4808
- accessibilityLabel: accessibilityLabel,
4809
- accessibilityRole: accessibilityRole,
4810
- _web: {
4811
- style: {
4812
- backfaceVisibility: 'hidden',
4813
- transform: [{
4814
- translate3d: '0'
4815
- }]
4816
- }
4817
- },
4818
- borderRadius: "kitt.iconButton.borderRadius",
4819
- borderColor: disabled ? 'kitt.iconButton.disabled.borderColor' : 'kitt.iconButton.borderColor',
4820
- borderWidth: disabled ? 'kitt.iconButton.borderWidth' : 0,
4821
- onPress: onPress,
4822
- onPressIn: onPressIn,
4823
- onPressOut: onPressOut,
4824
- children: function children(_ref2) {
4825
- var isHovered = _ref2.isHovered,
4826
- isPressed = _ref2.isPressed,
4827
- isFocused = _ref2.isFocused;
4828
- var isCurrentHovered = isHovered || isHoveredInternal;
4829
- var isCurrentPressed = isPressed || isPressedInternal;
4830
- return /*#__PURE__*/jsxs(AnimatedScale, {
4831
- isDisabled: disabled,
4832
- isHovered: isCurrentHovered,
4833
- isPressed: isCurrentPressed,
4834
- scaleStyles: scaleStyles,
4835
- children: [/*#__PURE__*/jsx(AnimatedBackground, {
4836
- color: color,
4837
- isDisabled: disabled,
4838
- isHovered: isCurrentHovered,
4839
- isPressed: isCurrentPressed,
4840
- isFocused: isFocused || isFocusedInternal,
4841
- opacityStyles: opacityStyles
4842
- }), /*#__PURE__*/jsx(View, {
4843
- alignItems: "center",
4844
- justifyContent: "center",
4845
- children: /*#__PURE__*/jsx(TypographyIcon, {
4846
- color: disabled ? 'black-light' : color,
4847
- icon: icon
4848
- })
4849
- })]
4850
- });
4851
- }
4852
- });
4853
- }
4854
-
4855
- var OnCloseContext = /*#__PURE__*/createContext(function () {});
4856
-
4857
- var HeaderView = /*#__PURE__*/styled.View.withConfig({
4858
- displayName: "Header__HeaderView"
4859
- })(["position:relative;padding:", "px;display:flex;flex:0 0 auto;flex-direction:row;justify-content:space-between;align-items:center;border-bottom-width:1px;border-bottom-color:", ";min-height:57px;"], function (_ref) {
4860
- var theme = _ref.theme;
4861
- return theme.kitt.spacing * 2;
4862
- }, function (_ref2) {
4863
- var theme = _ref2.theme;
4864
- return theme.kitt.colors.separator;
4865
- });
4866
- var LeftIconView = /*#__PURE__*/styled.View.withConfig({
4867
- displayName: "Header__LeftIconView"
4868
- })(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
4869
- var theme = _ref3.theme;
4870
- return theme.kitt.spacing * 2;
4871
- });
4872
- var RightIconView = /*#__PURE__*/styled.View.withConfig({
4873
- displayName: "Header__RightIconView"
4874
- })(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
4875
- var theme = _ref4.theme;
4876
- return theme.kitt.spacing * 2;
4877
- });
4878
- var TitleView = /*#__PURE__*/styled.View.withConfig({
4879
- displayName: "Header__TitleView"
4880
- })(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
4881
- var theme = _ref5.theme,
4882
- isIconLeft = _ref5.isIconLeft;
4883
- return isIconLeft ? 0 : theme.kitt.spacing * 2;
4884
- });
4885
- function ModalHeader(_ref6) {
4886
- var left = _ref6.left,
4887
- right = _ref6.right,
4888
- children = _ref6.children;
4889
- var onClose = useContext(OnCloseContext);
4890
- var isIconLeft = !!left;
4891
- return /*#__PURE__*/jsxs(HeaderView, {
4892
- children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
4893
- children: left
4894
- }), /*#__PURE__*/jsx(TitleView, {
4895
- isIconLeft: isIconLeft,
4896
- children: children
4897
- }), right !== undefined ? right : /*#__PURE__*/jsx(RightIconView, {
4898
- children: /*#__PURE__*/jsx(IconButton, {
4899
- icon: /*#__PURE__*/jsx(XIcon, {}),
4900
- onPress: onClose
4901
- })
4902
- })]
4903
- });
4904
- }
4905
-
4906
- var ModalView = /*#__PURE__*/styled.View.withConfig({
4907
- displayName: "Modal__ModalView"
4908
- })(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
4909
- var theme = _ref.theme;
4910
- return theme.kitt.spacing * 20;
4911
- }, function (_ref2) {
4912
- var theme = _ref2.theme;
4913
- return theme.kitt.spacing * 4;
4914
- });
4915
- var ContentView$1 = /*#__PURE__*/styled.View.withConfig({
4916
- displayName: "Modal__ContentView"
4917
- })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
4918
- var theme = _ref3.theme;
4919
- return theme.kitt.card.borderRadius;
4920
- }, function (_ref4) {
4921
- var theme = _ref4.theme;
4922
- return theme.kitt.colors.uiBackgroundLight;
4923
- });
4924
-
4925
- /**
4926
- * @deprecated This component will be deleted in a later Kitt Universal version. Use CardModal instead
4927
- */
4928
- function Modal(_ref5) {
4929
- var visible = _ref5.visible,
4930
- children = _ref5.children,
4931
- onClose = _ref5.onClose,
4932
- onEntered = _ref5.onEntered,
4933
- onExited = _ref5.onExited;
4934
- return /*#__PURE__*/jsx(OnCloseContext.Provider, {
4935
- value: onClose,
4936
- children: /*#__PURE__*/jsx(Modal$1, {
4937
- transparent: true,
4938
- animationType: "fade",
4939
- supportedOrientations: ['landscape', 'portrait'],
4940
- visible: visible,
4941
- onShow: onEntered,
4942
- onDismiss: onExited,
4943
- onRequestClose: onClose,
4944
- children: /*#__PURE__*/jsxs(ModalView, {
4945
- children: [/*#__PURE__*/jsx(Overlay, {
4946
- onPress: onClose
4947
- }), /*#__PURE__*/jsx(ContentView$1, {
4948
- children: children
4949
- })]
4950
- })
4951
- })
4952
- });
4953
- }
4954
- Modal.Header = ModalHeader;
4955
- Modal.Body = ModalBody;
4956
- Modal.Footer = ModalFooter;
4957
-
4958
- function getDatePickerDisplayMode() {
4959
- if (Platform.OS === 'android') return 'calendar';
4960
- if (Platform.OS === 'ios') return 'spinner';
4961
- return 'default';
4962
- }
4963
- function PlatformDateTimePicker(_ref) {
4964
- var value = _ref.value,
4965
- _ref$defaultDate = _ref.defaultDate,
4966
- defaultDate = _ref$defaultDate === void 0 ? new Date() : _ref$defaultDate,
4967
- maximumDate = _ref.maximumDate,
4968
- minimuDate = _ref.minimuDate,
4969
- testID = _ref.testID,
4970
- _onChange = _ref.onChange;
4971
- var theme = useTheme();
4972
- var displayMode = getDatePickerDisplayMode();
4973
- var iosProps = Platform.OS === 'ios' ? {
4974
- textColor: theme.kitt.colors.primary
4975
- } : {};
4976
- return /*#__PURE__*/jsx(DateTimePicker, _objectSpread(_objectSpread({
4977
- is24Hour: true,
4978
- testID: testID,
4979
- value: value || defaultDate,
4980
- mode: "date",
4981
- maximumDate: maximumDate,
4982
- minimumDate: minimuDate,
4983
- display: displayMode
4984
- }, iosProps), {}, {
4985
- onChange: function onChange(_event, date) {
4986
- return _onChange(date);
4987
- }
4988
- }));
4989
- }
4990
-
4991
- var _excluded$k = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
4992
- function ModalTitle(_ref) {
4993
- var children = _ref.children;
4994
- return /*#__PURE__*/jsx(Modal.Header, {
4995
- children: /*#__PURE__*/jsx(Typography.Text, {
4996
- base: "body",
4997
- variant: "bold",
4998
- children: children
4999
- })
5000
- });
5001
- }
5002
- function ModalPlatformDateTimePicker(_ref2) {
5003
- var title = _ref2.title,
5004
- isVisible = _ref2.isVisible,
5005
- value = _ref2.value,
5006
- validateButtonLabel = _ref2.validateButtonLabel,
5007
- onClose = _ref2.onClose,
5008
- onChange = _ref2.onChange,
5009
- props = _objectWithoutProperties(_ref2, _excluded$k);
5010
- var _useState = useState(value),
5011
- _useState2 = _slicedToArray(_useState, 2),
5012
- currentValue = _useState2[0],
5013
- setCurrentValue = _useState2[1];
5014
-
5015
- // Prevent unsynced value between the modal and its parent state
5016
-
5017
- return /*#__PURE__*/jsx(Modal, {
5018
- visible: Boolean(isVisible),
5019
- onClose: function handleClose() {
5020
- setCurrentValue(value);
5021
- onClose();
5022
- },
5023
- children: isVisible ? /*#__PURE__*/jsxs(Fragment, {
5024
- children: [title ? /*#__PURE__*/jsx(ModalTitle, {
5025
- children: title
5026
- }) : null, /*#__PURE__*/jsx(Modal.Body, {
5027
- children: /*#__PURE__*/jsx(PlatformDateTimePicker, _objectSpread(_objectSpread({}, props), {}, {
5028
- value: currentValue,
5029
- onChange: function handleChange(newDate) {
5030
- setCurrentValue(function (prev) {
5031
- return newDate || prev;
5032
- });
5033
- }
5034
- }))
5035
- }), /*#__PURE__*/jsx(Modal.Footer, {
5036
- children: /*#__PURE__*/jsx(Button, {
5037
- stretch: true,
5038
- type: "primary",
5039
- onPress: function handleSubmit() {
5040
- onChange(currentValue);
5041
- },
5042
- children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
5043
- children: validateButtonLabel
5044
- }) : /*#__PURE__*/jsx(FormattedMessage, {
5045
- id: "kitt-universal.ModalPlatformDateTimePicker.confirm"
5046
- })
5047
- })
5048
- })]
5049
- }) : null
5050
- });
5051
- }
5052
-
5053
- var _excluded$j = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
4744
+ var _excluded$n = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
5054
4745
  var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5055
4746
  var value = _ref.value,
5056
4747
  pickerUITestID = _ref.pickerUITestID,
@@ -5064,7 +4755,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5064
4755
  onChange = _ref.onChange,
5065
4756
  onFocus = _ref.onFocus,
5066
4757
  onBlur = _ref.onBlur,
5067
- props = _objectWithoutProperties(_ref, _excluded$j);
4758
+ props = _objectWithoutProperties(_ref, _excluded$n);
5068
4759
  var _useState = useState(isDefaultVisible),
5069
4760
  _useState2 = _slicedToArray(_useState, 2),
5070
4761
  isPickerUIVisible = _useState2[0],
@@ -5111,7 +4802,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5111
4802
  });
5112
4803
  });
5113
4804
 
5114
- var _excluded$i = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
4805
+ var _excluded$m = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
5115
4806
  var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5116
4807
  var value = _ref.value,
5117
4808
  pickerUITestID = _ref.pickerUITestID,
@@ -5119,7 +4810,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5119
4810
  pickerDefaultDate = _ref.pickerDefaultDate,
5120
4811
  onChange = _ref.onChange,
5121
4812
  onBlur = _ref.onBlur,
5122
- props = _objectWithoutProperties(_ref, _excluded$i);
4813
+ props = _objectWithoutProperties(_ref, _excluded$m);
5123
4814
  if (Platform.OS === 'android') {
5124
4815
  return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
5125
4816
  ref: ref,
@@ -5141,14 +4832,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5141
4832
  }, props));
5142
4833
  });
5143
4834
 
5144
- var _excluded$h = ["fillMode", "returnKeyType", "value", "onSubmitEditing"];
4835
+ var _excluded$l = ["fillMode", "returnKeyType", "value", "onSubmitEditing"];
5145
4836
  var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
5146
4837
  var _ref$fillMode = _ref.fillMode,
5147
4838
  fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
5148
4839
  returnKeyType = _ref.returnKeyType,
5149
4840
  value = _ref.value,
5150
4841
  onSubmitEditing = _ref.onSubmitEditing,
5151
- props = _objectWithoutProperties(_ref, _excluded$h);
4842
+ props = _objectWithoutProperties(_ref, _excluded$l);
5152
4843
  // in apps, final-form can give a string value that will break the component
5153
4844
  var currentValue = value || undefined;
5154
4845
  if (fillMode === 'keyboard') {
@@ -5251,11 +4942,11 @@ function InputPressable(_ref) {
5251
4942
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
5252
4943
  }
5253
4944
 
5254
- var _excluded$g = ["isPasswordDefaultVisible", "right"];
4945
+ var _excluded$k = ["isPasswordDefaultVisible", "right"];
5255
4946
  var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
5256
4947
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
5257
4948
  right = _ref.right,
5258
- props = _objectWithoutProperties(_ref, _excluded$g);
4949
+ props = _objectWithoutProperties(_ref, _excluded$k);
5259
4950
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
5260
4951
  _useState2 = _slicedToArray(_useState, 2),
5261
4952
  isVisible = _useState2[0],
@@ -5283,7 +4974,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
5283
4974
  }));
5284
4975
  });
5285
4976
 
5286
- var _excluded$f = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
4977
+ var _excluded$j = ["returnKeyType", "autoComplete", "phoneNumberLength", "value", "onChange"];
5287
4978
  function isPhoneNumberValid(number) {
5288
4979
  return isValidNumber(number);
5289
4980
  }
@@ -5298,7 +4989,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
5298
4989
  phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
5299
4990
  value = _ref.value,
5300
4991
  onChange = _ref.onChange,
5301
- props = _objectWithoutProperties(_ref, _excluded$f);
4992
+ props = _objectWithoutProperties(_ref, _excluded$j);
5302
4993
  var _useState = useState(value),
5303
4994
  _useState2 = _slicedToArray(_useState, 2),
5304
4995
  currentValue = _useState2[0],
@@ -5346,46 +5037,29 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
5346
5037
  var getTypographyColor = function (type) {
5347
5038
  return type ? 'white' : 'black';
5348
5039
  };
5349
- var InputTagContainer = /*#__PURE__*/styled(View$2).withConfig({
5350
- displayName: "InputTag__InputTagContainer"
5351
- })(["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) {
5352
- var theme = _ref.theme;
5353
- return theme.kitt.spacing * 2;
5354
- }, function (_ref2) {
5355
- var theme = _ref2.theme,
5356
- type = _ref2.type;
5357
- if (type === 'success') {
5358
- return theme.kitt.forms.inputTag.success.backgroundColor;
5359
- }
5360
- if (type === 'danger') {
5361
- return theme.kitt.forms.inputTag.danger.backgroundColor;
5362
- }
5363
- return theme.kitt.forms.inputTag["default"].backgroundColor;
5364
- }, function (_ref3) {
5365
- var theme = _ref3.theme;
5366
- return theme.kitt.forms.inputTag.borderRadius;
5367
- });
5368
- var IconContainer = /*#__PURE__*/styled(View$2).withConfig({
5369
- displayName: "InputTag__IconContainer"
5370
- })(["margin-right:", "px;"], function (_ref4) {
5371
- var theme = _ref4.theme;
5372
- return theme.kitt.spacing;
5373
- });
5374
- function InputTag(_ref5) {
5375
- var children = _ref5.children,
5376
- type = _ref5.type,
5377
- icon = _ref5.icon;
5040
+ function InputTag(_ref) {
5041
+ var children = _ref.children,
5042
+ type = _ref.type,
5043
+ icon = _ref.icon;
5378
5044
  var typographyColor = getTypographyColor(type);
5379
5045
  var theme = useTheme();
5380
- return /*#__PURE__*/jsxs(InputTagContainer, {
5381
- type: type,
5382
- children: [icon && /*#__PURE__*/jsx(IconContainer, {
5046
+ return /*#__PURE__*/jsxs(View, {
5047
+ alignItems: "center",
5048
+ justifyContent: "center",
5049
+ flexDirection: "row",
5050
+ alignSelf: "flex-start",
5051
+ overflow: "hidden",
5052
+ paddingX: "kitt.2",
5053
+ backgroundColor: "kitt.forms.inputTag.".concat(type || 'default', ".backgroundColor"),
5054
+ borderRadius: "kitt.forms.inputTag.borderRadius",
5055
+ children: [icon ? /*#__PURE__*/jsx(View, {
5056
+ marginRight: "kitt.1",
5383
5057
  children: /*#__PURE__*/jsx(TypographyIcon, {
5384
5058
  icon: icon,
5385
5059
  size: theme.kitt.forms.inputTag.iconSize,
5386
5060
  color: typographyColor
5387
5061
  })
5388
- }), /*#__PURE__*/jsx(Typography.Text, {
5062
+ }) : null, /*#__PURE__*/jsx(Typography.Text, {
5389
5063
  base: "body-small",
5390
5064
  color: typographyColor,
5391
5065
  children: children
@@ -5437,7 +5111,7 @@ function InnerCircle(_ref) {
5437
5111
  });
5438
5112
  }
5439
5113
 
5440
- function getBackgroundColor(_ref) {
5114
+ function getBackgroundColor$1(_ref) {
5441
5115
  var isDisabled = _ref.isDisabled,
5442
5116
  isPressed = _ref.isPressed,
5443
5117
  isHovered = _ref.isHovered,
@@ -5480,7 +5154,7 @@ function OuterCircle(_ref) {
5480
5154
  width: "kitt.forms.radio.size",
5481
5155
  height: "kitt.forms.radio.size",
5482
5156
  borderRadius: "kitt.forms.radio.borderRadius",
5483
- backgroundColor: getBackgroundColor({
5157
+ backgroundColor: getBackgroundColor$1({
5484
5158
  isChecked: isChecked,
5485
5159
  isDisabled: isDisabled,
5486
5160
  isFocused: isFocused,
@@ -5560,49 +5234,22 @@ var Radio = /*#__PURE__*/forwardRef(function (_ref, ref) {
5560
5234
  });
5561
5235
  });
5562
5236
 
5563
- var StyledAnimatedView = /*#__PURE__*/styled(Animated.View).withConfig({
5564
- displayName: "AnimatedContainer__StyledAnimatedView"
5565
- })(["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) {
5566
- var theme = _ref.theme;
5567
- return theme.kitt.forms.radioButtonGroup.item.borderWidth;
5568
- }, function (_ref2) {
5569
- var theme = _ref2.theme,
5570
- $isFirst = _ref2.$isFirst;
5571
- return $isFirst ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5572
- }, function (_ref3) {
5573
- var theme = _ref3.theme,
5574
- $isFirst = _ref3.$isFirst;
5575
- return $isFirst ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5576
- }, function (_ref4) {
5577
- var theme = _ref4.theme,
5578
- $isLast = _ref4.$isLast;
5579
- return $isLast ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5580
- }, function (_ref5) {
5581
- var theme = _ref5.theme,
5582
- $isLast = _ref5.$isLast;
5583
- return $isLast ? theme.kitt.forms.radioButtonGroup.item.borderRadius : 0;
5584
- }, function (_ref6) {
5585
- var theme = _ref6.theme,
5586
- $isFirst = _ref6.$isFirst;
5587
- return $isFirst ? theme.kitt.forms.radioButtonGroup.item.borderWidth : 0;
5588
- });
5589
- function AnimatedContainer(_ref7) {
5590
- var children = _ref7.children,
5591
- isFocused = _ref7.isFocused,
5592
- isPressed = _ref7.isPressed,
5593
- isSelected = _ref7.isSelected,
5594
- isDisabled = _ref7.isDisabled,
5595
- isFirst = _ref7.isFirst,
5596
- isLast = _ref7.isLast,
5597
- animatedStyles = _ref7.animatedStyles;
5598
- return /*#__PURE__*/jsx(StyledAnimatedView, {
5599
- style: [animatedStyles],
5600
- $isFocused: isFocused,
5601
- $isPressed: isPressed,
5602
- $isSelected: isSelected,
5603
- $isDisabled: isDisabled,
5604
- $isFirst: isFirst,
5605
- $isLast: isLast,
5237
+ function AnimatedContainer(_ref) {
5238
+ var children = _ref.children,
5239
+ isFirst = _ref.isFirst,
5240
+ isLast = _ref.isLast,
5241
+ animatedStyles = _ref.animatedStyles;
5242
+ var sx = useSx();
5243
+ var styles = sx({
5244
+ borderWidth: 'kitt.forms.radioButtonGroup.item.borderWidth',
5245
+ borderTopLeftRadius: isFirst ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5246
+ borderBottomLeftRadius: isFirst ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5247
+ borderTopRightRadius: isLast ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5248
+ borderBottomRightRadius: isLast ? 'kitt.forms.radioButtonGroup.item.borderRadius' : 0,
5249
+ borderLeftWidth: isFirst ? 'kitt.forms.radioButtonGroup.item.borderWidth' : 0
5250
+ });
5251
+ return /*#__PURE__*/jsx(Animated.View, {
5252
+ style: [styles, animatedStyles],
5606
5253
  children: children
5607
5254
  });
5608
5255
  }
@@ -5640,7 +5287,7 @@ function HoverBorder(_ref) {
5640
5287
  });
5641
5288
  }
5642
5289
 
5643
- var useNativeAnimation = function (_ref) {
5290
+ var useNativeAnimation$1 = function (_ref) {
5644
5291
  var isDisabled = _ref.isDisabled,
5645
5292
  isSelected = _ref.isSelected,
5646
5293
  isPressedInternal = _ref.isPressedInternal;
@@ -5744,7 +5391,7 @@ function RadioButton(_ref) {
5744
5391
  onChange = _ref.onChange,
5745
5392
  onFocus = _ref.onFocus,
5746
5393
  onBlur = _ref.onBlur;
5747
- var _useNativeAnimation = useNativeAnimation({
5394
+ var _useNativeAnimation = useNativeAnimation$1({
5748
5395
  isDisabled: disabled,
5749
5396
  isSelected: selected,
5750
5397
  isPressedInternal: isPressedInternal
@@ -5807,7 +5454,7 @@ function RadioButton(_ref) {
5807
5454
  });
5808
5455
  }
5809
5456
 
5810
- var _excluded$e = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
5457
+ var _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
5811
5458
  function RadioButtonGroupItem(_ref) {
5812
5459
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
5813
5460
  return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
@@ -5820,7 +5467,7 @@ function RadioButtonGroup(_ref2) {
5820
5467
  onFocus = _ref2.onFocus,
5821
5468
  onBlur = _ref2.onBlur,
5822
5469
  onChange = _ref2.onChange,
5823
- props = _objectWithoutProperties(_ref2, _excluded$e);
5470
+ props = _objectWithoutProperties(_ref2, _excluded$i);
5824
5471
  var _useState = useState(value),
5825
5472
  _useState2 = _slicedToArray(_useState, 2),
5826
5473
  currentValue = _useState2[0],
@@ -5862,13 +5509,13 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
5862
5509
  }, props));
5863
5510
  });
5864
5511
 
5865
- var _excluded$d = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
5512
+ var _excluded$h = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
5866
5513
  function FullscreenModalBody(_ref) {
5867
5514
  var children = _ref.children,
5868
5515
  shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
5869
5516
  style = _ref.style,
5870
5517
  shouldHandleTopNotch = _ref.shouldHandleTopNotch,
5871
- props = _objectWithoutProperties(_ref, _excluded$d);
5518
+ props = _objectWithoutProperties(_ref, _excluded$h);
5872
5519
  var _useSafeAreaInsets = useSafeAreaInsets(),
5873
5520
  bottom = _useSafeAreaInsets.bottom,
5874
5521
  top = _useSafeAreaInsets.top;
@@ -5885,14 +5532,14 @@ function FullscreenModalBody(_ref) {
5885
5532
  }));
5886
5533
  }
5887
5534
 
5888
- var _excluded$c = ["shouldHandleBottomNotch", "hasSeparator", "children"];
5535
+ var _excluded$g = ["shouldHandleBottomNotch", "hasSeparator", "children"];
5889
5536
  function FullscreenModalFooter(_ref) {
5890
5537
  var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
5891
5538
  shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
5892
5539
  _ref$hasSeparator = _ref.hasSeparator,
5893
5540
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
5894
5541
  children = _ref.children,
5895
- props = _objectWithoutProperties(_ref, _excluded$c);
5542
+ props = _objectWithoutProperties(_ref, _excluded$g);
5896
5543
  var _useSafeAreaInsets = useSafeAreaInsets(),
5897
5544
  bottom = _useSafeAreaInsets.bottom;
5898
5545
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
@@ -6074,7 +5721,7 @@ function FullscreenModalAnimation(_ref) {
6074
5721
  if (onExit) onExit();
6075
5722
  setIsContentVisible(false);
6076
5723
  }, [visible, isContentVisible, onExit]);
6077
- return /*#__PURE__*/jsx(Modal$1, {
5724
+ return /*#__PURE__*/jsx(Modal, {
6078
5725
  transparent: true,
6079
5726
  supportedOrientations: ['landscape', 'portrait'],
6080
5727
  visible: isModalVisible,
@@ -6108,13 +5755,13 @@ function FullscreenModalAnimation(_ref) {
6108
5755
  });
6109
5756
  }
6110
5757
 
6111
- var _excluded$b = ["children", "visible", "onClose", "onExited"];
5758
+ var _excluded$f = ["children", "visible", "onClose", "onExited"];
6112
5759
  function FullscreenModalBehaviour(_ref) {
6113
5760
  var children = _ref.children,
6114
5761
  visible = _ref.visible,
6115
5762
  onClose = _ref.onClose,
6116
5763
  onExited = _ref.onExited,
6117
- props = _objectWithoutProperties(_ref, _excluded$b);
5764
+ props = _objectWithoutProperties(_ref, _excluded$f);
6118
5765
  var _useState = useState(visible),
6119
5766
  _useState2 = _slicedToArray(_useState, 2),
6120
5767
  isModalBehaviourVisible = _useState2[0],
@@ -6158,7 +5805,7 @@ function FullscreenModalContainer(_ref) {
6158
5805
  });
6159
5806
  }
6160
5807
 
6161
- var _excluded$a = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
5808
+ var _excluded$e = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
6162
5809
  function FullscreenModalHeader(_ref) {
6163
5810
  var _ref$hasSeparator = _ref.hasSeparator,
6164
5811
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
@@ -6169,7 +5816,7 @@ function FullscreenModalHeader(_ref) {
6169
5816
  left = _ref.left,
6170
5817
  _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
6171
5818
  shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
6172
- props = _objectWithoutProperties(_ref, _excluded$a);
5819
+ props = _objectWithoutProperties(_ref, _excluded$e);
6173
5820
  var _useSafeAreaInsets = useSafeAreaInsets(),
6174
5821
  top = _useSafeAreaInsets.top;
6175
5822
  var hasRight = Boolean(right);
@@ -6240,20 +5887,229 @@ function FullscreenModal(_ref) {
6240
5887
  })]
6241
5888
  });
6242
5889
  }
6243
- FullscreenModal.Header = FullscreenModalHeader;
6244
- FullscreenModal.Footer = FullscreenModalFooter;
6245
- FullscreenModal.Body = FullscreenModalBody;
6246
- FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
5890
+ FullscreenModal.Header = FullscreenModalHeader;
5891
+ FullscreenModal.Footer = FullscreenModalFooter;
5892
+ FullscreenModal.Body = FullscreenModalBody;
5893
+ FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
5894
+
5895
+ function Highlight(_ref) {
5896
+ var _ref$variant = _ref.variant,
5897
+ variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
5898
+ children = _ref.children;
5899
+ return /*#__PURE__*/jsx(View, {
5900
+ borderRadius: "kitt.highlight.borderRadius",
5901
+ padding: "kitt.highlight.padding",
5902
+ backgroundColor: "kitt.highlight.".concat(variant, ".backgroundColor"),
5903
+ children: children
5904
+ });
5905
+ }
5906
+
5907
+ var _excluded$d = ["color", "isDisabled"];
5908
+ function getBackgroundColor(color, isDisabled) {
5909
+ if (isDisabled) {
5910
+ return 'kitt.iconButton.disabled.backgroundColor';
5911
+ }
5912
+ switch (color) {
5913
+ case 'primary':
5914
+ return 'kitt.iconButton.primary.pressed.backgroundColor';
5915
+ case 'white':
5916
+ return 'kitt.iconButton.white.pressed.backgroundColor';
5917
+ case 'black':
5918
+ default:
5919
+ return 'kitt.iconButton.black.pressed.backgroundColor';
5920
+ }
5921
+ }
5922
+ function Background(_ref) {
5923
+ var color = _ref.color,
5924
+ isDisabled = _ref.isDisabled,
5925
+ props = _objectWithoutProperties(_ref, _excluded$d);
5926
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
5927
+ width: "100%",
5928
+ height: "100%",
5929
+ borderRadius: "kitt.iconButton.borderRadius",
5930
+ backgroundColor: getBackgroundColor(color, isDisabled)
5931
+ }));
5932
+ }
5933
+
5934
+ function AnimatedBackground(_ref) {
5935
+ var color = _ref.color,
5936
+ isDisabled = _ref.isDisabled,
5937
+ opacityStyles = _ref.opacityStyles;
5938
+ var sx = useSx();
5939
+ var currentOpacityStyles = isDisabled ? {
5940
+ opacity: 1
5941
+ } : opacityStyles;
5942
+ var styles = sx({
5943
+ position: 'absolute',
5944
+ top: 0,
5945
+ left: 0,
5946
+ width: '100%',
5947
+ height: '100%'
5948
+ });
5949
+ return /*#__PURE__*/jsx(Animated.View, {
5950
+ style: [styles, currentOpacityStyles],
5951
+ children: /*#__PURE__*/jsx(Background, {
5952
+ color: color,
5953
+ isDisabled: isDisabled
5954
+ })
5955
+ });
5956
+ }
5957
+
5958
+ function AnimatedScale(_ref) {
5959
+ var isDisabled = _ref.isDisabled,
5960
+ scaleStyles = _ref.scaleStyles,
5961
+ children = _ref.children;
5962
+ var sx = useSx();
5963
+ var currentOpacityStyles = isDisabled ? {
5964
+ transform: [{
5965
+ scale: 1
5966
+ }]
5967
+ } : scaleStyles;
5968
+ var styles = sx({
5969
+ position: 'relative',
5970
+ alignItems: 'center',
5971
+ justifyContent: 'center',
5972
+ width: '100%',
5973
+ height: '100%'
5974
+ });
5975
+ return /*#__PURE__*/jsx(Animated.View, {
5976
+ style: [styles, currentOpacityStyles],
5977
+ children: children
5978
+ });
5979
+ }
5980
+
5981
+ function useNativeAnimation(_ref) {
5982
+ var isPressed = _ref.isPressed;
5983
+ var theme = useTheme();
5984
+ var pressed = useSharedValue(!!isPressed);
5985
+ var opacityStyles = useAnimatedStyle(function () {
5986
+ var _f = function () {
5987
+ return {
5988
+ opacity: withSpring(pressed.value ? 1 : 0)
5989
+ };
5990
+ };
5991
+ _f._closure = {
5992
+ withSpring: withSpring,
5993
+ pressed: pressed
5994
+ };
5995
+ _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
5996
+ _f.__workletHash = 10645190329247;
5997
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (24:41)";
5998
+ _f.__optimalization = 2;
5999
+ return _f;
6000
+ }());
6001
+ var scaleStyles = useAnimatedStyle(function () {
6002
+ var _f = function () {
6003
+ return {
6004
+ transform: [{
6005
+ scale: withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base["default"])
6006
+ }]
6007
+ };
6008
+ };
6009
+ _f._closure = {
6010
+ withSpring: withSpring,
6011
+ pressed: pressed,
6012
+ theme: {
6013
+ kitt: {
6014
+ iconButton: {
6015
+ scale: {
6016
+ base: {
6017
+ active: theme.kitt.iconButton.scale.base.active,
6018
+ "default": theme.kitt.iconButton.scale.base["default"]
6019
+ }
6020
+ }
6021
+ }
6022
+ }
6023
+ }
6024
+ };
6025
+ _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
6026
+ _f.__workletHash = 13861998831411;
6027
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/hooks/useNativeAnimation.ts (30:39)";
6028
+ _f.__optimalization = 2;
6029
+ return _f;
6030
+ }());
6031
+ return {
6032
+ opacityStyles: opacityStyles,
6033
+ scaleStyles: scaleStyles,
6034
+ onPressIn: function handlePressIn() {
6035
+ pressed.value = true;
6036
+ },
6037
+ onPressOut: function handlePressOut() {
6038
+ pressed.value = false;
6039
+ }
6040
+ };
6041
+ }
6247
6042
 
6248
- function Highlight(_ref) {
6249
- var _ref$variant = _ref.variant,
6250
- variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
6251
- children = _ref.children;
6252
- return /*#__PURE__*/jsx(View, {
6253
- borderRadius: "kitt.highlight.borderRadius",
6254
- padding: "kitt.highlight.padding",
6255
- backgroundColor: "kitt.highlight.".concat(variant, ".backgroundColor"),
6256
- children: children
6043
+ function IconButton(_ref) {
6044
+ var icon = _ref.icon,
6045
+ _ref$color = _ref.color,
6046
+ color = _ref$color === void 0 ? 'black' : _ref$color,
6047
+ disabled = _ref.disabled,
6048
+ testID = _ref.testID,
6049
+ accessibilityLabel = _ref.accessibilityLabel,
6050
+ _ref$accessibilityRol = _ref.accessibilityRole,
6051
+ accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
6052
+ isHoveredInternal = _ref.isHoveredInternal,
6053
+ isPressedInternal = _ref.isPressedInternal,
6054
+ isFocusedInternal = _ref.isFocusedInternal,
6055
+ onPress = _ref.onPress;
6056
+ var _useNativeAnimation = useNativeAnimation({
6057
+ isDisabled: disabled,
6058
+ isPressed: isPressedInternal
6059
+ }),
6060
+ onPressIn = _useNativeAnimation.onPressIn,
6061
+ onPressOut = _useNativeAnimation.onPressOut,
6062
+ opacityStyles = _useNativeAnimation.opacityStyles,
6063
+ scaleStyles = _useNativeAnimation.scaleStyles;
6064
+ return /*#__PURE__*/jsx(Pressable, {
6065
+ testID: testID,
6066
+ disabled: disabled,
6067
+ width: "kitt.iconButton.width",
6068
+ height: "kitt.iconButton.height",
6069
+ accessibilityLabel: accessibilityLabel,
6070
+ accessibilityRole: accessibilityRole,
6071
+ _web: {
6072
+ style: {
6073
+ backfaceVisibility: 'hidden',
6074
+ transform: [{
6075
+ translate3d: '0'
6076
+ }]
6077
+ }
6078
+ },
6079
+ borderRadius: "kitt.iconButton.borderRadius",
6080
+ borderColor: disabled ? 'kitt.iconButton.disabled.borderColor' : 'kitt.iconButton.borderColor',
6081
+ borderWidth: disabled ? 'kitt.iconButton.borderWidth' : 0,
6082
+ onPress: onPress,
6083
+ onPressIn: onPressIn,
6084
+ onPressOut: onPressOut,
6085
+ children: function children(_ref2) {
6086
+ var isHovered = _ref2.isHovered,
6087
+ isPressed = _ref2.isPressed,
6088
+ isFocused = _ref2.isFocused;
6089
+ var isCurrentHovered = isHovered || isHoveredInternal;
6090
+ var isCurrentPressed = isPressed || isPressedInternal;
6091
+ return /*#__PURE__*/jsxs(AnimatedScale, {
6092
+ isDisabled: disabled,
6093
+ isHovered: isCurrentHovered,
6094
+ isPressed: isCurrentPressed,
6095
+ scaleStyles: scaleStyles,
6096
+ children: [/*#__PURE__*/jsx(AnimatedBackground, {
6097
+ color: color,
6098
+ isDisabled: disabled,
6099
+ isHovered: isCurrentHovered,
6100
+ isPressed: isCurrentPressed,
6101
+ isFocused: isFocused || isFocusedInternal,
6102
+ opacityStyles: opacityStyles
6103
+ }), /*#__PURE__*/jsx(View, {
6104
+ alignItems: "center",
6105
+ justifyContent: "center",
6106
+ children: /*#__PURE__*/jsx(TypographyIcon, {
6107
+ color: disabled ? 'black-light' : color,
6108
+ icon: icon
6109
+ })
6110
+ })]
6111
+ });
6112
+ }
6257
6113
  });
6258
6114
  }
6259
6115
 
@@ -6282,98 +6138,57 @@ function useKittMapConfig() {
6282
6138
  return context;
6283
6139
  }
6284
6140
 
6285
- var _excluded$9 = ["children"];
6286
- var ContentView = /*#__PURE__*/styled.View.withConfig({
6287
- displayName: "ListItemContent__ContentView"
6288
- })(["flex:1 0 0%;align-self:center;"]);
6141
+ var _excluded$c = ["children"];
6289
6142
  function ListItemContent(_ref) {
6290
6143
  var children = _ref.children,
6291
- rest = _objectWithoutProperties(_ref, _excluded$9);
6292
- return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
6144
+ rest = _objectWithoutProperties(_ref, _excluded$c);
6145
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6146
+ alignSelf: "center",
6147
+ flexBasis: "0%",
6148
+ flexGrow: 1,
6149
+ flexShrink: 0
6150
+ }, rest), {}, {
6293
6151
  children: children
6294
6152
  }));
6295
6153
  }
6296
6154
 
6297
- var _excluded$8 = ["children", "side"],
6155
+ var _excluded$b = ["children", "side"],
6298
6156
  _excluded2$2 = ["children", "align"];
6299
- var SideContainerView = /*#__PURE__*/styled.View.withConfig({
6300
- displayName: "ListItemSideContent__SideContainerView"
6301
- })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
6302
- var theme = _ref.theme,
6303
- side = _ref.side;
6304
- return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
6305
- }, function (_ref2) {
6306
- var theme = _ref2.theme,
6307
- side = _ref2.side;
6308
- return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
6309
- });
6310
-
6311
6157
  // Handles the vertical alignment of the side elements of the list item
6312
- function ListItemSideContainer(_ref3) {
6313
- var children = _ref3.children,
6314
- _ref3$side = _ref3.side,
6315
- side = _ref3$side === void 0 ? 'left' : _ref3$side,
6316
- rest = _objectWithoutProperties(_ref3, _excluded$8);
6317
- return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
6318
- side: side
6158
+ function ListItemSideContainer(_ref) {
6159
+ var children = _ref.children,
6160
+ _ref$side = _ref.side,
6161
+ side = _ref$side === void 0 ? 'left' : _ref$side,
6162
+ rest = _objectWithoutProperties(_ref, _excluded$b);
6163
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6164
+ flexDirection: "row",
6165
+ marginLeft: side === 'right' ? 'kitt.2' : undefined,
6166
+ marginRight: side === 'left' ? 'kitt.2' : undefined
6319
6167
  }, rest), {}, {
6320
6168
  children: children
6321
6169
  }));
6322
6170
  }
6323
- var SideContentView = /*#__PURE__*/styled.View.withConfig({
6324
- displayName: "ListItemSideContent__SideContentView"
6325
- })(["align-self:", ";"], function (_ref4) {
6326
- var align = _ref4.align;
6327
- return align;
6328
- });
6329
- function ListItemSideContent(_ref5) {
6330
- var children = _ref5.children,
6331
- _ref5$align = _ref5.align,
6332
- align = _ref5$align === void 0 ? 'auto' : _ref5$align,
6333
- rest = _objectWithoutProperties(_ref5, _excluded2$2);
6334
- return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
6335
- align: align
6171
+ function ListItemSideContent(_ref2) {
6172
+ var children = _ref2.children,
6173
+ _ref2$align = _ref2.align,
6174
+ align = _ref2$align === void 0 ? 'auto' : _ref2$align,
6175
+ rest = _objectWithoutProperties(_ref2, _excluded2$2);
6176
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
6177
+ alignSelf: align
6336
6178
  }, rest), {}, {
6337
6179
  children: children
6338
6180
  }));
6339
6181
  }
6340
6182
 
6341
- var _excluded$7 = ["children", "withPadding", "borders", "left", "right", "onPress"];
6342
- var ContainerView = /*#__PURE__*/styled.View.withConfig({
6343
- displayName: "ListItem__ContainerView"
6344
- })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
6345
- var withPadding = _ref.withPadding,
6346
- theme = _ref.theme;
6347
- return withPadding ? theme.kitt.listItem.padding : 0;
6348
- }, function (_ref2) {
6349
- var theme = _ref2.theme,
6350
- borders = _ref2.borders;
6351
- var borderWidth = theme.kitt.listItem.borderWidth;
6352
- if (borders === 'top') {
6353
- return "border-top-width: ".concat(borderWidth, "px");
6354
- }
6355
- if (borders === 'bottom') {
6356
- return "border-bottom-width: ".concat(borderWidth, "px");
6357
- }
6358
- if (borders === 'both') {
6359
- return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
6360
- }
6361
- return 'border: none';
6362
- }, function (_ref3) {
6363
- var theme = _ref3.theme;
6364
- return theme.kitt.listItem.borderColor;
6365
- }, function (_ref4) {
6366
- var theme = _ref4.theme;
6367
- return theme.kitt.colors.uiBackgroundLight;
6368
- });
6369
- function ListItem(_ref5) {
6370
- var children = _ref5.children,
6371
- withPadding = _ref5.withPadding,
6372
- borders = _ref5.borders,
6373
- left = _ref5.left,
6374
- right = _ref5.right,
6375
- onPress = _ref5.onPress,
6376
- rest = _objectWithoutProperties(_ref5, _excluded$7);
6183
+ var _excluded$a = ["children", "withPadding", "borders", "left", "right", "onPress"];
6184
+ function ListItem(_ref) {
6185
+ var children = _ref.children,
6186
+ withPadding = _ref.withPadding,
6187
+ borders = _ref.borders,
6188
+ left = _ref.left,
6189
+ right = _ref.right,
6190
+ onPress = _ref.onPress,
6191
+ rest = _objectWithoutProperties(_ref, _excluded$a);
6377
6192
  var Wrapper = onPress ? Pressable$2 : Fragment$1;
6378
6193
  var wrapperProps = onPress ? _objectSpread({
6379
6194
  accessibilityRole: 'button',
@@ -6381,9 +6196,14 @@ function ListItem(_ref5) {
6381
6196
  }, rest) : undefined;
6382
6197
  var containerProps = onPress ? undefined : rest;
6383
6198
  return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
6384
- children: /*#__PURE__*/jsxs(ContainerView, _objectSpread(_objectSpread({
6385
- withPadding: withPadding,
6386
- borders: borders
6199
+ children: /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
6200
+ flexDirection: "row",
6201
+ paddingX: withPadding ? 'kitt.listItem.horizontalPadding' : undefined,
6202
+ paddingY: withPadding ? 'kitt.listItem.verticalPadding' : undefined,
6203
+ borderColor: "kitt.listItem.borderColor",
6204
+ backgroundColor: "kitt.uiBackgroundLight",
6205
+ borderTopWidth: borders === 'top' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined,
6206
+ borderBottomWidth: borders === 'bottom' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined
6387
6207
  }, containerProps), {}, {
6388
6208
  children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
6389
6209
  side: "left",
@@ -6852,6 +6672,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6852
6672
  'subtle-dark': theme.button['subtle-dark'],
6853
6673
  disabled: theme.button.disabled
6854
6674
  },
6675
+ choices: {
6676
+ item: {
6677
+ "default": {
6678
+ backgroundColor: theme.choices.item.backgroundColor["default"]
6679
+ },
6680
+ disabled: {
6681
+ backgroundColor: theme.choices.item.backgroundColor.disabled,
6682
+ borderColor: theme.choices.item.disabled.border.color
6683
+ },
6684
+ selected: {
6685
+ backgroundColor: theme.choices.item.backgroundColor.selected
6686
+ },
6687
+ pressed: {
6688
+ backgroundColor: theme.choices.item.backgroundColor.pressed
6689
+ },
6690
+ hover: {
6691
+ backgroundColor: theme.choices.item.backgroundColor.hover
6692
+ },
6693
+ hoverWhenSelected: {
6694
+ backgroundColor: theme.choices.item.backgroundColor.hoverWhenSelected
6695
+ }
6696
+ }
6697
+ },
6698
+ tag: {
6699
+ primary: {
6700
+ fill: {
6701
+ backgroundColor: theme.tag.primary.fill.backgroundColor,
6702
+ borderColor: theme.tag.primary.fill.borderColor
6703
+ },
6704
+ outline: {
6705
+ backgroundColor: theme.tag.primary.outline.backgroundColor,
6706
+ borderColor: theme.tag.primary.outline.borderColor
6707
+ }
6708
+ },
6709
+ "default": {
6710
+ fill: {
6711
+ backgroundColor: theme.tag["default"].fill.backgroundColor,
6712
+ borderColor: theme.tag["default"].fill.borderColor
6713
+ },
6714
+ outline: {
6715
+ backgroundColor: theme.tag["default"].outline.backgroundColor,
6716
+ borderColor: theme.tag["default"].outline.borderColor
6717
+ }
6718
+ },
6719
+ danger: {
6720
+ fill: {
6721
+ backgroundColor: theme.tag.danger.fill.backgroundColor,
6722
+ borderColor: theme.tag.danger.fill.borderColor
6723
+ },
6724
+ outline: {
6725
+ backgroundColor: theme.tag.danger.outline.backgroundColor,
6726
+ borderColor: theme.tag.danger.outline.borderColor
6727
+ }
6728
+ },
6729
+ warn: {
6730
+ fill: {
6731
+ backgroundColor: theme.tag.warn.fill.backgroundColor,
6732
+ borderColor: theme.tag.warn.fill.borderColor
6733
+ },
6734
+ outline: {
6735
+ backgroundColor: theme.tag.warn.outline.backgroundColor,
6736
+ borderColor: theme.tag.warn.outline.borderColor
6737
+ }
6738
+ }
6739
+ },
6855
6740
  tooltip: {
6856
6741
  backgroundColor: theme.tooltip.backgroundColor
6857
6742
  },
@@ -6875,6 +6760,17 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6875
6760
  input: {
6876
6761
  states: theme.forms.input.states
6877
6762
  },
6763
+ inputTag: {
6764
+ danger: {
6765
+ backgroundColor: theme.forms.inputTag.danger.backgroundColor
6766
+ },
6767
+ "default": {
6768
+ backgroundColor: theme.forms.inputTag["default"].backgroundColor
6769
+ },
6770
+ success: {
6771
+ backgroundColor: theme.forms.inputTag.success.backgroundColor
6772
+ }
6773
+ },
6878
6774
  radioButtonGroup: {
6879
6775
  item: {
6880
6776
  borderColor: theme.forms.radioButtonGroup.item.borderColor,
@@ -6973,6 +6869,49 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
6973
6869
  dark: {
6974
6870
  backgroundColor: theme.highlight.dark.backgroundColor
6975
6871
  }
6872
+ },
6873
+ verticalSteps: {
6874
+ active: {
6875
+ icon: {
6876
+ backgroundColor: theme.verticalSteps.active.icon.backgroundColor,
6877
+ textColor: theme.verticalSteps.active.icon.textColor
6878
+ }
6879
+ },
6880
+ done: {
6881
+ icon: {
6882
+ backgroundColor: theme.verticalSteps.done.icon.backgroundColor,
6883
+ textColor: theme.verticalSteps.done.icon.textColor
6884
+ }
6885
+ },
6886
+ "default": {
6887
+ icon: {
6888
+ backgroundColor: theme.verticalSteps["default"].icon.backgroundColor,
6889
+ textColor: theme.verticalSteps["default"].icon.textColor
6890
+ }
6891
+ }
6892
+ },
6893
+ listItem: {
6894
+ borderColor: theme.listItem.borderColor
6895
+ },
6896
+ picker: {
6897
+ ios: {
6898
+ item: {
6899
+ selected: {
6900
+ color: theme.picker.ios.selected.color
6901
+ }
6902
+ }
6903
+ },
6904
+ android: {
6905
+ item: {
6906
+ "default": {
6907
+ backgroundColor: theme.picker.android["default"].backgroundColor
6908
+ },
6909
+ selected: {
6910
+ color: theme.picker.android.selected.color,
6911
+ backgroundColor: theme.picker.android.selected.backgroundColor
6912
+ }
6913
+ }
6914
+ }
6976
6915
  }
6977
6916
  }),
6978
6917
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.colors
@@ -7007,6 +6946,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7007
6946
  cardModal: {
7008
6947
  borderRadius: theme.cardModal.borderRadius
7009
6948
  },
6949
+ choices: {
6950
+ item: {
6951
+ borderRadius: theme.choices.item.borderRadius
6952
+ }
6953
+ },
7010
6954
  dialogModal: {
7011
6955
  borderRadius: theme.dialogModal.borderRadius
7012
6956
  },
@@ -7014,6 +6958,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7014
6958
  input: {
7015
6959
  borderRadius: theme.forms.input.borderRadius
7016
6960
  },
6961
+ inputTag: {
6962
+ borderRadius: theme.forms.inputTag.borderRadius
6963
+ },
7017
6964
  radioButtonGroup: {
7018
6965
  item: {
7019
6966
  borderRadius: theme.forms.radioButtonGroup.item.borderRadius
@@ -7035,6 +6982,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7035
6982
  iconButton: {
7036
6983
  borderRadius: theme.iconButton.borderRadius
7037
6984
  },
6985
+ tag: {
6986
+ borderRadius: theme.tag.borderRadius
6987
+ },
7038
6988
  tooltip: {
7039
6989
  borderRadius: theme.tooltip.borderRadius
7040
6990
  },
@@ -7146,6 +7096,13 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7146
7096
  button: {
7147
7097
  borderWidth: theme.button.borderWidth
7148
7098
  },
7099
+ choices: {
7100
+ item: {
7101
+ disabled: {
7102
+ borderWidth: theme.choices.item.disabled.border.width
7103
+ }
7104
+ }
7105
+ },
7149
7106
  iconButton: {
7150
7107
  borderWidth: theme.iconButton.borderWidth
7151
7108
  },
@@ -7172,6 +7129,43 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7172
7129
  footer: {
7173
7130
  borderWidth: theme.cardModal.footer.borderWidth
7174
7131
  }
7132
+ },
7133
+ listItem: {
7134
+ borderWidth: theme.listItem.borderWidth
7135
+ },
7136
+ tag: {
7137
+ primary: {
7138
+ fill: {
7139
+ borderWidth: theme.tag.primary.fill.borderWidth
7140
+ },
7141
+ outline: {
7142
+ borderWidth: theme.tag.primary.outline.borderWidth
7143
+ }
7144
+ },
7145
+ "default": {
7146
+ fill: {
7147
+ borderWidth: theme.tag["default"].fill.borderWidth
7148
+ },
7149
+ outline: {
7150
+ borderWidth: theme.tag["default"].outline.borderWidth
7151
+ }
7152
+ },
7153
+ danger: {
7154
+ fill: {
7155
+ borderWidth: theme.tag.danger.fill.borderWidth
7156
+ },
7157
+ outline: {
7158
+ borderWidth: theme.tag.danger.outline.borderWidth
7159
+ }
7160
+ },
7161
+ warn: {
7162
+ fill: {
7163
+ borderWidth: theme.tag.warn.fill.borderWidth
7164
+ },
7165
+ outline: {
7166
+ borderWidth: theme.tag.warn.outline.borderWidth
7167
+ }
7168
+ }
7175
7169
  }
7176
7170
  },
7177
7171
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.borderWidths
@@ -7243,6 +7237,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7243
7237
  },
7244
7238
  textArea: {
7245
7239
  minHeight: theme.forms.textArea.minHeight
7240
+ },
7241
+ timePicker: {
7242
+ minWidth: theme.forms.timePicker.minWidth
7246
7243
  }
7247
7244
  },
7248
7245
  iconButton: {
@@ -7255,6 +7252,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7255
7252
  height: theme.fullscreenModal.header.height
7256
7253
  }
7257
7254
  },
7255
+ pageLoader: {
7256
+ size: theme.pageLoader.size
7257
+ },
7258
7258
  tooltip: {
7259
7259
  maxWidth: theme.tooltip.maxWidth,
7260
7260
  arrow: {
@@ -7274,6 +7274,16 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7274
7274
  size: theme.skeleton.shape.square.size
7275
7275
  }
7276
7276
  }
7277
+ },
7278
+ picker: {
7279
+ ios: {
7280
+ "default": {
7281
+ height: theme.picker.ios["default"].height
7282
+ },
7283
+ landscape: {
7284
+ height: theme.picker.ios.landscape.height
7285
+ }
7286
+ }
7277
7287
  }
7278
7288
  },
7279
7289
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.sizes
@@ -7319,10 +7329,26 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7319
7329
  highlight: {
7320
7330
  padding: theme.highlight.padding
7321
7331
  },
7332
+ listItem: {
7333
+ verticalPadding: theme.listItem.verticalPadding,
7334
+ horizontalPadding: theme.listItem.horizontalPadding
7335
+ },
7336
+ tag: {
7337
+ verticalPadding: theme.tag.verticalPadding,
7338
+ horizontalPadding: theme.tag.horizontalPadding
7339
+ },
7322
7340
  tooltip: {
7323
7341
  horizontalPadding: theme.tooltip.horizontalPadding,
7324
7342
  verticalPadding: theme.tooltip.verticalPadding,
7325
7343
  floatingPadding: theme.tooltip.floatingPadding
7344
+ },
7345
+ picker: {
7346
+ android: {
7347
+ item: {
7348
+ verticalPadding: theme.picker.android.verticalPadding,
7349
+ horizontalPadding: theme.picker.android.horizontalPadding
7350
+ }
7351
+ }
7326
7352
  }
7327
7353
  },
7328
7354
  app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.space
@@ -7892,7 +7918,7 @@ function KittNativeBaseProvider(_ref) {
7892
7918
  });
7893
7919
  }
7894
7920
 
7895
- var _excluded$6 = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
7921
+ var _excluded$9 = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
7896
7922
  function SimpleContainer(_ref) {
7897
7923
  var children = _ref.children;
7898
7924
  return children;
@@ -7906,7 +7932,7 @@ function NavigationModalBehaviour(_ref2) {
7906
7932
  onEnter = _ref2.onEnter,
7907
7933
  onExit = _ref2.onExit,
7908
7934
  onClose = _ref2.onClose,
7909
- props = _objectWithoutProperties(_ref2, _excluded$6);
7935
+ props = _objectWithoutProperties(_ref2, _excluded$9);
7910
7936
  var AnimationComponent = useBreakpointValue({
7911
7937
  base: FullscreenModalAnimation,
7912
7938
  small: CardModalAnimation
@@ -8174,47 +8200,46 @@ function AnimatedFilledCircle() {
8174
8200
  });
8175
8201
  }
8176
8202
 
8177
- var PageLoaderContainer = /*#__PURE__*/styled.View.withConfig({
8178
- displayName: "PageLoader__PageLoaderContainer"
8179
- })(["transform:scale(-1) rotate(90deg);position:relative;width:", "px;height:", "px;"], function (_ref) {
8180
- var theme = _ref.theme;
8181
- return theme.kitt.pageLoader.size;
8182
- }, function (_ref2) {
8183
- var theme = _ref2.theme;
8184
- return theme.kitt.pageLoader.size;
8185
- });
8186
8203
  function PageLoader() {
8187
- return /*#__PURE__*/jsxs(PageLoaderContainer, {
8204
+ var sharedTransformStyle = {
8205
+ style: {
8206
+ /* Needed to make the animation starting from the top of the circles */
8207
+ transform: [{
8208
+ rotate: '90deg'
8209
+ }, {
8210
+ scale: -1
8211
+ }]
8212
+ }
8213
+ };
8214
+ return /*#__PURE__*/jsxs(View, {
8215
+ position: "relative",
8216
+ height: "kitt.pageLoader.size",
8217
+ width: "kitt.pageLoader.size",
8218
+ _ios: sharedTransformStyle,
8219
+ _android: sharedTransformStyle,
8188
8220
  children: [/*#__PURE__*/jsx(AnimatedBackgroundCircle, {}), /*#__PURE__*/jsx(AnimatedFilledCircle, {})]
8189
8221
  });
8190
8222
  }
8191
8223
 
8192
- var ContainerPressable = /*#__PURE__*/styled.Pressable.withConfig({
8193
- displayName: "PickerItem__ContainerPressable"
8194
- })(["padding:", ";background-color:", ";"], function (_ref) {
8195
- var theme = _ref.theme;
8196
- return theme.kitt.picker.android.padding;
8197
- }, function (_ref2) {
8198
- var theme = _ref2.theme,
8199
- $isSelected = _ref2.$isSelected;
8200
- return $isSelected ? theme.kitt.picker.android.selected.backgroundColor : theme.kitt.picker.android["default"].backgroundColor;
8201
- });
8202
-
8203
8224
  // This item is for Android only, iOS uses its own implementation and web is not supported yet
8204
- function PickerItem(_ref3) {
8205
- var label = _ref3.label,
8206
- value = _ref3.value,
8207
- isSelected = _ref3.isSelected,
8208
- onPress = _ref3.onPress;
8209
- return /*#__PURE__*/jsx(ContainerPressable, {
8225
+ function PickerItem(_ref) {
8226
+ var label = _ref.label,
8227
+ value = _ref.value,
8228
+ isSelected = _ref.isSelected,
8229
+ onPress = _ref.onPress;
8230
+ return /*#__PURE__*/jsx(Pressable, {
8210
8231
  accessibilityRole: "button",
8211
8232
  accessibilityState: {
8212
8233
  selected: isSelected
8213
8234
  },
8214
- $isSelected: isSelected,
8215
- onPress: onPress ? function () {
8216
- return onPress(value);
8217
- } : undefined,
8235
+ backgroundColor: isSelected ? 'kitt.picker.android.item.selected.backgroundColor' : 'kitt.picker.android.item.default.backgroundColor',
8236
+ paddingX: "kitt.picker.android.horizontalPadding",
8237
+ paddingY: "kitt.picker.android.verticalPadding",
8238
+ onPress: function handelPress() {
8239
+ if (onPress) {
8240
+ onPress(value);
8241
+ }
8242
+ },
8218
8243
  children: /*#__PURE__*/jsx(Typography.Text, {
8219
8244
  base: "body",
8220
8245
  color: isSelected ? 'white' : undefined,
@@ -8232,69 +8257,86 @@ function Picker(_ref) {
8232
8257
  testID = _ref.testID,
8233
8258
  onValueSelected = _ref.onValueSelected,
8234
8259
  onClose = _ref.onClose;
8260
+ var sx = useSx();
8261
+
8235
8262
  // 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)
8236
8263
  var _useMediaQuery = useMediaQuery({
8237
8264
  maxHeight: 492
8238
8265
  }),
8239
8266
  _useMediaQuery2 = _slicedToArray(_useMediaQuery, 1),
8240
8267
  isMatchingMaxHeight = _useMediaQuery2[0];
8268
+ var iosItemStyle = sx({
8269
+ fontSize: 'baseAndSmall.body',
8270
+ lineHeight: 'baseAndSmall.body',
8271
+ fontFamily: 'bodies.regular',
8272
+ color: 'kitt.typography.black-light',
8273
+ // As it is displayed in a modal, we must hard code an height to ensure that the picker doesn't bleed out of it
8274
+ // We can't set a percentage as it will be computed based on the page height
8275
+ height: isMatchingMaxHeight ? 'kitt.picker.ios.landscape.height' : 'kitt.picker.ios.default.height'
8276
+ });
8277
+ var getIosTextStyle = function (isSelected) {
8278
+ return sx({
8279
+ color: isSelected ? 'kitt.picker.ios.selected.color' : undefined
8280
+ });
8281
+ };
8241
8282
  var _useState = useState(initialValue),
8242
8283
  _useState2 = _slicedToArray(_useState, 2),
8243
8284
  value = _useState2[0],
8244
8285
  setValue = _useState2[1];
8245
- return /*#__PURE__*/jsxs(Modal, {
8286
+ return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
8246
8287
  visible: isVisible,
8247
8288
  onClose: onClose,
8248
- children: [/*#__PURE__*/jsx(Modal.Header, {
8249
- children: /*#__PURE__*/jsx(Typography.Text, {
8250
- base: "body",
8251
- variant: "bold",
8252
- children: title
8253
- })
8254
- }), Platform.OS === 'ios' ? /*#__PURE__*/jsx(Picker$1, {
8255
- testID: testID,
8256
- selectedValue: value
8257
- // As it is displayed in a modal, we must hard code an height to ensure that the picker doesn't bleed out of it
8258
- // We can't set a percentage as it will be computed based on the page height
8259
- ,
8260
- itemStyle: _objectSpread(_objectSpread({}, theme.picker.ios["default"]), {}, {
8261
- height: isMatchingMaxHeight ? theme.picker.ios.landscape.height : theme.picker.ios["default"].height
8262
- }),
8263
- onValueChange: function onValueChange(itemValue) {
8264
- return setValue(itemValue);
8265
- },
8266
- children: React.Children.map(children, function (child) {
8267
- var item = child;
8289
+ children: /*#__PURE__*/jsxs(CardModal, {
8290
+ children: [/*#__PURE__*/jsx(CardModal.Header, {
8291
+ right: /*#__PURE__*/jsx(IconButton, {
8292
+ icon: /*#__PURE__*/jsx(XIcon, {}),
8293
+ onPress: onClose
8294
+ }),
8295
+ children: /*#__PURE__*/jsx(Typography.Text, {
8296
+ base: "body",
8297
+ variant: "bold",
8298
+ children: title
8299
+ })
8300
+ }), Platform.OS === 'ios' ? /*#__PURE__*/jsx(Picker$1, {
8301
+ testID: testID,
8302
+ selectedValue: value,
8303
+ itemStyle: iosItemStyle,
8304
+ onValueChange: function onValueChange(itemValue) {
8305
+ return setValue(itemValue);
8306
+ },
8307
+ children: React.Children.map(children, function (child) {
8308
+ var item = child;
8268
8309
 
8269
- // iOS Picker doesn't support a custom Item component, we need to override its props manually for the selected one
8270
- return /*#__PURE__*/cloneElement(item, {
8271
- color: item.props.value === value ? theme.picker.ios.selected.color : undefined
8272
- });
8273
- })
8274
- }) : /*#__PURE__*/jsx(ScrollView$2, {
8275
- testID: testID,
8276
- children: React.Children.map(children, function (child) {
8277
- var item = child;
8278
- return /*#__PURE__*/cloneElement(item, {
8279
- onPress: function onPress(newValue) {
8280
- return setValue(newValue);
8310
+ // iOS Picker doesn't support a custom Item component, we need to override its props manually for the selected one
8311
+ return /*#__PURE__*/cloneElement(item, {
8312
+ color: getIosTextStyle(item.props.value === value).color
8313
+ });
8314
+ })
8315
+ }) : /*#__PURE__*/jsx(ScrollView$2, {
8316
+ testID: testID,
8317
+ children: React.Children.map(children, function (child) {
8318
+ var item = child;
8319
+ return /*#__PURE__*/cloneElement(item, {
8320
+ onPress: function onPress(newValue) {
8321
+ return setValue(newValue);
8322
+ },
8323
+ isSelected: item.props.value === value
8324
+ });
8325
+ })
8326
+ }), /*#__PURE__*/jsx(CardModal.Footer, {
8327
+ children: /*#__PURE__*/jsx(Button, {
8328
+ stretch: true,
8329
+ type: "primary",
8330
+ onPress: function handleValueSelected() {
8331
+ onValueSelected(value);
8332
+ onClose();
8281
8333
  },
8282
- isSelected: item.props.value === value
8283
- });
8284
- })
8285
- }), /*#__PURE__*/jsx(Modal.Footer, {
8286
- children: /*#__PURE__*/jsx(Button, {
8287
- stretch: true,
8288
- type: "primary",
8289
- onPress: function handleValueSelected() {
8290
- onValueSelected(value);
8291
- onClose();
8292
- },
8293
- children: validateButtonLabel || /*#__PURE__*/jsx(FormattedMessage, {
8294
- id: "kitt-universal.Picker.validate"
8334
+ children: validateButtonLabel || /*#__PURE__*/jsx(FormattedMessage, {
8335
+ id: "kitt-universal.Picker.validate"
8336
+ })
8295
8337
  })
8296
- })
8297
- })]
8338
+ })]
8339
+ })
8298
8340
  });
8299
8341
  }
8300
8342
  Picker.Item = PickerItem;
@@ -8352,19 +8394,10 @@ function SegmentedProgressBar(_ref) {
8352
8394
  });
8353
8395
  }
8354
8396
 
8355
- var Container$2 = /*#__PURE__*/styled.View.withConfig({
8356
- displayName: "SkeletonContent__Container"
8357
- })(["background-color:", ";border-color:", ";height:100%;width:100%;"], function (_ref) {
8358
- var theme = _ref.theme;
8359
- return theme.kitt.skeleton.backgroundColor;
8360
- }, function (_ref2) {
8361
- var theme = _ref2.theme;
8362
- return theme.kitt.skeleton.flareColor;
8363
- });
8364
8397
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient$1);
8365
- function SkeletonContent(_ref3) {
8366
- var isLoading = _ref3.isLoading,
8367
- width = _ref3.width;
8398
+ function SkeletonContent(_ref) {
8399
+ var isLoading = _ref.isLoading,
8400
+ width = _ref.width;
8368
8401
  var theme = useTheme();
8369
8402
  var sharedX = useSharedValue(0);
8370
8403
  useEffect(function () {
@@ -8390,11 +8423,15 @@ function SkeletonContent(_ref3) {
8390
8423
  };
8391
8424
  _f.asString = "function _f(){const{interpolate,sharedX,width}=jsThis._closure;{return{transform:[{translateX:interpolate(sharedX.value,[0,1],[-width,width])}]};}}";
8392
8425
  _f.__workletHash = 1670955855244;
8393
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Skeleton/SkeletonContent.tsx (42:47)";
8426
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Skeleton/SkeletonContent.tsx (36:47)";
8394
8427
  _f.__optimalization = 3;
8395
8428
  return _f;
8396
8429
  }());
8397
- return /*#__PURE__*/jsx(Container$2, {
8430
+ return /*#__PURE__*/jsx(View, {
8431
+ height: "100%",
8432
+ width: "100%",
8433
+ backgroundColor: "kitt.skeleton.backgroundColor",
8434
+ borderColor: "kitt.skeleton.flareColor",
8398
8435
  children: /*#__PURE__*/jsx(AnimatedLinearGradient, {
8399
8436
  colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
8400
8437
  locations: [0.1, 0.5, 0.9],
@@ -8411,7 +8448,7 @@ function SkeletonContent(_ref3) {
8411
8448
  });
8412
8449
  }
8413
8450
 
8414
- var _excluded$5 = ["isLoading", "style"],
8451
+ var _excluded$8 = ["isLoading", "style"],
8415
8452
  _excluded2$1 = ["size"],
8416
8453
  _excluded3$1 = ["size"],
8417
8454
  _excluded4 = ["size"];
@@ -8419,7 +8456,7 @@ function Skeleton(_ref) {
8419
8456
  var _ref$isLoading = _ref.isLoading,
8420
8457
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
8421
8458
  style = _ref.style,
8422
- props = _objectWithoutProperties(_ref, _excluded$5);
8459
+ props = _objectWithoutProperties(_ref, _excluded$8);
8423
8460
  var _useState = useState(0),
8424
8461
  _useState2 = _slicedToArray(_useState, 2),
8425
8462
  width = _useState2[0],
@@ -8614,7 +8651,7 @@ function getShouldDisplay2x() {
8614
8651
  return currentDevicePixelRatio > 1;
8615
8652
  }
8616
8653
 
8617
- var _excluded$4 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
8654
+ var _excluded$7 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
8618
8655
  var mapBoxMaxPictureWidth = 1280;
8619
8656
 
8620
8657
  // Mapbox requestable width for image is between 1 - 1280px
@@ -8632,7 +8669,7 @@ function StaticMap(_ref) {
8632
8669
  center = _ref.center,
8633
8670
  onLoaded = _ref.onLoaded,
8634
8671
  onError = _ref.onError,
8635
- props = _objectWithoutProperties(_ref, _excluded$4);
8672
+ props = _objectWithoutProperties(_ref, _excluded$7);
8636
8673
  var _useState = useState(getPictureWidth(width)),
8637
8674
  _useState2 = _slicedToArray(_useState, 2),
8638
8675
  currentWidth = _useState2[0],
@@ -8722,21 +8759,17 @@ StaticMap.Loader = StaticMapLoader;
8722
8759
  StaticMap.Error = StaticMapError;
8723
8760
  StaticMap.Marker = StaticMapMarker;
8724
8761
 
8725
- var Flex = /*#__PURE__*/styled.View.withConfig({
8726
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
8727
- return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
8728
- }
8729
- }).withConfig({
8730
- displayName: "Flex"
8731
- })(["display:flex;flex-direction:", ";flex-wrap:wrap;padding:", "px;"], function (_ref) {
8732
- var direction = _ref.direction;
8733
- return direction;
8734
- }, function (_ref2) {
8735
- var theme = _ref2.theme,
8736
- _ref2$padding = _ref2.padding,
8737
- padding = _ref2$padding === void 0 ? 0 : _ref2$padding;
8738
- return padding * theme.kitt.spacing;
8739
- });
8762
+ var _excluded$6 = ["direction", "wrap"];
8763
+ function Flex(_ref) {
8764
+ var direction = _ref.direction,
8765
+ _ref$wrap = _ref.wrap,
8766
+ wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
8767
+ props = _objectWithoutProperties(_ref, _excluded$6);
8768
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
8769
+ flexDirection: direction,
8770
+ flexWrap: wrap
8771
+ }));
8772
+ }
8740
8773
 
8741
8774
  var storyPadding = 'kitt.4';
8742
8775
 
@@ -8871,14 +8904,14 @@ function Story(_ref) {
8871
8904
  });
8872
8905
  }
8873
8906
 
8874
- var _excluded$3 = ["title", "children", "internalIsDemoSection"],
8907
+ var _excluded$5 = ["title", "children", "internalIsDemoSection"],
8875
8908
  _excluded2 = ["title", "children"],
8876
8909
  _excluded3 = ["title", "children"];
8877
8910
  function StorySection(_ref) {
8878
8911
  var title = _ref.title,
8879
8912
  children = _ref.children,
8880
8913
  internalIsDemoSection = _ref.internalIsDemoSection,
8881
- props = _objectWithoutProperties(_ref, _excluded$3);
8914
+ props = _objectWithoutProperties(_ref, _excluded$5);
8882
8915
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
8883
8916
  return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
8884
8917
  marginBottom: "kitt.8"
@@ -9006,30 +9039,6 @@ var StoryGrid = {
9006
9039
  Col: StoryGridCol
9007
9040
  };
9008
9041
 
9009
- var Container$1 = /*#__PURE__*/styled.View.withConfig({
9010
- displayName: "Tag__Container"
9011
- })(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
9012
- var theme = _ref.theme,
9013
- type = _ref.type,
9014
- variant = _ref.variant;
9015
- return theme.kitt.tag[type][variant].backgroundColor;
9016
- }, function (_ref2) {
9017
- var theme = _ref2.theme,
9018
- type = _ref2.type,
9019
- variant = _ref2.variant;
9020
- return theme.kitt.tag[type][variant].borderWidth;
9021
- }, function (_ref3) {
9022
- var theme = _ref3.theme,
9023
- type = _ref3.type,
9024
- variant = _ref3.variant;
9025
- return theme.kitt.tag[type][variant].borderColor;
9026
- }, function (_ref4) {
9027
- var theme = _ref4.theme;
9028
- return theme.kitt.tag.padding;
9029
- }, function (_ref5) {
9030
- var theme = _ref5.theme;
9031
- return theme.kitt.tag.borderRadius;
9032
- });
9033
9042
  var getLabelColor = function (type, variant) {
9034
9043
  switch (type) {
9035
9044
  case 'danger':
@@ -9054,15 +9063,20 @@ var getLabelColor = function (type, variant) {
9054
9063
  }
9055
9064
  }
9056
9065
  };
9057
- function Tag(_ref6) {
9058
- var label = _ref6.label,
9059
- _ref6$type = _ref6.type,
9060
- type = _ref6$type === void 0 ? 'default' : _ref6$type,
9061
- _ref6$variant = _ref6.variant,
9062
- variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
9063
- return /*#__PURE__*/jsx(Container$1, {
9064
- type: type,
9065
- variant: variant,
9066
+ function Tag(_ref) {
9067
+ var label = _ref.label,
9068
+ _ref$type = _ref.type,
9069
+ type = _ref$type === void 0 ? 'default' : _ref$type,
9070
+ _ref$variant = _ref.variant,
9071
+ variant = _ref$variant === void 0 ? 'fill' : _ref$variant;
9072
+ return /*#__PURE__*/jsx(View, {
9073
+ alignSelf: "flex-start",
9074
+ borderRadius: "kitt.tag.borderRadius",
9075
+ paddingX: "kitt.tag.horizontalPadding",
9076
+ paddingY: "kitt.tag.verticalPadding",
9077
+ backgroundColor: "kitt.tag.".concat(type, ".").concat(variant, ".backgroundColor"),
9078
+ borderColor: "kitt.tag.".concat(type, ".").concat(variant, ".borderColor"),
9079
+ borderWidth: "kitt.tag.".concat(type, ".").concat(variant, ".borderWidth"),
9066
9080
  children: /*#__PURE__*/jsx(Typography.Text, {
9067
9081
  base: "body-xsmall",
9068
9082
  color: getLabelColor(type, variant),
@@ -9071,194 +9085,200 @@ function Tag(_ref6) {
9071
9085
  });
9072
9086
  }
9073
9087
 
9074
- /** @deprecated use native-base instead for SSR compatibility */
9075
- var getTypographyTypeConfigKey = function (theme) {
9076
- var isMediumOrAbove = theme.responsive.matchWindowSize({
9077
- minWidth: KittBreakpoints.MEDIUM
9078
- });
9079
- return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
9080
- };
9081
- /** @deprecated this mixin is not SSR compatible */
9082
- var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
9083
- var theme = _ref.theme,
9084
- $state = _ref.$state;
9085
- return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
9086
- }, function (_ref2) {
9087
- var theme = _ref2.theme;
9088
- return theme.kitt.forms.input.borderWidth;
9089
- }, function (_ref3) {
9090
- var theme = _ref3.theme;
9091
- return theme.kitt.forms.input.borderRadius;
9092
- }, function (_ref4) {
9093
- var theme = _ref4.theme,
9094
- $state = _ref4.$state;
9095
- return theme.kitt.forms.input.states[$state].borderColor;
9096
- }, function (_ref5) {
9097
- var theme = _ref5.theme;
9098
- var typeConfigKey = getTypographyTypeConfigKey(theme);
9099
- return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
9100
- }, function (_ref6) {
9101
- var theme = _ref6.theme,
9102
- $state = _ref6.$state;
9103
- return theme.kitt.forms.input.states[$state].color || theme.kitt.forms.input.states["default"].color;
9104
- }, function (_ref7) {
9105
- var theme = _ref7.theme;
9106
- return Platform.OS === 'web' ? theme.kitt.typography.types.bodies.fontFamily.web.regular : theme.kitt.typography.types.bodies.fontFamily["native"].regular;
9107
- });
9108
-
9109
- function Title(_ref) {
9110
- var children = _ref.children;
9111
- return /*#__PURE__*/jsx(Modal.Header, {
9112
- children: /*#__PURE__*/jsx(Typography.Text, {
9113
- base: "body",
9114
- variant: "bold",
9115
- children: children
9116
- })
9117
- });
9118
- }
9119
- function ModalDateTimePicker(_ref2) {
9120
- var title = _ref2.title,
9121
- visible = _ref2.visible,
9122
- value = _ref2.value,
9123
- validateButtonLabel = _ref2.validateButtonLabel,
9124
- onChange = _ref2.onChange,
9125
- onClose = _ref2.onClose;
9088
+ function ModalDateTimePicker(_ref) {
9089
+ var title = _ref.title,
9090
+ visible = _ref.visible,
9091
+ value = _ref.value,
9092
+ validateButtonLabel = _ref.validateButtonLabel,
9093
+ testID = _ref.testID,
9094
+ pickerTestID = _ref.pickerTestID,
9095
+ onChange = _ref.onChange,
9096
+ onClose = _ref.onClose;
9126
9097
  var _useState = useState(value),
9127
9098
  _useState2 = _slicedToArray(_useState, 2),
9128
9099
  currentValue = _useState2[0],
9129
9100
  setCurrentValue = _useState2[1];
9130
9101
 
9131
9102
  // Prevent unsynced value between the modal and its parent state
9132
-
9133
- return /*#__PURE__*/jsx(Modal, {
9103
+ var handleClose = function () {
9104
+ setCurrentValue(value);
9105
+ onClose();
9106
+ };
9107
+ var handleChange = function (nextDate) {
9108
+ if (nextDate) setCurrentValue(nextDate);
9109
+ };
9110
+ var buttonContent = validateButtonLabel || /*#__PURE__*/jsx(FormattedMessage, {
9111
+ id: "kitt-universal.ModalDateTimePicker.confirm"
9112
+ });
9113
+ return /*#__PURE__*/jsx(CardModal.ModalBehaviour, {
9134
9114
  visible: Boolean(visible),
9135
- onClose: function handleClose() {
9136
- setCurrentValue(value);
9137
- onClose();
9138
- },
9139
- children: visible ? /*#__PURE__*/jsxs(Fragment, {
9140
- children: [title ? /*#__PURE__*/jsx(Title, {
9141
- children: title
9142
- }) : null, /*#__PURE__*/jsx(Modal.Body, {
9115
+ onClose: handleClose,
9116
+ children: /*#__PURE__*/jsxs(CardModal, {
9117
+ testID: testID,
9118
+ children: [title ? /*#__PURE__*/jsx(CardModal.Header, {
9119
+ title: title,
9120
+ right: /*#__PURE__*/jsx(IconButton, {
9121
+ testID: "timePicker.ModalDateTimePicker.closeButton",
9122
+ icon: /*#__PURE__*/jsx(XIcon, {}),
9123
+ onPress: handleClose
9124
+ })
9125
+ }) : null, /*#__PURE__*/jsx(CardModal.Body, {
9143
9126
  children: /*#__PURE__*/jsx(DateTimePicker, {
9144
9127
  is24Hour: true,
9145
- testID: "timePicker.ModalDateTimePicker.dateTimeNativePicker",
9128
+ testID: pickerTestID,
9146
9129
  value: currentValue,
9147
9130
  mode: "time",
9148
9131
  display: Platform.OS === 'ios' ? 'spinner' : 'default',
9149
- onChange: function (_event, date) {
9150
- return setCurrentValue(function (prev) {
9151
- return date || prev;
9152
- });
9132
+ onChange: function (event, date) {
9133
+ return handleChange(date);
9153
9134
  }
9154
9135
  })
9155
- }), /*#__PURE__*/jsx(Modal.Footer, {
9136
+ }), /*#__PURE__*/jsx(CardModal.Footer, {
9156
9137
  children: /*#__PURE__*/jsx(Button, {
9157
9138
  stretch: true,
9139
+ testID: "timePicker.ModalDateTimePicker.submitButton",
9158
9140
  type: "primary",
9159
9141
  onPress: function handleSubmit() {
9160
9142
  onChange(currentValue);
9161
9143
  },
9162
- children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
9163
- children: validateButtonLabel
9164
- }) : /*#__PURE__*/jsx(FormattedMessage, {
9165
- id: "kitt-universal.ModalDateTimePicker.confirm"
9166
- })
9144
+ children: buttonContent
9167
9145
  })
9168
9146
  })]
9169
- }) : null
9147
+ })
9170
9148
  });
9171
9149
  }
9172
9150
 
9173
- var timePickerPlaceholder = '--:--';
9174
- var formatNumberToTimeString = function (time) {
9151
+ function formatNumberToTimeString(time) {
9175
9152
  return "".concat(String(time).padStart(2, '0'));
9176
- };
9177
- var formatDateToTimeString = function (date) {
9153
+ }
9154
+ function formatDateToTimeString(date) {
9178
9155
  return "".concat(formatNumberToTimeString(date.getHours()), ":").concat(formatNumberToTimeString(date.getMinutes()));
9179
- };
9180
- var useTimePicker = function (value, onChange, onBlur, disabled, defaultValue, isDefaultVisible) {
9181
- var _useState = useState(Boolean(isDefaultVisible)),
9182
- _useState2 = _slicedToArray(_useState, 2),
9183
- isTimePickerModalVisible = _useState2[0],
9184
- setIsTimePickerModalVisible = _useState2[1];
9185
- var todayAtNoon = useMemo(function () {
9186
- var now = new Date(2000, 0, 1, 12);
9187
- return new Date(now.getFullYear(), now.getMonth(), now.getDay(), 12);
9188
- }, []);
9189
- var defaultDate = defaultValue || todayAtNoon;
9190
- var dateTimePickerValue = value || defaultDate;
9191
- var displayedValue = value === null ? timePickerPlaceholder : formatDateToTimeString(dateTimePickerValue);
9192
- var timePickerState = isTimePickerModalVisible ? 'focus' : 'default';
9193
- return {
9194
- dateTimePickerValue: dateTimePickerValue,
9195
- displayedValue: displayedValue,
9196
- timePickerState: timePickerState,
9197
- isTimePickerModalVisible: isTimePickerModalVisible,
9198
- handleInputPress: function handleInputPress() {
9199
- if (disabled) {
9200
- return;
9201
- }
9202
- setIsTimePickerModalVisible(true);
9203
- },
9204
- handleTimeChange: function handleTimeChange(date) {
9205
- setIsTimePickerModalVisible(false);
9206
- onChange(date || defaultDate);
9207
- onBlur();
9208
- },
9209
- handleModalClose: function handleModalClose() {
9210
- return setIsTimePickerModalVisible(false);
9156
+ }
9157
+
9158
+ function getCurrentInternalForcedState(_ref) {
9159
+ var isDisabled = _ref.isDisabled,
9160
+ isHoveredInternal = _ref.isHoveredInternal,
9161
+ isFocusedInternal = _ref.isFocusedInternal,
9162
+ isPressedInternal = _ref.isPressedInternal;
9163
+ if (isDisabled) return 'disabled';
9164
+ if (isHoveredInternal) return 'hover';
9165
+ if (isFocusedInternal) return 'focus';
9166
+ if (isPressedInternal) return 'hover';
9167
+ return 'default';
9168
+ }
9169
+
9170
+ function TimePickerPressable(_ref) {
9171
+ var testID = _ref.testID,
9172
+ disabled = _ref.disabled,
9173
+ stretch = _ref.stretch,
9174
+ value = _ref.value,
9175
+ placeholder = _ref.placeholder,
9176
+ isHoveredInternal = _ref.isHoveredInternal,
9177
+ isFocusedInternal = _ref.isFocusedInternal,
9178
+ isPressedInternal = _ref.isPressedInternal,
9179
+ onPress = _ref.onPress;
9180
+ return /*#__PURE__*/jsx(Pressable, {
9181
+ testID: testID,
9182
+ disabled: disabled,
9183
+ accessibilityRole: "button",
9184
+ width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
9185
+ onPress: onPress,
9186
+ children: function children(_ref2) {
9187
+ var isHovered = _ref2.isHovered,
9188
+ isFocused = _ref2.isFocused,
9189
+ isPressed = _ref2.isPressed;
9190
+ return /*#__PURE__*/jsxs(View, {
9191
+ position: "relative",
9192
+ children: [/*#__PURE__*/jsx(InputText, {
9193
+ internalForceState: getCurrentInternalForcedState({
9194
+ isDisabled: disabled,
9195
+ isHoveredInternal: isHovered || isHoveredInternal,
9196
+ isFocusedInternal: isFocused || isFocusedInternal,
9197
+ isPressedInternal: isPressed || isPressedInternal
9198
+ }),
9199
+ value: value ? formatDateToTimeString(value) : undefined,
9200
+ placeholder: placeholder,
9201
+ disabled: disabled,
9202
+ textAlign: "center"
9203
+ }), /*#__PURE__*/jsx(View, {
9204
+ position: "absolute",
9205
+ top: "0",
9206
+ left: "0",
9207
+ height: "100%",
9208
+ width: "100%"
9209
+ })]
9210
+ });
9211
9211
  }
9212
- };
9213
- };
9212
+ });
9213
+ }
9214
9214
 
9215
- var Container = /*#__PURE__*/styled.Pressable.withConfig({
9216
- displayName: "TimePicker__Container"
9217
- })(["", " width:100px;height:40px;justify-content:center;align-items:center;"], styledTextInputMixin);
9218
9215
  function TimePicker(_ref) {
9219
9216
  var title = _ref.title,
9220
- _ref$state = _ref.state,
9221
- state = _ref$state === void 0 ? 'default' : _ref$state,
9222
9217
  _ref$disabled = _ref.disabled,
9223
9218
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
9224
- forceDefaultValue = _ref.forceDefaultValue,
9219
+ stretch = _ref.stretch,
9225
9220
  value = _ref.value,
9226
9221
  validateButtonLabel = _ref.validateButtonLabel,
9227
9222
  isDefaultVisible = _ref.isDefaultVisible,
9223
+ _ref$placeholder = _ref.placeholder,
9224
+ placeholder = _ref$placeholder === void 0 ? '--:--' : _ref$placeholder,
9225
+ testID = _ref.testID,
9226
+ modalTestID = _ref.modalTestID,
9227
+ _ref$pickerTestID = _ref.pickerTestID,
9228
+ pickerTestID = _ref$pickerTestID === void 0 ? 'timePicker.ModalDateTimePicker.dateTimeNativePicker' : _ref$pickerTestID,
9229
+ isHoveredInternal = _ref.isHoveredInternal,
9230
+ isFocusedInternal = _ref.isFocusedInternal,
9231
+ isPressedInternal = _ref.isPressedInternal,
9228
9232
  onChange = _ref.onChange,
9229
9233
  onBlur = _ref.onBlur;
9230
- var _useTimePicker = useTimePicker(value || null, onChange, onBlur, disabled, forceDefaultValue, isDefaultVisible),
9231
- dateTimePickerValue = _useTimePicker.dateTimePickerValue,
9232
- displayedValue = _useTimePicker.displayedValue,
9233
- timePickerState = _useTimePicker.timePickerState,
9234
- handleInputPress = _useTimePicker.handleInputPress,
9235
- handleModalClose = _useTimePicker.handleModalClose,
9236
- handleTimeChange = _useTimePicker.handleTimeChange,
9237
- isTimePickerModalVisible = _useTimePicker.isTimePickerModalVisible;
9238
- return /*#__PURE__*/jsxs(Container, {
9239
- $state: timePickerState === 'default' ? state : timePickerState,
9240
- accessibilityRole: "button",
9241
- onPress: handleInputPress,
9242
- children: [/*#__PURE__*/jsx(Typography.Text, {
9243
- base: "body",
9244
- color: displayedValue === timePickerPlaceholder ? 'black-light' : 'black',
9245
- children: displayedValue
9246
- }), Platform.OS === 'android' && isTimePickerModalVisible ? /*#__PURE__*/jsx(DateTimePicker, {
9234
+ var _useState = useState(value),
9235
+ _useState2 = _slicedToArray(_useState, 2),
9236
+ currentValue = _useState2[0],
9237
+ setCurrentValue = _useState2[1];
9238
+ var _useState3 = useState(isDefaultVisible),
9239
+ _useState4 = _slicedToArray(_useState3, 2),
9240
+ isPickerVisible = _useState4[0],
9241
+ setIsPickerVisible = _useState4[1];
9242
+ var handleChange = function (nextDate) {
9243
+ setCurrentValue(nextDate);
9244
+ setIsPickerVisible(false);
9245
+ if (onChange) onChange(nextDate);
9246
+ if (onBlur) onBlur();
9247
+ };
9248
+ var pickerValue = currentValue || new Date();
9249
+ return /*#__PURE__*/jsxs(Fragment, {
9250
+ children: [/*#__PURE__*/jsx(TimePickerPressable, {
9251
+ testID: testID,
9252
+ disabled: disabled,
9253
+ stretch: stretch,
9254
+ value: currentValue,
9255
+ placeholder: placeholder,
9256
+ isHoveredInternal: isHoveredInternal,
9257
+ isFocusedInternal: isFocusedInternal,
9258
+ isPressedInternal: isPressedInternal,
9259
+ onPress: function handlePress() {
9260
+ setIsPickerVisible(true);
9261
+ }
9262
+ }), Platform.OS === 'android' && isPickerVisible ? /*#__PURE__*/jsx(DateTimePicker, {
9247
9263
  is24Hour: true,
9248
- testID: "timePicker.TimePicker.dateTimeNativePicker",
9249
- value: dateTimePickerValue,
9264
+ testID: pickerTestID,
9265
+ value: pickerValue,
9250
9266
  mode: "time",
9251
9267
  display: "default",
9252
- onChange: function (_event, date) {
9253
- return handleTimeChange(date);
9268
+ onChange: function (event, date) {
9269
+ return handleChange(date);
9254
9270
  }
9255
9271
  }) : null, Platform.OS !== 'android' ? /*#__PURE__*/jsx(ModalDateTimePicker, {
9272
+ visible: isPickerVisible,
9256
9273
  title: title,
9257
- visible: isTimePickerModalVisible,
9258
- value: dateTimePickerValue,
9274
+ testID: modalTestID,
9275
+ pickerTestID: pickerTestID,
9276
+ value: pickerValue,
9259
9277
  validateButtonLabel: validateButtonLabel,
9260
- onChange: handleTimeChange,
9261
- onClose: handleModalClose
9278
+ onChange: handleChange,
9279
+ onClose: function handleClose() {
9280
+ setIsPickerVisible(false);
9281
+ }
9262
9282
  }) : null]
9263
9283
  });
9264
9284
  }
@@ -9592,21 +9612,14 @@ function TypographyEmoji(_ref3) {
9592
9612
  });
9593
9613
  }
9594
9614
 
9595
- var _excluded$2 = ["as", "children"];
9596
- function StyleWebWrapper(_ref) {
9597
- var as = _ref.as,
9598
- children = _ref.children,
9599
- props = _objectWithoutProperties(_ref, _excluded$2);
9600
- if (Platform.OS !== 'web') return children;
9601
- // as or default to div. If as is undefined, T is div but typescript is not sure
9602
- return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
9603
- children: children
9604
- }));
9615
+ var _excluded$4 = ["children"];
9616
+ function TypographyLinkWebWrapper(_ref) {
9617
+ var children = _ref.children;
9618
+ _objectWithoutProperties(_ref, _excluded$4);
9619
+ return children;
9605
9620
  }
9606
9621
 
9607
- var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
9608
- // overrides :global(a) in Link styles.module.css
9609
- var TypographyLinkWebWrapper = undefined;
9622
+ var _excluded$3 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
9610
9623
  function TypographyLink(_ref) {
9611
9624
  var children = _ref.children,
9612
9625
  disabled = _ref.disabled,
@@ -9614,10 +9627,9 @@ function TypographyLink(_ref) {
9614
9627
  href = _ref.href,
9615
9628
  hrefAttrs = _ref.hrefAttrs,
9616
9629
  onPress = _ref.onPress,
9617
- otherProps = _objectWithoutProperties(_ref, _excluded$1);
9618
- return /*#__PURE__*/jsx(StyleWebWrapper, {
9619
- as: TypographyLinkWebWrapper,
9620
- $hasNoUnderline: noUnderline,
9630
+ otherProps = _objectWithoutProperties(_ref, _excluded$3);
9631
+ return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
9632
+ hasNoUnderline: noUnderline,
9621
9633
  children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
9622
9634
  underline: !noUnderline,
9623
9635
  color: disabled ? 'black-disabled' : undefined,
@@ -9649,51 +9661,12 @@ function TypographyLink(_ref) {
9649
9661
  });
9650
9662
  }
9651
9663
 
9652
- /** @deprecated use native-base responsive props or `useBreakpointValue` or `useMatchWindowSize` instead */
9653
- function createWindowSizeHelper(dimensions) {
9654
- return {
9655
- matchWindowSize: function matchWindowSize$1(options) {
9656
- return matchWindowSize(dimensions, options);
9657
- },
9658
- ifWindowSizeMatches: function ifWindowSizeMatches(options, valueIfTrue, valueIfFalse) {
9659
- return matchWindowSize(dimensions, options) ? valueIfTrue : valueIfFalse;
9660
- },
9661
- mapWindowWidth: function mapWindowWidth() {
9662
- for (var _len = arguments.length, widthList = new Array(_len), _key = 0; _key < _len; _key++) {
9663
- widthList[_key] = arguments[_key];
9664
- }
9665
- if ((process.env.NODE_ENV !== "production")) {
9666
- widthList.slice(1).forEach(function (_ref, index) {
9667
- var _ref2 = _slicedToArray(_ref, 1),
9668
- minWidth = _ref2[0];
9669
- var previousMinWidth = widthList[index][0];
9670
- if (previousMinWidth > minWidth) {
9671
- throw new Error("mapWindowWidth: sort your values to be mobile first. ".concat(minWidth, " is < ").concat(previousMinWidth, ", so ").concat(minWidth, " should be before ").concat(previousMinWidth, "."));
9672
- }
9673
- });
9674
- }
9675
- var found = widthList.find(function (_ref3) {
9676
- var _ref4 = _slicedToArray(_ref3, 2),
9677
- minWidth = _ref4[0];
9678
- _ref4[1];
9679
- return matchWindowSize(dimensions, {
9680
- minWidth: Number(minWidth)
9681
- });
9682
- });
9683
- if (!found) return null;
9684
- return found[1];
9685
- }
9686
- };
9687
- }
9688
-
9689
9664
  function useKittTheme() {
9690
- var dimensions = useWindowDimensions();
9691
9665
  return useMemo(function () {
9692
9666
  return {
9693
- kitt: theme,
9694
- responsive: createWindowSizeHelper(dimensions)
9667
+ kitt: theme
9695
9668
  };
9696
- }, [dimensions]);
9669
+ }, []);
9697
9670
  }
9698
9671
 
9699
9672
  function KittThemeProvider(_ref) {
@@ -9701,14 +9674,11 @@ function KittThemeProvider(_ref) {
9701
9674
  children = _ref.children,
9702
9675
  appTheme = _ref.appTheme;
9703
9676
  var theme = useKittTheme();
9704
- return /*#__PURE__*/jsx(ThemeProvider, {
9677
+ return /*#__PURE__*/jsx(KittNativeBaseProvider, {
9705
9678
  theme: theme,
9706
- children: /*#__PURE__*/jsx(KittNativeBaseProvider, {
9707
- theme: theme,
9708
- isSSR: isSSR,
9709
- appTheme: appTheme,
9710
- children: children
9711
- })
9679
+ isSSR: isSSR,
9680
+ appTheme: appTheme,
9681
+ children: children
9712
9682
  });
9713
9683
  }
9714
9684
  var KittThemeDecorator = makeDecorator({
@@ -9727,7 +9697,22 @@ var KittThemeDecorator = makeDecorator({
9727
9697
  }
9728
9698
  });
9729
9699
 
9730
- var _excluded = ["children"];
9700
+ var _excluded$2 = ["as", "children"];
9701
+ /**
9702
+ * @deprecated Use react-native Platform instead
9703
+ */
9704
+ function StyleWebWrapper(_ref) {
9705
+ var as = _ref.as,
9706
+ children = _ref.children,
9707
+ props = _objectWithoutProperties(_ref, _excluded$2);
9708
+ if (Platform.OS !== 'web') return children;
9709
+ // as or default to div. If as is undefined, T is div but typescript is not sure
9710
+ return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
9711
+ children: children
9712
+ }));
9713
+ }
9714
+
9715
+ var _excluded$1 = ["children"];
9731
9716
  /**
9732
9717
  * Display children if match window size options
9733
9718
  *
@@ -9735,7 +9720,7 @@ var _excluded = ["children"];
9735
9720
  */
9736
9721
  function MatchWindowSize(_ref) {
9737
9722
  var children = _ref.children,
9738
- matchWindowSizeOptions = _objectWithoutProperties(_ref, _excluded);
9723
+ matchWindowSizeOptions = _objectWithoutProperties(_ref, _excluded$1);
9739
9724
  var match = useMatchWindowSize(matchWindowSizeOptions);
9740
9725
  if (!match) return null;
9741
9726
  return children;
@@ -9751,16 +9736,128 @@ function useCurrentBreakpointName() {
9751
9736
  });
9752
9737
  }
9753
9738
 
9754
- function withTheme(WrappedComponent) {
9755
- // eslint-disable-next-line prefer-arrow-callback
9756
- return /*#__PURE__*/forwardRef(function (props, ref) {
9757
- var theme = useTheme();
9758
- return /*#__PURE__*/jsx(WrappedComponent, _objectSpread({
9759
- ref: ref,
9760
- theme: theme
9761
- }, props));
9739
+ var backgroundColors = {
9740
+ done: 'kitt.verticalSteps.done.icon.backgroundColor',
9741
+ active: 'kitt.verticalSteps.active.icon.backgroundColor',
9742
+ "default": 'kitt.verticalSteps.default.icon.backgroundColor'
9743
+ };
9744
+ function IconStatus(_ref) {
9745
+ var state = _ref.state,
9746
+ index = _ref.index;
9747
+ if (state === 'done') {
9748
+ return /*#__PURE__*/jsx(TypographyIcon, {
9749
+ icon: /*#__PURE__*/jsx(CheckIcon, {}),
9750
+ color: "kitt.verticalSteps.done.icon.textColor"
9751
+ });
9752
+ }
9753
+ if (state === 'active') {
9754
+ return /*#__PURE__*/jsx(Typography.Text, {
9755
+ textAlign: "center",
9756
+ variant: "bold",
9757
+ color: "kitt.verticalSteps.active.icon.textColor",
9758
+ children: index + 1
9759
+ });
9760
+ }
9761
+ return /*#__PURE__*/jsx(Typography.Text, {
9762
+ textAlign: "center",
9763
+ variant: "bold",
9764
+ color: "kitt.verticalSteps.default.icon.textColor",
9765
+ children: index + 1
9766
+ });
9767
+ }
9768
+ function StepIcon(_ref2) {
9769
+ var index = _ref2.index,
9770
+ _ref2$state = _ref2.state,
9771
+ state = _ref2$state === void 0 ? 'default' : _ref2$state;
9772
+ return /*#__PURE__*/jsx(View, {
9773
+ justifyContent: "center",
9774
+ alignItems: "center",
9775
+ width: 30,
9776
+ height: 30,
9777
+ borderRadius: 15,
9778
+ backgroundColor: backgroundColors[state],
9779
+ children: /*#__PURE__*/jsx(IconStatus, {
9780
+ state: state,
9781
+ index: index
9782
+ })
9783
+ });
9784
+ }
9785
+
9786
+ function ExternalStep() {
9787
+ return null;
9788
+ }
9789
+ function Step(_ref) {
9790
+ var _ref$index = _ref.index,
9791
+ index = _ref$index === void 0 ? 0 : _ref$index,
9792
+ children = _ref.children,
9793
+ _ref$state = _ref.state,
9794
+ state = _ref$state === void 0 ? 'default' : _ref$state,
9795
+ _ref$isLast = _ref.isLast,
9796
+ isLast = _ref$isLast === void 0 ? false : _ref$isLast,
9797
+ _ref$shouldDisableNex = _ref.shouldDisableNextLink,
9798
+ shouldDisableNextLink = _ref$shouldDisableNex === void 0 ? false : _ref$shouldDisableNex;
9799
+ return /*#__PURE__*/jsxs(HStack$1, {
9800
+ space: "kitt.2",
9801
+ flexGrow: 1,
9802
+ children: [/*#__PURE__*/jsxs(View, {
9803
+ marginTop: "kitt.2",
9804
+ paddingY: "kitt.2",
9805
+ backgroundColor: "kitt.white",
9806
+ children: [/*#__PURE__*/jsx(StepIcon, {
9807
+ state: state,
9808
+ index: index
9809
+ }), !isLast ? /*#__PURE__*/jsx(View, {
9810
+ backgroundColor: shouldDisableNextLink ? 'kitt.palettes.lateOcean.black100' : 'kitt.palettes.lateOcean.moonPurple',
9811
+ width: 1,
9812
+ position: "absolute",
9813
+ top: 46,
9814
+ left: 15,
9815
+ zIndex: -1,
9816
+ height: "100%"
9817
+ }) : null]
9818
+ }), /*#__PURE__*/jsx(View, {
9819
+ flexGrow: 1,
9820
+ children: /*#__PURE__*/jsx(ActionCard, {
9821
+ variant: "primary",
9822
+ children: children
9823
+ })
9824
+ })]
9762
9825
  });
9763
9826
  }
9764
9827
 
9765
- 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 };
9828
+ function getStepState(index, activeIndex) {
9829
+ if (index === activeIndex) {
9830
+ return 'active';
9831
+ }
9832
+ if (index < activeIndex) {
9833
+ return 'done';
9834
+ }
9835
+ return 'default';
9836
+ }
9837
+
9838
+ var _excluded = ["children", "activeIndex"];
9839
+ function VerticalSteps(_ref) {
9840
+ var children = _ref.children,
9841
+ activeIndex = _ref.activeIndex,
9842
+ props = _objectWithoutProperties(_ref, _excluded);
9843
+ return /*#__PURE__*/jsx(VStack$1, _objectSpread(_objectSpread({
9844
+ space: "kitt.4",
9845
+ width: "100%"
9846
+ }, props), {}, {
9847
+ children: Children.map(children, function (child, index) {
9848
+ if ((process.env.NODE_ENV !== "production") && child.type !== ExternalStep) {
9849
+ throw new Error('VerticalSteps only accepts VerticalSteps.Step as children');
9850
+ }
9851
+ var isLast = index === Children.count(children) - 1;
9852
+ return /*#__PURE__*/createElement(Step, _objectSpread(_objectSpread({}, child.props), {}, {
9853
+ index: index,
9854
+ isLast: isLast,
9855
+ state: getStepState(index, activeIndex)
9856
+ }), child.props.children);
9857
+ })
9858
+ }));
9859
+ }
9860
+ VerticalSteps.Step = ExternalStep;
9861
+
9862
+ 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, 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, getStaticMapImageUrl, hex2rgba, matchWindowSize, theme, useBottomSheet, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useStaticBottomSheet, useStoryBlockColor, useTheme };
9766
9863
  //# sourceMappingURL=index-browser-all.es.android.js.map