@ornikar/kitt-universal 4.0.0 → 4.1.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 (49) hide show
  1. package/dist/definitions/BaseMessage/BaseMessage.d.ts +16 -0
  2. package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -0
  3. package/dist/definitions/BaseMessage/IconContent.d.ts +10 -0
  4. package/dist/definitions/BaseMessage/IconContent.d.ts.map +1 -0
  5. package/dist/definitions/BaseMessage/helper.d.ts +6 -0
  6. package/dist/definitions/BaseMessage/helper.d.ts.map +1 -0
  7. package/dist/definitions/Message/Message.d.ts +4 -12
  8. package/dist/definitions/Message/Message.d.ts.map +1 -1
  9. package/dist/definitions/Notification/Notification.d.ts +8 -8
  10. package/dist/definitions/Notification/Notification.d.ts.map +1 -1
  11. package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
  12. package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -1
  13. package/dist/definitions/themes/default.d.ts +4 -9
  14. package/dist/definitions/themes/default.d.ts.map +1 -1
  15. package/dist/definitions/themes/late-ocean/{buttonLateOceanTheme.d.ts → button.d.ts} +2 -2
  16. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -0
  17. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +2 -0
  18. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
  19. package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts +11 -0
  20. package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts.map +1 -0
  21. package/dist/index-browser-all.es.android.js +174 -148
  22. package/dist/index-browser-all.es.android.js.map +1 -1
  23. package/dist/index-browser-all.es.ios.js +174 -148
  24. package/dist/index-browser-all.es.ios.js.map +1 -1
  25. package/dist/index-browser-all.es.js +174 -148
  26. package/dist/index-browser-all.es.js.map +1 -1
  27. package/dist/index-browser-all.es.web.js +183 -155
  28. package/dist/index-browser-all.es.web.js.map +1 -1
  29. package/dist/index-node-14.17.cjs.js +183 -137
  30. package/dist/index-node-14.17.cjs.js.map +1 -1
  31. package/dist/index-node-14.17.cjs.web.js +183 -137
  32. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  33. package/dist/linaria-themes-browser-all.es.android.js +21 -13
  34. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  35. package/dist/linaria-themes-browser-all.es.ios.js +21 -13
  36. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  37. package/dist/linaria-themes-browser-all.es.js +21 -13
  38. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  39. package/dist/linaria-themes-browser-all.es.web.js +21 -13
  40. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  41. package/dist/linaria-themes-node-14.17.cjs.js +21 -13
  42. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  43. package/dist/linaria-themes-node-14.17.cjs.web.js +21 -13
  44. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  45. package/dist/tsbuildinfo +1 -1
  46. package/package.json +3 -3
  47. package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +0 -1
  48. package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts +0 -9
  49. package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
3
+ import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
4
4
  export { useWindowDimensions as useWindowSize } from 'react-native';
5
- import { UserIcon, EyeOffIcon, EyeIcon, LoaderIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
5
+ import { UserIcon, EyeOffIcon, EyeIcon, LoaderIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
6
6
  export * from '@ornikar/kitt-icons';
7
7
  import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
8
8
  import { forwardRef, cloneElement, useContext, createContext, useMemo, useState, Fragment, Children, useEffect } from 'react';
@@ -51,7 +51,7 @@ function SpinningIcon(_ref) {
51
51
  });
52
52
  }
53
53
 
