@ornikar/kitt-universal 4.2.0 → 4.4.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 (99) hide show
  1. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +1 -1
  2. package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
  3. package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
  4. package/dist/definitions/forms/Checkbox/Checkbox.d.ts +13 -0
  5. package/dist/definitions/forms/Checkbox/Checkbox.d.ts.map +1 -0
  6. package/dist/definitions/forms/InputEmail/InputEmail.d.ts +7 -0
  7. package/dist/definitions/forms/InputEmail/InputEmail.d.ts.map +1 -0
  8. package/dist/definitions/forms/InputPhone/InputPhone.d.ts +7 -0
  9. package/dist/definitions/forms/InputPhone/InputPhone.d.ts.map +1 -0
  10. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  11. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +8 -0
  12. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -0
  13. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +11 -0
  14. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
  15. package/dist/definitions/index.d.ts +6 -0
  16. package/dist/definitions/index.d.ts.map +1 -1
  17. package/dist/definitions/themes/default.d.ts +31 -93
  18. package/dist/definitions/themes/default.d.ts.map +1 -1
  19. package/dist/definitions/themes/late-ocean/{avatarLateOceanTheme.d.ts → avatar.d.ts} +2 -2
  20. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -0
  21. package/dist/definitions/themes/late-ocean/button.d.ts +6 -6
  22. package/dist/definitions/themes/late-ocean/card.d.ts +13 -0
  23. package/dist/definitions/themes/late-ocean/card.d.ts.map +1 -0
  24. package/dist/definitions/themes/late-ocean/checkbox.d.ts +13 -0
  25. package/dist/definitions/themes/late-ocean/checkbox.d.ts.map +1 -0
  26. package/dist/definitions/themes/late-ocean/{colorsLateOceanTheme.d.ts → colors.d.ts} +2 -2
  27. package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -0
  28. package/dist/definitions/themes/late-ocean/{feedbackMessage.d.ts → feedback.d.ts} +1 -1
  29. package/dist/definitions/themes/late-ocean/feedback.d.ts.map +1 -0
  30. package/dist/definitions/themes/late-ocean/forms.d.ts +13 -17
  31. package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
  32. package/dist/definitions/themes/late-ocean/{fullScreenModalLateOceanTheme.d.ts → fullScreenModal.d.ts} +2 -2
  33. package/dist/definitions/themes/late-ocean/fullScreenModal.d.ts.map +1 -0
  34. package/dist/definitions/themes/late-ocean/input.d.ts +9 -4
  35. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  36. package/dist/definitions/themes/late-ocean/inputField.d.ts +5 -0
  37. package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -0
  38. package/dist/definitions/themes/late-ocean/listItem.d.ts +8 -0
  39. package/dist/definitions/themes/late-ocean/listItem.d.ts.map +1 -0
  40. package/dist/definitions/themes/late-ocean/{radioLateOceanTheme.d.ts → radio.d.ts} +6 -5
  41. package/dist/definitions/themes/late-ocean/radio.d.ts.map +1 -0
  42. package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -0
  43. package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -0
  44. package/dist/definitions/themes/late-ocean/{skeletonTheme.d.ts → skeleton.d.ts} +2 -2
  45. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -0
  46. package/dist/definitions/themes/late-ocean/tag.d.ts +18 -0
  47. package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -0
  48. package/dist/definitions/themes/late-ocean/{typographyLateOceanTheme.d.ts → typography.d.ts} +5 -4
  49. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -0
  50. package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +1 -0
  51. package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +1 -1
  52. package/dist/definitions/typography/Typography.d.ts +2 -2
  53. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  54. package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
  55. package/dist/index-browser-all.es.android.js +1127 -1020
  56. package/dist/index-browser-all.es.android.js.map +1 -1
  57. package/dist/index-browser-all.es.ios.js +1127 -1020
  58. package/dist/index-browser-all.es.ios.js.map +1 -1
  59. package/dist/index-browser-all.es.js +1127 -1020
  60. package/dist/index-browser-all.es.js.map +1 -1
  61. package/dist/index-browser-all.es.web.js +1159 -1024
  62. package/dist/index-browser-all.es.web.js.map +1 -1
  63. package/dist/index-node-14.17.cjs.js +983 -876
  64. package/dist/index-node-14.17.cjs.js.map +1 -1
  65. package/dist/index-node-14.17.cjs.web.css +1 -0
  66. package/dist/index-node-14.17.cjs.web.js +1125 -989
  67. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  68. package/dist/linaria-themes-browser-all.es.android.js +120 -100
  69. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  70. package/dist/linaria-themes-browser-all.es.ios.js +120 -100
  71. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  72. package/dist/linaria-themes-browser-all.es.js +120 -100
  73. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  74. package/dist/linaria-themes-browser-all.es.web.js +120 -100
  75. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  76. package/dist/linaria-themes-node-14.17.cjs.js +120 -100
  77. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  78. package/dist/linaria-themes-node-14.17.cjs.web.js +120 -100
  79. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  80. package/dist/styles.css +1 -0
  81. package/dist/tsbuildinfo +1 -1
  82. package/package.json +4 -4
  83. package/dist/definitions/themes/late-ocean/avatarLateOceanTheme.d.ts.map +0 -1
  84. package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts +0 -18
  85. package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts.map +0 -1
  86. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +0 -1
  87. package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts.map +0 -1
  88. package/dist/definitions/themes/late-ocean/fullScreenModalLateOceanTheme.d.ts.map +0 -1
  89. package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts +0 -5
  90. package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts.map +0 -1
  91. package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts +0 -7
  92. package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts.map +0 -1
  93. package/dist/definitions/themes/late-ocean/radioLateOceanTheme.d.ts.map +0 -1
  94. package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts +0 -4
  95. package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts.map +0 -1
  96. package/dist/definitions/themes/late-ocean/skeletonTheme.d.ts.map +0 -1
  97. package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts +0 -41
  98. package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts.map +0 -1
  99. 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 { UserIcon, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
3
+ import { UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
4
4
  export * from '@ornikar/kitt-icons';
5
- import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, Pressable, TextInput, ActivityIndicator, View, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
5
+ import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, TextInput, Pressable, ActivityIndicator, View, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
6
6
  export { useWindowDimensions as useWindowSize } from 'react-native';
7
7
  import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
8
8
  import { useRef, useEffect, cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children } from 'react';
@@ -137,9 +137,9 @@ var KittBreakpointsMax = {
137
137
 
138
138
  var _excluded$e = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
139
139
 
140
- 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; }
140
+ function ownKeys$l(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
141
 
142
- 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; }
142
+ function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
143
143
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
144
144
  var TypographyColorContext = /*#__PURE__*/createContext('black');
145
145
  function useTypographyColor() {
@@ -179,7 +179,7 @@ var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
179
179
  headers = _theme$kitt$typograph.headers,
180
180
  bodies = _theme$kitt$typograph.bodies;
181
181
  var typeConfigKey = getTypographyTypeConfigKey(theme);
182
- 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 ");
182
+ 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 ");
183
183
  }, function (_ref2) {
184
184
  var theme = _ref2.theme,
185
185
  $color = _ref2.$color;
@@ -232,14 +232,14 @@ function Typography(_ref4) {
232
232
  var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
233
233
  var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
234
234
  value: isHeader,
235
- children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
235
+ children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$l({
236
236
  $color: colorOrDefaultToBlack,
237
237
  $isHeader: isHeader,
238
238
  $typeForCurrentWindowSize: typeForCurrentWindowSize,
239
239
  $variant: nonNullableVariant,
240
240
  accessibilityRole: accessibilityRole || undefined
241
241
  }, otherProps))
242
- }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
242
+ }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$l({
243
243
  $color: colorOrDefaultToBlack,
244
244
  $isHeader: isHeader,
245
245
  $variant: nonNullableVariant,
@@ -252,13 +252,13 @@ function Typography(_ref4) {
252
252
  }
253
253
 
254
254
  function TypographyText(props) {
255
- return /*#__PURE__*/jsx(Typography, _objectSpread$j({
255
+ return /*#__PURE__*/jsx(Typography, _objectSpread$l({
256
256
  accessibilityRole: null
257
257
  }, props));
258
258
  }
259
259
 
260
260
  function TypographyParagraph(props) {
261
- return /*#__PURE__*/jsx(Typography, _objectSpread$j({
261
+ return /*#__PURE__*/jsx(Typography, _objectSpread$l({
262
262
  accessibilityRole: "paragraph"
263
263
  }, props));
264
264
  }
@@ -266,7 +266,7 @@ function TypographyParagraph(props) {
266
266
  var createHeading = function (level, defaultBase) {
267
267
  // https://github.com/necolas/react-native-web/issues/401
268
268
  function TypographyHeading(props) {
269
- return /*#__PURE__*/jsx(Typography, _objectSpread$j(_objectSpread$j({
269
+ return /*#__PURE__*/jsx(Typography, _objectSpread$l(_objectSpread$l({
270
270
  accessibilityRole: "header",
271
271
  base: defaultBase
272
272
  }, props), {}, {
@@ -304,9 +304,9 @@ Typography.h5 = createHeading(5, 'header5');
304
304
 
305
305
  var _excluded$d = ["size", "base", "round", "light"];
306
306
 
307
- 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; }
307
+ 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; }
308
308
 
309
- 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; }
309
+ 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; }
310
310
 
311
311
  var getInitials = function (firstname, lastname) {
312
312
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
@@ -319,7 +319,7 @@ var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
319
319
  $isRound = _ref.$isRound,
320
320
  $size = _ref.$size;
321
321
  if ($isRound) return "".concat($size / 2, "px");
322
- return theme.kitt.avatar.borderRadius;
322
+ return "".concat(theme.kitt.avatar.borderRadius, "px");
323
323
  }, function (_ref2) {
324
324
  var theme = _ref2.theme,
325
325
  $isLight = _ref2.$isLight;
@@ -383,7 +383,7 @@ function Avatar(_ref6) {
383
383
  $size: size,
384
384
  $isRound: round,
385
385
  $isLight: light,
386
- children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$i({
386
+ children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$k({
387
387
  size: size,
388
388
  base: base,
389
389
  isLight: light
@@ -400,7 +400,7 @@ var StyledPressable = /*#__PURE__*/styled.Pressable.withConfig({
400
400
  });
401
401
  var StyledAnimatedView = /*#__PURE__*/styled(Animated$1.View).withConfig({
402
402
  displayName: "AnimatedButtonPressable__StyledAnimatedView"
403
- })(["border-radius:", ";"], function (_ref2) {
403
+ })(["border-radius:", "px;"], function (_ref2) {
404
404
  var theme = _ref2.theme;
405
405
  return theme.kitt.button.borderRadius;
406
406
  });
@@ -489,13 +489,13 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref3, ref) {
489
489
 
490
490
  var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
491
491
  displayName: "BaseStyledButtonPressable"
492
- })(["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) {
492
+ })(["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) {
493
493
  var theme = _ref.theme;
494
494
  return theme.kitt.button.minWidth;
495
495
  }, function (_ref2) {
496
496
  var theme = _ref2.theme,
497
497
  $isStretch = _ref2.$isStretch;
498
- return $isStretch ? '100%' : theme.kitt.button.maxWidth;
498
+ return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
499
499
  }, function (_ref3) {
500
500
  var $isStretch = _ref3.$isStretch;
501
501
  return $isStretch ? '100%' : 'auto';
@@ -528,23 +528,23 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
528
528
  var _excluded$c = ["color"],
529
529
  _excluded2$2 = ["color"];
530
530
 
531
- 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; }
531
+ 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; }
532
532
 
533
- 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; }
533
+ 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; }
534
534
 
535
535
  function TypographyIconSpecifiedColor(_ref) {
536
536
  var color = _ref.color,
537
537
  props = _objectWithoutProperties(_ref, _excluded$c);
538
538
 
539
539
  var theme = /*#__PURE__*/useTheme();
540
- return /*#__PURE__*/jsx(Icon, _objectSpread$h(_objectSpread$h({}, props), {}, {
540
+ return /*#__PURE__*/jsx(Icon, _objectSpread$j(_objectSpread$j({}, props), {}, {
541
541
  color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
542
542
  }));
543
543
  }
544
544
 
545
545
  function TypographyIconInheritColor(props) {
546
546
  var color = useTypographyColor();
547
- return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$h({
547
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$j({
548
548
  color: color
549
549
  }, props));
550
550
  }
@@ -554,12 +554,12 @@ function TypographyIcon(_ref2) {
554
554
  props = _objectWithoutProperties(_ref2, _excluded2$2);
555
555
 
556
556
  if (color) {
557
- return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$h({
557
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$j({
558
558
  color: color
559
559
  }, props));
560
560
  }
561
561
 
562
- return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$h({}, props));
562
+ return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$j({}, props));
563
563
  }
564
564
 
565
565
  function isSubtle(type) {
@@ -568,9 +568,9 @@ function isSubtle(type) {
568
568
 
569
569
  var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
570
570
 
571
- 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; }
571
+ 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; }
572
572
 
573
- 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; }
573
+ 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; }
574
574
 
575
575
  var getTextColorByType = function (type) {
576
576
  switch (type) {
@@ -676,7 +676,7 @@ function ButtonContentChildren(_ref4) {
676
676
  color: isWebSubtle ? 'inherit' : color
677
677
  };
678
678
  return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
679
- children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$g(_objectSpread$g({}, buttonIconSharedProps), {}, {
679
+ children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$i(_objectSpread$i({}, buttonIconSharedProps), {}, {
680
680
  testID: "button-left-icon",
681
681
  icon: icon
682
682
  })) : null, /*#__PURE__*/jsx(StyledButtonText, {
@@ -687,7 +687,7 @@ function ButtonContentChildren(_ref4) {
687
687
  ,
688
688
  color: isWebSubtle ? undefined : color,
689
689
  children: children
690
- }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$g(_objectSpread$g({}, buttonIconSharedProps), {}, {
690
+ }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$i(_objectSpread$i({}, buttonIconSharedProps), {}, {
691
691
  icon: icon
692
692
  })) : null]
693
693
  });
@@ -720,7 +720,7 @@ function ButtonContent(_ref7) {
720
720
  $isSubtle: isSubtle(type),
721
721
  $isStretch: $isStretch,
722
722
  $isIconOnly: Boolean(!children && icon),
723
- children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$g(_objectSpread$g({
723
+ children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$i(_objectSpread$i({
724
724
  icon: icon,
725
725
  type: type,
726
726
  isDisabled: isDisabled,
@@ -733,12 +733,12 @@ function ButtonContent(_ref7) {
733
733
 
734
734
  var StyledDisabled = /*#__PURE__*/styled.View.withConfig({
735
735
  displayName: "StyledDisabled"
736
- })(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", ";"], function (_ref) {
736
+ })(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", "px;"], function (_ref) {
737
737
  var theme = _ref.theme;
738
738
  var _theme$kitt$button = theme.kitt.button,
739
739
  borderWidth = _theme$kitt$button.borderWidth,
740
740
  disabled = _theme$kitt$button.disabled;
741
- return "".concat(borderWidth.disabled, " solid ").concat(disabled.borderColor);
741
+ return "".concat(borderWidth.disabled, "px solid ").concat(disabled.borderColor);
742
742
  }, function (_ref2) {
743
743
  var theme = _ref2.theme;
744
744
  return theme.kitt.button.borderRadius;
@@ -791,13 +791,13 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
791
791
 
792
792
  var Container$5 = /*#__PURE__*/styled.View.withConfig({
793
793
  displayName: "Card__Container"
794
- })(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
794
+ })(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
795
795
  var theme = _ref.theme,
796
796
  type = _ref.type;
797
797
  return theme.kitt.card[type].backgroundColor;
798
798
  }, function (_ref2) {
799
799
  var theme = _ref2.theme;
800
- return theme.kitt.card.padding;
800
+ return theme.kitt.spacing * 4;
801
801
  }, function (_ref3) {
802
802
  var theme = _ref3.theme;
803
803
  return theme.kitt.card.borderRadius;
@@ -859,9 +859,9 @@ var defaultOpenLinkBehavior = {
859
859
 
860
860
  var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
861
861
 
862
- 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; }
862
+ 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; }
863
863
 
864
- 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; }
864
+ 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; }
865
865
  function ExternalLink(_ref) {
866
866
  var Component = _ref.as,
867
867
  href = _ref.href,
@@ -870,7 +870,7 @@ function ExternalLink(_ref) {
870
870
  onPress = _ref.onPress,
871
871
  rest = _objectWithoutProperties(_ref, _excluded$a);
872
872
 
873
- return /*#__PURE__*/jsx(Component, _objectSpread$f(_objectSpread$f({}, rest), {}, {
873
+ return /*#__PURE__*/jsx(Component, _objectSpread$h(_objectSpread$h({}, rest), {}, {
874
874
  onPress: function handleOnPress() {
875
875
  if (onPress) onPress();
876
876
  if (!href) return;
@@ -899,134 +899,676 @@ function ExternalLink(_ref) {
899
899
  }));
900
900
  }
901
901
 
902
- var getColorFromState = function (state) {
903
- switch (state) {
904
- case 'invalid':
905
- return 'danger';
902
+ var lateOceanColorPalette = {
903
+ lateOcean: '#4C34E0',
904
+ lateOceanLight1: '#705DE6',
905
+ lateOceanLight2: '#9485EC',
906
+ lateOceanLight3: '#D6BAF9',
907
+ warmEmbrace: '#F4D3CE',
908
+ warmEmbraceLight1: '#FFEDE6',
909
+ black1000: '#000000',
910
+ black800: '#2C293D',
911
+ black555: '#737373',
912
+ black200: '#CCCCCC',
913
+ black100: '#E5E5E5',
914
+ black50: '#F2F2F2',
915
+ black25: '#F9F9F9',
916
+ white: '#FFFFFF',
917
+ viride: '#38836D',
918
+ englishVermillon: '#D44148',
919
+ goldCrayola: '#F8C583',
920
+ aero: '#89BDDD',
921
+ transparent: 'transparent',
922
+ moonPurple: '#DBD6F9',
923
+ moonPurpleLight1: '#EDEBFC'
924
+ };
906
925
 
907
- case 'valid':
908
- default:
909
- return 'black-light';
926
+ var colors = {
927
+ primary: lateOceanColorPalette.lateOcean,
928
+ primaryLight: lateOceanColorPalette.lateOceanLight1,
929
+ accent: lateOceanColorPalette.warmEmbrace,
930
+ accentLight: lateOceanColorPalette.warmEmbraceLight1,
931
+ success: lateOceanColorPalette.viride,
932
+ correct: lateOceanColorPalette.viride,
933
+ danger: lateOceanColorPalette.englishVermillon,
934
+ info: lateOceanColorPalette.aero,
935
+ warning: lateOceanColorPalette.goldCrayola,
936
+ separator: lateOceanColorPalette.black100,
937
+ hover: lateOceanColorPalette.black100,
938
+ black: lateOceanColorPalette.black1000,
939
+ uiBackground: lateOceanColorPalette.black25,
940
+ uiBackgroundLight: lateOceanColorPalette.white,
941
+ transparent: lateOceanColorPalette.transparent,
942
+ disabled: lateOceanColorPalette.black50,
943
+ overlay: {
944
+ dark: 'rgba(41, 48, 51, 0.25)',
945
+ light: 'rgba(255, 255, 255, 0.90)',
946
+ fullscreenLoader: 'rgba(0, 0, 0, 0.25)'
910
947
  }
911
948
  };
912
949
 
913
- function InputFeedback(_ref) {
914
- var state = _ref.state,
915
- testID = _ref.testID,
916
- children = _ref.children;
917
- return /*#__PURE__*/jsx(Typography.Text, {
918
- base: "body-small",
919
- color: getColorFromState(state),
920
- testID: testID,
921
- children: children
922
- });
923
- }
924
-
925
- var FieldContainer = /*#__PURE__*/styled.View.withConfig({
926
- displayName: "InputField__FieldContainer"
927
- })(["padding:5px 0 10px;"]);
928
- var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
929
- displayName: "InputField__FeedbackContainer"
930
- })(["", ";"], function (_ref) {
931
- var theme = _ref.theme;
932
- return theme.responsive.ifWindowSizeMatches({
933
- minWidth: KittBreakpoints.SMALL
934
- }, 'padding-top: 10px', 'padding-top: 5px');
935
- });
936
- var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
937
- displayName: "InputField__FieldLabelContainer"
938
- })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
939
- var theme = _ref2.theme;
940
- return theme.kitt.forms.inputField.labelContainerPaddingBottom;
941
- });
942
- var LabelContainer = /*#__PURE__*/styled.View.withConfig({
943
- displayName: "InputField__LabelContainer"
944
- })(["margin-right:", "px;"], function (_ref3) {
945
- var theme = _ref3.theme;
946
- return theme.kitt.forms.inputField.iconMarginLeft;
947
- });
948
- function InputField(_ref4) {
949
- var label = _ref4.label,
950
- labelFeedback = _ref4.labelFeedback,
951
- input = _ref4.input,
952
- feedback = _ref4.feedback;
953
- return /*#__PURE__*/jsxs(FieldContainer, {
954
- children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
955
- children: [/*#__PURE__*/jsx(LabelContainer, {
956
- children: label
957
- }), labelFeedback]
958
- }) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
959
- children: feedback
960
- }) : null]
961
- });
962
- }
963
-
964
- function getIconColor(state, disabled) {
965
- if (disabled) return 'black-light';
966
-
967
- switch (state) {
968
- case 'invalid':
969
- return 'danger';
970
-
971
- case 'valid':
972
- return 'success';
973
-
974
- default:
975
- return undefined;
950
+ var avatar = {
951
+ borderRadius: 10,
952
+ "default": {
953
+ backgroundColor: colors.primary
954
+ },
955
+ light: {
956
+ backgroundColor: lateOceanColorPalette.black100
976
957
  }
977
- }
978
-
979
- function InputIcon(_ref) {
980
- var icon = _ref.icon,
981
- state = _ref.state,
982
- disabled = _ref.disabled;
983
- var theme = /*#__PURE__*/useTheme();
984
- var color = getIconColor(state, disabled);
985
- return /*#__PURE__*/jsx(TypographyIcon, {
986
- color: color,
987
- icon: icon,
988
- size: theme.kitt.forms.input.icon.size
989
- });
990
- }
958
+ };
991
959
 
992
- 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; }
960
+ var button = {
961
+ borderRadius: 30,
962
+ borderWidth: {
963
+ disabled: 2,
964
+ focus: 3
965
+ },
966
+ minHeight: 40,
967
+ minWidth: 40,
968
+ maxWidth: 335,
969
+ scale: {
970
+ base: {
971
+ "default": 1,
972
+ hover: 0.95,
973
+ active: 0.95
974
+ },
975
+ medium: {
976
+ hover: 1.05
977
+ }
978
+ },
979
+ contentPadding: {
980
+ "default": '8px 16px 7px',
981
+ large: '12px 24px 11px',
982
+ disabled: '6px 14px 5px'
983
+ },
984
+ transition: {
985
+ duration: '200ms',
986
+ timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
987
+ },
988
+ "default": {
989
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
990
+ pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
991
+ hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
992
+ focusBorderColor: 'rgba(0, 0, 0, 0.1)'
993
+ },
994
+ primary: {
995
+ backgroundColor: colors.primary,
996
+ pressedBackgroundColor: colors.primaryLight,
997
+ hoverBackgroundColor: colors.primaryLight,
998
+ focusBorderColor: 'rgba(76, 52, 224, 0.2)'
999
+ },
1000
+ white: {
1001
+ backgroundColor: 'rgba(255, 255, 255, 0.05)',
1002
+ pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
1003
+ hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
1004
+ focusBorderColor: 'rgba(255, 255, 255, 0.1)'
1005
+ },
1006
+ subtle: {
1007
+ backgroundColor: colors.transparent,
1008
+ pressedBackgroundColor: colors.transparent,
1009
+ hoverBackgroundColor: colors.transparent,
1010
+ focusBorderColor: 'rgba(76, 52, 224, 0.2)',
1011
+ color: colors.primary,
1012
+ hoverColor: 'rgba(76, 52, 224, 0.8)',
1013
+ activeColor: 'rgba(76, 52, 224, 0.8)'
1014
+ },
1015
+ 'subtle-dark': {
1016
+ backgroundColor: colors.transparent,
1017
+ pressedBackgroundColor: colors.transparent,
1018
+ hoverBackgroundColor: colors.transparent,
1019
+ focusBorderColor: 'rgba(0, 0, 0, 0.1)',
1020
+ color: colors.black,
1021
+ hoverColor: 'rgba(0, 0, 0, 0.8)',
1022
+ activeColor: 'rgba(0, 0, 0, 0.8)'
1023
+ },
1024
+ disabled: {
1025
+ backgroundColor: colors.disabled,
1026
+ pressedBackgroundColor: colors.disabled,
1027
+ hoverBackgroundColor: colors.disabled,
1028
+ focusBorderColor: lateOceanColorPalette.black100,
1029
+ borderColor: lateOceanColorPalette.black100
1030
+ }
1031
+ };
993
1032
 
994
- 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; }
995
- function InputPressable(_ref) {
996
- var props = _extends({}, _ref);
1033
+ var card = {
1034
+ borderRadius: 20,
1035
+ borderWidth: 2,
1036
+ primary: {
1037
+ backgroundColor: colors.uiBackgroundLight,
1038
+ borderColor: colors.primary
1039
+ },
1040
+ secondary: {
1041
+ backgroundColor: colors.uiBackgroundLight,
1042
+ borderColor: colors.separator
1043
+ },
1044
+ subtle: {
1045
+ backgroundColor: lateOceanColorPalette.black50,
1046
+ borderColor: colors.separator
1047
+ }
1048
+ };
997
1049
 
998
- return /*#__PURE__*/jsx(Pressable, _objectSpread$e({}, props));
999
- }
1050
+ var feedbackMessage = {
1051
+ danger: {
1052
+ backgroundColor: colors.danger
1053
+ },
1054
+ success: {
1055
+ backgroundColor: colors.success
1056
+ },
1057
+ info: {
1058
+ backgroundColor: colors.info
1059
+ },
1060
+ warning: {
1061
+ backgroundColor: colors.warning
1062
+ }
1063
+ };
1000
1064
 
1001
- var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
1002
- var theme = _ref.theme,
1003
- $state = _ref.$state;
1004
- return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
1005
- }, function (_ref2) {
1006
- var theme = _ref2.theme;
1007
- return theme.kitt.forms.input.borderWidth;
1008
- }, function (_ref3) {
1009
- var theme = _ref3.theme;
1010
- return theme.kitt.forms.input.borderRadius;
1011
- }, function (_ref4) {
1012
- var theme = _ref4.theme,
1013
- $state = _ref4.$state;
1014
- return theme.kitt.forms.input.states[$state].borderColor;
1015
- }, function (_ref5) {
1016
- var theme = _ref5.theme;
1017
- var typeConfigKey = getTypographyTypeConfigKey(theme);
1018
- return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
1019
- }, function (_ref6) {
1020
- var theme = _ref6.theme,
1021
- $state = _ref6.$state;
1022
- return theme.kitt.typography.colors[theme.kitt.forms.input.states[$state].color];
1023
- }, function (_ref7) {
1024
- var theme = _ref7.theme;
1025
- return theme.kitt.typography.types.bodies.fontFamily.regular;
1026
- });
1065
+ var checkbox = {
1066
+ borderWidth: 2,
1067
+ borderRadius: 5,
1068
+ height: 20,
1069
+ width: 20,
1070
+ iconSize: 14,
1071
+ borderColor: colors.separator,
1072
+ backgroundColor: colors.uiBackgroundLight,
1073
+ checkedBorderColor: colors.primary,
1074
+ checkedBackgroundColor: colors.primary,
1075
+ markColor: colors.uiBackgroundLight
1076
+ };
1027
1077
 
1028
- function getInputUIState(_ref) {
1029
- var isFocused = _ref.isFocused,
1078
+ var calcLineHeight = function (fontSize, lineHeightMultiplier) {
1079
+ return Math.round(fontSize * lineHeightMultiplier);
1080
+ };
1081
+ var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
1082
+ return {
1083
+ baseAndSmall: {
1084
+ fontSize: baseAndSmallFontSize,
1085
+ lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
1086
+ },
1087
+ mediumAndWide: {
1088
+ fontSize: mediumAndWideFontSize,
1089
+ lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
1090
+ }
1091
+ };
1092
+ };
1093
+ var typography = {
1094
+ colors: {
1095
+ black: lateOceanColorPalette.black1000,
1096
+ 'black-anthracite': lateOceanColorPalette.black800,
1097
+ 'black-light': lateOceanColorPalette.black555,
1098
+ white: lateOceanColorPalette.white,
1099
+ 'white-light': lateOceanColorPalette.white,
1100
+ primary: lateOceanColorPalette.lateOcean,
1101
+ 'primary-light': lateOceanColorPalette.lateOceanLight1,
1102
+ accent: lateOceanColorPalette.warmEmbrace,
1103
+ success: lateOceanColorPalette.viride,
1104
+ danger: lateOceanColorPalette.englishVermillon
1105
+ },
1106
+ types: {
1107
+ headers: {
1108
+ fontFamily: {
1109
+ regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
1110
+ bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
1111
+ },
1112
+ fontWeight: 400,
1113
+ fontStyle: 'normal',
1114
+ configs: {
1115
+ // also known as xxlarge
1116
+ header1: createTypographyTypeConfig(1.3, 38, 62),
1117
+ // also known as xlarge
1118
+ header2: createTypographyTypeConfig(1.3, 32, 48),
1119
+ // also known as medium
1120
+ header3: createTypographyTypeConfig(1.3, 24, 36),
1121
+ // also known as xsmall
1122
+ header4: createTypographyTypeConfig(1.3, 18, 24),
1123
+ // also known as xxsmall
1124
+ header5: createTypographyTypeConfig(1.3, 18, 18)
1125
+ }
1126
+ },
1127
+ bodies: {
1128
+ fontFamily: {
1129
+ regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
1130
+ bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
1131
+ },
1132
+ fontWeight: {
1133
+ regular: 400,
1134
+ bold: 700
1135
+ },
1136
+ fontStyle: {
1137
+ regular: 'normal',
1138
+ bold: 'normal'
1139
+ },
1140
+ configs: {
1141
+ 'body-large': createTypographyTypeConfig(1.6, 18, 24),
1142
+ 'body-medium': createTypographyTypeConfig(1.6, 18, 18),
1143
+ body: createTypographyTypeConfig(1.6, 16, 16),
1144
+ 'body-small': createTypographyTypeConfig(1.6, 14, 14),
1145
+ 'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
1146
+ }
1147
+ }
1148
+ },
1149
+ link: {
1150
+ disabledColor: lateOceanColorPalette.black200
1151
+ }
1152
+ };
1153
+
1154
+ var inputStatesStyle = {
1155
+ "default": {
1156
+ backgroundColor: colors.uiBackgroundLight,
1157
+ borderColor: colors.separator,
1158
+ color: 'black'
1159
+ },
1160
+ pending: {
1161
+ backgroundColor: colors.uiBackgroundLight,
1162
+ borderColor: colors.separator,
1163
+ color: 'black'
1164
+ },
1165
+ valid: {
1166
+ backgroundColor: colors.uiBackgroundLight,
1167
+ borderColor: lateOceanColorPalette.black100,
1168
+ color: 'black'
1169
+ },
1170
+ hover: {
1171
+ borderColor: lateOceanColorPalette.black200,
1172
+ color: 'black'
1173
+ },
1174
+ focus: {
1175
+ borderColor: colors.primary,
1176
+ color: 'black'
1177
+ },
1178
+ disabled: {
1179
+ backgroundColor: colors.disabled,
1180
+ borderColor: colors.separator,
1181
+ color: 'black-light'
1182
+ },
1183
+ invalid: {
1184
+ borderColor: colors.separator,
1185
+ color: 'black'
1186
+ }
1187
+ };
1188
+ var input = {
1189
+ color: {
1190
+ selection: colors.primary,
1191
+ placeholder: typography.colors['black-light']
1192
+ },
1193
+ borderWidth: 2,
1194
+ borderRadius: 10,
1195
+ icon: {
1196
+ size: 20
1197
+ },
1198
+ padding: {
1199
+ "default": '5px 16px',
1200
+ iOSSingleLine: '7px 16px'
1201
+ },
1202
+ transition: {
1203
+ property: 'border-color',
1204
+ duration: '200ms',
1205
+ timingFunction: 'ease-in-out'
1206
+ },
1207
+ states: inputStatesStyle
1208
+ };
1209
+
1210
+ var inputField = {
1211
+ labelContainerPaddingBottom: 5,
1212
+ iconMarginLeft: 6
1213
+ };
1214
+
1215
+ var radio = {
1216
+ size: 18,
1217
+ unchecked: {
1218
+ backgroundColor: colors.uiBackgroundLight,
1219
+ borderWidth: 2,
1220
+ borderColor: lateOceanColorPalette.black200
1221
+ },
1222
+ checked: {
1223
+ backgroundColor: colors.primary,
1224
+ innerSize: 5,
1225
+ innerBackgroundColor: colors.uiBackgroundLight
1226
+ },
1227
+ disabled: {
1228
+ backgroundColor: colors.disabled,
1229
+ borderColor: colors.separator
1230
+ }
1231
+ };
1232
+
1233
+ var textArea = {
1234
+ minHeight: 120
1235
+ };
1236
+
1237
+ var forms = {
1238
+ input: input,
1239
+ radio: radio,
1240
+ inputField: inputField,
1241
+ textArea: textArea,
1242
+ checkbox: checkbox
1243
+ };
1244
+
1245
+ var fullScreenModal = {
1246
+ header: {
1247
+ paddingVertical: 12,
1248
+ paddingHorizontal: 16,
1249
+ borderColor: lateOceanColorPalette.black100
1250
+ }
1251
+ };
1252
+
1253
+ var iconButton = {
1254
+ backgroundColor: 'transparent',
1255
+ width: 40,
1256
+ height: 40,
1257
+ borderRadius: 20,
1258
+ borderWidth: 2,
1259
+ borderColor: 'transparent',
1260
+ transition: {
1261
+ property: 'all',
1262
+ duration: '200ms',
1263
+ timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1);'
1264
+ },
1265
+ scale: {
1266
+ base: {
1267
+ "default": 1,
1268
+ hover: 0.95,
1269
+ active: 0.95
1270
+ },
1271
+ medium: {
1272
+ hover: 1.05
1273
+ }
1274
+ },
1275
+ disabled: {
1276
+ scale: 1,
1277
+ backgroundColor: button.disabled.backgroundColor,
1278
+ borderColor: button.disabled.borderColor
1279
+ },
1280
+ "default": {
1281
+ pressedBackgroundColor: button["default"].pressedBackgroundColor
1282
+ },
1283
+ white: {
1284
+ pressedBackgroundColor: button.white.hoverBackgroundColor
1285
+ }
1286
+ };
1287
+
1288
+ var listItem = {
1289
+ padding: '12px 16px',
1290
+ borderColor: colors.separator,
1291
+ borderWidth: 1,
1292
+ innerMargin: 8
1293
+ };
1294
+
1295
+ var shadows = {
1296
+ medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
1297
+ };
1298
+
1299
+ var skeleton = {
1300
+ backgroundColor: lateOceanColorPalette.black100,
1301
+ flareColor: lateOceanColorPalette.black200,
1302
+ animationDuration: 1000
1303
+ };
1304
+
1305
+ var tag = {
1306
+ borderRadius: 10,
1307
+ padding: '2px 12px',
1308
+ primary: {
1309
+ fill: {
1310
+ backgroundColor: lateOceanColorPalette.moonPurpleLight1,
1311
+ borderWidth: 0,
1312
+ borderColor: colors.transparent
1313
+ },
1314
+ outline: {
1315
+ backgroundColor: colors.transparent,
1316
+ borderWidth: 1,
1317
+ borderColor: colors.primary
1318
+ }
1319
+ },
1320
+ "default": {
1321
+ fill: {
1322
+ backgroundColor: lateOceanColorPalette.black50,
1323
+ borderWidth: 0,
1324
+ borderColor: colors.transparent
1325
+ },
1326
+ outline: {
1327
+ backgroundColor: colors.transparent,
1328
+ borderWidth: 1,
1329
+ borderColor: colors.black
1330
+ }
1331
+ },
1332
+ danger: {
1333
+ fill: {
1334
+ backgroundColor: lateOceanColorPalette.warmEmbrace,
1335
+ borderWidth: 0,
1336
+ borderColor: colors.transparent
1337
+ },
1338
+ outline: {
1339
+ backgroundColor: colors.transparent,
1340
+ borderWidth: 1,
1341
+ borderColor: colors.danger
1342
+ }
1343
+ }
1344
+ };
1345
+
1346
+ var tooltip = {
1347
+ backgroundColor: colors.black,
1348
+ borderRadius: 10,
1349
+ opacity: 0.95,
1350
+ horizontalPadding: 16,
1351
+ verticalPadding: 4,
1352
+ floatingPadding: 8
1353
+ };
1354
+
1355
+ var breakpoints = {
1356
+ values: {
1357
+ base: 0,
1358
+ small: 480,
1359
+ medium: 768,
1360
+ large: 1024,
1361
+ wide: 1280
1362
+ },
1363
+ min: {
1364
+ smallBreakpoint: 'min-width: 480px',
1365
+ mediumBreakpoint: 'min-width: 768px',
1366
+ largeBreakpoint: 'min-width: 1024px',
1367
+ wideBreakpoint: 'min-width: 1280px'
1368
+ },
1369
+ max: {
1370
+ smallBreakpoint: 'max-width: 479px',
1371
+ mediumBreakpoint: 'max-width: 767px',
1372
+ largeBreakpoint: 'max-width: 1023px',
1373
+ wideBreakpoint: 'max-width: 1279px'
1374
+ }
1375
+ }; // eslint-disable-next-line unicorn/expiring-todo-comments
1376
+ // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
1377
+
1378
+ var theme = {
1379
+ spacing: 4,
1380
+ colors: colors,
1381
+ palettes: {
1382
+ lateOcean: lateOceanColorPalette
1383
+ },
1384
+ avatar: avatar,
1385
+ button: button,
1386
+ card: card,
1387
+ feedbackMessage: feedbackMessage,
1388
+ forms: forms,
1389
+ typography: typography,
1390
+ tag: tag,
1391
+ shadows: shadows,
1392
+ fullScreenModal: fullScreenModal,
1393
+ iconButton: iconButton,
1394
+ listItem: listItem,
1395
+ tooltip: tooltip,
1396
+ skeleton: skeleton,
1397
+ breakpoints: breakpoints
1398
+ };
1399
+
1400
+ function matchWindowSize(_ref, _ref2) {
1401
+ var width = _ref.width,
1402
+ height = _ref.height;
1403
+ var minWidth = _ref2.minWidth,
1404
+ maxWidth = _ref2.maxWidth,
1405
+ minHeight = _ref2.minHeight,
1406
+ maxHeight = _ref2.maxHeight;
1407
+ var hasWidthMatched = width ? (!minWidth || width >= minWidth) && (!maxWidth || width <= maxWidth) : true;
1408
+ var hasHeightMatched = height ? (!minHeight || height >= minHeight) && (!maxHeight || height <= maxHeight) : true;
1409
+ return hasWidthMatched && hasHeightMatched;
1410
+ }
1411
+ function useMatchWindowSize(options) {
1412
+ var _useWindowDimensions = useWindowDimensions(),
1413
+ width = _useWindowDimensions.width,
1414
+ height = _useWindowDimensions.height;
1415
+
1416
+ return matchWindowSize({
1417
+ width: width,
1418
+ height: height
1419
+ }, options);
1420
+ }
1421
+
1422
+ function createWindowSizeHelper(dimensions) {
1423
+ return {
1424
+ matchWindowSize: function matchWindowSize$1(options) {
1425
+ return matchWindowSize(dimensions, options);
1426
+ },
1427
+ ifWindowSizeMatches: function ifWindowSizeMatches(options, valueIfTrue, valueIfFalse) {
1428
+ return matchWindowSize(dimensions, options) ? valueIfTrue : valueIfFalse;
1429
+ },
1430
+ mapWindowWidth: function mapWindowWidth() {
1431
+ for (var _len = arguments.length, widthList = new Array(_len), _key = 0; _key < _len; _key++) {
1432
+ widthList[_key] = arguments[_key];
1433
+ }
1434
+
1435
+ if ((process.env.NODE_ENV !== "production")) {
1436
+ widthList.slice(1).forEach(function (_ref, index) {
1437
+ var _ref2 = _slicedToArray(_ref, 1),
1438
+ minWidth = _ref2[0];
1439
+
1440
+ var previousMinWidth = widthList[index][0];
1441
+
1442
+ if (previousMinWidth > minWidth) {
1443
+ throw new Error("mapWindowWidth: sort your values to be mobile first. ".concat(minWidth, " is < ").concat(previousMinWidth, ", so ").concat(minWidth, " should be before ").concat(previousMinWidth, "."));
1444
+ }
1445
+ });
1446
+ }
1447
+
1448
+ var found = widthList.find(function (_ref3) {
1449
+ var _ref4 = _slicedToArray(_ref3, 2),
1450
+ minWidth = _ref4[0];
1451
+ _ref4[1];
1452
+
1453
+ return matchWindowSize(dimensions, {
1454
+ minWidth: Number(minWidth)
1455
+ });
1456
+ });
1457
+ if (!found) return null;
1458
+ return found[1];
1459
+ }
1460
+ };
1461
+ }
1462
+
1463
+ function useKittTheme() {
1464
+ var dimensions = useWindowDimensions();
1465
+ return useMemo(function () {
1466
+ return {
1467
+ kitt: theme,
1468
+ responsive: createWindowSizeHelper(dimensions)
1469
+ };
1470
+ }, [dimensions]);
1471
+ }
1472
+
1473
+ var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled.Pressable.withConfig({
1474
+ displayName: "Checkbox__CheckboxAndLabelPressableWrapper"
1475
+ })(["display:flex;flex-direction:row;align-items:center;"]);
1476
+ var CheckboxContainer = /*#__PURE__*/styled.View.withConfig({
1477
+ displayName: "Checkbox__CheckboxContainer"
1478
+ })(["display:flex;flex-direction:row;align-items:center;justify-content:center;height:", "px;width:", "px;position:relative;border-radius:", "px;", " margin-right:", ";"], function (_ref) {
1479
+ var theme = _ref.theme;
1480
+ return theme.kitt.forms.checkbox.height;
1481
+ }, function (_ref2) {
1482
+ var theme = _ref2.theme;
1483
+ return theme.kitt.forms.checkbox.width;
1484
+ }, function (_ref3) {
1485
+ var theme = _ref3.theme;
1486
+ return theme.kitt.forms.checkbox.borderRadius;
1487
+ }, function (_ref4) {
1488
+ var $isChecked = _ref4.$isChecked,
1489
+ theme = _ref4.theme;
1490
+ var _theme$kitt$forms$che = theme.kitt.forms.checkbox,
1491
+ checkedBackgroundColor = _theme$kitt$forms$che.checkedBackgroundColor,
1492
+ checkedBorderColor = _theme$kitt$forms$che.checkedBorderColor,
1493
+ borderColor = _theme$kitt$forms$che.borderColor,
1494
+ borderWidth = _theme$kitt$forms$che.borderWidth,
1495
+ backgroundColor = _theme$kitt$forms$che.backgroundColor;
1496
+
1497
+ if ($isChecked) {
1498
+ return css(["background-color:", ";border:", ";"], checkedBackgroundColor, "".concat(borderWidth, "px solid ").concat(checkedBorderColor));
1499
+ }
1500
+
1501
+ return css(["background-color:", ";border:", ";"], backgroundColor, "".concat(borderWidth, "px solid ").concat(borderColor));
1502
+ }, function (_ref5) {
1503
+ var theme = _ref5.theme,
1504
+ $hasLabel = _ref5.$hasLabel;
1505
+ if (!$hasLabel) return '0px';
1506
+ return "".concat(theme.kitt.spacing * 2.5, "px;");
1507
+ });
1508
+ function Checkbox(_ref6) {
1509
+ var onChange = _ref6.onChange,
1510
+ onBlur = _ref6.onBlur,
1511
+ onFocus = _ref6.onFocus,
1512
+ value = _ref6.value,
1513
+ _ref6$hitSlop = _ref6.hitSlop,
1514
+ hitSlop = _ref6$hitSlop === void 0 ? 40 : _ref6$hitSlop,
1515
+ id = _ref6.id,
1516
+ children = _ref6.children;
1517
+ var theme = useKittTheme();
1518
+ return /*#__PURE__*/jsxs(CheckboxAndLabelPressableWrapper, {
1519
+ accessibilityRole: "checkbox",
1520
+ accessibilityState: {
1521
+ checked: value
1522
+ },
1523
+ hitSlop: hitSlop,
1524
+ onPress: function handlePress(e) {
1525
+ if (onFocus) onFocus(e);
1526
+ if (onChange) onChange(e);
1527
+ if (onBlur) onBlur(e);
1528
+ },
1529
+ children: [/*#__PURE__*/jsx(CheckboxContainer, {
1530
+ $isChecked: value,
1531
+ $hasLabel: !!children,
1532
+ testID: id,
1533
+ children: value ? /*#__PURE__*/jsx(Icon, {
1534
+ align: "center",
1535
+ color: theme.kitt.forms.checkbox.markColor,
1536
+ size: theme.kitt.forms.checkbox.iconSize,
1537
+ icon: /*#__PURE__*/jsx(CheckboxMark, {})
1538
+ }) : null
1539
+ }), children]
1540
+ });
1541
+ }
1542
+
1543
+ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
1544
+ var theme = _ref.theme,
1545
+ $state = _ref.$state;
1546
+ return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
1547
+ }, function (_ref2) {
1548
+ var theme = _ref2.theme;
1549
+ return theme.kitt.forms.input.borderWidth;
1550
+ }, function (_ref3) {
1551
+ var theme = _ref3.theme;
1552
+ return theme.kitt.forms.input.borderRadius;
1553
+ }, function (_ref4) {
1554
+ var theme = _ref4.theme,
1555
+ $state = _ref4.$state;
1556
+ return theme.kitt.forms.input.states[$state].borderColor;
1557
+ }, function (_ref5) {
1558
+ var theme = _ref5.theme;
1559
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
1560
+ return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
1561
+ }, function (_ref6) {
1562
+ var theme = _ref6.theme,
1563
+ $state = _ref6.$state;
1564
+ return theme.kitt.typography.colors[theme.kitt.forms.input.states[$state].color];
1565
+ }, function (_ref7) {
1566
+ var theme = _ref7.theme;
1567
+ return theme.kitt.typography.types.bodies.fontFamily.regular;
1568
+ });
1569
+
1570
+ function getInputUIState(_ref) {
1571
+ var isFocused = _ref.isFocused,
1030
1572
  isDisabled = _ref.isDisabled,
1031
1573
  formState = _ref.formState;
1032
1574
  if (isDisabled) return 'disabled';
@@ -1035,14 +1577,18 @@ function getInputUIState(_ref) {
1035
1577
  return 'default';
1036
1578
  }
1037
1579
 
1580
+ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
1581
+ displayName: "InputTextContainer"
1582
+ })(["position:relative;"]);
1583
+
1038
1584
  var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
1039
1585
 
1040
- 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; }
1586
+ 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; }
1041
1587
 
1042
- 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; }
1588
+ 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; }
1043
1589
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
1044
1590
  displayName: "InputText__StyledTextInput"
1045
- })(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
1591
+ })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
1046
1592
  var theme = _ref.theme,
1047
1593
  multiline = _ref.multiline;
1048
1594
 
@@ -1056,14 +1602,11 @@ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
1056
1602
  multiline = _ref2.multiline;
1057
1603
  if (!multiline && Platform.OS === 'ios') return 0;
1058
1604
  var typeConfigKey = getTypographyTypeConfigKey(theme);
1059
- return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
1605
+ return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
1060
1606
  }, function (_ref3) {
1061
1607
  var $minHeight = _ref3.$minHeight;
1062
1608
  return $minHeight;
1063
1609
  });
1064
- var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
1065
- displayName: "InputText__InputTextContainer"
1066
- })(["position:relative;"]);
1067
1610
  var RightInputContainer = /*#__PURE__*/styled.View.withConfig({
1068
1611
  displayName: "InputText__RightInputContainer"
1069
1612
  })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
@@ -1090,49 +1633,160 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1090
1633
 
1091
1634
  var theme = /*#__PURE__*/useTheme();
1092
1635
 
1093
- var _useState = useState(false),
1094
- _useState2 = _slicedToArray(_useState, 2),
1095
- isFocused = _useState2[0],
1096
- setIsFocused = _useState2[1];
1636
+ var _useState = useState(false),
1637
+ _useState2 = _slicedToArray(_useState, 2),
1638
+ isFocused = _useState2[0],
1639
+ setIsFocused = _useState2[1];
1640
+
1641
+ var state = internalForceState || getInputUIState({
1642
+ isFocused: isFocused,
1643
+ isDisabled: disabled,
1644
+ formState: formState
1645
+ });
1646
+ return /*#__PURE__*/jsxs(InputTextContainer, {
1647
+ $isDisabled: disabled,
1648
+ children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$g(_objectSpread$g({
1649
+ ref: ref,
1650
+ nativeID: id,
1651
+ editable: !disabled,
1652
+ keyboardType: keyboardType,
1653
+ autoCompleteType: autoCompleteType,
1654
+ autoCorrect: autoCorrect,
1655
+ $minHeight: minHeight,
1656
+ textContentType: textContentType,
1657
+ placeholderTextColor: theme.kitt.forms.input.color.placeholder,
1658
+ selectionColor: theme.kitt.forms.input.color.selection
1659
+ }, props), {}, {
1660
+ $state: state,
1661
+ onFocus: function onFocus(e) {
1662
+ setIsFocused(true);
1663
+ if (_onFocus) _onFocus(e);
1664
+ },
1665
+ onBlur: function onBlur(e) {
1666
+ setIsFocused(false);
1667
+ if (_onBlur) _onBlur(e);
1668
+ }
1669
+ })), right ? /*#__PURE__*/jsx(RightInputContainer, {
1670
+ children: right
1671
+ }) : null]
1672
+ });
1673
+ });
1674
+
1675
+ 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; }
1676
+
1677
+ 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; }
1678
+ function InputEmail(props) {
1679
+ return /*#__PURE__*/jsx(InputText, _objectSpread$f({
1680
+ autoCompleteType: "email",
1681
+ keyboardType: "email-address",
1682
+ textContentType: "emailAddress"
1683
+ }, props));
1684
+ }
1685
+
1686
+ var getColorFromState = function (state) {
1687
+ switch (state) {
1688
+ case 'invalid':
1689
+ return 'danger';
1690
+
1691
+ case 'valid':
1692
+ default:
1693
+ return 'black-light';
1694
+ }
1695
+ };
1696
+
1697
+ function InputFeedback(_ref) {
1698
+ var state = _ref.state,
1699
+ testID = _ref.testID,
1700
+ children = _ref.children;
1701
+ return /*#__PURE__*/jsx(Typography.Text, {
1702
+ base: "body-small",
1703
+ color: getColorFromState(state),
1704
+ testID: testID,
1705
+ children: children
1706
+ });
1707
+ }
1708
+
1709
+ var FieldContainer = /*#__PURE__*/styled.View.withConfig({
1710
+ displayName: "InputField__FieldContainer"
1711
+ })(["padding:5px 0 10px;"]);
1712
+ var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
1713
+ displayName: "InputField__FeedbackContainer"
1714
+ })(["", ";"], function (_ref) {
1715
+ var theme = _ref.theme;
1716
+ return theme.responsive.ifWindowSizeMatches({
1717
+ minWidth: KittBreakpoints.SMALL
1718
+ }, 'padding-top: 10px', 'padding-top: 5px');
1719
+ });
1720
+ var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
1721
+ displayName: "InputField__FieldLabelContainer"
1722
+ })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
1723
+ var theme = _ref2.theme;
1724
+ return theme.kitt.forms.inputField.labelContainerPaddingBottom;
1725
+ });
1726
+ var LabelContainer = /*#__PURE__*/styled.View.withConfig({
1727
+ displayName: "InputField__LabelContainer"
1728
+ })(["margin-right:", "px;"], function (_ref3) {
1729
+ var theme = _ref3.theme;
1730
+ return theme.kitt.forms.inputField.iconMarginLeft;
1731
+ });
1732
+ function InputField(_ref4) {
1733
+ var label = _ref4.label,
1734
+ labelFeedback = _ref4.labelFeedback,
1735
+ input = _ref4.input,
1736
+ feedback = _ref4.feedback;
1737
+ return /*#__PURE__*/jsxs(FieldContainer, {
1738
+ children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
1739
+ children: [/*#__PURE__*/jsx(LabelContainer, {
1740
+ children: label
1741
+ }), labelFeedback]
1742
+ }) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
1743
+ children: feedback
1744
+ }) : null]
1745
+ });
1746
+ }
1747
+
1748
+ function getIconColor(state, disabled) {
1749
+ if (disabled) return 'black-light';
1750
+
1751
+ switch (state) {
1752
+ case 'invalid':
1753
+ return 'danger';
1754
+
1755
+ case 'valid':
1756
+ return 'success';
1757
+
1758
+ default:
1759
+ return undefined;
1760
+ }
1761
+ }
1762
+
1763
+ function InputIcon(_ref) {
1764
+ var icon = _ref.icon,
1765
+ state = _ref.state,
1766
+ disabled = _ref.disabled;
1767
+ var theme = /*#__PURE__*/useTheme();
1768
+ var color = getIconColor(state, disabled);
1769
+ return /*#__PURE__*/jsx(TypographyIcon, {
1770
+ color: color,
1771
+ icon: icon,
1772
+ size: theme.kitt.forms.input.icon.size
1773
+ });
1774
+ }
1775
+
1776
+ 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; }
1097
1777
 
