@ornikar/kitt-universal 4.0.0 → 4.3.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 (107) hide show
  1. package/dist/definitions/BaseMessage/BaseMessage.d.ts +16 -0
  2. package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -0
  3. package/dist/definitions/BaseMessage/IconContent.d.ts +10 -0
  4. package/dist/definitions/BaseMessage/IconContent.d.ts.map +1 -0
  5. package/dist/definitions/BaseMessage/helper.d.ts +6 -0
  6. package/dist/definitions/BaseMessage/helper.d.ts.map +1 -0
  7. package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
  8. package/dist/definitions/Message/Message.d.ts +4 -12
  9. package/dist/definitions/Message/Message.d.ts.map +1 -1
  10. package/dist/definitions/Notification/Notification.d.ts +8 -8
  11. package/dist/definitions/Notification/Notification.d.ts.map +1 -1
  12. package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
  13. package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
  14. package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -1
  15. package/dist/definitions/forms/InputEmail/InputEmail.d.ts +7 -0
  16. package/dist/definitions/forms/InputEmail/InputEmail.d.ts.map +1 -0
  17. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  18. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +8 -0
  19. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -0
  20. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +11 -0
  21. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
  22. package/dist/definitions/index.d.ts +2 -0
  23. package/dist/definitions/index.d.ts.map +1 -1
  24. package/dist/definitions/themes/default.d.ts +22 -101
  25. package/dist/definitions/themes/default.d.ts.map +1 -1
  26. package/dist/definitions/themes/late-ocean/{avatarLateOceanTheme.d.ts → avatar.d.ts} +2 -2
  27. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -0
  28. package/dist/definitions/themes/late-ocean/{buttonLateOceanTheme.d.ts → button.d.ts} +8 -8
  29. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -0
  30. package/dist/definitions/themes/late-ocean/card.d.ts +13 -0
  31. package/dist/definitions/themes/late-ocean/card.d.ts.map +1 -0
  32. package/dist/definitions/themes/late-ocean/{colorsLateOceanTheme.d.ts → colors.d.ts} +4 -2
  33. package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -0
  34. package/dist/definitions/themes/late-ocean/feedback.d.ts +11 -0
  35. package/dist/definitions/themes/late-ocean/feedback.d.ts.map +1 -0
  36. package/dist/definitions/themes/late-ocean/forms.d.ts +1 -17
  37. package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
  38. package/dist/definitions/themes/late-ocean/{fullScreenModalLateOceanTheme.d.ts → fullScreenModal.d.ts} +2 -2
  39. package/dist/definitions/themes/late-ocean/fullScreenModal.d.ts.map +1 -0
  40. package/dist/definitions/themes/late-ocean/input.d.ts +9 -4
  41. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  42. package/dist/definitions/themes/late-ocean/inputField.d.ts +5 -0
  43. package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -0
  44. package/dist/definitions/themes/late-ocean/listItem.d.ts +8 -0
  45. package/dist/definitions/themes/late-ocean/listItem.d.ts.map +1 -0
  46. package/dist/definitions/themes/late-ocean/{radioLateOceanTheme.d.ts → radio.d.ts} +6 -5
  47. package/dist/definitions/themes/late-ocean/radio.d.ts.map +1 -0
  48. package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -0
  49. package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -0
  50. package/dist/definitions/themes/late-ocean/{skeletonTheme.d.ts → skeleton.d.ts} +2 -2
  51. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -0
  52. package/dist/definitions/themes/late-ocean/tag.d.ts +18 -0
  53. package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -0
  54. package/dist/definitions/themes/late-ocean/{typographyLateOceanTheme.d.ts → typography.d.ts} +5 -4
  55. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -0
  56. package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +1 -0
  57. package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +1 -1
  58. package/dist/definitions/typography/Typography.d.ts +2 -2
  59. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  60. package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
  61. package/dist/index-browser-all.es.android.js +443 -405
  62. package/dist/index-browser-all.es.android.js.map +1 -1
  63. package/dist/index-browser-all.es.ios.js +443 -405
  64. package/dist/index-browser-all.es.ios.js.map +1 -1
  65. package/dist/index-browser-all.es.js +443 -405
  66. package/dist/index-browser-all.es.js.map +1 -1
  67. package/dist/index-browser-all.es.web.js +492 -426
  68. package/dist/index-browser-all.es.web.js.map +1 -1
  69. package/dist/index-node-14.17.cjs.js +427 -370
  70. package/dist/index-node-14.17.cjs.js.map +1 -1
  71. package/dist/index-node-14.17.cjs.web.css +1 -0
  72. package/dist/index-node-14.17.cjs.web.js +458 -372
  73. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  74. package/dist/linaria-themes-browser-all.es.android.js +122 -108
  75. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  76. package/dist/linaria-themes-browser-all.es.ios.js +122 -108
  77. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  78. package/dist/linaria-themes-browser-all.es.js +122 -108
  79. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  80. package/dist/linaria-themes-browser-all.es.web.js +122 -108
  81. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  82. package/dist/linaria-themes-node-14.17.cjs.js +122 -108
  83. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  84. package/dist/linaria-themes-node-14.17.cjs.web.js +122 -108
  85. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  86. package/dist/styles.css +1 -0
  87. package/dist/tsbuildinfo +1 -1
  88. package/package.json +4 -4
  89. package/dist/definitions/themes/late-ocean/avatarLateOceanTheme.d.ts.map +0 -1
  90. package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +0 -1
  91. package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts +0 -18
  92. package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts.map +0 -1
  93. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +0 -1
  94. package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts +0 -9
  95. package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts.map +0 -1
  96. package/dist/definitions/themes/late-ocean/fullScreenModalLateOceanTheme.d.ts.map +0 -1
  97. package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts +0 -5
  98. package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts.map +0 -1
  99. package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts +0 -7
  100. package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts.map +0 -1
  101. package/dist/definitions/themes/late-ocean/radioLateOceanTheme.d.ts.map +0 -1
  102. package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts +0 -4
  103. package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts.map +0 -1
  104. package/dist/definitions/themes/late-ocean/skeletonTheme.d.ts.map +0 -1
  105. package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts +0 -41
  106. package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts.map +0 -1
  107. package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
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';
3
+ import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
4
4
  export { useWindowDimensions as useWindowSize } from 'react-native';