54
- var IconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
54
+ var IconContainer = /*#__PURE__*/styled$1(View).withConfig({
55
55
  displayName: "Icon__IconContainer",
56
56
  componentId: "kitt-universal__sc-usm0ol-0"
57
57
  })(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
@@ -78,7 +78,7 @@ function Icon(_ref5) {
78
78
  var clonedIcon = /*#__PURE__*/cloneElement(icon, {
79
79
  color: color
80
80
  });
81
- return /*#__PURE__*/jsx(IconContainer$1, {
81
+ return /*#__PURE__*/jsx(IconContainer, {
82
82
  align: align,
83
83
  size: size,
84
84
  color: color,
@@ -632,7 +632,7 @@ var StyledButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
632
632
  if ($isDisabled || !isSubtle($type)) return undefined;
633
633
  return 'color: inherit';
634
634
  });
635
- var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
635
+ var StyledIconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
636
636
  displayName: "ButtonContent__StyledIconContainer",
637
637
  componentId: "kitt-universal__sc-dnyw3n-1"
638
638
  })(["", ""], function (_ref2) {
@@ -653,7 +653,7 @@ function ButtonIcon(_ref3) {
653
653
  spin = _ref3.spin,
654
654
  iconPosition = _ref3.iconPosition,
655
655
  testID = _ref3.testID;
656
- return /*#__PURE__*/jsx(StyledIconContainer, {
656
+ return /*#__PURE__*/jsx(StyledIconContainer$1, {
657
657
  $iconPosition: iconPosition,
658
658
  children: /*#__PURE__*/jsx(TypographyIcon, {
659
659
  icon: icon,
@@ -799,7 +799,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
799
799
  });
800
800
  });
801
801
 
802
- var Container$4 = /*#__PURE__*/styled$1(View).withConfig({
802
+ var Container$3 = /*#__PURE__*/styled$1(View).withConfig({
803
803
  displayName: "Card__Container",
804
804
  componentId: "kitt-universal__sc-1n9psug-0"
805
805
  })(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
@@ -823,7 +823,7 @@ var Container$4 = /*#__PURE__*/styled$1(View).withConfig({
823
823
  function Card(_ref6) {
824
824
  var children = _ref6.children,
825
825
  type = _ref6.type;
826
- return /*#__PURE__*/jsx(Container$4, {
826
+ return /*#__PURE__*/jsx(Container$3, {
827
827
  type: type,
828
828
  children: children
829
829
  });
@@ -1230,7 +1230,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled$1(View).withConfig({
1230
1230
  var theme = _ref14.theme;
1231
1231
  return theme.kitt.forms.radio.checked.innerSize / 2;
1232
1232
  });
1233
- var Container$3 = /*#__PURE__*/styled$1(Pressable).withConfig({
1233
+ var Container$2 = /*#__PURE__*/styled$1(Pressable).withConfig({
1234
1234
  displayName: "Radio__Container",
1235
1235
  componentId: "kitt-universal__sc-1mdgr2o-3"
1236
1236
  })(["flex-direction:row;align-items:center;"]);
@@ -1249,7 +1249,7 @@ function Radio(_ref16) {
1249
1249
  _ref16$disabled = _ref16.disabled,
1250
1250
  disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
1251
1251
  children = _ref16.children;
1252
- return /*#__PURE__*/jsxs(Container$3, {
1252
+ return /*#__PURE__*/jsxs(Container$2, {
1253
1253
  nativeID: id,
1254
1254
  disabled: disabled,
1255
1255
  accessibilityRole: "radio",
@@ -1431,7 +1431,7 @@ function FullScreenModalHeader(_ref6) {
1431
1431
  });
1432
1432
  }
1433
1433
 
1434
- var Container$2 = /*#__PURE__*/styled$1(View).withConfig({
1434
+ var Container$1 = /*#__PURE__*/styled$1(View).withConfig({
1435
1435
  displayName: "FullScreenModal__Container",
1436
1436
  componentId: "kitt-universal__sc-11qpbe3-0"
1437
1437
  })(["flex:1;background-color:", ";"], function (_ref) {
@@ -1440,7 +1440,7 @@ var Container$2 = /*#__PURE__*/styled$1(View).withConfig({
1440
1440
  });
1441
1441
  function FullScreenModal(_ref2) {
1442
1442
  var children = _ref2.children;
1443
- return /*#__PURE__*/jsx(Container$2, {
1443
+ return /*#__PURE__*/jsx(Container$1, {
1444
1444
  children: children
1445
1445
  });
1446
1446
  }
@@ -1805,59 +1805,32 @@ function Loader(_ref) {
1805
1805
  });
1806
1806
  }
1807
1807
 
1808
- var xIconSize = 14;
1809
- var mainIconSize = 20;
1810
- var Container$1 = /*#__PURE__*/styled$1(View).withConfig({
1811
- displayName: "Message__Container",
1812
- componentId: "kitt-universal__sc-c6400e-0"
1813
- })(["border-radius:", "px;background-color:", ";padding-bottom:", "px;padding-left:", "px;padding-right:", "px;padding-top:", "px;flex-direction:row;align-items:flex-start;justify-content:space-between;"], function (_ref) {
1814
- var theme = _ref.theme,
1815
- noRadius = _ref.noRadius;
1816
- return noRadius ? 0 : theme.kitt.spacing * 5;
1817
- }, function (_ref2) {
1818
- var theme = _ref2.theme,
1819
- type = _ref2.type;
1820
- return theme.kitt.feedbackMessage.backgroundColors[type];
1821
- }, function (_ref3) {
1822
- var theme = _ref3.theme;
1823
- return theme.kitt.spacing * 4;
1824
- }, function (_ref4) {
1825
- var theme = _ref4.theme;
1826
- return theme.kitt.spacing * 4;
1827
- }, function (_ref5) {
1828
- var theme = _ref5.theme;
1829
- return theme.kitt.spacing * 4;
1830
- }, function (_ref6) {
1831
- var _insets$top;
1808
+ function IconContent(_ref) {
1809
+ var type = _ref.type,
1810
+ color = _ref.color;
1832
1811
 
1833
- var theme = _ref6.theme,
1834
- insets = _ref6.insets;
1835
- return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
1836
- });
1837
- var CloseContainer = /*#__PURE__*/styled$1(TouchableOpacity).withConfig({
1838
- displayName: "Message__CloseContainer",
1839
- componentId: "kitt-universal__sc-c6400e-1"
1840
- })(["margin-left:", "px;padding:", "px;"], function (_ref7) {
1841
- var theme = _ref7.theme;
1842
- return theme.kitt.spacing * 4;
1843
- }, function (_ref8) {
1844
- var theme = _ref8.theme;
1845
- return theme.kitt.spacing;
1846
- });
1847
- var IconContainer = /*#__PURE__*/styled$1(View).withConfig({
1848
- displayName: "Message__IconContainer",
1849
- componentId: "kitt-universal__sc-c6400e-2"
1850
- })(["margin-right:", "px;"], function (_ref9) {
1851
- var theme = _ref9.theme;
1852
- return theme.kitt.spacing * 4;
1853
- });
1854
- var Content = /*#__PURE__*/styled$1(Text$1).withConfig({
1855
- displayName: "Message__Content",
1856
- componentId: "kitt-universal__sc-c6400e-3"
1857
- })(["text-align:", ";flex:1;"], function (_ref10) {
1858
- var centeredText = _ref10.centeredText;
1859
- return centeredText ? 'center' : 'left';
1860
- });
1812
+ switch (type) {
1813
+ case 'warning':
1814
+ return /*#__PURE__*/jsx(AlertCircleIcon, {
1815
+ color: color
1816
+ });
1817
+
1818
+ case 'success':
1819
+ return /*#__PURE__*/jsx(CheckIcon, {
1820
+ color: color
1821
+ });
1822
+
1823
+ case 'danger':
1824
+ return /*#__PURE__*/jsx(AlertTriangleIcon, {
1825
+ color: color
1826
+ });
1827
+
1828
+ default:
1829
+ return /*#__PURE__*/jsx(InfoIcon, {
1830
+ color: color
1831
+ });
1832
+ }
1833
+ }
1861
1834
 
1862
1835
  var getColorByType = function (type) {
1863
1836
  switch (type) {
@@ -1872,63 +1845,122 @@ var getColorByType = function (type) {
1872
1845
  return 'black';
1873
1846
  }
1874
1847
  };
1875
-
1876
- function getIconContent(type) {
1877
- switch (type) {
1878
- case 'warning':
1879
- return /*#__PURE__*/jsx(AlertCircleIcon, {});
1880
-
1848
+ var getIconButtonColor = function (messageType) {
1849
+ switch (messageType) {
1881
1850
  case 'success':
1882
- return /*#__PURE__*/jsx(CheckIcon, {});
1883
-
1884
1851
  case 'danger':
1885
- return /*#__PURE__*/jsx(AlertTriangleIcon, {});
1852
+ return 'white';
1886
1853
 
1854
+ case 'warning':
1887
1855
  default:
1888
- return /*#__PURE__*/jsx(InfoIcon, {});
1856
+ return 'black';
1889
1857
  }
1890
- }
1858
+ };
1859
+
1860
+ var StyledMessageContainer = /*#__PURE__*/styled$1(View).withConfig({
1861
+ displayName: "BaseMessage__StyledMessageContainer",
1862
+ componentId: "kitt-universal__sc-eepeiz-0"
1863
+ })(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
1864
+ var _$insets$top;
1891
1865
 
1892
- function Message(_ref11) {
1893
- var _ref11$type = _ref11.type,
1894
- type = _ref11$type === void 0 ? 'info' : _ref11$type,
1895
- children = _ref11.children,
1896
- _ref11$noRadius = _ref11.noRadius,
1897
- noRadius = _ref11$noRadius === void 0 ? false : _ref11$noRadius,
1898
- _ref11$centeredText = _ref11.centeredText,
1899
- centeredText = _ref11$centeredText === void 0 ? false : _ref11$centeredText,
1900
- onDismiss = _ref11.onDismiss,
1901
- insets = _ref11.insets;
1866
+ var $insets = _ref.$insets;
1867
+ return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
1868
+ }, function (_ref2) {
1869
+ var theme = _ref2.theme,
1870
+ $hasNoRadius = _ref2.$hasNoRadius;
1871
+ return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
1872
+ }, function (_ref3) {
1873
+ var theme = _ref3.theme,
1874
+ $type = _ref3.$type;
1875
+ return theme.kitt.feedbackMessage[$type].backgroundColor;
1876
+ });
1877
+ var StyledDismissWrapper = /*#__PURE__*/styled$1(View).withConfig({
1878
+ displayName: "BaseMessage__StyledDismissWrapper",
1879
+ componentId: "kitt-universal__sc-eepeiz-1"
1880
+ })(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
1881
+ var theme = _ref4.theme;
1882
+ var spacing = theme.kitt.spacing;
1883
+ return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
1884
+ });
1885
+ var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
1886
+ displayName: "BaseMessage__StyledIconContainer",
1887
+ componentId: "kitt-universal__sc-eepeiz-2"
1888
+ })(["margin:", ";"], function (_ref5) {
1889
+ var theme = _ref5.theme;
1890
+ var spacing = theme.kitt.spacing;
1891
+ return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
1892
+ });
1893
+ var StyledTextContent = /*#__PURE__*/styled$1(Typography.Text).withConfig({
1894
+ displayName: "BaseMessage__StyledTextContent",
1895
+ componentId: "kitt-universal__sc-eepeiz-3"
1896
+ })(["flex:1;text-align:", ";"], function (_ref6) {
1897
+ var $isCenteredText = _ref6.$isCenteredText;
1898
+ return $isCenteredText ? 'center' : 'left';
1899
+ });
1900
+ var StyledMessageContent = /*#__PURE__*/styled$1(View).withConfig({
1901
+ displayName: "BaseMessage__StyledMessageContent",
1902
+ componentId: "kitt-universal__sc-eepeiz-4"
1903
+ })(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
1904
+ var theme = _ref7.theme;
1905
+ var spacing = theme.kitt.spacing;
1906
+ return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
1907
+ });
1908
+ function BaseMessage(_ref8) {
1909
+ var _ref8$type = _ref8.type,
1910
+ type = _ref8$type === void 0 ? 'info' : _ref8$type,
1911
+ children = _ref8.children,
1912
+ hasNoRadius = _ref8.hasNoRadius,
1913
+ centeredText = _ref8.centeredText,
1914
+ insets = _ref8.insets,
1915
+ onDismiss = _ref8.onDismiss;
1902
1916
  var color = getColorByType(type);
1903
- return /*#__PURE__*/jsxs(Container$1, {
1904
- type: type,
1905
- noRadius: noRadius,
1906
- insets: insets,
1907
- children: [!centeredText ? /*#__PURE__*/jsx(IconContainer, {
1908
- children: /*#__PURE__*/jsx(Icon, {
1909
- size: mainIconSize,
1910
- color: color,
1911
- icon: getIconContent(type)
1912
- })
1913
- }) : null, /*#__PURE__*/jsx(Content, {
1914
- type: type,
1915
- centeredText: centeredText,
1916
- children: /*#__PURE__*/jsx(Typography.Text, {
1917
- base: "body-small",
1917
+ return /*#__PURE__*/jsxs(StyledMessageContainer, {
1918
+ $type: type,
1919
+ $hasNoRadius: hasNoRadius,
1920
+ $insets: insets,
1921
+ children: [/*#__PURE__*/jsxs(StyledMessageContent, {
1922
+ children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
1923
+ children: /*#__PURE__*/jsx(Icon, {
1924
+ color: color,
1925
+ icon: /*#__PURE__*/jsx(IconContent, {
1926
+ type: type,
1927
+ color: color
1928
+ })
1929
+ })
1930
+ }), /*#__PURE__*/jsx(StyledTextContent, {
1931
+ $isCenteredText: centeredText,
1932
+ base: "body",
1918
1933
  color: color,
1919
1934
  children: children
1920
- })
1921
- }), onDismiss ? /*#__PURE__*/jsx(CloseContainer, {
1922
- onPress: onDismiss,
1923
- children: /*#__PURE__*/jsx(Icon, {
1935
+ })]
1936
+ }), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
1937
+ children: /*#__PURE__*/jsx(IconButton, {
1938
+ color: getIconButtonColor(type),
1924
1939
  icon: /*#__PURE__*/jsx(XIcon, {}),
1925
- size: xIconSize,
1926
- color: color
1940
+ onPress: onDismiss
1927
1941
  })
1928
1942
  }) : null]
1929
1943
  });
1930
1944
  }
1931
1945
 
1946
+ function Message(_ref) {
1947
+ var _ref$type = _ref.type,
1948
+ type = _ref$type === void 0 ? 'info' : _ref$type,
1949
+ children = _ref.children,
1950
+ hasNoRadius = _ref.hasNoRadius,
1951
+ centeredText = _ref.centeredText,
1952
+ insets = _ref.insets,
1953
+ onDismiss = _ref.onDismiss;
1954
+ return /*#__PURE__*/jsx(BaseMessage, {
1955
+ insets: insets,
1956
+ hasNoRadius: hasNoRadius,
1957
+ type: type,
1958
+ centeredText: centeredText,
1959
+ onDismiss: onDismiss,
1960
+ children: children
1961
+ });
1962
+ }
1963
+
1932
1964
  function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1933
1965
 
1934
1966
  function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -2096,19 +2128,22 @@ function Notification(_ref) {
2096
2128
  var type = _ref.type,
2097
2129
  children = _ref.children,
2098
2130
  centeredText = _ref.centeredText,
2099
- onDelete = _ref.onDelete;
2131
+ insets = _ref.insets,
2132
+ onDelete = _ref.onDelete,
2133
+ onDismiss = _ref.onDismiss;
2100
2134
 
2101
- var _useSafeAreaInsets = useSafeAreaInsets(),
2102
- top = _useSafeAreaInsets.top;
2135
+ if ((process.env.NODE_ENV !== "production")) {
2136
+ if (onDelete) {
2137
+ throw new Error('onDelete is deprecated us onDismiss instead');
2138
+ }
2139
+ }
2103
2140
 
2104
- return /*#__PURE__*/jsx(Message, {
2105
- noRadius: true,
2141
+ return /*#__PURE__*/jsx(BaseMessage, {
2142
+ hasNoRadius: true,
2106
2143
  type: type,
2107
2144
  centeredText: centeredText,
2108
- insets: {
2109
- top: top
2110
- },
2111
- onDismiss: onDelete,
2145
+ insets: insets,
2146
+ onDismiss: onDismiss,
2112
2147
  children: children
2113
2148
  });
2114
2149
  }
@@ -2139,6 +2174,10 @@ function SkeletonContent(_ref4) {
2139
2174
  });
2140
2175
  }
2141
2176
 
2177
+ var SkeletonContainer = /*#__PURE__*/styled$1(View).withConfig({
2178
+ displayName: "Skeleton__SkeletonContainer",
2179
+ componentId: "kitt-universal__sc-1w5cm3i-0"
2180
+ })(["overflow:hidden;"]);
2142
2181
  function Skeleton(_ref) {
2143
2182
  var isLoading = _ref.isLoading,
2144
2183
  style = _ref.style;
@@ -2148,7 +2187,7 @@ function Skeleton(_ref) {
2148
2187
  width = _useState2[0],
2149
2188
  setWidth = _useState2[1];
2150
2189
 
2151
- return /*#__PURE__*/jsx(View, {
2190
+ return /*#__PURE__*/jsx(SkeletonContainer, {
2152
2191
  style: style,
2153
2192
  onLayout: function onLayout(_ref2) {
2154
2193
  var nativeEvent = _ref2.nativeEvent;
@@ -2162,8 +2201,8 @@ function Skeleton(_ref) {
2162
2201
  }
2163
2202
  var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
2164
2203
  displayName: "Skeleton__Bar",
2165
- componentId: "kitt-universal__sc-1w5cm3i-0"
2166
- })(["width:100%;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref3) {
2204
+ componentId: "kitt-universal__sc-1w5cm3i-1"
2205
+ })(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
2167
2206
  var theme = _ref3.theme;
2168
2207
  return theme.kitt.spacing * 2;
2169
2208
  }, function (_ref4) {
@@ -2172,8 +2211,8 @@ var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
2172
2211
  });
2173
2212
  var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
2174
2213
  displayName: "Skeleton__Circle",
2175
- componentId: "kitt-universal__sc-1w5cm3i-1"
2176
- })(["width:", "px;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref5) {
2214
+ componentId: "kitt-universal__sc-1w5cm3i-2"
2215
+ })(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
2177
2216
  var theme = _ref5.theme;
2178
2217
  return theme.kitt.spacing * 12;
2179
2218
  }, function (_ref6) {
@@ -2185,8 +2224,8 @@ var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
2185
2224
  });
2186
2225
  var Square = /*#__PURE__*/styled$1(Skeleton).withConfig({
2187
2226
  displayName: "Skeleton__Square",
2188
- componentId: "kitt-universal__sc-1w5cm3i-2"
2189
- })(["width:", "px;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref8) {
2227
+ componentId: "kitt-universal__sc-1w5cm3i-3"
2228
+ })(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
2190
2229
  var theme = _ref8.theme;
2191
2230
  return theme.kitt.spacing * 12;
2192
2231
  }, function (_ref9) {
@@ -2651,6 +2690,8 @@ var colorsLateOceanTheme = {
2651
2690
  success: lateOceanColorPalette.viride,
2652
2691
  correct: lateOceanColorPalette.viride,
2653
2692
  danger: lateOceanColorPalette.englishVermillon,
2693
+ info: lateOceanColorPalette.aero,
2694
+ warning: lateOceanColorPalette.goldCrayola,
2654
2695
  separator: lateOceanColorPalette.black100,
2655
2696
  hover: lateOceanColorPalette.black100,
2656
2697
  black: lateOceanColorPalette.black1000,
@@ -2675,7 +2716,7 @@ var avatar = {
2675
2716
  }
2676
2717
  };
2677
2718
 
2678
- var buttonLateOceanTheme = {
2719
+ var button = {
2679
2720
  borderRadius: '30px',
2680
2721
  borderWidth: {
2681
2722
  disabled: '2px',
@@ -2766,12 +2807,18 @@ var cardLateOceanTheme = {
2766
2807
  }
2767
2808
  };
2768
2809
 
2769
- var feedbackMessageLateOceanTheme = {
2770
- backgroundColors: {
2771
- success: lateOceanColorPalette.viride,
2772
- danger: lateOceanColorPalette.englishVermillon,
2773
- warning: lateOceanColorPalette.goldCrayola,
2774
- info: lateOceanColorPalette.aero
2810
+ var feedbackMessage = {
2811
+ danger: {
2812
+ backgroundColor: colorsLateOceanTheme.danger
2813
+ },
2814
+ success: {
2815
+ backgroundColor: colorsLateOceanTheme.success
2816
+ },
2817
+ info: {
2818
+ backgroundColor: colorsLateOceanTheme.info
2819
+ },
2820
+ warning: {
2821
+ backgroundColor: colorsLateOceanTheme.warning
2775
2822
  }
2776
2823
  };
2777
2824
 
@@ -2967,14 +3014,14 @@ var iconButton = {
2967
3014
  },
2968
3015
  disabled: {
2969
3016
  scale: 1,
2970
- backgroundColor: buttonLateOceanTheme.disabled.backgroundColor,
2971
- borderColor: buttonLateOceanTheme.disabled.borderColor
3017
+ backgroundColor: button.disabled.backgroundColor,
3018
+ borderColor: button.disabled.borderColor
2972
3019
  },
2973
3020
  "default": {
2974
- pressedBackgroundColor: buttonLateOceanTheme["default"].pressedBackgroundColor
3021
+ pressedBackgroundColor: button["default"].pressedBackgroundColor
2975
3022
  },
2976
3023
  white: {
2977
- pressedBackgroundColor: buttonLateOceanTheme.white.hoverBackgroundColor
3024
+ pressedBackgroundColor: button.white.hoverBackgroundColor
2978
3025
  }
2979
3026
  };
2980
3027
 
@@ -3075,9 +3122,9 @@ var theme = {
3075
3122
  lateOcean: lateOceanColorPalette
3076
3123
  },
3077
3124
  avatar: avatar,
3078
- button: buttonLateOceanTheme,
3125
+ button: button,
3079
3126
  card: cardLateOceanTheme,
3080
- feedbackMessage: feedbackMessageLateOceanTheme,
3127
+ feedbackMessage: feedbackMessage,
3081
3128
  forms: forms,
3082
3129
  typography: typographyLateOceanTheme,
3083
3130
  tag: tagLateOceanTheme,
@@ -3100,25 +3147,6 @@ function TimePicker() {
3100
3147
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3101
3148
 
3102
3149
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3103
-
3104
- var Arrow = function (props) {
3105
- return /*#__PURE__*/jsx("svg", _objectSpread$1(_objectSpread$1({}, props), {}, {
3106
- children: /*#__PURE__*/jsx("path", {
3107
- fillRule: "evenodd",
3108
- clipRule: "evenodd",
3109
- d: "M22.399 6.128C20.939 7.722 19.767 9 18 9s-2.938-1.278-4.399-2.872C11.187 3.494 7.984 0 0 0h36c-7.984 0-11.187 3.494-13.601 6.128z",
3110
- fill: "currentColor"
3111
- })
3112
- }));
3113
- };
3114
-
3115
- Arrow.defaultProps = {
3116
- width: "36",
3117
- height: "8",
3118
- viewBox: "0 0 36 9",
3119
- fill: "none",
3120
- xmlns: "http://www.w3.org/2000/svg"
3121
- };
3122
3150
  var StyledTooltipView = /*#__PURE__*/styled$1(View).withConfig({
3123
3151
  displayName: "TooltipView__StyledTooltipView",
3124
3152
  componentId: "kitt-universal__sc-156zm6m-0"
@@ -3143,7 +3171,7 @@ var StyledTooltipContent = /*#__PURE__*/styled$1(View).withConfig({
3143
3171
  function ArrowView(props) {
3144
3172
  var theme = /*#__PURE__*/useTheme();
3145
3173
  return /*#__PURE__*/jsx(View, _objectSpread$1(_objectSpread$1({}, props), {}, {
3146
- children: /*#__PURE__*/jsx(Arrow, {
3174
+ children: /*#__PURE__*/jsx(TooltipArrowIcon, {
3147
3175
  color: theme.kitt.tooltip.backgroundColor
3148
3176
  })
3149
3177
  }));