1098
- var state = internalForceState || getInputUIState({
1099
- isFocused: isFocused,
1100
- isDisabled: disabled,
1101
- formState: formState
1102
- });
1103
- return /*#__PURE__*/jsxs(InputTextContainer, {
1104
- children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$d(_objectSpread$d({
1105
- ref: ref,
1106
- nativeID: id,
1107
- editable: !disabled,
1108
- keyboardType: keyboardType,
1109
- autoCompleteType: autoCompleteType,
1110
- autoCorrect: autoCorrect,
1111
- $minHeight: minHeight,
1112
- textContentType: textContentType,
1113
- placeholderTextColor: theme.kitt.forms.input.color.placeholder,
1114
- selectionColor: theme.kitt.forms.input.color.selection
1115
- }, props), {}, {
1116
- $state: state,
1117
- onFocus: function onFocus(e) {
1118
- setIsFocused(true);
1119
- if (_onFocus) _onFocus(e);
1120
- },
1121
- onBlur: function onBlur(e) {
1122
- setIsFocused(false);
1123
- if (_onBlur) _onBlur(e);
1124
- }
1125
- })), right ? /*#__PURE__*/jsx(RightInputContainer, {
1126
- children: right
1127
- }) : null]
1128
- });
1129
- });
1778
+ 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; }
1779
+ function InputPressable(_ref) {
1780
+ var props = _extends({}, _ref);
1781
+
1782
+ return /*#__PURE__*/jsx(Pressable, _objectSpread$e({}, props));
1783
+ }
1130
1784
 
