@ornikar/kitt-universal 2.5.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
  2. package/dist/definitions/Button/Button.d.ts +4 -4
  3. package/dist/definitions/Button/Button.d.ts.map +1 -1
  4. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  5. package/dist/definitions/Button/ButtonPressable.d.ts +4 -3
  6. package/dist/definitions/Button/ButtonPressable.d.ts.map +1 -1
  7. package/dist/definitions/Card/Card.d.ts.map +1 -1
  8. package/dist/definitions/Emoji/Emoji.d.ts +3 -3
  9. package/dist/definitions/Emoji/Emoji.d.ts.map +1 -1
  10. package/dist/definitions/ExternalLink/ExternalLink.d.ts +3 -3
  11. package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -1
  12. package/dist/definitions/ExternalLink/ExternalLink.web.d.ts.map +1 -1
  13. package/dist/definitions/FullScreenModal/Body.d.ts.map +1 -1
  14. package/dist/definitions/FullScreenModal/FullScreenModal.d.ts.map +1 -1
  15. package/dist/definitions/FullScreenModal/Header.d.ts.map +1 -1
  16. package/dist/definitions/Icon/Icon.d.ts.map +1 -1
  17. package/dist/definitions/Icon/SpinningIcon.web.d.ts +3 -2
  18. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  19. package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
  20. package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -1
  21. package/dist/definitions/IconButton/PressableAnimatedContainer.web.d.ts.map +1 -1
  22. package/dist/definitions/IconButton/PressableIconButton.d.ts +4 -4
  23. package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -1
  24. package/dist/definitions/ListItem/ListItem.d.ts +3 -4
  25. package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
  26. package/dist/definitions/ListItem/ListItemContent.d.ts +2 -2
  27. package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
  28. package/dist/definitions/ListItem/ListItemSideContent.d.ts +3 -4
  29. package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
  30. package/dist/definitions/Loader/LargeLoader.d.ts.map +1 -1
  31. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +1 -1
  32. package/dist/definitions/Loader/Loader.d.ts.map +1 -1
  33. package/dist/definitions/Loader/Loader.web.d.ts.map +1 -1
  34. package/dist/definitions/Message/Message.d.ts.map +1 -1
  35. package/dist/definitions/Modal/Body.d.ts.map +1 -1
  36. package/dist/definitions/Modal/Footer.d.ts.map +1 -1
  37. package/dist/definitions/Modal/Header.d.ts.map +1 -1
  38. package/dist/definitions/Modal/Modal.d.ts.map +1 -1
  39. package/dist/definitions/Notification/Notification.d.ts.map +1 -1
  40. package/dist/definitions/Overlay/Overlay.d.ts +2 -2
  41. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  42. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  43. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +12 -0
  44. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -0
  45. package/dist/definitions/TimePicker/TimePicker.d.ts +15 -0
  46. package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -0
  47. package/dist/definitions/TimePicker/TimePicker.web.d.ts +3 -0
  48. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -0
  49. package/dist/definitions/TimePicker/useTimePicker.d.ts +14 -0
  50. package/dist/definitions/TimePicker/useTimePicker.d.ts.map +1 -0
  51. package/dist/definitions/Tooltip/Tooltip.d.ts +23 -3
  52. package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
  53. package/dist/definitions/Tooltip/Tooltip.web.d.ts +8 -0
  54. package/dist/definitions/Tooltip/Tooltip.web.d.ts.map +1 -0
  55. package/dist/definitions/Tooltip/TooltipView.d.ts +8 -0
  56. package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -0
  57. package/dist/definitions/Tooltip/tooltipUtils.d.ts +5 -0
  58. package/dist/definitions/Tooltip/tooltipUtils.d.ts.map +1 -0
  59. package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts.map +1 -1
  60. package/dist/definitions/forms/InputField/InputField.d.ts.map +1 -1
  61. package/dist/definitions/forms/InputText/InputText.d.ts +3 -2
  62. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  63. package/dist/definitions/forms/Label/Label.d.ts.map +1 -1
  64. package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
  65. package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
  66. package/dist/definitions/index.d.ts +3 -15
  67. package/dist/definitions/index.d.ts.map +1 -1
  68. package/dist/definitions/story-components/Flex.d.ts +2 -2
  69. package/dist/definitions/story-components/Flex.d.ts.map +1 -1
  70. package/dist/definitions/story-components/Story.d.ts.map +1 -1
  71. package/dist/definitions/story-components/StoryBlock.d.ts +1 -2
  72. package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
  73. package/dist/definitions/story-components/StoryContainer.d.ts.map +1 -1
  74. package/dist/definitions/story-components/StoryContainer.web.d.ts.map +1 -1
  75. package/dist/definitions/story-components/StoryDecorator.d.ts.map +1 -1
  76. package/dist/definitions/story-components/StoryGrid.d.ts.map +1 -1
  77. package/dist/definitions/story-components/StorySection.d.ts +7 -9
  78. package/dist/definitions/story-components/StorySection.d.ts.map +1 -1
  79. package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
  80. package/dist/definitions/themes/default.d.ts +3 -6
  81. package/dist/definitions/themes/default.d.ts.map +1 -1
  82. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +1 -0
  83. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
  84. package/dist/definitions/themes/late-ocean/tooltip.d.ts +10 -0
  85. package/dist/definitions/themes/late-ocean/tooltip.d.ts.map +1 -0
  86. package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts +6 -8
  87. package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +1 -1
  88. package/dist/definitions/typography/Typography.d.ts +16 -4
  89. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  90. package/dist/definitions/typography/TypographyEmoji.d.ts +3 -4
  91. package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
  92. package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
  93. package/dist/definitions/typography/TypographyLink.d.ts +6 -9
  94. package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
  95. package/dist/definitions/useKittTheme.d.ts +8 -1
  96. package/dist/definitions/useKittTheme.d.ts.map +1 -1
  97. package/dist/definitions/utils/StyleWebWrapper.d.ts +7 -0
  98. package/dist/definitions/utils/StyleWebWrapper.d.ts.map +1 -0
  99. package/dist/definitions/utils/storybook/{decorators/KittThemeDecorator.d.ts → KittThemeDecorator.d.ts} +1 -1
  100. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -0
  101. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +2 -2
  102. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
  103. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts +1 -0
  104. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts.map +1 -1
  105. package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts.map +1 -1
  106. package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +2 -2
  107. package/dist/definitions/utils/withTheme.d.ts +7 -0
  108. package/dist/definitions/utils/withTheme.d.ts.map +1 -0
  109. package/dist/index-browser-all.es.android.js +1299 -622
  110. package/dist/index-browser-all.es.android.js.map +1 -1
  111. package/dist/index-browser-all.es.css +2 -0
  112. package/dist/index-browser-all.es.ios.js +1300 -623
  113. package/dist/index-browser-all.es.ios.js.map +1 -1
  114. package/dist/index-browser-all.es.js +1262 -696
  115. package/dist/index-browser-all.es.js.map +1 -1
  116. package/dist/index-browser-all.es.web.js +1113 -851
  117. package/dist/index-browser-all.es.web.js.map +1 -1
  118. package/dist/index-node-14.17.cjs.css +2 -0
  119. package/dist/index-node-14.17.cjs.js +1113 -598
  120. package/dist/index-node-14.17.cjs.js.map +1 -1
  121. package/dist/index-node-14.17.cjs.web.css +4 -0
  122. package/dist/index-node-14.17.cjs.web.js +2979 -0
  123. package/dist/index-node-14.17.cjs.web.js.map +1 -0
  124. package/dist/styles.css +4 -0
  125. package/dist/tsbuildinfo +1 -1
  126. package/package.json +16 -6
  127. package/translations/es-ES.json +3 -0
  128. package/translations/fr-FR.json +3 -0
  129. package/dist/definitions/primitives/PrimitiveImage.d.ts +0 -13
  130. package/dist/definitions/primitives/PrimitiveImage.d.ts.map +0 -1
  131. package/dist/definitions/primitives/PrimitiveImage.web.d.ts +0 -4
  132. package/dist/definitions/primitives/PrimitiveImage.web.d.ts.map +0 -1
  133. package/dist/definitions/primitives/PrimitiveLink.d.ts +0 -13
  134. package/dist/definitions/primitives/PrimitiveLink.d.ts.map +0 -1
  135. package/dist/definitions/primitives/PrimitiveLink.web.d.ts +0 -4
  136. package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +0 -1
  137. package/dist/definitions/primitives/PrimitivePressable.d.ts +0 -19
  138. package/dist/definitions/primitives/PrimitivePressable.d.ts.map +0 -1
  139. package/dist/definitions/primitives/PrimitivePressable.web.d.ts +0 -4
  140. package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +0 -1
  141. package/dist/definitions/primitives/PrimitiveScrollView.d.ts +0 -9
  142. package/dist/definitions/primitives/PrimitiveScrollView.d.ts.map +0 -1
  143. package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts +0 -4
  144. package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts.map +0 -1
  145. package/dist/definitions/primitives/PrimitiveText.d.ts +0 -14
  146. package/dist/definitions/primitives/PrimitiveText.d.ts.map +0 -1
  147. package/dist/definitions/primitives/PrimitiveText.web.d.ts +0 -6
  148. package/dist/definitions/primitives/PrimitiveText.web.d.ts.map +0 -1
  149. package/dist/definitions/primitives/PrimitiveView.d.ts +0 -24
  150. package/dist/definitions/primitives/PrimitiveView.d.ts.map +0 -1
  151. package/dist/definitions/primitives/PrimitiveView.web.d.ts +0 -27
  152. package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +0 -1
  153. package/dist/definitions/primitives/helpers.d.ts +0 -7
  154. package/dist/definitions/primitives/helpers.d.ts.map +0 -1
  155. package/dist/definitions/primitives/reset.d.ts +0 -2
  156. package/dist/definitions/primitives/reset.d.ts.map +0 -1
  157. package/dist/definitions/utils/storybook/decorators/KittThemeDecorator.d.ts.map +0 -1
  158. package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts +0 -2
  159. package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts.map +0 -1
  160. package/dist/definitions/utils/storybook/setup-global-decorators.d.ts +0 -2
  161. package/dist/definitions/utils/storybook/setup-global-decorators.d.ts.map +0 -1
@@ -1,21 +1,23 @@
1
- import _extends from '@babel/runtime/helpers/extends';
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import { UserIcon, EyeIcon, EyeOffIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
4
4
  export * from '@ornikar/kitt-icons';
5
- import React, { useRef, useEffect, useContext, createContext, useState, useMemo, forwardRef, Fragment } from 'react';
6
- import { View, Animated, Easing, Text as Text$1, Image, Pressable, Platform, Linking, TextInput, useWindowDimensions, ActivityIndicator, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
5
+ import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, TextInput, Pressable, ActivityIndicator, TouchableOpacity, View, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
7
6
  export { useWindowDimensions as useWindowSize } from 'react-native';
8
- import styled, { useTheme, css, ThemeProvider } from 'styled-components';
7
+ import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
8
+ import { useRef, useEffect, cloneElement, useContext, createContext, useState, useMemo, forwardRef, Fragment, Children } from 'react';
9
+ import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
9
10
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
10
11
  import { parse } from 'twemoji-parser';
11
12
  import { openBrowserAsync } from 'expo-web-browser';
12
- import { useSafeAreaInsets, SafeAreaProvider } from 'react-native-safe-area-context';
13
+ import _extends from '@babel/runtime/helpers/extends';
14
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
13
15
  import Animated$1, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
14
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
16
+ import DateTimePicker from '@react-native-community/datetimepicker';
17
+ import { FormattedMessage } from 'react-intl';
18
+ import { useFloating, offset, shift, flip } from '@floating-ui/react-native';
15
19
  import { makeDecorator } from '@storybook/addons';
16
20
 
17
- var PrimitiveView = View;
18
-
19
21
  function SpinningIcon(_ref) {
20
22
  var children = _ref.children;
21
23
  var animationRef = useRef(new Animated.Value(0));
@@ -38,18 +40,18 @@ function SpinningIcon(_ref) {
38
40
  return undefined;
39
41
  };
40
42
  }, []);
41
- return /*#__PURE__*/React.createElement(Animated.View, {
43
+ return /*#__PURE__*/jsx(Animated.View, {
42
44
  style: {
43
45
  transform: [{
44
46
  rotate: rotation
45
47
  }]
46
- }
47
- }, children);
48
+ },
49
+ children: children
50
+ });
48
51
  }
49
52
 
50
- var IconContainer$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
51
- displayName: "Icon__IconContainer",
52
- componentId: "kitt-universal__sc-usm0ol-0"
53
+ var IconContainer$2 = /*#__PURE__*/styled.View.withConfig({
54
+ displayName: "Icon__IconContainer"
53
55
  })(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
54
56
  var color = _ref.color;
55
57
  return color;
@@ -71,93 +73,172 @@ function Icon(_ref5) {
71
73
  spin = _ref5.spin,
72
74
  align = _ref5.align,
73
75
  color = _ref5.color;
74
- var clonedIcon = /*#__PURE__*/React.cloneElement(icon, {
76
+ var clonedIcon = /*#__PURE__*/cloneElement(icon, {
75
77
  color: color
76
78
  });
77
- return /*#__PURE__*/React.createElement(IconContainer$2, {
79
+ return /*#__PURE__*/jsx(IconContainer$2, {
78
80
  align: align,
79
81
  size: size,
80
- color: color
81
- }, spin ? /*#__PURE__*/React.createElement(SpinningIcon, null, clonedIcon) : clonedIcon);
82
+ color: color,
83
+ children: spin ? /*#__PURE__*/jsx(SpinningIcon, {
84
+ children: clonedIcon
85
+ }) : clonedIcon
86
+ });
82
87
  }
83
88
 
84
- var PrimitiveText = Text$1;
89
+ var KittBreakpoints = {
90
+ /**
91
+ * min-width: 0
92
+ */
93
+ BASE: 0,
94
+
95
+ /**
96
+ * min-width: 480px
97
+ */
98
+ SMALL: 480,
99
+
100
+ /**
101
+ * min-width: 768px
102
+ */
103
+ MEDIUM: 768,
104
+
105
+ /**
106
+ * min-width: 1024px
107
+ */
108
+ LARGE: 1024,
109
+
110
+ /**
111
+ * min-width: 1280px
112
+ */
113
+ WIDE: 1280
114
+ };
115
+ var KittBreakpointsMax = {
116
+ /**
117
+ * max-width: 479px
118
+ */
119
+ BASE: KittBreakpoints.SMALL - 1,
120
+
121
+ /**
122
+ * max-width: 767px
123
+ */
124
+ SMALL: KittBreakpoints.MEDIUM - 1,
125
+
126
+ /**
127
+ * max-width: 1023px
128
+ */
129
+ MEDIUM: KittBreakpoints.LARGE - 1,
130
+
131
+ /**
132
+ * max-width: 1279px
133
+ */
134
+ LARGE: KittBreakpoints.WIDE - 1
135
+ };
136
+
137
+ var _excluded$c = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
138
+
139
+ function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
85
140
 
86
- var _excluded$a = ["accessibilityRole", "base", "variant", "color"];
87
- var TypographyTypeContext = /*#__PURE__*/createContext(undefined);
141
+ function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
142
+ var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
88
143
  var TypographyColorContext = /*#__PURE__*/createContext('black');
89
144
  function useTypographyColor() {
90
145
  return useContext(TypographyColorContext);
91
146
  }
92
- var StyledTypography = /*#__PURE__*/styled(PrimitiveText).withConfig({
93
- displayName: "Typography__StyledTypography",
94
- componentId: "kitt-universal__sc-1dz700q-0"
147
+ var getTypographyTypeConfigKey = function (theme) {
148
+ var isMediumOrAbove = theme.responsive.matchWindowSize({
149
+ minWidth: KittBreakpoints.MEDIUM
150
+ });
151
+ return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
152
+ };
153
+
154
+ var isTypeHeader = function (type) {
155
+ return type.startsWith('header');
156
+ };
157
+
158
+ var isTypographyHeader = function (type, typographyIsHeaderInContext) {
159
+ if (type) return isTypeHeader(type);
160
+ if (typographyIsHeaderInContext != null) return typographyIsHeaderInContext;
161
+ throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
162
+ };
163
+ function getTypographyTypeConfig(type, theme) {
164
+ if (isTypographyHeader(type, undefined)) {
165
+ return theme.kitt.typography.types.headers.configs[type];
166
+ }
167
+
168
+ return theme.kitt.typography.types.bodies.configs[type];
169
+ }
170
+ var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
171
+ displayName: "Typography__StyledTypography"
95
172
  })(["", " ", ""], function (_ref) {
96
173
  var theme = _ref.theme,
97
- isHeader = _ref.isHeader,
98
- type = _ref.type,
99
- variant = _ref.variant;
174
+ $isHeader = _ref.$isHeader,
175
+ $typeForCurrentWindowSize = _ref.$typeForCurrentWindowSize,
176
+ $variant = _ref.$variant;
100
177
  var _theme$kitt$typograph = theme.kitt.typography.types,
101
178
  headers = _theme$kitt$typograph.headers,
102
179
  bodies = _theme$kitt$typograph.bodies;
103
- return "\n /* type */\n ".concat(!type ? '' : "\n font-family: ".concat(isHeader ? headers.fontFamily[variant] : bodies.fontFamily[variant], ";\n font-size: ").concat(isHeader ? headers.configs[type].baseAndSmall.fontSize : bodies.configs[type].baseAndSmall.fontSize, ";\n line-height: ").concat(isHeader ? headers.configs[type].baseAndSmall.lineHeight : bodies.configs[type].baseAndSmall.lineHeight, ";\n "), "\n\n /* variant */\n font-weight: ").concat(isHeader ? headers.fontWeight : bodies.fontWeight[variant], ";\n font-style: ").concat(isHeader ? headers.fontStyle : bodies.fontStyle[variant], ";\n ");
180
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
181
+ return "\n /* type */\n ".concat(!$typeForCurrentWindowSize ? '' : "\n font-family: ".concat($isHeader ? headers.fontFamily[$variant] : bodies.fontFamily[$variant], ";\n font-size: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize, ";\n line-height: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight, ";\n "), "\n\n /* variant */\n font-weight: ").concat($isHeader ? headers.fontWeight : bodies.fontWeight[$variant], ";\n font-style: ").concat($isHeader ? headers.fontStyle : bodies.fontStyle[$variant], ";\n ");
104
182
  }, function (_ref2) {
105
183
  var theme = _ref2.theme,
106
- color = _ref2.color;
107
- return !color ? '' : "\n color: ".concat(theme.kitt.typography.colors[color], ";\n text-decoration-color: ").concat(theme.kitt.typography.colors[color], ";\n ");
184
+ $color = _ref2.$color;
185
+ return !$color ? '' : "\n color: ".concat(theme.kitt.typography.colors[$color], ";\n text-decoration-color: ").concat(theme.kitt.typography.colors[$color], ";\n ");
108
186
  });
187
+ function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
188
+ var _useWindowDimensions = useWindowDimensions(),
189
+ width = _useWindowDimensions.width;
109
190
 
110
- var isTypeHeader = function (type) {
111
- return type.startsWith('header');
112
- };
113
-
114
- var isTypographyHeader = function (base, typeInContext) {
115
- if (base) return isTypeHeader(base);
116
- if (typeInContext) return isTypeHeader(typeInContext);
117
- throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
118
- };
119
-
191
+ if (large && width >= KittBreakpoints.LARGE) return large;
192
+ if (medium && width >= KittBreakpoints.MEDIUM) return medium;
193
+ if (small && width >= KittBreakpoints.SMALL) return small;
194
+ return base;
195
+ }
120
196
  function Typography(_ref3) {
121
197
  var accessibilityRole = _ref3.accessibilityRole,
122
198
  base = _ref3.base,
199
+ small = _ref3.small,
200
+ medium = _ref3.medium,
201
+ large = _ref3.large,
123
202
  variant = _ref3.variant,
124
203
  color = _ref3.color,
125
- otherProps = _objectWithoutProperties(_ref3, _excluded$a);
126
-
127
- var typeInContext = useContext(TypographyTypeContext);
128
- var isHeader = isTypographyHeader(base, typeInContext);
129
- var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
130
- var colorWithDefaultToBlack = color !== null && color !== void 0 ? color : typeInContext ? undefined : 'black';
131
- var content = base ?
132
- /*#__PURE__*/
133
- // use the type and pass the type to the context for children
134
- React.createElement(TypographyTypeContext.Provider, {
135
- value: base
136
- }, /*#__PURE__*/React.createElement(StyledTypography, _extends({
137
- color: colorWithDefaultToBlack,
138
- isHeader: isHeader,
139
- type: base,
140
- variant: nonNullableVariant,
141
- accessibilityRole: accessibilityRole || undefined
142
- }, otherProps))) : /*#__PURE__*/React.createElement(StyledTypography, _extends({
143
- color: colorWithDefaultToBlack,
144
- isHeader: isHeader,
145
- variant: nonNullableVariant,
204
+ otherProps = _objectWithoutProperties(_ref3, _excluded$c);
205
+
206
+ var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
207
+ var typeForCurrentWindowSize = useTypographyTypeForCurrentWindowSize(base, small, medium, large);
208
+ var isHeader = isTypographyHeader(typeForCurrentWindowSize, isHeaderTypographyInContext);
209
+ var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular'; // if isHeaderTypographyInContext exists, it means we are inside another typography so we don't want to
210
+ // redefine the color, just inherit from it
211
+
212
+ var colorWithDefaultToBlack = color !== null && color !== void 0 ? color : isHeaderTypographyInContext !== undefined ? undefined : 'black';
213
+ var content = base ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
214
+ value: isHeader,
215
+ children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
216
+ $color: colorWithDefaultToBlack,
217
+ $isHeader: isHeader,
218
+ $typeForCurrentWindowSize: typeForCurrentWindowSize,
219
+ $variant: nonNullableVariant,
220
+ accessibilityRole: accessibilityRole || undefined
221
+ }, otherProps))
222
+ }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
223
+ $color: colorWithDefaultToBlack,
224
+ $isHeader: isHeader,
225
+ $variant: nonNullableVariant,
146
226
  accessibilityRole: accessibilityRole || undefined
147
227
  }, otherProps));
