@ornikar/kitt-universal 2.2.0 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) 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 +5 -2
  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 +13 -0
  7. package/dist/definitions/Button/ButtonPressable.d.ts.map +1 -0
  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 +18 -0
  12. package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -0
  13. package/dist/definitions/ExternalLink/ExternalLink.web.d.ts +4 -0
  14. package/dist/definitions/ExternalLink/ExternalLink.web.d.ts.map +1 -0
  15. package/dist/definitions/ExternalLink/ExternalLinkOpenLinkBehavior.d.ts +24 -0
  16. package/dist/definitions/ExternalLink/ExternalLinkOpenLinkBehavior.d.ts.map +1 -0
  17. package/dist/definitions/FullScreenModal/Body.d.ts.map +1 -1
  18. package/dist/definitions/FullScreenModal/FullScreenModal.d.ts.map +1 -1
  19. package/dist/definitions/FullScreenModal/Header.d.ts.map +1 -1
  20. package/dist/definitions/Icon/Icon.d.ts.map +1 -1
  21. package/dist/definitions/Icon/SpinningIcon.web.d.ts +3 -2
  22. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  23. package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
  24. package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -1
  25. package/dist/definitions/IconButton/PressableAnimatedContainer.web.d.ts.map +1 -1
  26. package/dist/definitions/IconButton/PressableIconButton.d.ts +4 -4
  27. package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -1
  28. package/dist/definitions/ListItem/ListItem.d.ts +3 -4
  29. package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
  30. package/dist/definitions/ListItem/ListItemContent.d.ts +2 -2
  31. package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
  32. package/dist/definitions/ListItem/ListItemSideContent.d.ts +3 -4
  33. package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
  34. package/dist/definitions/Loader/LargeLoader.d.ts.map +1 -1
  35. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +1 -1
  36. package/dist/definitions/Loader/Loader.d.ts.map +1 -1
  37. package/dist/definitions/Loader/Loader.web.d.ts.map +1 -1
  38. package/dist/definitions/Message/Message.d.ts.map +1 -1
  39. package/dist/definitions/Modal/Body.d.ts.map +1 -1
  40. package/dist/definitions/Modal/Footer.d.ts.map +1 -1
  41. package/dist/definitions/Modal/Header.d.ts.map +1 -1
  42. package/dist/definitions/Modal/Modal.d.ts.map +1 -1
  43. package/dist/definitions/Notification/Notification.d.ts.map +1 -1
  44. package/dist/definitions/Overlay/Overlay.d.ts +2 -2
  45. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  46. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  47. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +12 -0
  48. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -0
  49. package/dist/definitions/TimePicker/TimePicker.d.ts +15 -0
  50. package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -0
  51. package/dist/definitions/TimePicker/TimePicker.web.d.ts +3 -0
  52. package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -0
  53. package/dist/definitions/TimePicker/useTimePicker.d.ts +14 -0
  54. package/dist/definitions/TimePicker/useTimePicker.d.ts.map +1 -0
  55. package/dist/definitions/Tooltip/Tooltip.d.ts +23 -3
  56. package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
  57. package/dist/definitions/Tooltip/Tooltip.web.d.ts +8 -0
  58. package/dist/definitions/Tooltip/Tooltip.web.d.ts.map +1 -0
  59. package/dist/definitions/Tooltip/TooltipView.d.ts +8 -0
  60. package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -0
  61. package/dist/definitions/Tooltip/tooltipUtils.d.ts +5 -0
  62. package/dist/definitions/Tooltip/tooltipUtils.d.ts.map +1 -0
  63. package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts.map +1 -1
  64. package/dist/definitions/forms/InputField/InputField.d.ts.map +1 -1
  65. package/dist/definitions/forms/InputText/InputText.d.ts +3 -2
  66. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  67. package/dist/definitions/forms/Label/Label.d.ts.map +1 -1
  68. package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
  69. package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
  70. package/dist/definitions/index.d.ts +9 -13
  71. package/dist/definitions/index.d.ts.map +1 -1
  72. package/dist/definitions/story-components/Flex.d.ts +2 -2
  73. package/dist/definitions/story-components/Flex.d.ts.map +1 -1
  74. package/dist/definitions/story-components/Story.d.ts.map +1 -1
  75. package/dist/definitions/story-components/StoryBlock.d.ts +1 -2
  76. package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
  77. package/dist/definitions/story-components/StoryContainer.d.ts.map +1 -1
  78. package/dist/definitions/story-components/StoryContainer.web.d.ts.map +1 -1
  79. package/dist/definitions/story-components/StoryDecorator.d.ts +3 -3
  80. package/dist/definitions/story-components/StoryDecorator.d.ts.map +1 -1
  81. package/dist/definitions/story-components/StoryGrid.d.ts.map +1 -1
  82. package/dist/definitions/story-components/StorySection.d.ts +7 -9
  83. package/dist/definitions/story-components/StorySection.d.ts.map +1 -1
  84. package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
  85. package/dist/definitions/themes/default.d.ts +3 -6
  86. package/dist/definitions/themes/default.d.ts.map +1 -1
  87. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +1 -0
  88. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
  89. package/dist/definitions/themes/late-ocean/tooltip.d.ts +10 -0
  90. package/dist/definitions/themes/late-ocean/tooltip.d.ts.map +1 -0
  91. package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts +6 -8
  92. package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +1 -1
  93. package/dist/definitions/typography/Typography.d.ts +19 -7
  94. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  95. package/dist/definitions/typography/TypographyEmoji.d.ts +7 -0
  96. package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -0
  97. package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
  98. package/dist/definitions/typography/TypographyLink.d.ts +9 -9
  99. package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
  100. package/dist/definitions/useKittTheme.d.ts +8 -1
  101. package/dist/definitions/useKittTheme.d.ts.map +1 -1
  102. package/dist/definitions/utils/StyleWebWrapper.d.ts +7 -0
  103. package/dist/definitions/utils/StyleWebWrapper.d.ts.map +1 -0
  104. package/dist/definitions/utils/storybook/{decorators/KittThemeDecorator.d.ts → KittThemeDecorator.d.ts} +1 -1
  105. package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -0
  106. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +2 -2
  107. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
  108. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts +1 -0
  109. package/dist/definitions/utils/tests/styled-component-typing-test.d.ts.map +1 -1
  110. package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts.map +1 -1
  111. package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +2 -2
  112. package/dist/definitions/utils/withTheme.d.ts +7 -0
  113. package/dist/definitions/utils/withTheme.d.ts.map +1 -0
  114. package/dist/index-browser-all.es.android.js +1437 -652
  115. package/dist/index-browser-all.es.android.js.map +1 -1
  116. package/dist/index-browser-all.es.css +2 -0
  117. package/dist/index-browser-all.es.ios.js +1437 -652
  118. package/dist/index-browser-all.es.ios.js.map +1 -1
  119. package/dist/index-browser-all.es.js +1403 -724
  120. package/dist/index-browser-all.es.js.map +1 -1
  121. package/dist/index-browser-all.es.web.js +1249 -837
  122. package/dist/index-browser-all.es.web.js.map +1 -1
  123. package/dist/index-node-14.17.cjs.css +2 -0
  124. package/dist/index-node-14.17.cjs.js +1244 -634
  125. package/dist/index-node-14.17.cjs.js.map +1 -1
  126. package/dist/styles.css +4 -0
  127. package/dist/tsbuildinfo +1 -1
  128. package/package.json +19 -7
  129. package/translations/es-ES.json +3 -0
  130. package/translations/fr-FR.json +3 -0
  131. package/dist/definitions/Button/ButtonContainer.d.ts +0 -12
  132. package/dist/definitions/Button/ButtonContainer.d.ts.map +0 -1
  133. package/dist/definitions/Button/useButton.d.ts +0 -6
  134. package/dist/definitions/Button/useButton.d.ts.map +0 -1
  135. package/dist/definitions/primitives/PrimitiveLink.d.ts +0 -11
  136. package/dist/definitions/primitives/PrimitiveLink.d.ts.map +0 -1
  137. package/dist/definitions/primitives/PrimitiveLink.web.d.ts +0 -4
  138. package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +0 -1
  139. package/dist/definitions/primitives/PrimitivePressable.d.ts +0 -16
  140. package/dist/definitions/primitives/PrimitivePressable.d.ts.map +0 -1
  141. package/dist/definitions/primitives/PrimitivePressable.web.d.ts +0 -4
  142. package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +0 -1
  143. package/dist/definitions/primitives/PrimitiveScrollView.d.ts +0 -8
  144. package/dist/definitions/primitives/PrimitiveScrollView.d.ts.map +0 -1
  145. package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts +0 -4
  146. package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts.map +0 -1
  147. package/dist/definitions/primitives/PrimitiveText.d.ts +0 -14
  148. package/dist/definitions/primitives/PrimitiveText.d.ts.map +0 -1
  149. package/dist/definitions/primitives/PrimitiveText.web.d.ts +0 -6
  150. package/dist/definitions/primitives/PrimitiveText.web.d.ts.map +0 -1
  151. package/dist/definitions/primitives/PrimitiveView.d.ts +0 -21
  152. package/dist/definitions/primitives/PrimitiveView.d.ts.map +0 -1
  153. package/dist/definitions/primitives/PrimitiveView.web.d.ts +0 -23
  154. package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +0 -1
  155. package/dist/definitions/primitives/helpers.d.ts +0 -7
  156. package/dist/definitions/primitives/helpers.d.ts.map +0 -1
  157. package/dist/definitions/primitives/reset.d.ts +0 -2
  158. package/dist/definitions/primitives/reset.d.ts.map +0 -1
  159. package/dist/definitions/utils/storybook/decorators/KittThemeDecorator.d.ts.map +0 -1
  160. package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts +0 -2
  161. package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts.map +0 -1
  162. package/dist/definitions/utils/storybook/setup-global-decorators.d.ts +0 -2
  163. package/dist/definitions/utils/storybook/setup-global-decorators.d.ts.map +0 -1
@@ -1,129 +1,56 @@
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
+ import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
4
+ export { useWindowDimensions as useWindowSize } from 'react-native';
3
5
  import { UserIcon, EyeIcon, EyeOffIcon, LoaderIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
4
6
  export * from '@ornikar/kitt-icons';
5
- import React, { createContext, forwardRef, useContext, useState, Fragment, useMemo } from 'react';
6
- import { Image, TextInput, useWindowDimensions, TouchableOpacity, StyleSheet, Modal as Modal$1 } from 'react-native';
7
- export { useWindowDimensions as useWindowSize } from 'react-native';
8
- import styled, { css, keyframes, useTheme, ThemeProvider } from 'styled-components';
7
+ import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
8
+ import { cloneElement, useContext, createContext, useState, useMemo, forwardRef, Fragment, Children, useEffect } from 'react';
9
+ import { styled } from '@linaria/react';
10
+ import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
9
11
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
10
- import { useSafeAreaInsets, SafeAreaProvider } from 'react-native-safe-area-context';
11
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
12
+ import { parse } from 'twemoji-parser';
13
+ import _extends from '@babel/runtime/helpers/extends';
14
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
15
+ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
16
+ import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
12
17
  import { makeDecorator } from '@storybook/addons';
13
18
 
14
- var resetMixin = /*#__PURE__*/css(["border:0 solid black;box-sizing:border-box;margin:0;padding:0;"]);
15
-
16
- var mapAccessibilityRoleToAriaRole = {
17
- header: 'heading',
18
- none: 'presentation',
19
- paragraph: 'paragraph'
20
- };
21
- var PrimitiveTextAncestorContext = /*#__PURE__*/createContext(false);
22
- var PrimitiveTextWithClassName$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
23
- var children = _ref.children,
24
- className = _ref.className,
25
- accessibilityRole = _ref.accessibilityRole,
26
- accessibilityRoleDescription = _ref.accessibilityRoleDescription,
27
- accessibilityLevel = _ref.accessibilityLevel;
28
- _ref.selectable;
29
- _ref.numberOfLines;
30
- var hasTextAncestor = React.useContext(PrimitiveTextAncestorContext);
31
- var Component = hasTextAncestor ? 'span' : 'div';
32
-
33
- if (accessibilityRole === 'header' && accessibilityLevel && accessibilityLevel < 7) {
34
- Component = "h".concat(accessibilityLevel); // eslint-disable-next-line no-param-reassign
35
-
36
- accessibilityRole = undefined; // eslint-disable-next-line no-param-reassign
37
-
38
- accessibilityLevel = undefined;
39
- }
40
-
41
- var element = /*#__PURE__*/React.createElement(Component, {
42
- ref: ref,
43
- className: className,
44
- role: accessibilityRole ? mapAccessibilityRoleToAriaRole[accessibilityRole] : undefined,
45
- "aria-roledescription": accessibilityRoleDescription,
46
- "aria-level": accessibilityLevel
47
- }, children);
48
- return hasTextAncestor ? element : /*#__PURE__*/React.createElement(PrimitiveTextAncestorContext.Provider, {
49
- value: true
50
- }, element);
51
- });
52
- var textResetMixin = /*#__PURE__*/css(["", " display:inline;white-space:pre-wrap;word-wrap:break-word;color:inherit;font:inherit;"], resetMixin);
53
- var PrimitiveText = /*#__PURE__*/styled(PrimitiveTextWithClassName$1).withConfig({
54
- displayName: "PrimitiveTextweb__PrimitiveText",
55
- componentId: "kitt-universal__sc-8bfguf-0"
56
- })(["", " ", ";", ""], textResetMixin, function (_ref2) {
57
- var selectable = _ref2.selectable;
58
- return selectable == null ? undefined : "user-select: ".concat(selectable ? 'text' : 'none');
59
- }, function (_ref3) {
60
- var numberOfLines = _ref3.numberOfLines;
61
- return numberOfLines ? "\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: ".concat(numberOfLines, ";\n -webkit-box-orient: vertical;\n line-clamp: ").concat(numberOfLines, ";\n ") : '';
62
- });
63
-
64
- function createPressClickHandler(onPress) {
65
- if (!onPress) return undefined;
66
- return function (event) {
67
- event.stopPropagation();
68
- onPress(event);
19
+ 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; }
20
+
21
+ 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; }
22
+ // type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
23
+ // type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
24
+ // export function withTheme<Props extends { theme: DefaultTheme }, C>(
25
+ // WrappedComponent: ComponentType<Props> & C,
26
+ // ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
27
+ // return function ThemedComponent(props) {
28
+ // const theme = useTheme();
29
+ // return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
30
+ // };
31
+ // }
32
+ function withTheme( // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
33
+ WrappedComponent) {
34
+ return function (props) {
35
+ var theme = /*#__PURE__*/useTheme();
36
+ return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$h({
37
+ theme: theme
38
+ }, props));
69
39
  };
70
40
  }
71
41
 
72
- var isValidKeyPress = function (_ref) {
73
- var key = _ref.key,
74
- target = _ref.target;
75
- var role = target.getAttribute('role');
76
- return key === 'Enter' || (key === ' ' || key === 'Spacebar') && role === 'button';
77
- }; // https://github.com/necolas/react-native-web/blob/b2eb3ca03ffc4b8570591b6c2082c6e4edae0e7f/packages/react-native-web/src/modules/usePressEvents/PressResponder.js#L300-L322
78
-
79
-
80
- function createPressKeyUpHandler(onPress) {
81
- if (!onPress) return undefined;
82
- return function (event) {
83
- if (isValidKeyPress(event)) {
84
- onPress(event);
85
- }
86
- };
42
+ var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled("div")({
43
+ name: "StyledSpinningIconContainer",
44
+ "class": "ssn8o83"
45
+ }));
46
+ function SpinningIcon(_ref) {
47
+ var children = _ref.children;
48
+ return /*#__PURE__*/jsx(StyledSpinningIconContainer, {
49
+ children: children
50
+ });
87
51
  }
88
52
 