1131
1785
  var _excluded$8 = ["isPasswordDefaultVisible", "right"];
1132
1786
 
1133
- 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; }
1787
+ 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; }
1134
1788
 
1135
- 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; }
1789
+ 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; }
1136
1790
  function InputPassword(_ref) {
1137
1791
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
1138
1792
  right = _ref.right,
@@ -1143,7 +1797,7 @@ function InputPassword(_ref) {
1143
1797
  isVisible = _useState2[0],
1144
1798
  setIsVisible = _useState2[1];
1145
1799
 
1146
- return /*#__PURE__*/jsx(InputText, _objectSpread$c(_objectSpread$c({}, props), {}, {
1800
+ return /*#__PURE__*/jsx(InputText, _objectSpread$d(_objectSpread$d({}, props), {}, {
1147
1801
  textContentType: "password",
1148
1802
  autoCompleteType: "password",
1149
1803
  autoCorrect: false,
@@ -1162,6 +1816,17 @@ function InputPassword(_ref) {
1162
1816
  }));
1163
1817
  }
1164
1818
 
1819
+ 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; }
1820
+
1821
+ 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; }
1822
+ function InputPhone(props) {
1823
+ return /*#__PURE__*/jsx(InputText, _objectSpread$c(_objectSpread$c({}, props), {}, {
1824
+ autoCompleteType: "tel",
1825
+ keyboardType: "number-pad",
1826
+ textContentType: "telephoneNumber"
1827
+ }));
1828
+ }
1829
+
1165
1830
  function Label(_ref) {
1166
1831
  var htmlFor = _ref.htmlFor,
1167
1832
  children = _ref.children;
@@ -1176,7 +1841,7 @@ function Label(_ref) {
1176
1841
 
1177
1842
  var OuterRadio = /*#__PURE__*/styled.View.withConfig({
1178
1843
  displayName: "Radio__OuterRadio"
1179
- })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
1844
+ })(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
1180
1845
  var theme = _ref.theme,
1181
1846
  disabled = _ref.disabled;
1182
1847
  return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
@@ -1706,11 +2371,11 @@ var SideContainerView = /*#__PURE__*/styled.View.withConfig({
1706
2371
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
1707
2372
  var theme = _ref.theme,
1708
2373
  side = _ref.side;
1709
- return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
2374
+ return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
1710
2375
  }, function (_ref2) {
1711
2376
  var theme = _ref2.theme,
1712
2377
  side = _ref2.side;
1713
- return side === 'left' ? theme.kitt.listItem.innerMargin : 0;
2378
+ return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
1714
2379
  }); // Handles the vertical alignment of the side elements of the list item
1715
2380
 
1716
2381
  function ListItemSideContainer(_ref3) {
@@ -1761,15 +2426,15 @@ var ContainerView = /*#__PURE__*/styled.View.withConfig({
1761
2426
  var borderWidth = theme.kitt.listItem.borderWidth;
1762
2427
 
1763
2428
  if (borders === 'top') {
1764
- return "border-top-width: ".concat(borderWidth);
2429
+ return "border-top-width: ".concat(borderWidth, "px");
1765
2430
  }
1766
2431
 
1767
2432
  if (borders === 'bottom') {
1768
- return "border-bottom-width: ".concat(borderWidth);
2433
+ return "border-bottom-width: ".concat(borderWidth, "px");
1769
2434
  }
1770
2435
 
1771
2436
  if (borders === 'both') {
1772
- return "border-top-width: ".concat(borderWidth, "; border-bottom-width: ").concat(borderWidth);
2437
+ return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
1773
2438
  }
1774
2439
 
1775
2440
  return 'border: none';
@@ -2113,12 +2778,12 @@ var ModalView = /*#__PURE__*/styled.View.withConfig({
2113
2778
  });
2114
2779
  var ContentView = /*#__PURE__*/styled.View.withConfig({
2115
2780
  displayName: "Modal__ContentView"
2116
- })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
2781
+ })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
2117
2782
  var theme = _ref3.theme;
2118
2783
  return theme.kitt.card.borderRadius;
2119
2784
  }, function (_ref4) {
2120
2785
  var theme = _ref4.theme;
2121
- return theme.kitt.palettes.lateOcean.white;
2786
+ return theme.kitt.colors.uiBackgroundLight;
2122
2787
  });
2123
2788
  function Modal(_ref5) {
2124
2789
  var visible = _ref5.visible,
@@ -2416,774 +3081,296 @@ StoryTitleLevel2.displayName = 'StoryTitle.Level2';
2416
3081
  function StoryTitleLevel3(_ref3) {
2417
3082
  var color = _ref3.color,
2418
3083
  children = _ref3.children,
2419
- numberOfLines = _ref3.numberOfLines;
2420
- return /*#__PURE__*/jsx(StorySubTitleContainer, {
2421
- children: /*#__PURE__*/jsx(Typography.Header3, {
2422
- variant: "bold",
2423
- base: "header3",
2424
- medium: "header4",
2425
- color: useStoryBlockColor(color),
2426
- numberOfLines: numberOfLines,
2427
- children: children
2428
- })
2429
- });
2430
- }
2431
-
2432
- StoryTitleLevel3.displayName = 'StoryTitle.Level3';
2433
-
2434
- function StoryTitleLevel4(_ref4) {
2435
- var color = _ref4.color,
2436
- children = _ref4.children,
2437
- numberOfLines = _ref4.numberOfLines;
2438
- return /*#__PURE__*/jsx(StorySubTitleContainer, {
2439
- children: /*#__PURE__*/jsx(Typography.Header4, {
2440
- variant: "bold",
2441
- base: "header4",
2442
- medium: "header5",
2443
- color: useStoryBlockColor(color),
2444
- numberOfLines: numberOfLines,
2445
- children: children
2446
- })
2447
- });
2448
- }
2449
-
2450
- StoryTitleLevel4.displayName = 'StoryTitle.Level3';
2451
- StoryTitle.Level2 = StoryTitleLevel2;
2452
- StoryTitle.Level3 = StoryTitleLevel3;
2453
- StoryTitle.Level4 = StoryTitleLevel4;
2454
-
2455
- var StoryContainer$1 = /*#__PURE__*/styled.ScrollView.withConfig({
2456
- displayName: "Story__StoryContainer"
2457
- })(["padding:", "px;"], storyPadding);
2458
- function Story(_ref) {
2459
- var title = _ref.title,
2460
- contentContainerStyle = _ref.contentContainerStyle,
2461
- children = _ref.children;
2462
- return /*#__PURE__*/jsxs(StoryContainer$1, {
2463
- contentContainerStyle: contentContainerStyle,
2464
- children: [/*#__PURE__*/jsx(StoryTitle, {
2465
- children: title
2466
- }), children]
2467
- });
2468
- }
2469
-
2470
- var _excluded$2 = ["title", "children", "internalIsDemoSection"],
2471
- _excluded2 = ["title", "children"],
2472
- _excluded3 = ["title", "children"];
2473
-
2474
- function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2475
-
2476
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2477
- var StyledSection = /*#__PURE__*/styled.View.withConfig({
2478
- displayName: "StorySection__StyledSection"
2479
- })(["margin-bottom:32px;"]);
2480
- function StorySection(_ref) {
2481
- var title = _ref.title,
2482
- children = _ref.children,
2483
- internalIsDemoSection = _ref.internalIsDemoSection,
2484
- props = _objectWithoutProperties(_ref, _excluded$2);
2485
-
2486
- if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
2487
- return /*#__PURE__*/jsxs(StyledSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
2488
- children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
2489
- children: title
2490
- }), children]
2491
- }));
2492
- }
2493
- var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
2494
- displayName: "StorySection__StyledSubSection"
2495
- })(["margin-bottom:16px;"]);
2496
-
2497
- function SubSection(_ref2) {
2498
- var title = _ref2.title,
2499
- children = _ref2.children,
2500
- props = _objectWithoutProperties(_ref2, _excluded2);
2501
-
2502
- return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
2503
- children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
2504
- children: title
2505
- }), children]
2506
- }));
2507
- }
2508
-
2509
- var StyledBlockSection = /*#__PURE__*/styled.View.withConfig({
2510
- displayName: "StorySection__StyledBlockSection"
2511
- })(["margin-bottom:16px;"]);
2512
-
2513
- function BlockSection(_ref3) {
2514
- var title = _ref3.title,
2515
- children = _ref3.children,
2516
- props = _objectWithoutProperties(_ref3, _excluded3);
2517
-
2518
- return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
2519
- children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
2520
- children: title
2521
- }), children]
2522
- }));
2523
- }
2524
-
2525
- var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
2526
- displayName: "StorySection__StyledDemoSection"
2527
- })(["margin-bottom:64px;"]);
2528
-
2529
- function DemoSection(_ref4) {
2530
- var children = _ref4.children;
2531
- return /*#__PURE__*/jsx(StyledDemoSection, {
2532
- children: /*#__PURE__*/jsx(StorySection, {
2533
- internalIsDemoSection: true,
2534
- title: "Demo",
2535
- children: children
2536
- })
2537
- });
2538
- }
2539
-
2540
- StorySection.SubSection = SubSection;
2541
- StorySection.BlockSection = BlockSection;
2542
- /** @deprecated use StorySection.Demo instead */
2543
-
2544
- StorySection.DemoSection = DemoSection;
2545
- StorySection.Demo = DemoSection;
2546
- /** @deprecated use StorySection instead */
2547
-
2548
- var DeprecatedSection = StorySection;
2549
-
2550
- function StoryContainer(_ref) {
2551
- var children = _ref.children,
2552
- title = _ref.title,
2553
- _ref$state = _ref.state,
2554
- state = _ref$state === void 0 ? 'none' : _ref$state,
2555
- _ref$platform = _ref.platform,
2556
- platform = _ref$platform === void 0 ? 'all' : _ref$platform;
2557
- if (platform === 'web') return null;
2558
- return /*#__PURE__*/jsx(StorySection.BlockSection, {
2559
- testID: state,
2560
- title: title,
2561
- children: children
2562
- });
2563
- }
2564
-
2565
- function StoryDecorator(storyFn, context) {
2566
- return /*#__PURE__*/jsx(Story, {
2567
- title: context.name,
2568
- children: storyFn()
2569
- });
2570
- }
2571
-
2572
- var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
2573
- displayName: "StoryGrid__SmallScreenRow"
2574
- })(["flex-direction:column;margin:0;"]);
2575
- var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
2576
- displayName: "StoryGrid__SmallScreenCol"
2577
- })(["padding:8px 0 16px;"]);
2578
- var FlexRow = /*#__PURE__*/styled.View.withConfig({
2579
- displayName: "StoryGrid__FlexRow"
2580
- })(["flex-direction:row;margin:0 -4px 16px;"]);
2581
- var FlexCol = /*#__PURE__*/styled.View.withConfig({
2582
- displayName: "StoryGrid__FlexCol"
2583
- })(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
2584
-
2585
- function StoryGridRow(_ref) {
2586
- var children = _ref.children,
2587
- _ref$breakpoint = _ref.breakpoint,
2588
- breakpoint = _ref$breakpoint === void 0 ? 'small' : _ref$breakpoint;
2589
-
2590
- // eslint-disable-next-line unicorn/expiring-todo-comments
2591
- // TODO use useBreakpoint instead
2592
- var _useWindowDimensions = useWindowDimensions(),
2593
- width = _useWindowDimensions.width;
2594
-
2595
- var breakpointValue = breakpoint === 'small' ? 480 : 768;
2596
-
2597
- if (width < breakpointValue) {
2598
- return /*#__PURE__*/jsx(SmallScreenRow, {
2599
- children: Children.map(children, function (child) {
2600
- return /*#__PURE__*/jsx(SmallScreenCol, {
2601
- children: child
2602
- });
2603
- })
2604
- });
2605
- }
2606
-
2607
- return /*#__PURE__*/jsx(FlexRow, {
2608
- children: Children.map(children, function (child) {
2609
- return /*#__PURE__*/jsx(FlexCol, {
2610
- children: child
2611
- });
3084
+ numberOfLines = _ref3.numberOfLines;
3085
+ return /*#__PURE__*/jsx(StorySubTitleContainer, {
3086
+ children: /*#__PURE__*/jsx(Typography.Header3, {
3087
+ variant: "bold",
3088
+ base: "header3",
3089
+ medium: "header4",
3090
+ color: useStoryBlockColor(color),
3091
+ numberOfLines: numberOfLines,
3092
+ children: children
2612
3093
  })
2613
3094
  });
2614
3095
  }
2615
3096
 
2616
- function StoryGridCol(_ref2) {
2617
- var title = _ref2.title,
2618
- titleColor = _ref2.titleColor,
2619
- children = _ref2.children,
2620
- _ref2$platform = _ref2.platform,
2621
- platform = _ref2$platform === void 0 ? 'all' : _ref2$platform;
2622
- var isNative = Platform.OS === 'ios' || Platform.OS === 'android';
3097
+ StoryTitleLevel3.displayName = 'StoryTitle.Level3';
2623
3098
 
2624
- if (Platform.OS === 'web' && platform === 'native') {
2625
- return null;
2626
- }
3099
+ function StoryTitleLevel4(_ref4) {
3100
+ var color = _ref4.color,
3101
+ children = _ref4.children,
3102
+ numberOfLines = _ref4.numberOfLines;
3103
+ return /*#__PURE__*/jsx(StorySubTitleContainer, {
3104
+ children: /*#__PURE__*/jsx(Typography.Header4, {
3105
+ variant: "bold",
3106
+ base: "header4",
3107
+ medium: "header5",
3108
+ color: useStoryBlockColor(color),
3109
+ numberOfLines: numberOfLines,
3110
+ children: children
3111
+ })
3112
+ });
3113
+ }
2627
3114
 
2628
- if (isNative && platform === 'web') {
2629
- return null;
2630
- }
3115
+ StoryTitleLevel4.displayName = 'StoryTitle.Level3';
3116
+ StoryTitle.Level2 = StoryTitleLevel2;
3117
+ StoryTitle.Level3 = StoryTitleLevel3;
3118
+ StoryTitle.Level4 = StoryTitleLevel4;
2631
3119
 
2632
- return /*#__PURE__*/jsxs(Fragment$1, {
2633
- children: [title ? /*#__PURE__*/jsx(StoryTitle.Level4, {
2634
- numberOfLines: 1,
2635
- color: titleColor,
3120
+ var StoryContainer$1 = /*#__PURE__*/styled.ScrollView.withConfig({
3121
+ displayName: "Story__StoryContainer"
3122
+ })(["padding:", "px;"], storyPadding);
3123
+ function Story(_ref) {
3124
+ var title = _ref.title,
3125
+ contentContainerStyle = _ref.contentContainerStyle,
3126
+ children = _ref.children;
3127
+ return /*#__PURE__*/jsxs(StoryContainer$1, {
3128
+ contentContainerStyle: contentContainerStyle,
3129
+ children: [/*#__PURE__*/jsx(StoryTitle, {
2636
3130
  children: title
2637
- }) : null, children]
3131
+ }), children]
2638
3132
  });
2639
3133
  }
2640
3134
 
2641
- var StoryGrid = {
2642
- Row: StoryGridRow,
2643
- Col: StoryGridCol
2644
- };
2645
-
2646
- var Container$1 = /*#__PURE__*/styled.View.withConfig({
2647
- displayName: "Tag__Container"
2648
- })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2649
- var theme = _ref.theme,
2650
- type = _ref.type,
2651
- variant = _ref.variant;
2652
- return theme.kitt.tag[type][variant].backgroundColor;
2653
- }, function (_ref2) {
2654
- var theme = _ref2.theme,
2655
- type = _ref2.type,
2656
- variant = _ref2.variant;
2657
- return theme.kitt.tag[type][variant].borderWidth;
2658
- }, function (_ref3) {
2659
- var theme = _ref3.theme,
2660
- type = _ref3.type,
2661
- variant = _ref3.variant;
2662
- return theme.kitt.tag[type][variant].borderColor;
2663
- }, function (_ref4) {
2664
- var theme = _ref4.theme;
2665
- return theme.kitt.tag.padding;
2666
- }, function (_ref5) {
2667
- var theme = _ref5.theme;
2668
- return theme.kitt.tag.borderRadius;
2669
- });
2670
- var getLabelColor = function (type, variant) {
2671
- switch (type) {
2672
- case 'danger':
2673
- {
2674
- return variant === 'outline' ? 'danger' : 'black';
2675
- }
3135
+ var _excluded$2 = ["title", "children", "internalIsDemoSection"],
3136
+ _excluded2 = ["title", "children"],
3137
+ _excluded3 = ["title", "children"];
2676
3138
 
2677
- case 'primary':
2678
- {
2679
- return 'primary';
2680
- }
3139
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2681
3140
 
2682
- case 'default':
2683
- {
2684
- return 'black';
2685
- }
3141
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3142
+ var StyledSection = /*#__PURE__*/styled.View.withConfig({
3143
+ displayName: "StorySection__StyledSection"
3144
+ })(["margin-bottom:32px;"]);
3145
+ function StorySection(_ref) {
3146
+ var title = _ref.title,
3147
+ children = _ref.children,
3148
+ internalIsDemoSection = _ref.internalIsDemoSection,
3149
+ props = _objectWithoutProperties(_ref, _excluded$2);
2686
3150
 
2687
- default:
2688
- {
2689
- return 'black';
2690
- }
2691
- }
2692
- };
2693
- function Tag(_ref6) {
2694
- var label = _ref6.label,
2695
- _ref6$type = _ref6.type,
2696
- type = _ref6$type === void 0 ? 'default' : _ref6$type,
2697
- _ref6$variant = _ref6.variant,
2698
- variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
2699
- return /*#__PURE__*/jsx(Container$1, {
2700
- type: type,
2701
- variant: variant,
2702
- children: /*#__PURE__*/jsx(Typography.Text, {
2703
- base: "body-xsmall",
2704
- color: getLabelColor(type, variant),
2705
- children: label
2706
- })
2707
- });
3151
+ if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
3152
+ return /*#__PURE__*/jsxs(StyledSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
3153
+ children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
3154
+ children: title
3155
+ }), children]
3156
+ }));
2708
3157
  }
3158
+ var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
3159
+ displayName: "StorySection__StyledSubSection"
3160
+ })(["margin-bottom:16px;"]);
2709
3161
 
