@ornikar/kitt-universal 2.3.0 → 3.0.0-beta.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 (156) hide show
  1. package/CHANGELOG.md +131 -0
  2. package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
  3. package/dist/definitions/Button/Button.d.ts +4 -4
  4. package/dist/definitions/Button/Button.d.ts.map +1 -1
  5. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  6. package/dist/definitions/Button/ButtonPressable.d.ts +4 -3
  7. package/dist/definitions/Button/ButtonPressable.d.ts.map +1 -1
  8. package/dist/definitions/Card/Card.d.ts.map +1 -1
  9. package/dist/definitions/Emoji/Emoji.d.ts +8 -0
  10. package/dist/definitions/Emoji/Emoji.d.ts.map +1 -0
  11. package/dist/definitions/ExternalLink/ExternalLink.d.ts +3 -3
  12. package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -1
  13. package/dist/definitions/ExternalLink/ExternalLink.web.d.ts.map +1 -1
  14. package/dist/definitions/FullScreenModal/Body.d.ts.map +1 -1
  15. package/dist/definitions/FullScreenModal/FullScreenModal.d.ts.map +1 -1
  16. package/dist/definitions/FullScreenModal/Header.d.ts.map +1 -1
  17. package/dist/definitions/Icon/Icon.d.ts.map +1 -1
  18. package/dist/definitions/Icon/SpinningIcon.web.d.ts +3 -2
  19. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  20. package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
  21. package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -1
  22. package/dist/definitions/IconButton/PressableAnimatedContainer.web.d.ts.map +1 -1
  23. package/dist/definitions/IconButton/PressableIconButton.d.ts +4 -4
  24. package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -1
  25. package/dist/definitions/ListItem/ListItem.d.ts +3 -4
  26. package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
  27. package/dist/definitions/ListItem/ListItemContent.d.ts +2 -2
  28. package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
  29. package/dist/definitions/ListItem/ListItemSideContent.d.ts +3 -4
  30. package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
  31. package/dist/definitions/Loader/LargeLoader.d.ts.map +1 -1
  32. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +1 -1
  33. package/dist/definitions/Loader/Loader.d.ts.map +1 -1
  34. package/dist/definitions/Loader/Loader.web.d.ts.map +1 -1
  35. package/dist/definitions/Message/Message.d.ts.map +1 -1
  36. package/dist/definitions/Modal/Body.d.ts.map +1 -1
  37. package/dist/definitions/Modal/Footer.d.ts.map +1 -1
  38. package/dist/definitions/Modal/Header.d.ts.map +1 -1
  39. package/dist/definitions/Modal/Modal.d.ts.map +1 -1
  40. package/dist/definitions/Notification/Notification.d.ts.map +1 -1
  41. package/dist/definitions/Overlay/Overlay.d.ts +2 -2
  42. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  43. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  44. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +12 -0
  45. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -0
  46. package/dist/definitions/TimePicker/TimePicker.d.ts +15 -0
  47. package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -0
  48. package/dist/definitions/TimePicker/TimePicker.web.d.ts +3 -0
  49. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -0
  50. package/dist/definitions/TimePicker/useTimePicker.d.ts +14 -0
  51. package/dist/definitions/TimePicker/useTimePicker.d.ts.map +1 -0
  52. package/dist/definitions/Tooltip/Tooltip.d.ts +23 -3
  53. package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
  54. package/dist/definitions/Tooltip/Tooltip.web.d.ts +8 -0
  55. package/dist/definitions/Tooltip/Tooltip.web.d.ts.map +1 -0
  56. package/dist/definitions/Tooltip/TooltipView.d.ts +8 -0
  57. package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -0
  58. package/dist/definitions/Tooltip/tooltipUtils.d.ts +5 -0
  59. package/dist/definitions/Tooltip/tooltipUtils.d.ts.map +1 -0
  60. package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts.map +1 -1
  61. package/dist/definitions/forms/InputField/InputField.d.ts.map +1 -1
  62. package/dist/definitions/forms/InputText/InputText.d.ts +3 -2
  63. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  64. package/dist/definitions/forms/Label/Label.d.ts.map +1 -1
  65. package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
  66. package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
  67. package/dist/definitions/index.d.ts +7 -13
  68. package/dist/definitions/index.d.ts.map +1 -1
  69. package/dist/definitions/story-components/Flex.d.ts +2 -2
  70. package/dist/definitions/story-components/Flex.d.ts.map +1 -1
  71. package/dist/definitions/story-components/Story.d.ts.map +1 -1
  72. package/dist/definitions/story-components/StoryBlock.d.ts +1 -2
  73. package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
  74. package/dist/definitions/story-components/StoryContainer.d.ts.map +1 -1
  75. package/dist/definitions/story-components/StoryContainer.web.d.ts.map +1 -1
  76. package/dist/definitions/story-components/StoryDecorator.d.ts +3 -3
  77. package/dist/definitions/story-components/StoryDecorator.d.ts.map +1 -1
  78. package/dist/definitions/story-components/StoryGrid.d.ts.map +1 -1
  79. package/dist/definitions/story-components/StorySection.d.ts +7 -9
  80. package/dist/definitions/story-components/StorySection.d.ts.map +1 -1
  81. package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
  82. package/dist/definitions/themes/default.d.ts +3 -6
  83. package/dist/definitions/themes/default.d.ts.map +1 -1
  84. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +1 -0
  85. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
  86. package/dist/definitions/themes/late-ocean/tooltip.d.ts +10 -0
  87. package/dist/definitions/themes/late-ocean/tooltip.d.ts.map +1 -0
  88. package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts +6 -8
  89. package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +1 -1
  90. package/dist/definitions/typography/Typography.d.ts +19 -7
  91. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  92. package/dist/definitions/typography/TypographyEmoji.d.ts +7 -0
  93. package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -0
  94. package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
  95. package/dist/definitions/typography/TypographyLink.d.ts +6 -9
  96. package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
  97. package/dist/definitions/useKittTheme.d.ts +8 -1
  98. package/dist/definitions/useKittTheme.d.ts.map +1 -1
  99. package/dist/definitions/utils/StyleWebWrapper.d.ts +7 -0
  100. package/dist/definitions/utils/StyleWebWrapper.d.ts.map +1 -0
  101. package/dist/definitions/utils/storybook/{decorators/KittThemeDecorator.d.ts → KittThemeDecorator.d.ts} +1 -1
  102. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -0
  103. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +2 -2
  104. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
  105. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts +1 -0
  106. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts.map +1 -1
  107. package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts.map +1 -1
  108. package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +2 -2
  109. package/dist/definitions/utils/withTheme.d.ts +7 -0
  110. package/dist/definitions/utils/withTheme.d.ts.map +1 -0
  111. package/dist/index-browser-all.es.android.js +1347 -595
  112. package/dist/index-browser-all.es.android.js.map +1 -1
  113. package/dist/index-browser-all.es.css +2 -0
  114. package/dist/index-browser-all.es.ios.js +1348 -596
  115. package/dist/index-browser-all.es.ios.js.map +1 -1
  116. package/dist/index-browser-all.es.js +1318 -672
  117. package/dist/index-browser-all.es.js.map +1 -1
  118. package/dist/index-browser-all.es.web.js +1173 -812
  119. package/dist/index-browser-all.es.web.js.map +1 -1
  120. package/dist/index-node-14.17.cjs.css +2 -0
  121. package/dist/index-node-14.17.cjs.js +1168 -591
  122. package/dist/index-node-14.17.cjs.js.map +1 -1
  123. package/dist/styles.css +4 -0
  124. package/dist/tsbuildinfo +1 -1
  125. package/package.json +18 -7
  126. package/translations/es-ES.json +3 -0
  127. package/translations/fr-FR.json +3 -0
  128. package/dist/definitions/primitives/PrimitiveLink.d.ts +0 -13
  129. package/dist/definitions/primitives/PrimitiveLink.d.ts.map +0 -1
  130. package/dist/definitions/primitives/PrimitiveLink.web.d.ts +0 -4
  131. package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +0 -1
  132. package/dist/definitions/primitives/PrimitivePressable.d.ts +0 -18
  133. package/dist/definitions/primitives/PrimitivePressable.d.ts.map +0 -1
  134. package/dist/definitions/primitives/PrimitivePressable.web.d.ts +0 -4
  135. package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +0 -1
  136. package/dist/definitions/primitives/PrimitiveScrollView.d.ts +0 -8
  137. package/dist/definitions/primitives/PrimitiveScrollView.d.ts.map +0 -1
  138. package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts +0 -4
  139. package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts.map +0 -1
  140. package/dist/definitions/primitives/PrimitiveText.d.ts +0 -14
  141. package/dist/definitions/primitives/PrimitiveText.d.ts.map +0 -1
  142. package/dist/definitions/primitives/PrimitiveText.web.d.ts +0 -6
  143. package/dist/definitions/primitives/PrimitiveText.web.d.ts.map +0 -1
  144. package/dist/definitions/primitives/PrimitiveView.d.ts +0 -23
  145. package/dist/definitions/primitives/PrimitiveView.d.ts.map +0 -1
  146. package/dist/definitions/primitives/PrimitiveView.web.d.ts +0 -27
  147. package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +0 -1
  148. package/dist/definitions/primitives/helpers.d.ts +0 -7
  149. package/dist/definitions/primitives/helpers.d.ts.map +0 -1
  150. package/dist/definitions/primitives/reset.d.ts +0 -2
  151. package/dist/definitions/primitives/reset.d.ts.map +0 -1
  152. package/dist/definitions/utils/storybook/decorators/KittThemeDecorator.d.ts.map +0 -1
  153. package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts +0 -2
  154. package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts.map +0 -1
  155. package/dist/definitions/utils/storybook/setup-global-decorators.d.ts +0 -2
  156. package/dist/definitions/utils/storybook/setup-global-decorators.d.ts.map +0 -1
@@ -1,20 +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, forwardRef, Fragment, useMemo } from 'react';
6
- import { View, Animated, Easing, Text as Text$1, Image, Pressable, Linking, TextInput, Platform, 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';
11
+ import { parse } from 'twemoji-parser';
10
12
  import { openBrowserAsync } from 'expo-web-browser';
11
- 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';
12
15
  import Animated$1, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
13
- 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';
14
19
  import { makeDecorator } from '@storybook/addons';
15
20
 
16
- var PrimitiveView = View;
17
-
18
21
  function SpinningIcon(_ref) {
19
22
  var children = _ref.children;
20
23
  var animationRef = useRef(new Animated.Value(0));
@@ -37,18 +40,18 @@ function SpinningIcon(_ref) {
37
40
  return undefined;
38
41
  };
39
42
  }, []);
40
- return /*#__PURE__*/React.createElement(Animated.View, {
43
+ return /*#__PURE__*/jsx(Animated.View, {
41
44
  style: {
42
45
  transform: [{
43
46
  rotate: rotation
44
47
  }]
45
- }
46
- }, children);
48
+ },
49
+ children: children
50
+ });
47
51
  }
48
52
 