89
- var StyledDiv = /*#__PURE__*/styled('div').withConfig({
90
- displayName: "PrimitiveViewweb__StyledDiv",
91
- componentId: "kitt-universal__sc-1t2oiuz-0"
92
- })(["", " align-items:stretch;display:", ";flex-basis:auto;flex-direction:column;flex-shrink:0;min-height:0;min-width:0;position:'relative';z-index:0;"], resetMixin, function (_ref) {
93
- var hasTextAncestor = _ref.hasTextAncestor;
94
- return hasTextAncestor ? 'inline-flex' : 'flex';
95
- });
96
- var PrimitiveView = /*#__PURE__*/forwardRef(function (_ref2, ref) {
97
- var children = _ref2.children,
98
- className = _ref2.className,
99
- style = _ref2.style,
100
- accessibilityRole = _ref2.accessibilityRole,
101
- nativeID = _ref2.nativeID,
102
- testID = _ref2.testID,
103
- tabIndex = _ref2.tabIndex,
104
- onPress = _ref2.onPress;
105
- var hasTextAncestor = React.useContext(PrimitiveTextAncestorContext);
106
- return /*#__PURE__*/React.createElement(StyledDiv, {
107
- ref: ref,
108
- hasTextAncestor: hasTextAncestor,
109
- id: nativeID,
110
- className: className,
111
- style: style,
112
- "data-testid": testID,
113
- role: accessibilityRole,
114
- tabIndex: tabIndex,
115
- onClick: createPressClickHandler(onPress),
116
- onKeyUp: createPressKeyUpHandler(onPress)
117
- }, children);
118
- });
119
-
120
- var spin = /*#__PURE__*/keyframes(["0%{transform:rotate(-1deg);}100%{transform:rotate(359deg);}"]);
121
- var SpinningIcon = /*#__PURE__*/styled(PrimitiveView).withConfig({
122
- displayName: "SpinningIconweb__SpinningIcon",
123
- componentId: "kitt-universal__sc-xgsnek-0"
124
- })(["animation:", " 1.1s infinite linear;"], spin);
125
-
126
- var IconContainer$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
53
+ var IconContainer$2 = /*#__PURE__*/styled$1(View).withConfig({
127
54
  displayName: "Icon__IconContainer",
128
55
  componentId: "kitt-universal__sc-usm0ol-0"
129
56
  })(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
@@ -147,91 +74,173 @@ function Icon(_ref5) {
147
74
  spin = _ref5.spin,
148
75
  align = _ref5.align,
149
76
  color = _ref5.color;
150
- var clonedIcon = /*#__PURE__*/React.cloneElement(icon, {
77
+ var clonedIcon = /*#__PURE__*/cloneElement(icon, {
151
78
  color: color
152
79
  });
153
- return /*#__PURE__*/React.createElement(IconContainer$2, {
80
+ return /*#__PURE__*/jsx(IconContainer$2, {
154
81
  align: align,
155
82
  size: size,
156
- color: color
157
- }, spin ? /*#__PURE__*/React.createElement(SpinningIcon, null, clonedIcon) : clonedIcon);
83
+ color: color,
84
+ children: spin ? /*#__PURE__*/jsx(SpinningIcon, {
85
+ children: clonedIcon
86
+ }) : clonedIcon
87
+ });
158
88
  }
159
89
 
160
- var _excluded$a = ["accessibilityRole", "base", "variant", "color"];
161
- var TypographyTypeContext = /*#__PURE__*/createContext(undefined);
90
+ var KittBreakpoints = {
91
+ /**
92
+ * min-width: 0
93
+ */
94
+ BASE: 0,
95
+
96
+ /**
97
+ * min-width: 480px
98
+ */
99
+ SMALL: 480,
100
+
101
+ /**
102
+ * min-width: 768px
103
+ */
104
+ MEDIUM: 768,
105
+
106
+ /**
107
+ * min-width: 1024px
108
+ */
109
+ LARGE: 1024,
110
+
111
+ /**
112
+ * min-width: 1280px
113
+ */
114
+ WIDE: 1280
115
+ };
116
+ var KittBreakpointsMax = {
117
+ /**
118
+ * max-width: 479px
119
+ */
120
+ BASE: KittBreakpoints.SMALL - 1,
121
+
122
+ /**
123
+ * max-width: 767px
124
+ */
125
+ SMALL: KittBreakpoints.MEDIUM - 1,
126
+
127
+ /**
128
+ * max-width: 1023px
129
+ */
130
+ MEDIUM: KittBreakpoints.LARGE - 1,
131
+
132
+ /**
133
+ * max-width: 1279px
134
+ */
135
+ LARGE: KittBreakpoints.WIDE - 1
136
+ };
137
+
138
+ var _excluded$c = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
139
+
140
+ 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; }
141
+
142
+ 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; }
143
+ var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
162
144
  var TypographyColorContext = /*#__PURE__*/createContext('black');
163
145
  function useTypographyColor() {
164
146
  return useContext(TypographyColorContext);
165
147
  }
166
- var StyledTypography = /*#__PURE__*/styled(PrimitiveText).withConfig({
148
+ var getTypographyTypeConfigKey = function (theme) {
149
+ var isMediumOrAbove = theme.responsive.matchWindowSize({
150
+ minWidth: KittBreakpoints.MEDIUM
151
+ });
152
+ return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
153
+ };
154
+
155
+ var isTypeHeader = function (type) {
156
+ return type.startsWith('header');
157
+ };
158
+
159
+ var isTypographyHeader = function (type, typographyIsHeaderInContext) {
160
+ if (type) return isTypeHeader(type);
161
+ if (typographyIsHeaderInContext != null) return typographyIsHeaderInContext;
162
+ throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
163
+ };
164
+ function getTypographyTypeConfig(type, theme) {
165
+ if (isTypographyHeader(type, undefined)) {
166
+ return theme.kitt.typography.types.headers.configs[type];
167
+ }
168
+
169
+ return theme.kitt.typography.types.bodies.configs[type];
170
+ }
171
+ var StyledTypography = /*#__PURE__*/styled$1(Text$1).withConfig({
167
172
  displayName: "Typography__StyledTypography",
168
173
  componentId: "kitt-universal__sc-1dz700q-0"
169
174
  })(["", " ", ""], function (_ref) {
170
175
  var theme = _ref.theme,
171
- isHeader = _ref.isHeader,
172
- type = _ref.type,
173
- variant = _ref.variant;
176
+ $isHeader = _ref.$isHeader,
177
+ $typeForCurrentWindowSize = _ref.$typeForCurrentWindowSize,
178
+ $variant = _ref.$variant;
174
179
  var _theme$kitt$typograph = theme.kitt.typography.types,
175
180
  headers = _theme$kitt$typograph.headers,
176
181
  bodies = _theme$kitt$typograph.bodies;
177
- 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 ");
182
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
183
+ 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 ");
178
184
  }, function (_ref2) {
179
185
  var theme = _ref2.theme,
180
- color = _ref2.color;
181
- return !color ? '' : "\n color: ".concat(theme.kitt.typography.colors[color], ";\n text-decoration-color: ").concat(theme.kitt.typography.colors[color], ";\n ");
186
+ $color = _ref2.$color;
187
+ return !$color ? '' : "\n color: ".concat(theme.kitt.typography.colors[$color], ";\n text-decoration-color: ").concat(theme.kitt.typography.colors[$color], ";\n ");
182
188
  });
189
+ function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
190
+ var _useWindowDimensions = useWindowDimensions(),
191
+ width = _useWindowDimensions.width;
183
192
 
184
- var isTypeHeader = function (type) {
185
- return type.startsWith('header');
186
- };
187
-
188
- var isTypographyHeader = function (base, typeInContext) {
189
- if (base) return isTypeHeader(base);
190
- if (typeInContext) return isTypeHeader(typeInContext);
191
- throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
192
- };
193
-
193
+ if (large && width >= KittBreakpoints.LARGE) return large;
194
+ if (medium && width >= KittBreakpoints.MEDIUM) return medium;
195
+ if (small && width >= KittBreakpoints.SMALL) return small;
196
+ return base;
197
+ }
194
198
  function Typography(_ref3) {
195
199
  var accessibilityRole = _ref3.accessibilityRole,
196
200
  base = _ref3.base,
201
+ small = _ref3.small,
202
+ medium = _ref3.medium,
203
+ large = _ref3.large,
197
204
  variant = _ref3.variant,
198
205
  color = _ref3.color,
199
- otherProps = _objectWithoutProperties(_ref3, _excluded$a);
200
-
201
- var typeInContext = useContext(TypographyTypeContext);
202
- var isHeader = isTypographyHeader(base, typeInContext);
203
- var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
204
- var colorWithDefaultToBlack = color !== null && color !== void 0 ? color : typeInContext ? undefined : 'black';
205
- var content = base ?
206
- /*#__PURE__*/
207
- // use the type and pass the type to the context for children
208
- React.createElement(TypographyTypeContext.Provider, {
209
- value: base
210
- }, /*#__PURE__*/React.createElement(StyledTypography, _extends({
211
- color: colorWithDefaultToBlack,
212
- isHeader: isHeader,
213
- type: base,
214
- variant: nonNullableVariant,
215
- accessibilityRole: accessibilityRole || undefined
216
- }, otherProps))) : /*#__PURE__*/React.createElement(StyledTypography, _extends({
217
- color: colorWithDefaultToBlack,
218
- isHeader: isHeader,
219
- variant: nonNullableVariant,
206
+ otherProps = _objectWithoutProperties(_ref3, _excluded$c);
207
+
208
+ var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
209
+ var typeForCurrentWindowSize = useTypographyTypeForCurrentWindowSize(base, small, medium, large);
210
+ var isHeader = isTypographyHeader(typeForCurrentWindowSize, isHeaderTypographyInContext);
211
+ 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
212
+ // redefine the color, just inherit from it
213
+
214
+ var colorWithDefaultToBlack = color !== null && color !== void 0 ? color : isHeaderTypographyInContext !== undefined ? undefined : 'black';
215
+ var content = base ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
216
+ value: isHeader,
217
+ children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$g({
218
+ $color: colorWithDefaultToBlack,
219
+ $isHeader: isHeader,
220
+ $typeForCurrentWindowSize: typeForCurrentWindowSize,
221
+ $variant: nonNullableVariant,
222
+ accessibilityRole: accessibilityRole || undefined
223
+ }, otherProps))
224
+ }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$g({
225
+ $color: colorWithDefaultToBlack,
226
+ $isHeader: isHeader,
227
+ $variant: nonNullableVariant,
220
228
  accessibilityRole: accessibilityRole || undefined
221
229
  }, otherProps));
222
- return color ? /*#__PURE__*/React.createElement(TypographyColorContext.Provider, {
223
- value: color
224
- }, content) : content;
230
+ return color ? /*#__PURE__*/jsx(TypographyColorContext.Provider, {
231
+ value: color,
232
+ children: content
233
+ }) : content;
225
234
  }
226
235
 
227
236
  function TypographyText(props) {
228
- return /*#__PURE__*/React.createElement(Typography, _extends({
237
+ return /*#__PURE__*/jsx(Typography, _objectSpread$g({
229
238
  accessibilityRole: null
230
239
  }, props));
231
240
  }
232
241
 
233
242
  function TypographyParagraph(props) {
234
- return /*#__PURE__*/React.createElement(Typography, _extends({
243
+ return /*#__PURE__*/jsx(Typography, _objectSpread$g({
235
244
  accessibilityRole: "paragraph"
236
245
  }, props));
237
246
  }
@@ -239,10 +248,10 @@ function TypographyParagraph(props) {
239
248
  var createHeading = function (level, defaultBase) {
240
249
  // https://github.com/necolas/react-native-web/issues/401
241
250
  function TypographyHeading(props) {
242
- return /*#__PURE__*/React.createElement(Typography, _extends({
251
+ return /*#__PURE__*/jsx(Typography, _objectSpread$g(_objectSpread$g({
243
252
  accessibilityRole: "header",
244
253
  base: defaultBase
245
- }, props, {
254
+ }, props), {}, {
246
255
  accessibilityLevel: level
247
256
  }));
248
257
  }
@@ -275,7 +284,11 @@ Typography.h4 = createHeading(4, 'header4');
275
284
 
276
285
  Typography.h5 = createHeading(5, 'header5');
277
286
 
278
- var _excluded$9 = ["size"];
287
+ var _excluded$b = ["size"];
288
+
289
+ 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; }
290
+
291
+ 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; }
279
292
 
280
293
  var getFirstCharacter = function (string) {
281
294
  return string ? string[0] : '';
@@ -285,7 +298,7 @@ var getInitials = function (firstname, lastname) {
285
298
  return (getFirstCharacter(firstname) + getFirstCharacter(lastname)).toUpperCase();
286
299
  };
287
300
 
288
- var StyledAvatarView = /*#__PURE__*/styled(PrimitiveView).withConfig({
301
+ var StyledAvatarView = /*#__PURE__*/styled$1(View).withConfig({
289
302
  displayName: "Avatar__StyledAvatarView",
290
303
  componentId: "kitt-universal__sc-9miubv-0"
291
304
  })(["border-radius:", "px;background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
@@ -313,7 +326,7 @@ function AvatarContent(_ref5) {
313
326
  light = _ref5.light;
314
327
 
315
328
  if (src) {
316
- return /*#__PURE__*/React.createElement(Image, {
329
+ return /*#__PURE__*/jsx(Image, {
317
330
  source: {
318
331
  uri: src
319
332
  },
@@ -325,15 +338,16 @@ function AvatarContent(_ref5) {
325
338
  }
326
339
 
327
340
  if (firstname && lastname) {
328
- return /*#__PURE__*/React.createElement(Typography.Text, {
341
+ return /*#__PURE__*/jsx(Typography.Text, {
329
342
  base: "body-small",
330
343
  variant: "bold",
331
- color: light ? 'black' : 'white'
332
- }, getInitials(firstname, lastname));
344
+ color: light ? 'black' : 'white',
345
+ children: getInitials(firstname, lastname)
346
+ });
333
347
  }
334
348
 
335
- return /*#__PURE__*/React.createElement(Icon, {
336
- icon: /*#__PURE__*/React.createElement(UserIcon, null),
349
+ return /*#__PURE__*/jsx(Icon, {
350
+ icon: /*#__PURE__*/jsx(UserIcon, {}),
337
351
  color: light ? 'black' : 'white',
338
352
  size: size / 2
339
353
  });
@@ -342,123 +356,37 @@ function AvatarContent(_ref5) {
342
356
  function Avatar(_ref6) {
343
357
  var _ref6$size = _ref6.size,
344
358
  size = _ref6$size === void 0 ? 40 : _ref6$size,
345
- rest = _objectWithoutProperties(_ref6, _excluded$9);
359
+ rest = _objectWithoutProperties(_ref6, _excluded$b);
346
360
 
347
- return /*#__PURE__*/React.createElement(StyledAvatarView, _extends({}, rest, {
348
- size: size
349
- }), /*#__PURE__*/React.createElement(AvatarContent, _extends({}, rest, {
350
- size: size
351
- })));
361
+ return /*#__PURE__*/jsx(StyledAvatarView, _objectSpread$f(_objectSpread$f({}, rest), {}, {
362
+ size: size,
363
+ children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$f(_objectSpread$f({}, rest), {}, {
364
+ size: size
365
+ }))
366
+ }));
352
367
  }
353
368
 
354
- var getTabIndex = function (_ref) {
355
- var focusable = _ref.focusable,
356
- disabled = _ref.disabled;
357
- if (disabled) return -1;
358
- if (focusable === false) return -1;
359
- return 0;
360
- };
361
-
362
- var handlePressPreventDefault = function (e) {
363
- e.preventDefault();
364
- };
365
-
366
- var PrimitivePressableWithClassName = /*#__PURE__*/forwardRef(function (_ref2, ref) {
367
- var disabled = _ref2.disabled,
368
- focusable = _ref2.focusable,
369
- children = _ref2.children,
370
- className = _ref2.className,
371
- accessibilityRole = _ref2.accessibilityRole,
372
- nativeID = _ref2.nativeID,
373
- testID = _ref2.testID,
374
- onPress = _ref2.onPress;
375
- return /*#__PURE__*/React.createElement(PrimitiveView, {
376
- ref: ref,
377
- nativeID: nativeID,
378
- testID: testID,
379
- className: className,
380
- "aria-disabled": !!disabled,
381
- accessibilityRole: accessibilityRole
382
- /* https://necolas.github.io/react-native-web/docs/accessibility/#keyboard-focus */
383
- ,
384
- tabIndex: getTabIndex({
385
- focusable: focusable,
386
- disabled: disabled
387
- }),
388
- onPress: disabled ? handlePressPreventDefault : onPress
389
- }, children);
390
- });
391
- var PrimitivePressable = /*#__PURE__*/styled(PrimitivePressableWithClassName).withConfig({
392
- displayName: "PrimitivePressableweb__PrimitivePressable",
393
- componentId: "kitt-universal__sc-1pzco2e-0"
394
- })(["cursor:", ";touch-action:", ";"], function (_ref3) {
395
- var disabled = _ref3.disabled;
396
- return disabled ? 'not-allowed' : 'pointer';
397
- }, function (_ref4) {
398
- var disabled = _ref4.disabled;
399
- return disabled ? 'none' : 'manipulation';
400
- });
401
-
402
- var ButtonContainer = /*#__PURE__*/styled(PrimitivePressable).withConfig({
403
- displayName: "ButtonContainer",
404
- componentId: "kitt-universal__sc-ofbpwm-0"
405
- })(["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) {
406
- var theme = _ref.theme;
407
- return theme.kitt.button.minWidth;
408
- }, function (_ref2) {
409
- var theme = _ref2.theme,
410
- stretch = _ref2.stretch;
411
- return stretch ? 'auto' : theme.kitt.button.maxWidth;
412
- }, function (_ref3) {
413
- var stretch = _ref3.stretch;
414
- return stretch ? '100%' : 'auto';
415
- }, function (_ref4) {
416
- var theme = _ref4.theme;
417
- return theme.kitt.button.minHeight;
418
- }, function (_ref5) {
419
- var theme = _ref5.theme,
420
- isPressed = _ref5.isPressed,
421
- disabled = _ref5.disabled,
422
- type = _ref5.type;
423
-
424
- if (disabled) {
425
- return theme.kitt.button[type].disabledBackgroundColor;
426
- }
369
+ var _excluded$a = ["color"],
370
+ _excluded2$2 = ["color"];
427
371
 
428
- return isPressed ? theme.kitt.button[type].pressedBackgroundColor : theme.kitt.button[type].backgroundColor;
429
- }, function (_ref6) {
430
- var theme = _ref6.theme;
431
- return theme.kitt.button.contentPadding["default"];
432
- }, function (_ref7) {
433
- var theme = _ref7.theme;
434
- return theme.kitt.button.borderRadius;
435
- }, function (_ref8) {
436
- var theme = _ref8.theme,
437
- disabled = _ref8.disabled,
438
- type = _ref8.type;
439
- return disabled ? theme.kitt.button[type].disabledBorderColor : 'transparent';
440
- }, function (_ref9) {
441
- var theme = _ref9.theme;
442
- return theme.kitt.button.borderWidth;
443
- });
372
+ 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; }
444
373
 
445
- var _excluded$8 = ["color"],
446
- _excluded2$2 = ["color"];
374
+ 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; }
447
375
 
448
376
  function TypographyIconInheritColor(props) {
449
377
  var color = useTypographyColor();
450
378
  var theme = /*#__PURE__*/useTheme();
451
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
379
+ return /*#__PURE__*/jsx(Icon, _objectSpread$e(_objectSpread$e({}, props), {}, {
452
380
  color: theme.kitt.typography.colors[color]
453
381
  }));
454
382
  }
455
383
 
456
384
  function TypographyIconSpecifiedColor(_ref) {
457
385
  var color = _ref.color,
458
- otherProps = _objectWithoutProperties(_ref, _excluded$8);
386
+ otherProps = _objectWithoutProperties(_ref, _excluded$a);
459
387
 
460
388
  var theme = /*#__PURE__*/useTheme();
461
- return /*#__PURE__*/React.createElement(Icon, _extends({}, otherProps, {
389
+ return /*#__PURE__*/jsx(Icon, _objectSpread$e(_objectSpread$e({}, otherProps), {}, {
462
390
  color: theme.kitt.typography.colors[color]
463
391
  }));
464
392
  }
@@ -468,14 +396,18 @@ function TypographyIcon(_ref2) {
468
396
  otherProps = _objectWithoutProperties(_ref2, _excluded2$2);
469
397
 
470
398
  if (color) {
471
- return /*#__PURE__*/React.createElement(TypographyIconSpecifiedColor, _extends({
399
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$e({
472
400
  color: color
473
401
  }, otherProps));
474
402
  }
475
403
 
476
- return /*#__PURE__*/React.createElement(TypographyIconInheritColor, otherProps);
404
+ return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$e({}, otherProps));
477
405
  }
478
406
 
407
+ 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; }
408
+
409
+ 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; }
410
+
479
411
  var getTextColorByType = function (type, isPressed, disabled) {
480
412
  if (disabled) return 'black-light';
481
413
 
@@ -495,11 +427,11 @@ var getTextColorByType = function (type, isPressed, disabled) {
495
427
  }
496
428
  };
497
429
 
498
- var ButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
430
+ var ButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
499
431
  displayName: "ButtonContent__ButtonText",
500
432
  componentId: "kitt-universal__sc-dnyw3n-0"
501
433
  })(["text-align:center;"]);
502
- var Content$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
434
+ var Content$1 = /*#__PURE__*/styled$1(View).withConfig({
503
435
  displayName: "ButtonContent__Content",
504
436
  componentId: "kitt-universal__sc-dnyw3n-1"
505
437
  })(["flex-direction:row;align-items:center;justify-content:center;flex:", ";"], function (_ref) {
@@ -507,7 +439,7 @@ var Content$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
507
439
  iconOnly = _ref.iconOnly;
508
440
  return "".concat(stretch || iconOnly ? 1 : 0, " 1 auto");
509
441
  });
510
- var IconContainer$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
442
+ var IconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
511
443
  displayName: "ButtonContent__IconContainer",
512
444
  componentId: "kitt-universal__sc-dnyw3n-2"
513
445
  })(["", ""], function (_ref2) {
@@ -529,15 +461,16 @@ function ButtonIcon(_ref3) {
529
461
  size = _ref3.size,
530
462
  iconPosition = _ref3.iconPosition,
531
463
  testID = _ref3.testID;
532
- return /*#__PURE__*/React.createElement(IconContainer$1, {
533
- iconPosition: iconPosition
534
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
535
- icon: icon,
536
- spin: spin,
537
- color: color,
538
- size: size,
539
- testID: testID
540
- }));
464
+ return /*#__PURE__*/jsx(IconContainer$1, {
465
+ iconPosition: iconPosition,
466
+ children: /*#__PURE__*/jsx(TypographyIcon, {
467
+ icon: icon,
468
+ spin: spin,
469
+ color: color,
470
+ size: size,
471
+ testID: testID
472
+ })
473
+ });
541
474
  }
542
475
 
543
476
  function ButtonContent(_ref4) {
@@ -564,47 +497,79 @@ function ButtonContent(_ref4) {
564
497
  }
565
498
 
566
499
  if (!children) {
567
- return /*#__PURE__*/React.createElement(Content$1, {
500
+ return /*#__PURE__*/jsx(Content$1, {
568
501
  iconOnly: true,
569
- stretch: stretch
570
- }, /*#__PURE__*/React.createElement(TypographyIcon, _extends({}, sharedIconProps, {
571
- icon: icon
572
- })));
502
+ stretch: stretch,
503
+ children: /*#__PURE__*/jsx(TypographyIcon, _objectSpread$d(_objectSpread$d({}, sharedIconProps), {}, {
504
+ icon: icon
505
+ }))
506
+ });
573
507
  }
574
508
 
575
- return /*#__PURE__*/React.createElement(Content$1, {
576
- stretch: stretch
577
- }, icon && iconPosition === 'left' ? /*#__PURE__*/React.createElement(ButtonIcon, _extends({}, sharedIconProps, {
578
- icon: icon,
579
- iconPosition: iconPosition,
580
- testID: "button-left-icon"
581
- })) : null, /*#__PURE__*/React.createElement(ButtonText, {
582
- base: "body",
583
- color: color,
584
- variant: "bold"
585
- }, children), icon && iconPosition === 'right' ? /*#__PURE__*/React.createElement(ButtonIcon, _extends({}, sharedIconProps, {
586
- icon: icon,
587
- iconPosition: iconPosition
588
- })) : null);
509
+ return /*#__PURE__*/jsxs(Content$1, {
510
+ stretch: stretch,
511
+ children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$d(_objectSpread$d({}, sharedIconProps), {}, {
512
+ icon: icon,
513
+ iconPosition: iconPosition,
514
+ testID: "button-left-icon"
515
+ })) : null, /*#__PURE__*/jsx(ButtonText, {
516
+ base: "body",
517
+ color: color,
518
+ variant: "bold",
519
+ children: children
520
+ }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$d(_objectSpread$d({}, sharedIconProps), {}, {
521
+ icon: icon,
522
+ iconPosition: iconPosition
523
+ })) : null]
524
+ });
589
525
  }
590
526
 
591
- var useButton = function () {
592
- var _useState = useState(false),
593
- _useState2 = _slicedToArray(_useState, 2),
594
- isPressed = _useState2[0],
595
- setIsPressed = _useState2[1];
527
+ var ButtonPressable = /*#__PURE__*/styled$1(Pressable).withConfig({
528
+ displayName: "ButtonPressable",
529
+ componentId: "kitt-universal__sc-7ckel6-0"
530
+ })(["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) {
531
+ var theme = _ref.theme;
532
+ return theme.kitt.button.minWidth;
533
+ }, function (_ref2) {
534
+ var theme = _ref2.theme,
535
+ stretch = _ref2.stretch;
536
+ return stretch ? 'auto' : theme.kitt.button.maxWidth;
537
+ }, function (_ref3) {
538
+ var stretch = _ref3.stretch;
539
+ return stretch ? '100%' : 'auto';
540
+ }, function (_ref4) {
541
+ var theme = _ref4.theme;
542
+ return theme.kitt.button.minHeight;
543
+ }, function (_ref5) {
544
+ var theme = _ref5.theme,
545
+ isPressed = _ref5.isPressed,
546
+ disabled = _ref5.disabled,
547
+ type = _ref5.type;
596
548
 
597
- return {
598
- isPressed: isPressed,
599
- handleButtonPressIn: function handleButtonPressIn() {
600
- return setIsPressed(true);
601
- },
602
- handleButtonPressOut: function handleButtonPressOut() {
603
- return setIsPressed(false);
604
- }
605
- };
606
- };
549
+ if (disabled) {
550
+ return theme.kitt.button[type].disabledBackgroundColor;
551
+ }
552
+
553
+ return isPressed ? theme.kitt.button[type].pressedBackgroundColor : theme.kitt.button[type].backgroundColor;
554
+ }, function (_ref6) {
555
+ var theme = _ref6.theme;
556
+ return theme.kitt.button.contentPadding["default"];
557
+ }, function (_ref7) {
558
+ var theme = _ref7.theme;
559
+ return theme.kitt.button.borderRadius;
560
+ }, function (_ref8) {
561
+ var theme = _ref8.theme,
562
+ disabled = _ref8.disabled,
563
+ type = _ref8.type;
564
+ return disabled ? theme.kitt.button[type].disabledBorderColor : 'transparent';
565
+ }, function (_ref9) {
566
+ var theme = _ref9.theme;
567
+ return theme.kitt.button.borderWidth;
568
+ });
569
+
570
+ 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; }
607
571
 
572
+ 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; }
608
573
  function Button(_ref) {
609
574
  var children = _ref.children,
610
575
  _ref$type = _ref.type,
@@ -615,37 +580,47 @@ function Button(_ref) {
615
580
  iconSpin = _ref.iconSpin,
616
581
  stretch = _ref.stretch,
617
582
  disabled = _ref.disabled,
618
- onPress = _ref.onPress,
619
- testID = _ref.testID;
583
+ testID = _ref.testID,
584
+ href = _ref.href,
585
+ hrefAttrs = _ref.hrefAttrs,
586
+ onPress = _ref.onPress;
620
587
 
621
- var _useButton = useButton(),
622
- isPressed = _useButton.isPressed,
623
- handleButtonPressIn = _useButton.handleButtonPressIn,
624
- handleButtonPressOut = _useButton.handleButtonPressOut;
588
+ var _useState = useState(false),
589
+ _useState2 = _slicedToArray(_useState, 2),
590
+ isPressed = _useState2[0],
591
+ setIsPressed = _useState2[1];
625
592
 
626
593
  var sharedProps = {
627
594
  type: type,
628
595
  stretch: stretch,
629
596
  disabled: disabled
630
597
  };
631
- return /*#__PURE__*/React.createElement(ButtonContainer // eslint-disable-next-line unicorn/expiring-todo-comments
598
+ return /*#__PURE__*/jsx(ButtonPressable // eslint-disable-next-line unicorn/expiring-todo-comments
632
599
  // TODO: When designs are defined, update with the proper onPress styles to mimic TouchableHighlight
633
600
  // underlayColor={globalTheme.button[type].pressedBackgroundColor}
634
- , _extends({}, sharedProps, {
601
+ , _objectSpread$c(_objectSpread$c({}, sharedProps), {}, {
635
602
  isPressed: isPressed,
636
603
  accessibilityRole: "button",
637
604
  testID: testID,
605
+ href: href,
606
+ hrefAttrs: hrefAttrs,
638
607
  onPress: onPress,
639
- onPressIn: handleButtonPressIn,
640
- onPressOut: handleButtonPressOut
641
- }), /*#__PURE__*/React.createElement(ButtonContent, _extends({}, sharedProps, {
642
- icon: icon,
643
- iconPosition: iconPosition,
644
- iconSpin: iconSpin
645
- }), children));
608
+ onPressIn: function handleButtonPressIn() {
609
+ return setIsPressed(true);
610
+ },
611
+ onPressOut: function handleButtonPressOut() {
612
+ return setIsPressed(false);
613
+ },
614
+ children: /*#__PURE__*/jsx(ButtonContent, _objectSpread$c(_objectSpread$c({}, sharedProps), {}, {
615
+ icon: icon,
616
+ iconPosition: iconPosition,
617
+ iconSpin: iconSpin,
618
+ children: children
619
+ }))
620
+ }));
646
621
  }
647
622
 
648
- var Container$5 = /*#__PURE__*/styled(PrimitiveView).withConfig({
623
+ var Container$5 = /*#__PURE__*/styled$1(View).withConfig({
649
624
  displayName: "Card__Container",
650
625
  componentId: "kitt-universal__sc-1n9psug-0"
651
626
  })(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
@@ -669,85 +644,102 @@ var Container$5 = /*#__PURE__*/styled(PrimitiveView).withConfig({
669
644
  function Card(_ref6) {
670
645
  var children = _ref6.children,
671
646
  type = _ref6.type;
672
- return /*#__PURE__*/React.createElement(Container$5, {
673
- type: type
674
- }, children);
647
+ return /*#__PURE__*/jsx(Container$5, {
648
+ type: type,
649
+ children: children
650
+ });
675
651
  }
676
652
 
677
- var getColorFromState = function (state) {
678
- switch (state) {
679
- case 'invalid':
680
- return 'danger';
653
+ var StyledEmoji = /*#__PURE__*/styled$1(Image).withConfig({
654
+ displayName: "Emoji__StyledEmoji",
655
+ componentId: "kitt-universal__sc-ggl6wj-0"
656
+ })(["width:", "px;height:", "px;"], function (_ref) {
657
+ var size = _ref.size;
658
+ return size;
659
+ }, function (_ref2) {
660
+ var size = _ref2.size;
661
+ return size;
662
+ });
663
+ function Emoji(_ref3) {
664
+ var emoji = _ref3.emoji,
665
+ size = _ref3.size,
666
+ style = _ref3.style;
681
667
 
682
- default:
683
- return 'black-light';
684
- }
685
- };
668
+ var _useMemo = useMemo(function () {
669
+ return parse(emoji, {
670
+ // on native plaforms, you can't display svg as Image
671
+ assetType: 'svg'
672
+ });
673
+ }, [emoji]),
674
+ _useMemo2 = _slicedToArray(_useMemo, 1),
675
+ emojiData = _useMemo2[0];
686
676
 
687
- function InputFeedback(_ref) {
688
- var state = _ref.state,
689
- testID = _ref.testID,
690
- children = _ref.children;
691
- return /*#__PURE__*/React.createElement(Typography.Text, {
692
- base: "body-small",
693
- color: getColorFromState(state),
694
- testID: testID
695
- }, children);
677
+ if (!emojiData) return null;
678
+ return /*#__PURE__*/jsx(StyledEmoji, {
679
+ size: size,
680
+ accessibilityLabel: emojiData.text,
681
+ source: {
682
+ uri: emojiData.url
683
+ },
684
+ style: style
685
+ });
696
686
  }
697
687
 
698
- var KittBreakpoints = {
699
- /**
700
- * min-width: 0
701
- */
702
- BASE: 0,
703
-
704
- /**
705
- * min-width: 480px
706
- */
707
- SMALL: 480,
708
-
709
- /**
710
- * min-width: 768px
711
- */
712
- MEDIUM: 768,
688
+ var defaultOpenLinkBehavior = {
689
+ "native": 'openInModal',
690
+ web: 'targetBlank'
691
+ };
713
692
 
714
- /**
715
- * min-width: 1024px
716
- */
717
- LARGE: 1024,
693
+ var _excluded$9 = ["as", "href", "openLinkBehavior", "onPress"];
718
694
 
719
- /**
720
- * min-width: 1280px
721
- */
722
- WIDE: 1280
723
- };
724
- var KittBreakpointsMax = {
725
- /**
726
- * max-width: 479px
727
- */
728
- BASE: KittBreakpoints.SMALL - 1,
695
+ 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; }
729
696
 
730
- /**
731
- * max-width: 767px
732
- */
733
- SMALL: KittBreakpoints.MEDIUM - 1,
697
+ 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; }
698
+ function ExternalLink(_ref) {
699
+ var Component = _ref.as,
700
+ href = _ref.href,
701
+ _ref$openLinkBehavior = _ref.openLinkBehavior,
702
+ openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
703
+ onPress = _ref.onPress,
704
+ rest = _objectWithoutProperties(_ref, _excluded$9);
734
705
 
735
- /**
736
- * max-width: 1023px
737
- */
738
- MEDIUM: KittBreakpoints.LARGE - 1,
706
+ return /*#__PURE__*/jsx(Component, _objectSpread$b(_objectSpread$b({}, rest), {}, {
707
+ href: href,
708
+ hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
709
+ target: '_blank',
710
+ rel: 'noopener noreferrer'
711
+ },
712
+ onPress: onPress
713
+ }));
714
+ }
739
715
 
740
- /**
741
- * max-width: 1279px
742
- */
743
- LARGE: KittBreakpoints.WIDE - 1
716
+ var getColorFromState = function (state) {
717
+ switch (state) {
718
+ case 'invalid':
719
+ return 'danger';
720
+
721
+ default:
722
+ return 'black-light';
723
+ }
744
724
  };
745
725
 
746
- var FieldContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
726
+ function InputFeedback(_ref) {
727
+ var state = _ref.state,
728
+ testID = _ref.testID,
729
+ children = _ref.children;
730
+ return /*#__PURE__*/jsx(Typography.Text, {
731
+ base: "body-small",
732
+ color: getColorFromState(state),
733
+ testID: testID,
734
+ children: children
735
+ });
736
+ }
737
+
738
+ var FieldContainer = /*#__PURE__*/styled$1(View).withConfig({
747
739
  displayName: "InputField__FieldContainer",
748
740
  componentId: "kitt-universal__sc-13fkixs-0"
749
741
  })(["padding:5px 0 10px;"]);
750
- var FeedbackContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
742
+ var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
751
743
  displayName: "InputField__FeedbackContainer",
752
744
  componentId: "kitt-universal__sc-13fkixs-1"
753
745
  })(["", ";"], function (_ref) {
@@ -756,14 +748,14 @@ var FeedbackContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
756
748
  minWidth: KittBreakpoints.SMALL
757
749
  }, 'padding-top: 10px', 'padding-top: 5px');
758
750
  });
759
- var FieldLabelContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
751
+ var FieldLabelContainer = /*#__PURE__*/styled$1(View).withConfig({
760
752
  displayName: "InputField__FieldLabelContainer",
761
753
  componentId: "kitt-universal__sc-13fkixs-2"
762
754
  })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
763
755
  var theme = _ref2.theme;
764
756
  return theme.kitt.forms.inputField.labelContainerPaddingBottom;
765
757
  });
766
- var LabelContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
758
+ var LabelContainer = /*#__PURE__*/styled$1(View).withConfig({
767
759
  displayName: "InputField__LabelContainer",
768
760
  componentId: "kitt-universal__sc-13fkixs-3"
769
761
  })(["margin-right:", "px;"], function (_ref3) {
@@ -775,7 +767,15 @@ function InputField(_ref4) {
775
767
  labelFeedback = _ref4.labelFeedback,
776
768
  input = _ref4.input,
777
769
  feedback = _ref4.feedback;
778
- 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);
770
+ return /*#__PURE__*/jsxs(FieldContainer, {
771
+ children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
772
+ children: [/*#__PURE__*/jsx(LabelContainer, {
773
+ children: label
774
+ }), labelFeedback]
775
+ }) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
776
+ children: feedback
777
+ }) : null]
778
+ });
779
779
  }
780
780
 
781
781
  var useInputText = function () {
@@ -806,7 +806,11 @@ var useInputText = function () {
806
806
  };
807
807
  };
808
808
 
809
- var _excluded$7 = ["id", "minHeight", "type", "state", "internalForceState", "disabled", "onFocus", "onBlur"];
809
+ var _excluded$8 = ["id", "minHeight", "type", "state", "internalForceState", "disabled", "onFocus", "onBlur"];
810
+
811
+ 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; }
812
+
813
+ 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; }
810
814
  var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
811
815
  var theme = _ref.theme,
812
816
  state = _ref.state;
@@ -823,7 +827,8 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
823
827
  return theme.kitt.forms.input.states[state].borderColor;
824
828
  }, function (_ref5) {
825
829
  var theme = _ref5.theme;
826
- return theme.kitt.typography.types.bodies.configs.body.baseAndSmall.fontSize;
830
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
831
+ return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
827
832
  }, function (_ref6) {
828
833
  var theme = _ref6.theme,
829
834
  state = _ref6.state;
@@ -832,7 +837,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
832
837
  var theme = _ref7.theme;
833
838
  return theme.kitt.typography.types.bodies.fontFamily.regular;
834
839
  });
835
- var Input = /*#__PURE__*/styled(TextInput).withConfig({
840
+ var Input = /*#__PURE__*/styled$1(TextInput).withConfig({
836
841
  displayName: "InputText__Input",
837
842
  componentId: "kitt-universal__sc-uke279-0"
838
843
  })(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
@@ -842,12 +847,14 @@ var Input = /*#__PURE__*/styled(TextInput).withConfig({
842
847
  }, function (_ref9) {
843
848
  var theme = _ref9.theme,
844
849
  multiline = _ref9.multiline;
845
- return !multiline && "web" === 'ios' ? 0 : theme.kitt.typography.types.bodies.configs.body.baseAndSmall.lineHeight;
850
+ if (!multiline && "web" === 'ios') return 0;
851
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
852
+ return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
846
853
  }, function (_ref10) {
847
854
  var minHeight = _ref10.minHeight;
848
855
  return minHeight;
849
856
  });
850
- var Container$4 = /*#__PURE__*/styled(PrimitiveView).withConfig({
857
+ var Container$4 = /*#__PURE__*/styled$1(View).withConfig({
851
858
  displayName: "InputText__Container",
852
859
  componentId: "kitt-universal__sc-uke279-1"
853
860
  })(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
@@ -857,7 +864,7 @@ var Container$4 = /*#__PURE__*/styled(PrimitiveView).withConfig({
857
864
  var theme = _ref12.theme;
858
865
  return theme.kitt.forms.input.marginBottom;
859
866
  });
860
- var PasswordButtonContainer = /*#__PURE__*/styled(PrimitivePressable).withConfig({
867
+ var PasswordButtonContainer = /*#__PURE__*/styled$1(Pressable).withConfig({
861
868
  displayName: "InputText__PasswordButtonContainer",
862
869
  componentId: "kitt-universal__sc-uke279-2"
863
870
  })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
@@ -910,7 +917,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
910
917
  disabled = _ref15$disabled === void 0 ? false : _ref15$disabled,
911
918
  _onFocus = _ref15.onFocus,
912
919
  _onBlur = _ref15.onBlur,
913
- props = _objectWithoutProperties(_ref15, _excluded$7);
920
+ props = _objectWithoutProperties(_ref15, _excluded$8);
914
921
 
915
922
  var _useInputText = useInputText(),
916
923
  isFocused = _useInputText.isFocused,
@@ -925,49 +932,54 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
925
932
  isDisabled: disabled,
926
933
  formState: formState
927
934
  });
928
- return /*#__PURE__*/React.createElement(Container$4, null, /*#__PURE__*/React.createElement(Input, _extends({
929
- ref: ref,
930
- nativeID: id,
931
- editable: !disabled,
932
- keyboardType: keyboardTypeByTextInputType[type],
933
- autoCompleteType: autoCompleteTypeByType[type],
934
- autoCorrect: autoCorrectByType[type],
935
- minHeight: minHeight,
936
- textContentType: textContentTypeByType[type],
937
- placeholderTextColor: theme.kitt.typography.colors[theme.kitt.forms.input.placeholderColor],
938
- selectionColor: theme.kitt.forms.input.selectionColor,
939
- secureTextEntry: type === 'password' && !isPasswordVisible
940
- }, props, {
941
- state: state,
942
- onFocus: function onFocus(e) {
943
- handleInputFocus();
944
- if (_onFocus) _onFocus(e);
945
- },
946
- onBlur: function onBlur(e) {
947
- handleInputBlur();
948
- if (_onBlur) _onBlur(e);
949
- }
950
- })), type === 'password' && !disabled && /*#__PURE__*/React.createElement(PasswordButtonContainer, {
951
- accessibilityRole: "button",
952
- onPress: togglePasswordVisibility
953
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
954
- icon: isPasswordVisible ? /*#__PURE__*/React.createElement(EyeIcon, null) : /*#__PURE__*/React.createElement(EyeOffIcon, null),
955
- size: theme.kitt.forms.input.passwordButtonIconSize,
956
- color: theme.kitt.forms.input.states[state].passwordButtonIconColor
957
- })));
935
+ return /*#__PURE__*/jsxs(Container$4, {
936
+ children: [/*#__PURE__*/jsx(Input, _objectSpread$a(_objectSpread$a({
937
+ ref: ref,
938
+ nativeID: id,
939
+ editable: !disabled,
940
+ keyboardType: keyboardTypeByTextInputType[type],
941
+ autoCompleteType: autoCompleteTypeByType[type],
942
+ autoCorrect: autoCorrectByType[type],
943
+ minHeight: minHeight,
944
+ textContentType: textContentTypeByType[type],
945
+ placeholderTextColor: theme.kitt.typography.colors[theme.kitt.forms.input.placeholderColor],
946
+ selectionColor: theme.kitt.forms.input.selectionColor,
947
+ secureTextEntry: type === 'password' && !isPasswordVisible
948
+ }, props), {}, {
949
+ state: state,
950
+ onFocus: function onFocus(e) {
951
+ handleInputFocus();
952
+ if (_onFocus) _onFocus(e);
953
+ },
954
+ onBlur: function onBlur(e) {
955
+ handleInputBlur();
956
+ if (_onBlur) _onBlur(e);
957
+ }
958
+ })), type === 'password' && !disabled && /*#__PURE__*/jsx(PasswordButtonContainer, {
959
+ accessibilityRole: "button",
960
+ onPress: togglePasswordVisibility,
961
+ children: /*#__PURE__*/jsx(TypographyIcon, {
962
+ icon: isPasswordVisible ? /*#__PURE__*/jsx(EyeIcon, {}) : /*#__PURE__*/jsx(EyeOffIcon, {}),
963
+ size: theme.kitt.forms.input.passwordButtonIconSize,
964
+ color: theme.kitt.forms.input.states[state].passwordButtonIconColor
965
+ })
966
+ })]
967
+ });
958
968
  });
959
969
 
960
970
  function Label(_ref) {
961
971
  var htmlFor = _ref.htmlFor,
962
972
  children = _ref.children;
963
- return /*#__PURE__*/React.createElement(Typography.Text, {
964
- base: "body"
965
- }, /*#__PURE__*/React.createElement("label", {
966
- htmlFor: htmlFor
967
- }, children));
973
+ return /*#__PURE__*/jsx(Typography.Text, {
974
+ base: "body",
975
+ children: /*#__PURE__*/jsx("label", {
976
+ htmlFor: htmlFor,
977
+ children: children
978
+ })
979
+ });
968
980
  }
969
981
 
970
- var OuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
982
+ var OuterRadio = /*#__PURE__*/styled$1(View).withConfig({
971
983
  displayName: "Radio__OuterRadio",
972
984
  componentId: "kitt-universal__sc-1mdgr2o-0"
973
985
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
@@ -991,7 +1003,7 @@ var OuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
991
1003
  disabled = _ref6.disabled;
992
1004
  return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
993
1005
  });
994
- var SelectedOuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
1006
+ var SelectedOuterRadio = /*#__PURE__*/styled$1(View).withConfig({
995
1007
  displayName: "Radio__SelectedOuterRadio",
996
1008
  componentId: "kitt-universal__sc-1mdgr2o-1"
997
1009
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
@@ -1007,7 +1019,7 @@ var SelectedOuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
1007
1019
  var theme = _ref10.theme;
1008
1020
  return theme.kitt.forms.radio.size / 2;
1009
1021
  });
1010
- var SelectedInnerRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
1022
+ var SelectedInnerRadio = /*#__PURE__*/styled$1(View).withConfig({
1011
1023
  displayName: "Radio__SelectedInnerRadio",
1012
1024
  componentId: "kitt-universal__sc-1mdgr2o-2"
1013
1025
  })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
@@ -1023,11 +1035,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
1023
1035
  var theme = _ref14.theme;
1024
1036
  return theme.kitt.forms.radio.checked.innerSize / 2;
1025
1037
  });
1026
- var Container$3 = /*#__PURE__*/styled(PrimitivePressable).withConfig({
1038
+ var Container$3 = /*#__PURE__*/styled$1(Pressable).withConfig({
1027
1039
  displayName: "Radio__Container",
1028
1040
  componentId: "kitt-universal__sc-1mdgr2o-3"
1029
1041
  })(["flex-direction:row;align-items:center;"]);
1030
- var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
1042
+ var Text = /*#__PURE__*/styled$1(Typography.Text).withConfig({
1031
1043
  displayName: "Radio__Text",
1032
1044
  componentId: "kitt-universal__sc-1mdgr2o-4"
1033
1045
  })(["margin-left:", "px;"], function (_ref15) {
@@ -1042,7 +1054,7 @@ function Radio(_ref16) {
1042
1054
  _ref16$disabled = _ref16.disabled,
1043
1055
  disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
1044
1056
  children = _ref16.children;
1045
- return /*#__PURE__*/React.createElement(Container$3, {
1057
+ return /*#__PURE__*/jsxs(Container$3, {
1046
1058
  nativeID: id,
1047
1059
  disabled: disabled,
1048
1060
  accessibilityRole: "radio",
@@ -1050,28 +1062,35 @@ function Radio(_ref16) {
1050
1062
  focusable: checked && !disabled,
1051
1063
  onPress: function handlePress() {
1052
1064
  onChange(value);
1053
- }
1054
- }, checked && !disabled ? /*#__PURE__*/React.createElement(SelectedOuterRadio, null, /*#__PURE__*/React.createElement(SelectedInnerRadio, null)) : /*#__PURE__*/React.createElement(OuterRadio, {
1055
- disabled: disabled
1056
- }), /*#__PURE__*/React.createElement(Text, {
1057
- base: "body",
1058
- color: disabled ? 'black-light' : 'black'
1059
- }, children));
1065
+ },
1066
+ children: [checked && !disabled ? /*#__PURE__*/jsx(SelectedOuterRadio, {
1067
+ children: /*#__PURE__*/jsx(SelectedInnerRadio, {})
1068
+ }) : /*#__PURE__*/jsx(OuterRadio, {
1069
+ disabled: disabled
1070
+ }), /*#__PURE__*/jsx(Text, {
1071
+ base: "body",
1072
+ color: disabled ? 'black-light' : 'black',
1073
+ children: children
1074
+ })]
1075
+ });
1060
1076
  }
1061
1077
 
1078
+ 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; }
1079
+
1080
+ 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; }
1062
1081
  function TextArea(_ref) {
1063
1082
  var props = _extends({}, _ref);
1064
1083
 
1065
1084
  var theme = /*#__PURE__*/useTheme();
1066
- return /*#__PURE__*/React.createElement(InputText, _extends({
1085
+ return /*#__PURE__*/jsx(InputText, _objectSpread$9(_objectSpread$9({
1067
1086
  multiline: true
1068
- }, props, {
1087
+ }, props), {}, {
1069
1088
  type: "text",
1070
1089
  minHeight: theme.kitt.forms.input.textAreaMinHeight
1071
1090
  }));
1072
1091
  }
1073
1092
 
1074
- var Body = /*#__PURE__*/styled(PrimitiveView).withConfig({
1093
+ var Body = /*#__PURE__*/styled$1(View).withConfig({
1075
1094
  displayName: "Body",
1076
1095
  componentId: "kitt-universal__sc-1ofncfn-0"
1077
1096
  })(["", " background-color:", ";flex:1;"], function (_ref) {
@@ -1085,10 +1104,12 @@ var Body = /*#__PURE__*/styled(PrimitiveView).withConfig({
1085
1104
  });
1086
1105
  function FullScreenModalBody(_ref3) {
1087
1106
  var children = _ref3.children;
1088
- return /*#__PURE__*/React.createElement(Body, null, children);
1107
+ return /*#__PURE__*/jsx(Body, {
1108
+ children: children
1109
+ });
1089
1110
  }
1090
1111
 
1091
- var SideContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1112
+ var SideContainer = /*#__PURE__*/styled$1(View).withConfig({
1092
1113
  displayName: "Header__SideContainer",
1093
1114
  componentId: "kitt-universal__sc-dfmxi1-0"
1094
1115
  })(["", ""], function (_ref) {
@@ -1108,7 +1129,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
1108
1129
  return spacing * 6;
1109
1130
  }
1110
1131
 
1111
- var Header = /*#__PURE__*/styled(PrimitiveView).withConfig({
1132
+ var Header = /*#__PURE__*/styled$1(View).withConfig({
1112
1133
  displayName: "Header",
1113
1134
  componentId: "kitt-universal__sc-dfmxi1-1"
1114
1135
  })(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
@@ -1126,7 +1147,7 @@ var Header = /*#__PURE__*/styled(PrimitiveView).withConfig({
1126
1147
  var theme = _ref3.theme;
1127
1148
  return theme.kitt.fullScreenModal.header.borderColor;
1128
1149
  });
1129
- var HeaderContent = /*#__PURE__*/styled(PrimitiveView).withConfig({
1150
+ var HeaderContent = /*#__PURE__*/styled$1(View).withConfig({
1130
1151
  displayName: "Header__HeaderContent",
1131
1152
  componentId: "kitt-universal__sc-dfmxi1-2"
1132
1153
  })(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
@@ -1194,25 +1215,29 @@ function FullScreenModalHeader(_ref6) {
1194
1215
  setRightWidth(event.nativeEvent.layout.width);
1195
1216
  };
1196
1217
 
1197
- return /*#__PURE__*/React.createElement(Header, {
1198
- insetTop: top
1199
- }, left ? /*#__PURE__*/React.createElement(SideContainer, {
1200
- onLayout: function onLayout(e) {
1201
- return handleLayoutChange(e, 'left');
1202
- }
1203
- }, left) : null, /*#__PURE__*/React.createElement(HeaderContent, {
1204
- windowWidth: dimensions.width,
1205
- leftWidth: leftWidth,
1206
- rightWidth: rightWidth
1207
- }, children), right ? /*#__PURE__*/React.createElement(SideContainer, {
1208
- side: "right",
1209
- onLayout: function onLayout(e) {
1210
- return handleLayoutChange(e, 'right');
1211
- }
1212
- }, right) : null);
1218
+ return /*#__PURE__*/jsxs(Header, {
1219
+ insetTop: top,
1220
+ children: [left ? /*#__PURE__*/jsx(SideContainer, {
1221
+ onLayout: function onLayout(e) {
1222
+ return handleLayoutChange(e, 'left');
1223
+ },
1224
+ children: left
1225
+ }) : null, /*#__PURE__*/jsx(HeaderContent, {
1226
+ windowWidth: dimensions.width,
1227
+ leftWidth: leftWidth,
1228
+ rightWidth: rightWidth,
1229
+ children: children
1230
+ }), right ? /*#__PURE__*/jsx(SideContainer, {
1231
+ side: "right",
1232
+ onLayout: function onLayout(e) {
1233
+ return handleLayoutChange(e, 'right');
1234
+ },
1235
+ children: right
1236
+ }) : null]
1237
+ });
1213
1238
  }
1214
1239
 
1215
- var Container$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1240
+ var Container$2 = /*#__PURE__*/styled$1(View).withConfig({
1216
1241
  displayName: "FullScreenModal__Container",
1217
1242
  componentId: "kitt-universal__sc-11qpbe3-0"
1218
1243
  })(["flex:1;background-color:", ";"], function (_ref) {
@@ -1221,52 +1246,113 @@ var Container$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1221
1246
  });
1222
1247
  function FullScreenModal(_ref2) {
1223
1248
  var children = _ref2.children;
1224
- return /*#__PURE__*/React.createElement(Container$2, null, children);
1249
+ return /*#__PURE__*/jsx(Container$2, {
1250
+ children: children
1251
+ });
1225
1252
  }
1226
1253
  FullScreenModal.Header = FullScreenModalHeader;
1227
1254
  FullScreenModal.Body = FullScreenModalBody;
1228
1255
 
1229
- var PressableIconButton = /*#__PURE__*/styled(PrimitivePressable).withConfig({
1230
- displayName: "PressableIconButton",
1256
+ var _excluded$7 = ["as", "children"];
1257
+
1258
+ 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; }
1259
+
1260
+ 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; }
1261
+ function StyleWebWrapper(_ref) {
1262
+ var as = _ref.as,
1263
+ children = _ref.children,
1264
+ props = _objectWithoutProperties(_ref, _excluded$7);
1265
+
1266
+ return /*#__PURE__*/jsx(as || 'div', _objectSpread$8(_objectSpread$8({}, props), {}, {
1267
+ children: children
1268
+ }));
1269
+ }
1270
+
1271
+ var _excluded$6 = ["color"];
1272
+
1273
+ 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; }
1274
+
1275
+ 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; }
1276
+ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
1277
+ name: "PressableIconButtonWebWrapper",
1278
+ "class": "p1nlccvg",
1279
+ vars: {
1280
+ "p1nlccvg-0": [function (_ref) {
1281
+ var theme = _ref.theme;
1282
+ return theme.kitt.iconButton.scale.base.hover;
1283
+ }],
1284
+ "p1nlccvg-1": [function (_ref2) {
1285
+ var theme = _ref2.theme;
1286
+ return theme.breakpoints.min.mediumBreakpoint;
1287
+ }],
1288
+ "p1nlccvg-2": [function (_ref3) {
1289
+ var theme = _ref3.theme;
1290
+ return theme.kitt.iconButton.scale.medium.hover;
1291
+ }],
1292
+ "p1nlccvg-3": [function (_ref4) {
1293
+ var theme = _ref4.theme;
1294
+ return theme.kitt.iconButton.scale.base.active;
1295
+ }],
1296
+ "p1nlccvg-4": [function (_ref5) {
1297
+ var theme = _ref5.theme;
1298
+ return theme.kitt.iconButton["default"].pressedBackgroundColor;
1299
+ }],
1300
+ "p1nlccvg-5": [function (_ref6) {
1301
+ var theme = _ref6.theme;
1302
+ return theme.kitt.iconButton.white.pressedBackgroundColor;
1303
+ }]
1304
+ }
1305
+ }));
1306
+ var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable).withConfig({
1307
+ displayName: "PressableIconButton__StyledPressableIconButton",
1231
1308
  componentId: "kitt-universal__sc-1m6jo3s-0"
1232
- })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref) {
1233
- var theme = _ref.theme;
1309
+ })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref7) {
1310
+ var theme = _ref7.theme;
1234
1311
  return theme.kitt.iconButton.borderRadius;
1235
- }, function (_ref2) {
1236
- var theme = _ref2.theme;
1312
+ }, function (_ref8) {
1313
+ var theme = _ref8.theme;
1237
1314
  return theme.kitt.iconButton.width;
1238
- }, function (_ref3) {
1239
- var theme = _ref3.theme;
1315
+ }, function (_ref9) {
1316
+ var theme = _ref9.theme;
1240
1317
  return theme.kitt.iconButton.height;
1241
- }, function (_ref4) {
1242
- var theme = _ref4.theme,
1243
- color = _ref4.color,
1244
- disabled = _ref4.disabled;
1318
+ }, function (_ref10) {
1319
+ var theme = _ref10.theme,
1320
+ disabled = _ref10.disabled;
1245
1321
  var iconButton = theme.kitt.iconButton;
1246
- var transition = iconButton.transition,
1247
- scale = iconButton.scale;
1322
+ var transition = iconButton.transition;
1248
1323
 
1249
1324
  if (disabled) {
1250
1325
  return "\n background-color: ".concat(iconButton.disabled.backgroundColor, ";\n ");
1251
1326
  }
1252
1327
 
1253
- 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 ");
1328
+ return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n ");
1254
1329
  });
1330
+ function PressableIconButton(_ref11) {
1331
+ var color = _ref11.color,
1332
+ props = _objectWithoutProperties(_ref11, _excluded$6);
1333
+
1334
+ return /*#__PURE__*/jsx(StyleWebWrapper, {
1335
+ as: PressableIconButtonWebWrapper,
1336
+ "data-color-white": color === 'white',
1337
+ children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$7({}, props))
1338
+ });
1339
+ }
1255
1340
 
1256
1341
  function PressableAnimatedContainer(_ref) {
1257
1342
  var children = _ref.children,
1258
1343
  color = _ref.color,
1259
1344
  disabled = _ref.disabled,
1260
1345
  onPress = _ref.onPress;
1261
- return /*#__PURE__*/React.createElement(PressableIconButton, {
1346
+ return /*#__PURE__*/jsx(PressableIconButton, {
1262
1347
  accessibilityRole: "button",
1263
1348
  color: color,
1264
1349
  disabled: disabled,
1265
- onPress: onPress
1266
- }, children);
1350
+ onPress: onPress,
1351
+ children: children
1352
+ });
1267
1353
  }
1268
1354
 
1269
- var IconButtonContentBorder = /*#__PURE__*/styled(PrimitiveView).withConfig({
1355
+ var IconButtonContentBorder = /*#__PURE__*/styled$1(View).withConfig({
1270
1356
  displayName: "IconButton__IconButtonContentBorder",
1271
1357
  componentId: "kitt-universal__sc-swelbf-0"
1272
1358
  })(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
@@ -1291,12 +1377,13 @@ function IconButtonContent(_ref6) {
1291
1377
  var disabled = _ref6.disabled,
1292
1378
  color = _ref6.color,
1293
1379
  icon = _ref6.icon;
1294
- return /*#__PURE__*/React.createElement(IconButtonContentBorder, {
1295
- disabled: disabled
1296
- }, /*#__PURE__*/React.createElement(TypographyIcon, {
1297
- color: disabled ? 'black-light' : color,
1298
- icon: icon
1299
- }));
1380
+ return /*#__PURE__*/jsx(IconButtonContentBorder, {
1381
+ disabled: disabled,
1382
+ children: /*#__PURE__*/jsx(TypographyIcon, {
1383
+ color: disabled ? 'black-light' : color,
1384
+ icon: icon
1385
+ })
1386
+ });
1300
1387
  }
1301
1388
 
1302
1389
  function IconButton(_ref7) {
@@ -1304,32 +1391,43 @@ function IconButton(_ref7) {
1304
1391
  color = _ref7.color,
1305
1392
  disabled = _ref7.disabled,
1306
1393
  onPress = _ref7.onPress;
1307
- return /*#__PURE__*/React.createElement(PressableAnimatedContainer, {
1394
+ return /*#__PURE__*/jsx(PressableAnimatedContainer, {
1308
1395
  color: color,
1309
1396
  disabled: disabled,
1310
- onPress: onPress
1311
- }, /*#__PURE__*/React.createElement(IconButtonContent, {
1312
- disabled: disabled,
1313
- color: color,
1314
- icon: icon
1315
- }));
1397
+ onPress: onPress,
1398
+ children: /*#__PURE__*/jsx(IconButtonContent, {
1399
+ disabled: disabled,
1400
+ color: color,
1401
+ icon: icon
1402
+ })
1403
+ });
1316
1404
  }
1317
1405
 
1318
- var _excluded$6 = ["children"];
1319
- var ContentView$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1406
+ var _excluded$5 = ["children"];
1407
+
1408
+ 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; }
1409
+
1410
+ 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; }
1411
+ var ContentView$1 = /*#__PURE__*/styled$1(View).withConfig({
1320
1412
  displayName: "ListItemContent__ContentView",
1321
1413
  componentId: "kitt-universal__sc-57q0u9-0"
1322
1414
  })(["flex:1 0 0%;align-self:center;"]);
1323
1415
  function ListItemContent(_ref) {
1324
1416
  var children = _ref.children,
1325
- rest = _objectWithoutProperties(_ref, _excluded$6);
1417
+ rest = _objectWithoutProperties(_ref, _excluded$5);
1326
1418
 
1327
- return /*#__PURE__*/React.createElement(ContentView$1, rest, children);
1419
+ return /*#__PURE__*/jsx(ContentView$1, _objectSpread$6(_objectSpread$6({}, rest), {}, {
1420
+ children: children
1421
+ }));
1328
1422
  }
1329
1423
 
1330
- var _excluded$5 = ["children", "side"],
1424
+ var _excluded$4 = ["children", "side"],
1331
1425
  _excluded2$1 = ["children", "align"];
1332
- var SideContainerView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1426
+
1427
+ 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; }
1428
+
1429
+ 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; }
1430
+ var SideContainerView = /*#__PURE__*/styled$1(View).withConfig({
1333
1431
  displayName: "ListItemSideContent__SideContainerView",
1334
1432
  componentId: "kitt-universal__sc-1vajiw-0"
1335
1433
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
@@ -1346,13 +1444,15 @@ function ListItemSideContainer(_ref3) {
1346
1444
  var children = _ref3.children,
1347
1445
  _ref3$side = _ref3.side,
1348
1446
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
1349
- rest = _objectWithoutProperties(_ref3, _excluded$5);
1447
+ rest = _objectWithoutProperties(_ref3, _excluded$4);
1350
1448
 
1351
- return /*#__PURE__*/React.createElement(SideContainerView, _extends({
1449
+ return /*#__PURE__*/jsx(SideContainerView, _objectSpread$5(_objectSpread$5({
1352
1450
  side: side
1353
- }, rest), children);
1451
+ }, rest), {}, {
1452
+ children: children
1453
+ }));
1354
1454
  }
1355
- var SideContentView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1455
+ var SideContentView = /*#__PURE__*/styled$1(View).withConfig({
1356
1456
  displayName: "ListItemSideContent__SideContentView",
1357
1457
  componentId: "kitt-universal__sc-1vajiw-1"
1358
1458
  })(["align-self:", ";"], function (_ref4) {
@@ -1365,17 +1465,19 @@ function ListItemSideContent(_ref5) {
1365
1465
  align = _ref5$align === void 0 ? 'auto' : _ref5$align,
1366
1466
  rest = _objectWithoutProperties(_ref5, _excluded2$1);
1367
1467
 
1368
- return /*#__PURE__*/React.createElement(SideContentView, _extends({
1468
+ return /*#__PURE__*/jsx(SideContentView, _objectSpread$5(_objectSpread$5({
1369
1469
  align: align
1370
- }, rest), children);
1470
+ }, rest), {}, {
1471
+ children: children
1472
+ }));
1371
1473
  }
1372
1474
 
1373
- var _excluded$4 = ["children", "withPadding", "borders", "left", "right", "onPress"];
1475
+ var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
1374
1476
 
1375
- 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; }
1477
+ 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; }
1376
1478
 
1377
- 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; }
1378
- var ContainerView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1479
+ 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; }
1480
+ var ContainerView = /*#__PURE__*/styled$1(View).withConfig({
1379
1481
  displayName: "ListItem__ContainerView",
1380
1482
  componentId: "kitt-universal__sc-2afp9s-0"
1381
1483
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -1414,69 +1516,73 @@ function ListItem(_ref5) {
1414
1516
  left = _ref5.left,
1415
1517
  right = _ref5.right,
1416
1518
  onPress = _ref5.onPress,
1417
- rest = _objectWithoutProperties(_ref5, _excluded$4);
1519
+ rest = _objectWithoutProperties(_ref5, _excluded$3);
1418
1520
 
1419
- var Wrapper = onPress ? PrimitivePressable : Fragment;
1420
- var wrapperProps = onPress ? _objectSpread$1({
1521
+ var Wrapper = onPress ? Pressable : Fragment;
1522
+ var wrapperProps = onPress ? _objectSpread$4({
1421
1523
  accessibilityRole: 'button',
1422
1524
  onPress: onPress
1423
1525
  }, rest) : undefined;
1424
1526
  var containerProps = onPress ? undefined : rest;
1425
- return /*#__PURE__*/React.createElement(Wrapper, wrapperProps, /*#__PURE__*/React.createElement(ContainerView, _extends({
1426
- withPadding: withPadding,
1427
- borders: borders
1428
- }, containerProps), left ? /*#__PURE__*/React.createElement(ListItemSideContainer, {
1429
- side: "left"
1430
- }, left) : null, /*#__PURE__*/React.createElement(ListItemContent, null, children), right ? /*#__PURE__*/React.createElement(ListItemSideContainer, {
1431
- side: "right"
1432
- }, right) : null));
1527
+ return /*#__PURE__*/jsx(Wrapper, _objectSpread$4(_objectSpread$4({}, wrapperProps), {}, {
1528
+ children: /*#__PURE__*/jsxs(ContainerView, _objectSpread$4(_objectSpread$4({
1529
+ withPadding: withPadding,
1530
+ borders: borders
1531
+ }, containerProps), {}, {
1532
+ children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
1533
+ side: "left",
1534
+ children: left
1535
+ }) : null, /*#__PURE__*/jsx(ListItemContent, {
1536
+ children: children
1537
+ }), right ? /*#__PURE__*/jsx(ListItemSideContainer, {
1538
+ side: "right",
1539
+ children: right
1540
+ }) : null]
1541
+ }))
1542
+ }));
1433
1543
  }
1434
1544
  ListItem.Content = ListItemContent;
1435
1545
  ListItem.SideContent = ListItemSideContent;
1436
1546
  ListItem.SideContainer = ListItemSideContainer;
1437
1547
 
1438
- var init = /*#__PURE__*/keyframes(["0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:0;}"]);
1439
- var offset = /*#__PURE__*/keyframes(["0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:34px;}"]);
1440
- var rotate = /*#__PURE__*/keyframes(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]);
1441
- var LargeLoaderContainer = /*#__PURE__*/styled.div.withConfig({
1442
- displayName: "LargeLoaderweb__LargeLoaderContainer",
1443
- componentId: "kitt-universal__sc-18y4z3t-0"
1444
- })(["width:60px;height:60px;transform:scale(-1) rotate(90deg);"]);
1445
- var LargeLoaderCircleMixin = /*#__PURE__*/css(["transform-origin:center center;stroke-width:3px;stroke-dasharray:169.64px;stroke-dashoffset:169.64px;stroke-linecap:round;"]);
1446
- var LargeLoaderFill = /*#__PURE__*/styled.g.withConfig({
1447
- displayName: "LargeLoaderweb__LargeLoaderFill",
1448
- componentId: "kitt-universal__sc-18y4z3t-1"
1449
- })(["transform-origin:center center;animation:", " 1.8s linear 0.5s infinite;"], rotate);
1450
- var LargeLoaderBase = /*#__PURE__*/styled.g.withConfig({
1451
- displayName: "LargeLoaderweb__LargeLoaderBase",
1452
- componentId: "kitt-universal__sc-18y4z3t-2"
1453
- })(["transform-origin:center center;"]);
1454
- var LargeLoaderBaseCircle = /*#__PURE__*/styled.circle.withConfig({
1455
- displayName: "LargeLoaderweb__LargeLoaderBaseCircle",
1456
- componentId: "kitt-universal__sc-18y4z3t-3"
1457
- })(["", " stroke:#ccc;animation:", " 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;"], LargeLoaderCircleMixin, init);
1458
- var LargeLoaderFillCircle = /*#__PURE__*/styled.circle.withConfig({
1459
- displayName: "LargeLoaderweb__LargeLoaderFillCircle",
1460
- componentId: "kitt-universal__sc-18y4z3t-4"
1461
- })(["", " stroke:", ";animation:", " 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,", " 2.16s linear 0.5s infinite;"], LargeLoaderCircleMixin, function (_ref) {
1462
- var theme = _ref.theme;
1463
- return theme.kitt.colors.primary;
1464
- }, offset, rotate);
1548
+ var LargeLoaderContainer = withTheme( /*#__PURE__*/styled("div")({
1549
+ name: "LargeLoaderContainer",
1550
+ "class": "l2im3sa",
1551
+ vars: {
1552
+ "l2im3sa-0": [function (_ref) {
1553
+ var theme = _ref.theme;
1554
+ return theme.kitt.colors.separator;
1555
+ }],
1556
+ "l2im3sa-1": [function (_ref2) {
1557
+ var theme = _ref2.theme;
1558
+ return theme.kitt.colors.primary;
1559
+ }]
1560
+ }
1561
+ }));
1465
1562
  function LargeLoader() {
1466
- return /*#__PURE__*/React.createElement(LargeLoaderContainer, null, /*#__PURE__*/React.createElement("svg", {
1467
- width: "60",
1468
- height: "60"
1469
- }, /*#__PURE__*/React.createElement(LargeLoaderBase, null, /*#__PURE__*/React.createElement(LargeLoaderBaseCircle, {
1470
- cx: "30",
1471
- cy: "30",
1472
- r: "27",
1473
- fill: "none"
1474
- })), /*#__PURE__*/React.createElement(LargeLoaderFill, null, /*#__PURE__*/React.createElement(LargeLoaderFillCircle, {
1475
- cx: "30",
1476
- cy: "30",
1477
- r: "27",
1478
- fill: "none"
1479
- }))));
1563
+ return /*#__PURE__*/jsx(LargeLoaderContainer, {
1564
+ children: /*#__PURE__*/jsxs("svg", {
1565
+ width: "60",
1566
+ height: "60",
1567
+ children: [/*#__PURE__*/jsx("g", {
1568
+ "data-large-loader": "base",
1569
+ children: /*#__PURE__*/jsx("circle", {
1570
+ cx: "30",
1571
+ cy: "30",
1572
+ r: "27",
1573
+ fill: "none"
1574
+ })
1575
+ }), /*#__PURE__*/jsx("g", {
1576
+ "data-large-loader": "fill",
1577
+ children: /*#__PURE__*/jsx("circle", {
1578
+ cx: "30",
1579
+ cy: "30",
1580
+ r: "27",
1581
+ fill: "none"
1582
+ })
1583
+ })]
1584
+ })
1585
+ });
1480
1586
  }
1481
1587
 
1482
1588
  function Loader(_ref) {
@@ -1484,17 +1590,17 @@ function Loader(_ref) {
1484
1590
  color = _ref$color === void 0 ? 'primary' : _ref$color,
1485
1591
  _ref$size = _ref.size,
1486
1592
  size = _ref$size === void 0 ? 20 : _ref$size;
1487
- return /*#__PURE__*/React.createElement(TypographyIcon, {
1593
+ return /*#__PURE__*/jsx(TypographyIcon, {
1488
1594
  spin: true,
1489
1595
  color: color,
1490
1596
  size: size,
1491
- icon: /*#__PURE__*/React.createElement(LoaderIcon, null)
1597
+ icon: /*#__PURE__*/jsx(LoaderIcon, {})
1492
1598
  });
1493
1599
  }
1494
1600
 
1495
1601
  var xIconSize = 14;
1496
1602
  var mainIconSize = 20;
1497
- var Container$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1603
+ var Container$1 = /*#__PURE__*/styled$1(View).withConfig({
1498
1604
  displayName: "Message__Container",
1499
1605
  componentId: "kitt-universal__sc-c6400e-0"
1500
1606
  })(["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) {
@@ -1521,7 +1627,7 @@ var Container$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
1521
1627
  insets = _ref6.insets;
1522
1628
  return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
1523
1629
  });
1524
- var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
1630
+ var CloseContainer = /*#__PURE__*/styled$1(TouchableOpacity).withConfig({
1525
1631
  displayName: "Message__CloseContainer",
1526
1632
  componentId: "kitt-universal__sc-c6400e-1"
1527
1633
  })(["margin-left:", "px;padding:", "px;"], function (_ref7) {
@@ -1531,14 +1637,14 @@ var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
1531
1637
  var theme = _ref8.theme;
1532
1638
  return theme.kitt.spacing;
1533
1639
  });
1534
- var IconContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1640
+ var IconContainer = /*#__PURE__*/styled$1(View).withConfig({
1535
1641
  displayName: "Message__IconContainer",
1536
1642
  componentId: "kitt-universal__sc-c6400e-2"
1537
1643
  })(["margin-right:", "px;"], function (_ref9) {
1538
1644
  var theme = _ref9.theme;
1539
1645
  return theme.kitt.spacing * 4;
1540
1646
  });
1541
- var Content = /*#__PURE__*/styled(PrimitiveText).withConfig({
1647
+ var Content = /*#__PURE__*/styled$1(Text$1).withConfig({
1542
1648
  displayName: "Message__Content",
1543
1649
  componentId: "kitt-universal__sc-c6400e-3"
1544
1650
  })(["text-align:", ";flex:1;"], function (_ref10) {
@@ -1563,16 +1669,16 @@ var getColorByType = function (type) {
1563
1669
  function getIconContent(type) {
1564
1670
  switch (type) {
1565
1671
  case 'warning':
1566
- return /*#__PURE__*/React.createElement(AlertCircleIcon, null);
1672
+ return /*#__PURE__*/jsx(AlertCircleIcon, {});
1567
1673
 
1568
1674
  case 'success':
1569
- return /*#__PURE__*/React.createElement(CheckIcon, null);
1675
+ return /*#__PURE__*/jsx(CheckIcon, {});
1570
1676
 
1571
1677
  case 'danger':
1572
- return /*#__PURE__*/React.createElement(AlertTriangleIcon, null);
1678
+ return /*#__PURE__*/jsx(AlertTriangleIcon, {});
1573
1679
 
1574
1680
  default:
1575
- return /*#__PURE__*/React.createElement(InfoIcon, null);
1681
+ return /*#__PURE__*/jsx(InfoIcon, {});
1576
1682
  }
1577
1683
  }
1578
1684
 
@@ -1587,63 +1693,57 @@ function Message(_ref11) {
1587
1693
  onDismiss = _ref11.onDismiss,
1588
1694
  insets = _ref11.insets;
1589
1695
  var color = getColorByType(type);
1590
- return /*#__PURE__*/React.createElement(Container$1, {
1696
+ return /*#__PURE__*/jsxs(Container$1, {
1591
1697
  type: type,
1592
1698
  noRadius: noRadius,
1593
- insets: insets
1594
- }, !centeredText ? /*#__PURE__*/React.createElement(IconContainer, null, /*#__PURE__*/React.createElement(Icon, {
1595
- size: mainIconSize,
1596
- color: color,
1597
- icon: getIconContent(type)
1598
- })) : null, /*#__PURE__*/React.createElement(Content, {
1599
- type: type,
1600
- centeredText: centeredText
1601
- }, /*#__PURE__*/React.createElement(Typography.Text, {
1602
- base: "body-small",
1603
- color: color
1604
- }, children)), onDismiss ? /*#__PURE__*/React.createElement(CloseContainer, {
1605
- onPress: onDismiss
1606
- }, /*#__PURE__*/React.createElement(Icon, {
1607
- icon: /*#__PURE__*/React.createElement(XIcon, null),
1608
- size: xIconSize,
1609
- color: color
1610
- })) : null);
1699
+ insets: insets,
1700
+ children: [!centeredText ? /*#__PURE__*/jsx(IconContainer, {
1701
+ children: /*#__PURE__*/jsx(Icon, {
1702
+ size: mainIconSize,
1703
+ color: color,
1704
+ icon: getIconContent(type)
1705
+ })
1706
+ }) : null, /*#__PURE__*/jsx(Content, {
1707
+ type: type,
1708
+ centeredText: centeredText,
1709
+ children: /*#__PURE__*/jsx(Typography.Text, {
1710
+ base: "body-small",
1711
+ color: color,
1712
+ children: children
1713
+ })
1714
+ }), onDismiss ? /*#__PURE__*/jsx(CloseContainer, {
1715
+ onPress: onDismiss,
1716
+ children: /*#__PURE__*/jsx(Icon, {
1717
+ icon: /*#__PURE__*/jsx(XIcon, {}),
1718
+ size: xIconSize,
1719
+ color: color
1720
+ })
1721
+ }) : null]
1722
+ });
1611
1723
  }
1612
1724
 
1613
- 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; }
1725
+ 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; }
1614
1726
 
1615
- 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; }
1616
- var OverlayPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
1727
+ 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; }
1728
+ var OverlayPressable = /*#__PURE__*/styled$1.Pressable.withConfig({
1617
1729
  displayName: "Overlay__OverlayPressable",
1618
1730
  componentId: "kitt-universal__sc-1cz1gbr-0"
1619
1731
  })(function (_ref) {
1620
1732
  var theme = _ref.theme;
1621
- return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
1733
+ return _objectSpread$3(_objectSpread$3({}, StyleSheet.absoluteFillObject), {}, {
1622
1734
  backgroundColor: theme.kitt.colors.overlay.dark
1623
1735
  });
1624
1736
  });
1625
1737
  function Overlay(_ref2) {
1626
1738
  var onPress = _ref2.onPress;
1627
- return /*#__PURE__*/React.createElement(OverlayPressable, {
1739
+ return /*#__PURE__*/jsx(OverlayPressable, {
1628
1740
  accessibilityRole: "none",
1629
- onPress: onPress
1630
- }, /*#__PURE__*/React.createElement(PrimitiveView, null));
1741
+ onPress: onPress,
1742
+ children: /*#__PURE__*/jsx(View, {})
1743
+ });
1631
1744
  }
1632
1745
 
1633
- var _excluded$3 = ["contentContainerStyle", "children"];
1634
- var PrimitiveScrollView = /*#__PURE__*/forwardRef(function (_ref, ref) {
1635
- var contentContainerStyle = _ref.contentContainerStyle,
1636
- children = _ref.children,
1637
- props = _objectWithoutProperties(_ref, _excluded$3);
1638
-
1639
- return /*#__PURE__*/React.createElement(PrimitiveView, _extends({
1640
- ref: ref
1641
- }, props), /*#__PURE__*/React.createElement(PrimitiveView, {
1642
- style: contentContainerStyle
1643
- }, children));
1644
- });
1645
-
1646
- var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1746
+ var BodyView = /*#__PURE__*/styled$1(View).withConfig({
1647
1747
  displayName: "Body__BodyView",
1648
1748
  componentId: "kitt-universal__sc-17fwpo4-0"
1649
1749
  })(["padding:", "px ", "px;"], function (_ref) {
@@ -1655,10 +1755,14 @@ var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1655
1755
  });
1656
1756
  function ModalBody(_ref3) {
1657
1757
  var children = _ref3.children;
1658
- return /*#__PURE__*/React.createElement(PrimitiveScrollView, null, /*#__PURE__*/React.createElement(BodyView, null, children));
1758
+ return /*#__PURE__*/jsx(ScrollView, {
1759
+ children: /*#__PURE__*/jsx(BodyView, {
1760
+ children: children
1761
+ })
1762
+ });
1659
1763
  }
1660
1764
 
1661
- var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1765
+ var FooterView = /*#__PURE__*/styled$1(View).withConfig({
1662
1766
  displayName: "Footer__FooterView",
1663
1767
  componentId: "kitt-universal__sc-1ujq2dc-0"
1664
1768
  })(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
@@ -1670,12 +1774,14 @@ var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1670
1774
  });
1671
1775
  function ModalFooter(_ref3) {
1672
1776
  var children = _ref3.children;
1673
- return /*#__PURE__*/React.createElement(FooterView, null, children);
1777
+ return /*#__PURE__*/jsx(FooterView, {
1778
+ children: children
1779
+ });
1674
1780
  }
1675
1781
 
1676
1782
  var OnCloseContext = /*#__PURE__*/createContext(function () {});
1677
1783
 
1678
- var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1784
+ var HeaderView = /*#__PURE__*/styled$1(View).withConfig({
1679
1785
  displayName: "Header__HeaderView",
1680
1786
  componentId: "kitt-universal__sc-1iwabch-0"
1681
1787
  })(["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) {
@@ -1685,21 +1791,21 @@ var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1685
1791
  var theme = _ref2.theme;
1686
1792
  return theme.kitt.colors.separator;
1687
1793
  });
1688
- var LeftIconView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1794
+ var LeftIconView = /*#__PURE__*/styled$1(View).withConfig({
1689
1795
  displayName: "Header__LeftIconView",
1690
1796
  componentId: "kitt-universal__sc-1iwabch-1"
1691
1797
  })(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
1692
1798
  var theme = _ref3.theme;
1693
1799
  return theme.kitt.spacing * 2;
1694
1800
  });
1695
- var RightIconView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1801
+ var RightIconView = /*#__PURE__*/styled$1(View).withConfig({
1696
1802
  displayName: "Header__RightIconView",
1697
1803
  componentId: "kitt-universal__sc-1iwabch-2"
1698
1804
  })(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
1699
1805
  var theme = _ref4.theme;
1700
1806
  return theme.kitt.spacing * 2;
1701
1807
  });
1702
- var TitleView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1808
+ var TitleView = /*#__PURE__*/styled$1(View).withConfig({
1703
1809
  displayName: "Header__TitleView",
1704
1810
  componentId: "kitt-universal__sc-1iwabch-3"
1705
1811
  })(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
@@ -1713,16 +1819,23 @@ function ModalHeader(_ref6) {
1713
1819
  children = _ref6.children;
1714
1820
  var onClose = useContext(OnCloseContext);
1715
1821
  var isIconLeft = !!left;
1716
- return /*#__PURE__*/React.createElement(HeaderView, null, isIconLeft && /*#__PURE__*/React.createElement(LeftIconView, null, left), /*#__PURE__*/React.createElement(TitleView, {
1717
- isIconLeft: isIconLeft
1718
- }, children), right !== undefined ? right : /*#__PURE__*/React.createElement(RightIconView, null, /*#__PURE__*/React.createElement(Button, {
1719
- type: "subtle-dark",
1720
- icon: /*#__PURE__*/React.createElement(XIcon, null),
1721
- onPress: onClose
1722
- })));
1822
+ return /*#__PURE__*/jsxs(HeaderView, {
1823
+ children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
1824
+ children: left
1825
+ }), /*#__PURE__*/jsx(TitleView, {
1826
+ isIconLeft: isIconLeft,
1827
+ children: children
1828
+ }), right !== undefined ? right : /*#__PURE__*/jsx(RightIconView, {
1829
+ children: /*#__PURE__*/jsx(Button, {
1830
+ type: "subtle-dark",
1831
+ icon: /*#__PURE__*/jsx(XIcon, {}),
1832
+ onPress: onClose
1833
+ })
1834
+ })]
1835
+ });
1723
1836
  }
1724
1837
 
1725
- var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1838
+ var ModalView = /*#__PURE__*/styled$1(View).withConfig({
1726
1839
  displayName: "Modal__ModalView",
1727
1840
  componentId: "kitt-universal__sc-1xy2w5u-0"
1728
1841
  })(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
@@ -1732,7 +1845,7 @@ var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1732
1845
  var theme = _ref2.theme;
1733
1846
  return theme.kitt.spacing * 4;
1734
1847
  });
1735
- var ContentView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1848
+ var ContentView = /*#__PURE__*/styled$1(View).withConfig({
1736
1849
  displayName: "Modal__ContentView",
1737
1850
  componentId: "kitt-universal__sc-1xy2w5u-1"
1738
1851
  })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
@@ -1748,18 +1861,24 @@ function Modal(_ref5) {
1748
1861
  onClose = _ref5.onClose,
1749
1862
  onEntered = _ref5.onEntered,
1750
1863
  onExited = _ref5.onExited;
1751
- return /*#__PURE__*/React.createElement(OnCloseContext.Provider, {
1752
- value: onClose
1753
- }, /*#__PURE__*/React.createElement(Modal$1, {
1754
- transparent: true,
1755
- animationType: "fade",
1756
- visible: visible,
1757
- onShow: onEntered,
1758
- onDismiss: onExited,
1759
- onRequestClose: onClose
1760
- }, /*#__PURE__*/React.createElement(ModalView, null, /*#__PURE__*/React.createElement(Overlay, {
1761
- onPress: onClose
1762
- }), /*#__PURE__*/React.createElement(ContentView, null, children))));
1864
+ return /*#__PURE__*/jsx(OnCloseContext.Provider, {
1865
+ value: onClose,
1866
+ children: /*#__PURE__*/jsx(Modal$1, {
1867
+ transparent: true,
1868
+ animationType: "fade",
1869
+ visible: visible,
1870
+ onShow: onEntered,
1871
+ onDismiss: onExited,
1872
+ onRequestClose: onClose,
1873
+ children: /*#__PURE__*/jsxs(ModalView, {
1874
+ children: [/*#__PURE__*/jsx(Overlay, {
1875
+ onPress: onClose
1876
+ }), /*#__PURE__*/jsx(ContentView, {
1877
+ children: children
1878
+ })]
1879
+ })
1880
+ })
1881
+ });
1763
1882
  }
1764
1883
  Modal.Header = ModalHeader;
1765
1884
  Modal.Body = ModalBody;
@@ -1774,50 +1893,19 @@ function Notification(_ref) {
1774
1893
  var _useSafeAreaInsets = useSafeAreaInsets(),
1775
1894
  top = _useSafeAreaInsets.top;
1776
1895
 
1777
- return /*#__PURE__*/React.createElement(Message, {
1896
+ return /*#__PURE__*/jsx(Message, {
1778
1897
  noRadius: true,
1779
1898
  type: type,
1780
1899
  centeredText: centeredText,
1781
1900
  insets: {
1782
1901
  top: top
1783
1902
  },
1784
- onDismiss: onDelete
1785
- }, children);
1903
+ onDismiss: onDelete,
1904
+ children: children
1905
+ });
1786
1906
  }
1787
1907
 
1788
- var PrimitiveTextWithClassName = /*#__PURE__*/forwardRef(function (_ref, ref) {
1789
- var children = _ref.children,
1790
- className = _ref.className,
1791
- onPress = _ref.onPress;
1792
- // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md
1793
- // if (href) {
1794
- // return (
1795
- // <a ref={ref} href={href} className={className}>
1796
- // {children}
1797
- // </a>
1798
- // );
1799
- // }
1800
- return /*#__PURE__*/React.createElement("span", {
1801
- ref: ref,
1802
- role: "button",
1803
- className: className,
1804
- tabIndex: onPress ? 0 : -1,
1805
- onClick: createPressClickHandler(onPress),
1806
- onKeyUp: createPressKeyUpHandler(onPress)
1807
- }, children);
1808
- });
1809
- var PrimitiveLink = /*#__PURE__*/styled(PrimitiveTextWithClassName).withConfig({
1810
- displayName: "PrimitiveLinkweb__PrimitiveLink",
1811
- componentId: "kitt-universal__sc-24w4og-0"
1812
- })(["", " background-color:transparent;color:inherit;font:inherit;list-style:none;text-align:inherit;text-decoration:none;", ";", ";"], textResetMixin, function (_ref2) {
1813
- var selectable = _ref2.selectable;
1814
- return selectable == null ? undefined : "user-select: ".concat(selectable ? 'none' : 'text');
1815
- }, function (_ref3) {
1816
- var onPress = _ref3.onPress;
1817
- return onPress ? 'cursor: pointer;' : undefined;
1818
- });
1819
-
1820
- var Flex = /*#__PURE__*/styled(PrimitiveView).withConfig({
1908
+ var Flex = /*#__PURE__*/styled$1(View).withConfig({
1821
1909
  shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
1822
1910
  return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
1823
1911
  }
@@ -1874,7 +1962,7 @@ var useStoryBlockColor = function (color) {
1874
1962
  var storyBlockColor = useContext(StoryBlockColorContext);
1875
1963
  return color || storyBlockColor;
1876
1964
  };
1877
- var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1965
+ var StyledStoryBlockView = /*#__PURE__*/styled$1(View).withConfig({
1878
1966
  displayName: "StoryBlock__StyledStoryBlockView",
1879
1967
  componentId: "kitt-universal__sc-3w4hdm-0"
1880
1968
  })(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
@@ -1885,20 +1973,23 @@ var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
1885
1973
  function StoryBlock(_ref2) {
1886
1974
  var children = _ref2.children,
1887
1975
  background = _ref2.background;
1888
- return /*#__PURE__*/React.createElement(StyledStoryBlockView, {
1889
- background: background
1890
- }, /*#__PURE__*/React.createElement(StoryBlockColorContext.Provider, {
1891
- value: getTypographyColorFromBlockColor(background)
1892
- }, /*#__PURE__*/React.createElement(StoryBlockBackgroundContext.Provider, {
1893
- value: background
1894
- }, children)));
1976
+ return /*#__PURE__*/jsx(StyledStoryBlockView, {
1977
+ background: background,
1978
+ children: /*#__PURE__*/jsx(StoryBlockColorContext.Provider, {
1979
+ value: getTypographyColorFromBlockColor(background),
1980
+ children: /*#__PURE__*/jsx(StoryBlockBackgroundContext.Provider, {
1981
+ value: background,
1982
+ children: children
1983
+ })
1984
+ })
1985
+ });
1895
1986
  }
1896
1987
 
1897
- var StoryTitleContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1988
+ var StoryTitleContainer = /*#__PURE__*/styled$1(View).withConfig({
1898
1989
  displayName: "StoryTitle__StoryTitleContainer",
1899
1990
  componentId: "kitt-universal__sc-sic7hb-0"
1900
1991
  })(["margin-bottom:30px;"]);
1901
- var StorySubTitleContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
1992
+ var StorySubTitleContainer = /*#__PURE__*/styled$1(View).withConfig({
1902
1993
  displayName: "StoryTitle__StorySubTitleContainer",
1903
1994
  componentId: "kitt-universal__sc-sic7hb-1"
1904
1995
  })(["margin-bottom:10px;"]);
@@ -1906,24 +1997,30 @@ function StoryTitle(_ref) {
1906
1997
  var color = _ref.color,
1907
1998
  children = _ref.children,
1908
1999
  numberOfLines = _ref.numberOfLines;
1909
- return /*#__PURE__*/React.createElement(StoryTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header1, {
1910
- variant: "bold",
1911
- base: "header1",
1912
- color: useStoryBlockColor(color),
1913
- numberOfLines: numberOfLines
1914
- }, children));
2000
+ return /*#__PURE__*/jsx(StoryTitleContainer, {
2001
+ children: /*#__PURE__*/jsx(Typography.Header1, {
2002
+ variant: "bold",
2003
+ base: "header1",
2004
+ color: useStoryBlockColor(color),
2005
+ numberOfLines: numberOfLines,
2006
+ children: children
2007
+ })
2008
+ });
1915
2009
  }
1916
2010
 
1917
2011
  function StoryTitleLevel2(_ref2) {
1918
2012
  var color = _ref2.color,
1919
2013
  children = _ref2.children,
1920
2014
  numberOfLines = _ref2.numberOfLines;
1921
- return /*#__PURE__*/React.createElement(StoryTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header2, {
1922
- variant: "bold",
1923
- base: "header2",
1924
- color: useStoryBlockColor(color),
1925
- numberOfLines: numberOfLines
1926
- }, children));
2015
+ return /*#__PURE__*/jsx(StoryTitleContainer, {
2016
+ children: /*#__PURE__*/jsx(Typography.Header2, {
2017
+ variant: "bold",
2018
+ base: "header2",
2019
+ color: useStoryBlockColor(color),
2020
+ numberOfLines: numberOfLines,
2021
+ children: children
2022
+ })
2023
+ });
1927
2024
  }
1928
2025
 
1929
2026
  StoryTitleLevel2.displayName = 'StoryTitle.Level2';
@@ -1932,13 +2029,16 @@ function StoryTitleLevel3(_ref3) {
1932
2029
  var color = _ref3.color,
1933
2030
  children = _ref3.children,
1934
2031
  numberOfLines = _ref3.numberOfLines;
1935
- return /*#__PURE__*/React.createElement(StorySubTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header3, {
1936
- variant: "bold",
1937
- base: "header3",
1938
- medium: "header4",
1939
- color: useStoryBlockColor(color),
1940
- numberOfLines: numberOfLines
1941
- }, children));
2032
+ return /*#__PURE__*/jsx(StorySubTitleContainer, {
2033
+ children: /*#__PURE__*/jsx(Typography.Header3, {
2034
+ variant: "bold",
2035
+ base: "header3",
2036
+ medium: "header4",
2037
+ color: useStoryBlockColor(color),
2038
+ numberOfLines: numberOfLines,
2039
+ children: children
2040
+ })
2041
+ });
1942
2042
  }
1943
2043
 
1944
2044
  StoryTitleLevel3.displayName = 'StoryTitle.Level3';
@@ -1947,13 +2047,16 @@ function StoryTitleLevel4(_ref4) {
1947
2047
  var color = _ref4.color,
1948
2048
  children = _ref4.children,
1949
2049
  numberOfLines = _ref4.numberOfLines;
1950
- return /*#__PURE__*/React.createElement(StorySubTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Header4, {
1951
- variant: "bold",
1952
- base: "header4",
1953
- medium: "header5",
1954
- color: useStoryBlockColor(color),
1955
- numberOfLines: numberOfLines
1956
- }, children));
2050
+ return /*#__PURE__*/jsx(StorySubTitleContainer, {
2051
+ children: /*#__PURE__*/jsx(Typography.Header4, {
2052
+ variant: "bold",
2053
+ base: "header4",
2054
+ medium: "header5",
2055
+ color: useStoryBlockColor(color),
2056
+ numberOfLines: numberOfLines,
2057
+ children: children
2058
+ })
2059
+ });
1957
2060
  }
1958
2061
 
1959
2062
  StoryTitleLevel4.displayName = 'StoryTitle.Level3';
@@ -1961,7 +2064,7 @@ StoryTitle.Level2 = StoryTitleLevel2;
1961
2064
  StoryTitle.Level3 = StoryTitleLevel3;
1962
2065
  StoryTitle.Level4 = StoryTitleLevel4;
1963
2066
 
1964
- var StoryContainer$1 = /*#__PURE__*/styled(PrimitiveScrollView).withConfig({
2067
+ var StoryContainer$1 = /*#__PURE__*/styled$1(ScrollView).withConfig({
1965
2068
  displayName: "Story__StoryContainer",
1966
2069
  componentId: "kitt-universal__sc-1kwdg2p-0"
1967
2070
  })(["padding:", "px;"], storyPadding);
@@ -1969,67 +2072,86 @@ function Story(_ref) {
1969
2072
  var title = _ref.title,
1970
2073
  contentContainerStyle = _ref.contentContainerStyle,
1971
2074
  children = _ref.children;
1972
- return /*#__PURE__*/React.createElement(StoryContainer$1, {
1973
- contentContainerStyle: contentContainerStyle
1974
- }, /*#__PURE__*/React.createElement(StoryTitle, null, title), children);
2075
+ return /*#__PURE__*/jsxs(StoryContainer$1, {
2076
+ contentContainerStyle: contentContainerStyle,
2077
+ children: [/*#__PURE__*/jsx(StoryTitle, {
2078
+ children: title
2079
+ }), children]
2080
+ });
1975
2081
  }
1976
2082
 
1977
- var _excluded$2 = ["title", "className", "children", "internalIsDemoSection"],
1978
- _excluded2 = ["title", "className", "children"],
1979
- _excluded3 = ["title", "className", "children"];
1980
- var StyledSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
2083
+ var _excluded$2 = ["title", "children", "internalIsDemoSection"],
2084
+ _excluded2 = ["title", "children"],
2085
+ _excluded3 = ["title", "children"];
2086
+
2087
+ 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; }
2088
+
2089
+ 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; }
2090
+ var StyledSection = /*#__PURE__*/styled$1(View).withConfig({
1981
2091
  displayName: "StorySection__StyledSection",
1982
2092
  componentId: "kitt-universal__sc-1b3liv5-0"
1983
2093
  })(["margin-bottom:32px;"]);
1984
2094
  function StorySection(_ref) {
1985
- var title = _ref.title;
1986
- _ref.className;
1987
- var children = _ref.children,
2095
+ var title = _ref.title,
2096
+ children = _ref.children,
1988
2097
  internalIsDemoSection = _ref.internalIsDemoSection,
1989
2098
  props = _objectWithoutProperties(_ref, _excluded$2);
1990
2099
 
1991
2100
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
1992
- return /*#__PURE__*/React.createElement(StyledSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level2, null, title), children);
2101
+ return /*#__PURE__*/jsxs(StyledSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
2102
+ children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
2103
+ children: title
2104
+ }), children]
2105
+ }));
1993
2106
  }
1994
- var StyledSubSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
2107
+ var StyledSubSection = /*#__PURE__*/styled$1(View).withConfig({
1995
2108
  displayName: "StorySection__StyledSubSection",
1996
2109
  componentId: "kitt-universal__sc-1b3liv5-1"
1997
2110
  })(["margin-bottom:16px;"]);
1998
2111
 
1999
2112
  function SubSection(_ref2) {
2000
- var title = _ref2.title;
2001
- _ref2.className;
2002
- var children = _ref2.children,
2113
+ var title = _ref2.title,
2114
+ children = _ref2.children,
2003
2115
  props = _objectWithoutProperties(_ref2, _excluded2);
2004
2116
 
2005
- return /*#__PURE__*/React.createElement(StyledSubSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level3, null, title), children);
2117
+ return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
2118
+ children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
2119
+ children: title
2120
+ }), children]
2121
+ }));
2006
2122
  }