2710
- var lateOceanColorPalette = {
2711
- lateOcean: '#4C34E0',
2712
- lateOceanLight1: '#705DE6',
2713
- lateOceanLight2: '#9485EC',
2714
- lateOceanLight3: '#D6BAF9',
2715
- warmEmbrace: '#F4D3CE',
2716
- warmEmbraceLight1: '#FFEDE6',
2717
- black1000: '#000000',
2718
- black555: '#737373',
2719
- black200: '#CCCCCC',
2720
- black100: '#E5E5E5',
2721
- black50: '#F2F2F2',
2722
- black25: '#F9F9F9',
2723
- white: '#FFFFFF',
2724
- viride: '#38836D',
2725
- englishVermillon: '#D44148',
2726
- goldCrayola: '#F8C583',
2727
- aero: '#89BDDD',
2728
- transparent: 'transparent',
2729
- moonPurple: '#DBD6F9',
2730
- moonPurpleLight1: '#EDEBFC'
2731
- };
2732
-
2733
- var colorsLateOceanTheme = {
2734
- primary: lateOceanColorPalette.lateOcean,
2735
- primaryLight: lateOceanColorPalette.lateOceanLight1,
2736
- accent: lateOceanColorPalette.warmEmbrace,
2737
- accentLight: lateOceanColorPalette.warmEmbraceLight1,
2738
- success: lateOceanColorPalette.viride,
2739
- correct: lateOceanColorPalette.viride,
2740
- danger: lateOceanColorPalette.englishVermillon,
2741
- info: lateOceanColorPalette.aero,
2742
- warning: lateOceanColorPalette.goldCrayola,
2743
- separator: lateOceanColorPalette.black100,
2744
- hover: lateOceanColorPalette.black100,
2745
- black: lateOceanColorPalette.black1000,
2746
- uiBackground: lateOceanColorPalette.black25,
2747
- uiBackgroundLight: lateOceanColorPalette.white,
2748
- transparent: lateOceanColorPalette.transparent,
2749
- disabled: lateOceanColorPalette.black50,
2750
- overlay: {
2751
- dark: 'rgba(41, 48, 51, 0.25)',
2752
- light: 'rgba(255, 255, 255, 0.90)',
2753
- fullscreenLoader: 'rgba(0, 0, 0, 0.25)'
2754
- }
2755
- };
2756
-
2757
- var avatar = {
2758
- borderRadius: '10px',
2759
- "default": {
2760
- backgroundColor: colorsLateOceanTheme.primary
2761
- },
2762
- light: {
2763
- backgroundColor: lateOceanColorPalette.black100
2764
- }
2765
- };
3162
+ function SubSection(_ref2) {
3163
+ var title = _ref2.title,
3164
+ children = _ref2.children,
3165
+ props = _objectWithoutProperties(_ref2, _excluded2);
2766
3166
 
2767
- var button = {
2768
- borderRadius: '30px',
2769
- borderWidth: {
2770
- disabled: '2px',
2771
- focus: '3px'
2772
- },
2773
- minHeight: '40px',
2774
- minWidth: '40px',
2775
- maxWidth: '335px',
2776
- scale: {
2777
- base: {
2778
- "default": 1,
2779
- hover: 0.95,
2780
- active: 0.95
2781
- },
2782
- medium: {
2783
- hover: 1.05
2784
- }
2785
- },
2786
- contentPadding: {
2787
- "default": '8px 16px 7px',
2788
- large: '12px 24px 11px',
2789
- disabled: '6px 14px 5px'
2790
- },
2791
- transition: {
2792
- duration: '200ms',
2793
- timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
2794
- },
2795
- "default": {
2796
- backgroundColor: 'rgba(0, 0, 0, 0.05)',
2797
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
2798
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
2799
- focusBorderColor: 'rgba(0, 0, 0, 0.1)'
2800
- },
2801
- primary: {
2802
- backgroundColor: colorsLateOceanTheme.primary,
2803
- pressedBackgroundColor: colorsLateOceanTheme.primaryLight,
2804
- hoverBackgroundColor: colorsLateOceanTheme.primaryLight,
2805
- focusBorderColor: 'rgba(76, 52, 224, 0.2)'
2806
- },
2807
- white: {
2808
- backgroundColor: 'rgba(255, 255, 255, 0.05)',
2809
- pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
2810
- hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
2811
- focusBorderColor: 'rgba(255, 255, 255, 0.1)'
2812
- },
2813
- subtle: {
2814
- backgroundColor: colorsLateOceanTheme.transparent,
2815
- pressedBackgroundColor: colorsLateOceanTheme.transparent,
2816
- hoverBackgroundColor: colorsLateOceanTheme.transparent,
2817
- focusBorderColor: 'rgba(76, 52, 224, 0.2)',
2818
- color: colorsLateOceanTheme.primary,
2819
- hoverColor: 'rgba(76, 52, 224, 0.8)',
2820
- activeColor: 'rgba(76, 52, 224, 0.8)'
2821
- },
2822
- 'subtle-dark': {
2823
- backgroundColor: colorsLateOceanTheme.transparent,
2824
- pressedBackgroundColor: colorsLateOceanTheme.transparent,
2825
- hoverBackgroundColor: colorsLateOceanTheme.transparent,
2826
- focusBorderColor: 'rgba(0, 0, 0, 0.1)',
2827
- color: colorsLateOceanTheme.black,
2828
- hoverColor: 'rgba(0, 0, 0, 0.8)',
2829
- activeColor: 'rgba(0, 0, 0, 0.8)'
2830
- },
2831
- disabled: {
2832
- backgroundColor: colorsLateOceanTheme.disabled,
2833
- pressedBackgroundColor: colorsLateOceanTheme.disabled,
2834
- hoverBackgroundColor: colorsLateOceanTheme.disabled,
2835
- focusBorderColor: lateOceanColorPalette.black100,
2836
- borderColor: lateOceanColorPalette.black100
2837
- }
2838
- };
3167
+ return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
3168
+ children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
3169
+ children: title
3170
+ }), children]
3171
+ }));
3172
+ }
2839
3173
 