49
- var IconContainer$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
50
- displayName: "Icon__IconContainer",
51
- componentId: "kitt-universal__sc-usm0ol-0"
53
+ var IconContainer$2 = /*#__PURE__*/styled.View.withConfig({
54
+ displayName: "Icon__IconContainer"
52
55
  })(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
53
56
  var color = _ref.color;
54
57
  return color;
@@ -70,93 +73,172 @@ function Icon(_ref5) {
70
73
  spin = _ref5.spin,
71
74
  align = _ref5.align,
72
75
  color = _ref5.color;
73
- var clonedIcon = /*#__PURE__*/React.cloneElement(icon, {
76
+ var clonedIcon = /*#__PURE__*/cloneElement(icon, {
74
77
  color: color
75
78
  });
76
- return /*#__PURE__*/React.createElement(IconContainer$2, {
79
+ return /*#__PURE__*/jsx(IconContainer$2, {
77
80
  align: align,
78
81
  size: size,
79
- color: color
80
- }, spin ? /*#__PURE__*/React.createElement(SpinningIcon, null, clonedIcon) : clonedIcon);
82
+ color: color,
83
+ children: spin ? /*#__PURE__*/jsx(SpinningIcon, {
84
+ children: clonedIcon
85
+ }) : clonedIcon
86
+ });
81
87
  }
82
88
 
83
- 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; }
84
140
 
85
- var _excluded$a = ["accessibilityRole", "base", "variant", "color"];
86
- 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);
87
143
  var TypographyColorContext = /*#__PURE__*/createContext('black');
88
144
  function useTypographyColor() {
89
145
  return useContext(TypographyColorContext);
90
146
  }
91
- var StyledTypography = /*#__PURE__*/styled(PrimitiveText).withConfig({
92
- displayName: "Typography__StyledTypography",
93
- 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"
94
172
  })(["", " ", ""], function (_ref) {
95
173
  var theme = _ref.theme,
96
- isHeader = _ref.isHeader,
97
- type = _ref.type,
98
- variant = _ref.variant;
174
+ $isHeader = _ref.$isHeader,
175
+ $typeForCurrentWindowSize = _ref.$typeForCurrentWindowSize,
176
+ $variant = _ref.$variant;
99
177
  var _theme$kitt$typograph = theme.kitt.typography.types,
100
178
  headers = _theme$kitt$typograph.headers,
101
179
  bodies = _theme$kitt$typograph.bodies;
102
- 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 ");
103
182
  }, function (_ref2) {
104
183
  var theme = _ref2.theme,
105
- color = _ref2.color;
106
- 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 ");
107
186
  });
187
+ function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
188
+ var _useWindowDimensions = useWindowDimensions(),
189
+ width = _useWindowDimensions.width;
108
190
 
109
- var isTypeHeader = function (type) {
110
- return type.startsWith('header');
111
- };
112
-
113
- var isTypographyHeader = function (base, typeInContext) {
114
- if (base) return isTypeHeader(base);
115
- if (typeInContext) return isTypeHeader(typeInContext);
116
- throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
117
- };
118
-
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
+ }
119
196
  function Typography(_ref3) {
120
197
  var accessibilityRole = _ref3.accessibilityRole,
121
198
  base = _ref3.base,
199
+ small = _ref3.small,
200
+ medium = _ref3.medium,
201
+ large = _ref3.large,
122
202
  variant = _ref3.variant,
123
203
  color = _ref3.color,
124
- otherProps = _objectWithoutProperties(_ref3, _excluded$a);
125
-
126
- var typeInContext = useContext(TypographyTypeContext);
127
- var isHeader = isTypographyHeader(base, typeInContext);
128
- var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
129
- var colorWithDefaultToBlack = color !== null && color !== void 0 ? color : typeInContext ? undefined : 'black';
130
- var content = base ?
131
- /*#__PURE__*/
132
- // use the type and pass the type to the context for children
133
- React.createElement(TypographyTypeContext.Provider, {
134
- value: base
135
- }, /*#__PURE__*/React.createElement(StyledTypography, _extends({
136
- color: colorWithDefaultToBlack,
137
- isHeader: isHeader,
138
- type: base,
139
- variant: nonNullableVariant,
140
- accessibilityRole: accessibilityRole || undefined
141
- }, otherProps))) : /*#__PURE__*/React.createElement(StyledTypography, _extends({
142
- color: colorWithDefaultToBlack,
143
- isHeader: isHeader,
144
- 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,
145
226
  accessibilityRole: accessibilityRole || undefined
146
227
  }, otherProps));
147
- return color ? /*#__PURE__*/React.createElement(TypographyColorContext.Provider, {
148
- value: color
149
- }, content) : content;
228
+ return color ? /*#__PURE__*/jsx(TypographyColorContext.Provider, {
229
+ value: color,
230
+ children: content
231
+ }) : content;
150
232
  }
151
233
 