2007
2123
 
2008
- var StyledBlockSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
2124
+ var StyledBlockSection = /*#__PURE__*/styled$1(View).withConfig({
2009
2125
  displayName: "StorySection__StyledBlockSection",
2010
2126
  componentId: "kitt-universal__sc-1b3liv5-2"
2011
2127
  })(["margin-bottom:16px;"]);
2012
2128
 
2013
2129
  function BlockSection(_ref3) {
2014
- var title = _ref3.title;
2015
- _ref3.className;
2016
- var children = _ref3.children,
2130
+ var title = _ref3.title,
2131
+ children = _ref3.children,
2017
2132
  props = _objectWithoutProperties(_ref3, _excluded3);
2018
2133
 
2019
- return /*#__PURE__*/React.createElement(StyledBlockSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level4, null, title), children);
2134
+ return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
2135
+ children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
2136
+ children: title
2137
+ }), children]
2138
+ }));
2020
2139
  }
2021
2140
 
2022
- var StyledDemoSection = /*#__PURE__*/styled(PrimitiveView).withConfig({
2141
+ var StyledDemoSection = /*#__PURE__*/styled$1(View).withConfig({
2023
2142
  displayName: "StorySection__StyledDemoSection",
2024
2143
  componentId: "kitt-universal__sc-1b3liv5-3"
2025
2144
  })(["margin-bottom:64px;"]);
2026
2145
 
2027
2146
  function DemoSection(_ref4) {
2028
2147
  var children = _ref4.children;
2029
- return /*#__PURE__*/React.createElement(StyledDemoSection, null, /*#__PURE__*/React.createElement(StorySection, {
2030
- internalIsDemoSection: true,
2031
- title: "Demo"
2032
- }, children));
2148
+ return /*#__PURE__*/jsx(StyledDemoSection, {
2149
+ children: /*#__PURE__*/jsx(StorySection, {
2150
+ internalIsDemoSection: true,
2151
+ title: "Demo",
2152
+ children: children
2153
+ })
2154
+ });
2033
2155
  }
2034
2156
 
2035
2157
  StorySection.SubSection = SubSection;
@@ -2048,33 +2170,36 @@ function StoryContainer(_ref) {
2048
2170
  title = _ref.title,
2049
2171
  platform = _ref.platform;
2050
2172
  if (platform === 'native') return null;
2051
- return /*#__PURE__*/React.createElement(StorySection.BlockSection, {
2173
+ return /*#__PURE__*/jsx(StorySection.BlockSection, {
2052
2174
  testID: state,
2053
- title: title
2054
- }, /*#__PURE__*/React.createElement("div", {
2055
- className: state ? "kitt-".concat(state) : undefined
2056
- }, children));
2175
+ title: title,
2176
+ children: /*#__PURE__*/jsx("div", {
2177
+ className: state ? "kitt-".concat(state) : undefined,
2178
+ children: children
2179
+ })
2180
+ });
2057
2181
  }
2058
2182
 
2059
2183
  function StoryDecorator(storyFn, context) {
2060
- return /*#__PURE__*/React.createElement(Story, {
2061
- title: context.name
2062
- }, storyFn());
2184
+ return /*#__PURE__*/jsx(Story, {
2185
+ title: context.name,
2186
+ children: storyFn()
2187
+ });
2063
2188
  }
2064
2189
 
2065
- var SmallScreenRow = /*#__PURE__*/styled(PrimitiveView).withConfig({
2190
+ var SmallScreenRow = /*#__PURE__*/styled$1(View).withConfig({
2066
2191
  displayName: "StoryGrid__SmallScreenRow",
2067
2192
  componentId: "kitt-universal__sc-4z5new-0"
2068
2193
  })(["flex-direction:column;margin:0;"]);
2069
- var SmallScreenCol = /*#__PURE__*/styled(PrimitiveView).withConfig({
2194
+ var SmallScreenCol = /*#__PURE__*/styled$1(View).withConfig({
2070
2195
  displayName: "StoryGrid__SmallScreenCol",
2071
2196
  componentId: "kitt-universal__sc-4z5new-1"
2072
2197
  })(["padding:8px 0 16px;"]);
2073
- var FlexRow = /*#__PURE__*/styled(PrimitiveView).withConfig({
2198
+ var FlexRow = /*#__PURE__*/styled$1(View).withConfig({
2074
2199
  displayName: "StoryGrid__FlexRow",
2075
2200
  componentId: "kitt-universal__sc-4z5new-2"
2076
2201
  })(["flex-direction:row;margin:0 -4px 16px;"]);
2077
- var FlexCol = /*#__PURE__*/styled(PrimitiveView).withConfig({
2202
+ var FlexCol = /*#__PURE__*/styled$1(View).withConfig({
2078
2203
  displayName: "StoryGrid__FlexCol",
2079
2204
  componentId: "kitt-universal__sc-4z5new-3"
2080
2205
  })(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
@@ -2092,14 +2217,22 @@ function StoryGridRow(_ref) {
2092
2217
  var breakpointValue = breakpoint === 'small' ? 480 : 768;
2093
2218
 
2094
2219
  if (width < breakpointValue) {
2095
- return /*#__PURE__*/React.createElement(SmallScreenRow, null, React.Children.map(children, function (child) {
2096
- return /*#__PURE__*/React.createElement(SmallScreenCol, null, child);
2097
- }));
2220
+ return /*#__PURE__*/jsx(SmallScreenRow, {
2221
+ children: Children.map(children, function (child) {
2222
+ return /*#__PURE__*/jsx(SmallScreenCol, {
2223
+ children: child
2224
+ });
2225
+ })
2226
+ });
2098
2227
  }
2099
2228
 
2100
- return /*#__PURE__*/React.createElement(FlexRow, null, React.Children.map(children, function (child) {
2101
- return /*#__PURE__*/React.createElement(FlexCol, null, child);
2102
- }));
2229
+ return /*#__PURE__*/jsx(FlexRow, {
2230
+ children: Children.map(children, function (child) {
2231
+ return /*#__PURE__*/jsx(FlexCol, {
2232
+ children: child
2233
+ });
2234
+ })
2235
+ });
2103
2236
  }
2104
2237
 
2105
2238
  function StoryGridCol(_ref2) {
@@ -2113,10 +2246,13 @@ function StoryGridCol(_ref2) {
2113
2246
  return null;
2114
2247
  }
2115
2248
 
2116
- return /*#__PURE__*/React.createElement(React.Fragment, null, title ? /*#__PURE__*/React.createElement(StoryTitle.Level4, {
2117
- numberOfLines: 1,
2118
- color: titleColor
2119
- }, title) : null, children);
2249
+ return /*#__PURE__*/jsxs(Fragment$1, {
2250
+ children: [title ? /*#__PURE__*/jsx(StoryTitle.Level4, {
2251
+ numberOfLines: 1,
2252
+ color: titleColor,
2253
+ children: title
2254
+ }) : null, children]
2255
+ });
2120
2256
  }
2121
2257
 
2122
2258
  var StoryGrid = {
@@ -2124,7 +2260,7 @@ var StoryGrid = {
2124
2260
  Col: StoryGridCol
2125
2261
  };
2126
2262
 
2127
- var Container = /*#__PURE__*/styled(PrimitiveView).withConfig({
2263
+ var Container = /*#__PURE__*/styled$1(View).withConfig({
2128
2264
  displayName: "Tag__Container",
2129
2265
  componentId: "kitt-universal__sc-19jmowi-0"
2130
2266
  })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
@@ -2178,13 +2314,15 @@ function Tag(_ref6) {
2178
2314
  type = _ref6$type === void 0 ? 'default' : _ref6$type,
2179
2315
  _ref6$variant = _ref6.variant,
2180
2316
  variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
2181
- return /*#__PURE__*/React.createElement(Container, {
2317
+ return /*#__PURE__*/jsx(Container, {
2182
2318
  type: type,
2183
- variant: variant
2184
- }, /*#__PURE__*/React.createElement(Typography.Text, {
2185
- base: "body-xsmall",
2186
- color: getLabelColor(type, variant)
2187
- }, label));
2319
+ variant: variant,
2320
+ children: /*#__PURE__*/jsx(Typography.Text, {
2321
+ base: "body-xsmall",
2322
+ color: getLabelColor(type, variant),
2323
+ children: label
2324
+ })
2325
+ });
2188
2326
  }
2189
2327
 
2190
2328
  var lateOceanColorPalette = {
@@ -2293,6 +2431,7 @@ var colorsLateOceanTheme = {
2293
2431
  danger: lateOceanColorPalette.englishVermillon,
2294
2432
  separator: lateOceanColorPalette.black100,
2295
2433
  hover: lateOceanColorPalette.black100,
2434
+ black: lateOceanColorPalette.black1000,
2296
2435
  uiBackground: lateOceanColorPalette.black25,
2297
2436
  uiBackgroundLight: lateOceanColorPalette.white,
2298
2437
  overlay: {
@@ -2478,6 +2617,15 @@ var tagLateOceanTheme = {
2478
2617
  }
2479
2618
  };
2480
2619
 
2620
+ var tooltip = {
2621
+ backgroundColor: colorsLateOceanTheme.black,
2622
+ borderRadius: 10,
2623
+ opacity: 0.95,
2624
+ horizontalPadding: 16,
2625
+ verticalPadding: 4,
2626
+ floatingPadding: 8
2627
+ };
2628
+
2481
2629
  var calcLineHeight = function (fontSize, lineHeightMultiplier) {
2482
2630
  return Math.round(fontSize * lineHeightMultiplier);
2483
2631
  };
@@ -2594,46 +2742,315 @@ var theme = {
2594
2742
  shadows: shadowsLateOceanTheme,
2595
2743
  fullScreenModal: fullScreenModalLateOceanTheme,
2596
2744
  iconButton: iconButton,
2597
- listItem: listItemLateOceanTheme
2745
+ listItem: listItemLateOceanTheme,
2746
+ tooltip: tooltip
2598
2747
  };
2599
2748
 
2600
- function Tooltip(_ref) {
2601
- var children = _ref.children;
2602
- return /*#__PURE__*/React.createElement(PrimitiveView, null, children);
2749
+ function TimePicker() {
2750
+ return /*#__PURE__*/jsx(Typography.Text, {
2751
+ base: "body",
2752
+ children: "TimePicker is not implemented for the web"
2753
+ });
2754
+ }
2755
+
2756
+ 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; }
2757
+
2758
+ 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; }
2759
+
2760
+ var Arrow = function (props) {
2761
+ return /*#__PURE__*/jsx("svg", _objectSpread$1(_objectSpread$1({}, props), {}, {
2762
+ children: /*#__PURE__*/jsx("path", {
2763
+ fillRule: "evenodd",
2764
+ clipRule: "evenodd",
2765
+ 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",
2766
+ fill: "currentColor"
2767
+ })
2768
+ }));
2769
+ };
2770
+
2771
+ Arrow.defaultProps = {
2772
+ width: "36",
2773
+ height: "8",
2774
+ viewBox: "0 0 36 9",
2775
+ fill: "none",
2776
+ xmlns: "http://www.w3.org/2000/svg"
2777
+ };
2778
+ var StyledTooltipView = /*#__PURE__*/styled$1(View).withConfig({
2779
+ displayName: "TooltipView__StyledTooltipView",
2780
+ componentId: "kitt-universal__sc-156zm6m-0"
2781
+ })(["align-items:center;"]);
2782
+ var StyledTooltipContent = /*#__PURE__*/styled$1(View).withConfig({
2783
+ displayName: "TooltipView__StyledTooltipContent",
2784
+ componentId: "kitt-universal__sc-156zm6m-1"
2785
+ })(["background-color:", ";border-radius:", "px;opacity:", ";padding:", ";"], function (_ref) {
2786
+ var theme = _ref.theme;
2787
+ return theme.kitt.tooltip.backgroundColor;
2788
+ }, function (_ref2) {
2789
+ var theme = _ref2.theme;
2790
+ return theme.kitt.tooltip.borderRadius;
2791
+ }, function (_ref3) {
2792
+ var theme = _ref3.theme;
2793
+ return theme.kitt.tooltip.opacity;
2794
+ }, function (_ref4) {
2795
+ var theme = _ref4.theme;
2796
+ return "".concat(theme.kitt.tooltip.verticalPadding, "px ").concat(theme.kitt.tooltip.horizontalPadding, "px");
2797
+ });
2798
+
2799
+ function ArrowView(props) {
2800
+ var theme = /*#__PURE__*/useTheme();
2801
+ return /*#__PURE__*/jsx(View, _objectSpread$1(_objectSpread$1({}, props), {}, {
2802
+ children: /*#__PURE__*/jsx(Arrow, {
2803
+ color: theme.kitt.tooltip.backgroundColor
2804
+ })
2805
+ }));
2806
+ }
2807
+
2808
+ var StyledArrow = /*#__PURE__*/styled$1(ArrowView).withConfig({
2809
+ displayName: "TooltipView__StyledArrow",
2810
+ componentId: "kitt-universal__sc-156zm6m-2"
2811
+ })(["color:", ";transform:", ";"], function (_ref5) {
2812
+ var theme = _ref5.theme;
2813
+ return theme.kitt.tooltip.backgroundColor;
2814
+ }, function (_ref6) {
2815
+ var $position = _ref6.$position;
2816
+ return "rotate(".concat($position === 'bottom' ? 180 : 0, "deg)");
2817
+ });
2818
+ function TooltipView(_ref7) {
2819
+ var children = _ref7.children,
2820
+ position = _ref7.position;
2821
+ return /*#__PURE__*/jsxs(StyledTooltipView, {
2822
+ children: [position === 'bottom' ? /*#__PURE__*/jsx(StyledArrow, {
2823
+ $position: position
2824
+ }) : null, /*#__PURE__*/jsx(StyledTooltipContent, {
2825
+ children: /*#__PURE__*/jsx(Typography.Text, {
2826
+ base: "body",
2827
+ color: "white",
2828
+ children: children
2829
+ })
2830
+ }), position === 'top' ? /*#__PURE__*/jsx(StyledArrow, {
2831
+ $position: position
2832
+ }) : null]
2833
+ });
2603
2834
  }
2604
2835
 
2605
- var _excluded$1 = ["children", "disabled", "noUnderline", "onPress"];
2606
- var StyledLink = /*#__PURE__*/styled(PrimitiveLink).withConfig({
2607
- shouldForwardProp: function shouldForwardProp(prop) {
2608
- return !['disabled', 'noUnderline'].includes(prop);
2836
+ var tooltipDefaultPosition = 'top';
2837
+ var tooltipDefaultFloatingStrategy = {
2838
+ web: 'absolute'
2839
+ };
2840
+
2841
+ var StyledTooltipTrigger = /*#__PURE__*/styled$1(Pressable).withConfig({
2842
+ displayName: "Tooltipweb__StyledTooltipTrigger",
2843
+ componentId: "kitt-universal__sc-zn1y6f-0"
2844
+ })(["display:inline-flex;align-self:baseline;"]);
2845
+ var WebAnimatedTooltip = /*#__PURE__*/styled$1(View).withConfig({
2846
+ displayName: "Tooltipweb__WebAnimatedTooltip",
2847
+ componentId: "kitt-universal__sc-zn1y6f-1"
2848
+ })(["opacity:", ";transition:opacity 200ms;visibility:", ";"], function (_ref) {
2849
+ var theme = _ref.theme,
2850
+ $visible = _ref.$visible;
2851
+ return $visible ? theme.kitt.tooltip.opacity : 0;
2852
+ }, function (_ref2) {
2853
+ var $visible = _ref2.$visible;
2854
+ return $visible ? 'visible' : 'hidden';
2855
+ });
2856
+
2857
+ function getActualPosition(originalPosition, offsetMiddlewareData) {
2858
+ if (!offsetMiddlewareData) return originalPosition;
2859
+
2860
+ if (originalPosition === 'top') {
2861
+ return offsetMiddlewareData.y > 0 ? 'bottom' : originalPosition;
2609
2862
  }
2610
- }).withConfig({
2863
+
2864
+ if (originalPosition === 'bottom') {
2865
+ return offsetMiddlewareData.y < 0 ? 'top' : originalPosition;
2866
+ }
2867
+
2868
+ return originalPosition;
2869
+ }
2870
+
2871
+ function Tooltip(_ref3) {
2872
+ var children = _ref3.children,
2873
+ defaultVisible = _ref3.defaultVisible,
2874
+ _ref3$position = _ref3.position,
2875
+ position = _ref3$position === void 0 ? tooltipDefaultPosition : _ref3$position,
2876
+ content = _ref3.content,
2877
+ _ref3$floatingStrateg = _ref3.floatingStrategy,
2878
+ floatingStrategy = _ref3$floatingStrateg === void 0 ? tooltipDefaultFloatingStrategy : _ref3$floatingStrateg,
2879
+ floatingPadding = _ref3.floatingPadding,
2880
+ onUpdate = _ref3.onUpdate;
2881
+ var theme = /*#__PURE__*/useTheme();
2882
+ var padding = floatingPadding || theme.kitt.tooltip.floatingPadding;
2883
+
2884
+ var _useState = useState(Boolean(defaultVisible)),
2885
+ _useState2 = _slicedToArray(_useState, 2),
2886
+ visible = _useState2[0],
2887
+ setVisible = _useState2[1];
2888
+
2889
+ var _useFloating = useFloating({
2890
+ placement: position,
2891
+ strategy: floatingStrategy === null || floatingStrategy === void 0 ? void 0 : floatingStrategy.web,
2892
+ middleware: [offset(padding), shift(), flip()]
2893
+ }),
2894
+ x = _useFloating.x,
2895
+ y = _useFloating.y,
2896
+ reference = _useFloating.reference,
2897
+ floating = _useFloating.floating,
2898
+ strategy = _useFloating.strategy,
2899
+ update = _useFloating.update,
2900
+ refs = _useFloating.refs,
2901
+ middlewareData = _useFloating.middlewareData; // Update on scroll and resize for all relevant nodes
2902
+
2903
+
2904
+ useEffect(function () {
2905
+ if (!refs.reference.current || !refs.floating.current) {
2906
+ return function () {
2907
+ return undefined;
2908
+ };
2909
+ }
2910
+
2911
+ var parents = [].concat(_toConsumableArray(getScrollParents(refs.reference.current)), _toConsumableArray(getScrollParents(refs.floating.current)));
2912
+ parents.forEach(function (parent) {
2913
+ parent.addEventListener('scroll', update);
2914
+ parent.addEventListener('resize', update);
2915
+ });
2916
+ return function () {
2917
+ parents.forEach(function (parent) {
2918
+ parent.removeEventListener('scroll', update);
2919
+ parent.removeEventListener('resize', update);
2920
+ });
2921
+ };
2922
+ }, [refs.reference, refs.floating, update]);
2923
+ useEffect(function () {
2924
+ if (!onUpdate) return;
2925
+ onUpdate({
2926
+ x: x,
2927
+ y: y,
2928
+ reference: reference,
2929
+ floating: floating,
2930
+ strategy: strategy,
2931
+ update: update,
2932
+ refs: refs,
2933
+ middlewareData: middlewareData
2934
+ });
2935
+ }, [x, y, reference, floating, strategy, update, refs, middlewareData, onUpdate]);
2936
+ return /*#__PURE__*/jsxs(Fragment$1, {
2937
+ children: [/*#__PURE__*/jsx(StyledTooltipTrigger, {
2938
+ ref: reference,
2939
+ accessibilityRole: "button",
2940
+ onPress: function onPress() {
2941
+ return setVisible(function (prev) {
2942
+ return !prev;
2943
+ });
2944
+ },
2945
+ onMouseEnter: function onMouseEnter() {
2946
+ setVisible(true);
2947
+ },
2948
+ onFocus: function onFocus() {
2949
+ setVisible(true);
2950
+ },
2951
+ children: children
2952
+ }), /*#__PURE__*/jsx(WebAnimatedTooltip, {
2953
+ ref: floating,
2954
+ $visible: visible,
2955
+ accessibilityHidden: !visible,
2956
+ style: {
2957
+ position: strategy,
2958
+ top: 0,
2959
+ left: 0,
2960
+ transform: [{
2961
+ // @ts-expect-error translate3d is missing in react-native definitions, only supported in web
2962
+ translate3d: "".concat(Math.round(x !== null && x !== void 0 ? x : 0), "px, ").concat(Math.round(y !== null && y !== void 0 ? y : 0), "px, 0")
2963
+ }]
2964
+ },
2965
+ children: /*#__PURE__*/jsx(TooltipView, {
2966
+ position: getActualPosition(position, middlewareData.offset),
2967
+ children: content
2968
+ })
2969
+ })]
2970
+ });
2971
+ }
2972
+ Tooltip.View = TooltipView;
2973
+
2974
+ var StyledTypographyEmoji = /*#__PURE__*/styled$1(Emoji).withConfig({
2975
+ displayName: "TypographyEmoji__StyledTypographyEmoji",
2976
+ componentId: "kitt-universal__sc-1if5guu-0"
2977
+ })(["align-self:center;", ""], function (_ref) {
2978
+ var size = _ref.size;
2979
+
2980
+ /* Style Twemoji: https://github.com/twitter/twemoji#inline-styles */
2981
+ return "\n margin: 0 ".concat(size / 20, "px 0 ").concat(size / 10, "px;\n transform: translateY(").concat(size / 10 * 2, "px);\n ");
2982
+ });
2983
+ function TypographyEmoji(_ref2) {
2984
+ var emoji = _ref2.emoji,
2985
+ base = _ref2.base,
2986
+ small = _ref2.small,
2987
+ medium = _ref2.medium,
2988
+ large = _ref2.large;
2989
+ var theme = /*#__PURE__*/useTheme();
2990
+ var typeForCurrentWindowSize = useTypographyTypeForCurrentWindowSize(base, small, medium, large);
2991
+ var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
2992
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
2993
+ var fontSize = typeConfig[typeConfigKey].fontSize;
2994
+
2995
+ if ((process.env.NODE_ENV !== "production")) {
2996
+ if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
2997
+ }
2998
+
2999
+ return /*#__PURE__*/jsx(StyledTypographyEmoji, {
3000
+ size: parseInt(fontSize.slice(0, -2), 10),
3001
+ emoji: emoji
3002
+ });
3003
+ }
3004
+
3005
+ var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
3006
+
3007
+ 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; }
3008
+
3009
+ 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; }
3010
+ var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
3011
+ name: "TypographyLinkWebWrapper",
3012
+ "class": "tcwz3nt"
3013
+ }));
3014
+ var StyledLink = /*#__PURE__*/styled$1(Text$1).withConfig({
2611
3015
  displayName: "TypographyLink__StyledLink",
2612
3016
  componentId: "kitt-universal__sc-1o1zy30-0"
2613
- })(["text-decoration:", ";", ""], function (_ref) {
2614
- var noUnderline = _ref.noUnderline;
2615
- return noUnderline ? 'none' : 'underline';
3017
+ })(["text-decoration:", ";", ";", ";"], function (_ref) {
3018
+ var $noUnderline = _ref.$noUnderline;
3019
+ return $noUnderline ? 'none' : 'underline';
2616
3020
  }, function (_ref2) {
2617
- var disabled = _ref2.disabled,
2618
- theme = _ref2.theme,
2619
- noUnderline = _ref2.noUnderline;
2620
- return "\n ".concat(disabled ? "color: ".concat(theme.kitt.typography.link.disabledColor, ";") : '', "\n ").concat("\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 "));
3021
+ var $disabled = _ref2.$disabled;
3022
+ return "\n text-decoration-color: inherit;\n transition: color 0.2s ease-in-out;\n cursor: ".concat($disabled ? 'not-allowed' : 'pointer', ";\n ");
3023
+ }, function (_ref3) {
3024
+ var $disabled = _ref3.$disabled,
3025
+ theme = _ref3.theme;
3026
+ if (!$disabled) return undefined;
3027
+ return "color: ".concat(theme.kitt.typography.link.disabledColor, ";");
2621
3028
  });
2622
- function TypographyLink(_ref3) {
2623
- var children = _ref3.children,
2624
- disabled = _ref3.disabled,
2625
- noUnderline = _ref3.noUnderline,
2626
- onPress = _ref3.onPress,
2627
- otherProps = _objectWithoutProperties(_ref3, _excluded$1);
2628
-
2629
- return /*#__PURE__*/React.createElement(Typography, _extends({}, otherProps, {
2630
- accessibilityRole: "none"
2631
- }), /*#__PURE__*/React.createElement(StyledLink, {
2632
- disabled: disabled,
2633
- noUnderline: noUnderline,
2634
- accessibilityRole: "link",
2635
- onPress: disabled ? undefined : onPress
2636
- }, children));
3029
+ function TypographyLink(_ref4) {
3030
+ var children = _ref4.children,
3031
+ disabled = _ref4.disabled,
3032
+ noUnderline = _ref4.noUnderline,
3033
+ href = _ref4.href,
3034
+ hrefAttrs = _ref4.hrefAttrs,
3035
+ onPress = _ref4.onPress,
3036
+ otherProps = _objectWithoutProperties(_ref4, _excluded$1);
3037
+
3038
+ return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, otherProps), {}, {
3039
+ accessibilityRole: "none",
3040
+ children: /*#__PURE__*/jsx(StyleWebWrapper, {
3041
+ as: TypographyLinkWebWrapper,
3042
+ "data-nounderline": noUnderline,
3043
+ children: /*#__PURE__*/jsx(StyledLink, {
3044
+ $disabled: disabled,
3045
+ $noUnderline: noUnderline,
3046
+ href: href,
3047
+ hrefAttrs: hrefAttrs,
3048
+ accessibilityRole: "link",
3049
+ onPress: disabled ? undefined : onPress,
3050
+ children: children
3051
+ })
3052
+ })
3053
+ }));
2637
3054
  }
2638
3055
 
2639
3056
  function matchWindowSize(currentWidth, _ref) {
@@ -2705,9 +3122,10 @@ function useKittTheme() {
2705
3122
  function KittThemeProvider(_ref) {
2706
3123
  var children = _ref.children;
2707
3124
  var theme = useKittTheme();
2708
- return /*#__PURE__*/React.createElement(ThemeProvider, {
2709
- theme: theme
2710
- }, children);
3125
+ return /*#__PURE__*/jsx(ThemeProvider, {
3126
+ theme: theme,
3127
+ children: children
3128
+ });
2711
3129
  }
2712
3130
  var KittThemeDecorator = makeDecorator({
2713
3131
  name: 'ThemeDecorator',
@@ -2715,17 +3133,9 @@ var KittThemeDecorator = makeDecorator({
2715
3133
  wrapper: function wrapper(storyFn, context, _ref2) {
2716
3134
  _ref2.options;
2717
3135
  _ref2.parameters;
2718
- return /*#__PURE__*/React.createElement(KittThemeProvider, null, storyFn(context));
2719
- }
2720
- });
2721
-
2722
- var SafeAreaProviderDecorator = makeDecorator({
2723
- name: 'SafeAreaProviderDecorator',
2724
- parameterName: 'safeAreaProvider',
2725
- wrapper: function wrapper(storyFn, context, _ref) {
2726
- _ref.options;
2727
- _ref.parameters;
2728
- return /*#__PURE__*/React.createElement(SafeAreaProvider, null, storyFn(context));
3136
+ return /*#__PURE__*/jsx(KittThemeProvider, {
3137
+ children: storyFn(context)
3138
+ });
2729
3139
  }
2730
3140
  });
2731
3141
 
@@ -2736,8 +3146,10 @@ function MatchWindowSize(_ref) {
2736
3146
 
2737
3147
  var match = useMatchWindowSize(matchWindowSizeOptions);
2738
3148
  if (!match) return null;
2739
- return /*#__PURE__*/React.createElement(React.Fragment, null, children);
3149
+ return /*#__PURE__*/jsx(Fragment$1, {
3150
+ children: children
3151
+ });
2740
3152
  }
2741
3153
 
2742
- export { Avatar, Button, Card, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, 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 };
3154
+ 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 };
2743
3155
  //# sourceMappingURL=index-browser-all.es.web.js.map