2840
- var cardLateOceanTheme = {
2841
- borderRadius: '20px',
2842
- borderWidth: '2px',
2843
- padding: '16px',
2844
- primary: {
2845
- backgroundColor: lateOceanColorPalette.white,
2846
- borderColor: lateOceanColorPalette.lateOcean
2847
- },
2848
- secondary: {
2849
- backgroundColor: lateOceanColorPalette.white,
2850
- borderColor: lateOceanColorPalette.black100
2851
- },
2852
- subtle: {
2853
- backgroundColor: lateOceanColorPalette.black50,
2854
- borderColor: lateOceanColorPalette.black100
2855
- }
2856
- };
3174
+ var StyledBlockSection = /*#__PURE__*/styled.View.withConfig({
3175
+ displayName: "StorySection__StyledBlockSection"
3176
+ })(["margin-bottom:16px;"]);
2857
3177
 
2858
- var feedbackMessage = {
2859
- danger: {
2860
- backgroundColor: colorsLateOceanTheme.danger
2861
- },
2862
- success: {
2863
- backgroundColor: colorsLateOceanTheme.success
2864
- },
2865
- info: {
2866
- backgroundColor: colorsLateOceanTheme.info
2867
- },
2868
- warning: {
2869
- backgroundColor: colorsLateOceanTheme.warning
2870
- }
2871
- };
3178
+ function BlockSection(_ref3) {
3179
+ var title = _ref3.title,
3180
+ children = _ref3.children,
3181
+ props = _objectWithoutProperties(_ref3, _excluded3);
2872
3182
 
2873
- var calcLineHeight = function (fontSize, lineHeightMultiplier) {
2874
- return Math.round(fontSize * lineHeightMultiplier);
2875
- };
2876
- var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
2877
- return {
2878
- baseAndSmall: {
2879
- fontSize: "".concat(baseAndSmallFontSize, "px"),
2880
- lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
2881
- },
2882
- mediumAndWide: {
2883
- fontSize: "".concat(mediumAndWideFontSize, "px"),
2884
- lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
2885
- }
2886
- };
2887
- };
2888
- var typographyLateOceanTheme = {
2889
- colors: {
2890
- black: lateOceanColorPalette.black1000,
2891
- 'black-light': lateOceanColorPalette.black555,
2892
- white: lateOceanColorPalette.white,
2893
- 'white-light': lateOceanColorPalette.white,
2894
- primary: lateOceanColorPalette.lateOcean,
2895
- 'primary-light': lateOceanColorPalette.lateOceanLight1,
2896
- accent: lateOceanColorPalette.warmEmbrace,
2897
- success: lateOceanColorPalette.viride,
2898
- danger: lateOceanColorPalette.englishVermillon
2899
- },
2900
- types: {
2901
- headers: {
2902
- fontFamily: {
2903
- regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
2904
- bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
2905
- },
2906
- fontWeight: 400,
2907
- fontStyle: 'normal',
2908
- configs: {
2909
- // also known as xxlarge
2910
- header1: createTypographyTypeConfig(1.3, 38, 62),
2911
- // also known as xlarge
2912
- header2: createTypographyTypeConfig(1.3, 32, 48),
2913
- // also known as medium
2914
- header3: createTypographyTypeConfig(1.3, 24, 36),
2915
- // also known as xsmall
2916
- header4: createTypographyTypeConfig(1.3, 18, 24),
2917
- // also known as xxsmall
2918
- header5: createTypographyTypeConfig(1.3, 18, 18)
2919
- }
2920
- },
2921
- bodies: {
2922
- fontFamily: {
2923
- regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
2924
- bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
2925
- },
2926
- fontWeight: {
2927
- regular: 400,
2928
- bold: 700
2929
- },
2930
- fontStyle: {
2931
- regular: 'normal',
2932
- bold: 'normal'
2933
- },
2934
- configs: {
2935
- 'body-large': createTypographyTypeConfig(1.6, 18, 24),
2936
- 'body-medium': createTypographyTypeConfig(1.6, 18, 18),
2937
- body: createTypographyTypeConfig(1.6, 16, 16),
2938
- 'body-small': createTypographyTypeConfig(1.6, 14, 14),
2939
- 'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
2940
- }
2941
- }
2942
- },
2943
- link: {
2944
- disabledColor: lateOceanColorPalette.black200
2945
- }
2946
- };
3183
+ return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
3184
+ children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
3185
+ children: title
3186
+ }), children]
3187
+ }));
3188
+ }
2947
3189
 