152
234
  function TypographyText(props) {
153
- return /*#__PURE__*/React.createElement(Typography, _extends({
235
+ return /*#__PURE__*/jsx(Typography, _objectSpread$i({
154
236
  accessibilityRole: null
155
237
  }, props));
156
238
  }
157
239
 
158
240
  function TypographyParagraph(props) {
159
- return /*#__PURE__*/React.createElement(Typography, _extends({
241
+ return /*#__PURE__*/jsx(Typography, _objectSpread$i({
160
242
  accessibilityRole: "paragraph"
161
243
  }, props));
162
244
  }
@@ -164,10 +246,10 @@ function TypographyParagraph(props) {
164
246
  var createHeading = function (level, defaultBase) {
165
247
  // https://github.com/necolas/react-native-web/issues/401
166
248
  function TypographyHeading(props) {
167
- return /*#__PURE__*/React.createElement(Typography, _extends({
249
+ return /*#__PURE__*/jsx(Typography, _objectSpread$i(_objectSpread$i({
168
250
  accessibilityRole: "header",
169
251
  base: defaultBase
170
- }, props, {
252
+ }, props), {}, {
171
253
  accessibilityLevel: level
172
254
  }));
173
255
  }
@@ -200,7 +282,11 @@ Typography.h4 = createHeading(4, 'header4');
200
282
 
201
283
  Typography.h5 = createHeading(5, 'header5');
202
284
 
203
- 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; }
204
290
 
205
291
  var getFirstCharacter = function (string) {
206
292
  return string ? string[0] : '';
@@ -210,9 +296,8 @@ var getInitials = function (firstname, lastname) {
210
296
  return (getFirstCharacter(firstname) + getFirstCharacter(lastname)).toUpperCase();
211
297
  };
212
298
 
213
- var StyledAvatarView = /*#__PURE__*/styled(PrimitiveView).withConfig({
214
- displayName: "Avatar__StyledAvatarView",
215
- componentId: "kitt-universal__sc-9miubv-0"
299
+ var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
300
+ displayName: "Avatar__StyledAvatarView"
216
301
  })(["border-radius:", "px;background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
217
302
  var round = _ref.round,
218
303
  size = _ref.size;
@@ -238,7 +323,7 @@ function AvatarContent(_ref5) {
238
323
  light = _ref5.light;
239
324
 
240
325
  if (src) {
241
- return /*#__PURE__*/React.createElement(Image, {
326
+ return /*#__PURE__*/jsx(Image, {
242
327
  source: {
243
328
  uri: src
244
329
  },
@@ -250,15 +335,16 @@ function AvatarContent(_ref5) {
250
335
  }
251
336
 
252
337
  if (firstname && lastname) {
253
- return /*#__PURE__*/React.createElement(Typography.Text, {
338
+ return /*#__PURE__*/jsx(Typography.Text, {
254
339
  base: "body-small",
255
340
  variant: "bold",
256
- color: light ? 'black' : 'white'
257
- }, getInitials(firstname, lastname));
341
+ color: light ? 'black' : 'white',
342
+ children: getInitials(firstname, lastname)
343
+ });
258
344
  }
259
345
 
260
- return /*#__PURE__*/React.createElement(Icon, {
261
- icon: /*#__PURE__*/React.createElement(UserIcon, null),
346
+ return /*#__PURE__*/jsx(Icon, {
347
+ icon: /*#__PURE__*/jsx(UserIcon, {}),
262
348
  color: light ? 'black' : 'white',
263
349
  size: size / 2
264
350
  });
@@ -267,32 +353,37 @@ function AvatarContent(_ref5) {
267
353
  function Avatar(_ref6) {
268
354
  var _ref6$size = _ref6.size,
269
355
  size = _ref6$size === void 0 ? 40 : _ref6$size,
270
- rest = _objectWithoutProperties(_ref6, _excluded$9);
356
+ rest = _objectWithoutProperties(_ref6, _excluded$b);
271
357
 
272
- return /*#__PURE__*/React.createElement(StyledAvatarView, _extends({}, rest, {
273
- size: size
274
- }), /*#__PURE__*/React.createElement(AvatarContent, _extends({}, rest, {
275
- size: size
276
- })));
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
+ }));
277
364
  }
278
365
 
279
- var _excluded$8 = ["color"],
366
+ var _excluded$a = ["color"],
280
367
  _excluded2$2 = ["color"];
281
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
+
282
373
  function TypographyIconInheritColor(props) {
283
374
  var color = useTypographyColor();
284
375
  var theme = /*#__PURE__*/useTheme();
285
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
376
+ return /*#__PURE__*/jsx(Icon, _objectSpread$g(_objectSpread$g({}, props), {}, {
286
377
  color: theme.kitt.typography.colors[color]
287
378
  }));
288
379
  }
289
380
 
290
381
  function TypographyIconSpecifiedColor(_ref) {
291
382
  var color = _ref.color,
292
- otherProps = _objectWithoutProperties(_ref, _excluded$8);
383
+ otherProps = _objectWithoutProperties(_ref, _excluded$a);
293
384
 
294
385
  var theme = /*#__PURE__*/useTheme();
295
- return /*#__PURE__*/React.createElement(Icon, _extends({}, otherProps, {
386
+ return /*#__PURE__*/jsx(Icon, _objectSpread$g(_objectSpread$g({}, otherProps), {}, {
296
387
  color: theme.kitt.typography.colors[color]
297
388
  }));
298
389
  }
@@ -302,14 +393,18 @@ function TypographyIcon(_ref2) {
302
393
  otherProps = _objectWithoutProperties(_ref2, _excluded2$2);
303
394
 
304
395
  if (color) {
305
- return /*#__PURE__*/React.createElement(TypographyIconSpecifiedColor, _extends({
396
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$g({
306
397
  color: color
307
398
  }, otherProps));
308
399
  }
309
400
 
310
- return /*#__PURE__*/React.createElement(TypographyIconInheritColor, otherProps);
401
+ return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$g({}, otherProps));
311
402
  }
312
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
+
313
408
  var getTextColorByType = function (type, isPressed, disabled) {
314
409
  if (disabled) return 'black-light';
315
410
 
@@ -330,20 +425,17 @@ var getTextColorByType = function (type, isPressed, disabled) {
330
425
  };
331
426
 
332
427
  var ButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
333
- displayName: "ButtonContent__ButtonText",
334
- componentId: "kitt-universal__sc-dnyw3n-0"
428
+ displayName: "ButtonContent__ButtonText"
335
429
  })(["text-align:center;"]);
336
- var Content$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
337
- displayName: "ButtonContent__Content",
338
- componentId: "kitt-universal__sc-dnyw3n-1"
430
+ var Content$1 = /*#__PURE__*/styled.View.withConfig({
431
+ displayName: "ButtonContent__Content"
339
432
  })(["flex-direction:row;align-items:center;justify-content:center;flex:", ";"], function (_ref) {
340
433
  var stretch = _ref.stretch,
341
434
  iconOnly = _ref.iconOnly;
342
435
  return "".concat(stretch || iconOnly ? 1 : 0, " 1 auto");
343
436
  });
344
- var IconContainer$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
345
- displayName: "ButtonContent__IconContainer",
346
- componentId: "kitt-universal__sc-dnyw3n-2"
437
+ var IconContainer$1 = /*#__PURE__*/styled.View.withConfig({
438
+ displayName: "ButtonContent__IconContainer"
347
439
  })(["", ""], function (_ref2) {
348
440
  var theme = _ref2.theme,
349
441
  iconPosition = _ref2.iconPosition;
@@ -363,15 +455,16 @@ function ButtonIcon(_ref3) {
363
455
  size = _ref3.size,
364
456
  iconPosition = _ref3.iconPosition,
365
457
  testID = _ref3.testID;
366
- return /*#__PURE__*/React.createElement(IconContainer$1, {
367
- iconPosition: iconPosition
368
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
369
- icon: icon,
370
- spin: spin,
371
- color: color,
372
- size: size,
373
- testID: testID
374
- }));
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
+ });
375
468
  }
376
469
 
377
470
  function ButtonContent(_ref4) {
@@ -398,35 +491,35 @@ function ButtonContent(_ref4) {
398
491
  }
399
492
 
400
493
  if (!children) {
401
- return /*#__PURE__*/React.createElement(Content$1, {
494
+ return /*#__PURE__*/jsx(Content$1, {
402
495
  iconOnly: true,
403
- stretch: stretch
404
- }, /*#__PURE__*/React.createElement(TypographyIcon, _extends({}, sharedIconProps, {
405
- icon: icon
406
- })));
496
+ stretch: stretch,
497
+ children: /*#__PURE__*/jsx(TypographyIcon, _objectSpread$f(_objectSpread$f({}, sharedIconProps), {}, {
498
+ icon: icon
499
+ }))
500
+ });
407
501
  }
408
502
 
409
- return /*#__PURE__*/React.createElement(Content$1, {
410
- stretch: stretch
411
- }, icon && iconPosition === 'left' ? /*#__PURE__*/React.createElement(ButtonIcon, _extends({}, sharedIconProps, {
412
- icon: icon,
413
- iconPosition: iconPosition,
414
- testID: "button-left-icon"
415
- })) : null, /*#__PURE__*/React.createElement(ButtonText, {
416
- base: "body",
417
- color: color,
418
- variant: "bold"
419
- }, children), icon && iconPosition === 'right' ? /*#__PURE__*/React.createElement(ButtonIcon, _extends({}, sharedIconProps, {
420
- icon: icon,
421
- iconPosition: iconPosition
422
- })) : 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
+ });
423
519
  }
424
520
 
425
- var PrimitivePressable = Pressable;
426
-
427
- var ButtonPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
428
- displayName: "ButtonPressable",
429
- componentId: "kitt-universal__sc-7ckel6-0"
521
+ var ButtonPressable = /*#__PURE__*/styled.Pressable.withConfig({
522
+ displayName: "ButtonPressable"
430
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) {
431
524
  var theme = _ref.theme;
432
525
  return theme.kitt.button.minWidth;
@@ -467,6 +560,9 @@ var ButtonPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
467
560
  return theme.kitt.button.borderWidth;
468
561
  });
469
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; }
470
566
  function Button(_ref) {
471
567
  var children = _ref.children,
472
568
  _ref$type = _ref.type,
@@ -492,10 +588,10 @@ function Button(_ref) {
492
588
  stretch: stretch,
493
589
  disabled: disabled
494
590
  };
495
- 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
496
592
  // TODO: When designs are defined, update with the proper onPress styles to mimic TouchableHighlight
497
593
  // underlayColor={globalTheme.button[type].pressedBackgroundColor}
498
- , _extends({}, sharedProps, {
594
+ , _objectSpread$e(_objectSpread$e({}, sharedProps), {}, {
499
595
  isPressed: isPressed,
500
596
  accessibilityRole: "button",
501
597
  testID: testID,
@@ -507,17 +603,18 @@ function Button(_ref) {
507
603
  },
508
604
  onPressOut: function handleButtonPressOut() {
509
605
  return setIsPressed(false);
510
- }
511
- }), /*#__PURE__*/React.createElement(ButtonContent, _extends({}, sharedProps, {
512
- icon: icon,
513
- iconPosition: iconPosition,
514
- iconSpin: iconSpin
515
- }), 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
+ }));
516
614
  }
517
615
 
518
- var Container$5 = /*#__PURE__*/styled(PrimitiveView).withConfig({
519
- displayName: "Card__Container",
520
- componentId: "kitt-universal__sc-1n9psug-0"
616
+ var Container$6 = /*#__PURE__*/styled.View.withConfig({
617
+ displayName: "Card__Container"
521
618
  })(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
522
619
  var theme = _ref.theme,
523
620
  type = _ref.type;
@@ -539,9 +636,44 @@ var Container$5 = /*#__PURE__*/styled(PrimitiveView).withConfig({
539
636
  function Card(_ref6) {
540
637
  var children = _ref6.children,
541
638
  type = _ref6.type;
542
- return /*#__PURE__*/React.createElement(Container$5, {
543
- type: type
544
- }, children);
639
+ return /*#__PURE__*/jsx(Container$6, {
640
+ type: type,
641
+ children: children
642
+ });
643
+ }
644
+
645
+ var StyledEmoji = /*#__PURE__*/styled.Image.withConfig({
646
+ displayName: "Emoji__StyledEmoji"
647
+ })(["width:", "px;height:", "px;"], function (_ref) {
648
+ var size = _ref.size;
649
+ return size;
650
+ }, function (_ref2) {
651
+ var size = _ref2.size;
652
+ return size;
653
+ });
654
+ function Emoji(_ref3) {
655
+ var emoji = _ref3.emoji,
656
+ size = _ref3.size,
657
+ style = _ref3.style;
658
+
659
+ var _useMemo = useMemo(function () {
660
+ return parse(emoji, {
661
+ // on native plaforms, you can't display svg as Image
662
+ assetType: Platform.OS === 'web' ? 'svg' : 'png'
663
+ });
664
+ }, [emoji]),
665
+ _useMemo2 = _slicedToArray(_useMemo, 1),
666
+ emojiData = _useMemo2[0];
667
+
668
+ if (!emojiData) return null;
669
+ return /*#__PURE__*/jsx(StyledEmoji, {
670
+ size: size,
671
+ accessibilityLabel: emojiData.text,
672
+ source: {
673
+ uri: emojiData.url
674
+ },
675
+ style: style
676
+ });
545
677
  }
546
678
 
547
679
  var defaultOpenLinkBehavior = {
@@ -549,16 +681,20 @@ var defaultOpenLinkBehavior = {
549
681
  web: 'targetBlank'
550
682
  };
551
683
 
552
- 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; }
553
689
  function ExternalLink(_ref) {
554
690
  var Component = _ref.as,
555
691
  href = _ref.href,
556
692
  _ref$openLinkBehavior = _ref.openLinkBehavior,
557
693
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
558
694
  onPress = _ref.onPress,
559
- rest = _objectWithoutProperties(_ref, _excluded$7);
695
+ rest = _objectWithoutProperties(_ref, _excluded$9);
560
696
 
561
- return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
697
+ return /*#__PURE__*/jsx(Component, _objectSpread$d(_objectSpread$d({}, rest), {}, {
562
698
  onPress: function handleOnPress() {
563
699
  if (onPress) onPress();
564
700
  if (!href) return;
@@ -566,13 +702,13 @@ function ExternalLink(_ref) {
566
702
  switch (openLinkBehavior["native"]) {
567
703
  case 'openInModal':
568
704
  case undefined:
569
- Linking.openURL(href)["catch"](function (err) {
705
+ openBrowserAsync(href)["catch"](function (err) {
570
706
  console.error("An error occurred while opening ".concat(href), err);
571
707
  });
572
708
  break;
573
709
 
574
710
  case 'openBrowserApp':
575
- openBrowserAsync(href)["catch"](function (err) {
711
+ Linking.openURL(href)["catch"](function (err) {
576
712
  console.error("An error occurred while opening ".concat(href), err);
577
713
  });
578
714
  break;
@@ -601,84 +737,33 @@ function InputFeedback(_ref) {
601
737
  var state = _ref.state,
602
738
  testID = _ref.testID,
603
739
  children = _ref.children;
604
- return /*#__PURE__*/React.createElement(Typography.Text, {
740
+ return /*#__PURE__*/jsx(Typography.Text, {
605
741
  base: "body-small",
606
742
  color: getColorFromState(state),
607
- testID: testID
608
- }, children);
743
+ testID: testID,
744
+ children: children
745
+ });
609
746
  }
610
747
 
611
- var KittBreakpoints = {
612
- /**
613
- * min-width: 0
614
- */
615
- BASE: 0,
616
-
617
- /**
618
- * min-width: 480px
619
- */
620
- SMALL: 480,
621
-
622
- /**
623
- * min-width: 768px
624
- */
625
- MEDIUM: 768,
626
-
627
- /**
628
- * min-width: 1024px
629
- */
630
- LARGE: 1024,
631
-
632
- /**
633
- * min-width: 1280px
634
- */
635
- WIDE: 1280
636
- };
637
- var KittBreakpointsMax = {
638
- /**
639
- * max-width: 479px
640
- */
641
- BASE: KittBreakpoints.SMALL - 1,
642
-
643
- /**
644
- * max-width: 767px
645
- */
646
- SMALL: KittBreakpoints.MEDIUM - 1,
647
-
648
- /**
649
- * max-width: 1023px
650
- */
651
- MEDIUM: KittBreakpoints.LARGE - 1,
652
-
653
- /**
654
- * max-width: 1279px
655
- */
656
- LARGE: KittBreakpoints.WIDE - 1
657
- };
658
-
659
- var FieldContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
660
- displayName: "InputField__FieldContainer",
661
- componentId: "kitt-universal__sc-13fkixs-0"
748
+ var FieldContainer = /*#__PURE__*/styled.View.withConfig({
749
+ displayName: "InputField__FieldContainer"
662
750
  })(["padding:5px 0 10px;"]);
663
- var FeedbackContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
664
- displayName: "InputField__FeedbackContainer",
665
- componentId: "kitt-universal__sc-13fkixs-1"
751
+ var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
752
+ displayName: "InputField__FeedbackContainer"
666
753
  })(["", ";"], function (_ref) {
667
754
  var theme = _ref.theme;
668
755
  return theme.responsive.ifWindowSizeMatches({
669
756
  minWidth: KittBreakpoints.SMALL
670
757
  }, 'padding-top: 10px', 'padding-top: 5px');
671
758
  });
672
- var FieldLabelContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
673
- displayName: "InputField__FieldLabelContainer",
674
- componentId: "kitt-universal__sc-13fkixs-2"
759
+ var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
760
+ displayName: "InputField__FieldLabelContainer"
675
761
  })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
676
762
  var theme = _ref2.theme;
677
763
  return theme.kitt.forms.inputField.labelContainerPaddingBottom;
678
764
  });
679
- var LabelContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
680
- displayName: "InputField__LabelContainer",
681
- componentId: "kitt-universal__sc-13fkixs-3"
765
+ var LabelContainer = /*#__PURE__*/styled.View.withConfig({
766
+ displayName: "InputField__LabelContainer"
682
767
  })(["margin-right:", "px;"], function (_ref3) {
683
768
  var theme = _ref3.theme;
684
769
  return theme.kitt.forms.inputField.iconMarginLeft;
@@ -688,7 +773,15 @@ function InputField(_ref4) {
688
773
  labelFeedback = _ref4.labelFeedback,
689
774
  input = _ref4.input,
690
775
  feedback = _ref4.feedback;
691
- 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
+ });
692
785
  }
693
786
 
694
787
  var useInputText = function () {
@@ -719,7 +812,11 @@ var useInputText = function () {
719
812
  };
720
813
  };
721
814
 
722
- 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; }
723
820
  var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
724
821
  var theme = _ref.theme,
725
822
  state = _ref.state;
@@ -736,7 +833,8 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
736
833
  return theme.kitt.forms.input.states[state].borderColor;
737
834
  }, function (_ref5) {
738
835
  var theme = _ref5.theme;
739
- 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;
740
838
  }, function (_ref6) {
741
839
  var theme = _ref6.theme,
742
840
  state = _ref6.state;
@@ -746,8 +844,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
746
844
  return theme.kitt.typography.types.bodies.fontFamily.regular;
747
845
  });
748
846
  var Input = /*#__PURE__*/styled(TextInput).withConfig({
749
- displayName: "InputText__Input",
750
- componentId: "kitt-universal__sc-uke279-0"
847
+ displayName: "InputText__Input"
751
848
  })(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
752
849
  var theme = _ref8.theme,
753
850
  multiline = _ref8.multiline;
@@ -755,14 +852,15 @@ var Input = /*#__PURE__*/styled(TextInput).withConfig({
755
852
  }, function (_ref9) {
756
853
  var theme = _ref9.theme,
757
854
  multiline = _ref9.multiline;
758
- 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;
759
858
  }, function (_ref10) {
760
859
  var minHeight = _ref10.minHeight;
761
860
  return minHeight;
762
861
  });
763
- var Container$4 = /*#__PURE__*/styled(PrimitiveView).withConfig({
764
- displayName: "InputText__Container",
765
- componentId: "kitt-universal__sc-uke279-1"
862
+ var Container$5 = /*#__PURE__*/styled.View.withConfig({
863
+ displayName: "InputText__Container"
766
864
  })(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
767
865
  var theme = _ref11.theme;
768
866
  return theme.kitt.forms.input.marginTop;
@@ -770,9 +868,8 @@ var Container$4 = /*#__PURE__*/styled(PrimitiveView).withConfig({
770
868
  var theme = _ref12.theme;
771
869
  return theme.kitt.forms.input.marginBottom;
772
870
  });
773
- var PasswordButtonContainer = /*#__PURE__*/styled(PrimitivePressable).withConfig({
774
- displayName: "InputText__PasswordButtonContainer",
775
- componentId: "kitt-universal__sc-uke279-2"
871
+ var PasswordButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
872
+ displayName: "InputText__PasswordButtonContainer"
776
873
  })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
777
874
  var theme = _ref13.theme;
778
875
  return theme.kitt.forms.input.passwordButtonIconSize / 2;
@@ -823,7 +920,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
823
920
  disabled = _ref15$disabled === void 0 ? false : _ref15$disabled,
824
921
  _onFocus = _ref15.onFocus,
825
922
  _onBlur = _ref15.onBlur,
826
- props = _objectWithoutProperties(_ref15, _excluded$6);
923
+ props = _objectWithoutProperties(_ref15, _excluded$8);
827
924
 
828
925
  var _useInputText = useInputText(),
829
926
  isFocused = _useInputText.isFocused,
@@ -838,51 +935,55 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
838
935
  isDisabled: disabled,
839
936
  formState: formState
840
937
  });
841
- return /*#__PURE__*/React.createElement(Container$4, null, /*#__PURE__*/React.createElement(Input, _extends({
842
- ref: ref,
843
- nativeID: id,
844
- editable: !disabled,
845
- keyboardType: keyboardTypeByTextInputType[type],
846
- autoCompleteType: autoCompleteTypeByType[type],
847
- autoCorrect: autoCorrectByType[type],
848
- minHeight: minHeight,
849
- textContentType: textContentTypeByType[type],
850
- placeholderTextColor: theme.kitt.typography.colors[theme.kitt.forms.input.placeholderColor],
851
- selectionColor: theme.kitt.forms.input.selectionColor,
852
- secureTextEntry: type === 'password' && !isPasswordVisible
853
- }, props, {
854
- state: state,
855
- onFocus: function onFocus(e) {
856
- handleInputFocus();
857
- if (_onFocus) _onFocus(e);
858
- },
859
- onBlur: function onBlur(e) {
860
- handleInputBlur();
861
- if (_onBlur) _onBlur(e);
862
- }
863
- })), type === 'password' && !disabled && /*#__PURE__*/React.createElement(PasswordButtonContainer, {
864
- accessibilityRole: "button",
865
- onPress: togglePasswordVisibility
866
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
867
- icon: isPasswordVisible ? /*#__PURE__*/React.createElement(EyeIcon, null) : /*#__PURE__*/React.createElement(EyeOffIcon, null),
868
- size: theme.kitt.forms.input.passwordButtonIconSize,
869
- color: theme.kitt.forms.input.states[state].passwordButtonIconColor
870
- })));
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
+ });
871
971
  });
872
972
 
873
973
  function Label(_ref) {
874
974
  var htmlFor = _ref.htmlFor,
875
975
  children = _ref.children;
876
- return /*#__PURE__*/React.createElement(Typography.Text, {
877
- base: "body"
878
- }, Platform.OS === 'web' ? /*#__PURE__*/React.createElement("label", {
879
- htmlFor: htmlFor
880
- }, 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
+ });
881
983
  }
882
984
 
883
- var OuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
884
- displayName: "Radio__OuterRadio",
885
- componentId: "kitt-universal__sc-1mdgr2o-0"
985
+ var OuterRadio = /*#__PURE__*/styled.View.withConfig({
986
+ displayName: "Radio__OuterRadio"
886
987
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
887
988
  var theme = _ref.theme,
888
989
  disabled = _ref.disabled;
@@ -904,9 +1005,8 @@ var OuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
904
1005
  disabled = _ref6.disabled;
905
1006
  return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
906
1007
  });
907
- var SelectedOuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
908
- displayName: "Radio__SelectedOuterRadio",
909
- componentId: "kitt-universal__sc-1mdgr2o-1"
1008
+ var SelectedOuterRadio = /*#__PURE__*/styled.View.withConfig({
1009
+ displayName: "Radio__SelectedOuterRadio"
910
1010
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
911
1011
  var theme = _ref7.theme;
912
1012
  return theme.kitt.forms.radio.checked.backgroundColor;
@@ -920,9 +1020,8 @@ var SelectedOuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
920
1020
  var theme = _ref10.theme;
921
1021
  return theme.kitt.forms.radio.size / 2;
922
1022
  });
923
- var SelectedInnerRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
924
- displayName: "Radio__SelectedInnerRadio",
925
- componentId: "kitt-universal__sc-1mdgr2o-2"
1023
+ var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
1024
+ displayName: "Radio__SelectedInnerRadio"
926
1025
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
927
1026
  var theme = _ref11.theme;
928
1027
  return theme.kitt.forms.radio.checked.innerBackgroundColor;
@@ -936,13 +1035,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
936
1035
  var theme = _ref14.theme;
937
1036
  return theme.kitt.forms.radio.checked.innerSize / 2;
938
1037
  });
939
- var Container$3 = /*#__PURE__*/styled(PrimitivePressable).withConfig({
940
- displayName: "Radio__Container",
941
- componentId: "kitt-universal__sc-1mdgr2o-3"
1038
+ var Container$4 = /*#__PURE__*/styled.Pressable.withConfig({
1039
+ displayName: "Radio__Container"
942
1040
  })(["flex-direction:row;align-items:center;"]);
943
1041
  var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
944
- displayName: "Radio__Text",
945
- componentId: "kitt-universal__sc-1mdgr2o-4"
1042
+ displayName: "Radio__Text"
946
1043
  })(["margin-left:", "px;"], function (_ref15) {
947
1044
  var theme = _ref15.theme;
948
1045
  return theme.kitt.spacing * 2;
@@ -955,7 +1052,7 @@ function Radio(_ref16) {
955
1052
  _ref16$disabled = _ref16.disabled,
956
1053
  disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
957
1054
  children = _ref16.children;
958
- return /*#__PURE__*/React.createElement(Container$3, {
1055
+ return /*#__PURE__*/jsxs(Container$4, {
959
1056
  nativeID: id,
960
1057
  disabled: disabled,
961
1058
  accessibilityRole: "radio",
@@ -963,30 +1060,36 @@ function Radio(_ref16) {
963
1060
  focusable: checked && !disabled,
964
1061
  onPress: function handlePress() {
965
1062
  onChange(value);
966
- }
967
- }, checked && !disabled ? /*#__PURE__*/React.createElement(SelectedOuterRadio, null, /*#__PURE__*/React.createElement(SelectedInnerRadio, null)) : /*#__PURE__*/React.createElement(OuterRadio, {
968
- disabled: disabled
969
- }), /*#__PURE__*/React.createElement(Text, {
970
- base: "body",
971
- color: disabled ? 'black-light' : 'black'
972
- }, 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
+ });
973
1074
  }
974
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; }
975
1079
  function TextArea(_ref) {
976
1080
  var props = _extends({}, _ref);
977
1081
 
978
1082
  var theme = /*#__PURE__*/useTheme();
979
- return /*#__PURE__*/React.createElement(InputText, _extends({
1083
+ return /*#__PURE__*/jsx(InputText, _objectSpread$b(_objectSpread$b({
980
1084
  multiline: true
981
- }, props, {
1085
+ }, props), {}, {
982
1086
  type: "text",
983
1087
  minHeight: theme.kitt.forms.input.textAreaMinHeight
984
1088
  }));
985
1089
  }
986
1090
 
987
- var Body = /*#__PURE__*/styled(PrimitiveView).withConfig({
988
- displayName: "Body",
989
- componentId: "kitt-universal__sc-1ofncfn-0"
1091
+ var Body = /*#__PURE__*/styled.View.withConfig({
1092
+ displayName: "Body"
990
1093
  })(["", " background-color:", ";flex:1;"], function (_ref) {
991
1094
  var theme = _ref.theme;
992
1095
  return theme.responsive.ifWindowSizeMatches({
@@ -998,12 +1101,13 @@ var Body = /*#__PURE__*/styled(PrimitiveView).withConfig({
998
1101
  });
999
1102
  function FullScreenModalBody(_ref3) {
1000
1103
  var children = _ref3.children;
1001
- return /*#__PURE__*/React.createElement(Body, null, children);
1104
+ return /*#__PURE__*/jsx(Body, {
1105
+ children: children
1106
+ });
1002
1107
  }
1003
1108
 
1004
- var SideContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1005
- displayName: "Header__SideContainer",
1006
- componentId: "kitt-universal__sc-dfmxi1-0"
1109
+ var SideContainer = /*#__PURE__*/styled.View.withConfig({
1110
+ displayName: "Header__SideContainer"
1007
1111
  })(["", ""], function (_ref) {
1008
1112
  var theme = _ref.theme,
1009
1113
  _ref$side = _ref.side,
@@ -1021,9 +1125,8 @@ function getHeaderHorizontalMediumPadding(spacing) {
1021
1125
  return spacing * 6;
1022
1126
  }
1023
1127
 
1024
- var Header = /*#__PURE__*/styled(PrimitiveView).withConfig({
1025
- displayName: "Header",
1026
- componentId: "kitt-universal__sc-dfmxi1-1"
1128
+ var Header = /*#__PURE__*/styled.View.withConfig({
1129
+ displayName: "Header"
1027
1130
  })(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
1028
1131
  var theme = _ref2.theme,
1029
1132
  _ref2$insetTop = _ref2.insetTop,
@@ -1039,9 +1142,8 @@ var Header = /*#__PURE__*/styled(PrimitiveView).withConfig({
1039
1142
  var theme = _ref3.theme;
1040
1143
  return theme.kitt.fullScreenModal.header.borderColor;
1041
1144
  });
1042
- var HeaderContent = /*#__PURE__*/styled(PrimitiveView).withConfig({
1043
- displayName: "Header__HeaderContent",
1044
- componentId: "kitt-universal__sc-dfmxi1-2"
1145
+ var HeaderContent = /*#__PURE__*/styled.View.withConfig({
1146
+ displayName: "Header__HeaderContent"
1045
1147
  })(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
1046
1148
  var theme = _ref4.theme,
1047
1149
  leftWidth = _ref4.leftWidth,
@@ -1107,73 +1209,159 @@ function FullScreenModalHeader(_ref6) {
1107
1209
  setRightWidth(event.nativeEvent.layout.width);
1108
1210
  };
1109
1211
 
1110
- return /*#__PURE__*/React.createElement(Header, {
1111
- insetTop: Platform.OS === 'ios' ? undefined : top
1112
- }, left ? /*#__PURE__*/React.createElement(SideContainer, {
1113
- onLayout: function onLayout(e) {
1114
- return handleLayoutChange(e, 'left');
1115
- }
1116
- }, left) : null, /*#__PURE__*/React.createElement(HeaderContent, {
1117
- windowWidth: dimensions.width,
1118
- leftWidth: leftWidth,
1119
- rightWidth: rightWidth
1120
- }, children), right ? /*#__PURE__*/React.createElement(SideContainer, {
1121
- side: "right",
1122
- onLayout: function onLayout(e) {
1123
- return handleLayoutChange(e, 'right');
1124
- }
1125
- }, 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
+ });
1126
1232
  }
1127
1233
 
1128
- var Container$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1129
- displayName: "FullScreenModal__Container",
1130
- componentId: "kitt-universal__sc-11qpbe3-0"
1234
+ var Container$3 = /*#__PURE__*/styled.View.withConfig({
1235
+ displayName: "FullScreenModal__Container"
1131
1236
  })(["flex:1;background-color:", ";"], function (_ref) {
1132
1237
  var theme = _ref.theme;
1133
1238
  return theme.kitt.colors.uiBackground;
1134
1239
  });
1135
1240
  function FullScreenModal(_ref2) {
1136
1241
  var children = _ref2.children;
1137
- return /*#__PURE__*/React.createElement(Container$2, null, children);
1242
+ return /*#__PURE__*/jsx(Container$3, {
1243
+ children: children
1244
+ });
1138
1245
  }
1139
1246
  FullScreenModal.Header = FullScreenModalHeader;
1140
1247
  FullScreenModal.Body = FullScreenModalBody;
1141
1248
 
1142
- var PressableIconButton = /*#__PURE__*/styled(PrimitivePressable).withConfig({
1143
- displayName: "PressableIconButton",
1144
- componentId: "kitt-universal__sc-1m6jo3s-0"
1145
- })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref) {
1146
- 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;
1147
1328
  return theme.kitt.iconButton.borderRadius;
1148
- }, function (_ref2) {
1149
- var theme = _ref2.theme;
1329
+ }, function (_ref8) {
1330
+ var theme = _ref8.theme;
1150
1331
  return theme.kitt.iconButton.width;
1151
- }, function (_ref3) {
1152
- var theme = _ref3.theme;
1332
+ }, function (_ref9) {
1333
+ var theme = _ref9.theme;
1153
1334
  return theme.kitt.iconButton.height;
1154
- }, function (_ref4) {
1155
- var theme = _ref4.theme,
1156
- color = _ref4.color,
1157
- disabled = _ref4.disabled;
1335
+ }, function (_ref10) {
1336
+ var theme = _ref10.theme,
1337
+ disabled = _ref10.disabled;
1158
1338
  var iconButton = theme.kitt.iconButton;
1159
1339
 
1160
1340
  if (Platform.OS !== 'web') {
1161
1341
  return undefined;
1162
1342
  }
1163
1343
 
1164
- var transition = iconButton.transition,
1165
- scale = iconButton.scale;
1344
+ var transition = iconButton.transition;
1166
1345
 
1167
1346
  if (disabled) {
1168
1347
  return "\n background-color: ".concat(iconButton.disabled.backgroundColor, ";\n ");
1169
1348
  }
1170
1349
 
1171
- 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 ");
1172
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
+ }
1173
1362
 
1174
1363
  var AnimatedIconButtonBackground = /*#__PURE__*/styled(Animated$1.View).withConfig({
1175
- displayName: "PressableAnimatedContainer__AnimatedIconButtonBackground",
1176
- componentId: "kitt-universal__sc-xl9ll5-0"
1364
+ displayName: "PressableAnimatedContainer__AnimatedIconButtonBackground"
1177
1365
  })(["background-color:", ";border-radius:", "px;width:", "px;height:", "px;position:absolute;bottom:0;left:0;"], function (_ref) {
1178
1366
  var theme = _ref.theme,
1179
1367
  color = _ref.color,
@@ -1193,8 +1381,7 @@ var AnimatedIconButtonBackground = /*#__PURE__*/styled(Animated$1.View).withConf
1193
1381
  return theme.kitt.iconButton.height;
1194
1382
  });
1195
1383
  var AnimatedViewContainer = /*#__PURE__*/styled(Animated$1.View).withConfig({
1196
- displayName: "PressableAnimatedContainer__AnimatedViewContainer",
1197
- componentId: "kitt-universal__sc-xl9ll5-1"
1384
+ displayName: "PressableAnimatedContainer__AnimatedViewContainer"
1198
1385
  })(["position:relative;align-items:center;justify-content:center;width:100%;height:100%;"]);
1199
1386
  function PressableAnimatedContainer(_ref5) {
1200
1387
  var disabled = _ref5.disabled,
@@ -1217,7 +1404,7 @@ function PressableAnimatedContainer(_ref5) {
1217
1404
  };
1218
1405
  _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
1219
1406
  _f.__workletHash = 10645190329247;
1220
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (55:41)";
1407
+ _f.__location = "/home/chris/ornikar/kitt/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (54:41)";
1221
1408
  _f.__optimalization = 2;
1222
1409
 
1223
1410
  global.__reanimatedWorkletInit(_f);
@@ -1251,14 +1438,14 @@ function PressableAnimatedContainer(_ref5) {
1251
1438
  };
1252
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)}]};}}";
1253
1440
  _f.__workletHash = 13861998831411;
1254
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (61:39)";
1441
+ _f.__location = "/home/chris/ornikar/kitt/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (60:39)";
1255
1442
  _f.__optimalization = 2;
1256
1443
 
1257
1444
  global.__reanimatedWorkletInit(_f);
1258
1445
 
1259
1446
  return _f;
1260
1447
  }());
1261
- return /*#__PURE__*/React.createElement(PressableIconButton, {
1448
+ return /*#__PURE__*/jsx(PressableIconButton, {
1262
1449
  accessibilityRole: "button",
1263
1450
  disabled: disabled,
1264
1451
  color: color,
@@ -1268,25 +1455,26 @@ function PressableAnimatedContainer(_ref5) {
1268
1455
  },
1269
1456
  onPressOut: function onPressOut() {
1270
1457
  pressed.value = false;
1271
- }
1272
- }, /*#__PURE__*/React.createElement(AnimatedViewContainer, {
1273
- style: disabled ? [{
1274
- transform: [{
1275
- scale: 1
1276
- }]
1277
- }] : [scaleStyles]
1278
- }, /*#__PURE__*/React.createElement(AnimatedIconButtonBackground, {
1279
- disabled: disabled,
1280
- color: color,
1281
- style: disabled ? [{
1282
- opacity: 1
1283
- }] : [opacityStyles]
1284
- }), 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
+ });
1285
1474
  }
1286
1475
 
1287
- var IconButtonContentBorder = /*#__PURE__*/styled(PrimitiveView).withConfig({
1288
- displayName: "IconButton__IconButtonContentBorder",
1289
- componentId: "kitt-universal__sc-swelbf-0"
1476
+ var IconButtonContentBorder = /*#__PURE__*/styled.View.withConfig({
1477
+ displayName: "IconButton__IconButtonContentBorder"
1290
1478
  })(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
1291
1479
  var theme = _ref.theme;
1292
1480
  return "".concat(theme.kitt.iconButton.borderWidth, "px solid");
@@ -1309,12 +1497,13 @@ function IconButtonContent(_ref6) {
1309
1497
  var disabled = _ref6.disabled,
1310
1498
  color = _ref6.color,
1311
1499
  icon = _ref6.icon;
1312
- return /*#__PURE__*/React.createElement(IconButtonContentBorder, {
1313
- disabled: disabled
1314
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
1315
- color: disabled ? 'black-light' : color,
1316
- icon: icon
1317
- }));
1500
+ return /*#__PURE__*/jsx(IconButtonContentBorder, {
1501
+ disabled: disabled,
1502
+ children: /*#__PURE__*/jsx(TypographyIcon, {
1503
+ color: disabled ? 'black-light' : color,
1504
+ icon: icon
1505
+ })
1506
+ });
1318
1507
  }
1319
1508
 
1320
1509
  function IconButton(_ref7) {
@@ -1322,34 +1511,43 @@ function IconButton(_ref7) {
1322
1511
  color = _ref7.color,
1323
1512
  disabled = _ref7.disabled,
1324
1513
  onPress = _ref7.onPress;
1325
- return /*#__PURE__*/React.createElement(PressableAnimatedContainer, {
1514
+ return /*#__PURE__*/jsx(PressableAnimatedContainer, {
1326
1515
  color: color,
1327
1516
  disabled: disabled,
1328
- onPress: onPress
1329
- }, /*#__PURE__*/React.createElement(IconButtonContent, {
1330
- disabled: disabled,
1331
- color: color,
1332
- icon: icon
1333
- }));
1517
+ onPress: onPress,
1518
+ children: /*#__PURE__*/jsx(IconButtonContent, {
1519
+ disabled: disabled,
1520
+ color: color,
1521
+ icon: icon
1522
+ })
1523
+ });
1334
1524
  }
1335
1525
 
1336
1526
  var _excluded$5 = ["children"];
1337
- var ContentView$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1338
- displayName: "ListItemContent__ContentView",
1339
- 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"
1340
1533
  })(["flex:1 0 0%;align-self:center;"]);
1341
1534
  function ListItemContent(_ref) {
1342
1535
  var children = _ref.children,
1343
1536
  rest = _objectWithoutProperties(_ref, _excluded$5);
1344
1537
 
1345
- return /*#__PURE__*/React.createElement(ContentView$1, rest, children);
1538
+ return /*#__PURE__*/jsx(ContentView$1, _objectSpread$7(_objectSpread$7({}, rest), {}, {
1539
+ children: children
1540
+ }));
1346
1541
  }
1347
1542
 
1348
1543
  var _excluded$4 = ["children", "side"],
1349
1544
  _excluded2$1 = ["children", "align"];
1350
- var SideContainerView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1351
- displayName: "ListItemSideContent__SideContainerView",
1352
- 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"
1353
1551
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
1354
1552
  var theme = _ref.theme,
1355
1553
  side = _ref.side;
@@ -1366,13 +1564,14 @@ function ListItemSideContainer(_ref3) {
1366
1564
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
1367
1565
  rest = _objectWithoutProperties(_ref3, _excluded$4);
1368
1566
 
1369
- return /*#__PURE__*/React.createElement(SideContainerView, _extends({
1567
+ return /*#__PURE__*/jsx(SideContainerView, _objectSpread$6(_objectSpread$6({
1370
1568
  side: side
1371
- }, rest), children);
1569
+ }, rest), {}, {
1570
+ children: children
1571
+ }));
1372
1572
  }
1373
- var SideContentView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1374
- displayName: "ListItemSideContent__SideContentView",
1375
- componentId: "kitt-universal__sc-1vajiw-1"
1573
+ var SideContentView = /*#__PURE__*/styled.View.withConfig({
1574
+ displayName: "ListItemSideContent__SideContentView"
1376
1575
  })(["align-self:", ";"], function (_ref4) {
1377
1576
  var align = _ref4.align;
1378
1577
  return align;
@@ -1383,19 +1582,20 @@ function ListItemSideContent(_ref5) {
1383
1582
  align = _ref5$align === void 0 ? 'auto' : _ref5$align,
1384
1583
  rest = _objectWithoutProperties(_ref5, _excluded2$1);
1385
1584
 
1386
- return /*#__PURE__*/React.createElement(SideContentView, _extends({
1585
+ return /*#__PURE__*/jsx(SideContentView, _objectSpread$6(_objectSpread$6({
1387
1586
  align: align
1388
- }, rest), children);
1587
+ }, rest), {}, {
1588
+ children: children
1589
+ }));
1389
1590
  }
1390
1591
 
1391
1592
  var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
1392
1593
 
1393
- 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; }
1394
1595
 
1395
- 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; }
1396
- var ContainerView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1397
- displayName: "ListItem__ContainerView",
1398
- 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"
1399
1599
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
1400
1600
  var withPadding = _ref.withPadding,
1401
1601
  theme = _ref.theme;
@@ -1434,20 +1634,28 @@ function ListItem(_ref5) {
1434
1634
  onPress = _ref5.onPress,
1435
1635
  rest = _objectWithoutProperties(_ref5, _excluded$3);
1436
1636
 
1437
- var Wrapper = onPress ? PrimitivePressable : Fragment;
1438
- var wrapperProps = onPress ? _objectSpread$1({
1637
+ var Wrapper = onPress ? Pressable : Fragment;
1638
+ var wrapperProps = onPress ? _objectSpread$5({
1439
1639
  accessibilityRole: 'button',
1440
1640
  onPress: onPress
1441
1641
  }, rest) : undefined;
1442
1642
  var containerProps = onPress ? undefined : rest;
1443
- return /*#__PURE__*/React.createElement(Wrapper, wrapperProps, /*#__PURE__*/React.createElement(ContainerView, _extends({
1444
- withPadding: withPadding,
1445
- borders: borders
1446
- }, containerProps), left ? /*#__PURE__*/React.createElement(ListItemSideContainer, {
1447
- side: "left"
1448
- }, left) : null, /*#__PURE__*/React.createElement(ListItemContent, null, children), right ? /*#__PURE__*/React.createElement(ListItemSideContainer, {
1449
- side: "right"
1450
- }, 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
+ }));
1451
1659
  }
1452
1660
  ListItem.Content = ListItemContent;
1453
1661
  ListItem.SideContent = ListItemSideContent;
@@ -1465,7 +1673,7 @@ function Loader(_ref) {
1465
1673
  size = _ref$size === void 0 ? 20 : _ref$size;
1466
1674
  var theme = /*#__PURE__*/useTheme();
1467
1675
  var colorHex = theme.kitt.typography.colors[color];
1468
- return /*#__PURE__*/React.createElement(ActivityIndicator, {
1676
+ return /*#__PURE__*/jsx(ActivityIndicator, {
1469
1677
  testID: "ActivityIndicator",
1470
1678
  color: colorHex,
1471
1679
  size: getActivityIndicatorSize(size)
@@ -1475,7 +1683,7 @@ function Loader(_ref) {
1475
1683
  function LargeLoader(_ref) {
1476
1684
  var _ref$color = _ref.color,
1477
1685
  color = _ref$color === void 0 ? 'primary' : _ref$color;
1478
- return /*#__PURE__*/React.createElement(Loader, {
1686
+ return /*#__PURE__*/jsx(Loader, {
1479
1687
  color: color,
1480
1688
  size: 60
1481
1689
  });
@@ -1483,9 +1691,8 @@ function LargeLoader(_ref) {
1483
1691
 
1484
1692
  var xIconSize = 14;
1485
1693
  var mainIconSize = 20;
1486
- var Container$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1487
- displayName: "Message__Container",
1488
- componentId: "kitt-universal__sc-c6400e-0"
1694
+ var Container$2 = /*#__PURE__*/styled.View.withConfig({
1695
+ displayName: "Message__Container"
1489
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) {
1490
1697
  var theme = _ref.theme,
1491
1698
  noRadius = _ref.noRadius;
@@ -1511,8 +1718,7 @@ var Container$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1511
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;
1512
1719
  });
1513
1720
  var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
1514
- displayName: "Message__CloseContainer",
1515
- componentId: "kitt-universal__sc-c6400e-1"
1721
+ displayName: "Message__CloseContainer"
1516
1722
  })(["margin-left:", "px;padding:", "px;"], function (_ref7) {
1517
1723
  var theme = _ref7.theme;
1518
1724
  return theme.kitt.spacing * 4;
@@ -1520,16 +1726,14 @@ var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
1520
1726
  var theme = _ref8.theme;
1521
1727
  return theme.kitt.spacing;
1522
1728
  });
1523
- var IconContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1524
- displayName: "Message__IconContainer",
1525
- componentId: "kitt-universal__sc-c6400e-2"
1729
+ var IconContainer = /*#__PURE__*/styled.View.withConfig({
1730
+ displayName: "Message__IconContainer"
1526
1731
  })(["margin-right:", "px;"], function (_ref9) {
1527
1732
  var theme = _ref9.theme;
1528
1733
  return theme.kitt.spacing * 4;
1529
1734
  });
1530
- var Content = /*#__PURE__*/styled(PrimitiveText).withConfig({
1531
- displayName: "Message__Content",
1532
- componentId: "kitt-universal__sc-c6400e-3"
1735
+ var Content = /*#__PURE__*/styled.Text.withConfig({
1736
+ displayName: "Message__Content"
1533
1737
  })(["text-align:", ";flex:1;"], function (_ref10) {
1534
1738
  var centeredText = _ref10.centeredText;
1535
1739
  return centeredText ? 'center' : 'left';
@@ -1552,16 +1756,16 @@ var getColorByType = function (type) {
1552
1756
  function getIconContent(type) {
1553
1757
  switch (type) {
1554
1758
  case 'warning':
1555
- return /*#__PURE__*/React.createElement(AlertCircleIcon, null);
1759
+ return /*#__PURE__*/jsx(AlertCircleIcon, {});
1556
1760
 
1557
1761
  case 'success':
1558
- return /*#__PURE__*/React.createElement(CheckIcon, null);
1762
+ return /*#__PURE__*/jsx(CheckIcon, {});
1559
1763
 
1560
1764
  case 'danger':
1561
- return /*#__PURE__*/React.createElement(AlertTriangleIcon, null);
1765
+ return /*#__PURE__*/jsx(AlertTriangleIcon, {});
1562
1766
 
1563
1767
  default:
1564
- return /*#__PURE__*/React.createElement(InfoIcon, null);
1768
+ return /*#__PURE__*/jsx(InfoIcon, {});
1565
1769
  }
1566
1770
  }
1567
1771
 
@@ -1576,54 +1780,58 @@ function Message(_ref11) {
1576
1780
  onDismiss = _ref11.onDismiss,
1577
1781
  insets = _ref11.insets;
1578
1782
  var color = getColorByType(type);
1579
- return /*#__PURE__*/React.createElement(Container$1, {
1783
+ return /*#__PURE__*/jsxs(Container$2, {
1580
1784
  type: type,
1581
1785
  noRadius: noRadius,
1582
- insets: insets
1583
- }, !centeredText ? /*#__PURE__*/React.createElement(IconContainer, null, /*#__PURE__*/React.createElement(Icon, {
1584
- size: mainIconSize,
1585
- color: color,
1586
- icon: getIconContent(type)
1587
- })) : null, /*#__PURE__*/React.createElement(Content, {
1588
- type: type,
1589
- centeredText: centeredText
1590
- }, /*#__PURE__*/React.createElement(Typography.Text, {
1591
- base: "body-small",
1592
- color: color
1593
- }, children)), onDismiss ? /*#__PURE__*/React.createElement(CloseContainer, {
1594
- onPress: onDismiss
1595
- }, /*#__PURE__*/React.createElement(Icon, {
1596
- icon: /*#__PURE__*/React.createElement(XIcon, null),
1597
- size: xIconSize,
1598
- color: color
1599
- })) : 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
+ });
1600
1810
  }
1601
1811
 
1602
- 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; }
1603
1813
 
1604
- 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; }
1605
- var OverlayPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
1606
- displayName: "Overlay__OverlayPressable",
1607
- 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"
1608
1818
  })(function (_ref) {
1609
1819
  var theme = _ref.theme;
1610
- return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
1820
+ return _objectSpread$4(_objectSpread$4({}, StyleSheet.absoluteFillObject), {}, {
1611
1821
  backgroundColor: theme.kitt.colors.overlay.dark
1612
1822
  });
1613
1823
  });
1614
1824
  function Overlay(_ref2) {
1615
1825
  var onPress = _ref2.onPress;
1616
- return /*#__PURE__*/React.createElement(OverlayPressable, {
1826
+ return /*#__PURE__*/jsx(OverlayPressable, {
1617
1827
  accessibilityRole: "none",
1618
- onPress: onPress
1619
- }, /*#__PURE__*/React.createElement(PrimitiveView, null));
1828
+ onPress: onPress,
1829
+ children: /*#__PURE__*/jsx(View, {})
1830
+ });
1620
1831
  }
1621
1832
 
1622
- var PrimitiveScrollView = ScrollView;
1623
-
1624
- var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1625
- displayName: "Body__BodyView",
1626
- componentId: "kitt-universal__sc-17fwpo4-0"
1833
+ var BodyView = /*#__PURE__*/styled.View.withConfig({
1834
+ displayName: "Body__BodyView"
1627
1835
  })(["padding:", "px ", "px;"], function (_ref) {
1628
1836
  var theme = _ref.theme;
1629
1837
  return theme.kitt.spacing * 6;
@@ -1633,12 +1841,15 @@ var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1633
1841
  });
1634
1842
  function ModalBody(_ref3) {
1635
1843
  var children = _ref3.children;
1636
- 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
+ });
1637
1849
  }
1638
1850
 
1639
- var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1640
- displayName: "Footer__FooterView",
1641
- componentId: "kitt-universal__sc-1ujq2dc-0"
1851
+ var FooterView = /*#__PURE__*/styled.View.withConfig({
1852
+ displayName: "Footer__FooterView"
1642
1853
  })(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
1643
1854
  var theme = _ref.theme;
1644
1855
  return theme.kitt.spacing * 4;
@@ -1648,14 +1859,15 @@ var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1648
1859
  });
1649
1860
  function ModalFooter(_ref3) {
1650
1861
  var children = _ref3.children;
1651
- return /*#__PURE__*/React.createElement(FooterView, null, children);
1862
+ return /*#__PURE__*/jsx(FooterView, {
1863
+ children: children
1864
+ });
1652
1865
  }
1653
1866
 
1654
1867
  var OnCloseContext = /*#__PURE__*/createContext(function () {});
1655
1868
 
1656
- var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1657
- displayName: "Header__HeaderView",
1658
- componentId: "kitt-universal__sc-1iwabch-0"
1869
+ var HeaderView = /*#__PURE__*/styled.View.withConfig({
1870
+ displayName: "Header__HeaderView"
1659
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) {
1660
1872
  var theme = _ref.theme;
1661
1873
  return theme.kitt.spacing * 2;
@@ -1663,23 +1875,20 @@ var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1663
1875
  var theme = _ref2.theme;
1664
1876
  return theme.kitt.colors.separator;
1665
1877
  });
1666
- var LeftIconView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1667
- displayName: "Header__LeftIconView",
1668
- componentId: "kitt-universal__sc-1iwabch-1"
1878
+ var LeftIconView = /*#__PURE__*/styled.View.withConfig({
1879
+ displayName: "Header__LeftIconView"
1669
1880
  })(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
1670
1881
  var theme = _ref3.theme;
1671
1882
  return theme.kitt.spacing * 2;
1672
1883
  });
1673
- var RightIconView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1674
- displayName: "Header__RightIconView",
1675
- componentId: "kitt-universal__sc-1iwabch-2"
1884
+ var RightIconView = /*#__PURE__*/styled.View.withConfig({
1885
+ displayName: "Header__RightIconView"
1676
1886
  })(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
1677
1887
  var theme = _ref4.theme;
1678
1888
  return theme.kitt.spacing * 2;
1679
1889
  });
1680
- var TitleView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1681
- displayName: "Header__TitleView",
1682
- componentId: "kitt-universal__sc-1iwabch-3"
1890
+ var TitleView = /*#__PURE__*/styled.View.withConfig({
1891
+ displayName: "Header__TitleView"
1683
1892
  })(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
1684
1893
  var theme = _ref5.theme,
1685
1894
  isIconLeft = _ref5.isIconLeft;
@@ -1691,18 +1900,24 @@ function ModalHeader(_ref6) {
1691
1900
  children = _ref6.children;
1692
1901
  var onClose = useContext(OnCloseContext);
1693
1902
  var isIconLeft = !!left;
1694
- return /*#__PURE__*/React.createElement(HeaderView, null, isIconLeft && /*#__PURE__*/React.createElement(LeftIconView, null, left), /*#__PURE__*/React.createElement(TitleView, {
1695
- isIconLeft: isIconLeft
1696
- }, children), right !== undefined ? right : /*#__PURE__*/React.createElement(RightIconView, null, /*#__PURE__*/React.createElement(Button, {
1697
- type: "subtle-dark",
1698
- icon: /*#__PURE__*/React.createElement(XIcon, null),
1699
- onPress: onClose
1700
- })));
1701
- }
1702
-
1703
- var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1704
- displayName: "Modal__ModalView",
1705
- 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"
1706
1921
  })(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
1707
1922
  var theme = _ref.theme;
1708
1923
  return theme.kitt.spacing * 20;
@@ -1710,9 +1925,8 @@ var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1710
1925
  var theme = _ref2.theme;
1711
1926
  return theme.kitt.spacing * 4;
1712
1927
  });
1713
- var ContentView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1714
- displayName: "Modal__ContentView",
1715
- componentId: "kitt-universal__sc-1xy2w5u-1"
1928
+ var ContentView = /*#__PURE__*/styled.View.withConfig({
1929
+ displayName: "Modal__ContentView"
1716
1930
  })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
1717
1931
  var theme = _ref3.theme;
1718
1932
  return theme.kitt.card.borderRadius;
@@ -1726,18 +1940,24 @@ function Modal(_ref5) {
1726
1940
  onClose = _ref5.onClose,
1727
1941
  onEntered = _ref5.onEntered,
1728
1942
  onExited = _ref5.onExited;
1729
- return /*#__PURE__*/React.createElement(OnCloseContext.Provider, {
1730
- value: onClose
1731
- }, /*#__PURE__*/React.createElement(Modal$1, {
1732
- transparent: true,
1733
- animationType: "fade",
1734
- visible: visible,
1735
- onShow: onEntered,
1736
- onDismiss: onExited,
1737
- onRequestClose: onClose
1738
- }, /*#__PURE__*/React.createElement(ModalView, null, /*#__PURE__*/React.createElement(Overlay, {
1739
- onPress: onClose
1740
- }), /*#__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
+ });
1741
1961
  }
1742
1962
  Modal.Header = ModalHeader;
1743
1963
  Modal.Body = ModalBody;
@@ -1752,26 +1972,24 @@ function Notification(_ref) {
1752
1972
  var _useSafeAreaInsets = useSafeAreaInsets(),
1753
1973
  top = _useSafeAreaInsets.top;
1754
1974
 
1755
- return /*#__PURE__*/React.createElement(Message, {
1975
+ return /*#__PURE__*/jsx(Message, {
1756
1976
  noRadius: true,
1757
1977
  type: type,
1758
1978
  centeredText: centeredText,
1759
1979
  insets: {
1760
1980
  top: top
1761
1981
  },
1762
- onDismiss: onDelete
1763
- }, children);
1982
+ onDismiss: onDelete,
1983
+ children: children
1984
+ });
1764
1985
  }
1765
1986
 
1766
- var PrimitiveLink = Text$1;
1767
-
1768
- var Flex = /*#__PURE__*/styled(PrimitiveView).withConfig({
1987
+ var Flex = /*#__PURE__*/styled.View.withConfig({
1769
1988
  shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
1770
1989
  return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
1771
1990
  }
1772
1991
  }).withConfig({
1773
- displayName: "Flex",
1774
- componentId: "kitt-universal__sc-15q3v3h-0"
1992
+ displayName: "Flex"
1775
1993
  })(["display:flex;flex-direction:", ";flex-wrap:wrap;padding:", "px;"], function (_ref) {
1776
1994
  var direction = _ref.direction;
1777
1995
  return direction;
@@ -1822,9 +2040,8 @@ var useStoryBlockColor = function (color) {
1822
2040
  var storyBlockColor = useContext(StoryBlockColorContext);
1823
2041
  return color || storyBlockColor;
1824
2042
  };
1825
- var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1826
- displayName: "StoryBlock__StyledStoryBlockView",
1827
- componentId: "kitt-universal__sc-3w4hdm-0"
2043
+ var StyledStoryBlockView = /*#__PURE__*/styled.View.withConfig({
2044
+ displayName: "StoryBlock__StyledStoryBlockView"
1828
2045
  })(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
1829
2046
  var theme = _ref.theme,
1830
2047
  background = _ref.background;
@@ -1833,45 +2050,52 @@ var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1833
2050
  function StoryBlock(_ref2) {
1834
2051
  var children = _ref2.children,
1835
2052
  background = _ref2.background;
1836
- return /*#__PURE__*/React.createElement(StyledStoryBlockView, {
1837
- background: background
1838
- }, /*#__PURE__*/React.createElement(StoryBlockColorContext.Provider, {
1839
- value: getTypographyColorFromBlockColor(background)
1840
- }, /*#__PURE__*/React.createElement(StoryBlockBackgroundContext.Provider, {
1841
- value: background
1842
- }, children)));
1843
- }
1844
-
1845
- var StoryTitleContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1846
- displayName: "StoryTitle__StoryTitleContainer",
1847
- 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"
1848
2067
  })(["margin-bottom:30px;"]);
1849
- var StorySubTitleContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1850
- displayName: "StoryTitle__StorySubTitleContainer",
1851
- componentId: "kitt-universal__sc-sic7hb-1"
2068
+ var StorySubTitleContainer = /*#__PURE__*/styled.View.withConfig({
2069
+ displayName: "StoryTitle__StorySubTitleContainer"
1852
2070
  })(["margin-bottom:10px;"]);
1853
2071
  function StoryTitle(_ref) {
1854
2072
  var color = _ref.color,
1855
2073
  children = _ref.children,
1856
2074
  numberOfLines = _ref.numberOfLines;
1857
- return /*#__PURE__*/React.createElement(StoryTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header1, {
1858
- variant: "bold",
1859
- base: "header1",
1860
- color: useStoryBlockColor(color),
1861
- numberOfLines: numberOfLines
1862
- }, 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
+ });
1863
2084
  }
1864
2085
 
1865
2086
  function StoryTitleLevel2(_ref2) {
1866
2087
  var color = _ref2.color,
1867
2088
  children = _ref2.children,
1868
2089
  numberOfLines = _ref2.numberOfLines;
1869
- return /*#__PURE__*/React.createElement(StoryTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header2, {
1870
- variant: "bold",
1871
- base: "header2",
1872
- color: useStoryBlockColor(color),
1873
- numberOfLines: numberOfLines
1874
- }, 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
+ });
1875
2099
  }
1876
2100
 
1877
2101
  StoryTitleLevel2.displayName = 'StoryTitle.Level2';
@@ -1880,13 +2104,16 @@ function StoryTitleLevel3(_ref3) {
1880
2104
  var color = _ref3.color,
1881
2105
  children = _ref3.children,
1882
2106
  numberOfLines = _ref3.numberOfLines;
1883
- return /*#__PURE__*/React.createElement(StorySubTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header3, {
1884
- variant: "bold",
1885
- base: "header3",
1886
- medium: "header4",
1887
- color: useStoryBlockColor(color),
1888
- numberOfLines: numberOfLines
1889
- }, 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
+ });
1890
2117
  }
1891
2118
 
1892
2119
  StoryTitleLevel3.displayName = 'StoryTitle.Level3';
@@ -1895,13 +2122,16 @@ function StoryTitleLevel4(_ref4) {
1895
2122
  var color = _ref4.color,
1896
2123
  children = _ref4.children,
1897
2124
  numberOfLines = _ref4.numberOfLines;
1898
- return /*#__PURE__*/React.createElement(StorySubTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header4, {
1899
- variant: "bold",
1900
- base: "header4",
1901
- medium: "header5",
1902
- color: useStoryBlockColor(color),
1903
- numberOfLines: numberOfLines
1904
- }, 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
+ });
1905
2135
  }
1906
2136
 
1907
2137
  StoryTitleLevel4.displayName = 'StoryTitle.Level3';
@@ -1909,75 +2139,89 @@ StoryTitle.Level2 = StoryTitleLevel2;
1909
2139
  StoryTitle.Level3 = StoryTitleLevel3;
1910
2140
  StoryTitle.Level4 = StoryTitleLevel4;
1911
2141
 
1912
- var StoryContainer$1 = /*#__PURE__*/styled(PrimitiveScrollView).withConfig({
1913
- displayName: "Story__StoryContainer",
1914
- componentId: "kitt-universal__sc-1kwdg2p-0"
2142
+ var StoryContainer$1 = /*#__PURE__*/styled.ScrollView.withConfig({
2143
+ displayName: "Story__StoryContainer"
1915
2144
  })(["padding:", "px;"], storyPadding);
1916
2145
  function Story(_ref) {
1917
2146
  var title = _ref.title,
1918
2147
  contentContainerStyle = _ref.contentContainerStyle,
1919
2148
  children = _ref.children;
1920
- return /*#__PURE__*/React.createElement(StoryContainer$1, {
1921
- contentContainerStyle: contentContainerStyle
1922
- }, /*#__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
+ });
1923
2155
  }
1924
2156
 
1925
- var _excluded$2 = ["title", "className", "children", "internalIsDemoSection"],
1926
- _excluded2 = ["title", "className", "children"],
1927
- _excluded3 = ["title", "className", "children"];
1928
- var StyledSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
1929
- displayName: "StorySection__StyledSection",
1930
- 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"
1931
2166
  })(["margin-bottom:32px;"]);
1932
2167
  function StorySection(_ref) {
1933
- var title = _ref.title;
1934
- _ref.className;
1935
- var children = _ref.children,
2168
+ var title = _ref.title,
2169
+ children = _ref.children,
1936
2170
  internalIsDemoSection = _ref.internalIsDemoSection,
1937
2171
  props = _objectWithoutProperties(_ref, _excluded$2);
1938
2172
 
1939
2173
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
1940
- 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
+ }));
1941
2179
  }
1942
- var StyledSubSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
1943
- displayName: "StorySection__StyledSubSection",
1944
- componentId: "kitt-universal__sc-1b3liv5-1"
2180
+ var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
2181
+ displayName: "StorySection__StyledSubSection"
1945
2182
  })(["margin-bottom:16px;"]);
1946
2183
 
1947
2184
  function SubSection(_ref2) {
1948
- var title = _ref2.title;
1949
- _ref2.className;
1950
- var children = _ref2.children,
2185
+ var title = _ref2.title,
2186
+ children = _ref2.children,
1951
2187
  props = _objectWithoutProperties(_ref2, _excluded2);
1952
2188
 
1953
- 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
+ }));
1954
2194
  }
1955
2195
 
1956
- var StyledBlockSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
1957
- displayName: "StorySection__StyledBlockSection",
1958
- componentId: "kitt-universal__sc-1b3liv5-2"
2196
+ var StyledBlockSection = /*#__PURE__*/styled.View.withConfig({
2197
+ displayName: "StorySection__StyledBlockSection"
1959
2198
  })(["margin-bottom:16px;"]);
1960
2199
 
1961
2200
  function BlockSection(_ref3) {
1962
- var title = _ref3.title;
1963
- _ref3.className;
1964
- var children = _ref3.children,
2201
+ var title = _ref3.title,
2202
+ children = _ref3.children,
1965
2203
  props = _objectWithoutProperties(_ref3, _excluded3);
1966
2204
 
1967
- 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
+ }));
1968
2210
  }
1969
2211
 
1970
- var StyledDemoSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
1971
- displayName: "StorySection__StyledDemoSection",
1972
- componentId: "kitt-universal__sc-1b3liv5-3"
2212
+ var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
2213
+ displayName: "StorySection__StyledDemoSection"
1973
2214
  })(["margin-bottom:64px;"]);
1974
2215
 
1975
2216
  function DemoSection(_ref4) {
1976
2217
  var children = _ref4.children;
1977
- return /*#__PURE__*/React.createElement(StyledDemoSection, null, /*#__PURE__*/React.createElement(StorySection, {
1978
- internalIsDemoSection: true,
1979
- title: "Demo"
1980
- }, children));
2218
+ return /*#__PURE__*/jsx(StyledDemoSection, {
2219
+ children: /*#__PURE__*/jsx(StorySection, {
2220
+ internalIsDemoSection: true,
2221
+ title: "Demo",
2222
+ children: children
2223
+ })
2224
+ });
1981
2225
  }
1982
2226
 
1983
2227
  StorySection.SubSection = SubSection;
@@ -1998,33 +2242,31 @@ function StoryContainer(_ref) {
1998
2242
  _ref$platform = _ref.platform,
1999
2243
  platform = _ref$platform === void 0 ? 'all' : _ref$platform;
2000
2244
  if (platform === 'web') return null;
2001
- return /*#__PURE__*/React.createElement(StorySection.BlockSection, {
2245
+ return /*#__PURE__*/jsx(StorySection.BlockSection, {
2002
2246
  testID: state,
2003
- title: title
2004
- }, children);
2247
+ title: title,
2248
+ children: children
2249
+ });
2005
2250
  }
2006
2251
 
2007
2252
  function StoryDecorator(storyFn, context) {
2008
- return /*#__PURE__*/React.createElement(Story, {
2009
- title: context.name
2010
- }, storyFn());
2253
+ return /*#__PURE__*/jsx(Story, {
2254
+ title: context.name,
2255
+ children: storyFn()
2256
+ });
2011
2257
  }
2012
2258
 
2013
- var SmallScreenRow = /*#__PURE__*/styled(PrimitiveView).withConfig({
2014
- displayName: "StoryGrid__SmallScreenRow",
2015
- componentId: "kitt-universal__sc-4z5new-0"
2259
+ var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
2260
+ displayName: "StoryGrid__SmallScreenRow"
2016
2261
  })(["flex-direction:column;margin:0;"]);
2017
- var SmallScreenCol = /*#__PURE__*/styled(PrimitiveView).withConfig({
2018
- displayName: "StoryGrid__SmallScreenCol",
2019
- componentId: "kitt-universal__sc-4z5new-1"
2262
+ var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
2263
+ displayName: "StoryGrid__SmallScreenCol"
2020
2264
  })(["padding:8px 0 16px;"]);
2021
- var FlexRow = /*#__PURE__*/styled(PrimitiveView).withConfig({
2022
- displayName: "StoryGrid__FlexRow",
2023
- componentId: "kitt-universal__sc-4z5new-2"
2265
+ var FlexRow = /*#__PURE__*/styled.View.withConfig({
2266
+ displayName: "StoryGrid__FlexRow"
2024
2267
  })(["flex-direction:row;margin:0 -4px 16px;"]);
2025
- var FlexCol = /*#__PURE__*/styled(PrimitiveView).withConfig({
2026
- displayName: "StoryGrid__FlexCol",
2027
- componentId: "kitt-universal__sc-4z5new-3"
2268
+ var FlexCol = /*#__PURE__*/styled.View.withConfig({
2269
+ displayName: "StoryGrid__FlexCol"
2028
2270
  })(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
2029
2271
 
2030
2272
  function StoryGridRow(_ref) {
@@ -2040,14 +2282,22 @@ function StoryGridRow(_ref) {
2040
2282
  var breakpointValue = breakpoint === 'small' ? 480 : 768;
2041
2283
 
2042
2284
  if (width < breakpointValue) {
2043
- return /*#__PURE__*/React.createElement(SmallScreenRow, null, React.Children.map(children, function (child) {
2044
- return /*#__PURE__*/React.createElement(SmallScreenCol, null, child);
2045
- }));
2285
+ return /*#__PURE__*/jsx(SmallScreenRow, {
2286
+ children: Children.map(children, function (child) {
2287
+ return /*#__PURE__*/jsx(SmallScreenCol, {
2288
+ children: child
2289
+ });
2290
+ })
2291
+ });
2046
2292
  }
2047
2293
 
2048
- return /*#__PURE__*/React.createElement(FlexRow, null, React.Children.map(children, function (child) {
2049
- return /*#__PURE__*/React.createElement(FlexCol, null, child);
2050
- }));
2294
+ return /*#__PURE__*/jsx(FlexRow, {
2295
+ children: Children.map(children, function (child) {
2296
+ return /*#__PURE__*/jsx(FlexCol, {
2297
+ children: child
2298
+ });
2299
+ })
2300
+ });
2051
2301
  }
2052
2302
 
2053
2303
  function StoryGridCol(_ref2) {
@@ -2066,10 +2316,13 @@ function StoryGridCol(_ref2) {
2066
2316
  return null;
2067
2317
  }
2068
2318
 
2069
- return /*#__PURE__*/React.createElement(React.Fragment, null, title ? /*#__PURE__*/React.createElement(StoryTitle.Level4, {
2070
- numberOfLines: 1,
2071
- color: titleColor
2072
- }, 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
+ });
2073
2326
  }
2074
2327
 
2075
2328
  var StoryGrid = {
@@ -2077,9 +2330,8 @@ var StoryGrid = {
2077
2330
  Col: StoryGridCol
2078
2331
  };
2079
2332
 
2080
- var Container = /*#__PURE__*/styled(PrimitiveView).withConfig({
2081
- displayName: "Tag__Container",
2082
- componentId: "kitt-universal__sc-19jmowi-0"
2333
+ var Container$1 = /*#__PURE__*/styled.View.withConfig({
2334
+ displayName: "Tag__Container"
2083
2335
  })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2084
2336
  var theme = _ref.theme,
2085
2337
  type = _ref.type,
@@ -2131,13 +2383,15 @@ function Tag(_ref6) {
2131
2383
  type = _ref6$type === void 0 ? 'default' : _ref6$type,
2132
2384
  _ref6$variant = _ref6.variant,
2133
2385
  variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
2134
- return /*#__PURE__*/React.createElement(Container, {
2386
+ return /*#__PURE__*/jsx(Container$1, {
2135
2387
  type: type,
2136
- variant: variant
2137
- }, /*#__PURE__*/React.createElement(Typography.Text, {
2138
- base: "body-xsmall",
2139
- color: getLabelColor(type, variant)
2140
- }, label));
2388
+ variant: variant,
2389
+ children: /*#__PURE__*/jsx(Typography.Text, {
2390
+ base: "body-xsmall",
2391
+ color: getLabelColor(type, variant),
2392
+ children: label
2393
+ })
2394
+ });
2141
2395
  }
2142
2396
 
2143
2397
  var lateOceanColorPalette = {
@@ -2246,6 +2500,7 @@ var colorsLateOceanTheme = {
2246
2500
  danger: lateOceanColorPalette.englishVermillon,
2247
2501
  separator: lateOceanColorPalette.black100,
2248
2502
  hover: lateOceanColorPalette.black100,
2503
+ black: lateOceanColorPalette.black1000,
2249
2504
  uiBackground: lateOceanColorPalette.black25,
2250
2505
  uiBackgroundLight: lateOceanColorPalette.white,
2251
2506
  overlay: {
@@ -2431,6 +2686,15 @@ var tagLateOceanTheme = {
2431
2686
  }
2432
2687
  };
2433
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
+
2434
2698
  var calcLineHeight = function (fontSize, lineHeightMultiplier) {
2435
2699
  return Math.round(fontSize * lineHeightMultiplier);
2436
2700
  };
@@ -2547,50 +2811,437 @@ var theme = {
2547
2811
  shadows: shadowsLateOceanTheme,
2548
2812
  fullScreenModal: fullScreenModalLateOceanTheme,
2549
2813
  iconButton: iconButton,
2550
- listItem: listItemLateOceanTheme
2814
+ listItem: listItemLateOceanTheme,
2815
+ tooltip: tooltip
2551
2816
  };
2552
2817
 
2553
- function Tooltip(_ref) {
2818
+ function Title(_ref) {
2554
2819
  var children = _ref.children;
2555
- 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
+ });
2556
2827
  }
2557
2828
 
2558
- var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
2559
- var StyledLink = /*#__PURE__*/styled(PrimitiveLink).withConfig({
2560
- shouldForwardProp: function shouldForwardProp(prop) {
2561
- return !['disabled', 'noUnderline'].includes(prop);
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
+ });
2881
+ }
2882
+
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
+ };
2922
+ };
2923
+
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; }
2979
+
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
+ }));
3024
+ }
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/chris/ornikar/kitt/@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
+
3161
+ var StyledTypographyEmoji = /*#__PURE__*/styled(Emoji).withConfig({
3162
+ displayName: "TypographyEmoji__StyledTypographyEmoji"
3163
+ })(["align-self:center;", ""], function (_ref) {
3164
+ var size = _ref.size;
3165
+ if (Platform.OS !== 'web') return undefined;
3166
+ /* Style Twemoji: https://github.com/twitter/twemoji#inline-styles */
3167
+
3168
+ return "\n margin: 0 ".concat(size / 20, "px 0 ").concat(size / 10, "px;\n transform: translateY(").concat(size / 10 * 2, "px);\n ");
3169
+ });
3170
+ function TypographyEmoji(_ref2) {
3171
+ var emoji = _ref2.emoji,
3172
+ base = _ref2.base,
3173
+ small = _ref2.small,
3174
+ medium = _ref2.medium,
3175
+ large = _ref2.large;
3176
+ var theme = /*#__PURE__*/useTheme();
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;
3181
+
3182
+ if ((process.env.NODE_ENV !== "production")) {
3183
+ if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
2562
3184
  }
2563
- }).withConfig({
2564
- displayName: "TypographyLink__StyledLink",
2565
- componentId: "kitt-universal__sc-1o1zy30-0"
2566
- })(["text-decoration:", ";", ""], function (_ref) {
2567
- var noUnderline = _ref.noUnderline;
2568
- return noUnderline ? 'none' : 'underline';
3185
+
3186
+ return /*#__PURE__*/jsx(StyledTypographyEmoji, {
3187
+ size: parseInt(fontSize.slice(0, -2), 10),
3188
+ emoji: emoji
3189
+ });
3190
+ }
3191
+
3192
+ var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
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';
2569
3206
  }, function (_ref2) {
2570
- var disabled = _ref2.disabled,
2571
- theme = _ref2.theme,
2572
- noUnderline = _ref2.noUnderline;
2573
- 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, ";");
2574
3215
  });
2575
- function TypographyLink(_ref3) {
2576
- var children = _ref3.children,
2577
- disabled = _ref3.disabled,
2578
- noUnderline = _ref3.noUnderline,
2579
- href = _ref3.href,
2580
- hrefAttrs = _ref3.hrefAttrs,
2581
- onPress = _ref3.onPress,
2582
- otherProps = _objectWithoutProperties(_ref3, _excluded$1);
2583
-
2584
- return /*#__PURE__*/React.createElement(Typography, _extends({}, otherProps, {
2585
- accessibilityRole: "none"
2586
- }), /*#__PURE__*/React.createElement(StyledLink, {
2587
- disabled: disabled,
2588
- noUnderline: noUnderline,
2589
- href: href,
2590
- hrefAttrs: hrefAttrs,
2591
- accessibilityRole: "link",
2592
- onPress: disabled ? undefined : onPress
2593
- }, 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,
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
+ }));
2594
3245
  }
2595
3246
 
2596
3247
  function matchWindowSize(currentWidth, _ref) {
@@ -2662,9 +3313,10 @@ function useKittTheme() {
2662
3313
  function KittThemeProvider(_ref) {
2663
3314
  var children = _ref.children;
2664
3315
  var theme = useKittTheme();
2665
- return /*#__PURE__*/React.createElement(ThemeProvider, {
2666
- theme: theme
2667
- }, children);
3316
+ return /*#__PURE__*/jsx(ThemeProvider, {
3317
+ theme: theme,
3318
+ children: children
3319
+ });
2668
3320
  }
2669
3321
  var KittThemeDecorator = makeDecorator({
2670
3322
  name: 'ThemeDecorator',
@@ -2672,17 +3324,9 @@ var KittThemeDecorator = makeDecorator({
2672
3324
  wrapper: function wrapper(storyFn, context, _ref2) {
2673
3325
  _ref2.options;
2674
3326
  _ref2.parameters;
2675
- return /*#__PURE__*/React.createElement(KittThemeProvider, null, storyFn(context));
2676
- }
2677
- });
2678
-
2679
- var SafeAreaProviderDecorator = makeDecorator({
2680
- name: 'SafeAreaProviderDecorator',
2681
- parameterName: 'safeAreaProvider',
2682
- wrapper: function wrapper(storyFn, context, _ref) {
2683
- _ref.options;
2684
- _ref.parameters;
2685
- return /*#__PURE__*/React.createElement(SafeAreaProvider, null, storyFn(context));
3327
+ return /*#__PURE__*/jsx(KittThemeProvider, {
3328
+ children: storyFn(context)
3329
+ });
2686
3330
  }
2687
3331
  });
2688
3332
 
@@ -2693,8 +3337,10 @@ function MatchWindowSize(_ref) {
2693
3337
 
2694
3338
  var match = useMatchWindowSize(matchWindowSizeOptions);
2695
3339
  if (!match) return null;
2696
- return /*#__PURE__*/React.createElement(React.Fragment, null, children);
3340
+ return /*#__PURE__*/jsx(Fragment$1, {
3341
+ children: children
3342
+ });
2697
3343
  }
2698
3344
 
2699
- export { Avatar, Button, Card, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, PrimitiveLink, PrimitivePressable, PrimitiveScrollView, PrimitiveText, PrimitiveView, Radio, SafeAreaProviderDecorator, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, Tooltip, Typography, 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 };
2700
3346
  //# sourceMappingURL=index-browser-all.es.js.map