148
- return color ? /*#__PURE__*/React.createElement(TypographyColorContext.Provider, {
149
- value: color
150
- }, content) : content;
228
+ return color ? /*#__PURE__*/jsx(TypographyColorContext.Provider, {
229
+ value: color,
230
+ children: content
231
+ }) : content;
151
232
  }
152
233
 
153
234
  function TypographyText(props) {
154
- return /*#__PURE__*/React.createElement(Typography, _extends({
235
+ return /*#__PURE__*/jsx(Typography, _objectSpread$i({
155
236
  accessibilityRole: null
156
237
  }, props));
157
238
  }
158
239
 
159
240
  function TypographyParagraph(props) {
160
- return /*#__PURE__*/React.createElement(Typography, _extends({
241
+ return /*#__PURE__*/jsx(Typography, _objectSpread$i({
161
242
  accessibilityRole: "paragraph"
162
243
  }, props));
163
244
  }
@@ -165,10 +246,10 @@ function TypographyParagraph(props) {
165
246
  var createHeading = function (level, defaultBase) {
166
247
  // https://github.com/necolas/react-native-web/issues/401
167
248
  function TypographyHeading(props) {
168
- return /*#__PURE__*/React.createElement(Typography, _extends({
249
+ return /*#__PURE__*/jsx(Typography, _objectSpread$i(_objectSpread$i({
169
250
  accessibilityRole: "header",
170
251
  base: defaultBase
171
- }, props, {
252
+ }, props), {}, {
172
253
  accessibilityLevel: level
173
254
  }));
174
255
  }
@@ -201,7 +282,11 @@ Typography.h4 = createHeading(4, 'header4');
201
282
 
202
283
  Typography.h5 = createHeading(5, 'header5');
203
284
 
204
- var _excluded$9 = ["size"];
285
+ var _excluded$b = ["size"];
286
+
287
+ function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
288
+
289
+ function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
205
290
 
206
291
  var getFirstCharacter = function (string) {
207
292
  return string ? string[0] : '';
@@ -211,9 +296,8 @@ var getInitials = function (firstname, lastname) {
211
296
  return (getFirstCharacter(firstname) + getFirstCharacter(lastname)).toUpperCase();
212
297
  };
213
298
 
214
- var StyledAvatarView = /*#__PURE__*/styled(PrimitiveView).withConfig({
215
- displayName: "Avatar__StyledAvatarView",
216
- componentId: "kitt-universal__sc-9miubv-0"
299
+ var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
300
+ displayName: "Avatar__StyledAvatarView"
217
301
  })(["border-radius:", "px;background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
218
302
  var round = _ref.round,
219
303
  size = _ref.size;
@@ -239,7 +323,7 @@ function AvatarContent(_ref5) {
239
323
  light = _ref5.light;
240
324
 
241
325
  if (src) {
242
- return /*#__PURE__*/React.createElement(Image, {
326
+ return /*#__PURE__*/jsx(Image, {
243
327
  source: {
244
328
  uri: src
245
329
  },
@@ -251,15 +335,16 @@ function AvatarContent(_ref5) {
251
335
  }
252
336
 
253
337
  if (firstname && lastname) {
254
- return /*#__PURE__*/React.createElement(Typography.Text, {
338
+ return /*#__PURE__*/jsx(Typography.Text, {
255
339
  base: "body-small",
256
340
  variant: "bold",
257
- color: light ? 'black' : 'white'
258
- }, getInitials(firstname, lastname));
341
+ color: light ? 'black' : 'white',
342
+ children: getInitials(firstname, lastname)
343
+ });
259
344
  }
260
345
 
261
- return /*#__PURE__*/React.createElement(Icon, {
262
- icon: /*#__PURE__*/React.createElement(UserIcon, null),
346
+ return /*#__PURE__*/jsx(Icon, {
347
+ icon: /*#__PURE__*/jsx(UserIcon, {}),
263
348
  color: light ? 'black' : 'white',
264
349
  size: size / 2
265
350
  });
@@ -268,32 +353,37 @@ function AvatarContent(_ref5) {
268
353
  function Avatar(_ref6) {
269
354
  var _ref6$size = _ref6.size,
270
355
  size = _ref6$size === void 0 ? 40 : _ref6$size,
271
- rest = _objectWithoutProperties(_ref6, _excluded$9);
356
+ rest = _objectWithoutProperties(_ref6, _excluded$b);
272
357
 
273
- return /*#__PURE__*/React.createElement(StyledAvatarView, _extends({}, rest, {
274
- size: size
275
- }), /*#__PURE__*/React.createElement(AvatarContent, _extends({}, rest, {
276
- size: size
277
- })));
358
+ return /*#__PURE__*/jsx(StyledAvatarView, _objectSpread$h(_objectSpread$h({}, rest), {}, {
359
+ size: size,
360
+ children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$h(_objectSpread$h({}, rest), {}, {
361
+ size: size
362
+ }))
363
+ }));
278
364
  }
279
365
 
280
- var _excluded$8 = ["color"],
366
+ var _excluded$a = ["color"],
281
367
  _excluded2$2 = ["color"];
282
368
 
369
+ function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
370
+
371
+ function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
372
+
283
373
  function TypographyIconInheritColor(props) {
284
374
  var color = useTypographyColor();
285
375
  var theme = /*#__PURE__*/useTheme();
286
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
376
+ return /*#__PURE__*/jsx(Icon, _objectSpread$g(_objectSpread$g({}, props), {}, {
287
377
  color: theme.kitt.typography.colors[color]
288
378
  }));
289
379
  }
290
380
 
291
381
  function TypographyIconSpecifiedColor(_ref) {
292
382
  var color = _ref.color,
293
- otherProps = _objectWithoutProperties(_ref, _excluded$8);
383
+ otherProps = _objectWithoutProperties(_ref, _excluded$a);
294
384
 
295
385
  var theme = /*#__PURE__*/useTheme();
296
- return /*#__PURE__*/React.createElement(Icon, _extends({}, otherProps, {
386
+ return /*#__PURE__*/jsx(Icon, _objectSpread$g(_objectSpread$g({}, otherProps), {}, {
297
387
  color: theme.kitt.typography.colors[color]
298
388
  }));
299
389
  }
@@ -303,14 +393,18 @@ function TypographyIcon(_ref2) {
303
393
  otherProps = _objectWithoutProperties(_ref2, _excluded2$2);
304
394
 
305
395
  if (color) {
306
- return /*#__PURE__*/React.createElement(TypographyIconSpecifiedColor, _extends({
396
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$g({
307
397
  color: color
308
398
  }, otherProps));
309
399
  }
310
400
 
311
- return /*#__PURE__*/React.createElement(TypographyIconInheritColor, otherProps);
401
+ return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$g({}, otherProps));
312
402
  }
313
403
 
404
+ function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
405
+
406
+ function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
407
+
314
408
  var getTextColorByType = function (type, isPressed, disabled) {
315
409
  if (disabled) return 'black-light';
316
410
 
@@ -331,20 +425,17 @@ var getTextColorByType = function (type, isPressed, disabled) {
331
425
  };
332
426
 
333
427
  var ButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
334
- displayName: "ButtonContent__ButtonText",
335
- componentId: "kitt-universal__sc-dnyw3n-0"
428
+ displayName: "ButtonContent__ButtonText"
336
429
  })(["text-align:center;"]);
337
- var Content$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
338
- displayName: "ButtonContent__Content",
339
- componentId: "kitt-universal__sc-dnyw3n-1"
430
+ var Content$1 = /*#__PURE__*/styled.View.withConfig({
431
+ displayName: "ButtonContent__Content"
340
432
  })(["flex-direction:row;align-items:center;justify-content:center;flex:", ";"], function (_ref) {
341
433
  var stretch = _ref.stretch,
342
434
  iconOnly = _ref.iconOnly;
343
435
  return "".concat(stretch || iconOnly ? 1 : 0, " 1 auto");
344
436
  });
345
- var IconContainer$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
346
- displayName: "ButtonContent__IconContainer",
347
- componentId: "kitt-universal__sc-dnyw3n-2"
437
+ var IconContainer$1 = /*#__PURE__*/styled.View.withConfig({
438
+ displayName: "ButtonContent__IconContainer"
348
439
  })(["", ""], function (_ref2) {
349
440
  var theme = _ref2.theme,
350
441
  iconPosition = _ref2.iconPosition;
@@ -364,15 +455,16 @@ function ButtonIcon(_ref3) {
364
455
  size = _ref3.size,
365
456
  iconPosition = _ref3.iconPosition,
366
457
  testID = _ref3.testID;
367
- return /*#__PURE__*/React.createElement(IconContainer$1, {
368
- iconPosition: iconPosition
369
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
370
- icon: icon,
371
- spin: spin,
372
- color: color,
373
- size: size,
374
- testID: testID
375
- }));
458
+ return /*#__PURE__*/jsx(IconContainer$1, {
459
+ iconPosition: iconPosition,
460
+ children: /*#__PURE__*/jsx(TypographyIcon, {
461
+ icon: icon,
462
+ spin: spin,
463
+ color: color,
464
+ size: size,
465
+ testID: testID
466
+ })
467
+ });
376
468
  }
377
469
 
378
470
  function ButtonContent(_ref4) {
@@ -399,35 +491,35 @@ function ButtonContent(_ref4) {
399
491
  }
400
492
 
401
493
  if (!children) {
402
- return /*#__PURE__*/React.createElement(Content$1, {
494
+ return /*#__PURE__*/jsx(Content$1, {
403
495
  iconOnly: true,
404
- stretch: stretch
405
- }, /*#__PURE__*/React.createElement(TypographyIcon, _extends({}, sharedIconProps, {
406
- icon: icon
407
- })));
496
+ stretch: stretch,
497
+ children: /*#__PURE__*/jsx(TypographyIcon, _objectSpread$f(_objectSpread$f({}, sharedIconProps), {}, {
498
+ icon: icon
499
+ }))
500
+ });
408
501
  }
409
502
 
410
- return /*#__PURE__*/React.createElement(Content$1, {
411
- stretch: stretch
412
- }, icon && iconPosition === 'left' ? /*#__PURE__*/React.createElement(ButtonIcon, _extends({}, sharedIconProps, {
413
- icon: icon,
414
- iconPosition: iconPosition,
415
- testID: "button-left-icon"
416
- })) : null, /*#__PURE__*/React.createElement(ButtonText, {
417
- base: "body",
418
- color: color,
419
- variant: "bold"
420
- }, children), icon && iconPosition === 'right' ? /*#__PURE__*/React.createElement(ButtonIcon, _extends({}, sharedIconProps, {
421
- icon: icon,
422
- iconPosition: iconPosition
423
- })) : null);
503
+ return /*#__PURE__*/jsxs(Content$1, {
504
+ stretch: stretch,
505
+ children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$f(_objectSpread$f({}, sharedIconProps), {}, {
506
+ icon: icon,
507
+ iconPosition: iconPosition,
508
+ testID: "button-left-icon"
509
+ })) : null, /*#__PURE__*/jsx(ButtonText, {
510
+ base: "body",
511
+ color: color,
512
+ variant: "bold",
513
+ children: children
514
+ }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$f(_objectSpread$f({}, sharedIconProps), {}, {
515
+ icon: icon,
516
+ iconPosition: iconPosition
517
+ })) : null]
518
+ });
424
519
  }
425
520
 
426
- var PrimitivePressable = Pressable;
427
-
428
- var ButtonPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
429
- displayName: "ButtonPressable",
430
- componentId: "kitt-universal__sc-7ckel6-0"
521
+ var ButtonPressable = /*#__PURE__*/styled.Pressable.withConfig({
522
+ displayName: "ButtonPressable"
431
523
  })(["min-width:", ";max-width:", ";width:", ";min-height:", ";background-color:", ";padding:", ";flex-direction:row;align-self:flex-start;border-radius:", ";border-color:", ";border-width:", ";"], function (_ref) {
432
524
  var theme = _ref.theme;
433
525
  return theme.kitt.button.minWidth;
@@ -468,6 +560,9 @@ var ButtonPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
468
560
  return theme.kitt.button.borderWidth;
469
561
  });
470
562
 
563
+ function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
564
+
565
+ function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
471
566
  function Button(_ref) {
472
567
  var children = _ref.children,
473
568
  _ref$type = _ref.type,
@@ -493,10 +588,10 @@ function Button(_ref) {
493
588
  stretch: stretch,
494
589
  disabled: disabled
495
590
  };
496
- return /*#__PURE__*/React.createElement(ButtonPressable // eslint-disable-next-line unicorn/expiring-todo-comments
591
+ return /*#__PURE__*/jsx(ButtonPressable // eslint-disable-next-line unicorn/expiring-todo-comments
497
592
  // TODO: When designs are defined, update with the proper onPress styles to mimic TouchableHighlight
498
593
  // underlayColor={globalTheme.button[type].pressedBackgroundColor}
499
- , _extends({}, sharedProps, {
594
+ , _objectSpread$e(_objectSpread$e({}, sharedProps), {}, {
500
595
  isPressed: isPressed,
501
596
  accessibilityRole: "button",
502
597
  testID: testID,
@@ -508,17 +603,18 @@ function Button(_ref) {
508
603
  },
509
604
  onPressOut: function handleButtonPressOut() {
510
605
  return setIsPressed(false);
511
- }
512
- }), /*#__PURE__*/React.createElement(ButtonContent, _extends({}, sharedProps, {
513
- icon: icon,
514
- iconPosition: iconPosition,
515
- iconSpin: iconSpin
516
- }), children));
606
+ },
607
+ children: /*#__PURE__*/jsx(ButtonContent, _objectSpread$e(_objectSpread$e({}, sharedProps), {}, {
608
+ icon: icon,
609
+ iconPosition: iconPosition,
610
+ iconSpin: iconSpin,
611
+ children: children
612
+ }))
613
+ }));
517
614
  }
518
615
 
519
- var Container$5 = /*#__PURE__*/styled(PrimitiveView).withConfig({
520
- displayName: "Card__Container",
521
- componentId: "kitt-universal__sc-1n9psug-0"
616
+ var Container$6 = /*#__PURE__*/styled.View.withConfig({
617
+ displayName: "Card__Container"
522
618
  })(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
523
619
  var theme = _ref.theme,
524
620
  type = _ref.type;
@@ -540,16 +636,14 @@ var Container$5 = /*#__PURE__*/styled(PrimitiveView).withConfig({
540
636
  function Card(_ref6) {
541
637
  var children = _ref6.children,
542
638
  type = _ref6.type;
543
- return /*#__PURE__*/React.createElement(Container$5, {
544
- type: type
545
- }, children);
639
+ return /*#__PURE__*/jsx(Container$6, {
640
+ type: type,
641
+ children: children
642
+ });
546
643
  }
547
644
 
548
- var PrimitiveImage = Image;
549
-
550
- var StyledEmoji = /*#__PURE__*/styled(PrimitiveImage).withConfig({
551
- displayName: "Emoji__StyledEmoji",
552
- componentId: "kitt-universal__sc-ggl6wj-0"
645
+ var StyledEmoji = /*#__PURE__*/styled.Image.withConfig({
646
+ displayName: "Emoji__StyledEmoji"
553
647
  })(["width:", "px;height:", "px;"], function (_ref) {
554
648
  var size = _ref.size;
555
649
  return size;
@@ -560,8 +654,7 @@ var StyledEmoji = /*#__PURE__*/styled(PrimitiveImage).withConfig({
560
654
  function Emoji(_ref3) {
561
655
  var emoji = _ref3.emoji,
562
656
  size = _ref3.size,
563
- style = _ref3.style,
564
- className = _ref3.className;
657
+ style = _ref3.style;
565
658
 
566
659
  var _useMemo = useMemo(function () {
567
660
  return parse(emoji, {
@@ -573,14 +666,13 @@ function Emoji(_ref3) {
573
666
  emojiData = _useMemo2[0];
574
667
 
575
668
  if (!emojiData) return null;
576
- return /*#__PURE__*/React.createElement(StyledEmoji, {
669
+ return /*#__PURE__*/jsx(StyledEmoji, {
577
670
  size: size,
578
671
  accessibilityLabel: emojiData.text,
579
672
  source: {
580
673
  uri: emojiData.url
581
674
  },
582
- style: style,
583
- className: className
675
+ style: style
584
676
  });
585
677
  }
586
678
 
@@ -589,16 +681,20 @@ var defaultOpenLinkBehavior = {
589
681
  web: 'targetBlank'
590
682
  };
591
683
 
592
- var _excluded$7 = ["as", "href", "openLinkBehavior", "onPress"];
684
+ var _excluded$9 = ["as", "href", "openLinkBehavior", "onPress"];
685
+
686
+ function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
687
+
688
+ function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
593
689
  function ExternalLink(_ref) {
594
690
  var Component = _ref.as,
595
691
  href = _ref.href,
596
692
  _ref$openLinkBehavior = _ref.openLinkBehavior,
597
693
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
598
694
  onPress = _ref.onPress,
599
- rest = _objectWithoutProperties(_ref, _excluded$7);
695
+ rest = _objectWithoutProperties(_ref, _excluded$9);
600
696
 
601
- return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
697
+ return /*#__PURE__*/jsx(Component, _objectSpread$d(_objectSpread$d({}, rest), {}, {
602
698
  onPress: function handleOnPress() {
603
699
  if (onPress) onPress();
604
700
  if (!href) return;
@@ -606,13 +702,13 @@ function ExternalLink(_ref) {
606
702
  switch (openLinkBehavior["native"]) {
607
703
  case 'openInModal':
608
704
  case undefined:
609
- Linking.openURL(href)["catch"](function (err) {
705
+ openBrowserAsync(href)["catch"](function (err) {
610
706
  console.error("An error occurred while opening ".concat(href), err);
611
707
  });
612
708
  break;
613
709
 
614
710
  case 'openBrowserApp':
615
- openBrowserAsync(href)["catch"](function (err) {
711
+ Linking.openURL(href)["catch"](function (err) {
616
712
  console.error("An error occurred while opening ".concat(href), err);
617
713
  });
618
714
  break;
@@ -641,84 +737,33 @@ function InputFeedback(_ref) {
641
737
  var state = _ref.state,
642
738
  testID = _ref.testID,
643
739
  children = _ref.children;
644
- return /*#__PURE__*/React.createElement(Typography.Text, {
740
+ return /*#__PURE__*/jsx(Typography.Text, {
645
741
  base: "body-small",
646
742
  color: getColorFromState(state),
647
- testID: testID
648
- }, children);
743
+ testID: testID,
744
+ children: children
745
+ });
649
746
  }
650
747
 
651
- var KittBreakpoints = {
652
- /**
653
- * min-width: 0
654
- */
655
- BASE: 0,
656
-
657
- /**
658
- * min-width: 480px
659
- */
660
- SMALL: 480,
661
-
662
- /**
663
- * min-width: 768px
664
- */
665
- MEDIUM: 768,
666
-
667
- /**
668
- * min-width: 1024px
669
- */
670
- LARGE: 1024,
671
-
672
- /**
673
- * min-width: 1280px
674
- */
675
- WIDE: 1280
676
- };
677
- var KittBreakpointsMax = {
678
- /**
679
- * max-width: 479px
680
- */
681
- BASE: KittBreakpoints.SMALL - 1,
682
-
683
- /**
684
- * max-width: 767px
685
- */
686
- SMALL: KittBreakpoints.MEDIUM - 1,
687
-
688
- /**
689
- * max-width: 1023px
690
- */
691
- MEDIUM: KittBreakpoints.LARGE - 1,
692
-
693
- /**
694
- * max-width: 1279px
695
- */
696
- LARGE: KittBreakpoints.WIDE - 1
697
- };
698
-
699
- var FieldContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
700
- displayName: "InputField__FieldContainer",
701
- componentId: "kitt-universal__sc-13fkixs-0"
748
+ var FieldContainer = /*#__PURE__*/styled.View.withConfig({
749
+ displayName: "InputField__FieldContainer"
702
750
  })(["padding:5px 0 10px;"]);
703
- var FeedbackContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
704
- displayName: "InputField__FeedbackContainer",
705
- componentId: "kitt-universal__sc-13fkixs-1"
751
+ var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
752
+ displayName: "InputField__FeedbackContainer"
706
753
  })(["", ";"], function (_ref) {
707
754
  var theme = _ref.theme;
708
755
  return theme.responsive.ifWindowSizeMatches({
709
756
  minWidth: KittBreakpoints.SMALL
710
757
  }, 'padding-top: 10px', 'padding-top: 5px');
711
758
  });
712
- var FieldLabelContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
713
- displayName: "InputField__FieldLabelContainer",
714
- componentId: "kitt-universal__sc-13fkixs-2"
759
+ var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
760
+ displayName: "InputField__FieldLabelContainer"
715
761
  })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
716
762
  var theme = _ref2.theme;
717
763
  return theme.kitt.forms.inputField.labelContainerPaddingBottom;
718
764
  });
719
- var LabelContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
720
- displayName: "InputField__LabelContainer",
721
- componentId: "kitt-universal__sc-13fkixs-3"
765
+ var LabelContainer = /*#__PURE__*/styled.View.withConfig({
766
+ displayName: "InputField__LabelContainer"
722
767
  })(["margin-right:", "px;"], function (_ref3) {
723
768
  var theme = _ref3.theme;
724
769
  return theme.kitt.forms.inputField.iconMarginLeft;
@@ -728,7 +773,15 @@ function InputField(_ref4) {
728
773
  labelFeedback = _ref4.labelFeedback,
729
774
  input = _ref4.input,
730
775
  feedback = _ref4.feedback;
731
- return /*#__PURE__*/React.createElement(FieldContainer, null, label ? /*#__PURE__*/React.createElement(FieldLabelContainer, null, /*#__PURE__*/React.createElement(LabelContainer, null, label), labelFeedback) : null, input, feedback ? /*#__PURE__*/React.createElement(FeedbackContainer, null, feedback) : null);
776
+ return /*#__PURE__*/jsxs(FieldContainer, {
777
+ children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
778
+ children: [/*#__PURE__*/jsx(LabelContainer, {
779
+ children: label
780
+ }), labelFeedback]
781
+ }) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
782
+ children: feedback
783
+ }) : null]
784
+ });
732
785
  }
733
786
 
734
787
  var useInputText = function () {
@@ -759,7 +812,11 @@ var useInputText = function () {
759
812
  };
760
813
  };
761
814
 
762
- var _excluded$6 = ["id", "minHeight", "type", "state", "internalForceState", "disabled", "onFocus", "onBlur"];
815
+ var _excluded$8 = ["id", "minHeight", "type", "state", "internalForceState", "disabled", "onFocus", "onBlur"];
816
+
817
+ function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
818
+
819
+ function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
763
820
  var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
764
821
  var theme = _ref.theme,
765
822
  state = _ref.state;
@@ -776,7 +833,8 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
776
833
  return theme.kitt.forms.input.states[state].borderColor;
777
834
  }, function (_ref5) {
778
835
  var theme = _ref5.theme;
779
- return theme.kitt.typography.types.bodies.configs.body.baseAndSmall.fontSize;
836
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
837
+ return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
780
838
  }, function (_ref6) {
781
839
  var theme = _ref6.theme,
782
840
  state = _ref6.state;
@@ -786,8 +844,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
786
844
  return theme.kitt.typography.types.bodies.fontFamily.regular;
787
845
  });
788
846
  var Input = /*#__PURE__*/styled(TextInput).withConfig({
789
- displayName: "InputText__Input",
790
- componentId: "kitt-universal__sc-uke279-0"
847
+ displayName: "InputText__Input"
791
848
  })(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
792
849
  var theme = _ref8.theme,
793
850
  multiline = _ref8.multiline;
@@ -795,14 +852,15 @@ var Input = /*#__PURE__*/styled(TextInput).withConfig({
795
852
  }, function (_ref9) {
796
853
  var theme = _ref9.theme,
797
854
  multiline = _ref9.multiline;
798
- return !multiline && Platform.OS === 'ios' ? 0 : theme.kitt.typography.types.bodies.configs.body.baseAndSmall.lineHeight;
855
+ if (!multiline && Platform.OS === 'ios') return 0;
856
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
857
+ return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
799
858
  }, function (_ref10) {
800
859
  var minHeight = _ref10.minHeight;
801
860
  return minHeight;
802
861
  });
803
- var Container$4 = /*#__PURE__*/styled(PrimitiveView).withConfig({
804
- displayName: "InputText__Container",
805
- componentId: "kitt-universal__sc-uke279-1"
862
+ var Container$5 = /*#__PURE__*/styled.View.withConfig({
863
+ displayName: "InputText__Container"
806
864
  })(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
807
865
  var theme = _ref11.theme;
808
866
  return theme.kitt.forms.input.marginTop;
@@ -810,9 +868,8 @@ var Container$4 = /*#__PURE__*/styled(PrimitiveView).withConfig({
810
868
  var theme = _ref12.theme;
811
869
  return theme.kitt.forms.input.marginBottom;
812
870
  });
813
- var PasswordButtonContainer = /*#__PURE__*/styled(PrimitivePressable).withConfig({
814
- displayName: "InputText__PasswordButtonContainer",
815
- componentId: "kitt-universal__sc-uke279-2"
871
+ var PasswordButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
872
+ displayName: "InputText__PasswordButtonContainer"
816
873
  })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
817
874
  var theme = _ref13.theme;
818
875
  return theme.kitt.forms.input.passwordButtonIconSize / 2;
@@ -863,7 +920,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
863
920
  disabled = _ref15$disabled === void 0 ? false : _ref15$disabled,
864
921
  _onFocus = _ref15.onFocus,
865
922
  _onBlur = _ref15.onBlur,
866
- props = _objectWithoutProperties(_ref15, _excluded$6);
923
+ props = _objectWithoutProperties(_ref15, _excluded$8);
867
924
 
868
925
  var _useInputText = useInputText(),
869
926
  isFocused = _useInputText.isFocused,
@@ -878,51 +935,55 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
878
935
  isDisabled: disabled,
879
936
  formState: formState
880
937
  });
881
- return /*#__PURE__*/React.createElement(Container$4, null, /*#__PURE__*/React.createElement(Input, _extends({
882
- ref: ref,
883
- nativeID: id,
884
- editable: !disabled,
885
- keyboardType: keyboardTypeByTextInputType[type],
886
- autoCompleteType: autoCompleteTypeByType[type],
887
- autoCorrect: autoCorrectByType[type],
888
- minHeight: minHeight,
889
- textContentType: textContentTypeByType[type],
890
- placeholderTextColor: theme.kitt.typography.colors[theme.kitt.forms.input.placeholderColor],
891
- selectionColor: theme.kitt.forms.input.selectionColor,
892
- secureTextEntry: type === 'password' && !isPasswordVisible
893
- }, props, {
894
- state: state,
895
- onFocus: function onFocus(e) {
896
- handleInputFocus();
897
- if (_onFocus) _onFocus(e);
898
- },
899
- onBlur: function onBlur(e) {
900
- handleInputBlur();
901
- if (_onBlur) _onBlur(e);
902
- }
903
- })), type === 'password' && !disabled && /*#__PURE__*/React.createElement(PasswordButtonContainer, {
904
- accessibilityRole: "button",
905
- onPress: togglePasswordVisibility
906
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
907
- icon: isPasswordVisible ? /*#__PURE__*/React.createElement(EyeIcon, null) : /*#__PURE__*/React.createElement(EyeOffIcon, null),
908
- size: theme.kitt.forms.input.passwordButtonIconSize,
909
- color: theme.kitt.forms.input.states[state].passwordButtonIconColor
910
- })));
938
+ return /*#__PURE__*/jsxs(Container$5, {
939
+ children: [/*#__PURE__*/jsx(Input, _objectSpread$c(_objectSpread$c({
940
+ ref: ref,
941
+ nativeID: id,
942
+ editable: !disabled,
943
+ keyboardType: keyboardTypeByTextInputType[type],
944
+ autoCompleteType: autoCompleteTypeByType[type],
945
+ autoCorrect: autoCorrectByType[type],
946
+ minHeight: minHeight,
947
+ textContentType: textContentTypeByType[type],
948
+ placeholderTextColor: theme.kitt.typography.colors[theme.kitt.forms.input.placeholderColor],
949
+ selectionColor: theme.kitt.forms.input.selectionColor,
950
+ secureTextEntry: type === 'password' && !isPasswordVisible
951
+ }, props), {}, {
952
+ state: state,
953
+ onFocus: function onFocus(e) {
954
+ handleInputFocus();
955
+ if (_onFocus) _onFocus(e);
956
+ },
957
+ onBlur: function onBlur(e) {
958
+ handleInputBlur();
959
+ if (_onBlur) _onBlur(e);
960
+ }
961
+ })), type === 'password' && !disabled && /*#__PURE__*/jsx(PasswordButtonContainer, {
962
+ accessibilityRole: "button",
963
+ onPress: togglePasswordVisibility,
964
+ children: /*#__PURE__*/jsx(TypographyIcon, {
965
+ icon: isPasswordVisible ? /*#__PURE__*/jsx(EyeIcon, {}) : /*#__PURE__*/jsx(EyeOffIcon, {}),
966
+ size: theme.kitt.forms.input.passwordButtonIconSize,
967
+ color: theme.kitt.forms.input.states[state].passwordButtonIconColor
968
+ })
969
+ })]
970
+ });
911
971
  });
912
972
 
913
973
  function Label(_ref) {
914
974
  var htmlFor = _ref.htmlFor,
915
975
  children = _ref.children;
916
- return /*#__PURE__*/React.createElement(Typography.Text, {
917
- base: "body"
918
- }, Platform.OS === 'web' ? /*#__PURE__*/React.createElement("label", {
919
- htmlFor: htmlFor
920
- }, children) : children);
976
+ return /*#__PURE__*/jsx(Typography.Text, {
977
+ base: "body",
978
+ children: Platform.OS === 'web' ? /*#__PURE__*/jsx("label", {
979
+ htmlFor: htmlFor,
980
+ children: children
981
+ }) : children
982
+ });
921
983
  }
922
984
 
923
- var OuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
924
- displayName: "Radio__OuterRadio",
925
- componentId: "kitt-universal__sc-1mdgr2o-0"
985
+ var OuterRadio = /*#__PURE__*/styled.View.withConfig({
986
+ displayName: "Radio__OuterRadio"
926
987
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
927
988
  var theme = _ref.theme,
928
989
  disabled = _ref.disabled;
@@ -944,9 +1005,8 @@ var OuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
944
1005
  disabled = _ref6.disabled;
945
1006
  return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
946
1007
  });
947
- var SelectedOuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
948
- displayName: "Radio__SelectedOuterRadio",
949
- componentId: "kitt-universal__sc-1mdgr2o-1"
1008
+ var SelectedOuterRadio = /*#__PURE__*/styled.View.withConfig({
1009
+ displayName: "Radio__SelectedOuterRadio"
950
1010
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
951
1011
  var theme = _ref7.theme;
952
1012
  return theme.kitt.forms.radio.checked.backgroundColor;
@@ -960,9 +1020,8 @@ var SelectedOuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
960
1020
  var theme = _ref10.theme;
961
1021
  return theme.kitt.forms.radio.size / 2;
962
1022
  });
963
- var SelectedInnerRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
964
- displayName: "Radio__SelectedInnerRadio",
965
- componentId: "kitt-universal__sc-1mdgr2o-2"
1023
+ var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
1024
+ displayName: "Radio__SelectedInnerRadio"
966
1025
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
967
1026
  var theme = _ref11.theme;
968
1027
  return theme.kitt.forms.radio.checked.innerBackgroundColor;
@@ -976,13 +1035,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
976
1035
  var theme = _ref14.theme;
977
1036
  return theme.kitt.forms.radio.checked.innerSize / 2;
978
1037
  });
979
- var Container$3 = /*#__PURE__*/styled(PrimitivePressable).withConfig({
980
- displayName: "Radio__Container",
981
- componentId: "kitt-universal__sc-1mdgr2o-3"
1038
+ var Container$4 = /*#__PURE__*/styled.Pressable.withConfig({
1039
+ displayName: "Radio__Container"
982
1040
  })(["flex-direction:row;align-items:center;"]);
983
1041
  var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
984
- displayName: "Radio__Text",
985
- componentId: "kitt-universal__sc-1mdgr2o-4"
1042
+ displayName: "Radio__Text"
986
1043
  })(["margin-left:", "px;"], function (_ref15) {
987
1044
  var theme = _ref15.theme;
988
1045
  return theme.kitt.spacing * 2;
@@ -995,7 +1052,7 @@ function Radio(_ref16) {
995
1052
  _ref16$disabled = _ref16.disabled,
996
1053
  disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
997
1054
  children = _ref16.children;
998
- return /*#__PURE__*/React.createElement(Container$3, {
1055
+ return /*#__PURE__*/jsxs(Container$4, {
999
1056
  nativeID: id,
1000
1057
  disabled: disabled,
1001
1058
  accessibilityRole: "radio",
@@ -1003,30 +1060,36 @@ function Radio(_ref16) {
1003
1060
  focusable: checked && !disabled,
1004
1061
  onPress: function handlePress() {
1005
1062
  onChange(value);
1006
- }
1007
- }, checked && !disabled ? /*#__PURE__*/React.createElement(SelectedOuterRadio, null, /*#__PURE__*/React.createElement(SelectedInnerRadio, null)) : /*#__PURE__*/React.createElement(OuterRadio, {
1008
- disabled: disabled
1009
- }), /*#__PURE__*/React.createElement(Text, {
1010
- base: "body",
1011
- color: disabled ? 'black-light' : 'black'
1012
- }, children));
1063
+ },
1064
+ children: [checked && !disabled ? /*#__PURE__*/jsx(SelectedOuterRadio, {
1065
+ children: /*#__PURE__*/jsx(SelectedInnerRadio, {})
1066
+ }) : /*#__PURE__*/jsx(OuterRadio, {
1067
+ disabled: disabled
1068
+ }), /*#__PURE__*/jsx(Text, {
1069
+ base: "body",
1070
+ color: disabled ? 'black-light' : 'black',
1071
+ children: children
1072
+ })]
1073
+ });
1013
1074
  }
1014
1075
 
1076
+ function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1077
+
1078
+ function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1015
1079
  function TextArea(_ref) {
1016
1080
  var props = _extends({}, _ref);
1017
1081
 
1018
1082
  var theme = /*#__PURE__*/useTheme();
1019
- return /*#__PURE__*/React.createElement(InputText, _extends({
1083
+ return /*#__PURE__*/jsx(InputText, _objectSpread$b(_objectSpread$b({
1020
1084
  multiline: true
1021
- }, props, {
1085
+ }, props), {}, {
1022
1086
  type: "text",
1023
1087
  minHeight: theme.kitt.forms.input.textAreaMinHeight
1024
1088
  }));
1025
1089
  }
1026
1090
 
1027
- var Body = /*#__PURE__*/styled(PrimitiveView).withConfig({
1028
- displayName: "Body",
1029
- componentId: "kitt-universal__sc-1ofncfn-0"
1091
+ var Body = /*#__PURE__*/styled.View.withConfig({
1092
+ displayName: "Body"
1030
1093
  })(["", " background-color:", ";flex:1;"], function (_ref) {
1031
1094
  var theme = _ref.theme;
1032
1095
  return theme.responsive.ifWindowSizeMatches({
@@ -1038,12 +1101,13 @@ var Body = /*#__PURE__*/styled(PrimitiveView).withConfig({
1038
1101
  });
1039
1102
  function FullScreenModalBody(_ref3) {
1040
1103
  var children = _ref3.children;
1041
- return /*#__PURE__*/React.createElement(Body, null, children);
1104
+ return /*#__PURE__*/jsx(Body, {
1105
+ children: children
1106
+ });
1042
1107
  }
1043
1108
 
1044
- var SideContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1045
- displayName: "Header__SideContainer",
1046
- componentId: "kitt-universal__sc-dfmxi1-0"
1109
+ var SideContainer = /*#__PURE__*/styled.View.withConfig({
1110
+ displayName: "Header__SideContainer"
1047
1111
  })(["", ""], function (_ref) {
1048
1112
  var theme = _ref.theme,
1049
1113
  _ref$side = _ref.side,
@@ -1061,9 +1125,8 @@ function getHeaderHorizontalMediumPadding(spacing) {
1061
1125
  return spacing * 6;
1062
1126
  }
1063
1127
 
1064
- var Header = /*#__PURE__*/styled(PrimitiveView).withConfig({
1065
- displayName: "Header",
1066
- componentId: "kitt-universal__sc-dfmxi1-1"
1128
+ var Header = /*#__PURE__*/styled.View.withConfig({
1129
+ displayName: "Header"
1067
1130
  })(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
1068
1131
  var theme = _ref2.theme,
1069
1132
  _ref2$insetTop = _ref2.insetTop,
@@ -1079,9 +1142,8 @@ var Header = /*#__PURE__*/styled(PrimitiveView).withConfig({
1079
1142
  var theme = _ref3.theme;
1080
1143
  return theme.kitt.fullScreenModal.header.borderColor;
1081
1144
  });
1082
- var HeaderContent = /*#__PURE__*/styled(PrimitiveView).withConfig({
1083
- displayName: "Header__HeaderContent",
1084
- componentId: "kitt-universal__sc-dfmxi1-2"
1145
+ var HeaderContent = /*#__PURE__*/styled.View.withConfig({
1146
+ displayName: "Header__HeaderContent"
1085
1147
  })(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
1086
1148
  var theme = _ref4.theme,
1087
1149
  leftWidth = _ref4.leftWidth,
@@ -1147,73 +1209,159 @@ function FullScreenModalHeader(_ref6) {
1147
1209
  setRightWidth(event.nativeEvent.layout.width);
1148
1210
  };
1149
1211
 
1150
- return /*#__PURE__*/React.createElement(Header, {
1151
- insetTop: Platform.OS === 'ios' ? undefined : top
1152
- }, left ? /*#__PURE__*/React.createElement(SideContainer, {
1153
- onLayout: function onLayout(e) {
1154
- return handleLayoutChange(e, 'left');
1155
- }
1156
- }, left) : null, /*#__PURE__*/React.createElement(HeaderContent, {
1157
- windowWidth: dimensions.width,
1158
- leftWidth: leftWidth,
1159
- rightWidth: rightWidth
1160
- }, children), right ? /*#__PURE__*/React.createElement(SideContainer, {
1161
- side: "right",
1162
- onLayout: function onLayout(e) {
1163
- return handleLayoutChange(e, 'right');
1164
- }
1165
- }, right) : null);
1212
+ return /*#__PURE__*/jsxs(Header, {
1213
+ insetTop: Platform.OS === 'ios' ? undefined : top,
1214
+ children: [left ? /*#__PURE__*/jsx(SideContainer, {
1215
+ onLayout: function onLayout(e) {
1216
+ return handleLayoutChange(e, 'left');
1217
+ },
1218
+ children: left
1219
+ }) : null, /*#__PURE__*/jsx(HeaderContent, {
1220
+ windowWidth: dimensions.width,
1221
+ leftWidth: leftWidth,
1222
+ rightWidth: rightWidth,
1223
+ children: children
1224
+ }), right ? /*#__PURE__*/jsx(SideContainer, {
1225
+ side: "right",
1226
+ onLayout: function onLayout(e) {
1227
+ return handleLayoutChange(e, 'right');
1228
+ },
1229
+ children: right
1230
+ }) : null]
1231
+ });
1166
1232
  }
1167
1233
 
1168
- var Container$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1169
- displayName: "FullScreenModal__Container",
1170
- componentId: "kitt-universal__sc-11qpbe3-0"
1234
+ var Container$3 = /*#__PURE__*/styled.View.withConfig({
1235
+ displayName: "FullScreenModal__Container"
1171
1236
  })(["flex:1;background-color:", ";"], function (_ref) {
1172
1237
  var theme = _ref.theme;
1173
1238
  return theme.kitt.colors.uiBackground;
1174
1239
  });
1175
1240
  function FullScreenModal(_ref2) {
1176
1241
  var children = _ref2.children;
1177
- return /*#__PURE__*/React.createElement(Container$2, null, children);
1242
+ return /*#__PURE__*/jsx(Container$3, {
1243
+ children: children
1244
+ });
1178
1245
  }
1179
1246
  FullScreenModal.Header = FullScreenModalHeader;
1180
1247
  FullScreenModal.Body = FullScreenModalBody;
1181
1248
 
1182
- var PressableIconButton = /*#__PURE__*/styled(PrimitivePressable).withConfig({
1183
- displayName: "PressableIconButton",
1184
- componentId: "kitt-universal__sc-1m6jo3s-0"
1185
- })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref) {
1186
- var theme = _ref.theme;
1249
+ var _excluded$7 = ["as", "children"];
1250
+
1251
+ function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1252
+
1253
+ function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1254
+ function StyleWebWrapper(_ref) {
1255
+ var as = _ref.as,
1256
+ children = _ref.children,
1257
+ props = _objectWithoutProperties(_ref, _excluded$7);
1258
+
1259
+ if (Platform.OS !== 'web') return children;
1260
+ // as or default to div. If as is undefined, T is div but typescript is not sure
1261
+ return /*#__PURE__*/jsx(as || 'div', _objectSpread$a(_objectSpread$a({}, props), {}, {
1262
+ children: children
1263
+ }));
1264
+ }
1265
+
1266
+ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1267
+
1268
+ function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1269
+ // type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
1270
+ // type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
1271
+ // export function withTheme<Props extends { theme: DefaultTheme }, C>(
1272
+ // WrappedComponent: ComponentType<Props> & C,
1273
+ // ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
1274
+ // return function ThemedComponent(props) {
1275
+ // const theme = useTheme();
1276
+ // return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
1277
+ // };
1278
+ // }
1279
+ function withTheme( // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
1280
+ WrappedComponent) {
1281
+ return function (props) {
1282
+ var theme = /*#__PURE__*/useTheme();
1283
+ return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$9({
1284
+ theme: theme
1285
+ }, props));
1286
+ };
1287
+ }
1288
+
1289
+ var _excluded$6 = ["color"];
1290
+
1291
+ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1292
+
1293
+ function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1294
+ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styledLinaria("div")({
1295
+ name: "PressableIconButtonWebWrapper",
1296
+ "class": "p1nlccvg",
1297
+ vars: {
1298
+ "p1nlccvg-0": [function (_ref) {
1299
+ var theme = _ref.theme;
1300
+ return theme.kitt.iconButton.scale.base.hover;
1301
+ }],
1302
+ "p1nlccvg-1": [function (_ref2) {
1303
+ var theme = _ref2.theme;
1304
+ return theme.breakpoints.min.mediumBreakpoint;
1305
+ }],
1306
+ "p1nlccvg-2": [function (_ref3) {
1307
+ var theme = _ref3.theme;
1308
+ return theme.kitt.iconButton.scale.medium.hover;
1309
+ }],
1310
+ "p1nlccvg-3": [function (_ref4) {
1311
+ var theme = _ref4.theme;
1312
+ return theme.kitt.iconButton.scale.base.active;
1313
+ }],
1314
+ "p1nlccvg-4": [function (_ref5) {
1315
+ var theme = _ref5.theme;
1316
+ return theme.kitt.iconButton["default"].pressedBackgroundColor;
1317
+ }],
1318
+ "p1nlccvg-5": [function (_ref6) {
1319
+ var theme = _ref6.theme;
1320
+ return theme.kitt.iconButton.white.pressedBackgroundColor;
1321
+ }]
1322
+ }
1323
+ }));
1324
+ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1325
+ displayName: "PressableIconButton__StyledPressableIconButton"
1326
+ })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref7) {
1327
+ var theme = _ref7.theme;
1187
1328
  return theme.kitt.iconButton.borderRadius;
1188
- }, function (_ref2) {
1189
- var theme = _ref2.theme;
1329
+ }, function (_ref8) {
1330
+ var theme = _ref8.theme;
1190
1331
  return theme.kitt.iconButton.width;
1191
- }, function (_ref3) {
1192
- var theme = _ref3.theme;
1332
+ }, function (_ref9) {
1333
+ var theme = _ref9.theme;
1193
1334
  return theme.kitt.iconButton.height;
1194
- }, function (_ref4) {
1195
- var theme = _ref4.theme,
1196
- color = _ref4.color,
1197
- disabled = _ref4.disabled;
1335
+ }, function (_ref10) {
1336
+ var theme = _ref10.theme,
1337
+ disabled = _ref10.disabled;
1198
1338
  var iconButton = theme.kitt.iconButton;
1199
1339
 
1200
1340
  if (Platform.OS !== 'web') {
1201
1341
  return undefined;
1202
1342
  }
1203
1343
 
1204
- var transition = iconButton.transition,
1205
- scale = iconButton.scale;
1344
+ var transition = iconButton.transition;
1206
1345
 
1207
1346
  if (disabled) {
1208
1347
  return "\n background-color: ".concat(iconButton.disabled.backgroundColor, ";\n ");
1209
1348
  }
1210
1349
 
1211
- return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n\n &:hover,\n .kitt-hover & {\n @media (hover: none) and (pointer: coarse) {\n transform: scale(").concat(scale.base.hover, ");\n }\n\n @media(").concat(theme.breakpoints.min.mediumBreakpoint, ") {\n transform: scale(").concat(scale.medium.hover, ");\n }\n }\n\n &:active,\n .kitt-active & {\n transform: scale(").concat(scale.base.active, ");\n }\n\n &:hover,\n .kitt-hover &,\n &:focus,\n .kitt-focus &,\n &:active,\n .kitt-active & {\n background-color: ").concat(color === 'white' ? iconButton.white.pressedBackgroundColor : iconButton["default"].pressedBackgroundColor, ";\n }\n ");
1350
+ return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n ");
1212
1351
  });
1352
+ function PressableIconButton(_ref11) {
1353
+ var color = _ref11.color,
1354
+ props = _objectWithoutProperties(_ref11, _excluded$6);
1355
+
1356
+ return /*#__PURE__*/jsx(StyleWebWrapper, {
1357
+ as: PressableIconButtonWebWrapper,
1358
+ "data-color-white": color === 'white' ? true : undefined,
1359
+ children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$8({}, props))
1360
+ });
1361
+ }
1213
1362
 
1214
1363
  var AnimatedIconButtonBackground = /*#__PURE__*/styled(Animated$1.View).withConfig({
1215
- displayName: "PressableAnimatedContainer__AnimatedIconButtonBackground",
1216
- componentId: "kitt-universal__sc-xl9ll5-0"
1364
+ displayName: "PressableAnimatedContainer__AnimatedIconButtonBackground"
1217
1365
  })(["background-color:", ";border-radius:", "px;width:", "px;height:", "px;position:absolute;bottom:0;left:0;"], function (_ref) {
1218
1366
  var theme = _ref.theme,
1219
1367
  color = _ref.color,
@@ -1233,8 +1381,7 @@ var AnimatedIconButtonBackground = /*#__PURE__*/styled(Animated$1.View).withConf
1233
1381
  return theme.kitt.iconButton.height;
1234
1382
  });
1235
1383
  var AnimatedViewContainer = /*#__PURE__*/styled(Animated$1.View).withConfig({
1236
- displayName: "PressableAnimatedContainer__AnimatedViewContainer",
1237
- componentId: "kitt-universal__sc-xl9ll5-1"
1384
+ displayName: "PressableAnimatedContainer__AnimatedViewContainer"
1238
1385
  })(["position:relative;align-items:center;justify-content:center;width:100%;height:100%;"]);
1239
1386
  function PressableAnimatedContainer(_ref5) {
1240
1387
  var disabled = _ref5.disabled,
@@ -1257,7 +1404,7 @@ function PressableAnimatedContainer(_ref5) {
1257
1404
  };
1258
1405
  _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
1259
1406
  _f.__workletHash = 10645190329247;
1260
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (55:41)";
1407
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (54:41)";
1261
1408
  _f.__optimalization = 2;
1262
1409
 
1263
1410
  global.__reanimatedWorkletInit(_f);
@@ -1291,14 +1438,14 @@ function PressableAnimatedContainer(_ref5) {
1291
1438
  };
1292
1439
  _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)}]};}}";
1293
1440
  _f.__workletHash = 13861998831411;
1294
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (61:39)";
1441
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (60:39)";
1295
1442
  _f.__optimalization = 2;
1296
1443
 
1297
1444
  global.__reanimatedWorkletInit(_f);
1298
1445
 
1299
1446
  return _f;
1300
1447
  }());
1301
- return /*#__PURE__*/React.createElement(PressableIconButton, {
1448
+ return /*#__PURE__*/jsx(PressableIconButton, {
1302
1449
  accessibilityRole: "button",
1303
1450
  disabled: disabled,
1304
1451
  color: color,
@@ -1308,25 +1455,26 @@ function PressableAnimatedContainer(_ref5) {
1308
1455
  },
1309
1456
  onPressOut: function onPressOut() {
1310
1457
  pressed.value = false;
1311
- }
1312
- }, /*#__PURE__*/React.createElement(AnimatedViewContainer, {
1313
- style: disabled ? [{
1314
- transform: [{
1315
- scale: 1
1316
- }]
1317
- }] : [scaleStyles]
1318
- }, /*#__PURE__*/React.createElement(AnimatedIconButtonBackground, {
1319
- disabled: disabled,
1320
- color: color,
1321
- style: disabled ? [{
1322
- opacity: 1
1323
- }] : [opacityStyles]
1324
- }), children));
1458
+ },
1459
+ children: /*#__PURE__*/jsxs(AnimatedViewContainer, {
1460
+ style: disabled ? [{
1461
+ transform: [{
1462
+ scale: 1
1463
+ }]
1464
+ }] : [scaleStyles],
1465
+ children: [/*#__PURE__*/jsx(AnimatedIconButtonBackground, {
1466
+ disabled: disabled,
1467
+ color: color,
1468
+ style: disabled ? [{
1469
+ opacity: 1
1470
+ }] : [opacityStyles]
1471
+ }), children]
1472
+ })
1473
+ });
1325
1474
  }
1326
1475
 
1327
- var IconButtonContentBorder = /*#__PURE__*/styled(PrimitiveView).withConfig({
1328
- displayName: "IconButton__IconButtonContentBorder",
1329
- componentId: "kitt-universal__sc-swelbf-0"
1476
+ var IconButtonContentBorder = /*#__PURE__*/styled.View.withConfig({
1477
+ displayName: "IconButton__IconButtonContentBorder"
1330
1478
  })(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
1331
1479
  var theme = _ref.theme;
1332
1480
  return "".concat(theme.kitt.iconButton.borderWidth, "px solid");
@@ -1349,12 +1497,13 @@ function IconButtonContent(_ref6) {
1349
1497
  var disabled = _ref6.disabled,
1350
1498
  color = _ref6.color,
1351
1499
  icon = _ref6.icon;
1352
- return /*#__PURE__*/React.createElement(IconButtonContentBorder, {
1353
- disabled: disabled
1354
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
1355
- color: disabled ? 'black-light' : color,
1356
- icon: icon
1357
- }));
1500
+ return /*#__PURE__*/jsx(IconButtonContentBorder, {
1501
+ disabled: disabled,
1502
+ children: /*#__PURE__*/jsx(TypographyIcon, {
1503
+ color: disabled ? 'black-light' : color,
1504
+ icon: icon
1505
+ })
1506
+ });
1358
1507
  }
1359
1508
 
1360
1509
  function IconButton(_ref7) {
@@ -1362,34 +1511,43 @@ function IconButton(_ref7) {
1362
1511
  color = _ref7.color,
1363
1512
  disabled = _ref7.disabled,
1364
1513
  onPress = _ref7.onPress;
1365
- return /*#__PURE__*/React.createElement(PressableAnimatedContainer, {
1514
+ return /*#__PURE__*/jsx(PressableAnimatedContainer, {
1366
1515
  color: color,
1367
1516
  disabled: disabled,
1368
- onPress: onPress
1369
- }, /*#__PURE__*/React.createElement(IconButtonContent, {
1370
- disabled: disabled,
1371
- color: color,
1372
- icon: icon
1373
- }));
1517
+ onPress: onPress,
1518
+ children: /*#__PURE__*/jsx(IconButtonContent, {
1519
+ disabled: disabled,
1520
+ color: color,
1521
+ icon: icon
1522
+ })
1523
+ });
1374
1524
  }
1375
1525
 
1376
1526
  var _excluded$5 = ["children"];
1377
- var ContentView$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1378
- displayName: "ListItemContent__ContentView",
1379
- componentId: "kitt-universal__sc-57q0u9-0"
1527
+
1528
+ function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1529
+
1530
+ function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1531
+ var ContentView$1 = /*#__PURE__*/styled.View.withConfig({
1532
+ displayName: "ListItemContent__ContentView"
1380
1533
  })(["flex:1 0 0%;align-self:center;"]);
1381
1534
  function ListItemContent(_ref) {
1382
1535
  var children = _ref.children,
1383
1536
  rest = _objectWithoutProperties(_ref, _excluded$5);
1384
1537
 
1385
- return /*#__PURE__*/React.createElement(ContentView$1, rest, children);
1538
+ return /*#__PURE__*/jsx(ContentView$1, _objectSpread$7(_objectSpread$7({}, rest), {}, {
1539
+ children: children
1540
+ }));
1386
1541
  }
1387
1542
 
1388
1543
  var _excluded$4 = ["children", "side"],
1389
1544
  _excluded2$1 = ["children", "align"];
1390
- var SideContainerView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1391
- displayName: "ListItemSideContent__SideContainerView",
1392
- componentId: "kitt-universal__sc-1vajiw-0"
1545
+
1546
+ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1547
+
1548
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1549
+ var SideContainerView = /*#__PURE__*/styled.View.withConfig({
1550
+ displayName: "ListItemSideContent__SideContainerView"
1393
1551
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
1394
1552
  var theme = _ref.theme,
1395
1553
  side = _ref.side;
@@ -1406,13 +1564,14 @@ function ListItemSideContainer(_ref3) {
1406
1564
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
1407
1565
  rest = _objectWithoutProperties(_ref3, _excluded$4);
1408
1566
 
1409
- return /*#__PURE__*/React.createElement(SideContainerView, _extends({
1567
+ return /*#__PURE__*/jsx(SideContainerView, _objectSpread$6(_objectSpread$6({
1410
1568
  side: side
1411
- }, rest), children);
1569
+ }, rest), {}, {
1570
+ children: children
1571
+ }));
1412
1572
  }
1413
- var SideContentView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1414
- displayName: "ListItemSideContent__SideContentView",
1415
- componentId: "kitt-universal__sc-1vajiw-1"
1573
+ var SideContentView = /*#__PURE__*/styled.View.withConfig({
1574
+ displayName: "ListItemSideContent__SideContentView"
1416
1575
  })(["align-self:", ";"], function (_ref4) {
1417
1576
  var align = _ref4.align;
1418
1577
  return align;
@@ -1423,19 +1582,20 @@ function ListItemSideContent(_ref5) {
1423
1582
  align = _ref5$align === void 0 ? 'auto' : _ref5$align,
1424
1583
  rest = _objectWithoutProperties(_ref5, _excluded2$1);
1425
1584
 
1426
- return /*#__PURE__*/React.createElement(SideContentView, _extends({
1585
+ return /*#__PURE__*/jsx(SideContentView, _objectSpread$6(_objectSpread$6({
1427
1586
  align: align
1428
- }, rest), children);
1587
+ }, rest), {}, {
1588
+ children: children
1589
+ }));
1429
1590
  }
1430
1591
 
1431
1592
  var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
1432
1593
 
1433
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1594
+ function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1434
1595
 
1435
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1436
- var ContainerView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1437
- displayName: "ListItem__ContainerView",
1438
- componentId: "kitt-universal__sc-2afp9s-0"
1596
+ function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1597
+ var ContainerView = /*#__PURE__*/styled.View.withConfig({
1598
+ displayName: "ListItem__ContainerView"
1439
1599
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
1440
1600
  var withPadding = _ref.withPadding,
1441
1601
  theme = _ref.theme;
@@ -1474,20 +1634,28 @@ function ListItem(_ref5) {
1474
1634
  onPress = _ref5.onPress,
1475
1635
  rest = _objectWithoutProperties(_ref5, _excluded$3);
1476
1636
 
1477
- var Wrapper = onPress ? PrimitivePressable : Fragment;
1478
- var wrapperProps = onPress ? _objectSpread$1({
1637
+ var Wrapper = onPress ? Pressable : Fragment;
1638
+ var wrapperProps = onPress ? _objectSpread$5({
1479
1639
  accessibilityRole: 'button',
1480
1640
  onPress: onPress
1481
1641
  }, rest) : undefined;
1482
1642
  var containerProps = onPress ? undefined : rest;
1483
- return /*#__PURE__*/React.createElement(Wrapper, wrapperProps, /*#__PURE__*/React.createElement(ContainerView, _extends({
1484
- withPadding: withPadding,
1485
- borders: borders
1486
- }, containerProps), left ? /*#__PURE__*/React.createElement(ListItemSideContainer, {
1487
- side: "left"
1488
- }, left) : null, /*#__PURE__*/React.createElement(ListItemContent, null, children), right ? /*#__PURE__*/React.createElement(ListItemSideContainer, {
1489
- side: "right"
1490
- }, right) : null));
1643
+ return /*#__PURE__*/jsx(Wrapper, _objectSpread$5(_objectSpread$5({}, wrapperProps), {}, {
1644
+ children: /*#__PURE__*/jsxs(ContainerView, _objectSpread$5(_objectSpread$5({
1645
+ withPadding: withPadding,
1646
+ borders: borders
1647
+ }, containerProps), {}, {
1648
+ children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
1649
+ side: "left",
1650
+ children: left
1651
+ }) : null, /*#__PURE__*/jsx(ListItemContent, {
1652
+ children: children
1653
+ }), right ? /*#__PURE__*/jsx(ListItemSideContainer, {
1654
+ side: "right",
1655
+ children: right
1656
+ }) : null]
1657
+ }))
1658
+ }));
1491
1659
  }
1492
1660
  ListItem.Content = ListItemContent;
1493
1661
  ListItem.SideContent = ListItemSideContent;
@@ -1505,7 +1673,7 @@ function Loader(_ref) {
1505
1673
  size = _ref$size === void 0 ? 20 : _ref$size;
1506
1674
  var theme = /*#__PURE__*/useTheme();
1507
1675
  var colorHex = theme.kitt.typography.colors[color];
1508
- return /*#__PURE__*/React.createElement(ActivityIndicator, {
1676
+ return /*#__PURE__*/jsx(ActivityIndicator, {
1509
1677
  testID: "ActivityIndicator",
1510
1678
  color: colorHex,
1511
1679
  size: getActivityIndicatorSize(size)
@@ -1515,7 +1683,7 @@ function Loader(_ref) {
1515
1683
  function LargeLoader(_ref) {
1516
1684
  var _ref$color = _ref.color,
1517
1685
  color = _ref$color === void 0 ? 'primary' : _ref$color;
1518
- return /*#__PURE__*/React.createElement(Loader, {
1686
+ return /*#__PURE__*/jsx(Loader, {
1519
1687
  color: color,
1520
1688
  size: 60
1521
1689
  });
@@ -1523,9 +1691,8 @@ function LargeLoader(_ref) {
1523
1691
 
1524
1692
  var xIconSize = 14;
1525
1693
  var mainIconSize = 20;
1526
- var Container$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1527
- displayName: "Message__Container",
1528
- componentId: "kitt-universal__sc-c6400e-0"
1694
+ var Container$2 = /*#__PURE__*/styled.View.withConfig({
1695
+ displayName: "Message__Container"
1529
1696
  })(["border-radius:", "px;background-color:", ";padding-bottom:", "px;padding-left:", "px;padding-right:", "px;padding-top:", "px;flex-direction:row;align-items:flex-start;justify-content:space-between;"], function (_ref) {
1530
1697
  var theme = _ref.theme,
1531
1698
  noRadius = _ref.noRadius;
@@ -1551,8 +1718,7 @@ var Container$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1551
1718
  return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
1552
1719
  });
1553
1720
  var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
1554
- displayName: "Message__CloseContainer",
1555
- componentId: "kitt-universal__sc-c6400e-1"
1721
+ displayName: "Message__CloseContainer"
1556
1722
  })(["margin-left:", "px;padding:", "px;"], function (_ref7) {
1557
1723
  var theme = _ref7.theme;
1558
1724
  return theme.kitt.spacing * 4;
@@ -1560,16 +1726,14 @@ var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
1560
1726
  var theme = _ref8.theme;
1561
1727
  return theme.kitt.spacing;
1562
1728
  });
1563
- var IconContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1564
- displayName: "Message__IconContainer",
1565
- componentId: "kitt-universal__sc-c6400e-2"
1729
+ var IconContainer = /*#__PURE__*/styled.View.withConfig({
1730
+ displayName: "Message__IconContainer"
1566
1731
  })(["margin-right:", "px;"], function (_ref9) {
1567
1732
  var theme = _ref9.theme;
1568
1733
  return theme.kitt.spacing * 4;
1569
1734
  });
1570
- var Content = /*#__PURE__*/styled(PrimitiveText).withConfig({
1571
- displayName: "Message__Content",
1572
- componentId: "kitt-universal__sc-c6400e-3"
1735
+ var Content = /*#__PURE__*/styled.Text.withConfig({
1736
+ displayName: "Message__Content"
1573
1737
  })(["text-align:", ";flex:1;"], function (_ref10) {
1574
1738
  var centeredText = _ref10.centeredText;
1575
1739
  return centeredText ? 'center' : 'left';
@@ -1592,16 +1756,16 @@ var getColorByType = function (type) {
1592
1756
  function getIconContent(type) {
1593
1757
  switch (type) {
1594
1758
  case 'warning':
1595
- return /*#__PURE__*/React.createElement(AlertCircleIcon, null);
1759
+ return /*#__PURE__*/jsx(AlertCircleIcon, {});
1596
1760
 
1597
1761
  case 'success':
1598
- return /*#__PURE__*/React.createElement(CheckIcon, null);
1762
+ return /*#__PURE__*/jsx(CheckIcon, {});
1599
1763
 
1600
1764
  case 'danger':
1601
- return /*#__PURE__*/React.createElement(AlertTriangleIcon, null);
1765
+ return /*#__PURE__*/jsx(AlertTriangleIcon, {});
1602
1766
 
1603
1767
  default:
1604
- return /*#__PURE__*/React.createElement(InfoIcon, null);
1768
+ return /*#__PURE__*/jsx(InfoIcon, {});
1605
1769
  }
1606
1770
  }
1607
1771
 
@@ -1616,54 +1780,58 @@ function Message(_ref11) {
1616
1780
  onDismiss = _ref11.onDismiss,
1617
1781
  insets = _ref11.insets;
1618
1782
  var color = getColorByType(type);
1619
- return /*#__PURE__*/React.createElement(Container$1, {
1783
+ return /*#__PURE__*/jsxs(Container$2, {
1620
1784
  type: type,
1621
1785
  noRadius: noRadius,
1622
- insets: insets
1623
- }, !centeredText ? /*#__PURE__*/React.createElement(IconContainer, null, /*#__PURE__*/React.createElement(Icon, {
1624
- size: mainIconSize,
1625
- color: color,
1626
- icon: getIconContent(type)
1627
- })) : null, /*#__PURE__*/React.createElement(Content, {
1628
- type: type,
1629
- centeredText: centeredText
1630
- }, /*#__PURE__*/React.createElement(Typography.Text, {
1631
- base: "body-small",
1632
- color: color
1633
- }, children)), onDismiss ? /*#__PURE__*/React.createElement(CloseContainer, {
1634
- onPress: onDismiss
1635
- }, /*#__PURE__*/React.createElement(Icon, {
1636
- icon: /*#__PURE__*/React.createElement(XIcon, null),
1637
- size: xIconSize,
1638
- color: color
1639
- })) : null);
1786
+ insets: insets,
1787
+ children: [!centeredText ? /*#__PURE__*/jsx(IconContainer, {
1788
+ children: /*#__PURE__*/jsx(Icon, {
1789
+ size: mainIconSize,
1790
+ color: color,
1791
+ icon: getIconContent(type)
1792
+ })
1793
+ }) : null, /*#__PURE__*/jsx(Content, {
1794
+ type: type,
1795
+ centeredText: centeredText,
1796
+ children: /*#__PURE__*/jsx(Typography.Text, {
1797
+ base: "body-small",
1798
+ color: color,
1799
+ children: children
1800
+ })
1801
+ }), onDismiss ? /*#__PURE__*/jsx(CloseContainer, {
1802
+ onPress: onDismiss,
1803
+ children: /*#__PURE__*/jsx(Icon, {
1804
+ icon: /*#__PURE__*/jsx(XIcon, {}),
1805
+ size: xIconSize,
1806
+ color: color
1807
+ })
1808
+ }) : null]
1809
+ });
1640
1810
  }
1641
1811
 
1642
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1812
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1643
1813
 
1644
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1645
- var OverlayPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
1646
- displayName: "Overlay__OverlayPressable",
1647
- componentId: "kitt-universal__sc-1cz1gbr-0"
1814
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1815
+ // Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
1816
+ var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
1817
+ displayName: "Overlay__OverlayPressable"
1648
1818
  })(function (_ref) {
1649
1819
  var theme = _ref.theme;
1650
- return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
1820
+ return _objectSpread$4(_objectSpread$4({}, StyleSheet.absoluteFillObject), {}, {
1651
1821
  backgroundColor: theme.kitt.colors.overlay.dark
1652
1822
  });
1653
1823
  });
1654
1824
  function Overlay(_ref2) {
1655
1825
  var onPress = _ref2.onPress;
1656
- return /*#__PURE__*/React.createElement(OverlayPressable, {
1826
+ return /*#__PURE__*/jsx(OverlayPressable, {
1657
1827
  accessibilityRole: "none",
1658
- onPress: onPress
1659
- }, /*#__PURE__*/React.createElement(PrimitiveView, null));
1828
+ onPress: onPress,
1829
+ children: /*#__PURE__*/jsx(View, {})
1830
+ });
1660
1831
  }
1661
1832
 
1662
- var PrimitiveScrollView = ScrollView;
1663
-
1664
- var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1665
- displayName: "Body__BodyView",
1666
- componentId: "kitt-universal__sc-17fwpo4-0"
1833
+ var BodyView = /*#__PURE__*/styled.View.withConfig({
1834
+ displayName: "Body__BodyView"
1667
1835
  })(["padding:", "px ", "px;"], function (_ref) {
1668
1836
  var theme = _ref.theme;
1669
1837
  return theme.kitt.spacing * 6;
@@ -1673,12 +1841,15 @@ var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1673
1841
  });
1674
1842
  function ModalBody(_ref3) {
1675
1843
  var children = _ref3.children;
1676
- return /*#__PURE__*/React.createElement(PrimitiveScrollView, null, /*#__PURE__*/React.createElement(BodyView, null, children));
1844
+ return /*#__PURE__*/jsx(ScrollView, {
1845
+ children: /*#__PURE__*/jsx(BodyView, {
1846
+ children: children
1847
+ })
1848
+ });
1677
1849
  }
1678
1850
 
1679
- var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1680
- displayName: "Footer__FooterView",
1681
- componentId: "kitt-universal__sc-1ujq2dc-0"
1851
+ var FooterView = /*#__PURE__*/styled.View.withConfig({
1852
+ displayName: "Footer__FooterView"
1682
1853
  })(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
1683
1854
  var theme = _ref.theme;
1684
1855
  return theme.kitt.spacing * 4;
@@ -1688,14 +1859,15 @@ var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1688
1859
  });
1689
1860
  function ModalFooter(_ref3) {
1690
1861
  var children = _ref3.children;
1691
- return /*#__PURE__*/React.createElement(FooterView, null, children);
1862
+ return /*#__PURE__*/jsx(FooterView, {
1863
+ children: children
1864
+ });
1692
1865
  }
1693
1866
 
1694
1867
  var OnCloseContext = /*#__PURE__*/createContext(function () {});
1695
1868
 
1696
- var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1697
- displayName: "Header__HeaderView",
1698
- componentId: "kitt-universal__sc-1iwabch-0"
1869
+ var HeaderView = /*#__PURE__*/styled.View.withConfig({
1870
+ displayName: "Header__HeaderView"
1699
1871
  })(["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) {
1700
1872
  var theme = _ref.theme;
1701
1873
  return theme.kitt.spacing * 2;
@@ -1703,23 +1875,20 @@ var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1703
1875
  var theme = _ref2.theme;
1704
1876
  return theme.kitt.colors.separator;
1705
1877
  });
1706
- var LeftIconView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1707
- displayName: "Header__LeftIconView",
1708
- componentId: "kitt-universal__sc-1iwabch-1"
1878
+ var LeftIconView = /*#__PURE__*/styled.View.withConfig({
1879
+ displayName: "Header__LeftIconView"
1709
1880
  })(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
1710
1881
  var theme = _ref3.theme;
1711
1882
  return theme.kitt.spacing * 2;
1712
1883
  });
1713
- var RightIconView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1714
- displayName: "Header__RightIconView",
1715
- componentId: "kitt-universal__sc-1iwabch-2"
1884
+ var RightIconView = /*#__PURE__*/styled.View.withConfig({
1885
+ displayName: "Header__RightIconView"
1716
1886
  })(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
1717
1887
  var theme = _ref4.theme;
1718
1888
  return theme.kitt.spacing * 2;
1719
1889
  });
1720
- var TitleView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1721
- displayName: "Header__TitleView",
1722
- componentId: "kitt-universal__sc-1iwabch-3"
1890
+ var TitleView = /*#__PURE__*/styled.View.withConfig({
1891
+ displayName: "Header__TitleView"
1723
1892
  })(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
1724
1893
  var theme = _ref5.theme,
1725
1894
  isIconLeft = _ref5.isIconLeft;
@@ -1731,18 +1900,24 @@ function ModalHeader(_ref6) {
1731
1900
  children = _ref6.children;
1732
1901
  var onClose = useContext(OnCloseContext);
1733
1902
  var isIconLeft = !!left;
1734
- return /*#__PURE__*/React.createElement(HeaderView, null, isIconLeft && /*#__PURE__*/React.createElement(LeftIconView, null, left), /*#__PURE__*/React.createElement(TitleView, {
1735
- isIconLeft: isIconLeft
1736
- }, children), right !== undefined ? right : /*#__PURE__*/React.createElement(RightIconView, null, /*#__PURE__*/React.createElement(Button, {
1737
- type: "subtle-dark",
1738
- icon: /*#__PURE__*/React.createElement(XIcon, null),
1739
- onPress: onClose
1740
- })));
1741
- }
1742
-
1743
- var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1744
- displayName: "Modal__ModalView",
1745
- componentId: "kitt-universal__sc-1xy2w5u-0"
1903
+ return /*#__PURE__*/jsxs(HeaderView, {
1904
+ children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
1905
+ children: left
1906
+ }), /*#__PURE__*/jsx(TitleView, {
1907
+ isIconLeft: isIconLeft,
1908
+ children: children
1909
+ }), right !== undefined ? right : /*#__PURE__*/jsx(RightIconView, {
1910
+ children: /*#__PURE__*/jsx(Button, {
1911
+ type: "subtle-dark",
1912
+ icon: /*#__PURE__*/jsx(XIcon, {}),
1913
+ onPress: onClose
1914
+ })
1915
+ })]
1916
+ });
1917
+ }
1918
+
1919
+ var ModalView = /*#__PURE__*/styled.View.withConfig({
1920
+ displayName: "Modal__ModalView"
1746
1921
  })(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
1747
1922
  var theme = _ref.theme;
1748
1923
  return theme.kitt.spacing * 20;
@@ -1750,9 +1925,8 @@ var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1750
1925
  var theme = _ref2.theme;
1751
1926
  return theme.kitt.spacing * 4;
1752
1927
  });
1753
- var ContentView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1754
- displayName: "Modal__ContentView",
1755
- componentId: "kitt-universal__sc-1xy2w5u-1"
1928
+ var ContentView = /*#__PURE__*/styled.View.withConfig({
1929
+ displayName: "Modal__ContentView"
1756
1930
  })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
1757
1931
  var theme = _ref3.theme;
1758
1932
  return theme.kitt.card.borderRadius;
@@ -1766,18 +1940,24 @@ function Modal(_ref5) {
1766
1940
  onClose = _ref5.onClose,
1767
1941
  onEntered = _ref5.onEntered,
1768
1942
  onExited = _ref5.onExited;
1769
- return /*#__PURE__*/React.createElement(OnCloseContext.Provider, {
1770
- value: onClose
1771
- }, /*#__PURE__*/React.createElement(Modal$1, {
1772
- transparent: true,
1773
- animationType: "fade",
1774
- visible: visible,
1775
- onShow: onEntered,
1776
- onDismiss: onExited,
1777
- onRequestClose: onClose
1778
- }, /*#__PURE__*/React.createElement(ModalView, null, /*#__PURE__*/React.createElement(Overlay, {
1779
- onPress: onClose
1780
- }), /*#__PURE__*/React.createElement(ContentView, null, children))));
1943
+ return /*#__PURE__*/jsx(OnCloseContext.Provider, {
1944
+ value: onClose,
1945
+ children: /*#__PURE__*/jsx(Modal$1, {
1946
+ transparent: true,
1947
+ animationType: "fade",
1948
+ visible: visible,
1949
+ onShow: onEntered,
1950
+ onDismiss: onExited,
1951
+ onRequestClose: onClose,
1952
+ children: /*#__PURE__*/jsxs(ModalView, {
1953
+ children: [/*#__PURE__*/jsx(Overlay, {
1954
+ onPress: onClose
1955
+ }), /*#__PURE__*/jsx(ContentView, {
1956
+ children: children
1957
+ })]
1958
+ })
1959
+ })
1960
+ });
1781
1961
  }
1782
1962
  Modal.Header = ModalHeader;
1783
1963
  Modal.Body = ModalBody;
@@ -1792,26 +1972,24 @@ function Notification(_ref) {
1792
1972
  var _useSafeAreaInsets = useSafeAreaInsets(),
1793
1973
  top = _useSafeAreaInsets.top;
1794
1974
 
1795
- return /*#__PURE__*/React.createElement(Message, {
1975
+ return /*#__PURE__*/jsx(Message, {
1796
1976
  noRadius: true,
1797
1977
  type: type,
1798
1978
  centeredText: centeredText,
1799
1979
  insets: {
1800
1980
  top: top
1801
1981
  },
1802
- onDismiss: onDelete
1803
- }, children);
1982
+ onDismiss: onDelete,
1983
+ children: children
1984
+ });
1804
1985
  }
1805
1986
 
1806
- var PrimitiveLink = Text$1;
1807
-
1808
- var Flex = /*#__PURE__*/styled(PrimitiveView).withConfig({
1987
+ var Flex = /*#__PURE__*/styled.View.withConfig({
1809
1988
  shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
1810
1989
  return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
1811
1990
  }
1812
1991
  }).withConfig({
1813
- displayName: "Flex",
1814
- componentId: "kitt-universal__sc-15q3v3h-0"
1992
+ displayName: "Flex"
1815
1993
  })(["display:flex;flex-direction:", ";flex-wrap:wrap;padding:", "px;"], function (_ref) {
1816
1994
  var direction = _ref.direction;
1817
1995
  return direction;
@@ -1862,9 +2040,8 @@ var useStoryBlockColor = function (color) {
1862
2040
  var storyBlockColor = useContext(StoryBlockColorContext);
1863
2041
  return color || storyBlockColor;
1864
2042
  };
1865
- var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1866
- displayName: "StoryBlock__StyledStoryBlockView",
1867
- componentId: "kitt-universal__sc-3w4hdm-0"
2043
+ var StyledStoryBlockView = /*#__PURE__*/styled.View.withConfig({
2044
+ displayName: "StoryBlock__StyledStoryBlockView"
1868
2045
  })(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
1869
2046
  var theme = _ref.theme,
1870
2047
  background = _ref.background;
@@ -1873,45 +2050,52 @@ var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1873
2050
  function StoryBlock(_ref2) {
1874
2051
  var children = _ref2.children,
1875
2052
  background = _ref2.background;
1876
- return /*#__PURE__*/React.createElement(StyledStoryBlockView, {
1877
- background: background
1878
- }, /*#__PURE__*/React.createElement(StoryBlockColorContext.Provider, {
1879
- value: getTypographyColorFromBlockColor(background)
1880
- }, /*#__PURE__*/React.createElement(StoryBlockBackgroundContext.Provider, {
1881
- value: background
1882
- }, children)));
1883
- }
1884
-
1885
- var StoryTitleContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1886
- displayName: "StoryTitle__StoryTitleContainer",
1887
- componentId: "kitt-universal__sc-sic7hb-0"
2053
+ return /*#__PURE__*/jsx(StyledStoryBlockView, {
2054
+ background: background,
2055
+ children: /*#__PURE__*/jsx(StoryBlockColorContext.Provider, {
2056
+ value: getTypographyColorFromBlockColor(background),
2057
+ children: /*#__PURE__*/jsx(StoryBlockBackgroundContext.Provider, {
2058
+ value: background,
2059
+ children: children
2060
+ })
2061
+ })
2062
+ });
2063
+ }
2064
+
2065
+ var StoryTitleContainer = /*#__PURE__*/styled.View.withConfig({
2066
+ displayName: "StoryTitle__StoryTitleContainer"
1888
2067
  })(["margin-bottom:30px;"]);
1889
- var StorySubTitleContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1890
- displayName: "StoryTitle__StorySubTitleContainer",
1891
- componentId: "kitt-universal__sc-sic7hb-1"
2068
+ var StorySubTitleContainer = /*#__PURE__*/styled.View.withConfig({
2069
+ displayName: "StoryTitle__StorySubTitleContainer"
1892
2070
  })(["margin-bottom:10px;"]);
1893
2071
  function StoryTitle(_ref) {
1894
2072
  var color = _ref.color,
1895
2073
  children = _ref.children,
1896
2074
  numberOfLines = _ref.numberOfLines;
1897
- return /*#__PURE__*/React.createElement(StoryTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header1, {
1898
- variant: "bold",
1899
- base: "header1",
1900
- color: useStoryBlockColor(color),
1901
- numberOfLines: numberOfLines
1902
- }, children));
2075
+ return /*#__PURE__*/jsx(StoryTitleContainer, {
2076
+ children: /*#__PURE__*/jsx(Typography.Header1, {
2077
+ variant: "bold",
2078
+ base: "header1",
2079
+ color: useStoryBlockColor(color),
2080
+ numberOfLines: numberOfLines,
2081
+ children: children
2082
+ })
2083
+ });
1903
2084
  }
1904
2085
 
1905
2086
  function StoryTitleLevel2(_ref2) {
1906
2087
  var color = _ref2.color,
1907
2088
  children = _ref2.children,
1908
2089
  numberOfLines = _ref2.numberOfLines;
1909
- return /*#__PURE__*/React.createElement(StoryTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header2, {
1910
- variant: "bold",
1911
- base: "header2",
1912
- color: useStoryBlockColor(color),
1913
- numberOfLines: numberOfLines
1914
- }, children));
2090
+ return /*#__PURE__*/jsx(StoryTitleContainer, {
2091
+ children: /*#__PURE__*/jsx(Typography.Header2, {
2092
+ variant: "bold",
2093
+ base: "header2",
2094
+ color: useStoryBlockColor(color),
2095
+ numberOfLines: numberOfLines,
2096
+ children: children
2097
+ })
2098
+ });
1915
2099
  }
1916
2100
 
1917
2101
  StoryTitleLevel2.displayName = 'StoryTitle.Level2';
@@ -1920,13 +2104,16 @@ function StoryTitleLevel3(_ref3) {
1920
2104
  var color = _ref3.color,
1921
2105
  children = _ref3.children,
1922
2106
  numberOfLines = _ref3.numberOfLines;
1923
- return /*#__PURE__*/React.createElement(StorySubTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header3, {
1924
- variant: "bold",
1925
- base: "header3",
1926
- medium: "header4",
1927
- color: useStoryBlockColor(color),
1928
- numberOfLines: numberOfLines
1929
- }, children));
2107
+ return /*#__PURE__*/jsx(StorySubTitleContainer, {
2108
+ children: /*#__PURE__*/jsx(Typography.Header3, {
2109
+ variant: "bold",
2110
+ base: "header3",
2111
+ medium: "header4",
2112
+ color: useStoryBlockColor(color),
2113
+ numberOfLines: numberOfLines,
2114
+ children: children
2115
+ })
2116
+ });
1930
2117
  }
1931
2118
 
1932
2119
  StoryTitleLevel3.displayName = 'StoryTitle.Level3';
@@ -1935,13 +2122,16 @@ function StoryTitleLevel4(_ref4) {
1935
2122
  var color = _ref4.color,
1936
2123
  children = _ref4.children,
1937
2124
  numberOfLines = _ref4.numberOfLines;
1938
- return /*#__PURE__*/React.createElement(StorySubTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header4, {
1939
- variant: "bold",
1940
- base: "header4",
1941
- medium: "header5",
1942
- color: useStoryBlockColor(color),
1943
- numberOfLines: numberOfLines
1944
- }, children));
2125
+ return /*#__PURE__*/jsx(StorySubTitleContainer, {
2126
+ children: /*#__PURE__*/jsx(Typography.Header4, {
2127
+ variant: "bold",
2128
+ base: "header4",
2129
+ medium: "header5",
2130
+ color: useStoryBlockColor(color),
2131
+ numberOfLines: numberOfLines,
2132
+ children: children
2133
+ })
2134
+ });
1945
2135
  }
1946
2136
 
1947
2137
  StoryTitleLevel4.displayName = 'StoryTitle.Level3';
@@ -1949,75 +2139,89 @@ StoryTitle.Level2 = StoryTitleLevel2;
1949
2139
  StoryTitle.Level3 = StoryTitleLevel3;
1950
2140
  StoryTitle.Level4 = StoryTitleLevel4;
1951
2141
 
1952
- var StoryContainer$1 = /*#__PURE__*/styled(PrimitiveScrollView).withConfig({
1953
- displayName: "Story__StoryContainer",
1954
- componentId: "kitt-universal__sc-1kwdg2p-0"
2142
+ var StoryContainer$1 = /*#__PURE__*/styled.ScrollView.withConfig({
2143
+ displayName: "Story__StoryContainer"
1955
2144
  })(["padding:", "px;"], storyPadding);
1956
2145
  function Story(_ref) {
1957
2146
  var title = _ref.title,
1958
2147
  contentContainerStyle = _ref.contentContainerStyle,
1959
2148
  children = _ref.children;
1960
- return /*#__PURE__*/React.createElement(StoryContainer$1, {
1961
- contentContainerStyle: contentContainerStyle
1962
- }, /*#__PURE__*/React.createElement(StoryTitle, null, title), children);
2149
+ return /*#__PURE__*/jsxs(StoryContainer$1, {
2150
+ contentContainerStyle: contentContainerStyle,
2151
+ children: [/*#__PURE__*/jsx(StoryTitle, {
2152
+ children: title
2153
+ }), children]
2154
+ });
1963
2155
  }
1964
2156
 
1965
- var _excluded$2 = ["title", "className", "children", "internalIsDemoSection"],
1966
- _excluded2 = ["title", "className", "children"],
1967
- _excluded3 = ["title", "className", "children"];
1968
- var StyledSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
1969
- displayName: "StorySection__StyledSection",
1970
- componentId: "kitt-universal__sc-1b3liv5-0"
2157
+ var _excluded$2 = ["title", "children", "internalIsDemoSection"],
2158
+ _excluded2 = ["title", "children"],
2159
+ _excluded3 = ["title", "children"];
2160
+
2161
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2162
+
2163
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2164
+ var StyledSection = /*#__PURE__*/styled.View.withConfig({
2165
+ displayName: "StorySection__StyledSection"
1971
2166
  })(["margin-bottom:32px;"]);
1972
2167
  function StorySection(_ref) {
1973
- var title = _ref.title;
1974
- _ref.className;
1975
- var children = _ref.children,
2168
+ var title = _ref.title,
2169
+ children = _ref.children,
1976
2170
  internalIsDemoSection = _ref.internalIsDemoSection,
1977
2171
  props = _objectWithoutProperties(_ref, _excluded$2);
1978
2172
 
1979
2173
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
1980
- return /*#__PURE__*/React.createElement(StyledSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level2, null, title), children);
2174
+ return /*#__PURE__*/jsxs(StyledSection, _objectSpread$3(_objectSpread$3({}, props), {}, {
2175
+ children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
2176
+ children: title
2177
+ }), children]
2178
+ }));
1981
2179
  }
1982
- var StyledSubSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
1983
- displayName: "StorySection__StyledSubSection",
1984
- componentId: "kitt-universal__sc-1b3liv5-1"
2180
+ var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
2181
+ displayName: "StorySection__StyledSubSection"
1985
2182
  })(["margin-bottom:16px;"]);
1986
2183
 
1987
2184
  function SubSection(_ref2) {
1988
- var title = _ref2.title;
1989
- _ref2.className;
1990
- var children = _ref2.children,
2185
+ var title = _ref2.title,
2186
+ children = _ref2.children,
1991
2187
  props = _objectWithoutProperties(_ref2, _excluded2);
1992
2188
 
1993
- return /*#__PURE__*/React.createElement(StyledSubSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level3, null, title), children);
2189
+ return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$3(_objectSpread$3({}, props), {}, {
2190
+ children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
2191
+ children: title
2192
+ }), children]
2193
+ }));
1994
2194
  }
1995
2195
 
1996
- var StyledBlockSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
1997
- displayName: "StorySection__StyledBlockSection",
1998
- componentId: "kitt-universal__sc-1b3liv5-2"
2196
+ var StyledBlockSection = /*#__PURE__*/styled.View.withConfig({
2197
+ displayName: "StorySection__StyledBlockSection"
1999
2198
  })(["margin-bottom:16px;"]);
2000
2199
 
2001
2200
  function BlockSection(_ref3) {
2002
- var title = _ref3.title;
2003
- _ref3.className;
2004
- var children = _ref3.children,
2201
+ var title = _ref3.title,
2202
+ children = _ref3.children,
2005
2203
  props = _objectWithoutProperties(_ref3, _excluded3);
2006
2204
 
2007
- return /*#__PURE__*/React.createElement(StyledBlockSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level4, null, title), children);
2205
+ return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$3(_objectSpread$3({}, props), {}, {
2206
+ children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
2207
+ children: title
2208
+ }), children]
2209
+ }));
2008
2210
  }
2009
2211
 
2010
- var StyledDemoSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
2011
- displayName: "StorySection__StyledDemoSection",
2012
- componentId: "kitt-universal__sc-1b3liv5-3"
2212
+ var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
2213
+ displayName: "StorySection__StyledDemoSection"
2013
2214
  })(["margin-bottom:64px;"]);
2014
2215
 
2015
2216
  function DemoSection(_ref4) {
2016
2217
  var children = _ref4.children;
2017
- return /*#__PURE__*/React.createElement(StyledDemoSection, null, /*#__PURE__*/React.createElement(StorySection, {
2018
- internalIsDemoSection: true,
2019
- title: "Demo"
2020
- }, children));
2218
+ return /*#__PURE__*/jsx(StyledDemoSection, {
2219
+ children: /*#__PURE__*/jsx(StorySection, {
2220
+ internalIsDemoSection: true,
2221
+ title: "Demo",
2222
+ children: children
2223
+ })
2224
+ });
2021
2225
  }
2022
2226
 
2023
2227
  StorySection.SubSection = SubSection;
@@ -2038,33 +2242,31 @@ function StoryContainer(_ref) {
2038
2242
  _ref$platform = _ref.platform,
2039
2243
  platform = _ref$platform === void 0 ? 'all' : _ref$platform;
2040
2244
  if (platform === 'web') return null;
2041
- return /*#__PURE__*/React.createElement(StorySection.BlockSection, {
2245
+ return /*#__PURE__*/jsx(StorySection.BlockSection, {
2042
2246
  testID: state,
2043
- title: title
2044
- }, children);
2247
+ title: title,
2248
+ children: children
2249
+ });
2045
2250
  }
2046
2251
 
2047
2252
  function StoryDecorator(storyFn, context) {
2048
- return /*#__PURE__*/React.createElement(Story, {
2049
- title: context.name
2050
- }, storyFn());
2253
+ return /*#__PURE__*/jsx(Story, {
2254
+ title: context.name,
2255
+ children: storyFn()
2256
+ });
2051
2257
  }
2052
2258
 
2053
- var SmallScreenRow = /*#__PURE__*/styled(PrimitiveView).withConfig({
2054
- displayName: "StoryGrid__SmallScreenRow",
2055
- componentId: "kitt-universal__sc-4z5new-0"
2259
+ var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
2260
+ displayName: "StoryGrid__SmallScreenRow"
2056
2261
  })(["flex-direction:column;margin:0;"]);
2057
- var SmallScreenCol = /*#__PURE__*/styled(PrimitiveView).withConfig({
2058
- displayName: "StoryGrid__SmallScreenCol",
2059
- componentId: "kitt-universal__sc-4z5new-1"
2262
+ var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
2263
+ displayName: "StoryGrid__SmallScreenCol"
2060
2264
  })(["padding:8px 0 16px;"]);
2061
- var FlexRow = /*#__PURE__*/styled(PrimitiveView).withConfig({
2062
- displayName: "StoryGrid__FlexRow",
2063
- componentId: "kitt-universal__sc-4z5new-2"
2265
+ var FlexRow = /*#__PURE__*/styled.View.withConfig({
2266
+ displayName: "StoryGrid__FlexRow"
2064
2267
  })(["flex-direction:row;margin:0 -4px 16px;"]);
2065
- var FlexCol = /*#__PURE__*/styled(PrimitiveView).withConfig({
2066
- displayName: "StoryGrid__FlexCol",
2067
- componentId: "kitt-universal__sc-4z5new-3"
2268
+ var FlexCol = /*#__PURE__*/styled.View.withConfig({
2269
+ displayName: "StoryGrid__FlexCol"
2068
2270
  })(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
2069
2271
 
2070
2272
  function StoryGridRow(_ref) {
@@ -2080,14 +2282,22 @@ function StoryGridRow(_ref) {
2080
2282
  var breakpointValue = breakpoint === 'small' ? 480 : 768;
2081
2283
 
2082
2284
  if (width < breakpointValue) {
2083
- return /*#__PURE__*/React.createElement(SmallScreenRow, null, React.Children.map(children, function (child) {
2084
- return /*#__PURE__*/React.createElement(SmallScreenCol, null, child);
2085
- }));
2285
+ return /*#__PURE__*/jsx(SmallScreenRow, {
2286
+ children: Children.map(children, function (child) {
2287
+ return /*#__PURE__*/jsx(SmallScreenCol, {
2288
+ children: child
2289
+ });
2290
+ })
2291
+ });
2086
2292
  }
2087
2293
 
2088
- return /*#__PURE__*/React.createElement(FlexRow, null, React.Children.map(children, function (child) {
2089
- return /*#__PURE__*/React.createElement(FlexCol, null, child);
2090
- }));
2294
+ return /*#__PURE__*/jsx(FlexRow, {
2295
+ children: Children.map(children, function (child) {
2296
+ return /*#__PURE__*/jsx(FlexCol, {
2297
+ children: child
2298
+ });
2299
+ })
2300
+ });
2091
2301
  }
2092
2302
 
2093
2303
  function StoryGridCol(_ref2) {
@@ -2106,10 +2316,13 @@ function StoryGridCol(_ref2) {
2106
2316
  return null;
2107
2317
  }
2108
2318
 
2109
- return /*#__PURE__*/React.createElement(React.Fragment, null, title ? /*#__PURE__*/React.createElement(StoryTitle.Level4, {
2110
- numberOfLines: 1,
2111
- color: titleColor
2112
- }, title) : null, children);
2319
+ return /*#__PURE__*/jsxs(Fragment$1, {
2320
+ children: [title ? /*#__PURE__*/jsx(StoryTitle.Level4, {
2321
+ numberOfLines: 1,
2322
+ color: titleColor,
2323
+ children: title
2324
+ }) : null, children]
2325
+ });
2113
2326
  }
2114
2327
 
2115
2328
  var StoryGrid = {
@@ -2117,9 +2330,8 @@ var StoryGrid = {
2117
2330
  Col: StoryGridCol
2118
2331
  };
2119
2332
 
2120
- var Container = /*#__PURE__*/styled(PrimitiveView).withConfig({
2121
- displayName: "Tag__Container",
2122
- componentId: "kitt-universal__sc-19jmowi-0"
2333
+ var Container$1 = /*#__PURE__*/styled.View.withConfig({
2334
+ displayName: "Tag__Container"
2123
2335
  })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2124
2336
  var theme = _ref.theme,
2125
2337
  type = _ref.type,
@@ -2171,13 +2383,15 @@ function Tag(_ref6) {
2171
2383
  type = _ref6$type === void 0 ? 'default' : _ref6$type,
2172
2384
  _ref6$variant = _ref6.variant,
2173
2385
  variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
2174
- return /*#__PURE__*/React.createElement(Container, {
2386
+ return /*#__PURE__*/jsx(Container$1, {
2175
2387
  type: type,
2176
- variant: variant
2177
- }, /*#__PURE__*/React.createElement(Typography.Text, {
2178
- base: "body-xsmall",
2179
- color: getLabelColor(type, variant)
2180
- }, label));
2388
+ variant: variant,
2389
+ children: /*#__PURE__*/jsx(Typography.Text, {
2390
+ base: "body-xsmall",
2391
+ color: getLabelColor(type, variant),
2392
+ children: label
2393
+ })
2394
+ });
2181
2395
  }
2182
2396
 
2183
2397
  var lateOceanColorPalette = {
@@ -2286,6 +2500,7 @@ var colorsLateOceanTheme = {
2286
2500
  danger: lateOceanColorPalette.englishVermillon,
2287
2501
  separator: lateOceanColorPalette.black100,
2288
2502
  hover: lateOceanColorPalette.black100,
2503
+ black: lateOceanColorPalette.black1000,
2289
2504
  uiBackground: lateOceanColorPalette.black25,
2290
2505
  uiBackgroundLight: lateOceanColorPalette.white,
2291
2506
  overlay: {
@@ -2471,6 +2686,15 @@ var tagLateOceanTheme = {
2471
2686
  }
2472
2687
  };
2473
2688
 
2689
+ var tooltip = {
2690
+ backgroundColor: colorsLateOceanTheme.black,
2691
+ borderRadius: 10,
2692
+ opacity: 0.95,
2693
+ horizontalPadding: 16,
2694
+ verticalPadding: 4,
2695
+ floatingPadding: 8
2696
+ };
2697
+
2474
2698
  var calcLineHeight = function (fontSize, lineHeightMultiplier) {
2475
2699
  return Math.round(fontSize * lineHeightMultiplier);
2476
2700
  };
@@ -2587,29 +2811,355 @@ var theme = {
2587
2811
  shadows: shadowsLateOceanTheme,
2588
2812
  fullScreenModal: fullScreenModalLateOceanTheme,
2589
2813
  iconButton: iconButton,
2590
- listItem: listItemLateOceanTheme
2814
+ listItem: listItemLateOceanTheme,
2815
+ tooltip: tooltip
2591
2816
  };
2592
2817
 
2593
- function Tooltip(_ref) {
2818
+ function Title(_ref) {
2594
2819
  var children = _ref.children;
2595
- return /*#__PURE__*/React.createElement(PrimitiveView, null, children);
2820
+ return /*#__PURE__*/jsx(Modal.Header, {
2821
+ children: /*#__PURE__*/jsx(Typography.Text, {
2822
+ base: "body",
2823
+ variant: "bold",
2824
+ children: children
2825
+ })
2826
+ });
2827
+ }
2828
+
2829
+ function ModalDateTimePicker(_ref2) {
2830
+ var title = _ref2.title,
2831
+ visible = _ref2.visible,
2832
+ value = _ref2.value,
2833
+ validateButtonLabel = _ref2.validateButtonLabel,
2834
+ onChange = _ref2.onChange,
2835
+ onClose = _ref2.onClose;
2836
+
2837
+ var _useState = useState(value),
2838
+ _useState2 = _slicedToArray(_useState, 2),
2839
+ currentValue = _useState2[0],
2840
+ setCurrentValue = _useState2[1]; // Prevent unsynced value between the modal and its parent state
2841
+
2842
+
2843
+ return /*#__PURE__*/jsx(Modal, {
2844
+ visible: Boolean(visible),
2845
+ onClose: function handleClose() {
2846
+ setCurrentValue(value);
2847
+ onClose();
2848
+ },
2849
+ children: visible ? /*#__PURE__*/jsxs(Fragment$1, {
2850
+ children: [title ? /*#__PURE__*/jsx(Title, {
2851
+ children: title
2852
+ }) : null, /*#__PURE__*/jsx(Modal.Body, {
2853
+ children: /*#__PURE__*/jsx(DateTimePicker, {
2854
+ is24Hour: true,
2855
+ testID: "date-picker-native-element",
2856
+ value: currentValue,
2857
+ mode: "time",
2858
+ display: Platform.OS === 'ios' ? 'spinner' : 'default',
2859
+ onChange: function (_event, date) {
2860
+ return setCurrentValue(function (prev) {
2861
+ return date || prev;
2862
+ });
2863
+ }
2864
+ })
2865
+ }), /*#__PURE__*/jsx(Modal.Footer, {
2866
+ children: /*#__PURE__*/jsx(Button, {
2867
+ stretch: true,
2868
+ type: "primary",
2869
+ onPress: function handleSubmit() {
2870
+ onChange(currentValue);
2871
+ },
2872
+ children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
2873
+ children: validateButtonLabel
2874
+ }) : /*#__PURE__*/jsx(FormattedMessage, {
2875
+ id: "kitt-universal.ModalDateTimePicker.confirm"
2876
+ })
2877
+ })
2878
+ })]
2879
+ }) : null
2880
+ });
2596
2881
  }
2597
2882
 
2598
- var isBody = function (value) {
2599
- return ['body-large', 'body-medium', 'body', 'body-small', 'body-xsmall'].includes(value);
2883
+ var timePickerPlaceholder = '--:--';
2884
+ var useTimePicker = function (value, onChange, onBlur, disabled, defaultValue) {
2885
+ var _useState = useState(false),
2886
+ _useState2 = _slicedToArray(_useState, 2),
2887
+ isTimePickerModalVisible = _useState2[0],
2888
+ setIsTimePickerModalVisible = _useState2[1];
2889
+
2890
+ var todayAtNoon = useMemo(function () {
2891
+ var now = new Date(2000, 0, 1, 12);
2892
+ return new Date(now.getFullYear(), now.getMonth(), now.getDay(), 12);
2893
+ }, []);
2894
+ var defaultDate = defaultValue || todayAtNoon;
2895
+ var dateTimePickerValue = value || defaultDate;
2896
+ var displayedValue = value === null ? timePickerPlaceholder : Intl.DateTimeFormat('fr-FR', {
2897
+ minute: 'numeric',
2898
+ hour: 'numeric'
2899
+ }).format(dateTimePickerValue);
2900
+ var timePickerState = isTimePickerModalVisible ? 'focus' : 'default';
2901
+ return {
2902
+ dateTimePickerValue: dateTimePickerValue,
2903
+ displayedValue: displayedValue,
2904
+ timePickerState: timePickerState,
2905
+ isTimePickerModalVisible: isTimePickerModalVisible,
2906
+ handleInputPress: function handleInputPress() {
2907
+ if (disabled) {
2908
+ return;
2909
+ }
2910
+
2911
+ setIsTimePickerModalVisible(true);
2912
+ },
2913
+ handleTimeChange: function handleTimeChange(date) {
2914
+ setIsTimePickerModalVisible(false);
2915
+ onChange(date || defaultDate);
2916
+ onBlur();
2917
+ },
2918
+ handleModalClose: function handleModalClose() {
2919
+ return setIsTimePickerModalVisible(false);
2920
+ }
2921
+ };
2600
2922
  };
2601
2923
 
2602
- function getDimensions(base, theme) {
2603
- if (isBody(base)) {
2604
- return theme.kitt.typography.types.bodies.configs[base];
2605
- }
2924
+ var Container = /*#__PURE__*/styled.Pressable.withConfig({
2925
+ displayName: "TimePicker__Container"
2926
+ })(["", " width:100px;height:40px;justify-content:center;align-items:center;"], styledTextInputMixin);
2927
+ function TimePicker(_ref) {
2928
+ var title = _ref.title,
2929
+ _ref$state = _ref.state,
2930
+ state = _ref$state === void 0 ? 'default' : _ref$state,
2931
+ _ref$disabled = _ref.disabled,
2932
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
2933
+ forceDefaultValue = _ref.forceDefaultValue,
2934
+ value = _ref.value,
2935
+ validateButtonLabel = _ref.validateButtonLabel,
2936
+ onChange = _ref.onChange,
2937
+ onBlur = _ref.onBlur;
2938
+
2939
+ var _useTimePicker = useTimePicker(value || null, onChange, onBlur, disabled, forceDefaultValue),
2940
+ dateTimePickerValue = _useTimePicker.dateTimePickerValue,
2941
+ displayedValue = _useTimePicker.displayedValue,
2942
+ timePickerState = _useTimePicker.timePickerState,
2943
+ handleInputPress = _useTimePicker.handleInputPress,
2944
+ handleModalClose = _useTimePicker.handleModalClose,
2945
+ handleTimeChange = _useTimePicker.handleTimeChange,
2946
+ isTimePickerModalVisible = _useTimePicker.isTimePickerModalVisible;
2947
+
2948
+ return /*#__PURE__*/jsxs(Container, {
2949
+ state: timePickerState === 'default' ? state : timePickerState,
2950
+ accessibilityRole: "button",
2951
+ onPress: handleInputPress,
2952
+ children: [/*#__PURE__*/jsx(Typography.Text, {
2953
+ base: "body",
2954
+ color: displayedValue === timePickerPlaceholder ? 'black-light' : 'black',
2955
+ children: displayedValue
2956
+ }), Platform.OS === 'android' && isTimePickerModalVisible ? /*#__PURE__*/jsx(DateTimePicker, {
2957
+ is24Hour: true,
2958
+ testID: "date-picker-native-element",
2959
+ value: dateTimePickerValue,
2960
+ mode: "time",
2961
+ display: "default",
2962
+ onChange: function (_event, date) {
2963
+ return handleTimeChange(date);
2964
+ }
2965
+ }) : null, Platform.OS !== 'android' ? /*#__PURE__*/jsx(ModalDateTimePicker, {
2966
+ title: title,
2967
+ visible: isTimePickerModalVisible,
2968
+ value: dateTimePickerValue,
2969
+ validateButtonLabel: validateButtonLabel,
2970
+ onChange: handleTimeChange,
2971
+ onClose: handleModalClose
2972
+ }) : null]
2973
+ });
2974
+ }
2975
+
2976
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2977
+
2978
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2606
2979
 
2607
- return theme.kitt.typography.types.headers.configs[base];
2980
+ var Arrow = function (props) {
2981
+ return /*#__PURE__*/jsx("svg", _objectSpread$2(_objectSpread$2({}, props), {}, {
2982
+ children: /*#__PURE__*/jsx("path", {
2983
+ fillRule: "evenodd",
2984
+ clipRule: "evenodd",
2985
+ d: "M22.399 6.128C20.939 7.722 19.767 9 18 9s-2.938-1.278-4.399-2.872C11.187 3.494 7.984 0 0 0h36c-7.984 0-11.187 3.494-13.601 6.128z",
2986
+ fill: "currentColor"
2987
+ })
2988
+ }));
2989
+ };
2990
+
2991
+ Arrow.defaultProps = {
2992
+ width: "36",
2993
+ height: "8",
2994
+ viewBox: "0 0 36 9",
2995
+ fill: "none",
2996
+ xmlns: "http://www.w3.org/2000/svg"
2997
+ };
2998
+ var StyledTooltipView = /*#__PURE__*/styled.View.withConfig({
2999
+ displayName: "TooltipView__StyledTooltipView"
3000
+ })(["align-items:center;"]);
3001
+ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
3002
+ displayName: "TooltipView__StyledTooltipContent"
3003
+ })(["background-color:", ";border-radius:", "px;opacity:", ";padding:", ";"], function (_ref) {
3004
+ var theme = _ref.theme;
3005
+ return theme.kitt.tooltip.backgroundColor;
3006
+ }, function (_ref2) {
3007
+ var theme = _ref2.theme;
3008
+ return theme.kitt.tooltip.borderRadius;
3009
+ }, function (_ref3) {
3010
+ var theme = _ref3.theme;
3011
+ return theme.kitt.tooltip.opacity;
3012
+ }, function (_ref4) {
3013
+ var theme = _ref4.theme;
3014
+ return "".concat(theme.kitt.tooltip.verticalPadding, "px ").concat(theme.kitt.tooltip.horizontalPadding, "px");
3015
+ });
3016
+
3017
+ function ArrowView(props) {
3018
+ var theme = /*#__PURE__*/useTheme();
3019
+ return /*#__PURE__*/jsx(View, _objectSpread$2(_objectSpread$2({}, props), {}, {
3020
+ children: /*#__PURE__*/jsx(Arrow, {
3021
+ color: theme.kitt.tooltip.backgroundColor
3022
+ })
3023
+ }));
2608
3024
  }
2609
3025
 
3026
+ var StyledArrow = /*#__PURE__*/styled(ArrowView).withConfig({
3027
+ displayName: "TooltipView__StyledArrow"
3028
+ })(["color:", ";transform:", ";"], function (_ref5) {
3029
+ var theme = _ref5.theme;
3030
+ return theme.kitt.tooltip.backgroundColor;
3031
+ }, function (_ref6) {
3032
+ var $position = _ref6.$position;
3033
+ return "rotate(".concat($position === 'bottom' ? 180 : 0, "deg)");
3034
+ });
3035
+ function TooltipView(_ref7) {
3036
+ var children = _ref7.children,
3037
+ position = _ref7.position;
3038
+ return /*#__PURE__*/jsxs(StyledTooltipView, {
3039
+ children: [position === 'bottom' ? /*#__PURE__*/jsx(StyledArrow, {
3040
+ $position: position
3041
+ }) : null, /*#__PURE__*/jsx(StyledTooltipContent, {
3042
+ children: /*#__PURE__*/jsx(Typography.Text, {
3043
+ base: "body",
3044
+ color: "white",
3045
+ children: children
3046
+ })
3047
+ }), position === 'top' ? /*#__PURE__*/jsx(StyledArrow, {
3048
+ $position: position
3049
+ }) : null]
3050
+ });
3051
+ }
3052
+
3053
+ var tooltipDefaultPosition = 'top';
3054
+
3055
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3056
+
3057
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3058
+ // Since the tooltip use absolute positionning, we need a parent to provide the relative root
3059
+ var TooltipContainer = /*#__PURE__*/styled.View.withConfig({
3060
+ displayName: "Tooltip__TooltipContainer"
3061
+ })(["position:relative;align-self:baseline;"]);
3062
+ // eslint-disable-next-line unicorn/expiring-todo-comments
3063
+ // TODO : update position on scroll in future iteration
3064
+ function Tooltip(_ref) {
3065
+ var children = _ref.children,
3066
+ defaultVisible = _ref.defaultVisible,
3067
+ _ref$position = _ref.position,
3068
+ position = _ref$position === void 0 ? tooltipDefaultPosition : _ref$position,
3069
+ content = _ref.content,
3070
+ floatingPadding = _ref.floatingPadding,
3071
+ onUpdate = _ref.onUpdate;
3072
+ var theme = /*#__PURE__*/useTheme();
3073
+ var padding = floatingPadding || theme.kitt.tooltip.floatingPadding;
3074
+ var pressed = useSharedValue(defaultVisible);
3075
+ var opacityStyles = useAnimatedStyle(function () {
3076
+ var _f = function () {
3077
+ return {
3078
+ opacity: withSpring(pressed.value ? theme.kitt.tooltip.opacity : 0)
3079
+ };
3080
+ };
3081
+
3082
+ _f._closure = {
3083
+ withSpring: withSpring,
3084
+ pressed: pressed,
3085
+ theme: {
3086
+ kitt: {
3087
+ tooltip: {
3088
+ opacity: theme.kitt.tooltip.opacity
3089
+ }
3090
+ }
3091
+ }
3092
+ };
3093
+ _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0)};}}";
3094
+ _f.__workletHash = 15953928507970;
3095
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (57:41)";
3096
+ _f.__optimalization = 2;
3097
+
3098
+ global.__reanimatedWorkletInit(_f);
3099
+
3100
+ return _f;
3101
+ }());
3102
+
3103
+ var _useFloating = useFloating({
3104
+ placement: position,
3105
+ middleware: [offset(padding), shift(), flip({
3106
+ padding: padding
3107
+ })]
3108
+ }),
3109
+ x = _useFloating.x,
3110
+ y = _useFloating.y,
3111
+ reference = _useFloating.reference,
3112
+ floating = _useFloating.floating,
3113
+ update = _useFloating.update,
3114
+ refs = _useFloating.refs,
3115
+ middlewareData = _useFloating.middlewareData;
3116
+
3117
+ useEffect(function () {
3118
+ if (!onUpdate) return;
3119
+ onUpdate({
3120
+ x: x,
3121
+ y: y,
3122
+ reference: reference,
3123
+ floating: floating,
3124
+ strategy: 'absolute',
3125
+ update: update,
3126
+ refs: refs,
3127
+ middlewareData: middlewareData
3128
+ });
3129
+ }, [x, y, reference, floating, update, refs, middlewareData, onUpdate]);
3130
+ return /*#__PURE__*/jsxs(TooltipContainer, {
3131
+ children: [/*#__PURE__*/jsx(View, {
3132
+ ref: reference,
3133
+ children: /*#__PURE__*/jsx(Pressable, {
3134
+ accessibilityRole: "button",
3135
+ onPress: function handlePress() {
3136
+ pressed.value = !pressed.value;
3137
+ },
3138
+ children: children
3139
+ })
3140
+ }), /*#__PURE__*/jsx(View, {
3141
+ ref: floating,
3142
+ accessibilityElementsHidden: !pressed.value,
3143
+ importantForAccessibility: pressed.value === true ? 'auto' : 'no-hide-descendants',
3144
+ style: _objectSpread$1(_objectSpread$1({}, StyleSheet.absoluteFillObject), {}, {
3145
+ top: y && position === 'bottom' ? y : undefined,
3146
+ bottom: y && position === 'top' ? y : undefined,
3147
+ left: x !== null && x !== void 0 ? x : 0
3148
+ }),
3149
+ children: /*#__PURE__*/jsx(Animated$1.View, {
3150
+ style: [opacityStyles],
3151
+ children: /*#__PURE__*/jsx(TooltipView, {
3152
+ position: position,
3153
+ children: content
3154
+ })
3155
+ })
3156
+ })]
3157
+ });
3158
+ }
3159
+ Tooltip.View = TooltipView;
3160
+
2610
3161
  var StyledTypographyEmoji = /*#__PURE__*/styled(Emoji).withConfig({
2611
- displayName: "TypographyEmoji__StyledTypographyEmoji",
2612
- componentId: "kitt-universal__sc-1if5guu-0"
3162
+ displayName: "TypographyEmoji__StyledTypographyEmoji"
2613
3163
  })(["align-self:center;", ""], function (_ref) {
2614
3164
  var size = _ref.size;
2615
3165
  if (Platform.OS !== 'web') return undefined;
@@ -2619,58 +3169,79 @@ var StyledTypographyEmoji = /*#__PURE__*/styled(Emoji).withConfig({
2619
3169
  });
2620
3170
  function TypographyEmoji(_ref2) {
2621
3171
  var emoji = _ref2.emoji,
2622
- _ref2$base = _ref2.base,
2623
- base = _ref2$base === void 0 ? 'body' : _ref2$base;
3172
+ base = _ref2.base,
3173
+ small = _ref2.small,
3174
+ medium = _ref2.medium,
3175
+ large = _ref2.large;
2624
3176
  var theme = /*#__PURE__*/useTheme();
2625
- var dimensions = getDimensions(base, theme);
2626
- var fontSize = dimensions.baseAndSmall.fontSize;
3177
+ var typeForCurrentWindowSize = useTypographyTypeForCurrentWindowSize(base, small, medium, large);
3178
+ var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
3179
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
3180
+ var fontSize = typeConfig[typeConfigKey].fontSize;
2627
3181
 
2628
3182
  if ((process.env.NODE_ENV !== "production")) {
2629
3183
  if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
2630
3184
  }
2631
3185
 
2632
- return /*#__PURE__*/React.createElement(StyledTypographyEmoji, {
3186
+ return /*#__PURE__*/jsx(StyledTypographyEmoji, {
2633
3187
  size: parseInt(fontSize.slice(0, -2), 10),
2634
3188
  emoji: emoji
2635
3189
  });
2636
3190
  }
2637
3191
 
2638
3192
  var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
2639
- var StyledLink = /*#__PURE__*/styled(PrimitiveLink).withConfig({
2640
- shouldForwardProp: function shouldForwardProp(prop) {
2641
- return !['disabled', 'noUnderline'].includes(prop);
2642
- }
2643
- }).withConfig({
2644
- displayName: "TypographyLink__StyledLink",
2645
- componentId: "kitt-universal__sc-1o1zy30-0"
2646
- })(["text-decoration:", ";", ""], function (_ref) {
2647
- var noUnderline = _ref.noUnderline;
2648
- return noUnderline ? 'none' : 'underline';
3193
+
3194
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3195
+
3196
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3197
+ var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styledLinaria("span")({
3198
+ name: "TypographyLinkWebWrapper",
3199
+ "class": "tcwz3nt"
3200
+ }));
3201
+ var StyledLink = /*#__PURE__*/styled.Text.withConfig({
3202
+ displayName: "TypographyLink__StyledLink"
3203
+ })(["text-decoration:", ";", ";", ";"], function (_ref) {
3204
+ var $noUnderline = _ref.$noUnderline;
3205
+ return $noUnderline ? 'none' : 'underline';
2649
3206
  }, function (_ref2) {
2650
- var disabled = _ref2.disabled,
2651
- theme = _ref2.theme,
2652
- noUnderline = _ref2.noUnderline;
2653
- return "\n ".concat(disabled ? "color: ".concat(theme.kitt.typography.link.disabledColor, ";") : '', "\n ").concat(Platform.OS === 'web' ? "\n text-decoration-color: inherit;\n transition: color 0.2s ease-in-out;\n cursor: ".concat(disabled ? 'not-allowed' : 'pointer', ";\n\n\n &:hover, &:active, .kitt-hover & {\n text-decoration: ").concat(noUnderline ? 'underline' : 'none', ";\n }\n ") : '');
3207
+ var $disabled = _ref2.$disabled;
3208
+ if (Platform.OS !== 'web') return undefined;
3209
+ return "\n text-decoration-color: inherit;\n transition: color 0.2s ease-in-out;\n cursor: ".concat($disabled ? 'not-allowed' : 'pointer', ";\n ");
3210
+ }, function (_ref3) {
3211
+ var $disabled = _ref3.$disabled,
3212
+ theme = _ref3.theme;
3213
+ if (!$disabled) return undefined;
3214
+ return "color: ".concat(theme.kitt.typography.link.disabledColor, ";");
2654
3215
  });
2655
- function TypographyLink(_ref3) {
2656
- var children = _ref3.children,
2657
- disabled = _ref3.disabled,
2658
- noUnderline = _ref3.noUnderline,
2659
- href = _ref3.href,
2660
- hrefAttrs = _ref3.hrefAttrs,
2661
- onPress = _ref3.onPress,
2662
- otherProps = _objectWithoutProperties(_ref3, _excluded$1);
2663
-
2664
- return /*#__PURE__*/React.createElement(Typography, _extends({}, otherProps, {
2665
- accessibilityRole: "none"
2666
- }), /*#__PURE__*/React.createElement(StyledLink, {
2667
- disabled: disabled,
2668
- noUnderline: noUnderline,
2669
- href: href,
2670
- hrefAttrs: hrefAttrs,
2671
- accessibilityRole: "link",
2672
- onPress: disabled ? undefined : onPress
2673
- }, children));
3216
+ function TypographyLink(_ref4) {
3217
+ var children = _ref4.children,
3218
+ disabled = _ref4.disabled,
3219
+ noUnderline = _ref4.noUnderline,
3220
+ href = _ref4.href,
3221
+ hrefAttrs = _ref4.hrefAttrs,
3222
+ onPress = _ref4.onPress,
3223
+ otherProps = _objectWithoutProperties(_ref4, _excluded$1);
3224
+
3225
+ return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, otherProps), {}, {
3226
+ accessibilityRole: "none",
3227
+ children: /*#__PURE__*/jsx(StyleWebWrapper, {
3228
+ as: TypographyLinkWebWrapper,
3229
+ "data-nounderline": noUnderline ? true : undefined,
3230
+ children: /*#__PURE__*/jsx(StyledLink, {
3231
+ $disabled: disabled,
3232
+ $noUnderline: noUnderline,
3233
+ href: href,
3234
+ hrefAttrs: hrefAttrs,
3235
+ accessibilityRole: "link",
3236
+ dataSet: {
3237
+ // remove data-kitt-universal when we delete kitt web. See See :global(a) in Link styles.module.css
3238
+ 'kitt-universal': 'true'
3239
+ },
3240
+ onPress: disabled ? undefined : onPress,
3241
+ children: children
3242
+ })
3243
+ })
3244
+ }));
2674
3245
  }
2675
3246
 
2676
3247
  function matchWindowSize(currentWidth, _ref) {
@@ -2742,9 +3313,10 @@ function useKittTheme() {
2742
3313
  function KittThemeProvider(_ref) {
2743
3314
  var children = _ref.children;
2744
3315
  var theme = useKittTheme();
2745
- return /*#__PURE__*/React.createElement(ThemeProvider, {
2746
- theme: theme
2747
- }, children);
3316
+ return /*#__PURE__*/jsx(ThemeProvider, {
3317
+ theme: theme,
3318
+ children: children
3319
+ });
2748
3320
  }
2749
3321
  var KittThemeDecorator = makeDecorator({
2750
3322
  name: 'ThemeDecorator',
@@ -2752,17 +3324,9 @@ var KittThemeDecorator = makeDecorator({
2752
3324
  wrapper: function wrapper(storyFn, context, _ref2) {
2753
3325
  _ref2.options;
2754
3326
  _ref2.parameters;
2755
- return /*#__PURE__*/React.createElement(KittThemeProvider, null, storyFn(context));
2756
- }
2757
- });
2758
-
2759
- var SafeAreaProviderDecorator = makeDecorator({
2760
- name: 'SafeAreaProviderDecorator',
2761
- parameterName: 'safeAreaProvider',
2762
- wrapper: function wrapper(storyFn, context, _ref) {
2763
- _ref.options;
2764
- _ref.parameters;
2765
- return /*#__PURE__*/React.createElement(SafeAreaProvider, null, storyFn(context));
3327
+ return /*#__PURE__*/jsx(KittThemeProvider, {
3328
+ children: storyFn(context)
3329
+ });
2766
3330
  }
2767
3331
  });
2768
3332
 
@@ -2773,8 +3337,10 @@ function MatchWindowSize(_ref) {
2773
3337
 
2774
3338
  var match = useMatchWindowSize(matchWindowSizeOptions);
2775
3339
  if (!match) return null;
2776
- return /*#__PURE__*/React.createElement(React.Fragment, null, children);
3340
+ return /*#__PURE__*/jsx(Fragment$1, {
3341
+ children: children
3342
+ });
2777
3343
  }
2778
3344
 
2779
- export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, PrimitiveImage, PrimitiveLink, PrimitivePressable, PrimitiveScrollView, PrimitiveText, PrimitiveView, Radio, SafeAreaProviderDecorator, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor };
3345
+ export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor };
2780
3346
  //# sourceMappingURL=index-browser-all.es.js.map