2948
- var inputStatesStyle = {
2949
- "default": {
2950
- backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
2951
- borderColor: colorsLateOceanTheme.separator,
2952
- color: 'black'
2953
- },
2954
- pending: {
2955
- backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
2956
- borderColor: colorsLateOceanTheme.separator,
2957
- color: 'black'
2958
- },
2959
- valid: {
2960
- backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
2961
- borderColor: lateOceanColorPalette.black100,
2962
- color: 'black'
2963
- },
2964
- hover: {
2965
- borderColor: lateOceanColorPalette.black200,
2966
- color: 'black'
2967
- },
2968
- focus: {
2969
- borderColor: colorsLateOceanTheme.primary,
2970
- color: 'black'
2971
- },
2972
- disabled: {
2973
- backgroundColor: colorsLateOceanTheme.disabled,
2974
- borderColor: colorsLateOceanTheme.separator,
2975
- color: 'black-light'
2976
- },
2977
- invalid: {
2978
- borderColor: colorsLateOceanTheme.separator,
2979
- color: 'black'
2980
- }
2981
- };
2982
- var input = {
2983
- color: {
2984
- selection: colorsLateOceanTheme.primary,
2985
- placeholder: typographyLateOceanTheme.colors['black-light']
2986
- },
2987
- borderWidth: '2px',
2988
- borderRadius: '10px',
2989
- icon: {
2990
- size: 20
2991
- },
2992
- padding: {
2993
- "default": '7px 16px',
2994
- iOSSingleLine: '12px 16px'
2995
- },
2996
- states: inputStatesStyle
2997
- };
3190
+ var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
3191
+ displayName: "StorySection__StyledDemoSection"
3192
+ })(["margin-bottom:64px;"]);
2998
3193
 