5
- import { UserIcon, EyeOffIcon, EyeIcon, LoaderIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
5
+ import { UserIcon, EyeOffIcon, EyeIcon, LoaderIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
6
6
  export * from '@ornikar/kitt-icons';
7
7
  import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
8
8
  import { forwardRef, cloneElement, useContext, createContext, useMemo, useState, Fragment, Children, useEffect } from 'react';
@@ -16,9 +16,9 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
16
16
  import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
17
17
  import { makeDecorator } from '@storybook/addons';
18
18
 
19
- function ownKeys$j(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; }
19
+ function ownKeys$k(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
20
 
21
- function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
+ function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
22
22
  // type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
23
23
  // type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
24
24
  // export function withTheme<Props extends { theme: DefaultTheme }, C>(
@@ -33,7 +33,7 @@ function withTheme(WrappedComponent) {
33
33
  // eslint-disable-next-line prefer-arrow-callback
34
34
  return /*#__PURE__*/forwardRef(function (props, ref) {
35
35
  var theme = /*#__PURE__*/useTheme();
36
- return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$j({
36
+ return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$k({
37
37
  ref: ref,
38
38
  theme: theme
39
39
  }, props));
@@ -51,7 +51,7 @@ function SpinningIcon(_ref) {
51
51
  });
52
52
  }
53
53
 
54
- var IconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
54
+ var IconContainer = /*#__PURE__*/styled$1(View).withConfig({
55
55
  displayName: "Icon__IconContainer",
56
56
  componentId: "kitt-universal__sc-usm0ol-0"
57
57
  })(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
@@ -78,7 +78,7 @@ function Icon(_ref5) {
78
78
  var clonedIcon = /*#__PURE__*/cloneElement(icon, {
79
79
  color: color
80
80
  });
81
- return /*#__PURE__*/jsx(IconContainer$1, {
81
+ return /*#__PURE__*/jsx(IconContainer, {
82
82
  align: align,
83
83
  size: size,
84
84
  color: color,
@@ -138,9 +138,9 @@ var KittBreakpointsMax = {
138
138
 
139
139
  var _excluded$f = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
140
140
 
141
- function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
141
+ function ownKeys$j(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; }
142
142
 
143
- function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
143
+ function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
144
144
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
145
145
  var TypographyColorContext = /*#__PURE__*/createContext('black');
146
146
  function useTypographyColor() {
@@ -181,7 +181,7 @@ var StyledTypography = /*#__PURE__*/styled$1(Text$1).withConfig({
181
181
  headers = _theme$kitt$typograph.headers,
182
182
  bodies = _theme$kitt$typograph.bodies;
183
183
  var typeConfigKey = getTypographyTypeConfigKey(theme);
184
- 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 ");
184
+ 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, "px;\n line-height: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight, "px;\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 ");
185
185
  }, function (_ref2) {
186
186
  var theme = _ref2.theme,
187
187
  $color = _ref2.$color;
@@ -234,14 +234,14 @@ function Typography(_ref4) {
234
234
  var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
235
235
  var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
236
236
  value: isHeader,
237
- children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
237
+ children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
238
238
  $color: colorOrDefaultToBlack,
239
239
  $isHeader: isHeader,
240
240
  $typeForCurrentWindowSize: typeForCurrentWindowSize,
241
241
  $variant: nonNullableVariant,
242
242
  accessibilityRole: accessibilityRole || undefined
243
243
  }, otherProps))
244
- }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
244
+ }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
245
245
  $color: colorOrDefaultToBlack,
246
246
  $isHeader: isHeader,
247
247
  $variant: nonNullableVariant,
@@ -254,13 +254,13 @@ function Typography(_ref4) {
254
254
  }
255
255
 
256
256
  function TypographyText(props) {
257
- return /*#__PURE__*/jsx(Typography, _objectSpread$i({
257
+ return /*#__PURE__*/jsx(Typography, _objectSpread$j({
258
258
  accessibilityRole: null
259
259
  }, props));
260
260
  }
261
261
 
262
262
  function TypographyParagraph(props) {
263
- return /*#__PURE__*/jsx(Typography, _objectSpread$i({
263
+ return /*#__PURE__*/jsx(Typography, _objectSpread$j({
264
264
  accessibilityRole: "paragraph"
265
265
  }, props));
266
266
  }
@@ -268,7 +268,7 @@ function TypographyParagraph(props) {
268
268
  var createHeading = function (level, defaultBase) {
269
269
  // https://github.com/necolas/react-native-web/issues/401
270
270
  function TypographyHeading(props) {
271
- return /*#__PURE__*/jsx(Typography, _objectSpread$i(_objectSpread$i({
271
+ return /*#__PURE__*/jsx(Typography, _objectSpread$j(_objectSpread$j({
272
272
  accessibilityRole: "header",
273
273
  base: defaultBase
274
274
  }, props), {}, {
@@ -306,9 +306,9 @@ Typography.h5 = createHeading(5, 'header5');
306
306
 
307
307
  var _excluded$e = ["size", "base", "round", "light"];
308
308
 
309
- 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; }
309
+ function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
310
310
 
311
- 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; }
311
+ function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
312
312
 
313
313
  var getInitials = function (firstname, lastname) {
314
314
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
@@ -322,7 +322,7 @@ var StyledAvatarView = /*#__PURE__*/styled$1(View).withConfig({
322
322
  $isRound = _ref.$isRound,
323
323
  $size = _ref.$size;
324
324
  if ($isRound) return "".concat($size / 2, "px");
325
- return theme.kitt.avatar.borderRadius;
325
+ return "".concat(theme.kitt.avatar.borderRadius, "px");
326
326
  }, function (_ref2) {
327
327
  var theme = _ref2.theme,
328
328
  $isLight = _ref2.$isLight;
@@ -386,7 +386,7 @@ function Avatar(_ref6) {
386
386
  $size: size,
387
387
  $isRound: round,
388
388
  $isLight: light,
389
- children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$h({
389
+ children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$i({
390
390
  size: size,
391
391
  base: base,
392
392
  isLight: light
@@ -400,9 +400,9 @@ function isSubtle(type) {
400
400
 
401
401
  var _excluded$d = ["$type", "$isStretch", "disabled"];
402
402
 
403
- 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; }
403
+ 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; }
404
404
 
405
- 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; }
405
+ 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; }
406
406
  var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
407
407
  name: "AnimatedButtonPressableContainer",
408
408
  "class": "a1vkj3mh",
@@ -441,7 +441,7 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
441
441
  "a1vkj3mh-7": [function (_ref7) {
442
442
  var theme = _ref7.theme;
443
443
  return theme.kitt.button.borderRadius;
444
- }],
444
+ }, "px"],
445
445
  "a1vkj3mh-8": [function (_ref8) {
446
446
  var theme = _ref8.theme;
447
447
  return "opacity ".concat(theme.kitt.button.transition.duration, " ").concat(theme.kitt.button.transition.timingFunction);
@@ -452,24 +452,24 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
452
452
  }],
453
453
  "a1vkj3mh-10": [function (_ref10) {
454
454
  var theme = _ref10.theme;
455
- return "-".concat(theme.kitt.button.borderWidth.disabled);
455
+ return "-".concat(theme.kitt.button.borderWidth.disabled, "px");
456
456
  }],
457
457
  "a1vkj3mh-12": [function (_ref11) {
458
458
  var theme = _ref11.theme;
459
- return "calc(100% - ".concat(parseInt(theme.kitt.button.borderWidth.disabled, 10) * 0.5, "px)");
459
+ return "calc(100% - ".concat(theme.kitt.button.borderWidth.disabled * 0.5, "px)");
460
460
  }],
461
461
  "a1vkj3mh-14": [function (_ref12) {
462
462
  var theme = _ref12.theme;
463
- return "".concat(theme.kitt.button.disabled.borderColor, " solid ").concat(theme.kitt.button.borderWidth.disabled);
463
+ return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled.borderColor);
464
464
  }],
465
465
  "a1vkj3mh-15": [function (_ref13) {
466
466
  var theme = _ref13.theme,
467
467
  $type = _ref13.$type;
468
- return "".concat(theme.kitt.button.borderWidth.focus, " solid ").concat(theme.kitt.button[$type].focusBorderColor);
468
+ return "".concat(theme.kitt.button.borderWidth.focus, "px solid ").concat(theme.kitt.button[$type].focusBorderColor);
469
469
  }],
470
470
  "a1vkj3mh-16": [function (_ref14) {
471
471
  var theme = _ref14.theme;
472
- return "-".concat(theme.kitt.button.borderWidth.focus);
472
+ return "-".concat(theme.kitt.button.borderWidth.focus, "px");
473
473
  }],
474
474
  "a1vkj3mh-18": [function (_ref15) {
475
475
  var theme = _ref15.theme,
@@ -508,7 +508,7 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
508
508
  $type: $type,
509
509
  $isDisabled: !!disabled,
510
510
  $isStretch: $isStretch,
511
- children: /*#__PURE__*/jsx(Pressable, _objectSpread$g({
511
+ children: /*#__PURE__*/jsx(Pressable, _objectSpread$h({
512
512
  disabled: disabled
513
513
  }, props))
514
514
  });
@@ -517,13 +517,13 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
517
517
  var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
518
518
  displayName: "BaseStyledButtonPressable",
519
519
  componentId: "kitt-universal__sc-4k8lse-0"
520
- })(["position:relative;min-width:", ";max-width:", ";width:", ";min-height:", ";border-radius:", ";flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], function (_ref) {
520
+ })(["position:relative;min-width:", "px;max-width:", ";width:", ";min-height:", "px;border-radius:", "px;flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], function (_ref) {
521
521
  var theme = _ref.theme;
522
522
  return theme.kitt.button.minWidth;
523
523
  }, function (_ref2) {
524
524
  var theme = _ref2.theme,
525
525
  $isStretch = _ref2.$isStretch;
526
- return $isStretch ? '100%' : theme.kitt.button.maxWidth;
526
+ return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
527
527
  }, function (_ref3) {
528
528
  var $isStretch = _ref3.$isStretch;
529
529
  return $isStretch ? '100%' : 'auto';
@@ -555,23 +555,23 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
555
555
  var _excluded$c = ["color"],
556
556
  _excluded2$2 = ["color"];
557
557
 
558
- 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; }
558
+ 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; }
559
559
 
560
- 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; }
560
+ 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; }
561
561
 
562
562
  function TypographyIconSpecifiedColor(_ref) {
563
563
  var color = _ref.color,
564
564
  props = _objectWithoutProperties(_ref, _excluded$c);
565
565
 
566
566
  var theme = /*#__PURE__*/useTheme();
567
- return /*#__PURE__*/jsx(Icon, _objectSpread$f(_objectSpread$f({}, props), {}, {
567
+ return /*#__PURE__*/jsx(Icon, _objectSpread$g(_objectSpread$g({}, props), {}, {
568
568
  color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
569
569
  }));
570
570
  }
571
571
 
572
572
  function TypographyIconInheritColor(props) {
573
573
  var color = useTypographyColor();
574
- return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$f({
574
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$g({
575
575
  color: color
576
576
  }, props));
577
577
  }
@@ -581,19 +581,19 @@ function TypographyIcon(_ref2) {
581
581
  props = _objectWithoutProperties(_ref2, _excluded2$2);
582
582
 
583
583
  if (color) {
584
- return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$f({
584
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$g({
585
585
  color: color
586
586
  }, props));
587
587
  }
588
588
 
589
- return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$f({}, props));
589
+ return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$g({}, props));
590
590
  }
591
591
 
592
592
  var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
593
593
 
594
- 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; }
594
+ 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; }
595
595
 
596
- 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; }
596
+ 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; }
597
597
 
598
598
  var getTextColorByType = function (type) {
599
599
  switch (type) {
@@ -632,7 +632,7 @@ var StyledButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
632
632
  if ($isDisabled || !isSubtle($type)) return undefined;
633
633
  return 'color: inherit';
634
634
  });
635
- var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
635
+ var StyledIconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
636
636
  displayName: "ButtonContent__StyledIconContainer",
637
637
  componentId: "kitt-universal__sc-dnyw3n-1"
638
638
  })(["", ""], function (_ref2) {
@@ -653,7 +653,7 @@ function ButtonIcon(_ref3) {
653
653
  spin = _ref3.spin,
654
654
  iconPosition = _ref3.iconPosition,
655
655
  testID = _ref3.testID;
656
- return /*#__PURE__*/jsx(StyledIconContainer, {
656
+ return /*#__PURE__*/jsx(StyledIconContainer$1, {
657
657
  $iconPosition: iconPosition,
658
658
  children: /*#__PURE__*/jsx(TypographyIcon, {
659
659
  icon: icon,
@@ -701,7 +701,7 @@ function ButtonContentChildren(_ref4) {
701
701
  color: isWebSubtle ? 'inherit' : color
702
702
  };
703
703
  return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
704
- children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$e(_objectSpread$e({}, buttonIconSharedProps), {}, {
704
+ children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$f(_objectSpread$f({}, buttonIconSharedProps), {}, {
705
705
  testID: "button-left-icon",
706
706
  icon: icon
707
707
  })) : null, /*#__PURE__*/jsx(StyledButtonText, {
@@ -712,7 +712,7 @@ function ButtonContentChildren(_ref4) {
712
712
  ,
713
713
  color: isWebSubtle ? undefined : color,
714
714
  children: children
715
- }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$e(_objectSpread$e({}, buttonIconSharedProps), {}, {
715
+ }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$f(_objectSpread$f({}, buttonIconSharedProps), {}, {
716
716
  icon: icon
717
717
  })) : null]
718
718
  });
@@ -743,7 +743,7 @@ function ButtonContent(_ref7) {
743
743
  $isSubtle: isSubtle(type),
744
744
  $isStretch: $isStretch,
745
745
  $isIconOnly: Boolean(!children && icon),
746
- children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$e(_objectSpread$e({
746
+ children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$f(_objectSpread$f({
747
747
  icon: icon,
748
748
  type: type,
749
749
  isDisabled: isDisabled,
@@ -799,16 +799,16 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
799
799
  });
800
800
  });
801
801
 
802
- var Container$4 = /*#__PURE__*/styled$1(View).withConfig({
802
+ var Container$3 = /*#__PURE__*/styled$1(View).withConfig({
803
803
  displayName: "Card__Container",
804
804
  componentId: "kitt-universal__sc-1n9psug-0"
805
- })(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
805
+ })(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
806
806
  var theme = _ref.theme,
807
807
  type = _ref.type;
808
808
  return theme.kitt.card[type].backgroundColor;
809
809
  }, function (_ref2) {
810
810
  var theme = _ref2.theme;
811
- return theme.kitt.card.padding;
811
+ return theme.kitt.spacing * 4;
812
812
  }, function (_ref3) {
813
813
  var theme = _ref3.theme;
814
814
  return theme.kitt.card.borderRadius;
@@ -823,7 +823,7 @@ var Container$4 = /*#__PURE__*/styled$1(View).withConfig({
823
823
  function Card(_ref6) {
824
824
  var children = _ref6.children,
825
825
  type = _ref6.type;
826
- return /*#__PURE__*/jsx(Container$4, {
826
+ return /*#__PURE__*/jsx(Container$3, {
827
827
  type: type,
828
828
  children: children
829
829
  });
@@ -871,9 +871,9 @@ var defaultOpenLinkBehavior = {
871
871
 
872
872
  var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
873
873
 
874
- 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; }
874
+ 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; }
875
875
 
876
- 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; }
876
+ 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; }
877
877
  function ExternalLink(_ref) {
878
878
  var Component = _ref.as,
879
879
  href = _ref.href,
@@ -882,7 +882,7 @@ function ExternalLink(_ref) {
882
882
  onPress = _ref.onPress,
883
883
  rest = _objectWithoutProperties(_ref, _excluded$a);
884
884
 
885
- return /*#__PURE__*/jsx(Component, _objectSpread$d(_objectSpread$d({}, rest), {}, {
885
+ return /*#__PURE__*/jsx(Component, _objectSpread$e(_objectSpread$e({}, rest), {}, {
886
886
  href: href,
887
887
  hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
888
888
  target: '_blank',
@@ -892,110 +892,7 @@ function ExternalLink(_ref) {
892
892
  }));
893
893
  }
894
894
 
895
- var getColorFromState = function (state) {
896
- switch (state) {
897
- case 'invalid':
898
- return 'danger';
899
-
900
- case 'valid':
901
- default:
902
- return 'black-light';
903
- }
904
- };
905
-
906
- function InputFeedback(_ref) {
907
- var state = _ref.state,
908
- testID = _ref.testID,
909
- children = _ref.children;
910
- return /*#__PURE__*/jsx(Typography.Text, {
911
- base: "body-small",
912
- color: getColorFromState(state),
913
- testID: testID,
914
- children: children
915
- });
916
- }
917
-
918
- var FieldContainer = /*#__PURE__*/styled$1(View).withConfig({
919
- displayName: "InputField__FieldContainer",
920
- componentId: "kitt-universal__sc-13fkixs-0"
921
- })(["padding:5px 0 10px;"]);
922
- var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
923
- displayName: "InputField__FeedbackContainer",
924
- componentId: "kitt-universal__sc-13fkixs-1"
925
- })(["", ";"], function (_ref) {
926
- var theme = _ref.theme;
927
- return theme.responsive.ifWindowSizeMatches({
928
- minWidth: KittBreakpoints.SMALL
929
- }, 'padding-top: 10px', 'padding-top: 5px');
930
- });
931
- var FieldLabelContainer = /*#__PURE__*/styled$1(View).withConfig({
932
- displayName: "InputField__FieldLabelContainer",
933
- componentId: "kitt-universal__sc-13fkixs-2"
934
- })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
935
- var theme = _ref2.theme;
936
- return theme.kitt.forms.inputField.labelContainerPaddingBottom;
937
- });
938
- var LabelContainer = /*#__PURE__*/styled$1(View).withConfig({
939
- displayName: "InputField__LabelContainer",
940
- componentId: "kitt-universal__sc-13fkixs-3"
941
- })(["margin-right:", "px;"], function (_ref3) {
942
- var theme = _ref3.theme;
943
- return theme.kitt.forms.inputField.iconMarginLeft;
944
- });
945
- function InputField(_ref4) {
946
- var label = _ref4.label,
947
- labelFeedback = _ref4.labelFeedback,
948
- input = _ref4.input,
949
- feedback = _ref4.feedback;
950
- return /*#__PURE__*/jsxs(FieldContainer, {
951
- children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
952
- children: [/*#__PURE__*/jsx(LabelContainer, {
953
- children: label
954
- }), labelFeedback]
955
- }) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
956
- children: feedback
957
- }) : null]
958
- });
959
- }
960
-
961
- function getIconColor(state, disabled) {
962
- if (disabled) return 'black-light';
963
-
964
- switch (state) {
965
- case 'invalid':
966
- return 'danger';
967
-
968
- case 'valid':
969
- return 'success';
970
-
971
- default:
972
- return undefined;
973
- }
974
- }
975
-
976
- function InputIcon(_ref) {
977
- var icon = _ref.icon,
978
- state = _ref.state,
979
- disabled = _ref.disabled;
980
- var theme = /*#__PURE__*/useTheme();
981
- var color = getIconColor(state, disabled);
982
- return /*#__PURE__*/jsx(TypographyIcon, {
983
- color: color,
984
- icon: icon,
985
- size: theme.kitt.forms.input.icon.size
986
- });
987
- }
988
-
989
- 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; }
990
-
991
- 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; }
992
- function InputPressable(_ref) {
993
- var props = _extends({}, _ref);
994
-
995
- return /*#__PURE__*/jsx(Pressable, _objectSpread$c({}, props));
996
- }
997
-
998
- var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
895
+ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
999
896
  var theme = _ref.theme,
1000
897
  $state = _ref.$state;
1001
898
  return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
@@ -1012,7 +909,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
1012
909
  }, function (_ref5) {
1013
910
  var theme = _ref5.theme;
1014
911
  var typeConfigKey = getTypographyTypeConfigKey(theme);
1015
- return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
912
+ return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
1016
913
  }, function (_ref6) {
1017
914
  var theme = _ref6.theme,
1018
915
  $state = _ref6.$state;
@@ -1032,15 +929,46 @@ function getInputUIState(_ref) {
1032
929
  return 'default';
1033
930
  }
1034
931
 
932
+ var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
933
+ name: "InputTextContainer",
934
+ "class": "i1encr9g",
935
+ vars: {
936
+ "i1encr9g-0": [function (_ref) {
937
+ var $isDisabled = _ref.$isDisabled;
938
+ return $isDisabled ? 'not-allowed' : 'inherit';
939
+ }],
940
+ "i1encr9g-1": [function (_ref2) {
941
+ var theme = _ref2.theme;
942
+ var _theme$kitt$forms$inp = theme.kitt.forms.input.transition,
943
+ property = _theme$kitt$forms$inp.property,
944
+ duration = _theme$kitt$forms$inp.duration,
945
+ timingFunction = _theme$kitt$forms$inp.timingFunction;
946
+ return "".concat(property, " ").concat(duration, " ").concat(timingFunction);
947
+ }],
948
+ "i1encr9g-2": [function (_ref3) {
949
+ var theme = _ref3.theme,
950
+ $isDisabled = _ref3.$isDisabled;
951
+ if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
952
+ return theme.kitt.forms.input.states.hover.borderColor;
953
+ }],
954
+ "i1encr9g-3": [function (_ref4) {
955
+ var theme = _ref4.theme,
956
+ $isDisabled = _ref4.$isDisabled;
957
+ if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
958
+ return theme.kitt.forms.input.states.focus.borderColor;
959
+ }]
960
+ }
961
+ }));
962
+
1035
963
  var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
1036
964
 
1037
- 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; }
965
+ 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; }
1038
966
 
1039
- 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; }
967
+ 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; }
1040
968
  var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
1041
969
  displayName: "InputText__StyledTextInput",
1042
970
  componentId: "kitt-universal__sc-uke279-0"
1043
- })(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
971
+ })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
1044
972
  var theme = _ref.theme,
1045
973
  multiline = _ref.multiline;
1046
974
 
@@ -1054,18 +982,14 @@ var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
1054
982
  multiline = _ref2.multiline;
1055
983
  if (!multiline && "web" === 'ios') return 0;
1056
984
  var typeConfigKey = getTypographyTypeConfigKey(theme);
1057
- return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
985
+ return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
1058
986
  }, function (_ref3) {
1059
987
  var $minHeight = _ref3.$minHeight;
1060
988
  return $minHeight;
1061
989
  });
1062
- var InputTextContainer = /*#__PURE__*/styled$1(View).withConfig({
1063
- displayName: "InputText__InputTextContainer",
1064
- componentId: "kitt-universal__sc-uke279-1"
1065
- })(["position:relative;"]);
1066
990
  var RightInputContainer = /*#__PURE__*/styled$1(View).withConfig({
1067
991
  displayName: "InputText__RightInputContainer",
1068
- componentId: "kitt-universal__sc-uke279-2"
992
+ componentId: "kitt-universal__sc-uke279-1"
1069
993
  })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
1070
994
  var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1071
995
  var id = _ref4.id,
@@ -1101,7 +1025,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1101
1025
  formState: formState
1102
1026
  });
1103
1027
  return /*#__PURE__*/jsxs(InputTextContainer, {
1104
- children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$b(_objectSpread$b({
1028
+ $isDisabled: disabled,
1029
+ children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$d(_objectSpread$d({
1105
1030
  ref: ref,
1106
1031
  nativeID: id,
1107
1032
  editable: !disabled,
@@ -1128,6 +1053,120 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1128
1053
  });
1129
1054
  });
1130
1055
 
1056
+ 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; }
1057
+
1058
+ 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; }
1059
+ function InputEmail(props) {
1060
+ return /*#__PURE__*/jsx(InputText, _objectSpread$c({
1061
+ autoCompleteType: "email",
1062
+ keyboardType: "email-address",
1063
+ textContentType: "emailAddress"
1064
+ }, props));
1065
+ }
1066
+
1067
+ var getColorFromState = function (state) {
1068
+ switch (state) {
1069
+ case 'invalid':
1070
+ return 'danger';
1071
+
1072
+ case 'valid':
1073
+ default:
1074
+ return 'black-light';
1075
+ }
1076
+ };
1077
+
1078
+ function InputFeedback(_ref) {
1079
+ var state = _ref.state,
1080
+ testID = _ref.testID,
1081
+ children = _ref.children;
1082
+ return /*#__PURE__*/jsx(Typography.Text, {
1083
+ base: "body-small",
1084
+ color: getColorFromState(state),
1085
+ testID: testID,
1086
+ children: children
1087
+ });
1088
+ }
1089
+
1090
+ var FieldContainer = /*#__PURE__*/styled$1(View).withConfig({
1091
+ displayName: "InputField__FieldContainer",
1092
+ componentId: "kitt-universal__sc-13fkixs-0"
1093
+ })(["padding:5px 0 10px;"]);
1094
+ var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
1095
+ displayName: "InputField__FeedbackContainer",
1096
+ componentId: "kitt-universal__sc-13fkixs-1"
1097
+ })(["", ";"], function (_ref) {
1098
+ var theme = _ref.theme;
1099
+ return theme.responsive.ifWindowSizeMatches({
1100
+ minWidth: KittBreakpoints.SMALL
1101
+ }, 'padding-top: 10px', 'padding-top: 5px');
1102
+ });
1103
+ var FieldLabelContainer = /*#__PURE__*/styled$1(View).withConfig({
1104
+ displayName: "InputField__FieldLabelContainer",
1105
+ componentId: "kitt-universal__sc-13fkixs-2"
1106
+ })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
1107
+ var theme = _ref2.theme;
1108
+ return theme.kitt.forms.inputField.labelContainerPaddingBottom;
1109
+ });
1110
+ var LabelContainer = /*#__PURE__*/styled$1(View).withConfig({
1111
+ displayName: "InputField__LabelContainer",
1112
+ componentId: "kitt-universal__sc-13fkixs-3"
1113
+ })(["margin-right:", "px;"], function (_ref3) {
1114
+ var theme = _ref3.theme;
1115
+ return theme.kitt.forms.inputField.iconMarginLeft;
1116
+ });
1117
+ function InputField(_ref4) {
1118
+ var label = _ref4.label,
1119
+ labelFeedback = _ref4.labelFeedback,
1120
+ input = _ref4.input,
1121
+ feedback = _ref4.feedback;
1122
+ return /*#__PURE__*/jsxs(FieldContainer, {
1123
+ children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
1124
+ children: [/*#__PURE__*/jsx(LabelContainer, {
1125
+ children: label
1126
+ }), labelFeedback]
1127
+ }) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
1128
+ children: feedback
1129
+ }) : null]
1130
+ });
1131
+ }
1132
+
1133
+ function getIconColor(state, disabled) {
1134
+ if (disabled) return 'black-light';
1135
+
1136
+ switch (state) {
1137
+ case 'invalid':
1138
+ return 'danger';
1139
+
1140
+ case 'valid':
1141
+ return 'success';
1142
+
1143
+ default:
1144
+ return undefined;
1145
+ }
1146
+ }
1147
+
1148
+ function InputIcon(_ref) {
1149
+ var icon = _ref.icon,
1150
+ state = _ref.state,
1151
+ disabled = _ref.disabled;
1152
+ var theme = /*#__PURE__*/useTheme();
1153
+ var color = getIconColor(state, disabled);
1154
+ return /*#__PURE__*/jsx(TypographyIcon, {
1155
+ color: color,
1156
+ icon: icon,
1157
+ size: theme.kitt.forms.input.icon.size
1158
+ });
1159
+ }
1160
+
1161
+ 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; }
1162
+
1163
+ 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; }
1164
+ function InputPressable(_ref) {
1165
+ var props = _extends({}, _ref);
1166
+
1167
+ return /*#__PURE__*/jsx(Pressable, _objectSpread$b({}, props));
1168
+ }
1169
+
1131
1170
  var _excluded$8 = ["isPasswordDefaultVisible", "right"];
1132
1171
 
1133
1172
  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; }
@@ -1177,7 +1216,7 @@ function Label(_ref) {
1177
1216
  var OuterRadio = /*#__PURE__*/styled$1(View).withConfig({
1178
1217
  displayName: "Radio__OuterRadio",
1179
1218
  componentId: "kitt-universal__sc-1mdgr2o-0"
1180
- })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
1219
+ })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
1181
1220
  var theme = _ref.theme,
1182
1221
  disabled = _ref.disabled;
1183
1222
  return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
@@ -1230,7 +1269,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled$1(View).withConfig({
1230
1269
  var theme = _ref14.theme;
1231
1270
  return theme.kitt.forms.radio.checked.innerSize / 2;
1232
1271
  });
1233
- var Container$3 = /*#__PURE__*/styled$1(Pressable).withConfig({
1272
+ var Container$2 = /*#__PURE__*/styled$1(Pressable).withConfig({
1234
1273
  displayName: "Radio__Container",
1235
1274
  componentId: "kitt-universal__sc-1mdgr2o-3"
1236
1275
  })(["flex-direction:row;align-items:center;"]);
@@ -1249,7 +1288,7 @@ function Radio(_ref16) {
1249
1288
  _ref16$disabled = _ref16.disabled,
1250
1289
  disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
1251
1290
  children = _ref16.children;
1252
- return /*#__PURE__*/jsxs(Container$3, {
1291
+ return /*#__PURE__*/jsxs(Container$2, {
1253
1292
  nativeID: id,
1254
1293
  disabled: disabled,
1255
1294
  accessibilityRole: "radio",
@@ -1431,7 +1470,7 @@ function FullScreenModalHeader(_ref6) {
1431
1470
  });
1432
1471
  }
1433
1472
 
1434
- var Container$2 = /*#__PURE__*/styled$1(View).withConfig({
1473
+ var Container$1 = /*#__PURE__*/styled$1(View).withConfig({
1435
1474
  displayName: "FullScreenModal__Container",
1436
1475
  componentId: "kitt-universal__sc-11qpbe3-0"
1437
1476
  })(["flex:1;background-color:", ";"], function (_ref) {
@@ -1440,7 +1479,7 @@ var Container$2 = /*#__PURE__*/styled$1(View).withConfig({
1440
1479
  });
1441
1480
  function FullScreenModal(_ref2) {
1442
1481
  var children = _ref2.children;
1443
- return /*#__PURE__*/jsx(Container$2, {
1482
+ return /*#__PURE__*/jsx(Container$1, {
1444
1483
  children: children
1445
1484
  });
1446
1485
  }
@@ -1640,11 +1679,11 @@ var SideContainerView = /*#__PURE__*/styled$1(View).withConfig({
1640
1679
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
1641
1680
  var theme = _ref.theme,
1642
1681
  side = _ref.side;
1643
- return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
1682
+ return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
1644
1683
  }, function (_ref2) {
1645
1684
  var theme = _ref2.theme,
1646
1685
  side = _ref2.side;
1647
- return side === 'left' ? theme.kitt.listItem.innerMargin : 0;
1686
+ return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
1648
1687
  }); // Handles the vertical alignment of the side elements of the list item
1649
1688
 
1650
1689
  function ListItemSideContainer(_ref3) {
@@ -1697,15 +1736,15 @@ var ContainerView = /*#__PURE__*/styled$1(View).withConfig({
1697
1736
  var borderWidth = theme.kitt.listItem.borderWidth;
1698
1737
 
1699
1738
  if (borders === 'top') {
1700
- return "border-top-width: ".concat(borderWidth);
1739
+ return "border-top-width: ".concat(borderWidth, "px");
1701
1740
  }
1702
1741
 
1703
1742
  if (borders === 'bottom') {
1704
- return "border-bottom-width: ".concat(borderWidth);
1743
+ return "border-bottom-width: ".concat(borderWidth, "px");
1705
1744
  }
1706
1745
 
1707
1746
  if (borders === 'both') {
1708
- return "border-top-width: ".concat(borderWidth, "; border-bottom-width: ").concat(borderWidth);
1747
+ return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
1709
1748
  }
1710
1749
 
1711
1750
  return 'border: none';
@@ -1805,59 +1844,32 @@ function Loader(_ref) {
1805
1844
  });
1806
1845
  }
1807
1846
 
1808
- var xIconSize = 14;
1809
- var mainIconSize = 20;
1810
- var Container$1 = /*#__PURE__*/styled$1(View).withConfig({
1811
- displayName: "Message__Container",
1812
- componentId: "kitt-universal__sc-c6400e-0"
1813
- })(["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) {
1814
- var theme = _ref.theme,
1815
- noRadius = _ref.noRadius;
1816
- return noRadius ? 0 : theme.kitt.spacing * 5;
1817
- }, function (_ref2) {
1818
- var theme = _ref2.theme,
1819
- type = _ref2.type;
1820
- return theme.kitt.feedbackMessage.backgroundColors[type];
1821
- }, function (_ref3) {
1822
- var theme = _ref3.theme;
1823
- return theme.kitt.spacing * 4;
1824
- }, function (_ref4) {
1825
- var theme = _ref4.theme;
1826
- return theme.kitt.spacing * 4;
1827
- }, function (_ref5) {
1828
- var theme = _ref5.theme;
1829
- return theme.kitt.spacing * 4;
1830
- }, function (_ref6) {
1831
- var _insets$top;
1847
+ function IconContent(_ref) {
1848
+ var type = _ref.type,
1849
+ color = _ref.color;
1832
1850
 
1833
- var theme = _ref6.theme,
1834
- insets = _ref6.insets;
1835
- return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
1836
- });
1837
- var CloseContainer = /*#__PURE__*/styled$1(TouchableOpacity).withConfig({
1838
- displayName: "Message__CloseContainer",
1839
- componentId: "kitt-universal__sc-c6400e-1"
1840
- })(["margin-left:", "px;padding:", "px;"], function (_ref7) {
1841
- var theme = _ref7.theme;
1842
- return theme.kitt.spacing * 4;
1843
- }, function (_ref8) {
1844
- var theme = _ref8.theme;
1845
- return theme.kitt.spacing;
1846
- });
1847
- var IconContainer = /*#__PURE__*/styled$1(View).withConfig({
1848
- displayName: "Message__IconContainer",
1849
- componentId: "kitt-universal__sc-c6400e-2"
1850
- })(["margin-right:", "px;"], function (_ref9) {
1851
- var theme = _ref9.theme;
1852
- return theme.kitt.spacing * 4;
1853
- });
1854
- var Content = /*#__PURE__*/styled$1(Text$1).withConfig({
1855
- displayName: "Message__Content",
1856
- componentId: "kitt-universal__sc-c6400e-3"
1857
- })(["text-align:", ";flex:1;"], function (_ref10) {
1858
- var centeredText = _ref10.centeredText;
1859
- return centeredText ? 'center' : 'left';
1860
- });
1851
+ switch (type) {
1852
+ case 'warning':
1853
+ return /*#__PURE__*/jsx(AlertCircleIcon, {
1854
+ color: color
1855
+ });
1856
+
1857
+ case 'success':
1858
+ return /*#__PURE__*/jsx(CheckIcon, {
1859
+ color: color
1860
+ });
1861
+
1862
+ case 'danger':
1863
+ return /*#__PURE__*/jsx(AlertTriangleIcon, {
1864
+ color: color
1865
+ });
1866
+
1867
+ default:
1868
+ return /*#__PURE__*/jsx(InfoIcon, {
1869
+ color: color
1870
+ });
1871
+ }
1872
+ }
1861
1873
 
1862
1874
  var getColorByType = function (type) {
1863
1875
  switch (type) {
@@ -1872,63 +1884,122 @@ var getColorByType = function (type) {
1872
1884
  return 'black';
1873
1885
  }
1874
1886
  };
1875
-
1876
- function getIconContent(type) {
1877
- switch (type) {
1878
- case 'warning':
1879
- return /*#__PURE__*/jsx(AlertCircleIcon, {});
1880
-
1887
+ var getIconButtonColor = function (messageType) {
1888
+ switch (messageType) {
1881
1889
  case 'success':
1882
- return /*#__PURE__*/jsx(CheckIcon, {});
1883
-
1884
1890
  case 'danger':
1885
- return /*#__PURE__*/jsx(AlertTriangleIcon, {});
1891
+ return 'white';
1886
1892
 
1893
+ case 'warning':
1887
1894
  default:
1888
- return /*#__PURE__*/jsx(InfoIcon, {});
1895
+ return 'black';
1889
1896
  }
1890
- }
1897
+ };
1891
1898
 
1892
- function Message(_ref11) {
1893
- var _ref11$type = _ref11.type,
1894
- type = _ref11$type === void 0 ? 'info' : _ref11$type,
1895
- children = _ref11.children,
1896
- _ref11$noRadius = _ref11.noRadius,
1897
- noRadius = _ref11$noRadius === void 0 ? false : _ref11$noRadius,
1898
- _ref11$centeredText = _ref11.centeredText,
1899
- centeredText = _ref11$centeredText === void 0 ? false : _ref11$centeredText,
1900
- onDismiss = _ref11.onDismiss,
1901
- insets = _ref11.insets;
1899
+ var StyledMessageContainer = /*#__PURE__*/styled$1(View).withConfig({
1900
+ displayName: "BaseMessage__StyledMessageContainer",
1901
+ componentId: "kitt-universal__sc-eepeiz-0"
1902
+ })(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
1903
+ var _$insets$top;
1904
+
1905
+ var $insets = _ref.$insets;
1906
+ return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
1907
+ }, function (_ref2) {
1908
+ var theme = _ref2.theme,
1909
+ $hasNoRadius = _ref2.$hasNoRadius;
1910
+ return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
1911
+ }, function (_ref3) {
1912
+ var theme = _ref3.theme,
1913
+ $type = _ref3.$type;
1914
+ return theme.kitt.feedbackMessage[$type].backgroundColor;
1915
+ });
1916
+ var StyledDismissWrapper = /*#__PURE__*/styled$1(View).withConfig({
1917
+ displayName: "BaseMessage__StyledDismissWrapper",
1918
+ componentId: "kitt-universal__sc-eepeiz-1"
1919
+ })(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
1920
+ var theme = _ref4.theme;
1921
+ var spacing = theme.kitt.spacing;
1922
+ return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
1923
+ });
1924
+ var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
1925
+ displayName: "BaseMessage__StyledIconContainer",
1926
+ componentId: "kitt-universal__sc-eepeiz-2"
1927
+ })(["margin:", ";"], function (_ref5) {
1928
+ var theme = _ref5.theme;
1929
+ var spacing = theme.kitt.spacing;
1930
+ return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
1931
+ });
1932
+ var StyledTextContent = /*#__PURE__*/styled$1(Typography.Text).withConfig({
1933
+ displayName: "BaseMessage__StyledTextContent",
1934
+ componentId: "kitt-universal__sc-eepeiz-3"
1935
+ })(["flex:1;text-align:", ";"], function (_ref6) {
1936
+ var $isCenteredText = _ref6.$isCenteredText;
1937
+ return $isCenteredText ? 'center' : 'left';
1938
+ });
1939
+ var StyledMessageContent = /*#__PURE__*/styled$1(View).withConfig({
1940
+ displayName: "BaseMessage__StyledMessageContent",
1941
+ componentId: "kitt-universal__sc-eepeiz-4"
1942
+ })(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
1943
+ var theme = _ref7.theme;
1944
+ var spacing = theme.kitt.spacing;
1945
+ return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
1946
+ });
1947
+ function BaseMessage(_ref8) {
1948
+ var _ref8$type = _ref8.type,
1949
+ type = _ref8$type === void 0 ? 'info' : _ref8$type,
1950
+ children = _ref8.children,
1951
+ hasNoRadius = _ref8.hasNoRadius,
1952
+ centeredText = _ref8.centeredText,
1953
+ insets = _ref8.insets,
1954
+ onDismiss = _ref8.onDismiss;
1902
1955
  var color = getColorByType(type);
1903
- return /*#__PURE__*/jsxs(Container$1, {
1904
- type: type,
1905
- noRadius: noRadius,
1906
- insets: insets,
1907
- children: [!centeredText ? /*#__PURE__*/jsx(IconContainer, {
1908
- children: /*#__PURE__*/jsx(Icon, {
1909
- size: mainIconSize,
1910
- color: color,
1911
- icon: getIconContent(type)
1912
- })
1913
- }) : null, /*#__PURE__*/jsx(Content, {
1914
- type: type,
1915
- centeredText: centeredText,
1916
- children: /*#__PURE__*/jsx(Typography.Text, {
1917
- base: "body-small",
1956
+ return /*#__PURE__*/jsxs(StyledMessageContainer, {
1957
+ $type: type,
1958
+ $hasNoRadius: hasNoRadius,
1959
+ $insets: insets,
1960
+ children: [/*#__PURE__*/jsxs(StyledMessageContent, {
1961
+ children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
1962
+ children: /*#__PURE__*/jsx(Icon, {
1963
+ color: color,
1964
+ icon: /*#__PURE__*/jsx(IconContent, {
1965
+ type: type,
1966
+ color: color
1967
+ })
1968
+ })
1969
+ }), /*#__PURE__*/jsx(StyledTextContent, {
1970
+ $isCenteredText: centeredText,
1971
+ base: "body",
1918
1972
  color: color,
1919
1973
  children: children
1920
- })
1921
- }), onDismiss ? /*#__PURE__*/jsx(CloseContainer, {
1922
- onPress: onDismiss,
1923
- children: /*#__PURE__*/jsx(Icon, {
1974
+ })]
1975
+ }), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
1976
+ children: /*#__PURE__*/jsx(IconButton, {
1977
+ color: getIconButtonColor(type),
1924
1978
  icon: /*#__PURE__*/jsx(XIcon, {}),
1925
- size: xIconSize,
1926
- color: color
1979
+ onPress: onDismiss
1927
1980
  })
1928
1981
  }) : null]
1929
1982
  });
1930
1983
  }
1931
1984
 
1985
+ function Message(_ref) {
1986
+ var _ref$type = _ref.type,
1987
+ type = _ref$type === void 0 ? 'info' : _ref$type,
1988
+ children = _ref.children,
1989
+ hasNoRadius = _ref.hasNoRadius,
1990
+ centeredText = _ref.centeredText,
1991
+ insets = _ref.insets,
1992
+ onDismiss = _ref.onDismiss;
1993
+ return /*#__PURE__*/jsx(BaseMessage, {
1994
+ insets: insets,
1995
+ hasNoRadius: hasNoRadius,
1996
+ type: type,
1997
+ centeredText: centeredText,
1998
+ onDismiss: onDismiss,
1999
+ children: children
2000
+ });
2001
+ }
2002
+
1932
2003
  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; }
1933
2004
 
1934
2005
  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; }
@@ -2056,12 +2127,12 @@ var ModalView = /*#__PURE__*/styled$1(View).withConfig({
2056
2127
  var ContentView = /*#__PURE__*/styled$1(View).withConfig({
2057
2128
  displayName: "Modal__ContentView",
2058
2129
  componentId: "kitt-universal__sc-1xy2w5u-1"
2059
- })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
2130
+ })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
2060
2131
  var theme = _ref3.theme;
2061
2132
  return theme.kitt.card.borderRadius;
2062
2133
  }, function (_ref4) {
2063
2134
  var theme = _ref4.theme;
2064
- return theme.kitt.palettes.lateOcean.white;
2135
+ return theme.kitt.colors.uiBackgroundLight;
2065
2136
  });
2066
2137
  function Modal(_ref5) {
2067
2138
  var visible = _ref5.visible,
@@ -2096,19 +2167,22 @@ function Notification(_ref) {
2096
2167
  var type = _ref.type,
2097
2168
  children = _ref.children,
2098
2169
  centeredText = _ref.centeredText,
2099
- onDelete = _ref.onDelete;
2170
+ insets = _ref.insets,
2171
+ onDelete = _ref.onDelete,
2172
+ onDismiss = _ref.onDismiss;
2100
2173
 
2101
- var _useSafeAreaInsets = useSafeAreaInsets(),
2102
- top = _useSafeAreaInsets.top;
2174
+ if ((process.env.NODE_ENV !== "production")) {
2175
+ if (onDelete) {
2176
+ throw new Error('onDelete is deprecated us onDismiss instead');
2177
+ }
2178
+ }
2103
2179
 
2104
- return /*#__PURE__*/jsx(Message, {
2105
- noRadius: true,
2180
+ return /*#__PURE__*/jsx(BaseMessage, {
2181
+ hasNoRadius: true,
2106
2182
  type: type,
2107
2183
  centeredText: centeredText,
2108
- insets: {
2109
- top: top
2110
- },
2111
- onDismiss: onDelete,
2184
+ insets: insets,
2185
+ onDismiss: onDismiss,
2112
2186
  children: children
2113
2187
  });
2114
2188
  }
@@ -2139,6 +2213,10 @@ function SkeletonContent(_ref4) {
2139
2213
  });
2140
2214
  }
2141
2215
 
2216
+ var SkeletonContainer = /*#__PURE__*/styled$1(View).withConfig({
2217
+ displayName: "Skeleton__SkeletonContainer",
2218
+ componentId: "kitt-universal__sc-1w5cm3i-0"
2219
+ })(["overflow:hidden;"]);
2142
2220
  function Skeleton(_ref) {
2143
2221
  var isLoading = _ref.isLoading,
2144
2222
  style = _ref.style;
@@ -2148,7 +2226,7 @@ function Skeleton(_ref) {
2148
2226
  width = _useState2[0],
2149
2227
  setWidth = _useState2[1];
2150
2228
 
2151
- return /*#__PURE__*/jsx(View, {
2229
+ return /*#__PURE__*/jsx(SkeletonContainer, {
2152
2230
  style: style,
2153
2231
  onLayout: function onLayout(_ref2) {
2154
2232
  var nativeEvent = _ref2.nativeEvent;
@@ -2162,8 +2240,8 @@ function Skeleton(_ref) {
2162
2240
  }
2163
2241
  var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
2164
2242
  displayName: "Skeleton__Bar",
2165
- componentId: "kitt-universal__sc-1w5cm3i-0"
2166
- })(["width:100%;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref3) {
2243
+ componentId: "kitt-universal__sc-1w5cm3i-1"
2244
+ })(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
2167
2245
  var theme = _ref3.theme;
2168
2246
  return theme.kitt.spacing * 2;
2169
2247
  }, function (_ref4) {
@@ -2172,8 +2250,8 @@ var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
2172
2250
  });
2173
2251
  var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
2174
2252
  displayName: "Skeleton__Circle",
2175
- componentId: "kitt-universal__sc-1w5cm3i-1"
2176
- })(["width:", "px;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref5) {
2253
+ componentId: "kitt-universal__sc-1w5cm3i-2"
2254
+ })(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
2177
2255
  var theme = _ref5.theme;
2178
2256
  return theme.kitt.spacing * 12;
2179
2257
  }, function (_ref6) {
@@ -2185,8 +2263,8 @@ var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
2185
2263
  });
2186
2264
  var Square = /*#__PURE__*/styled$1(Skeleton).withConfig({
2187
2265
  displayName: "Skeleton__Square",
2188
- componentId: "kitt-universal__sc-1w5cm3i-2"
2189
- })(["width:", "px;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref8) {
2266
+ componentId: "kitt-universal__sc-1w5cm3i-3"
2267
+ })(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
2190
2268
  var theme = _ref8.theme;
2191
2269
  return theme.kitt.spacing * 12;
2192
2270
  }, function (_ref9) {
@@ -2558,7 +2636,7 @@ var StoryGrid = {
2558
2636
  var Container = /*#__PURE__*/styled$1(View).withConfig({
2559
2637
  displayName: "Tag__Container",
2560
2638
  componentId: "kitt-universal__sc-19jmowi-0"
2561
- })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2639
+ })(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
2562
2640
  var theme = _ref.theme,
2563
2641
  type = _ref.type,
2564
2642
  variant = _ref.variant;
@@ -2628,6 +2706,7 @@ var lateOceanColorPalette = {
2628
2706
  warmEmbrace: '#F4D3CE',
2629
2707
  warmEmbraceLight1: '#FFEDE6',
2630
2708
  black1000: '#000000',
2709
+ black800: '#2C293D',
2631
2710
  black555: '#737373',
2632
2711
  black200: '#CCCCCC',
2633
2712
  black100: '#E5E5E5',
@@ -2643,7 +2722,7 @@ var lateOceanColorPalette = {
2643
2722
  moonPurpleLight1: '#EDEBFC'
2644
2723
  };
2645
2724
 
2646
- var colorsLateOceanTheme = {
2725
+ var colors = {
2647
2726
  primary: lateOceanColorPalette.lateOcean,
2648
2727
  primaryLight: lateOceanColorPalette.lateOceanLight1,
2649
2728
  accent: lateOceanColorPalette.warmEmbrace,
@@ -2651,6 +2730,8 @@ var colorsLateOceanTheme = {
2651
2730
  success: lateOceanColorPalette.viride,
2652
2731
  correct: lateOceanColorPalette.viride,
2653
2732
  danger: lateOceanColorPalette.englishVermillon,
2733
+ info: lateOceanColorPalette.aero,
2734
+ warning: lateOceanColorPalette.goldCrayola,
2654
2735
  separator: lateOceanColorPalette.black100,
2655
2736
  hover: lateOceanColorPalette.black100,
2656
2737
  black: lateOceanColorPalette.black1000,
@@ -2666,24 +2747,24 @@ var colorsLateOceanTheme = {
2666
2747
  };
2667
2748
 
2668
2749
  var avatar = {
2669
- borderRadius: '10px',
2750
+ borderRadius: 10,
2670
2751
  "default": {
2671
- backgroundColor: colorsLateOceanTheme.primary
2752
+ backgroundColor: colors.primary
2672
2753
  },
2673
2754
  light: {
2674
2755
  backgroundColor: lateOceanColorPalette.black100
2675
2756
  }
2676
2757
  };
2677
2758
 
2678
- var buttonLateOceanTheme = {
2679
- borderRadius: '30px',
2759
+ var button = {
2760
+ borderRadius: 30,
2680
2761
  borderWidth: {
2681
- disabled: '2px',
2682
- focus: '3px'
2762
+ disabled: 2,
2763
+ focus: 3
2683
2764
  },
2684
- minHeight: '40px',
2685
- minWidth: '40px',
2686
- maxWidth: '335px',
2765
+ minHeight: 40,
2766
+ minWidth: 40,
2767
+ maxWidth: 335,
2687
2768
  scale: {
2688
2769
  base: {
2689
2770
  "default": 1,
@@ -2710,9 +2791,9 @@ var buttonLateOceanTheme = {
2710
2791
  focusBorderColor: 'rgba(0, 0, 0, 0.1)'
2711
2792
  },
2712
2793
  primary: {
2713
- backgroundColor: colorsLateOceanTheme.primary,
2714
- pressedBackgroundColor: colorsLateOceanTheme.primaryLight,
2715
- hoverBackgroundColor: colorsLateOceanTheme.primaryLight,
2794
+ backgroundColor: colors.primary,
2795
+ pressedBackgroundColor: colors.primaryLight,
2796
+ hoverBackgroundColor: colors.primaryLight,
2716
2797
  focusBorderColor: 'rgba(76, 52, 224, 0.2)'
2717
2798
  },
2718
2799
  white: {
@@ -2722,56 +2803,61 @@ var buttonLateOceanTheme = {
2722
2803
  focusBorderColor: 'rgba(255, 255, 255, 0.1)'
2723
2804
  },
2724
2805
  subtle: {
2725
- backgroundColor: colorsLateOceanTheme.transparent,
2726
- pressedBackgroundColor: colorsLateOceanTheme.transparent,
2727
- hoverBackgroundColor: colorsLateOceanTheme.transparent,
2806
+ backgroundColor: colors.transparent,
2807
+ pressedBackgroundColor: colors.transparent,
2808
+ hoverBackgroundColor: colors.transparent,
2728
2809
  focusBorderColor: 'rgba(76, 52, 224, 0.2)',
2729
- color: colorsLateOceanTheme.primary,
2810
+ color: colors.primary,
2730
2811
  hoverColor: 'rgba(76, 52, 224, 0.8)',
2731
2812
  activeColor: 'rgba(76, 52, 224, 0.8)'
2732
2813
  },
2733
2814
  'subtle-dark': {
2734
- backgroundColor: colorsLateOceanTheme.transparent,
2735
- pressedBackgroundColor: colorsLateOceanTheme.transparent,
2736
- hoverBackgroundColor: colorsLateOceanTheme.transparent,
2815
+ backgroundColor: colors.transparent,
2816
+ pressedBackgroundColor: colors.transparent,
2817
+ hoverBackgroundColor: colors.transparent,
2737
2818
  focusBorderColor: 'rgba(0, 0, 0, 0.1)',
2738
- color: colorsLateOceanTheme.black,
2819
+ color: colors.black,
2739
2820
  hoverColor: 'rgba(0, 0, 0, 0.8)',
2740
2821
  activeColor: 'rgba(0, 0, 0, 0.8)'
2741
2822
  },
2742
2823
  disabled: {
2743
- backgroundColor: colorsLateOceanTheme.disabled,
2744
- pressedBackgroundColor: colorsLateOceanTheme.disabled,
2745
- hoverBackgroundColor: colorsLateOceanTheme.disabled,
2824
+ backgroundColor: colors.disabled,
2825
+ pressedBackgroundColor: colors.disabled,
2826
+ hoverBackgroundColor: colors.disabled,
2746
2827
  focusBorderColor: lateOceanColorPalette.black100,
2747
2828
  borderColor: lateOceanColorPalette.black100
2748
2829
  }
2749
2830
  };
2750
2831
 
2751
- var cardLateOceanTheme = {
2752
- borderRadius: '20px',
2753
- borderWidth: '2px',
2754
- padding: '16px',
2832
+ var card = {
2833
+ borderRadius: 20,
2834
+ borderWidth: 2,
2755
2835
  primary: {
2756
- backgroundColor: lateOceanColorPalette.white,
2757
- borderColor: lateOceanColorPalette.lateOcean
2836
+ backgroundColor: colors.uiBackgroundLight,
2837
+ borderColor: colors.primary
2758
2838
  },
2759
2839
  secondary: {
2760
- backgroundColor: lateOceanColorPalette.white,
2761
- borderColor: lateOceanColorPalette.black100
2840
+ backgroundColor: colors.uiBackgroundLight,
2841
+ borderColor: colors.separator
2762
2842
  },
2763
2843
  subtle: {
2764
2844
  backgroundColor: lateOceanColorPalette.black50,
2765
- borderColor: lateOceanColorPalette.black100
2845
+ borderColor: colors.separator
2766
2846
  }
2767
2847
  };
2768
2848
 
2769
- var feedbackMessageLateOceanTheme = {
2770
- backgroundColors: {
2771
- success: lateOceanColorPalette.viride,
2772
- danger: lateOceanColorPalette.englishVermillon,
2773
- warning: lateOceanColorPalette.goldCrayola,
2774
- info: lateOceanColorPalette.aero
2849
+ var feedbackMessage = {
2850
+ danger: {
2851
+ backgroundColor: colors.danger
2852
+ },
2853
+ success: {
2854
+ backgroundColor: colors.success
2855
+ },
2856
+ info: {
2857
+ backgroundColor: colors.info
2858
+ },
2859
+ warning: {
2860
+ backgroundColor: colors.warning
2775
2861
  }
2776
2862
  };
2777
2863
 
@@ -2781,18 +2867,19 @@ var calcLineHeight = function (fontSize, lineHeightMultiplier) {
2781
2867
  var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
2782
2868
  return {
2783
2869
  baseAndSmall: {
2784
- fontSize: "".concat(baseAndSmallFontSize, "px"),
2785
- lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
2870
+ fontSize: baseAndSmallFontSize,
2871
+ lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
2786
2872
  },
2787
2873
  mediumAndWide: {
2788
- fontSize: "".concat(mediumAndWideFontSize, "px"),
2789
- lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
2874
+ fontSize: mediumAndWideFontSize,
2875
+ lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
2790
2876
  }
2791
2877
  };
2792
2878
  };
2793
- var typographyLateOceanTheme = {
2879
+ var typography = {
2794
2880
  colors: {
2795
2881
  black: lateOceanColorPalette.black1000,
2882
+ 'black-anthracite': lateOceanColorPalette.black800,
2796
2883
  'black-light': lateOceanColorPalette.black555,
2797
2884
  white: lateOceanColorPalette.white,
2798
2885
  'white-light': lateOceanColorPalette.white,
@@ -2852,17 +2939,17 @@ var typographyLateOceanTheme = {
2852
2939
 
2853
2940
  var inputStatesStyle = {
2854
2941
  "default": {
2855
- backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
2856
- borderColor: colorsLateOceanTheme.separator,
2942
+ backgroundColor: colors.uiBackgroundLight,
2943
+ borderColor: colors.separator,
2857
2944
  color: 'black'
2858
2945
  },
2859
2946
  pending: {
2860
- backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
2861
- borderColor: colorsLateOceanTheme.separator,
2947
+ backgroundColor: colors.uiBackgroundLight,
2948
+ borderColor: colors.separator,
2862
2949
  color: 'black'
2863
2950
  },
2864
2951
  valid: {
2865
- backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
2952
+ backgroundColor: colors.uiBackgroundLight,
2866
2953
  borderColor: lateOceanColorPalette.black100,
2867
2954
  color: 'black'
2868
2955
  },
@@ -2871,56 +2958,61 @@ var inputStatesStyle = {
2871
2958
  color: 'black'
2872
2959
  },
2873
2960
  focus: {
2874
- borderColor: colorsLateOceanTheme.primary,
2961
+ borderColor: colors.primary,
2875
2962
  color: 'black'
2876
2963
  },
2877
2964
  disabled: {
2878
- backgroundColor: colorsLateOceanTheme.disabled,
2879
- borderColor: colorsLateOceanTheme.separator,
2965
+ backgroundColor: colors.disabled,
2966
+ borderColor: colors.separator,
2880
2967
  color: 'black-light'
2881
2968
  },
2882
2969
  invalid: {
2883
- borderColor: colorsLateOceanTheme.danger,
2970
+ borderColor: colors.separator,
2884
2971
  color: 'black'
2885
2972
  }
2886
2973
  };
2887
2974
  var input = {
2888
2975
  color: {
2889
- selection: colorsLateOceanTheme.primary,
2890
- placeholder: typographyLateOceanTheme.colors['black-light']
2976
+ selection: colors.primary,
2977
+ placeholder: typography.colors['black-light']
2891
2978
  },
2892
- borderWidth: '2px',
2893
- borderRadius: '10px',
2979
+ borderWidth: 2,
2980
+ borderRadius: 10,
2894
2981
  icon: {
2895
2982
  size: 20
2896
2983
  },
2897
2984
  padding: {
2898
- "default": '7px 16px',
2899
- iOSSingleLine: '12px 16px'
2985
+ "default": '5px 16px',
2986
+ iOSSingleLine: '9px 16px'
2987
+ },
2988
+ transition: {
2989
+ property: 'border-color',
2990
+ duration: '200ms',
2991
+ timingFunction: 'ease-in-out'
2900
2992
  },
2901
2993
  states: inputStatesStyle
2902
2994
  };
2903
2995
 
2904
- var inputFieldLateOceanTheme = {
2996
+ var inputField = {
2905
2997
  labelContainerPaddingBottom: 5,
2906
2998
  iconMarginLeft: 6
2907
2999
  };
2908
3000
 
2909
- var radioLateOceanTheme = {
3001
+ var radio = {
2910
3002
  size: 18,
2911
3003
  unchecked: {
2912
- backgroundColor: lateOceanColorPalette.white,
2913
- borderWidth: '2px',
3004
+ backgroundColor: colors.uiBackgroundLight,
3005
+ borderWidth: 2,
2914
3006
  borderColor: lateOceanColorPalette.black200
2915
3007
  },
2916
3008
  checked: {
2917
- backgroundColor: lateOceanColorPalette.lateOcean,
3009
+ backgroundColor: colors.primary,
2918
3010
  innerSize: 5,
2919
- innerBackgroundColor: lateOceanColorPalette.white
3011
+ innerBackgroundColor: colors.uiBackgroundLight
2920
3012
  },
2921
3013
  disabled: {
2922
- backgroundColor: lateOceanColorPalette.black50,
2923
- borderColor: lateOceanColorPalette.black100
3014
+ backgroundColor: colors.disabled,
3015
+ borderColor: colors.separator
2924
3016
  }
2925
3017
  };
2926
3018
 
@@ -2930,12 +3022,12 @@ var textArea = {
2930
3022
 
2931
3023
  var forms = {
2932
3024
  input: input,
2933
- radio: radioLateOceanTheme,
2934
- inputField: inputFieldLateOceanTheme,
3025
+ radio: radio,
3026
+ inputField: inputField,
2935
3027
  textArea: textArea
2936
3028
  };
2937
3029
 
2938
- var fullScreenModalLateOceanTheme = {
3030
+ var fullScreenModal = {
2939
3031
  header: {
2940
3032
  paddingVertical: 12,
2941
3033
  paddingHorizontal: 16,
@@ -2967,77 +3059,77 @@ var iconButton = {
2967
3059
  },
2968
3060
  disabled: {
2969
3061
  scale: 1,
2970
- backgroundColor: buttonLateOceanTheme.disabled.backgroundColor,
2971
- borderColor: buttonLateOceanTheme.disabled.borderColor
3062
+ backgroundColor: button.disabled.backgroundColor,
3063
+ borderColor: button.disabled.borderColor
2972
3064
  },
2973
3065
  "default": {
2974
- pressedBackgroundColor: buttonLateOceanTheme["default"].pressedBackgroundColor
3066
+ pressedBackgroundColor: button["default"].pressedBackgroundColor
2975
3067
  },
2976
3068
  white: {
2977
- pressedBackgroundColor: buttonLateOceanTheme.white.hoverBackgroundColor
3069
+ pressedBackgroundColor: button.white.hoverBackgroundColor
2978
3070
  }
2979
3071
  };
2980
3072
 
2981
- var listItemLateOceanTheme = {
3073
+ var listItem = {
2982
3074
  padding: '12px 16px',
2983
- borderColor: colorsLateOceanTheme.separator,
2984
- borderWidth: '1px',
2985
- innerMargin: '8px'
3075
+ borderColor: colors.separator,
3076
+ borderWidth: 1,
3077
+ innerMargin: 8
2986
3078
  };
2987
3079
 
2988
- var shadowsLateOceanTheme = {
3080
+ var shadows = {
2989
3081
  medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
2990
3082
  };
2991
3083
 
2992
- var skeletonTheme = {
3084
+ var skeleton = {
2993
3085
  backgroundColor: lateOceanColorPalette.black100,
2994
3086
  flareColor: lateOceanColorPalette.black200,
2995
3087
  animationDuration: 1000
2996
3088
  };
2997
3089
 
2998
- var tagLateOceanTheme = {
2999
- borderRadius: '10px',
3090
+ var tag = {
3091
+ borderRadius: 10,
3000
3092
  padding: '2px 12px',
3001
3093
  primary: {
3002
3094
  fill: {
3003
3095
  backgroundColor: lateOceanColorPalette.moonPurpleLight1,
3004
- borderWidth: '0',
3005
- borderColor: lateOceanColorPalette.transparent
3096
+ borderWidth: 0,
3097
+ borderColor: colors.transparent
3006
3098
  },
3007
3099
  outline: {
3008
- backgroundColor: lateOceanColorPalette.transparent,
3009
- borderWidth: '1px',
3010
- borderColor: lateOceanColorPalette.lateOcean
3100
+ backgroundColor: colors.transparent,
3101
+ borderWidth: 1,
3102
+ borderColor: colors.primary
3011
3103
  }
3012
3104
  },
3013
3105
  "default": {
3014
3106
  fill: {
3015
3107
  backgroundColor: lateOceanColorPalette.black50,
3016
- borderWidth: '0',
3017
- borderColor: lateOceanColorPalette.transparent
3108
+ borderWidth: 0,
3109
+ borderColor: colors.transparent
3018
3110
  },
3019
3111
  outline: {
3020
- backgroundColor: lateOceanColorPalette.transparent,
3021
- borderWidth: '1px',
3022
- borderColor: lateOceanColorPalette.black1000
3112
+ backgroundColor: colors.transparent,
3113
+ borderWidth: 1,
3114
+ borderColor: colors.black
3023
3115
  }
3024
3116
  },
3025
3117
  danger: {
3026
3118
  fill: {
3027
3119
  backgroundColor: lateOceanColorPalette.warmEmbrace,
3028
- borderWidth: '0',
3029
- borderColor: lateOceanColorPalette.transparent
3120
+ borderWidth: 0,
3121
+ borderColor: colors.transparent
3030
3122
  },
3031
3123
  outline: {
3032
- backgroundColor: lateOceanColorPalette.transparent,
3033
- borderWidth: '1px',
3034
- borderColor: colorsLateOceanTheme.danger
3124
+ backgroundColor: colors.transparent,
3125
+ borderWidth: 1,
3126
+ borderColor: colors.danger
3035
3127
  }
3036
3128
  }
3037
3129
  };
3038
3130
 
3039
3131
  var tooltip = {
3040
- backgroundColor: colorsLateOceanTheme.black,
3132
+ backgroundColor: colors.black,
3041
3133
  borderRadius: 10,
3042
3134
  opacity: 0.95,
3043
3135
  horizontalPadding: 16,
@@ -3070,23 +3162,23 @@ var breakpoints = {
3070
3162
 
3071
3163
  var theme = {
3072
3164
  spacing: 4,
3073
- colors: colorsLateOceanTheme,
3165
+ colors: colors,
3074
3166
  palettes: {
3075
3167
  lateOcean: lateOceanColorPalette
3076
3168
  },
3077
3169
  avatar: avatar,
3078
- button: buttonLateOceanTheme,
3079
- card: cardLateOceanTheme,
3080
- feedbackMessage: feedbackMessageLateOceanTheme,
3170
+ button: button,
3171
+ card: card,
3172
+ feedbackMessage: feedbackMessage,
3081
3173
  forms: forms,
3082
- typography: typographyLateOceanTheme,
3083
- tag: tagLateOceanTheme,
3084
- shadows: shadowsLateOceanTheme,
3085
- fullScreenModal: fullScreenModalLateOceanTheme,
3174
+ typography: typography,
3175
+ tag: tag,
3176
+ shadows: shadows,
3177
+ fullScreenModal: fullScreenModal,
3086
3178
  iconButton: iconButton,
3087
- listItem: listItemLateOceanTheme,
3179
+ listItem: listItem,
3088
3180
  tooltip: tooltip,
3089
- skeleton: skeletonTheme,
3181
+ skeleton: skeleton,
3090
3182
  breakpoints: breakpoints
3091
3183
  };
3092
3184
 
@@ -3100,25 +3192,6 @@ function TimePicker() {
3100
3192
  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; }
3101
3193
 
3102
3194
  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; }
3103
-
3104
- var Arrow = function (props) {
3105
- return /*#__PURE__*/jsx("svg", _objectSpread$1(_objectSpread$1({}, props), {}, {
3106
- children: /*#__PURE__*/jsx("path", {
3107
- fillRule: "evenodd",
3108
- clipRule: "evenodd",
3109
- 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",
3110
- fill: "currentColor"
3111
- })
3112
- }));
3113
- };
3114
-
3115
- Arrow.defaultProps = {
3116
- width: "36",
3117
- height: "8",
3118
- viewBox: "0 0 36 9",
3119
- fill: "none",
3120
- xmlns: "http://www.w3.org/2000/svg"
3121
- };
3122
3195
  var StyledTooltipView = /*#__PURE__*/styled$1(View).withConfig({
3123
3196
  displayName: "TooltipView__StyledTooltipView",
3124
3197
  componentId: "kitt-universal__sc-156zm6m-0"
@@ -3143,7 +3216,7 @@ var StyledTooltipContent = /*#__PURE__*/styled$1(View).withConfig({
3143
3216
  function ArrowView(props) {
3144
3217
  var theme = /*#__PURE__*/useTheme();
3145
3218
  return /*#__PURE__*/jsx(View, _objectSpread$1(_objectSpread$1({}, props), {}, {
3146
- children: /*#__PURE__*/jsx(Arrow, {
3219
+ children: /*#__PURE__*/jsx(TooltipArrowIcon, {
3147
3220
  color: theme.kitt.tooltip.backgroundColor
3148
3221
  })
3149
3222
  }));
@@ -3335,13 +3408,8 @@ function TypographyEmoji(_ref2) {
3335
3408
  var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
3336
3409
  var typeConfigKey = getTypographyTypeConfigKey(theme);
3337
3410
  var fontSize = typeConfig[typeConfigKey].fontSize;
3338
-
3339
- if ((process.env.NODE_ENV !== "production")) {
3340
- if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
3341
- }
3342
-
3343
3411
  return /*#__PURE__*/jsx(StyledTypographyEmoji, {
3344
- size: parseInt(fontSize.slice(0, -2), 10),
3412
+ size: fontSize,
3345
3413
  emoji: emoji
3346
3414
  });
3347
3415
  }
@@ -3515,10 +3583,8 @@ function MatchWindowSize(_ref) {
3515
3583
 
3516
3584
  var match = useMatchWindowSize(matchWindowSizeOptions);
3517
3585
  if (!match) return null;
3518
- return /*#__PURE__*/jsx(Fragment$1, {
3519
- children: children
3520
- });
3586
+ return children;
3521
3587
  }
3522
3588
 
3523
- export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputIcon, InputPassword, InputPressable, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Skeleton, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
3589
+ export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPressable, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Skeleton, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
3524
3590
  //# sourceMappingURL=index-browser-all.es.web.js.map