2999
- var inputFieldLateOceanTheme = {
3000
- labelContainerPaddingBottom: 5,
3001
- iconMarginLeft: 6
3002
- };
3194
+ function DemoSection(_ref4) {
3195
+ var children = _ref4.children;
3196
+ return /*#__PURE__*/jsx(StyledDemoSection, {
3197
+ children: /*#__PURE__*/jsx(StorySection, {
3198
+ internalIsDemoSection: true,
3199
+ title: "Demo",
3200
+ children: children
3201
+ })
3202
+ });
3203
+ }
3003
3204
 
3004
- var radioLateOceanTheme = {
3005
- size: 18,
3006
- unchecked: {
3007
- backgroundColor: lateOceanColorPalette.white,
3008
- borderWidth: '2px',
3009
- borderColor: lateOceanColorPalette.black200
3010
- },
3011
- checked: {
3012
- backgroundColor: lateOceanColorPalette.lateOcean,
3013
- innerSize: 5,
3014
- innerBackgroundColor: lateOceanColorPalette.white
3015
- },
3016
- disabled: {
3017
- backgroundColor: lateOceanColorPalette.black50,
3018
- borderColor: lateOceanColorPalette.black100
3205
+ StorySection.SubSection = SubSection;
3206
+ StorySection.BlockSection = BlockSection;
3207
+ /** @deprecated use StorySection.Demo instead */
3208
+
3209
+ StorySection.DemoSection = DemoSection;
3210
+ StorySection.Demo = DemoSection;
3211
+ /** @deprecated use StorySection instead */
3212
+
3213
+ var DeprecatedSection = StorySection;
3214
+
3215
+ function StoryContainer(_ref) {
3216
+ var children = _ref.children,
3217
+ title = _ref.title,
3218
+ _ref$state = _ref.state,
3219
+ state = _ref$state === void 0 ? 'none' : _ref$state,
3220
+ _ref$platform = _ref.platform,
3221
+ platform = _ref$platform === void 0 ? 'all' : _ref$platform;
3222
+ if (platform === 'web') return null;
3223
+ return /*#__PURE__*/jsx(StorySection.BlockSection, {
3224
+ testID: state,
3225
+ title: title,
3226
+ children: children
3227
+ });
3228
+ }
3229
+
3230
+ function StoryDecorator(storyFn, context) {
3231
+ return /*#__PURE__*/jsx(Story, {
3232
+ title: context.name,
3233
+ children: storyFn()
3234
+ });
3235
+ }
3236
+
3237
+ var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
3238
+ displayName: "StoryGrid__SmallScreenRow"
3239
+ })(["flex-direction:column;margin:0;"]);
3240
+ var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
3241
+ displayName: "StoryGrid__SmallScreenCol"
3242
+ })(["padding:8px 0 16px;"]);
3243
+ var FlexRow = /*#__PURE__*/styled.View.withConfig({
3244
+ displayName: "StoryGrid__FlexRow"
3245
+ })(["flex-direction:row;margin:0 -4px 16px;"]);
3246
+ var FlexCol = /*#__PURE__*/styled.View.withConfig({
3247
+ displayName: "StoryGrid__FlexCol"
3248
+ })(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
3249
+
3250
+ function StoryGridRow(_ref) {
3251
+ var children = _ref.children,
3252
+ _ref$breakpoint = _ref.breakpoint,
3253
+ breakpoint = _ref$breakpoint === void 0 ? 'small' : _ref$breakpoint;
3254
+
3255
+ // eslint-disable-next-line unicorn/expiring-todo-comments
3256
+ // TODO use useBreakpoint instead
3257
+ var _useWindowDimensions = useWindowDimensions(),
3258
+ width = _useWindowDimensions.width;
3259
+
3260
+ var breakpointValue = breakpoint === 'small' ? 480 : 768;
3261
+
3262
+ if (width < breakpointValue) {
3263
+ return /*#__PURE__*/jsx(SmallScreenRow, {
3264
+ children: Children.map(children, function (child) {
3265
+ return /*#__PURE__*/jsx(SmallScreenCol, {
3266
+ children: child
3267
+ });
3268
+ })
3269
+ });
3019
3270
  }
3020
- };
3021
3271
 
3022
- var textArea = {
3023
- minHeight: 120
3024
- };
3272
+ return /*#__PURE__*/jsx(FlexRow, {
3273
+ children: Children.map(children, function (child) {
3274
+ return /*#__PURE__*/jsx(FlexCol, {
3275
+ children: child
3276
+ });
3277
+ })
3278
+ });
3279
+ }
3025
3280
 
3026
- var forms = {
3027
- input: input,
3028
- radio: radioLateOceanTheme,
3029
- inputField: inputFieldLateOceanTheme,
3030
- textArea: textArea
3031
- };
3281
+ function StoryGridCol(_ref2) {
3282
+ var title = _ref2.title,
3283
+ titleColor = _ref2.titleColor,
3284
+ children = _ref2.children,
3285
+ _ref2$platform = _ref2.platform,
3286
+ platform = _ref2$platform === void 0 ? 'all' : _ref2$platform;
3287
+ var isNative = Platform.OS === 'ios' || Platform.OS === 'android';
3032
3288
 
3033
- var fullScreenModalLateOceanTheme = {
3034
- header: {
3035
- paddingVertical: 12,
3036
- paddingHorizontal: 16,
3037
- borderColor: lateOceanColorPalette.black100
3289
+ if (Platform.OS === 'web' && platform === 'native') {
3290
+ return null;
3038
3291
  }
3039
- };
3040
3292
 
3041
- var iconButton = {
3042
- backgroundColor: 'transparent',
3043
- width: 40,
3044
- height: 40,
3045
- borderRadius: 20,
3046
- borderWidth: 2,
3047
- borderColor: 'transparent',
3048
- transition: {
3049
- property: 'all',
3050
- duration: '200ms',
3051
- timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1);'
3052
- },
3053
- scale: {
3054
- base: {
3055
- "default": 1,
3056
- hover: 0.95,
3057
- active: 0.95
3058
- },
3059
- medium: {
3060
- hover: 1.05
3061
- }
3062
- },
3063
- disabled: {
3064
- scale: 1,
3065
- backgroundColor: button.disabled.backgroundColor,
3066
- borderColor: button.disabled.borderColor
3067
- },
3068
- "default": {
3069
- pressedBackgroundColor: button["default"].pressedBackgroundColor
3070
- },
3071
- white: {
3072
- pressedBackgroundColor: button.white.hoverBackgroundColor
3293
+ if (isNative && platform === 'web') {
3294
+ return null;
3073
3295
  }
3074
- };
3075
3296
 
3076
- var listItemLateOceanTheme = {
3077
- padding: '12px 16px',
3078
- borderColor: colorsLateOceanTheme.separator,
3079
- borderWidth: '1px',
3080
- innerMargin: '8px'
3081
- };
3297
+ return /*#__PURE__*/jsxs(Fragment$1, {
3298
+ children: [title ? /*#__PURE__*/jsx(StoryTitle.Level4, {
3299
+ numberOfLines: 1,
3300
+ color: titleColor,
3301
+ children: title
3302
+ }) : null, children]
3303
+ });
3304
+ }
3082
3305
 
3083
- var shadowsLateOceanTheme = {
3084
- medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
3306
+ var StoryGrid = {
3307
+ Row: StoryGridRow,
3308
+ Col: StoryGridCol
3085
3309
  };
3086
3310
 
3087
- var skeletonTheme = {
3088
- backgroundColor: lateOceanColorPalette.black100,
3089
- flareColor: lateOceanColorPalette.black200,
3090
- animationDuration: 1000
3091
- };
3311
+ var Container$1 = /*#__PURE__*/styled.View.withConfig({
3312
+ displayName: "Tag__Container"
3313
+ })(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
3314
+ var theme = _ref.theme,
3315
+ type = _ref.type,
3316
+ variant = _ref.variant;
3317
+ return theme.kitt.tag[type][variant].backgroundColor;
3318
+ }, function (_ref2) {
3319
+ var theme = _ref2.theme,
3320
+ type = _ref2.type,
3321
+ variant = _ref2.variant;
3322
+ return theme.kitt.tag[type][variant].borderWidth;
3323
+ }, function (_ref3) {
3324
+ var theme = _ref3.theme,
3325
+ type = _ref3.type,
3326
+ variant = _ref3.variant;
3327
+ return theme.kitt.tag[type][variant].borderColor;
3328
+ }, function (_ref4) {
3329
+ var theme = _ref4.theme;
3330
+ return theme.kitt.tag.padding;
3331
+ }, function (_ref5) {
3332
+ var theme = _ref5.theme;
3333
+ return theme.kitt.tag.borderRadius;
3334
+ });
3335
+ var getLabelColor = function (type, variant) {
3336
+ switch (type) {
3337
+ case 'danger':
3338
+ {
3339
+ return variant === 'outline' ? 'danger' : 'black';
3340
+ }
3092
3341
 
3093
- var tagLateOceanTheme = {
3094
- borderRadius: '10px',
3095
- padding: '2px 12px',
3096
- primary: {
3097
- fill: {
3098
- backgroundColor: lateOceanColorPalette.moonPurpleLight1,
3099
- borderWidth: '0',
3100
- borderColor: lateOceanColorPalette.transparent
3101
- },
3102
- outline: {
3103
- backgroundColor: lateOceanColorPalette.transparent,
3104
- borderWidth: '1px',
3105
- borderColor: lateOceanColorPalette.lateOcean
3106
- }
3107
- },
3108
- "default": {
3109
- fill: {
3110
- backgroundColor: lateOceanColorPalette.black50,
3111
- borderWidth: '0',
3112
- borderColor: lateOceanColorPalette.transparent
3113
- },
3114
- outline: {
3115
- backgroundColor: lateOceanColorPalette.transparent,
3116
- borderWidth: '1px',
3117
- borderColor: lateOceanColorPalette.black1000
3118
- }
3119
- },
3120
- danger: {
3121
- fill: {
3122
- backgroundColor: lateOceanColorPalette.warmEmbrace,
3123
- borderWidth: '0',
3124
- borderColor: lateOceanColorPalette.transparent
3125
- },
3126
- outline: {
3127
- backgroundColor: lateOceanColorPalette.transparent,
3128
- borderWidth: '1px',
3129
- borderColor: colorsLateOceanTheme.danger
3130
- }
3131
- }
3132
- };
3342
+ case 'primary':
3343
+ {
3344
+ return 'primary';
3345
+ }
3133
3346
 
3134
- var tooltip = {
3135
- backgroundColor: colorsLateOceanTheme.black,
3136
- borderRadius: 10,
3137
- opacity: 0.95,
3138
- horizontalPadding: 16,
3139
- verticalPadding: 4,
3140
- floatingPadding: 8
3141
- };
3347
+ case 'default':
3348
+ {
3349
+ return 'black';
3350
+ }
3142
3351
 
3143
- var breakpoints = {
3144
- values: {
3145
- base: 0,
3146
- small: 480,
3147
- medium: 768,
3148
- large: 1024,
3149
- wide: 1280
3150
- },
3151
- min: {
3152
- smallBreakpoint: 'min-width: 480px',
3153
- mediumBreakpoint: 'min-width: 768px',
3154
- largeBreakpoint: 'min-width: 1024px',
3155
- wideBreakpoint: 'min-width: 1280px'
3156
- },
3157
- max: {
3158
- smallBreakpoint: 'max-width: 479px',
3159
- mediumBreakpoint: 'max-width: 767px',
3160
- largeBreakpoint: 'max-width: 1023px',
3161
- wideBreakpoint: 'max-width: 1279px'
3352
+ default:
3353
+ {
3354
+ return 'black';
3355
+ }
3162
3356
  }
3163
- }; // eslint-disable-next-line unicorn/expiring-todo-comments
3164
- // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
3165
-
3166
- var theme = {
3167
- spacing: 4,
3168
- colors: colorsLateOceanTheme,
3169
- palettes: {
3170
- lateOcean: lateOceanColorPalette
3171
- },
3172
- avatar: avatar,
3173
- button: button,
3174
- card: cardLateOceanTheme,
3175
- feedbackMessage: feedbackMessage,
3176
- forms: forms,
3177
- typography: typographyLateOceanTheme,
3178
- tag: tagLateOceanTheme,
3179
- shadows: shadowsLateOceanTheme,
3180
- fullScreenModal: fullScreenModalLateOceanTheme,
3181
- iconButton: iconButton,
3182
- listItem: listItemLateOceanTheme,
3183
- tooltip: tooltip,
3184
- skeleton: skeletonTheme,
3185
- breakpoints: breakpoints
3186
3357
  };
3358
+ function Tag(_ref6) {
3359
+ var label = _ref6.label,
3360
+ _ref6$type = _ref6.type,
3361
+ type = _ref6$type === void 0 ? 'default' : _ref6$type,
3362
+ _ref6$variant = _ref6.variant,
3363
+ variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
3364
+ return /*#__PURE__*/jsx(Container$1, {
3365
+ type: type,
3366
+ variant: variant,
3367
+ children: /*#__PURE__*/jsx(Typography.Text, {
3368
+ base: "body-xsmall",
3369
+ color: getLabelColor(type, variant),
3370
+ children: label
3371
+ })
3372
+ });
3373
+ }
3187
3374
 
3188
3375
  function Title(_ref) {
3189
3376
  var children = _ref.children;
@@ -3443,7 +3630,7 @@ function Tooltip(_ref) {
3443
3630
  };
3444
3631
  _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0)};}}";
3445
3632
  _f.__workletHash = 15953928507970;
3446
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (57:41)";
3633
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (59:41)";
3447
3634
  _f.__optimalization = 2;
3448
3635
 
3449
3636
  global.__reanimatedWorkletInit(_f);
@@ -3529,13 +3716,8 @@ function TypographyEmoji(_ref2) {
3529
3716
  var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
3530
3717
  var typeConfigKey = getTypographyTypeConfigKey(theme);
3531
3718
  var fontSize = typeConfig[typeConfigKey].fontSize;
3532
-
3533
- if ((process.env.NODE_ENV !== "production")) {
3534
- if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
3535
- }
3536
-
3537
3719
  return /*#__PURE__*/jsx(StyledTypographyEmoji, {
3538
- size: parseInt(fontSize.slice(0, -2), 10),
3720
+ size: fontSize,
3539
3721
  emoji: emoji
3540
3722
  });
3541
3723
  }
@@ -3592,79 +3774,6 @@ function TypographyLink(_ref4) {
3592
3774
  }));
3593
3775
  }
3594
3776
 
3595
- function matchWindowSize(_ref, _ref2) {
3596
- var width = _ref.width,
3597
- height = _ref.height;
3598
- var minWidth = _ref2.minWidth,
3599
- maxWidth = _ref2.maxWidth,
3600
- minHeight = _ref2.minHeight,
3601
- maxHeight = _ref2.maxHeight;
3602
- var hasWidthMatched = width ? (!minWidth || width >= minWidth) && (!maxWidth || width <= maxWidth) : true;
3603
- var hasHeightMatched = height ? (!minHeight || height >= minHeight) && (!maxHeight || height <= maxHeight) : true;
3604
- return hasWidthMatched && hasHeightMatched;
3605
- }
3606
- function useMatchWindowSize(options) {
3607
- var _useWindowDimensions = useWindowDimensions(),
3608
- width = _useWindowDimensions.width,
3609
- height = _useWindowDimensions.height;
3610
-
3611
- return matchWindowSize({
3612
- width: width,
3613
- height: height
3614
- }, options);
3615
- }
3616
-
3617
- function createWindowSizeHelper(dimensions) {
3618
- return {
3619
- matchWindowSize: function matchWindowSize$1(options) {
3620
- return matchWindowSize(dimensions, options);
3621
- },
3622
- ifWindowSizeMatches: function ifWindowSizeMatches(options, valueIfTrue, valueIfFalse) {
3623
- return matchWindowSize(dimensions, options) ? valueIfTrue : valueIfFalse;
3624
- },
3625
- mapWindowWidth: function mapWindowWidth() {
3626
- for (var _len = arguments.length, widthList = new Array(_len), _key = 0; _key < _len; _key++) {
3627
- widthList[_key] = arguments[_key];
3628
- }
3629
-
3630
- if ((process.env.NODE_ENV !== "production")) {
3631
- widthList.slice(1).forEach(function (_ref, index) {
3632
- var _ref2 = _slicedToArray(_ref, 1),
3633
- minWidth = _ref2[0];
3634
-
3635
- var previousMinWidth = widthList[index][0];
3636
-
3637
- if (previousMinWidth > minWidth) {
3638
- throw new Error("mapWindowWidth: sort your values to be mobile first. ".concat(minWidth, " is < ").concat(previousMinWidth, ", so ").concat(minWidth, " should be before ").concat(previousMinWidth, "."));
3639
- }
3640
- });
3641
- }
3642
-
3643
- var found = widthList.find(function (_ref3) {
3644
- var _ref4 = _slicedToArray(_ref3, 2),
3645
- minWidth = _ref4[0];
3646
- _ref4[1];
3647
-
3648
- return matchWindowSize(dimensions, {
3649
- minWidth: Number(minWidth)
3650
- });
3651
- });
3652
- if (!found) return null;
3653
- return found[1];
3654
- }
3655
- };
3656
- }
3657
-
3658
- function useKittTheme() {
3659
- var dimensions = useWindowDimensions();
3660
- return useMemo(function () {
3661
- return {
3662
- kitt: theme,
3663
- responsive: createWindowSizeHelper(dimensions)
3664
- };
3665
- }, [dimensions]);
3666
- }
3667
-
3668
3777
  var hex2rgba = function (hex) {
3669
3778
  var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
3670
3779
  var r = parseInt(hex.slice(1, 3), 16);
@@ -3700,9 +3809,7 @@ function MatchWindowSize(_ref) {
3700
3809
 
3701
3810
  var match = useMatchWindowSize(matchWindowSizeOptions);
3702
3811
  if (!match) return null;
3703
- return /*#__PURE__*/jsx(Fragment$1, {
3704
- children: children
3705
- });
3812
+ return children;
3706
3813
  }
3707
3814
 
3708
3815
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -3729,5 +3836,5 @@ function withTheme(WrappedComponent) {
3729
3836
  });
3730
3837
  }
3731
3838
 
3732
- 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 };
3839
+ export { Avatar, Button, Card, Checkbox, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, 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 };
3733
3840
  //# sourceMappingURL=index-browser-all.es.android.js.map